vendor: 4,152 bytes, line 1
1import{a as Tt,b as _r,c as f,j as Di}from"/status-page/dist/chunk-PCD4O62K.js";var rD;(rD||(rD={})).mermaid=(()=>{var ng;var dmt=Object.create,Ib=Object.defineProperty,pmt=Object.getOwnPropertyDescriptor,gmt=Object.getOwnPropertyNames,fmt=Object.getPrototypeOf,mmt=Object.prototype.hasOwnProperty,s=f((e,t)=>Ib(e,"name",{value:t,configurable:!0}),"o"),Y=f((e,t)=>()=>(e&&(t=e(e=0)),t),"z"),Xo=f((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),"Js"),Jr=f((e,t)=>{for(var r in t)Ib(e,r,{get:t[r],enumerable:!0})},"xr"),Ohe=f((e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gmt(t))!mmt.call(e,n)&&n!==r&&Ib(e,n,{get:f(()=>t[n],"get"),enumerable:!(i=pmt(t,n))||i.enumerable});return e},"AU"),_o=f((e,t,r)=>(r=e!=null?dmt(fmt(e)):{},Ohe(t||!e||!e.__esModule?Ib(r,"default",{value:e,enumerable:!0}):r,e)),"ys"),ymt=f(e=>Ohe(Ib({},"__esModule",{value:!0}),e),"hNe"),$he,Db,iD,Bhe,nD=Y(()=>{"use strict";$he=Object.freeze({left:0,top:0,width:16,height:16}),Db=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),iD=Object.freeze(Tt(Tt({},$he),Db)),Bhe=Object.freeze(_r(Tt({},iD),{body:"",hidden:!1}))}),Phe,Fhe,vmt=Y(()=>{"use strict";nD(),Phe=Object.freeze({width:null,height:null}),Fhe=Object.freeze(Tt(Tt({},Phe),Db))}),zhe,eC,bmt=Y(()=>{"use strict";zhe=s((e,t,r,i="")=>{let n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let l=n.pop(),h=n.pop(),u={provider:n.length>0?n[0]:i,prefix:h,name:l};return t&&!eC(u)?null:u}let a=n[0],o=a.split("-");if(o.length>1){let l={provider:i,prefix:o.shift(),name:o.join("-")};return t&&!eC(l)?null:l}if(r&&i===""){let l={provider:i,prefix:"",name:a};return t&&!eC(l,r)?null:l}return null},"stringToIcon"),eC=s((e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,"validateIconName")});function qhe(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}f(qhe,"MU");var xmt=Y(()=>{"use strict";s(qhe,"mergeIconTransformations")});function aD(e,t){let r=qhe(e,t);for(let i in Bhe)i in Db?i in e&&!(i in r)&&(r[i]=Db[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}f(aD,"e7");var kmt=Y(()=>{"use strict";nD(),xmt(),s(aD,"mergeIconData")});function jhe(e,t){let r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=i[o]&&i[o].parent,h=l&&a(l);h&&(n[o]=[l].concat(h))}return n[o]}return f(a,"a"),s(a,"resolve"),(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}f(jhe,"OU");var Tmt=Y(()=>{"use strict";s(jhe,"getIconsTree")});function sD(e,t,r){let i=e.icons,n=e.aliases||Object.create(null),a={};function o(l){a=aD(i[l]||n[l],a)}return f(o,"s"),s(o,"parse"),o(t),r.forEach(o),aD(e,a)}f(sD,"BU");function Ghe(e,t){if(e.icons[t])return sD(e,t,[]);let r=jhe(e,[t])[t];return r?sD(e,t,r):null}f(Ghe,"t7");var wmt=Y(()=>{"use strict";kmt(),Tmt(),s(sD,"internalGetIconData"),s(Ghe,"getIconData")});function oD(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let i=e.split(Uhe);if(i===null||!i.length)return e;let n=[],a=i.shift(),o=Vhe.test(a);for(;;){if(o){let l=parseFloat(a);isNaN(l)?n.push(a):n.push(Math.ceil(l*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");o=!o}}f(oD,"r7");var Uhe,Vhe,Cmt=Y(()=>{"use strict";Uhe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vhe=/^-?[0-9.]*[0-9]+[0-9.]*$/g,s(oD,"calculateSize")});function Whe(e,t="defs"){let r="",i=e.indexOf("<"+t);for(;i>=0;){let n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;let o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}f(Whe,"gNe");function Hhe(e,t){return e?"<defs>"+e+"</defs>"+t:t}f(Hhe,"yNe");function Yhe(e,t,r){let i=Whe(e);return Hhe(i.defs,t+i.content+r)}f(Yhe,"zU");var Emt=Y(()=>{"use strict";s(Whe,"splitSVGDefs"),s(Hhe,"mergeDefsAndContent"),s(Yhe,"wrapSVGContent")});function Xhe(e,t){let r=Tt(Tt({},iD),e),i=Tt(Tt({},Fhe),t),n={left:r.left,top:r.top,width:r.width,height:r.height},a=r.body;
vendor: 3,651 bytes, line 1
1[r,i].forEach(x=>{let C=[],w=x.hFlip,_=x.vFlip,S=x.rotate;w?_?S+=2:(C.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),C.push("scale(-1 1)"),n.top=n.left=0):_&&(C.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),C.push("scale(1 -1)"),n.top=n.left=0);let R;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:R=n.height/2+n.top,C.unshift("rotate(90 "+R.toString()+" "+R.toString()+")");break;case 2:C.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:R=n.width/2+n.left,C.unshift("rotate(-90 "+R.toString()+" "+R.toString()+")");break}S%2===1&&(n.left!==n.top&&(R=n.left,n.left=n.top,n.top=R),n.width!==n.height&&(R=n.width,n.width=n.height,n.height=R)),C.length&&(a=Yhe(a,'<g transform="'+C.join(" ")+'">',"</g>"))});let o=i.width,l=i.height,h=n.width,u=n.height,d,p;o===null?(p=l===null?"1em":l==="auto"?u:l,d=oD(p,h/u)):(d=o==="auto"?h:o,p=l===null?oD(d,u/h):l==="auto"?u:l);let g={},m=s((x,C)=>{Khe(C)||(g[x]=C.toString())},"setAttr");m("width",d),m("height",p);let y=[n.left,n.top,h,u];return g.viewBox=y.join(" "),{attributes:g,viewBox:y,body:a}}f(Xhe,"i7");var Khe,Smt=Y(()=>{"use strict";nD(),vmt(),Cmt(),Emt(),Khe=s(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword"),s(Xhe,"iconToSVG")});function Zhe(e,t=Jhe){let r=[],i;for(;i=Qhe.exec(e);)r.push(i[1]);if(!r.length)return e;let n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{let o=typeof t=="function"?t(a):t+(eue++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}f(Zhe,"n7");var Qhe,Jhe,eue,_mt=Y(()=>{"use strict";Qhe=/\sid="(\S+)"/g,Jhe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),eue=0,s(Zhe,"replaceIDs")});function tue(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}f(tue,"a7");var Amt=Y(()=>{"use strict";s(tue,"iconToHTML")}),Lmt=Y(()=>{"use strict";bmt(),wmt(),Smt(),_mt(),Amt()}),tC,la,Nb=Y(()=>{"use strict";tC=s((e,t,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>tC(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=tC(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),la=tC}),lD=Xo((e,t)=>{"use strict";(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=i()})(e,(function(){"use strict";var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",l="minute",h="hour",u="day",d="week",p="month",g="quarter",m="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,_={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(D){var P=["th","
1st","nd","rd"],F=D%100;return"["+D+(P[(F-20)%10]||P[F]||P[0])+"]"},"ordinal")},S=s(function(D,P,F){var U=String(D);return!U||U.length>=P?D:""+Array(P+1-U.length).join(F)+D},"m"),R={s:S,z:s(function(D){var P=-D.utcOffset(),F=Math.abs(P),U=Math.floor(F/60),z=F%60;return(P<=0?"+":"-")+S(U,2,"0")+":"+S(z,2,"0")},"z"),m:s(f(function D(P,F){if(P.date()<F.date())return-D(F,P);var U=12*(F.year()-P.year())+(F.month()-P.month()),z=P.clone().add(U,p),V=F-z<0,W=P.clone().add(U+(V?-1:1),p);return+(-(U+(F-z)/(V?z-W:W-z))||0)},"D"),"t"),a:s(function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},"a"),p:s(function(D){return{M:p,y:m,w:d,d:u,D:y,h,m:l,s:o,ms:a,Q:g}[D]||String(D||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(D){return D===void 0},"u")},b="en",v={};v[b]=_;var k="$isDayjsObject",E=s(function(D){return D instanceof O||!(!D||!D[k])},"S"),A=s(f(function D(P,F,U){var z;if(!P)return b;if(typeof P=="string"){var V=P.toLowerCase();v[V]&&(z=V),F&&(v[V]=F,z=V);var W=P.split("-");if(!z&&W.length>1)return D(W[0])}else{var X=P.name;v[X]=P,z=X}return!U&&z&&(b=z),z||!U&&b},"D"),"t"),I=s(function(D,P){if(E(D))return D.clone();var F=typeof P=="object"?P:{};return F.date=D,F.args=arguments,new O(F)},"O"),$=R;$.l=A,$.i=E,$.w=function(D,P){return I(D,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var O=(function(){function D(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[k]=!0}f(D,"D"),s(D,"M");var P=D.prototype;return P.parse=function(F){this.$d=(function(U){var z=U.date,V=U.utc;if(z===null)return new Date(NaN);if($.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var W=z.match(C);if(W){var X=W[2]-1||0,J=(W[7]||"0").substring(0,3);return V?new Date(Date.UTC(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)):new Date(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)}}return new Date(z)})(F),this.init()},P.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},P.$utils=function(){return $},P.isValid=function(){return this.$d.toString()!==x},P.isSame=function(F,U){var z=I(F);return this.startOf(U)<=z&&z<=this.endOf(U)},P.isAfter=function(F,U){return I(F)<this.startOf(U)},P.isBefore=function(F,U){return this.endOf(U)<I(F)},P.$g=function(F,U,z){return $.u(F)?this[U]:this.set(z,F)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(F,U){var z=this,V=!!$.u(U)||U,W=$.p(F),X=s(function(se,le){var ue=$.w(z.$u?Date.UTC(z.$y,le,se):new Date(z.$y,le,se),z);return V?ue:ue.endOf(u)},"l"),J=s(function(se,le){return $.w(z.toDate()[se].apply(z.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(le)),z)},"$"),H=this.$W,te=this.$M,ie=this.$D,oe="set"+(this.$u?"UTC":"");switch(W){case m:return V?X(1,0):X(31,11);case p:return V?X(1,te):X(0,te+1);case d:var he=this.$locale().weekStart||0,pe=(H<he?H+7:H)-he;return X(V?ie-pe:ie+(6-pe),te);case u:case y:return J(oe+"Hours",0);case h:return J(oe+"Minutes",1);case l:return J(oe+"Seconds",2);case o:return J(oe+"Milliseconds",3);default:return this.clone()}},P.endOf=function(F){return this.startOf(F,!1)},P.$set=function(F,U){var z,V=$.p(F),W="set"+(this.$u?"UTC":""),X=(z={},z[u]=W+"Date",z[y]=W+"Date",z[p]=W+"Month",z[m]=W+"FullYear",z[h]=W+"Hours",z[l]=W+"Minutes",z[o]=W+"Seconds",z[a]=W+"Milliseconds",z)[V],J=V===u?this.$D+(U-this.$W):U;if(V===p||V===m){var H=this.clone().set(y,1);H.$d[X](J),H.init(),this.$d=H.set(y,Math.min(this.$D,H.daysInMonth())).$d}else X&&this.$d[X](J);return this.init(),this},P.set=function(F,U){return this.clone().$set(F,U)},P.get=function(F){return this[$.p(F)]()},P.add=function(F,U){var z,V=this;F=Number(F);var W=$.p(U),X=s(function(te){var ie=I(V);return $.w(ie.date(ie.date()+Math.round(te*F)),V)},"y");if(W===p)return this.set(p,this.$M+F);if(W===m)return this.set(m,this.$y+F);if(W===u)return X(1);if(W===d)return X(7);var J=(z={},z[l]=i,z[h]=n,z[o]=r,z)[W]||1,H=this.$d.getTime()+F*J;return $.w(H,this)},P.subtract=function(F,U){return this.add(-1*F,U)},P.format=function(F){var U=this,z=this.$locale();if(!this.isValid())return z.invalidDate||x;var V=F||"YYYY-MM-DDTHH:mm:ssZ",W=$.z(this),X=this.$H,J=this.$m,H=this.$M,te=z.weekdays,ie=z.months,oe=z.meri
vendor: 2,056 bytes, line 1
1diem,he=s(function(le,ue,de,we){return le&&(le[ue]||le(U,V))||de[ue].slice(0,we)},"h"),pe=s(function(le){return $.s(X%12||12,le,"0")},"d"),se=oe||function(le,ue,de){var we=le<12?"AM":"PM";return de?we.toLowerCase():we};return V.replace(w,(function(le,ue){return ue||(function(de){switch(de){case"YY":return String(U.$y).slice(-2);case"YYYY":return $.s(U.$y,4,"0");case"M":return H+1;case"MM":return $.s(H+1,2,"0");case"MMM":return he(z.monthsShort,H,ie,3);case"MMMM":return he(ie,H);case"D":return U.$D;case"DD":return $.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return he(z.weekdaysMin,U.$W,te,2);case"ddd":return he(z.weekdaysShort,U.$W,te,3);case"dddd":return te[U.$W];case"H":return String(X);case"HH":return $.s(X,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return se(X,J,!0);case"A":return se(X,J,!1);case"m":return String(J);case"mm":return $.s(J,2,"0");case"s":return String(U.$s);case"ss":return $.s(U.$s,2,"0");case"SSS":return $.s(U.$ms,3,"0");case"Z":return W}return null})(le)||W.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(F,U,z){var V,W=this,X=$.p(U),J=I(F),H=(J.utcOffset()-this.utcOffset())*i,te=this-J,ie=s(function(){return $.m(W,J)},"D");switch(X){case m:V=ie()/12;break;case p:V=ie();break;case g:V=ie()/3;break;case d:V=(te-H)/6048e5;break;case u:V=(te-H)/864e5;break;case h:V=te/n;break;case l:V=te/i;break;case o:V=te/r;break;default:V=te}return z?V:$.a(V)},P.daysInMonth=function(){return this.endOf(p).$D},P.$locale=function(){return v[this.$L]},P.locale=function(F,U){if(!F)return this.$L;var z=this.clone(),V=A(F,U,!0);return V&&(z.$L=V),z},P.clone=function(){return $.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},D})(),j=O.prototype;return I.prototype=j,[["$ms",a],["$s",o],["$m",l],["$H",h],["$W",u],["$M",p],["$y",m],["$D",y]].forEac
vendor: 16,003 bytes, line 1
1h((function(D){j[D[1]]=function(P){return this.$g(P,D[0],D[1])}})),I.extend=function(D,P){return D.$i||(D(P,O,I),D.$i=!0),I},I.locale=A,I.isDayjs=E,I.unix=function(D){return I(1e3*D)},I.en=v[b],I.Ls=v,I.p={},I}))}),rue,oh,ge,rC,Ko,jt=Y(()=>{"use strict";rue=_o(lD(),1),oh={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ge={trace:s((...e)=>{},"trace"),debug:s((...e)=>{},"debug"),info:s((...e)=>{},"info"),warn:s((...e)=>{},"warn"),error:s((...e)=>{},"error"),fatal:s((...e)=>{},"fatal")},rC=s(function(e="fatal"){let t=oh.fatal;typeof e=="string"?e.toLowerCase()in oh&&(t=oh[e]):typeof e=="number"&&(t=e),ge.trace=()=>{},ge.debug=()=>{},ge.info=()=>{},ge.warn=()=>{},ge.error=()=>{},ge.fatal=()=>{},t<=oh.fatal&&(ge.fatal=console.error?console.error.bind(console,Ko("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ko("FATAL"))),t<=oh.error&&(ge.error=console.error?console.error.bind(console,Ko("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ko("ERROR"))),t<=oh.warn&&(ge.warn=console.warn?console.warn.bind(console,Ko("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ko("WARN"))),t<=oh.info&&(ge.info=console.info?console.info.bind(console,Ko("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ko("INFO"))),t<=oh.debug&&(ge.debug=console.debug?console.debug.bind(console,Ko("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ko("DEBUG"))),t<=oh.trace&&(ge.trace=console.debug?console.debug.bind(console,Ko("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ko("TRACE")))},"setLogLevel"),Ko=s(e=>`%c${(0,rue.default)().format("ss.SSS")} : ${e} : `,"format")}),Mb,iue,Rmt=Y(()=>{"use strict";Mb={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(e=>e>=255?255:e<0?0:e,"r"),g:s(e=>e>=255?255:e<0?0:e,"g"),b:s(e=>e>=255?255:e<0?0:e,"b"),h:s(e=>e%360,"h"),s:s(e=>e>=100?100:e<0?0:e,"s"),l:s(e=>e>=100?100:e<0?0:e,"l"),a:s(e=>e>=1?1:e<0?0:e,"a")},toLinear:s(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:s((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:s(({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Mb.hue2rgb(a,n,e+.3333333333333333)*255;case"g":return Mb.hue2rgb(a,n,e)*255;case"b":return Mb.hue2rgb(a,n,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:s(({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;let n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;let l=n-a,h=o>.5?l/(2-n-a):l/(n+a);if(i==="s")return h*100;switch(n){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}},"rgb2hsl")},iue=Mb}),nue,aue,Imt=Y(()=>{"use strict";nue={clamp:s((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:s(e=>Math.round(e*1e10)/1e10,"round")},aue=nue}),sue,oue,Dmt=Y(()=>{"use strict";sue={dec2hex:s(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},oue=sue}),lue,Kr,Su=Y(()=>{"use strict";Rmt(),Imt(),Dmt(),lue={channel:iue,lang:aue,unit:oue},Kr=lue}),_u,ms,iC=Y(()=>{"use strict";Su(),_u={};for(let e=0;e<=255;e++)_u[e]=Kr.unit.dec2hex(e);ms={ALL:0,RGB:1,HSL:2}}),cue,hue,Nmt=Y(()=>{"use strict";var e;iC(),cue=(e=class{constructor(){this.type=ms.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=ms.ALL}is(r){return this.type===r}},f(e,"c7"),s(e,"Type"),e),hue=cue}),uue,due,Mmt=Y(()=>{"use strict";var e;Su(),Nmt(),iC(),uue=(e=class{constructor(r,i){this.color=i,this.changed=!1,this.data=r,this.type=new hue}set(r,i){return this.color=i,this.changed=!1,this.data=r,this.type.type=ms.ALL,this}_ensureHSL(){let r=this.data,{h:i,s:n,l:a}=r;i===void 0&&(r.h=Kr.channel.rgb2hsl(r,"h")),n===void 0&&(r.s=Kr.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=Kr.channel.rgb2hsl(r,"l"))}_ensureRGB(){let r=this.data,{r:i,g:n,b:a}=r;i===void 0&&(r.r=Kr.channel.hsl2rgb(r,"r")),n===void 0&&(r.g=Kr.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=Kr.channel.hsl2rgb(r,"b"))}get r(){let r=this.data,i=r.r;return!this.type.is(ms.HSL)&&i!==void 0?i:(this._ensureHSL(),Kr.channel.hsl2rgb(r,"r"))}get g(){let r=this.data,i=r.g;return!this.type.is(ms.HSL)&&i!==void 0?i:(this._ensureHSL(),Kr.channel.hsl2rgb(r,"g"))}get b(){let r=this.data,i=r.b;return!this.type.is(ms.HSL)&&i!==void 0?i:(this._ensureHSL(),Kr.channel.hsl2rgb(r,"b"))}get h(){let r=this.data,i=r.h;return!this.type.is(ms.RGB)&&i!==void 0?i:(this._ensureRGB(),Kr.channel.rgb2hsl(r,"h"))}get s(){let r=this.data,i=r.s;return!this.type.is(ms.RGB)&&i!==void 0?i:(this._ensureRGB(),Kr.channel.rgb2hsl(r,"s"))}get l(){let r=this.data,i=r.l;return!this.type.is(ms.RGB)&&i!==void 0?i:(this._ensureRGB(),Kr.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(ms.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(ms.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(ms.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(ms.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(ms.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(ms.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}},f(e,"u7"),s(e,"Channels"),e),due=uue}),pue,Ob,nC=Y(()=>{"use strict";Mmt(),pue=new due({r:0,g:0,b:0,a:0},"transparent"),Ob=pue}),cD,sm,gue=Y(()=>{"use strict";nC(),iC(),cD={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:s(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(cD.re);if(!t)return;let r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,l=o?1:17,h=o?8:4,u=a?0:-1,d=o?255:15;return Ob.set({r:(i>>h*(u+3)&d)*l,g:(i>>h*(u+2)&d)*l,b:(i>>h*(u+1)&d)*l,a:a?(i&d)*l/255:1},e)},"parse"),stringify:s(e=>{let{r:t,g:r,b:i,a:n}=e;return n<1?`#${_u[Math.round(t)]}${_u[Math.round(r)]}${_u[Math.round(i)]}${_u[Math.round(n*255)]}`:`#${_u[Math.round(t)]}${_u[Math.round(r)]}${_u[Math.round(i)]}`},"stringify")},sm=cD}),$b,Bb,Omt=Y(()=>{"use strict";Su(),nC(),$b={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(e=>{let t=e.match($b.hueRe);if(t){let[,r,i]=t;switch(i){case"grad":return Kr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Kr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Kr.channel.clamp.h(parseFloat(r)*360)}}return Kr.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:s(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match($b.re);if(!r)return;let[,i,n,a,o,l]=r;return Ob.set({h:$b._hue2deg(i),s:Kr.channel.clamp.s(parseFloat(n)),l:Kr.channel.clamp.l(parseFloat(a)),a:o?Kr.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},"parse"),stringify:s(e=>{let{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Kr.lang.round(t)}, ${Kr.lang.round(r)}%, ${Kr.lang.round(i)}%, ${n})`:`hsl(${Kr.lang.round(t)}, ${Kr.lang.round(r)}%, ${Kr.lang.round(i)}%)`},"stringify")},Bb=$b}),Pb,hD,$mt=Y(()=>{"use strict";gue(),Pb={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(e=>{e=e.toLowerCase();let t=Pb.colors[e];if(t)return sm.parse(t)},"parse"),stringify:s(e=>{let t=sm.stringify(e);for(let r in Pb.colors)if(Pb.colors[r]===t)return r},"stringify")},hD=Pb}),uD,Fb,Bmt=Y(()=>{"use strict";Su(),nC(),uD={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(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(uD.re);if(!r)return;let[,i,n,a,o,l,h,u,d]=r;return Ob.set({r:Kr.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Kr.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:Kr.channel.clamp.b(h?parseFloat(l)*2.55:parseFloat(l)),a:u?Kr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},"parse"),stringify:s(e=>{let{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Kr.lang.round(t)}, ${Kr.lang.round(r)}, ${Kr.lang.round(i)}, ${Kr.lang.round(n)})`:`rgb(${Kr.lang.round(t)}, ${Kr.lang.round(r)}, ${Kr.lang.round(i)})`},"stringify")},Fb=uD}),fue,wl,Kd=Y(()=>{"use strict";gue(),Omt(),$mt(),Bmt(),iC(),fue={format:{keyword:hD,hex:sm,rgb:Fb,rgba:Fb,hsl:Bb,hsla:Bb},parse:s(e=>{if(typeof e!="string")return e;let t=sm.parse(e)||Fb.parse(e)||Bb.parse(e)||hD.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:s(e=>!e.changed&&e.color?e.color:e.type.is(ms.HSL)||e.data.r===void 0?Bb.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Fb.stringify(e):sm.stringify(e),"stringify")},wl=fue}),mue,dD,yue=Y(()=>{"use strict";Su(),Kd(),mue=s((e,t)=>{let r=wl.parse(e);for(let i in t)r[i]=Kr.channel.clamp[i](t[i]);return wl.stringify(r)},"change"),dD=mue}),vue,Cl,bue=Y(()=>{"use strict";Su(),nC(),Kd(),yue(),vue=s((e,t,r=0,i=1)=>{if(typeof e!="number")return dD(e,{a:t});let n=Ob.set({r:Kr.channel.clamp.r(e),g:Kr.channel.clamp.g(t),b:Kr.channel.clamp.b(r),a:Kr.channel.clamp.a(i)});return wl.stringify(n)},"rgba"),Cl=vue}),xue,aC,Pmt=Y(()=>{"use strict";Su(),Kd(),xue=s((e,t)=>Kr.lang.round(wl.parse(e)[t]),"channel"),aC=xue}),kue,Tue,Fmt=Y(()=>{"use strict";Su(),Kd(),kue=s(e=>{let{r:t,g:r,b:i}=wl.parse(e),n=.2126*Kr.channel.toLinear(t)+.7152*Kr.channel.toLinear(r)+.0722*Kr.channel.toLinear(i);return Kr.lang.round(n)},"luminance"),Tue=kue}),wue,Cue,zmt=Y(()=>{"use strict";Fmt(),wue=s(e=>Tue(e)>=.5,"isLight"),Cue=wue}),Eue,Is,qmt=Y(()=>{"use strict";zmt(),Eue=s(e=>!Cue(e),"isDark"),Is=Eue}),Sue,sC,pD=Y(()=>{"use strict";Su(),Kd(),Sue=s((e,t,r)=>{let i=wl.parse(e),n=i[t],a=Kr.channel.clamp[t](n+r);return n!==a&&(i[t]=a),wl.stringify(i)},"adjustChannel"),sC=Sue}),_ue,mt,jmt=Y(()=>{"use strict";pD(),_ue=s((e,t)=>sC(e,"l",t),"lighten"),mt=_ue}),Aue,yt,Gmt=Y(()=>{"use strict";pD(),Aue=s((e,t)=>sC(e,"l",-t),"darken"),yt=Aue}),Lue,gD,Umt=Y(()=>{"use strict";pD(),Lue=s((e,t)=>sC(e,"a",-t),"transparentize"),gD=Lue}),Rue,me,Vmt=Y(()=>{"use strict";Kd(),yue(),Rue=s((e,t)=>{let r=wl.parse(e),i={};for(let n in t)t[n]&&(i[n]=r[n]+t[n]);return dD(e,i)},"adjust"),me=Rue}),Iue,Due,Wmt=Y(()=>{"use strict";Kd(),bue(),Iue=s((e,t,r=50)=>{let{r:i,g:n,b:a,a:o}=wl.parse(e),{r:l,g:h,b:u,a:d}=wl.parse(t),p=r/100,g=p*2-1,m=o-d,y=((g*m===-1?g:(g+m)/(1+g*m))+1)/2,x=1-y,C=i*y+l*x,w=n*y+h*x,_=a*y+u*x,S=o*p+d*(1-p);return Cl(C,w,_,S)},"mix"),Due=Iue}),Nue,ot,Hmt=Y(()=>{"use strict";Kd(),Wmt(),Nue=s((e,t=100)=>{let r=wl.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Due(r,e,t)},"invert"),ot=Nue}),Ymt=Y(()=>{"use strict";bue(),Pmt(),qmt(),jmt(),Gmt(),Umt(),Vmt(),Hmt()}),Ya=Y(()=>{"use strict";Ymt()}),ac,sc,lh=Y(()=>{"use strict";ac="#ffffff",sc="#f2f2f2"}),Hr,oc=Y(()=>{"use strict";Ya(),Hr=s((e,t)=>t?me(e,{s:-40,l:10}):me(e,{s:-40,l:-10}),"mkBorder")}),Mue,Oue,Xmt=Y(()=>{"use strict";var e;Ya(),lh(),oc(),Mue=(e=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J,H,te,ie,oe,he,pe,se,le;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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.edgeLabelBackgroun
vendor: 14,879 bytes, line 1
1d=this.edgeLabelBackground||(this.darkMode?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(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||mt(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.vertLineColor=this.vertLineColor||"navy",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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||yt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||yt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||mt(this.mainBkg,5)),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||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330}),this.darkMode)for(let ue=0;ue<this.THEME_COLOR_LIMIT;ue++)this["cScale"+ue]=yt(this["cScale"+ue],75);else for(let ue=0;ue<this.THEME_COLOR_LIMIT;ue++)this["cScale"+ue]=yt(this["cScale"+ue],25);for(let ue=0;ue<this.THEME_COLOR_LIMIT;ue++)this["cScaleInv"+ue]=this["cScaleInv"+ue]||ot(this["cScale"+ue]);for(let ue=0;ue<this.THEME_COLOR_LIMIT;ue++)this.darkMode?this["cScalePeer"+ue]=this["cScalePeer"+ue]||mt(this["cScale"+ue],10):this["cScalePeer"+ue]=this["cScalePeer"+ue]||yt(this["cScale"+ue],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let ue=0;ue<this.THEME_COLOR_LIMIT;ue++)this["cScaleLabel"+ue]=this["cScaleLabel"+ue]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let ue=0;ue<5;ue++)this["surface"+ue]=this["surface"+ue]||me(this.mainBkg,{h:180,s:-15,l:r*(5+ue*3)}),this["surfacePeer"+ue]=this["surfacePeer"+ue]||me(this.mainBkg,{h:180,s:-15,l:r*(8+ue*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||me(this.primaryColor,{h:64}),this.fillType3=this.fillType3||me(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||me(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||me(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||me(this.primaryColor,{h:128}),this.fillType7=this.fillType7||me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||me(this.primaryColor,{l:-10}),this.pie5=this.pie5||me(this.secondaryColor,{l:-10}),this.pie6=this.pie6||me(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||me(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=(i=this.venn1)!=null?i:me(this.primaryColor,{l:-30}),this.venn2=(n=this.venn2)!=null?n:me(this.secondaryColor,{l:-30}),this.venn3=(a=this.venn3)!=null?a:me(this.tertiaryColor,{l:-30}),this.venn4=(o=this.venn4)!=null?o:me(this.primaryColor,{h:60,l:-30}),this.venn5=(l=this.venn5)!=null?l:me(this.primaryColor,{h:-60,l:-30}),this.venn6=(h=this.venn6)!=null?h:me(this.secondaryColor,{h:60,l:-30}),this.venn7=(u=this.venn7)!=null?u:me(this.primaryColor,{h:120,l:-30}),this.venn8=(d=this.venn8)!=null?d:me(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=(p=this.vennTitleTextColor)!=null?p:this.titleColor,this.vennSetTextColor=(g=this.vennSetTextColor)!=null?g:this.textColor,this.radar={axisColor:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((R=this.radar)==null?void 0:R.graticuleOpacity)||.3,legendBoxSize:((b=this.radar)==null?void 0:b.legendBoxSize)||12,legendFontSize:((v=this.radar)==null?void 0:v.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((k=this.wardley)==null?void 0:k.backgroundColor)||this.background,axisColor:((E=this.wardley)==null?void 0:E.axisColor)||this.lineColor,axisTextColor:((A=this.wardley)==null?void 0:A.axisTextColor)||this.primaryTextColor,gridColor:((I=this.wardley)==null?void 0:I.gridColor)||this.gridColor,componentFill:(($=this.wardley)==null?void 0:$.componentFill)||this.background,componentStroke:((O=this.wardley)==null?void 0:O.componentStroke)||this.lineColor,componentLabelColor:((j=this.wardley)==null?void 0:j.componentLabelColor)||this.primaryTextColor,linkStroke:((D=this.wardley)==null?void 0:D.linkStroke)||this.lineColor,evolutionStroke:((P=this.wardley)==null?void 0:P.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((F=this.wardley)==null?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:((U=this.wardley)==null?void 0:U.annotationTextColor)||this.primaryTextColor,annotationFill:((z=this.wardley)==null?void 0:z.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((V=this.xyChart)==null?void 0:V.backgroundColor)||this.background,titleColor:((W=this.xyChart)==null?void 0:W.titleColor)||this.primaryTextColor,dataLabelColor:((X=this.xyChart)==null?void 0:X.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((J=this.xyChart)==null?void 0:J.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((H=this.xyChart)==null?void 0:H.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((te=this.xyChart)==null?void 0:te.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ie=this.xyChart)==null?void 0:ie.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((oe=this.xyChart)==null?void 0:oe.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((he=this.xyChart)==null?void 0:he.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((pe=this.xyChart)==null?void 0:pe.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((se=this.xyChart)==null?void 0:se.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((le=this.xyChart)==null?void 0:le.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||me(this.primaryColor,{h:-30}),this.git4=this.git4||me(this.primaryColor,{h:-60}),this.git5=this.git5||me(this.primaryColor,{h:-90}),this.git6=this.git6||me(this.primaryColor,{h:60}),this.git7=this.git7||me(this.primaryColor,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadMo
1delFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"g7"),s(e,"Theme"),e),Oue=s(t=>{let r=new Mue;return r.calculate(t),r},"getThemeVariables")}),$ue,Bue,Kmt=Y(()=>{"use strict";var e;Ya(),oc(),$ue=(e=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=mt(this.primaryColor,16),this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.background),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.lineColor=ot(this.background),this.textColor=ot(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=mt(ot("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Cl(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=yt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=yt(this.sectionBkgColor,10),this.taskBorderColor=Cl(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Cl(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||mt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||yt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J;this.secondBkg=mt(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.edgeLabelBackgroun
vendor: 5,887 bytes, line 1
1d=mt(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=mt(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=ot(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=me(this.primaryColor,{h:64}),this.fillType3=me(this.secondaryColor,{h:64}),this.fillType4=me(this.primaryColor,{h:-64}),this.fillType5=me(this.secondaryColor,{h:-64}),this.fillType6=me(this.primaryColor,{h:128}),this.fillType7=me(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||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330});for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||ot(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScalePeer"+H]=this["cScalePeer"+H]||mt(this["cScale"+H],10);for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||me(this.mainBkg,{h:30,s:-30,l:-(-10+H*4)}),this["surfacePeer"+H]=this["surfacePeer"+H]||me(this.mainBkg,{h:30,s:-30,l:-(-7+H*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["pie"+H]=this["cScale"+H];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let H=0;H<8;H++)this["venn"+(H+1)]=(r=this["venn"+(H+1)])!=null?r:mt(this["cScale"+H],30);this.vennTitleTextColor=(i=this.vennTitleTextColor)!=null?i:this.titleColor,this.vennSetTextColor=(n=this.vennSetTextColor)!=null?n:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 5,176 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,dataLabelColor:((l=this.xyChart)==null?void 0:l.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((h=this.xyChart)==null?void 0:h.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((d=this.xyChart)==null?void 0:d.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((p=this.xyChart)==null?void 0:p.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((g=this.xyChart)==null?void 0:g.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((y=this.xyChart)==null?void 0:y.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((w=this.radar)==null?void 0:w.axisColor)||this.lineColor,axisStrokeWidth:((_=this.radar)==null?void 0:_.axisStrokeWidth)||2,axisLabelFontSize:((S=this.radar)==null?void 0:S.axisLabelFontSize)||12,curveOpacity:((R=this.radar)==null?void 0:R.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((A=this.radar)==null?void 0:A.legendBoxSize)||12,legendFontSize:((I=this.radar)==null?void 0:I.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:(($=this.wardley)==null?void 0:$.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((j=this.wardley)==null?void 0:j.axisTextColor)||this.primaryTextColor,gridColor:((D=this.wardley)==null?void 0:D.gridColor)||this.gridColor,componentFill:((P=this.wardley)==null?void 0:P.componentFill)||this.mainBkg,componentStroke:((F=this.wardley)==null?void 0:F.componentStroke)||this.lineColor,componentLabelColor:((U=this.wardley)==null?void 0:U.componentLabelColor)||this.primaryTextColor,linkStroke:((z=this.wardley)==null?void 0:z.linkStroke)||this.lineColor,evolutionStroke:((V=this.wardley)==null?void 0:V.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((W=this.wardley)==null?void 0:W.annotationStroke)||this.lineColor,annotationTextColor:((X=this.wardley)==null?void 0:X.annotationTextColor)||this.primaryTextColor,annotationFill:((J=this.wardley)==null?void 0:J.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=mt(this.secondaryColor,20),this.git1=mt(this.pie2||this.secondaryColor,20),this.git2=mt(this.pie3||this.tertiaryColor,20),this.git3=mt(this.pie4||me(this.primaryColor,{h:-30}),20),this.git4=mt(this.pie5||me(this.primaryColor,{h:-60}),20),this.git5=mt(this.pie6||me(this.primaryColor,{h:-90}),10),this.git6=mt(this.pie7||me(this.primaryColor,{h:60}),10),this.git7=mt(this.pie8||me(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ot(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ot(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 7,431 bytes, line 1
1d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||mt("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||mt("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||mt("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||mt("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||mt(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||mt(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||mt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mt(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"y7"),s(e,"Theme"),e),Bue=s(t=>{let r=new $ue;return r.calculate(t),r},"getThemeVariables")}),Pue,sg,om=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Pue=(e=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=me(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.lineColor=ot(this.background),this.textColor=ot(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,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.clusterBkg="#FBFBFF",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.vertLineColor="calculated",this.sectionBkgColor=Cl(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.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J,H,te,ie,oe,he,pe,se;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScale"+le]=yt(this["cScale"+le],10),this["cScalePeer"+le]=this["cScalePeer"+le]||yt(this["cScale"+le],25);for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScaleInv"+le]=this["cScaleInv"+le]||me(this["cScale"+le],{h:180});for(let le=0;le<5;le++)this["surface"+le]=this["surface"+le]||me(this.mainBkg,{h:30,l:-(5+le*5)}),this["surfacePeer"+le]=this["surfacePeer"+le]||me(this.mainBkg,{h:30,l:-(7+le*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ot(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ot(this.labelTextColor);for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScaleLabel"+le]=this["cScaleLabel"+le]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
1d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||mt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||mt(this.primaryColor,1),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||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=me(this.primaryColor,{h:64}),this.fillType3=me(this.secondaryColor,{h:64}),this.fillType4=me(this.primaryColor,{h:-64}),this.fillType5=me(this.secondaryColor,{h:-64}),this.fillType6=me(this.primaryColor,{h:128}),this.fillType7=me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||me(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||me(this.primaryColor,{l:-10}),this.pie5=this.pie5||me(this.secondaryColor,{l:-30}),this.pie6=this.pie6||me(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||me(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=(r=this.venn1)!=null?r:me(this.primaryColor,{l:-30}),this.venn2=(i=this.venn2)!=null?i:me(this.secondaryColor,{l:-30}),this.venn3=(n=this.venn3)!=null?n:me(this.tertiaryColor,{l:-40}),this.venn4=(a=this.venn4)!=null?a:me(this.primaryColor,{h:60,l:-30}),this.venn5=(o=this.venn5)!=null?o:me(this.primaryColor,{h:-60,l:-30}),this.venn6=(l=this.venn6)!=null?l:me(this.secondaryColor,{h:60,l:-30}),this.venn7=(h=this.venn7)!=null?h:me(this.primaryColor,{h:120,l:-30}),this.venn8=(u=this.venn8)!=null?u:me(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=(d=this.vennTitleTextColor)!=null?d:this.titleColor,this.vennSetTextColor=(p=this.vennSetTextColor)!=null?p:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 5,303 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((y=this.radar)==null?void 0:y.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((S=this.radar)==null?void 0:S.graticuleOpacity)||.3,legendBoxSize:((R=this.radar)==null?void 0:R.legendBoxSize)||12,legendFontSize:((b=this.radar)==null?void 0:b.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((v=this.wardley)==null?void 0:v.backgroundColor)||this.background,axisColor:((k=this.wardley)==null?void 0:k.axisColor)||this.lineColor,axisTextColor:((E=this.wardley)==null?void 0:E.axisTextColor)||this.primaryTextColor,gridColor:((A=this.wardley)==null?void 0:A.gridColor)||this.gridColor,componentFill:((I=this.wardley)==null?void 0:I.componentFill)||this.background,componentStroke:(($=this.wardley)==null?void 0:$.componentStroke)||this.lineColor,componentLabelColor:((O=this.wardley)==null?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:((j=this.wardley)==null?void 0:j.linkStroke)||this.lineColor,evolutionStroke:((D=this.wardley)==null?void 0:D.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((P=this.wardley)==null?void 0:P.annotationStroke)||this.lineColor,annotationTextColor:((F=this.wardley)==null?void 0:F.annotationTextColor)||this.primaryTextColor,annotationFill:((U=this.wardley)==null?void 0:U.annotationFill)||this.background},this.xyChart={backgroundColor:((z=this.xyChart)==null?void 0:z.backgroundColor)||this.background,titleColor:((V=this.xyChart)==null?void 0:V.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((X=this.xyChart)==null?void 0:X.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((J=this.xyChart)==null?void 0:J.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((H=this.xyChart)==null?void 0:H.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((te=this.xyChart)==null?void 0:te.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((ie=this.xyChart)==null?void 0:ie.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((oe=this.xyChart)==null?void 0:oe.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((he=this.xyChart)==null?void 0:he.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((pe=this.xyChart)==null?void 0:pe.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((se=this.xyChart)==null?void 0:se.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||me(this.primaryColor,{h:-30}),this.git4=this.git4||me(this.primaryColor,{h:-60}),this.git5=this.git5||me(this.primaryColor,{h:-90}),this.git6=this.git6||me(this.primaryColor,{h:60}),this.git7=this.git7||me(this.primaryColor,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||yt(ot(this.git0),25),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ot(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ot(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 7,094 bytes, line 1
1d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"v7"),s(e,"Theme"),e),sg=s(t=>{let r=new Pue;return r.calculate(t),r},"getThemeVariables")}),Fue,zue,Zmt=Y(()=>{"use strict";var e;Ya(),lh(),oc(),Fue=(e=class{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=mt("#cde498",10),this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.primaryColor),this.lineColor=ot(this.background),this.textColor=ot(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J,H,te,ie,oe,he,pe,se;this.actorBorder=yt(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||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScale"+le]=yt(this["cScale"+le],10),this["cScalePeer"+le]=this["cScalePeer"+le]||yt(this["cScale"+le],25);for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScaleInv"+le]=this["cScaleInv"+le]||me(this["cScale"+le],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let le=0;le<this.THEME_COLOR_LIMIT;le++)this["cScaleLabel"+le]=this["cScaleLabel"+le]||this.scaleLabelColor;for(let le=0;le<5;le++)this["surface"+le]=this["surface"+le]||me(this.mainBkg,{h:30,s:-30,l:-(5+le*5)}),this["surfacePeer"+le]=this["surfacePeer"+le]||me(this.mainBkg,{h:30,s:-30,l:-(8+le*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||mt(this.mainBkg,20),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.labelBackgroun
1dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=me(this.primaryColor,{h:64}),this.fillType3=me(this.secondaryColor,{h:64}),this.fillType4=me(this.primaryColor,{h:-64}),this.fillType5=me(this.secondaryColor,{h:-64}),this.fillType6=me(this.primaryColor,{h:128}),this.fillType7=me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||me(this.primaryColor,{l:-30}),this.pie5=this.pie5||me(this.secondaryColor,{l:-30}),this.pie6=this.pie6||me(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||me(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=(r=this.venn1)!=null?r:me(this.primaryColor,{l:-30}),this.venn2=(i=this.venn2)!=null?i:me(this.secondaryColor,{l:-30}),this.venn3=(n=this.venn3)!=null?n:me(this.tertiaryColor,{l:-30}),this.venn4=(a=this.venn4)!=null?a:me(this.primaryColor,{h:60,l:-30}),this.venn5=(o=this.venn5)!=null?o:me(this.primaryColor,{h:-60,l:-30}),this.venn6=(l=this.venn6)!=null?l:me(this.secondaryColor,{h:60,l:-30}),this.venn7=(h=this.venn7)!=null?h:me(this.primaryColor,{h:120,l:-30}),this.venn8=(u=this.venn8)!=null?u:me(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=(d=this.vennTitleTextColor)!=null?d:this.titleColor,this.vennSetTextColor=(p=this.vennSetTextColor)!=null?p:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillC
vendor: 5,167 bytes, line 1
1olor:this.mainBkg},this.radar={axisColor:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((y=this.radar)==null?void 0:y.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((S=this.radar)==null?void 0:S.graticuleOpacity)||.3,legendBoxSize:((R=this.radar)==null?void 0:R.legendBoxSize)||12,legendFontSize:((b=this.radar)==null?void 0:b.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((v=this.wardley)==null?void 0:v.backgroundColor)||this.background,axisColor:((k=this.wardley)==null?void 0:k.axisColor)||this.lineColor,axisTextColor:((E=this.wardley)==null?void 0:E.axisTextColor)||this.primaryTextColor,gridColor:((A=this.wardley)==null?void 0:A.gridColor)||this.gridColor,componentFill:((I=this.wardley)==null?void 0:I.componentFill)||this.background,componentStroke:(($=this.wardley)==null?void 0:$.componentStroke)||this.lineColor,componentLabelColor:((O=this.wardley)==null?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:((j=this.wardley)==null?void 0:j.linkStroke)||this.lineColor,evolutionStroke:((D=this.wardley)==null?void 0:D.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((P=this.wardley)==null?void 0:P.annotationStroke)||this.lineColor,annotationTextColor:((F=this.wardley)==null?void 0:F.annotationTextColor)||this.primaryTextColor,annotationFill:((U=this.wardley)==null?void 0:U.annotationFill)||this.background},this.xyChart={backgroundColor:((z=this.xyChart)==null?void 0:z.backgroundColor)||this.background,titleColor:((V=this.xyChart)==null?void 0:V.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((X=this.xyChart)==null?void 0:X.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((J=this.xyChart)==null?void 0:J.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((H=this.xyChart)==null?void 0:H.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((te=this.xyChart)==null?void 0:te.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((ie=this.xyChart)==null?void 0:ie.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((oe=this.xyChart)==null?void 0:oe.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((he=this.xyChart)==null?void 0:he.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((pe=this.xyChart)==null?void 0:pe.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((se=this.xyChart)==null?void 0:se.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||me(this.primaryColor,{h:-30}),this.git4=this.git4||me(this.primaryColor,{h:-60}),this.git5=this.git5||me(this.primaryColor,{h:-90}),this.git6=this.git6||me(this.primaryColor,{h:60}),this.git7=this.git7||me(this.primaryColor,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ot(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ot(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 7,463 bytes, line 1
1d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"x7"),s(e,"Theme"),e),zue=s(t=>{let r=new Fue;return r.calculate(t),r},"getThemeVariables")}),que,jue,Qmt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),que=(e=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=mt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.lineColor=ot(this.background),this.textColor=ot(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.radius=5,this.strokeWidth=1,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.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J;this.secondBkg=mt(this.contrast,55),this.border2=this.contrast,this.actorBorder=mt(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 H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||ot(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this.darkMode?this["cScalePeer"+H]=this["cScalePeer"+H]||mt(this["cScale"+H],10):this["cScalePeer"+H]=this["cScalePeer"+H]||yt(this["cScale"+H],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||me(this.mainBkg,{l:-(5+H*5)}),this["surfacePeer"+H]=this["surfacePeer"+H]||me(this.mainBkg,{l:-(8+H*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=mt(this.contrast,30),this.sectionBkgColor2=mt(this.contrast,30),this.taskBorderColor=yt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=mt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=yt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 5,968 bytes, line 1
1dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=me(this.primaryColor,{h:64}),this.fillType3=me(this.secondaryColor,{h:64}),this.fillType4=me(this.primaryColor,{h:-64}),this.fillType5=me(this.secondaryColor,{h:-64}),this.fillType6=me(this.primaryColor,{h:128}),this.fillType7=me(this.secondaryColor,{h:128});for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["pie"+H]=this["cScale"+H];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let H=0;H<8;H++)this["venn"+(H+1)]=(r=this["venn"+(H+1)])!=null?r:this["cScale"+H];this.vennTitleTextColor=(i=this.vennTitleTextColor)!=null?i:this.titleColor,this.vennSetTextColor=(n=this.vennSetTextColor)!=null?n:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,dataLabelColor:((l=this.xyChart)==null?void 0:l.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((h=this.xyChart)==null?void 0:h.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((d=this.xyChart)==null?void 0:d.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((p=this.xyChart)==null?void 0:p.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((g=this.xyChart)==null?void 0:g.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((y=this.xyChart)==null?void 0:y.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((w=this.radar)==null?void 0:w.axisColor)||this.lineColor,axisStrokeWidth:((_=this.radar)==null?void 0:_.axisStrokeWidth)||2,axisLabelFontSize:((S=this.radar)==null?void 0:S.axisLabelFontSize)||12,curveOpacity:((R=this.radar)==null?void 0:R.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((A=this.radar)==null?void 0:A.legendBoxSize)||12,legendFontSize:((I=this.radar)==null?void 0:I.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(($=this.wardley)==null?void 0:$.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((j=this.wardley)==null?void 0:j.axisTextColor)||this.primaryTextColor,gridColor:((D=this.wardley)==null?void 0:D.gridColor)||this.gridColor,componentFill:((P=this.wardley)==null?void 0:P.componentFill)||this.background,componentStroke:((F=this.wardley)==null?void 0:F.componentStroke)||this.lineColor,componentLabelColor:((U=this.wardley)==null?void 0:U.componentLabelColor)||this.primaryTextColor,linkStroke:((z=this.wardley)==null?void 0:z.linkStroke)||this.lineColor,evolutionStroke:((V=this.wardley)==null?void 0:V.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((W=this.wardley)==null?void 0:W.annotationStroke)||this.lineColor,annotationTextColor:((X=this.wardley)==null?void 0:X.annotationTextColor)||this.primaryTextColor,annotationFill:((J=this.wardley)==null?void 0:J.annotationFill)||this.background}
vendor: 5,502 bytes, line 1
1,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=yt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||me(this.primaryColor,{h:-30}),this.git4=this.pie5||me(this.primaryColor,{h:-60}),this.git5=this.pie6||me(this.primaryColor,{h:-90}),this.git6=this.pie7||me(this.primaryColor,{h:60}),this.git7=this.pie8||me(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"b7"),s(e,"Theme"),e),jue=s(t=>{let r=new que;return r.calculate(t),r},"getThemeVariables")}),Gue,Uue,Jmt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Gue=(e=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,l,h,u,d,p,g,m,y,x,C,w,_;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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.edgeLabelBackgroun
vendor: 7,156 bytes, line 1
1d=this.edgeLabelBackground||(this.darkMode?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(this.lineColor);let r="#ECECFE",i="#E9E9F1",n=me(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||mt(r,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||r,this.cScale1=this.cScale1||i,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||me(r,{h:30}),this.cScale4=this.cScale4||me(r,{h:60}),this.cScale5=this.cScale5||me(r,{h:90}),this.cScale6=this.cScale6||me(r,{h:120}),this.cScale7=this.cScale7||me(r,{h:150}),this.cScale8=this.cScale8||me(r,{h:210,l:150}),this.cScale9=this.cScale9||me(r,{h:270}),this.cScale10=this.cScale10||me(r,{h:300}),this.cScale11=this.cScale11||me(r,{h:330}),this.darkMode)for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=yt(this["cScale"+S],75);else for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=yt(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||ot(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this.darkMode?this["cScalePeer"+S]=this["cScalePeer"+S]||mt(this["cScale"+S],10):this["cScalePeer"+S]=this["cScalePeer"+S]||yt(this["cScale"+S],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||me(this.mainBkg,{h:180,s:-15,l:a*(5+S*3)}),this["surfacePeer"+S]=this["surfacePeer"+S]||me(this.mainBkg,{h:180,s:-15,l:a*(8+S*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||i,this.fillType2=this.fillType2||me(r,{h:64}),this.fillType3=this.fillType3||me(i,{h:64}),this.fillType4=this.fillType4||me(r,{h:-64}),this.fillType5=this.fillType5||me(i,{h:-64}),this.fillType6=this.fillType6||me(r,{h:128}),this.fillType7=this.fillType7||me(i,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||i,this.pie3=this.pie3||n,this.pie4=this.pie4||me(r,{l:-10}),this.pie5=this.pie5||me(i,{l:-10}),this.pie6=this.pie6||me(n,{l:-10}),this.pie7=this.pie7||me(r,{h:60,l:-10}),this.pie8=this.pie8||me(r,{h:-60,l:-10}),this.pie9=this.pie9||me(r,{h:120,l:0}),this.pie10=this.pie10||me(r,{h:60,l:-20}),this.pie11=this.pie11||me(r,{h:-60,l:-20}),this.pie12=this.pie12||me(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(o=this.vennTitleTextColor)!=null?o:this.titleColor,this.vennSetTextColor=(l=this.vennSetTextColor)!=null?l:this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||me(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 9,764 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((u=this.xyChart)==null?void 0:u.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((m=this.xyChart)==null?void 0:m.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((x=this.xyChart)==null?void 0:x.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((C=this.xyChart)==null?void 0:C.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||i,this.git2=this.git2||n,this.git3=this.git3||me(r,{h:-30}),this.git4=this.git4||me(r,{h:-60}),this.git5=this.git5||me(r,{h:-90}),this.git6=this.git6||me(r,{h:60}),this.git7=this.git7||me(r,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"T7"),s(e,"Theme"),e),Uue=s(t=>{let r=new Gue;return r.calculate(t),r},"getThemeVariables")}),Vue,Wue,eyt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Vue=(e=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=mt(this.primaryColor,16),this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.background),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=mt(ot("#323D47"),10),this.border1="#ccc",this.border2=Cl(255,255,255,.25),this.arrowheadColor=ot(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var i,n,a,o,l,h,u,d,p,g,m,y,x;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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.border1,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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(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||mt(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 5,095 bytes, line 1
1dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330}),this.darkMode)for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=yt(this["cScale"+C],75);else for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=yt(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||ot(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||mt(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||yt(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||me(this.mainBkg,{h:180,s:-15,l:r*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||me(this.mainBkg,{h:180,s:-15,l:r*(8+C*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||me(this.primaryColor,{h:64}),this.fillType3=this.fillType3||me(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||me(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||me(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||me(this.primaryColor,{h:128}),this.fillType7=this.fillType7||me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||me(this.primaryColor,{l:-10}),this.pie5=this.pie5||me(this.secondaryColor,{l:-10}),this.pie6=this.pie6||me(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||me(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(i=this.vennTitleTextColor)!=null?i:this.titleColor,this.vennSetTextColor=(n=this.vennSetTextColor)!=null?n:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 4,070 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}
1),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"C7"),s(e,"Theme"),e),Wue=s(t=>{let r=new Vue;return r.calculate(t),r},"getThemeVariables")}),Hue,Yue,tyt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Hue=(e=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Hr("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,l,h,u,d,p,g,m,y,x,C,w,_,S;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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?yt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(this.lineColor);let r="#ECECFE",i="#E9E9F1",n=me(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||mt(r,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.compositeTitleBackgroun
vendor: 4,275 bytes, line 1
1d="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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;for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScale"+R]=this.mainBkg;if(this.darkMode)for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScale"+R]=yt(this["cScale"+R],75);else for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScale"+R]=yt(this["cScale"+R],25);for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleInv"+R]=this["cScaleInv"+R]||ot(this["cScale"+R]);for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this.darkMode?this["cScalePeer"+R]=this["cScalePeer"+R]||mt(this["cScale"+R],10):this["cScalePeer"+R]=this["cScalePeer"+R]||yt(this["cScale"+R],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleLabel"+R]=this["cScaleLabel"+R]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let R=0;R<5;R++)this["surface"+R]=this["surface"+R]||me(this.mainBkg,{h:180,s:-15,l:a*(5+R*3)}),this["surfacePeer"+R]=this["surfacePeer"+R]||me(this.mainBkg,{h:180,s:-15,l:a*(8+R*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||i,this.fillType2=this.fillType2||me(r,{h:64}),this.fillType3=this.fillType3||me(i,{h:64}),this.fillType4=this.fillType4||me(r,{h:-64}),this.fillType5=this.fillType5||me(i,{h:-64}),this.fillType6=this.fillType6||me(r,{h:128}),this.fillType7=this.fillType7||me(i,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||i,this.pie3=this.pie3||n,this.pie4=this.pie4||me(r,{l:-10}),this.pie5=this.pie5||me(i,{l:-10}),this.pie6=this.pie6||me(n,{l:-10}),this.pie7=this.pie7||me(r,{h:60,l:-10}),this.pie8=this.pie8||me(r,{h:-60,l:-10}),this.pie9=this.pie9||me(r,{h:120,l:0}),this.pie10=this.pie10||me(r,{h:60,l:-20}),this.pie11=this.pie11||me(r,{h:-60,l:-20}),this.pie12=this.pie12||me(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(o=this.vennTitleTextColor)!=null?o:this.titleColor,this.vennSetTextColor=(l=this.vennSetTextColor)!=null?l:this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||me(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((u=this.xyChart)==null?void 0:u.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((m=this.xyChart)==null?void 0:m.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((x=this.xyChart)==null?void 0:x.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((C=this.xyChart)==null?void 0:C.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||i,this.git2=this.git2||n,this.git3=this.git3||me(r,{h:-30}),this.git4=this.git4||me(r,{h:-60}),this.git5=this.git5||me(r,{h:-90}),this.git6=this.git6||me(r,{h:60}),this.git7=this.git7||me(r,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=(S=this.commitLineColor)!=null?S:"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);
1i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"k7"),s(e,"Theme"),e),Yue=s(t=>{let r=new Hue;return r.calculate(t),r},"getThemeVariables")}),Xue,Kue,ryt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Xue=(e=class{constructor(){var r,i;this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=mt(this.primaryColor,16),this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.background),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=mt(ot("#323D47"),10),this.border1="#ccc",this.border2=Cl(255,255,255,.25),this.arrowheadColor=ot(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=(r=this.noteBkgColor)!=null?r:"#FEF9C3",this.noteTextColor=(i=this.noteTextColor)!=null?i:"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var i,n,a,o,l,h,u,d,p,g,m,y,x,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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.border1,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?yt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(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||mt(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
vendor: 5,297 bytes, line 1
1d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||me(this.primaryColor,{h:30}),this.cScale4=this.cScale4||me(this.primaryColor,{h:60}),this.cScale5=this.cScale5||me(this.primaryColor,{h:90}),this.cScale6=this.cScale6||me(this.primaryColor,{h:120}),this.cScale7=this.cScale7||me(this.primaryColor,{h:150}),this.cScale8=this.cScale8||me(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||me(this.primaryColor,{h:270}),this.cScale10=this.cScale10||me(this.primaryColor,{h:300}),this.cScale11=this.cScale11||me(this.primaryColor,{h:330}),this.darkMode)for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=yt(this["cScale"+w],75);else for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=yt(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||ot(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||mt(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||yt(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||me(this.mainBkg,{h:180,s:-15,l:r*(5+w*3)}),this["surfacePeer"+w]=this["surfacePeer"+w]||me(this.mainBkg,{h:180,s:-15,l:r*(8+w*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||me(this.primaryColor,{h:64}),this.fillType3=this.fillType3||me(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||me(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||me(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||me(this.primaryColor,{h:128}),this.fillType7=this.fillType7||me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||me(this.primaryColor,{l:-10}),this.pie5=this.pie5||me(this.secondaryColor,{l:-10}),this.pie6=this.pie6||me(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||me(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(i=this.vennTitleTextColor)!=null?i:this.titleColor,this.vennSetTextColor=(n=this.vennSetTextColor)!=null?n:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 4,123 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||me(this.primaryColor,{h:-30}),this.git4=this.git4||me(this.primaryColor,{h:-60}),this.git5=this.git5||me(this.primaryColor,{h:-90}),this.git6=this.git6||me(this.primaryColor,{h:60}),this.git7=this.git7||me(this.primaryColor,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=(C=this.commitLineColor)!=null?C:"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroun
vendor: 5,666 bytes, line 1
1dColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"w7"),s(e,"Theme"),e),Kue=s(t=>{let r=new Xue;return r.calculate(t),r},"getThemeVariables")}),Zue,Que,iyt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Zue=(e=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Hr(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,l,h,u,d,p,g,m,y,x,C,w,_,S;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(this.lineColor);let r="#ECECFE",i="#E9E9F1",n=me(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||mt(r,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 4,304 bytes, line 1
1dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleInv"+R]=this["cScaleInv"+R]||ot(this["cScale"+R]);for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this.darkMode?this["cScalePeer"+R]=this["cScalePeer"+R]||mt(this["cScale"+R],10):this["cScalePeer"+R]=this["cScalePeer"+R]||yt(this["cScale"+R],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleLabel"+R]=this["cScaleLabel"+R]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let R=0;R<5;R++)this["surface"+R]=this["surface"+R]||me(this.mainBkg,{h:180,s:-15,l:a*(5+R*3)}),this["surfacePeer"+R]=this["surfacePeer"+R]||me(this.mainBkg,{h:180,s:-15,l:a*(8+R*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||i,this.fillType2=this.fillType2||me(r,{h:64}),this.fillType3=this.fillType3||me(i,{h:64}),this.fillType4=this.fillType4||me(r,{h:-64}),this.fillType5=this.fillType5||me(i,{h:-64}),this.fillType6=this.fillType6||me(r,{h:128}),this.fillType7=this.fillType7||me(i,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||i,this.pie3=this.pie3||n,this.pie4=this.pie4||me(r,{l:-10}),this.pie5=this.pie5||me(i,{l:-10}),this.pie6=this.pie6||me(n,{l:-10}),this.pie7=this.pie7||me(r,{h:60,l:-10}),this.pie8=this.pie8||me(r,{h:-60,l:-10}),this.pie9=this.pie9||me(r,{h:120,l:0}),this.pie10=this.pie10||me(r,{h:60,l:-20}),this.pie11=this.pie11||me(r,{h:-60,l:-20}),this.pie12=this.pie12||me(r,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(o=this.vennTitleTextColor)!=null?o:this.titleColor,this.vennSetTextColor=(l=this.vennSetTextColor)!=null?l:this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||me(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((u=this.xyChart)==null?void 0:u.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((m=this.xyChart)==null?void 0:m.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((x=this.xyChart)==null?void 0:x.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((C=this.xyChart)==null?void 0:C.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||i,this.git2=this.git2||n,this.git3=this.git3||me(r,{h:-30}),this.git4=this.git4||me(r,{h:-60}),this.git5=this.git5||me(r,{h:-90}),this.git6=this.git6||me(r,{h:60}),this.git7=this.git7||me(r,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=(S=this.commitLineColor)!=null?S:"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);
1i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"S7"),s(e,"Theme"),e),Que=s(t=>{let r=new Zue;return r.calculate(t),r},"getThemeVariables")}),Jue,ede,nyt=Y(()=>{"use strict";var e;Ya(),oc(),lh(),Jue=(e=class{constructor(){var r,i;this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=mt(this.primaryColor,16),this.tertiaryColor=me(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.background),this.secondaryBorderColor=Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Hr(this.tertiaryColor,this.darkMode),this.primaryTextColor=ot(this.primaryColor),this.secondaryTextColor=ot(this.secondaryColor),this.tertiaryTextColor=ot(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=mt(ot("#323D47"),10),this.border1="#ccc",this.border2=Cl(255,255,255,.25),this.arrowheadColor=ot(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=(r=this.noteBkgColor)!=null?r:"#FEF9C3",this.noteTextColor=(i=this.noteTextColor)!=null?i:"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var i,n,a,o,l,h,u,d,p,g,m,y,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||me(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||me(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Hr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Hr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Hr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Hr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ot(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ot(this.tertiaryColor),this.lineColor=this.lineColor||ot(this.background),this.arrowheadColor=this.arrowheadColor||ot(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.border1,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?yt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ot(this.lineColor),this.rootLabelColor="#FFFFFF",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||mt(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.labelBackgroun
vendor: 4,682 bytes, line 1
1dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||ot(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||mt(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||yt(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=yt(this["cScale"+w],75);let r=this.darkMode?-4:-1;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||me(this.mainBkg,{h:180,s:-15,l:r*(5+w*3)}),this["surfacePeer"+w]=this["surfacePeer"+w]||me(this.mainBkg,{h:180,s:-15,l:r*(8+w*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||me(this.primaryColor,{h:64}),this.fillType3=this.fillType3||me(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||me(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||me(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||me(this.primaryColor,{h:128}),this.fillType7=this.fillType7||me(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||me(this.primaryColor,{l:-10}),this.pie5=this.pie5||me(this.secondaryColor,{l:-10}),this.pie6=this.pie6||me(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||me(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||me(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||me(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||me(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||me(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||me(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=(i=this.vennTitleTextColor)!=null?i:this.titleColor,this.vennSetTextColor=(n=this.vennSetTextColor)!=null?n:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||me(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||me(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||me(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||me(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||me(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||me(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Is(this.quadrant1Fill)?mt(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 4,097 bytes, line 1
1nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||me(this.primaryColor,{h:-30}),this.git4=this.git4||me(this.primaryColor,{h:-60}),this.git5=this.git5||me(this.primaryColor,{h:-90}),this.git6=this.git6||me(this.primaryColor,{h:60}),this.git7=this.git7||me(this.primaryColor,{h:120}),this.darkMode?(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||ot(this.git0),this.gitInv1=this.gitInv1||ot(this.git1),this.gitInv2=this.gitInv2||ot(this.git2),this.gitInv3=this.gitInv3||ot(this.git3),this.gitInv4=this.gitInv4||ot(this.git4),this.gitInv5=this.gitInv5||ot(this.git5),this.gitInv6=this.gitInv6||ot(this.git6),this.gitInv7=this.gitInv7||ot(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=(C=this.commitLineColor)!=null?C:"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroun
1dColorOdd||ac,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||sc}calculate(r){if(typeof r!="object"){this.updateColors();return}let i=Object.keys(r);i.forEach(n=>{this[n]=r[n]}),this.updateColors(),i.forEach(n=>{this[n]=r[n]})}},f(e,"E7"),s(e,"Theme"),e),ede=s(t=>{let r=new Jue;return r.calculate(t),r},"getThemeVariables")}),ch,fD=Y(()=>{"use strict";Xmt(),Kmt(),om(),Zmt(),Qmt(),Jmt(),eyt(),tyt(),ryt(),iyt(),nyt(),ch={base:{getThemeVariables:Oue},dark:{getThemeVariables:Bue},default:{getThemeVariables:sg},forest:{getThemeVariables:zue},neutral:{getThemeVariables:jue},neo:{getThemeVariables:Uue},"neo-dark":{getThemeVariables:Wue},redux:{getThemeVariables:Yue},"redux-dark":{getThemeVariables:Kue},"redux-color":{getThemeVariables:Que},"redux-dark-color":{getThemeVariables:ede}}}),Ds,ayt=Y(()=>{"use strict";Ds={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},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,maxLabelWidth:360,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},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,nodeSpacing:140,rankSpacing:80,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,showDataLabel:!1,showDataLabelOutsideBar:!1,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,axisLineWi
1dth: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,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
117},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},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}}),mD,yD,tde,bi,rs=Y(()=>{"use strict";fD(),ayt(),mD=_r(Tt({},Ds),{deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:ch.default.getThemeVariables(),sequence:_r(Tt({},Ds.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")}),class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:_r(Tt({},Ds.gantt),{tickInterval:void 0,useWidth:void 0}),c4:_r(Tt({},Ds.c4),{useWidth:void 0,personFont:s(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:_r(Tt({},Ds.flowchart),{inheritDir:!1}),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:_r(Tt({},Ds.pie),{useWidth:984}
vendor: 23,844 bytes, lines 1-2
1),xyChart:_r(Tt({},Ds.xyChart),{useWidth:void 0}),requirement:_r(Tt({},Ds.requirement),{useWidth:void 0}),packet:Tt({},Ds.packet),eventmodeling:Tt({},Ds.eventmodeling),treeView:_r(Tt({},Ds.treeView),{useWidth:void 0}),radar:Tt({},Ds.radar),ishikawa:Tt({},Ds.ishikawa),sankey:_r(Tt({},Ds.sankey),{nodeColors:void 0}),treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:Tt({},Ds.venn)}),yD=s((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...yD(e[i],"")]:[...r,t+i],[]),"keyify"),tde=new Set(yD(mD,"")),bi=mD}),zb,vD,bD=Y(()=>{"use strict";rs(),jt(),zb=s(e=>{if(ge.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>zb(t));return}for(let t of Object.keys(e)){if(ge.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!tde.has(t)||e[t]==null){ge.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){if(t==="nodeColors"){let i=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(let n of Object.keys(e[t]))(typeof e[t][n]!="string"||!i.test(e[t][n]))&&(ge.debug("sanitize deleting invalid color:",n,e[t][n]),delete e[t][n])}else ge.debug("sanitizing object",t),zb(e[t]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)t.includes(i)&&(ge.debug("sanitizing css option",t),e[t]=vD(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ge.debug("After sanitization",e)}},"sanitizeDirective"),vD=s(e=>{let t=0,r=0;for(let i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss")}),og,hh,ro,oC,Zd,lm,qb,rde,ide,nde,xD,kD,Ir,TD,ade,jb,sde,wD,CD,ED,ode,Vi,ti=Y(()=>{"use strict";Nb(),jt(),fD(),rs(),bD(),og=Object.freeze(bi),hh=s(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),ro=la({},og),Zd=[],lm=la({},og),qb=s((e,t)=>{let r=la({},e),i={};for(let n of t)TD(n),i=la(i,n);if(r=la(r,i),i.theme&&i.theme in ch){let n=la({},oC),a=la(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in ch&&(r.themeVariables=ch[r.theme].getThemeVariables(a))}return lm=r,ED(lm),lm},"updateCurrentConfig"),rde=s(e=>(ro=la({},og),ro=la(ro,e),e.theme&&ch[e.theme]&&(ro.themeVariables=ch[e.theme].getThemeVariables(e.themeVariables)),qb(ro,Zd),ro),"setSiteConfig"),ide=s(e=>{oC=la({},e)},"saveConfigFromInitialize"),nde=s(e=>(ro=la(ro,e),qb(ro,Zd),ro),"updateSiteConfig"),xD=s(()=>la({},ro),"getSiteConfig"),kD=s(e=>(ED(e),la(lm,e),Ir()),"setConfig"),Ir=s(()=>la({},lm),"getConfig"),TD=s(e=>{var t;e&&(["secure",...(t=ro.secure)!=null?t:[]].forEach(r=>{Object.hasOwn(e,r)&&(ge.debug(`Denied attempt to modify a secure key ${r}`,e[r]),delete e[r])}),Object.keys(e).forEach(r=>{r.startsWith("__")&&delete e[r]}),Object.keys(e).forEach(r=>{typeof e[r]=="string"&&(e[r].includes("<")||e[r].includes(">")||e[r].includes("url(data:"))&&delete e[r],typeof e[r]=="object"&&TD(e[r])}))},"sanitize"),ade=s(e=>{var t;zb(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables=_r(Tt({},e.themeVariables),{fontFamily:e.fontFamily})),Zd.push(e),qb(ro,Zd)},"addDirective"),jb=s((e=ro)=>{Zd=[],qb(e,Zd)},"reset"),sde={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},wD={},CD=s(e=>{wD[e]||(ge.warn(sde[e]),wD[e]=!0)},"issueWarning"),ED=s(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&CD("LAZY_LOAD_DEPRECATED")},"checkConfig"),ode=s(()=>{let e={};oC&&(e=la(e,oC));for(let t of Zd)e=la(e,t);return e},"getUserDefinedConfig"),Vi=s(e=>{var t,r,i,n;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&CD("FLOWCHART_HTML_LABELS_DEPRECATED"),hh((n=(i=e.htmlLabels)!=null?i:(r=e.flowchart)==null?void 0:r.htmlLabels)!=null?n:!0)},"getEffectiveHtmlLabels")});function Ns(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return lC(e,t,i)}}f(Ns,"Ua");function lde(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return cC(e,r)}}f(lde,"jNe");function xi(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gb;AD&&AD(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){let a=r(n);a!==n&&(hde(t)||(t[i]=a),n=a)}e[n]=!0}return e}f(xi,"$r");function cde(e){for(let t=0;t<e.length;t++)El(e,t)||(e[t]=null);return e}f(cde,"XNe");function lc(e){let t=hm(null);for(let[r,i]of _D(e))El(e,r)&&(Array.isArray(i)?t[r]=cde(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=lc(i):t[r]=i);return t}f(lc,"tc");function cm(e,t){for(;e!==null;){let i=dde(e,t);if(i){if(i.get)return Ns(i.get);if(typeof i.value=="function")return Ns(i.value)}e=ude(e)}function r(){return null}return f(r,"r"),s(r,"fallbackValue"),r}f(cm,"ov");function SD(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_de(),t=s($e=>SD($e),"DOMPurify");if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==gm.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:h,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:g,trustedTypes:m}=e,y=h.prototype,x=cm(y,"cloneNode"),C=cm(y,"remove"),w=cm(y,"nextSibling"),_=cm(y,"childNodes"),S=cm(y,"parentNode");if(typeof o=="function"){let $e=r.createElement("template");$e.content&&$e.content.ownerDocument&&(r=$e.content.ownerDocument)}let R,b="",{implementation:v,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:A}=r,{importNode:I}=i,$=BD();t.isSupported=typeof _D=="function"&&typeof S=="function"&&v&&v.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:j,TMPLIT_EXPR:D,DATA_ATTR:P,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:V}=$D,{IS_ALLOWED_URI:W}=$D,X=null,J=xi({},[...RD,...dC,...pC,...gC,...ID]),H=null,te=xi({},[...DD,...fC,...ND,...Ub]),ie=Object.seal(hm(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}})),oe=null,he=null,pe=Object.seal(hm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),se=!0,le=!0,ue=!1,de=!0,we=!1,De=!0,Ge=!1,be=!1,qe=!1,Ie=!1,Be=!1,ke=!1,Qe=!0,Pe=!1,ht="user-content-",Xe=!0,dt=!1,at={},kt=null,Le=xi({},["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"]),lt=null,ve=xi({},["audio","video","img","source","image","track"]),tt=null,Q=xi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml",Se=_e,Je=!1,Re=null,et=xi({},[xe,ae,_e],hC),ze=xi({},["mi","mo","mn","ms","mtext"]),Ke=xi({},["annotation-xml"]),We=xi({},["title","style","font","a","script"]),nt=null,Te=["application/xhtml+xml","text/html"],bt="text/html",Ae=null,ft=null,Nt=r.createElement("form"),Wt=s(function($e){return $e instanceof RegExp||$e instanceof Function},"isRegexOrFunction"),Ht=s(function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ft&&ft===$e)){if((!$e||typeof $e!="object")&&($e={}),$e=lc($e),nt=Te.indexOf($e.PARSER_MEDIA_TYPE)===-1?bt:$e.PARSER_MEDIA_TYPE,Ae=nt==="application/xhtml+xml"?hC:Gb,X=El($e,"ALLOWED_TAGS")?xi({},$e.ALLOWED_TAGS,Ae):J,H=El($e,"ALLOWED_ATTR")?xi({},$e.ALLOWED_ATTR,Ae):te,Re=El($e,"ALLOWED_NAMESPACES")?xi({},$e.ALLOWED_NAMESPACES,hC):et,tt=El($e,"ADD_URI_SAFE_ATTR")?xi(lc(Q),$e.ADD_URI_SAFE_ATTR,Ae):Q,lt=El($e,"ADD_DATA_URI_TAGS")?xi(lc(ve),$e.ADD_DATA_URI_TAGS,Ae):ve,kt=El($e,"FORBID_CONTENTS")?xi({},$e.FORBID_CONTENTS,Ae):Le,oe=El($e,"FORBID_TAGS")?xi({},$e.FORBID_TAGS,Ae):lc({}),he=El($e,"FORBID_ATTR")?xi({},$e.FORBID_ATTR,Ae):lc({}),at=El($e,"USE_PROFILES")?$e.USE_PROFILES:!1,se=$e.ALLOW_ARIA_ATTR!==!1,le=$e.ALLOW_DATA_ATTR!==!1,ue=$e.ALLOW_UNKNOWN_PROTOCOLS||!1,de=$e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=$e.SAFE_FOR_TEMPLATES||!1,De=$e.SAFE_FOR_XML!==!1,Ge=$e.WHOLE_DOCUMENT||!1,Ie=$e.RETURN_DOM||!1,Be=$e.RETURN_DOM_FRAGMENT||!1,ke=$e.RETURN_TRUSTED_TYPE||!1,qe=$e.FORCE_BODY||!1,Qe=$e.SANITIZE_DOM!==!1,Pe=$e.SANITIZE_NAMED_PROPS||!1,Xe=$e.KEEP_CONTENT!==!1,dt=$e.IN_PLACE||!1,W=$e.ALLOWED_URI_REGEXP||MD,Se=$e.NAMESPACE||_e,ze=$e.MATHML_TEXT_INTEGRATION_POINTS||ze,Ke=$e.HTML_INTEGRATION_POINTS||Ke,ie=$e.CUSTOM_ELEMENT_HANDLING||hm(null),$e.CUSTOM_ELEMENT_HANDLING&&Wt($e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=$e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$e.CUSTOM_ELEMENT_HANDLING&&Wt($e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=$e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$e.CUSTOM_ELEMENT_HANDLING&&typeof $e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=$e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(le=!1),Be&&(Ie=!0),at&&(X=xi({},ID),H=hm(null),at.html===!0&&(xi(X,RD),xi(H,DD)),at.svg===!0&&(xi(X,dC),xi(H,fC),xi(H,Ub)),at.svgFilters===!0&&(xi(X,pC),xi(H,fC),xi(H,Ub)),at.mathMl===!0&&(xi(X,gC),xi(H,ND),xi(H,Ub))),pe.tagCheck=null,pe.attributeCheck=null,$e.ADD_TAGS&&(typeof $e.ADD_TAGS=="function"?pe.tagCheck=$e.ADD_TAGS:(X===J&&(X=lc(X)),xi(X,$e.ADD_TAGS,Ae))),$e.ADD_ATTR&&(typeof $e.ADD_ATTR=="function"?pe.attributeCheck=$e.ADD_ATTR:(H===te&&(H=lc(H)),xi(H,$e.ADD_ATTR,Ae))),$e.ADD_URI_SAFE_ATTR&&xi(tt,$e.ADD_URI_SAFE_ATTR,Ae),$e.FORBID_CONTENTS&&(kt===Le&&(kt=lc(kt)),xi(kt,$e.FORBID_CONTENTS,Ae)),$e.ADD_FORBID_CONTENTS&&(kt===Le&&(kt=lc(kt)),xi(kt,$e.ADD_FORBID_CONTENTS,Ae)),Xe&&(X["#text"]=!0),Ge&&xi(X,["html","head","body"]),X.table&&(xi(X,["tbody"]),delete oe.tbody),$e.TRUSTED_TYPES_POLICY){if(typeof $e.TRUSTED_TYPES_POLICY.createHTML!="function")throw pm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=$e.TRUSTED_TYPES_POLICY,b=R.createHTML("")}else R===void 0&&(R=Ade(m,n)),R!==null&&typeof b=="string"&&(b=R.createHTML(""));Ms&&Ms($e),ft=$e}},"_parseConfig"),Ft=xi({},[...dC,...pC,...yde]),Qt=xi({},[...gC,...vde]),Dt=s(function($e){let zt=S($e);(!zt||!zt.tagName)&&(zt={namespaceURI:Se,tagName:"template"});let Rt=Gb($e.tagName),Or=Gb(zt.tagName);return Re[$e.namespaceURI]?$e.namespaceURI===ae?zt.namespaceURI===_e?Rt==="svg":zt.namespaceURI===xe?Rt==="svg"&&(Or==="annotation-xml"||ze[Or]):!!Ft[Rt]:$e.namespaceURI===xe?zt.namespaceURI===_e?Rt==="math":zt.namespaceURI===ae?Rt==="math"&&Ke[Or]:!!Qt[Rt]:$e.namespaceURI===_e?zt.namespaceURI===ae&&!Ke[Or]||zt.namespaceURI===xe&&!ze[Or]?!1:!Qt[Rt]&&(We[Rt]||!Ft[Rt]):!!(nt==="application/xhtml+xml"&&Re[$e.namespaceURI]):!1},"_checkValidNamespace"),Mt=s(function($e){dm(t.removed,{element:$e});try{S($e).removeChild($e)}catch(zt){C($e)}},"_forceRemove"),$t=s(function($e,zt){try{dm(t.removed,{attribute:zt.getAttributeNode($e),from:zt})}catch(Rt){dm(t.removed,{attribute:null,from:zt})}if(zt.removeAttribute($e),$e==="is")if(Ie||Be)try{Mt(zt)}catch(Rt){}else try{zt.setAttribute($e,"")}catch(Rt){}},"_removeAttribute"),At=s(function($e){let zt=null,Rt=null;if(qe)$e="<remove></remove>"+$e;else{let Wr=uC($e,/^[\r\n\t ]+/);Rt=Wr&&Wr[0]}nt==="application/xhtml+xml"&&Se===_e&&($e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$e+"</body></html>");let Or=R?R.createHTML($e):$e;if(Se===_e)try{zt=new g().parseFromString(Or,nt)}catch(Wr){}if(!zt||!zt.documentElement){zt=v.createDocument(Se,"template",null);try{zt.documentElement.innerHTML=Je?b:Or}catch(Wr){}}let ni=zt.body||zt.documentElement;return $e&&Rt&&ni.insertBefore(r.createTextNode(Rt),ni.childNodes[0]||null),Se===_e?A.call(zt,Ge?"html":"body")[0]:Ge?zt.documentElement:ni},"_initDocument"),Kt=s(function($e){return k.call($e.ownerDocument||$e,$e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),rr=s(function($e){return $e instanceof p&&(typeof $e.nodeName!="string"||typeof $e.textContent!="string"||typeof $e.removeChild!="function"||!($e.attributes instanceof d)||typeof $e.removeAttribute!="function"||typeof $e.setAttribute!="function"||typeof $e.namespaceURI!="string"||typeof $e.insertBefore!="function"||typeof $e.hasChildNodes!="function")},"_isClobbered"),ei=s(function($e){return typeof l=="function"&&$e instanceof l},"_isNode");function qt($e,zt,Rt){um($e,Or=>{Or.call(t,zt,Rt,ft)})}f(qt,"nt"),s(qt,"_executeHooks");let Qr=s(function($e){let zt=null;if(qt($.beforeSanitizeElements,$e,null),rr($e))return Mt($e),!0;let Rt=Ae($e.nodeName);if(qt($.uponSanitizeElement,$e,{tagName:Rt,allowedTags:X}),De&&$e.hasChildNodes()&&!ei($e.firstElementChild)&&Os(/<[/\w!]/g,$e.innerHTML)&&Os(/<[/\w!]/g,$e.textContent)||De&&$e.namespaceURI===_e&&Rt==="style"&&ei($e.firstElementChild)||$e.nodeType===gm.progressingInstruction||De&&$e.nodeType===gm.comment&&Os(/<[/\w]/g,$e.data))return Mt($e),!0;if(oe[Rt]||!(pe.tagCheck instanceof Function&&pe.tagCheck(Rt))&&!X[Rt]){if(!oe[Rt]&&Ar(Rt)&&(ie.tagNameCheck instanceof RegExp&&Os(ie.tagNameCheck,Rt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Rt)))return!1;if(Xe&&!kt[Rt]){let Or=S($e)||$e.parentNode,ni=_($e)||$e.childNodes;if(ni&&Or){let Wr=ni.length;for(let Ti=Wr-1;Ti>=0;--Ti){let _i=x(ni[Ti],!0);_i.__removalCount=($e.__removalCount||0)+1,Or.insertBefore(_i,w($e))}}}return Mt($e),!0}return $e instanceof h&&!Dt($e)||(Rt==="noscript"||Rt==="noembed"||Rt==="noframes")&&Os(/<\/no(script|embed|frames)/i,$e.innerHTML)?(Mt($e),!0):(we&&$e.nodeType===gm.text&&(zt=$e.textContent,um([O,j,D],Or=>{zt=lg(zt,Or," ")}),$e.textContent!==zt&&(dm(t.removed,{element:$e.cloneNode()}),$e.textContent=zt)),qt($.afterSanitizeElements,$e,null),!1)},"_sanitizeElements"),or=s(function($e,zt,Rt){if(he[zt]||Qe&&(zt==="id"||zt==="name")&&(Rt in r||Rt in Nt))return!1;if(!(le&&!he[zt]&&Os(P,zt))&&!(se&&Os(F,zt))&&!(pe.attributeCheck instanceof Function&&pe.attributeCheck(zt,$e))){if(!H[zt]||he[zt]){if(!(Ar($e)&&(ie.tagNameCheck instanceof RegExp&&Os(ie.tagNameCheck,$e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck($e))&&(ie.attributeNameCheck instanceof RegExp&&Os(ie.attributeNameCheck,zt)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(zt,$e))||zt==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&Os(ie.tagNameCheck,Rt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Rt))))return!1}else if(!tt[zt]&&!Os(W,lg(Rt,z,""))&&!((zt==="src"||zt==="xlink:href"||zt==="href")&&$e!=="script"&&fde(Rt,"data:")===0&<[$e])&&!(ue&&!Os(U,lg(Rt,z,"")))&&Rt)return!1}return!0},"_isValidAttribute"),Ar=s(function($e){return $e!=="annotation-xml"&&uC($e,V)},"_isBasicCustomElement"),li=s(function($e){qt($.beforeSanitizeAttributes,$e,null);let{attributes:zt}=$e;if(!zt||rr($e))return;let Rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0},Or=zt.length;for(;Or--;){let ni=zt[Or],{name:Wr,namespaceURI:Ti,value:_i}=ni,Ai=Ae(Wr),aa=_i,yi=Wr==="value"?aa:mde(aa);if(Rt.attrName=Ai,Rt.attrValue=yi,Rt.keepAttr=!0,Rt.forceKeepAttr=void 0,qt($.uponSanitizeAttribute,$e,Rt),yi=Rt.attrValue,Pe&&(Ai==="id"||Ai==="name")&&($t(Wr,$e),yi=ht+yi),De&&Os(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,yi)){$t(Wr,$e);continue}if(Ai==="attributename"&&uC(yi,"href")){$t(Wr,$e);continue}if(Rt.forceKeepAttr)continue;if(!Rt.keepAttr){$t(Wr,$e);continue}if(!de&&Os(/\/>/i,yi)){$t(Wr,$e);continue}we&&um([O,j,D],Ct=>{yi=lg(yi,Ct," ")});let hn=Ae($e.nodeName);if(!or(hn,Ai,yi)){$t(Wr,$e);continue}if(R&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ti)switch(m.getAttributeType(hn,Ai)){case"TrustedHTML":{yi=R.createHTML(yi);break}case"TrustedScriptURL":{yi=R.createScriptURL(yi);break}}if(yi!==aa)try{Ti?$e.setAttributeNS(Ti,Wr,yi):$e.setAttribute(Wr,yi),rr($e)?Mt($e):LD(t.removed)}catch(Ct){$t(Wr,$e)}}qt($.afterSanitizeAttributes,$e,null)},"_sanitizeAttributes"),ki=s(function($e){let zt=null,Rt=Kt($e);for(qt($.beforeSanitizeShadowDOM,$e,null);zt=Rt.nextNode();)qt($.uponSanitizeShadowNode,zt,null),Qr(zt),li(zt),zt.content instanceof a&&ki(zt.content);qt($.afterSanitizeShadowDOM,$e,null)},"_sanitizeShadowDOM");return t.sanitize=function($e){let zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=null,Or=null,ni=null,Wr=null;if(Je=!$e,Je&&($e="<!-->"),typeof $e!="string"&&!ei($e))if(typeof $e.toString=="function"){if($e=$e.toString(),typeof $e!="string")throw pm("dirty is not a string, aborting")}else throw pm("toString is not a function");if(!t.isSupported)return $e;if(be||Ht(zt),t.removed=[],typeof $e=="string"&&(dt=!1),dt){if($e.nodeName){let Ai=Ae($e.nodeName);if(!X[Ai]||oe[Ai])throw pm("root node is forbidden and cannot be sanitized in-place")}}else if($e instanceof l)Rt=At("<!---->"),Or=Rt.ownerDocument.importNode($e,!0),Or.nodeType===gm.element&&Or.nodeName==="BODY"||Or.nodeName==="HTML"?Rt=Or:Rt.appendChild(Or);else{if(!Ie&&!we&&!Ge&&$e.indexOf("<")===-1)return R&&ke?R.createHTML($e):$e;if(Rt=At($e),!Rt)return Ie?null:ke?b:""}Rt&&qe&&Mt(Rt.firstChild);let Ti=Kt(dt?$e:Rt);for(;ni=Ti.nextNode();)Qr(ni),li(ni),ni.content instanceof a&&ki(ni.content);if(dt)return $e;if(Ie){if(we){Rt.normalize();let Ai=Rt.innerHTML;um([O,j,D],aa=>{Ai=lg(Ai,aa," ")}),Rt.innerHTML=Ai}if(Be)for(Wr=E.call(Rt.ownerDocument);Rt.firstChild;)Wr.appendChild(Rt.firstChild);else Wr=Rt;return(H.shadowroot||H.shadowrootmode)&&(Wr=I.call(i,Wr,!0)),Wr}let _i=Ge?Rt.outerHTML:Rt.innerHTML;return Ge&&X["!doctype"]&&Rt.ownerDocument&&Rt.ownerDocument.doctype&&Rt.ownerDocument.doctype.name&&Os(OD,Rt.ownerDocument.doctype.name)&&(_i="<!DOCTYPE "+Rt.ownerDocument.doctype.name+`> 2`+_i),we&&um([O,j,D],Ai=>{_i=lg(_i,Ai," ")}),R&&ke?R.createHTML(_i):_i},t.setConfig=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ht($e),be=!0},t.clearConfig=function(){ft=null,be=!1},t.isValidAttribute=function($e,zt,Rt){ft||Ht({});let Or=Ae($e),ni=Ae(zt);return or(Or,ni,Rt)},t.addHook=function($e,zt){typeof zt=="function"&&dm($[$e],zt)},t.removeHook=function($e,zt){if(zt!==void 0){let Rt=pde($[$e],zt);return Rt===-1?void 0:gde($[$e],Rt,1)[0]}return LD($[$e])},t.removeHooks=function($e){$[$e]=[]},t.removeAllHooks=function(){$=BD()},t}f(SD,"hY");var _D,AD,hde,ude,dde,Ms,Zo,hm,lC,cC,um,pde,LD,dm,gde,Gb,hC,uC,lg,fde,mde,El,Os,pm,RD,dC,pC,yde,gC,vde,ID,DD,fC,ND,Ub,bde,xde,kde,Tde,wde,MD,Cde,Ede,OD,Sde,$D,gm,_de,Ade,BD,Au,mC=Y(()=>{"use strict";({entries:_D,setPrototypeOf:AD,isFrozen:hde,getPrototypeOf:ude,getOwnPropertyDescriptor:dde}=Object),{freeze:Ms,seal:Zo,create:hm}=Object,{apply:lC,construct:cC}=typeof Reflect<"u"&&Reflect,Ms||(Ms=s(function(e){return e},"freeze")),Zo||(Zo=s(function(e){return e},"seal")),lC||(lC=s(function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return e.apply(t,i)},"apply")),cC||(cC=s(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return new e(...r)},"construct")),um=Ns(Array.prototype.forEach),pde=Ns(Array.prototype.lastIndexOf),LD=Ns(Array.prototype.pop),dm=Ns(Array.prototype.push),gde=Ns(Array.prototype.splice),Gb=Ns(String.prototype.toLowerCase),hC=Ns(String.prototype.toString),uC=Ns(String.prototype.match),lg=Ns(String.prototype.replace),fde=Ns(String.prototype.indexOf),mde=Ns(String.prototype.trim),El=Ns(Object.prototype.hasOwnProperty),Os=Ns(RegExp.prototype.test),pm=lde(TypeError),s(Ns,"unapply"),s(lde,"unconstruct"),s(xi,"addToSet"),s(cde,"cleanArray"),s(lc,"clone"),s(cm,"lookupGetter"),RD=Ms(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dC=Ms(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pC=Ms(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yde=Ms(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gC=Ms(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vde=Ms(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ID=Ms(["#text"]),DD=Ms(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),fC=Ms(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ND=Ms(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ub=Ms(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bde=Zo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xde=Zo(/<%[\w\W]*|[\w\W]*%>/gm),kde=Zo(/\$\{[\w\W]*/gm),Tde=Zo(/^data-[\-\w.\u00B7-\uFFFF]+$/),wde=Zo(/^aria-[\-\w]+$/),MD=Zo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cde=Zo(/^(?:\w+script|data):/i),Ede=Zo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),OD=Zo(/^html$/i),Sde=Zo(/^[a-z][.\w]*(-[.\w]+)+$/i),$D=Object.freeze({__proto__:null,ARIA_ATTR:wde,ATTR_WHITESPACE:Ede,CUSTOM_ELEMENT:Sde,DATA_ATTR:Tde,DOCTYPE_NAME:OD,ERB_EXPR:xde,IS_ALLOWED_URI:MD,IS_SCRIPT_OR_DATA:Cde,MUSTACHE_EXPR:bde,TMPLIT_EXPR:kde}),gm={element:1,text:3,progressingInstruction:7,comment:8,document:9},_de=s(function(){return typeof window>"u"?null:window},"getGlobal"),Ade=s(function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));let n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},"_createTrustedTypesPolicy"),BD=s(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap"),s(SD,"createDOMPurify"),Au=SD()}),Lde={};Jr(Lde,{ParseError:f(()=>Yt,"ParseError"),SETTINGS_SCHEMA:f(()=>fm,"SETTINGS_SCHEMA"),__defineFunction:f(()=>hr,"__defineFunction"),__defineMacro:f(()=>
vendor: 5,864 bytes, line 2
2Ce,"__defineMacro"),__defineSymbol:f(()=>re,"__defineSymbol"),__domTree:f(()=>bM,"__domTree"),__parse:f(()=>fM,"__parse"),__renderToDomTree:f(()=>dx,"__renderToDomTree"),__renderToHTMLTree:f(()=>yM,"__renderToHTMLTree"),__setFontMetrics:f(()=>FD,"__setFontMetrics"),default:f(()=>w0e,"default"),render:f(()=>s6,"render"),renderToString:f(()=>gM,"renderToString"),version:f(()=>vM,"version")});function Rde(e){return String(e).replace(qde,t=>zde[t])}f(Rde,"fIe");function Ide(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}f(Ide,"yIe");function Dde(e){for(var t=0;t<EC.length;t++)for(var r=EC[t],i=0;i<r.blocks.length;i++){var n=r.blocks[i];if(e>=n[0]&&e<=n[1])return r.name}return null}f(Dde,"wIe");function PD(e){for(var t=0;t<Xb.length;t+=2)if(e>=Xb[t]&&e<=Xb[t+1])return!0;return!1}f(PD,"qY");function FD(e,t){uc[e]=t}f(FD,"UY");function yC(e,t,r){if(!uc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),n=uc[t][i];if(!n&&e[0]in KD&&(i=KD[e[0]].charCodeAt(0),n=uc[t][i]),!n&&r==="text"&&PD(i)&&(n=uc[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}f(yC,"uD");function Nde(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!SC[t]){var r=SC[t]={cssEmPerMu:Kb.quad[t]/18};for(var i in Kb)Kb.hasOwnProperty(i)&&(r[i]=Kb[i][t])}return SC[t]}f(Nde,"OIe");function zD(e){if(e instanceof el)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}f(zD,"gY");function Mde(e){if(e instanceof vm)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}f(Mde,"zIe");function re(e,t,r,i,n,a){un[e][n]={font:t,group:r,replace:i},a&&i&&(un[e][i]=un[e][n])}f(re,"q");function hr(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:o}=e,l={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},h=0;h<r.length;++h)gN[r[h]]=l;t&&(a&&(nx[t]=a),o&&(ax[t]=o))}f(hr,"Bt");function Qd(e){var{type:t,htmlBuilder:r,mathmlBuilder:i}=e;hr({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}f(Qd,"qf");function Vb(e,t){var r=fh(["base"],e,t),i=fh(["strut"]);return i.style.height=tr(r.height+r.depth),r.depth&&(i.style.verticalAlign=tr(-r.depth)),r.children.unshift(i),r}f(Vb,"UC");function vC(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var i=Ma(e,t,"root"),n;i.length===2&&i[1].hasClass("tag")&&(n=i.pop());for(var a=[],o=[],l=0;l<i.length;l++)if(o.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var h=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,o.push(i[l]),i[l].hasClass("nobreak")&&(h=!0);h||(a.push(Vb(o,t)),o=[])}else i[l].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(Vb(o,t)),o=[]),a.push(i[l]));o.length>0&&a.push(Vb(o,t));var u;r?(u=Vb(Ma(r,t,!0)),u.classes=["tag"],a.push(u)):n&&a.push(n);var d=fh(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var p=u.children[0];p.style.height=tr(d.height+d.depth),d.depth&&(p.style.verticalAlign=tr(-d.depth))}return d}f(vC,"rD");function qD(e){return new ym(e)}f(qD,"ij");function bC(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof dc&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof dc&&r.text===","}else return!1}f(bC,"G7");function jD(e,t,r,i,n){var a=no(e,r),o;a.length===1&&a[0]instanceof Lo&&["mrow","mtable"].includes(a[0].type)?o=a[0]:o=new Ut.MathNode("mrow",a);var l=new Ut.MathNode("annotation",[new Ut.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var h=new Ut.MathNode("semantics",[o,l]),u=new Ut.MathNode("math",[h]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&u.setAttribute("display","block");var d=n?"katex":"katex-mathml";return pt.makeSpan([d],[u])}f(jD,"TY");function di(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}f(di,"Nr");function xC(e){var t=Wb(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}f(xC,"pD");function Wb(e){return e&&(e.type==="atom"||ppe.hasOwnProperty(e.type))?e:null}f(Wb,"sk");function GD(e,t){var r=Ma(e.body,t,!0);return Upe([e.mclass],r,t)}f(GD,"oj");function UD(e,t){var r,i=no(e.body,t);return e.mclass==="minner"?r=new Ut.MathNode("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(r=i[0],r.type="mi"):r=new Ut.MathNode("mi",i):(e.isCharacterBox?(r=i[0],r.type="mo"):r=new Ut.MathNode("mo",i),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}f(UD,"lj");function Ode(e,t,r){var i=Vpe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:i,mode:"math",family:"rel"},o=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[n,o,l]};return r.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);
vendor: 1,264 bytes, line 2
2case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}f(Ode,"T9e");function $de(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Yt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],n=[i],a=0;a<t.length;a++){for(var o=t[a],l=xN(),h=0;h<o.length;h++)if(!kN(o[h]))l.body.push(o[h]);else{i.push(l),h+=1;var u=xC(o[h]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var p=0;p<2;p++){for(var g=!0,m=h+1;m<o.length;m++){if(Wpe(o[m],u)){g=!1,h=m;break}if(kN(o[m]))throw new Yt("Missing a "+u+" character to complete a CD arrow.",o[m]);d[p].body.push(o[m])}if(g)throw new Yt("Missing a "+u+" character to complete a CD arrow.",o[h])}else throw new Yt('Expected one of "<>AV=|." after @',o[h]);var y=Ode(u,d,e),x={type:"styling",body:[y],mode:"math",style:"display"};i.push(x),l=xN()}
vendor: 14,109 bytes, lines 2-34
2a%2===0?i.push(l):i.shift(),i=[],n.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}f($de,"C9e");function Hb(e,t){var r=Wb(e);if(r&&a0e.includes(r.text))return r;throw r?new Yt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Yt("Invalid delimiter type '"+e.type+"'",e)}f(Hb,"lk");function VD(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}f(VD,"SY");function cc(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:o}=e,l={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},h=0;h<r.length;++h)ON[r[h]]=l;a&&(nx[t]=a),o&&(ax[t]=o)}f(cc,"sc");function Ce(e,t){$N[e]=t}f(Ce,"he");function WD(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}f(WD,"EY");function kC(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}f(kC,"xD");function Lu(e,t,r){var{hskipBeforeAndAfter:i,addJot:n,cols:a,arraystretch:o,colSeparationType:l,autoTag:h,singleRow:u,emptySingleRow:d,maxNumCols:p,leqno:g}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new Yt("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var y=[],x=[y],C=[],w=[],_=h!=null?[]:void 0;function S(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}f(S,"T"),s(S,"beginRow");function R(){_&&(e.gullet.macros.get("\\df@tag")?(_.push(e.subparse([new Sl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):_.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(f(R,"w"),s(R,"endRow"),S(),w.push(WD(e));;){var b=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),b={type:"ordgroup",mode:e.mode,body:b},r&&(b={type:"styling",mode:e.mode,style:r,body:[b]}),y.push(b);var v=e.fetch().text;if(v==="&"){if(p&&y.length===p){if(u||l)throw new Yt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(v==="\\end"){R(),y.length===1&&b.type==="styling"&&b.body[0].body.length===0&&(x.length>1||!d)&&x.pop(),w.length<x.length+1&&w.push([]);break}else if(v==="\\\\"){e.consume();var k=void 0;e.gullet.future().text!==" "&&(k=e.parseSizeGroup(!0)),C.push(k?k.value:null),R(),w.push(WD(e)),y=[],x.push(y),S()}else throw new Yt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:o,body:x,cols:a,rowGaps:C,hskipBeforeAndAfter:i,hLinesBeforeRow:w,colSeparationType:l,tags:_,leqno:g}}f(Lu,"Gh");function TC(e){return e.slice(0,1)==="d"?"display":"text"}f(TC,"bD");function HD(e,t,r){for(var i=Ma(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,a=0;a<i.length;a++){var o=i[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(i[a].classes,t.sizingClasses(r)):i[a].classes[o+1]==="reset-size"+t.size&&(i[a].classes[o+1]="reset-size"+r.size),i[a].height*=n,i[a].depth*=n}return pt.makeFragment(i)}f(HD,"Lj");var Qo,Sl,Yt,Bde,Pde,Fde,zde,qde,YD,jde,Gde,Ude,Fi,fm,wC,Ru,CC,Yb,cg,uh,mm,Jo,hg,$s,hc,Vde,Wde,Hde,Yde,Xde,Kde,Pr,EC,Xb,ug,Zde,Qde,Jde,epe,tpe,rpe,ipe,npe,ape,XD,spe,ym,uc,Kb,KD,SC,ope,ZD,QD,JD,_C,lpe,eN,Xn,tr,Iu,tN,rN,cpe,iN,vm,AC,hpe,upe,el,dh,Du,LC,dpe,ppe,un,ce,Bt,ye,je,$n,dr,Bs,dg,Fr,ka,Ao,Zb,Ve,ph,Ze,nN,aN,sN,RC,oN,lN,IC,Qb,Jb,DC,Zr,Jn,Ps,Nu,Jd,NC,ex,MC,tx,cN,gpe,rx,_l,fpe,mpe,ype,vpe,bpe,OC,io,hN,xpe,kpe,uN,Tpe,wpe,Cpe,Epe,ix,dN,pN,Spe,pt,Kn,ep,gh,_pe,Ape,gN,nx,ax,sx,ca,fh,Lpe,Rpe,Ipe,Dpe,Ma,fN,mN,Npe,$C,bm,Ni,Lo,dc,Mpe,Ut,tl,BC,PC,no,Mu,ln,yN,vN,Ope,$pe,Bpe,Ppe,Fpe,zpe,qpe,jpe,mh,FC,bN,Gpe,ox,Upe,lx,Vpe,xN,kN,Wpe,TN,wN,zC,CN,Hpe,EN,xm,qC,SN,Ype,Xpe,_N,jC,GC,UC,cx,Kpe,Zpe,AN,VC,WC,HC,Qpe,LN,Jpe,RN,km,e0e,t0e,r0e,IN,i0e,DN,NN,n0e,yh,MN,a0e,YC,XC,ON,$N,hx,pc,s0e,gc,BN,PN,FN,zN,qN,jN,KC,ZC,GN,UN,VN,o0e,QC,WN,HN,YN,pg,Tm,l0e,c0e,XN,h0e,KN,u0e,ZN,d0e,QN,JC,e6,JN,eM,tM,p0e,rM,iM,Ou,nM,g0e,f0e,m0e,y0e,t6,v0e,b0e,aM,x0e,k0e,sM,r6,oM,i6,lM,cM,hM,T0e,uM,ux,n6,dM,pM,a6,s6,gM,fM,mM,dx,yM,vM,bM,w0e,syt=Y(()=>{"use strict";var e,t,r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R;for(Qo=(e=class{constructor(v,k,E){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=v,this.start=k,this.end=E}static range(v,k){return k?!v||!v.loc||!k.loc||v.loc.lexer!==k.loc.lexer?null:new e(v.loc.lexer,v.loc.start,k.loc.end):v&&v.loc}},f(e,"e"),s(e,"SourceLocation"),e),Sl=(t=class{constructor(v,k){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=v,this.loc=k}range(v,k){return new t(k,Qo.range(this,v))}},f(t,"e"),s(t,"Token"),t),Yt=(r=class{constructor(v,k){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var E="KaTeX parse error: "+v,A,I,$=k&&k.loc;if($&&$.start<=$.end){var O=$.lexer.input;A=$.start,I=$.end,A===O.length?E+=" at end of input: ":E+=" at position "+(A+1)+": ";var j=O.slice(A,I).replace(/[^]/g,"$&\u0332"),D;A>15?D="\u2026"+O.slice(A-15,A):D=O.slice(0,A);var P;I+15<O.length?P=O.slice(I,I+15)+"\u2026":P=O.slice(I),E+=D+j+P}var F=new Error(E);return F.name="ParseError",F.__proto__=r.prototype,F.position=A,A!=null&&I!=null&&(F.length=I-A),F.rawMessage=v,F}},f(r,"e"),s(r,"ParseError"),r),Yt.prototype.__proto__=Error.prototype,Bde=s(function(b,v){return b===void 0?v:b},"deflt"),Pde=/([A-Z])/g,Fde=s(function(b){return b.replace(Pde,"-$1").toLowerCase()},"hyphenate"),zde={"&":"&",">":">","<":"<",'"':""","'":"'"},qde=/[&><"']/g,s(Rde,"escape"),YD=s(f(function b(v){return v.type==="ordgroup"||v.type==="color"?v.body.length===1?b(v.body[0]):v:v.type==="font"?b(v.body):v},"e"),"getBaseElem"),jde=s(function(b){var v=YD(b);return v.type==="mathord"||v.type==="textord"||v.type==="atom"},"isCharacterBox"),Gde=s(function(b){if(!b)throw new Error("Expected non-null, but got "+String(b));return b},"assert"),Ude=s(function(b){var v=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(b);return v?v[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(v[1])?null:v[1].toLowerCase():"_relative"},"protocolFromUrl"),Fi={deflt:Bde,escape:Rde,hyphenate:Fde,getBaseElem:YD,isCharacterBox:jde,protocolFromUrl:Ude},fm={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 <type>"},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 <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(b=>"#"+b,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:s((b,v)=>(v.push(b),v),"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(b=>Math.max(0,b),"processor"),cli:"--min-rule-thickness <size>",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(b=>Math.max(0,b),"processor"),cli:"-s, --max-size <n>",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(b=>Math.max(0,b),"processor"),cli:"-e, --max-expand <n>",cliProcessor:s(b=>b==="Infinity"?1/0:parseInt(b),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}},s(Ide,"getDefaultValue"),wC=(i=class{constructor(v){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,v=v||{};for(var k in fm)if(fm.hasOwnProperty(k)){var E=fm[k];this[k]=v[k]!==void 0?E.processor?E.processor(v[k]):v[k]:Ide(E)}}reportNonstrict(v,k,E){var A=this.strict;if(typeof A=="function"&&(A=A(v,k,E)),!(!A||A==="ignore")){if(A===!0||A==="error")throw new Yt("LaTeX-incompatible input and strict mode is set to 'error': "+(k+" ["+v+"]"),E);A==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(k+" ["+v+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+A+"': "+k+" ["+v+"]"))}}useStrictBehavior(v,k,E){var A=this.strict;if(typeof A=="function")try{A=A(v,k,E)}catch(I){A="error"}return!A||A==="ignore"?!1:A===!0||A==="error"?!0:A==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(k+" ["+v+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+A+"': "+k+" ["+v+"]")),!1)}isTrusted(v){if(v.url&&!v.protocol){var k=Fi.protocolFromUrl(v.url);if(k==null)return!1;v.protocol=k}var E=typeof this.trust=="function"?this.trust(v):this.trust;return!!E}},f(i,"gv"),s(i,"Settings"),i),Ru=(n=class{constructor(v,k,E){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=v,this.size=k,this.cramped=E}sup(){return hc[Vde[this.id]]}sub(){return hc[Wde[this.id]]}fracNum(){return hc[Hde[this.id]]}fracDen(){return hc[Yde[this.id]]}cramp(){return hc[Xde[this.id]]}text(){return hc[Kde[this.id]]}isTight(){return this.size>=2}},f(n,"rc"),s(n,"Style"),n),CC=0,Yb=1,cg=2,uh=3,mm=4,Jo=5,hg=6,$s=7,hc=[new Ru(CC,0,!1),new Ru(Yb,0,!0),new Ru(cg,1,!1),new Ru(uh,1,!0),new Ru(mm,2,!1),new Ru(Jo,2,!0),new Ru(hg,3,!1),new Ru($s,3,!0)],Vde=[mm,Jo,mm,Jo,hg,$s,hg,$s],Wde=[Jo,Jo,Jo,Jo,$s,$s,$s,$s],Hde=[cg,uh,mm,Jo,hg,$s,hg,$s],Yde=[uh,uh,Jo,Jo,$s,$s,$s,$s],Xde=[Yb,Yb,uh,uh,Jo,Jo,$s,$s],Kde=[CC,Yb,cg,uh,cg,uh,cg,uh],Pr={DISPLAY:hc[CC],TEXT:hc[cg],SCRIPT:hc[mm],SCRIPTSCRIPT:hc[hg]},EC=[{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(Dde,"scriptFromCodepoint"),Xb=[],EC.forEach(b=>b.blocks.forEach(v=>Xb.push(...v))),s(PD,"supportedCodepoint"),ug=80,Zde=s(function(b,v){return"M95,"+(622+b+v)+` 3c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 4c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 5c44.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 6s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 7c69,-144,104.5,-217.7,106.5,-221 8l`+b/2.075+" -"+b+` 9c5.3,-9.3,12,-14,20,-14 10H400000v`+(40+b)+`H845.2724 11s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 12c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 13M`+(834+b)+" "+v+"h400000v"+(40+b)+"h-400000z"},"sqrtMain"),Qde=s(function(b,v){return"M263,"+(601+b+v)+`c0.7,0,18,39.7,52,119 14c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 15c340,-704.7,510.7,-1060.3,512,-1067 16l`+b/2.084+" -"+b+` 17c4.7,-7.3,11,-11,19,-11 18H40000v`+(40+b)+`H1012.3 19s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 20c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 21s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 22c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 23M`+(1001+b)+" "+v+"h400000v"+(40+b)+"h-400000z"},"sqrtSize1"),Jde=s(function(b,v){return"M983 "+(10+b+v)+` 24l`+b/3.13+" -"+b+` 25c4,-6.7,10,-10,18,-10 H400000v`+(40+b)+` 26H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 27s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 28c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 29c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 30c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 31c53.7,-170.3,84.5,-266.8,92.5,-289.5z 32M`+(1001+b)+" "+v+"h400000v"+(40+b)+"h-400000z"},"sqrtSize2"),epe=s(function(b,v){return"M424,"+(2398+b+v)+` 33c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 34c0,-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
35s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 36s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 37l`+b/4.223+" -"+b+`c4,-6.7,10,-10,18,-10 H400000 38v`+(40+b)+`H1014.6 39s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 40c-2,6,-10,9,-24,9 41c-8,0,-12,-0.7,-12,-2z M`+(1001+b)+" "+v+` 42h400000v`+(40+b)+"h-400000z"},"sqrtSize3"),tpe=s(function(b,v){return"M473,"+(2713+b+v)+` 43c339.3,-1799.3,509.3,-2700,510,-2702 l`+b/5.298+" -"+b+` 44c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+b)+`H1017.7 45s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 46c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 47c0,-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 48s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 49606zM`+(1001+b)+" "+v+"h400000v"+(40+b)+"H1017.7z"},"sqrtSize4"),rpe=s(function(b){var v=b/2;return"M400000 "+b+" H0 L"+v+" 0 l65 45 L145 "+(b-80)+" H400000z"},"phasePath"),ipe=s(function(b,v,k){var E=k-54-v-b;return"M702 "+(b+v)+"H400000"+(40+b)+` 50H742v`+E+`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 51h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 52c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 53219 661 l218 661zM702 `+v+"H400000v"+(40+b)+"H742z"},"sqrtTall"),npe=s(function(b,v,k){v=1e3*v;var E="";switch(b){case"sqrtMain":E=Zde(v,ug);break;case"sqrtSize1":E=Qde(v,ug);break;case"sqrtSize2":E=Jde(v,ug);break;case"sqrtSize3":E=epe(v,ug);break;case"sqrtSize4":E=tpe(v,ug);break;case"sqrtTall":E=ipe(v,ug,k)}return E},"sqrtPath"),ape=s(function(b,v){switch(b){case"\u239C":return"M291 0 H417 V"+v+" H291z M291 0 H417 V"+v+" H291z";case"\u2223":return"M145 0 H188 V"+v+" H145z M145 0 H188 V"+v+" H145z";case"\u2225":return"M145 0 H188 V"+v+" H145z M145 0 H188 V"+v+" H145z"+("M367 0 H410 V"+v+" H367z M367 0 H410 V"+v+" H367z");case"\u239F":return"M457 0 H583 V"+v+" H457z M457 0 H583 V"+v+" H457z";case"\u23A2":return"M319 0 H403 V"+v+" H319z M319 0 H403 V"+v+" H319z";case"\u23A5":return"M263 0 H347 V"+v+" H263z M263 0 H347 V"+v+" H263z";case"\u23AA":return"M384 0 H504 V"+v+" H384z M384 0 H504 V"+v+" H384z";case"\u23D0":return"M312 0 H355 V"+v+" H312z M312 0 H355 V"+v+" H312z";case"\u2016":return"M257 0 H300 V"+v+" H257z M257 0 H300 V"+v+" H257z"+("M478 0 H521 V"+v+" H478z M478 0 H521 V"+v+" H478z");default:return""}},"innerPath"),XD
vendor: 15,381 bytes, lines 53-228
53={doubleleftarrow:`M262 157 54l10-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 55 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 56 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 57c2 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 58 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 59-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 60-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 61m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 62-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 63 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 64-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 65-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 66-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 67c-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 68-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 69 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 70-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 71c-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 72 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 73 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 74 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 75-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 76 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 77 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 78 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 79-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 80H435C64 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 81 435 0h399565z`,leftgroupunder:`M400000 262 82H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 83 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 84-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 85-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 86-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 87 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 88-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 89-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 90m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 91 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 92 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 93-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 94 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 95-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 96v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 97-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 98-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 99 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 100M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 101M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 102-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 103c28.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 104 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 105M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 106c-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 107-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 108 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 109 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 110c100.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 111 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 112 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 113-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 114-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 115m368.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 11660.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 117-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 118m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 119c0 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 120-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 121m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 12285.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 123-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 124m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 125c0 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 126-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 127 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 128 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 129-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 130-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 131 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 132-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 133s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 134c124.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 135 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 136-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 137 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 138 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 139-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 140-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 141 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 142-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 143 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 144m0 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 145 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 146-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 147-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 148 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 149 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 150-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 151m0-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 152 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 153-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 154 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 155M399960 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 156 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 157-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 158-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 159 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 160-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 161-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 162-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 163 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 164c-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 165 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 166 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 167-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 168 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 169-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 170 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 171 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 172-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 173-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 174 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 175c1 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 176 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 177-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 178 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 179 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 180 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 181-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 182 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 183 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 184 -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 1853.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 18610.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 187-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 188-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 189H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 190c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 191c-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 192-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 193-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 194-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, 195-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, 196-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, 197-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, 198-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 199c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 200c-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 201s-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 202121.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 203s2.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 204c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 205M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 206-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 20713.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 208-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 209-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 210-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 211151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 212c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 213c2,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 214c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 215c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 216M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 217c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 218-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 219c-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 220M0 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 221c1.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, 2221c0,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, 223-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 224M93 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 225c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 226-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 227c-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 228M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,265 bytes, lines 228-256
228spe=s(function(b,v){switch(b){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+v+` v1759 h347 v-84 229H403z M403 1759 V0 H319 V1759 v`+v+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+v+` v1759 H0 v84 H347z 230M347 1759 V0 H263 V1759 v`+v+" v1759 h84z";case"vert":return"M145 15 v585 v"+v+` v585 c2.667,10,9.667,15,21,15 231c10,0,16.667,-5,20,-15 v-585 v`+-v+` v-585 c-2.667,-10,-9.667,-15,-21,-15 232c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+v+" v585 h43z";case"doublevert":return"M145 15 v585 v"+v+` v585 c2.667,10,9.667,15,21,15 233c10,0,16.667,-5,20,-15 v-585 v`+-v+` v-585 c-2.667,-10,-9.667,-15,-21,-15 234c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+v+` v585 h43z 235M367 15 v585 v`+v+` v585 c2.667,10,9.667,15,21,15 236c10,0,16.667,-5,20,-15 v-585 v`+-v+` v-585 c-2.667,-10,-9.667,-15,-21,-15 237c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+v+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+v+` v1715 h263 v84 H319z 238MM319 602 V0 H403 V602 v`+v+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+v+` v1799 H0 v-84 H319z 239MM319 602 V0 H403 V602 v`+v+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+v+` v602 h84z 240M403 1759 V0 H319 V1759 v`+v+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+v+` v602 h84z 241M347 1759 V0 h-84 V1759 v`+v+" 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 242c-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, 243-36,557 l0,`+(v+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 244949.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 245c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 246-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 247l0,-`+(v+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 248-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, 24963,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 250c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(v+9)+` 251c-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 252c-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 253c0,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 254c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 255l0,-`+(v+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 256-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"),ym=(a=class{constructor(v){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=v,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(v){return this.classes.includes(v)}toNode(){for(var v=document.createDocumentFragment(),k=0;k<this.children.length;k++)v.appendChild(this.children[k].toNode());return v}toMarkup(){for(var v="",k=0;k<this.children.length;k++)v+=this.children[k].toMarkup();return v}toText(){var v=s(k=>k.toText(),"toText");return this.children.map(v).join("")}},f(a,"Vf"),s(a,"DocumentFragment"),a),uc
vendor: 57,629 bytes, line 256
256={"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]}},
256Kb={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]},KD={\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(FD,"setFontMetrics"),s(yC,"getCharacterMetrics"),SC={},s(Nde,"getGlobalMetrics"),ope=[[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]],ZD=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],QD=s(function(b,v){return v.size<2?b:ope[b-1][v.size-1]},"sizeAtStyle"),JD=(o=class{constructor(v){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=v.style,this.color=v.color,this.size=v.size||o.BASESIZE,this.textSize=v.textSize||this.size,this.phantom=!!v.phantom,this.font=v.font||"",this.fontFamily=v.fontFamily||"",this.fontWeight=v.fontWeight||"",this.fontShape=v.fontShape||"",this.sizeMultiplier=ZD[this.size-1],this.maxSize=v.maxSize,this.minRuleThickness=v.minRuleThickness,this._fontMetrics=void 0}extend(v){var k={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
vendor: 13,811 bytes, line 256
256antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var E in v)v.hasOwnProperty(E)&&(k[E]=v[E]);return new o(k)}havingStyle(v){return this.style===v?this:this.extend({style:v,size:QD(this.textSize,v)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(v){return this.size===v&&this.textSize===v?this:this.extend({style:this.style.text(),size:v,textSize:v,sizeMultiplier:ZD[v-1]})}havingBaseStyle(v){v=v||this.style.text();var k=QD(o.BASESIZE,v);return this.size===k&&this.textSize===o.BASESIZE&&this.style===v?this:this.extend({style:v,size:k})}havingBaseSizing(){var v;switch(this.style.id){case 4:case 5:v=3;break;case 6:case 7:v=1;break;default:v=6}return this.extend({style:this.style.text(),size:v})}withColor(v){return this.extend({color:v})}withPhantom(){return this.extend({phantom:!0})}withFont(v){return this.extend({font:v})}withTextFontFamily(v){return this.extend({fontFamily:v,font:""})}withTextFontWeight(v){return this.extend({fontWeight:v,font:""})}withTextFontShape(v){return this.extend({fontShape:v,font:""})}sizingClasses(v){return v.size!==this.size?["sizing","reset-size"+v.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==o.BASESIZE?["sizing","reset-size"+this.size,"size"+o.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Nde(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}},f(o,"e"),s(o,"Options"),o),JD.BASESIZE=6,_C={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},lpe={ex:!0,em:!0,mu:!0},eN=s(function(b){return typeof b!="string"&&(b=b.unit),b in _C||b in lpe||b==="ex"},"validUnit"),Xn=s(function(b,v){var k;if(b.unit in _C)k=_C[b.unit]/v.fontMetrics().ptPerEm/v.sizeMultiplier;else if(b.unit==="mu")k=v.fontMetrics().cssEmPerMu;else{var E;if(v.style.isTight()?E=v.havingStyle(v.style.text()):E=v,b.unit==="ex")k=E.fontMetrics().xHeight;else if(b.unit==="em")k=E.fontMetrics().quad;else throw new Yt("Invalid unit: '"+b.unit+"'");E!==v&&(k*=E.sizeMultiplier/v.sizeMultiplier)}return Math.min(b.number*k,v.maxSize)},"calculateSize"),tr=s(function(b){return+b.toFixed(4)+"em"},"makeEm"),Iu=s(function(b){return b.filter(v=>v).join(" ")},"createClass"),tN=s(function(b,v,k){if(this.classes=b||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=k||{},v){v.style.isTight()&&this.classes.push("mtight");var E=v.getColor();E&&(this.style.color=E)}},"initNode"),rN=s(function(b){var v=document.createElement(b);v.className=Iu(this.classes);for(var k in this.style)this.style.hasOwnProperty(k)&&(v.style[k]=this.style[k]);for(var E in this.attributes)this.attributes.hasOwnProperty(E)&&v.setAttribute(E,this.attributes[E]);for(var A=0;A<this.children.length;A++)v.appendChild(this.children[A].toNode());return v},"toNode"),cpe=/[\s"'>/=\x00-\x1f]/,iN=s(function(b){var v="<"+b;this.classes.length&&(v+=' class="'+Fi.escape(Iu(this.classes))+'"');var k="";for(var E in this.style)this.style.hasOwnProperty(E)&&(k+=Fi.hyphenate(E)+":"+this.style[E]+";");k&&(v+=' style="'+Fi.escape(k)+'"');for(var A in this.attributes)if(this.attributes.hasOwnProperty(A)){if(cpe.test(A))throw new Yt("Invalid attribute name '"+A+"'");v+=" "+A+'="'+Fi.escape(this.attributes[A])+'"'}v+=">";for(var I=0;I<this.children.length;I++)v+=this.children[I].toMarkup();return v+="</"+b+">",v},"toMarkup"),vm=(l=class{constructor(v,k,E,A){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,tN.call(this,v,E,A),this.children=k||[]}setAttribute(v,k){this.attributes[v]=k}hasClass(v){return this.classes.includes(v)}toNode(){return rN.call(this,"span")}toMarkup(){return iN.call(this,"span")}},f(l,"Wf"),s(l,"Span"),l),AC=(h=class{constructor(v,k,E,A){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,tN.call(this,k,A),this.children=E||[],this.setAttribute("href",v)}setAttribute(v,k){this.attributes[v]=k}hasClass(v){return this.classes.includes(v)}toNode(){return rN.call(this,"a")}toMarkup(){return iN.call(this,"a")}},f(h,"vv"),s(h,"Anchor"),h),hpe=(u=class{constructor(v,k,E){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=k,this.src=v,this.classes=["mord"],this.style=E}hasClass(v){return this.classes.includes(v)}toNode(){var v=document.createElement("img");v.src=this.src,v.alt=this.alt,v.className="mord";for(var k in this.style)this.style.hasOwnProperty(k)&&(v.style[k]=this.style[k]);return v}toMarkup(){var v='<img src="'+Fi.escape(this.src)+'"'+(' alt="'+Fi.escape(this.alt)+'"'),k="";for(var E in this.style)this.style.hasOwnProperty(E)&&(k+=Fi.hyphenate(E)+":"+this.style[E]+";");return k&&(v+=' style="'+Fi.escape(k)+'"'),v+="'/>",v}},f(u,"J7"),s(u,"Img"),u),upe={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},el=(d=class{constructor(v,k,E,A,I,$,O,j){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=v,this.height=k||0,this.depth=E||0,this.italic=A||0,this.skew=I||0,this.width=$||0,this.classes=O||[],this.style=j||{},this.maxFontSize=0;var D=Dde(this.text.charCodeAt(0));D&&this.classes.push(D+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=upe[this.text])}hasClass(v){return this.classes.includes(v)}toNode(){var v=document.createTextNode(this.text),k=null;this.italic>0&&(k=document.createElement("span"),k.style.marginRight=tr(this.italic)),this.classes.length>0&&(k=k||document.createElement("span"),k.className=Iu(this.classes));for(var E in this.style)this.style.hasOwnProperty(E)&&(k=k||document.createElement("span"),k.style[E]=this.style[E]);return k?(k.appendChild(v),k):v}toMarkup(){var v=!1,k="<span";this.classes.length&&(v=!0,k+=' class="',k+=Fi.escape(Iu(this.classes)),k+='"');var E="";this.italic>0&&(E+="margin-right:"+this.italic+"em;");for(var A in this.style)this.style.hasOwnProperty(A)&&(E+=Fi.hyphenate(A)+":"+this.style[A]+";");E&&(v=!0,k+=' style="'+Fi.escape(E)+'"');var I=Fi.escape(this.text);return v?(k+=">",k+=I,k+="</span>",k):I}},f(d,"Ts"),s(d,"SymbolNode"),d),dh=(p=class{constructor(v,k){this.children=void 0,this.attributes=void 0,this.children=v||[],this.attributes=k||{}}toNode(){var v="http://www.w3.org/2000/svg",k=document.createElementNS(v,"svg");for(var E in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,E)&&k.setAttribute(E,this.attributes[E]);for(var A=0;A<this.children.length;A++)k.appendChild(this.children[A].toNode());return k}toMarkup(){var v='<svg xmlns="http://www.w3.org/2000/svg"';for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&(v+=" "+k+'="'+Fi.escape(this.attributes[k])+'"');v+=">";for(var E=0;E<this.children.length;E++)v+=this.children[E].toMarkup();return v+="</svg>",v}},f(p,"ml"),s(p,"SvgNode"),p),Du=(g=class{constructor(v,k){this.pathName=void 0,this.alternate=void 0,this.pathName=v,this.alternate=k}toNode(){var v="http://www.w3.org/2000/svg",k=document.createElementNS(v,"path");return this.alternate?k.setAttribute("d",this.alternate):k.setAttribute("d",XD[this.pathName]),k}toMarkup(){return this.alternate?'<path d="'+Fi.escape(this.alternate)+'"/>':'<path d="'+Fi.escape(XD[this.pathName])+'"/>'}},f(g,"ac"),s(g,"PathNode"),g),LC=(m=class{constructor(v){this.attributes=void 0,this.attributes=v||{}}toNode(){var v="http://www.w3.org/2000/svg",k=document.createElementNS(v,"line");for(var E in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,E)&&k.setAttribute(E,this.attributes[E]);return k}toMarkup(){var v="<line";for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&(v+=" "+k+'="'+Fi.escape(this.attributes[k])+'"');return v+="/>",v}},f(m,"xv"),s(m,"LineNode"),m),s(zD,"assertSymbolDomNode"),s(Mde,"assertSpan"),dpe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ppe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},un={math:{},text:{}},s(re,"defineSymbol"),ce="math",Bt="text",ye="main",je="ams",$n="accent-token",dr="bin",Bs="close",dg="inner",Fr="mathord",ka="op-token",Ao="open",Zb="punct",Ve="rel",ph="spacing",Ze="textord",re(ce,ye,Ve,"\u2261","\\equiv",!0),re(ce,ye,Ve,"\u227A","\\prec",!0),re(ce,ye,Ve,"\u227B","\\succ",!0),re(ce,ye,Ve,"\u223C","\\sim",!0),re(ce,ye,Ve,"\u22A5","\\perp"),re(ce,ye,Ve,"\u2AAF","\\preceq",!0),re(ce,ye,Ve,"\u2AB0","\\succeq",!0),re(ce,ye,Ve,"\u2243","\\simeq",!0),re(ce,ye,Ve,"\u2223","\\mid",!0),re(ce,ye,Ve,"\u226A","\\ll",!0),re(ce,ye,Ve,"\u226B","\\gg",!0),re(ce,ye,Ve,"\u224D","\\asymp",!0),re(ce,ye,Ve,"\u2225","\\parallel"),re(ce,ye,Ve,"\u22C8","\\bowtie",!0),re(ce,ye,Ve,"\u2323","\\smile",!0),re(ce,ye,Ve,"\u2291","\\sqsubseteq",!0),re(ce,ye,Ve,"\u2292","\\sqsupseteq",!0),re(ce,ye,Ve,"\u2250","\\doteq",!0),re(ce,ye,Ve,"\u2322","\\frown",!0),re(ce,ye,Ve,"\u220B","\\ni",!0),re(ce,ye,Ve,"\u221D","\\propto",!0),re(ce,ye,Ve,"\u22A2","\\vdash",!0),re(ce,ye,Ve,"\u22A3","\\dashv",!0),re(ce,ye,Ve,"\u220B","\\owns"),re(ce,ye,Zb,".","\\ldotp"),re(ce,ye,Zb,"\u22C5","\\cdotp"),re(ce,ye,Ze,"#","\\#"),re(Bt,ye,Ze,"#","\\#"),re(ce,ye,Ze,"&","\\&"),re(Bt,ye,Ze,"&","\\&"),re(ce,ye,Ze,"\u2135","\\aleph",!0),re(ce,ye,Ze,"\u2200","\\forall",!0),re(ce,ye,Ze,"\u210F","\\hbar",!0),re(ce,ye,Ze,"\u2203","\\exists",!0),re(ce,ye,Ze,"\u2207","\\nabla",!0),re(ce,ye,Ze,"\u266D","\\flat",!0),re(ce,ye,Ze,"\u2113","\\ell",!0),re(ce,ye,Ze,"\u266E","\\natural",!0),re(ce,ye,Ze,"\u2663","\\clubsuit",!0),re(ce,ye,Ze,"\u2118","\\wp",!0),re(ce,ye,Ze,"\u266F","\\sharp",!0),re(ce,ye,Ze,"\u2662","\\diamondsuit",!0),re(ce,ye,Ze,"\u211C","\\Re",!0),re(ce,ye,Ze,"\u2661","\\heartsuit",!0),re(ce,ye,Ze,"\u2111","\\Im",!0),re(ce,ye,Ze,"\u2660","\\spadesuit",!0),re(ce,ye,Ze,"\xA7","\\S",!0),re(Bt,ye,Ze,"\xA7","\\S"),re(ce,ye,Ze,"\xB6","\\P",!0),re(Bt,ye,Ze,"\xB6","\\P"),re(ce,ye,Ze,"\u2020","\\dag"),re(Bt,ye,Ze,"\u2020","\\dag"),re(Bt,ye,Ze,"\u2020","\\textdagger"),re(ce,ye,Ze,"\u2021","\\ddag"),re(Bt,ye,Ze,"\u2021","\\ddag"),re(Bt,ye,Ze,"\u2021","\\textdaggerdbl"),re(ce,ye,Bs,"\u23B1","\\rmoustache",!0),re(ce,ye,Ao,"\u23B0","\\lmoustache",!0),re(ce,ye,Bs,"\u27EF","\\rgroup",!0),re(ce,ye,Ao,"\u27EE","\\lgroup",!0),re(ce,ye,dr,"\u2213","\\mp",!0),re(ce,ye,dr,"\u2296","\\ominus",!0),re(ce,ye,dr,"\u228E","\\uplus",!0),re(ce,ye,dr,"\u2293","\\sqcap",!0),re(ce,ye,dr,"\u2217","\\ast"),re(ce,ye,dr,"\u2294","\\sqcup",!0),re(ce,ye,dr,"\u25EF","\\bigcirc",!0),re(ce,ye,dr,"\u2219","\\bullet",!0),re(ce,ye,dr,"\u2021","\\ddagger"),re(ce,ye,dr,"\u2240","\\wr",!0),re(ce,ye,dr,"\u2A3F","\\amalg"),re(ce,ye,dr,"&","\\And"),re(ce,ye,Ve,"\u27F5","\\longleftarrow",!0),re(ce,ye,Ve,"\u21D0","\\Leftarrow",!0),re(ce,ye,Ve,"\u27F8","\\Longleftarrow",!0),re(ce,ye,Ve,"\u27F6","\\longrightarrow",!0),re(ce,ye,Ve,"\u21D2","\\Rightarrow",!0),re(ce,ye,Ve,"\u27F9","\\Longrightarrow",!0),re(ce,ye,Ve,"\u2194","\\leftrightarrow",!0),re(ce,ye,Ve,"\u27F7","\\longleftrightarrow",!0),re(ce,ye,Ve,"\u21D4","\\Leftrightarrow",!0),re(ce,ye,Ve,"\u27FA","\\Longleftrightarrow",!0),re(ce,ye,Ve,"\u21A6","\\mapsto",!0),re(ce,ye,Ve,"\u27FC","\\longmapsto",!0),re(ce,ye,Ve,"\u2197","\\nearrow",!0),re(ce,ye,Ve,"\u21A9","\\hookleftarrow",!0),re(ce,ye,Ve,"\u21AA","\\hookrightarrow",!0),re(ce,ye,Ve,"\u2198","\\searrow",!0),re(ce,ye,Ve,"\u21BC","\\leftharpoonup",!0),re(ce,ye,Ve,"\u21C0","\\rightharpoonup",!0),re(ce,ye,Ve,"\u2199","\\swarrow",!0),re(ce,ye,Ve,"\u21BD","\\leftharpoondown",!0),re(ce,ye,Ve,"\u21C1","\\rightharpoondown",!0),re(ce,ye,Ve,"\u2196","\\nwarrow",!0),re(ce,ye,Ve,"\u21CC","\\rightleftharpoons",!0),re(ce,je,Ve,"\u226E","\\nless",!0),re(ce,je,Ve,"\uE010","\\@nleqslant"),re(ce,je,Ve,"\uE011","\\@nleqq"),re(ce,je,Ve,"\u2A87","\\lneq",!0),re(ce,je,Ve,"\u2268","\\lneqq",!0),re(ce,je,Ve,"\uE00C","\\@lvertneqq"),re(ce,je,Ve,"\u22E6","\\lnsim",!0),re(ce,je,Ve,"\u2A89","\\lnapprox",!0),re(ce,je,Ve,"\u2280","\\nprec",!0),re(ce,je,Ve,"\u22E0","\\npreceq",!0),re(ce,je,Ve,"\u22E8","\\precnsim",!0),re(ce,je,Ve,"\u2AB9","\\precnapprox",!0),re(ce,je,Ve,"\u2241","\\nsim",!0),re(ce,je,Ve,"\uE006","\\@nshortmid"),re(ce,je,Ve,"\u2224","\\nmid",!0),re(ce,je,Ve,"\u22AC","\\nvdash",!0),re(ce,je,Ve,"\u22AD","\\nvDash",!0),re(ce,je,Ve,"\u22EA","\\ntriangleleft"),re(ce,je,Ve,"\u22EC","\\ntrianglelefteq",!0),re(ce,je,Ve,"\u228A","\\subsetneq",!0),re(ce,je,Ve,"\uE01A","\\@varsubsetneq"),re(ce,je,Ve,"\u2ACB","\\subsetneqq",!0),re(ce,je,Ve,"\uE017","\\@varsubsetneqq"),re(ce,je,Ve,"\u226F","\\ngtr",!0),re(ce,je,Ve,"\uE00F","\\@ngeqslant"),re(ce,je,Ve,"\uE00E","\\@ngeqq"),re(ce,je,Ve,"\u2A88","\\gneq",!0),re(ce,je,Ve,"\u2269","\\gneqq",!0),re(ce,je,Ve,"\uE00D","\\@gvertneqq"),re(ce,je,Ve,"\u22E7","\\gnsim",!0),re(ce,je,Ve,"\u2A8A","\\gnapprox",!0),re(ce,je,Ve,"\u2281","\\nsucc",!0),re(ce,je,Ve,"\u22E1","\\nsucceq",!0),re(ce,je,Ve,"\u22E9","\\succnsim",!0),re(ce,je,Ve,"\u2ABA","\\succnapprox",!0),re(ce,je,Ve,"\u2246","\\ncong",!0),re(ce,je,Ve,"\uE007","\\@nshortparallel"),re(ce,je,Ve,"\u2226","\\nparallel",!0),re(ce,je,Ve,"\u22AF","\\nVDash",!0),re(ce,je,Ve,"\u22EB","\\ntriangleright"),re(ce,je,Ve,"\u22ED","\\ntrianglerighteq",!0),re(ce,je,Ve,"\uE018","\\@nsupseteqq"),re(ce,je,Ve,"\u228B","\\supsetneq",!0),re(ce,je,Ve,"\uE01B","\\@varsupsetneq"),re(ce,je,Ve,"\u2ACC","\\supsetneqq",!0),re(ce,je,Ve,"\uE019","\\@varsupsetneqq"),re(ce,je,Ve,"\u22AE","\\nVdash",!0),re(ce,je,Ve,"\u2AB5","\\precneqq",!0),re(ce,je,Ve,"\u2AB6","\\succneqq",!0),re(ce,je,Ve,"\uE016","\\@nsub
256seteqq"),re(ce,je,dr,"\u22B4","\\unlhd"),re(ce,je,dr,"\u22B5","\\unrhd"),re(ce,je,Ve,"\u219A","\\nleftarrow",!0),re(ce,je,Ve,"\u219B","\\nrightarrow",!0),re(ce,je,Ve,"\u21CD","\\nLeftarrow",!0),re(ce,je,Ve,"\u21CF","\\nRightarrow",!0),re(ce,je,Ve,"\u21AE","\\nleftrightarrow",!0),re(ce,je,Ve,"\u21CE","\\nLeftrightarrow",!0),re(ce,je,Ve,"\u25B3","\\vartriangle"),re(ce,je,Ze,"\u210F","\\hslash"),re(ce,je,Ze,"\u25BD","\\triangledown"),re(ce,je,Ze,"\u25CA","\\lozenge"),re(ce,je,Ze,"\u24C8","\\circledS"),re(ce,je,Ze,"\xAE","\\circledR"),re(Bt,je,Ze,"\xAE","\\circledR"),re(ce,je,Ze,"\u2221","\\measuredangle",!0),re(ce,je,Ze,"\u2204","\\nexists"),re(ce,je,Ze,"\u2127","\\mho"),re(ce,je,Ze,"\u2132","\\Finv",!0),re(ce,je,Ze,"\u2141","\\Game",!0),re(ce,je,Ze,"\u2035","\\backprime"),re(ce,je,Ze,"\u25B2","\\blacktriangle"),re(ce,je,Ze,"\u25BC","\\blacktriangledown"),re(ce,je,Ze,"\u25A0","\\blacksquare"),re(ce,je,Ze,"\u29EB","\\blacklozenge"),re(ce,je,Ze,"\u2605","\\bigstar"),re(ce,je,Ze,"\u2222","\\sphericalangle",!0),re(ce,je,Ze,"\u2201","\\complement",!0),re(ce,je,Ze,"\xF0","\\eth",!0),re(Bt,ye,Ze,"\xF0","\xF0"),re(ce,je,Ze,"\u2571","\\diagup"),re(ce,je,Ze,"\u2572","\\diagdown"),re(ce,je,Ze,"\u25A1","\\square"),re(ce,je,Ze,"\u25A1","\\Box"),re(ce,je,Ze,"\u25CA","\\Diamond"),re(ce,je,Ze,"\xA5","\\yen",!0),re(Bt,je,Ze,"\xA5","\\yen",!0),re(ce,je,Ze,"\u2713","\\checkmark",!0),re(Bt,je,Ze,"\u2713","\\checkmark"),re(ce,je,Ze,"\u2136","\\beth",!0),re(ce,je,Ze,"\u2138","\\daleth",!0),re(ce,je,Ze,"\u2137","\\gimel",!0),re(ce,je,Ze,"\u03DD","\\digamma",!0),re(ce,je,Ze,"\u03F0","\\varkappa"),re(ce,je,Ao,"\u250C","\\@ulcorner",!0),re(ce,je,Bs,"\u2510","\\@urcorner",!0),re(ce,je,Ao,"\u2514","\\@llcorner",!0),re(ce,je,Bs,"\u2518","\\@lrcorner",!0),re(ce,je,Ve,"\u2266","\\leqq",!0),re(ce,je,Ve,"\u2A7D","\\leqslant",!0),re(ce,je,Ve,"\u2A95","\\eqslantless",!0),re(ce,je,Ve,"\u2272","\\lesssim",!0),re(ce,je,Ve,"\u2A85","\\lessapprox",!0),re(ce,je,Ve,"\u224A","\\approxeq",!0),re(ce,je,dr,"\u22D6","\\lessdot"),re(ce,je,Ve,"\u22D8","\\lll",!0),re(ce,je,Ve,"\u2276","\\lessgtr",!0),re(ce,je,Ve,"\u22DA","\\lesseqgtr",!0),re(ce,je,Ve,"\u2A8B","\\lesseqqgtr",!0),re(ce,je,Ve,"\u2251","\\doteqdot"),re(ce,je,Ve,"\u2253","\\risingdotseq",!0),re(ce,je,Ve,"\u2252","\\fallingdotseq",!0),re(ce,je,Ve,"\u223D","\\backsim",!0),re(ce,je,Ve,"\u22CD","\\backsimeq",!0),re(ce,je,Ve,"\u2AC5","\\subseteqq",!0),re(ce,je,Ve,"\u22D0","\\Subset",!0),re(ce,je,Ve,"\u228F","\\sqsubset",!0),re(ce,je,Ve,"\u227C","\\preccurlyeq",!0),re(ce,je,Ve,"\u22DE","\\curlyeqprec",!0),re(ce,je,Ve,"\u227E","\\precsim",!0),re(ce,je,Ve,"\u2AB7","\\precapprox",!0),re(ce,je,Ve,"\u22B2","\\vartriangleleft"),re(ce,je,Ve,"\u22B4","\\trianglelefteq"),re(ce,je,Ve,"\u22A8","\\vDash",!0),re(ce,je,Ve,"\u22AA","\\Vvdash",!0),re(ce,je,Ve,"\u2323","\\smallsmile"),re(ce,je,Ve,"\u2322","\\smallfrown"),re(ce,je,Ve,"\u224F","\\bumpeq",!0),re(ce,je,Ve,"\u224E","\\Bumpeq",!0),re(ce,je,Ve,"\u2267","\\geqq",!0),re(ce,je,Ve,"\u2A7E","\\geqslant",!0),re(ce,je,Ve,"\u2A96","\\eqslantgtr",!0),re(ce,je,Ve,"\u2273","\\gtrsim",!0),re(ce,je,Ve,"\u2A86","\\gtrapprox",!0),re(ce,je,dr,"\u22D7","\\gtrdot"),re(ce,je,Ve,"\u22D9","\\ggg",!0),re(ce,je,Ve,"\u2277","\\gtrless",!0),re(ce,je,Ve,"\u22DB","\\gtreqless",!0),re(ce,je,Ve,"\u2A8C","\\gtreqqless",!0),re(ce,je,Ve,"\u2256","\\eqcirc",!0),re(ce,je,Ve,"\u2257","\\circeq",!0),re(ce,je,Ve,"\u225C","\\triangleq",!0),re(ce,je,Ve,"\u223C","\\thicksim"),re(ce,je,Ve,"\u2248","\\thickapprox"),re(ce,je,Ve,"\u2AC6","\\supseteqq",!0),re(ce,je,Ve,"\u22D1","\\Supset",!0),re(ce,je,Ve,"\u2290","\\sqsupset",!0),re(ce,je,Ve,"\u227D","\\succcurlyeq",!0),re(ce,je,Ve,"\u22DF","\\curlyeqsucc",!0),re(ce,je,Ve,"\u227F","\\succsim",!0),re(ce,je,Ve,"\u2AB8","\\succapprox",!0),re(ce,je,Ve,"\u22B3","\\vartriangleright"),re(ce,je,Ve,"\u22B5","\\trianglerighteq"),re(ce,je,Ve,"\u22A9","\\Vdash",!0),re(ce,je,Ve,"\u2223","\\shortmid"),re(ce,je,Ve,"\u2225","\\shortparallel"),re(ce,je,Ve,"\u226C","\\between",!0),re(ce,je,Ve,"\u22D4","\\pitchfork",!0),re(ce,je,Ve,"\u221D","\\varpropto"),re(ce,je,Ve,"\u25C0","\\blacktriangleleft"),re(ce,je,Ve,"\u2234","\\therefore",!0),re(ce,je,Ve,"\u220D","\\backepsilon"),re(ce,je,Ve,"\u25B6","\\blacktriangleright"),re(ce,je,Ve,"\u2235","\\because",!0),re(ce,je,Ve,"\u22D8","\\llless"),re(ce,je,Ve,"\u22D9","\\gggtr"),re(ce,je,dr,"\u22B2","\\lhd"),re(ce,je,dr,"\u22B3","\\rhd"),re(ce,je,Ve,"\u2242","\\eqsim",!0),re(ce,ye,Ve,"\u22C8","\\Join"),re(ce,je,Ve,"\u2251","\\Doteq",!0),re(ce,je,dr,"\u2214","\\dotplus",!0),re(ce,je,dr,"\u2216","\\smallsetminus"),re(ce,je,dr,"\u22D2","\\Cap",!0),re(ce,je,dr,"\u22D3","\\Cup",!0),re(ce,je,dr,"\u2A5E","\\doublebarwedge",!0),re(ce,je,dr,"\u229F","\\boxminus",!0),re(ce,je,dr,"\u229E","\\boxplus",!0),re(ce,je,dr,"\u22C7","\\divi
256deontimes",!0),re(ce,je,dr,"\u22C9","\\ltimes",!0),re(ce,je,dr,"\u22CA","\\rtimes",!0),re(ce,je,dr,"\u22CB","\\leftthreetimes",!0),re(ce,je,dr,"\u22CC","\\rightthreetimes",!0),re(ce,je,dr,"\u22CF","\\curlywedge",!0),re(ce,je,dr,"\u22CE","\\curlyvee",!0),re(ce,je,dr,"\u229D","\\circleddash",!0),re(ce,je,dr,"\u229B","\\circledast",!0),re(ce,je,dr,"\u22C5","\\centerdot"),re(ce,je,dr,"\u22BA","\\intercal",!0),re(ce,je,dr,"\u22D2","\\doublecap"),re(ce,je,dr,"\u22D3","\\doublecup"),re(ce,je,dr,"\u22A0","\\boxtimes",!0),re(ce,je,Ve,"\u21E2","\\dashrightarrow",!0),re(ce,je,Ve,"\u21E0","\\dashleftarrow",!0),re(ce,je,Ve,"\u21C7","\\leftleftarrows",!0),re(ce,je,Ve,"\u21C6","\\leftrightarrows",!0),re(ce,je,Ve,"\u21DA","\\Lleftarrow",!0),re(ce,je,Ve,"\u219E","\\twoheadleftarrow",!0),re(ce,je,Ve,"\u21A2","\\leftarrowtail",!0),re(ce,je,Ve,"\u21AB","\\looparrowleft",!0),re(ce,je,Ve,"\u21CB","\\leftrightharpoons",!0),re(ce,je,Ve,"\u21B6","\\curvearrowleft",!0),re(ce,je,Ve,"\u21BA","\\circlearrowleft",!0),re(ce,je,Ve,"\u21B0","\\Lsh",!0),re(ce,je,Ve,"\u21C8","\\upuparrows",!0),re(ce,je,Ve,"\u21BF","\\upharpoonleft",!0),re(ce,je,Ve,"\u21C3","\\downharpoonleft",!0),re(ce,ye,Ve,"\u22B6","\\origof",!0),re(ce,ye,Ve,"\u22B7","\\imageof",!0),re(ce,je,Ve,"\u22B8","\\multimap",!0),re(ce,je,Ve,"\u21AD","\\leftrightsquigarrow",!0),re(ce,je,Ve,"\u21C9","\\rightrightarrows",!0),re(ce,je,Ve,"\u21C4","\\rightleftarrows",!0),re(ce,je,Ve,"\u21A0","\\twoheadrightarrow",!0),re(ce,je,Ve,"\u21A3","\\rightarrowtail",!0),re(ce,je,Ve,"\u21AC","\\looparrowright",!0),re(ce,je,Ve,"\u21B7","\\curvearrowright",!0),re(ce,je,Ve,"\u21BB","\\circlearrowright",!0),re(ce,je,Ve,"\u21B1","\\Rsh",!0),re(ce,je,Ve,"\u21CA","\\downdownarrows",!0),re(ce,je,Ve,"\u21BE","\\upharpoonright",!0),re(ce,je,Ve,"\u21C2","\\downharpoonright",!0),re(ce,je,Ve,"\u21DD","\\rightsquigarrow",!0),re(ce,je,Ve,"\u21DD","\\leadsto"),re(ce,je,Ve,"\u21DB","\\Rrightarrow",!0),re(ce,je,Ve,"\u21BE","\\restriction"),re(ce,ye,Ze,"\u2018","`"),re(ce,ye,Ze,"$","\\$"),re(Bt,ye,Ze,"$","\\$"),re(Bt,ye,Ze,"$","\\textdollar"),re(ce,ye,Ze,"%","\\%"),re(Bt,ye,Ze,"%","\\%"),re(ce,ye,Ze,"_","\\_"),re(Bt,ye,Ze,"_","\\_"),re(Bt,ye,Ze,"_","\\textunderscore"),re(ce,ye,Ze,"\u2220","\\angle",!0),re(ce,ye,Ze,"\u221E","\\infty",!0),re(ce,ye,Ze,"\u2032","\\prime"),re(ce,ye,Ze,"\u25B3","\\triangle"),re(ce,ye,Ze,"\u0393","\\Gamma",!0),re(ce,ye,Ze,"\u0394","\\Delta",!0),re(ce,ye,Ze,"\u0398","\\Theta",!0),re(ce,ye,Ze,"\u039B","\\Lambda",!0),re(ce,ye,Ze,"\u039E","\\Xi",!0),re(ce,ye,Ze,"\u03A0","\\Pi",!0),re(ce,ye,Ze,"\u03A3","\\Sigma",!0),re(ce,ye,Ze,"\u03A5","\\Upsilon",!0),re(ce,ye,Ze,"\u03A6","\\Phi",!0),re(ce,ye,Ze,"\u03A8","\\Psi",!0),re(ce,ye,Ze,"\u03A9","\\Omega",!0),re(ce,ye,Ze,"A","\u0391"),re(ce,ye,Ze,"B","\u0392"),re(ce,ye,Ze,"E","\u0395"),re(ce,ye,Ze,"Z","\u0396"),re(ce,ye,Ze,"H","\u0397"),re(ce,ye,Ze,"I","\u0399"),re(ce,ye,Ze,"K","\u039A"),re(ce,ye,Ze,"M","\u039C"),re(ce,ye,Ze,"N","\u039D"),re(ce,ye,Ze,"O","\u039F"),re(ce,ye,Ze,"P","\u03A1"),re(ce,ye,Ze,"T","\u03A4"),re(ce,ye,Ze,"X","\u03A7"),re(ce,ye,Ze,"\xAC","\\neg",!0),re(ce,ye,Ze,"\xAC","\\lnot"),re(ce,ye,Ze,"\u22A4","\\top"),re(ce,ye,Ze,"\u22A5","\\bot"),re(ce,ye,Ze,"\u2205","\\emptyset"),re(ce,je,Ze,"\u2205","\\varnothing"),re(ce,ye,Fr,"\u03B1","\\alpha",!0),re(ce,ye,Fr,"\u03B2","\\beta",!0),re(ce,ye,Fr,"\u03B3","\\gamma",!0),re(ce,ye,Fr,"\u03B4","\\delta",!0),re(ce,ye,Fr,"\u03F5","\\epsilon",!0),re(ce,ye,Fr,"\u03B6","\\zeta",!0),re(ce,ye,Fr,"\u03B7","\\eta",!0),re(ce,ye,Fr,"\u03B8","\\theta",!0),re(ce,ye,Fr,"\u03B9","\\iota",!0),re(ce,ye,Fr,"\u03BA","\\kappa",!0),re(ce,ye,Fr,"\u03BB","\\lambda",!0),re(ce,ye,Fr,"\u03BC","\\mu",!0),re(ce,ye,Fr,"\u03BD","\\nu",!0),re(ce,ye,Fr,"\u03BE","\\xi",!0),re(ce,ye,Fr,"\u03BF","\\omicron",!0),re(ce,ye,Fr,"\u03C0","\\pi",!0),re(ce,ye,Fr,"\u03C1","\\rho",!0),re(ce,ye,Fr,"\u03C3","\\sigma",!0),re(ce,ye,Fr,"\u03C4","\\tau",!0),re(ce,ye,Fr,"\u03C5","\\upsilon",!0),re(ce,ye,Fr,"\u03D5","\\phi",!0),re(ce,ye,Fr,"\u03C7","\\chi",!0),re(ce,ye,Fr,"\u03C8","\\psi",!0),re(ce,ye,Fr,"\u03C9","\\omega",!0),re(ce,ye,Fr,"\u03B5","\\varepsilon",!0),re(ce,ye,Fr,"\u03D1","\\vartheta",!0),re(ce,ye,Fr,"\u03D6","\\varpi",!0),re(ce,ye,Fr,"\u03F1","\\varrho",!0),re(ce,ye,Fr,"\u03C2","\\varsigma",!0),re(ce,ye,Fr,"\u03C6","\\varphi",!0),re(ce,ye,dr,"\u2217","*",!0),re(ce,ye,dr,"+","+"),re(ce,ye,dr,"\u2212","-",!0),re(ce,ye,dr,"\u22C5","\\cdot",!0),re(ce,ye,dr,"\u2218","\\circ",!0),re(ce,ye,dr,"\xF7","\\div",!0),re(ce,ye,dr,"\xB1","\\pm",!0),re(ce,ye,dr,"\xD7","\\times",!0),re(ce,ye,dr,"\u2229","\\cap",!0),re(ce,ye,dr,"\u222A","\\cup",!0),re(ce,ye,dr,"\u2216","\\setminus",!0),re(ce,ye,dr,"\u2227","\\land"),re(ce,ye,dr,"\u2228","\\lor"),re(ce,ye,dr,"\u2227","\\wedge",!0),re(ce,ye,dr,"\u2228","\\vee",!0),re(ce,ye,Ze,"\u221A","\\surd"),re(ce,ye,Ao,"\u27E8","\\langle",!0),re(ce,ye,Ao,"\u2223","\\lvert"),re(ce,ye,Ao,"\u2225","\\lVert"),re(ce,ye,Bs,"?","?"),re(ce,ye,Bs,"!","!"),re(ce,ye,Bs,"\u27E9","\\rangle",!0),re(ce,ye,Bs,"\u2223","\\rvert"),re(ce,ye,Bs,"\u2225","\\rVert"),re(ce,ye,Ve,"=","="),re(ce,ye,Ve,":",":"),re(ce,ye,Ve,"\u2248","\\approx",!0),re(ce,ye,Ve,"\u2245","\\cong",!0),re(ce,ye,Ve,"\u2265","\\ge"),re(ce,ye,Ve,"\u2265","\\geq",!0),re(ce,ye,Ve,"\u2190","\\gets"),re(ce,ye,Ve,">","\\gt",!0),re(ce,ye,Ve,"\u2208","\\in",!0),re(ce,ye,Ve,"\uE020","\\@not"),re(ce,ye,Ve,"\u2282","\\subset",!0),re(ce,ye,Ve,"\u2283","\\supset",!0),re(ce,ye,Ve,"\u2286","\\subseteq",!0),re(ce,ye,Ve,"\u2287","\\supseteq",!0),re(ce,je,Ve,"\u2288","\\nsubseteq",!0),re(ce,je,Ve,"\u2289","\\nsupseteq",!0),re(ce,ye,Ve,"\u22A8","\\models"),re(ce,ye,Ve,"\u2190","\\leftarrow",!0),re(ce,ye,Ve,"\u2264","\\le"),re(ce,ye,Ve,"\u2264","\\leq",!0),re(ce,ye,Ve,"<","\\lt",!0),re(ce,ye,Ve,"\u2192","\\rightarrow",!0),re(ce,ye,Ve,"\u2192","\\to"),re(ce,je,Ve,"\u2271","\\ngeq",!0),re(ce,je,Ve,"\u2270","\\nleq",!0),re(ce,ye,ph,"\xA0","\\ "),re(ce,ye,ph,"\xA0","\\space"),re(ce,ye,ph,"\xA0","\\nobreakspace"),re(Bt,ye,ph,"\xA0","\\ "),re(Bt,ye,ph,"\xA0"," "),re(Bt,ye,ph,"\xA0","\\space"),re(Bt,ye,ph,"\xA0","\\nobreakspace"),re(ce,ye,ph,null,"\\nobreak"),re(ce,ye,ph,null,"\\allowbreak"),re(ce,ye,Zb,",",","),re(ce,ye,Zb,";",";"),re(ce,je,dr,"\u22BC","\\barwedge",!0),re(ce,je,dr,"\u22BB","\\veebar",!0),re(ce,ye,dr,"\u2299","\\odot",!0),re(ce,ye,dr,"\u2295","\\oplus",!0),re(ce,ye,dr,"\u2297","\\otimes",!0),re(ce,ye,Ze,"\u2202","\\partial",!0),re(ce,ye,dr,"\u2298","\\oslash",!0),re(ce,je,dr,"\u229A","\\circledcirc",!0),re(ce,je,dr,"\u22A1","\\boxdot",!0),re(ce,ye,dr,"\u25B3","\\bigtri
256angleup"),re(ce,ye,dr,"\u25BD","\\bigtriangledown"),re(ce,ye,dr,"\u2020","\\dagger"),re(ce,ye,dr,"\u22C4","\\diamond"),re(ce,ye,dr,"\u22C6","\\star"),re(ce,ye,dr,"\u25C3","\\triangleleft"),re(ce,ye,dr,"\u25B9","\\triangleright"),re(ce,ye,Ao,"{","\\{"),re(Bt,ye,Ze,"{","\\{"),re(Bt,ye,Ze,"{","\\textbraceleft"),re(ce,ye,Bs,"}","\\}"),re(Bt,ye,Ze,"}","\\}"),re(Bt,ye,Ze,"}","\\textbraceright"),re(ce,ye,Ao,"{","\\lbrace"),re(ce,ye,Bs,"}","\\rbrace"),re(ce,ye,Ao,"[","\\lbrack",!0),re(Bt,ye,Ze,"[","\\lbrack",!0),re(ce,ye,Bs,"]","\\rbrack",!0),re(Bt,ye,Ze,"]","\\rbrack",!0),re(ce,ye,Ao,"(","\\lparen",!0),re(ce,ye,Bs,")","\\rparen",!0),re(Bt,ye,Ze,"<","\\textless",!0),re(Bt,ye,Ze,">","\\textgreater",!0),re(ce,ye,Ao,"\u230A","\\lfloor",!0),re(ce,ye,Bs,"\u230B","\\rfloor",!0),re(ce,ye,Ao,"\u2308","\\lceil",!0),re(ce,ye,Bs,"\u2309","\\rceil",!0),re(ce,ye,Ze,"\\","\\backslash"),re(ce,ye,Ze,"\u2223","|"),re(ce,ye,Ze,"\u2223","\\vert"),re(Bt,ye,Ze,"|","\\textbar",!0),re(ce,ye,Ze,"\u2225","\\|"),re(ce,ye,Ze,"\u2225","\\Vert"),re(Bt,ye,Ze,"\u2225","\\textbardbl"),re(Bt,ye,Ze,"~","\\textasciitilde"),re(Bt,ye,Ze,"\\","\\textbackslash"),re(Bt,ye,Ze,"^","\\textasciicircum"),re(ce,ye,Ve,"\u2191","\\uparrow",!0),re(ce,ye,Ve,"\u21D1","\\Uparrow",!0),re(ce,ye,Ve,"\u2193","\\downarrow",!0),re(ce,ye,Ve,"\u21D3","\\Downarrow",!0),re(ce,ye,Ve,"\u2195","\\updownarrow",!0),re(ce,ye,Ve,"\u21D5","\\Updownarrow",!0),re(ce,ye,ka,"\u2210","\\coprod"),re(ce,ye,ka,"\u22C1","\\bigvee"),re(ce,ye,ka,"\u22C0","\\bigwedge"),re(ce,ye,ka,"\u2A04","\\biguplus"),re(ce,ye,ka,"\u22C2","\\bigcap"),re(ce,ye,ka,"\u22C3","\\bigcup"),re(ce,ye,ka,"\u222B","\\int"),re(ce,ye,ka,"\u222B","\\intop"),re(ce,ye,ka,"\u222C","\\iint"),re(ce,ye,ka,"\u222D","\\iiint"),re(ce,ye,ka,"\u220F","\\prod"),re(ce,ye,ka,"\u2211","\\sum"),re(ce,ye,ka,"\u2A02","\\bigotimes"),re(ce,ye,ka,"\u2A01","\\bigoplus"),re(ce,ye,ka,"\u2A00","\\bigodot"),re(ce,ye,ka,"\u222E","\\oint"),re(ce,ye,ka,"\u222F","\\oiint"),re(ce,ye,ka,"\u2230","\\oiiint"),re(ce,ye,ka,"\u2A06","\\bigsqcup"),re(ce,ye,ka,"\u222B","\\smallint"),re(Bt,ye,dg,"\u2026","\\textellipsis"),re(ce,ye,dg,"\u2026","\\mathellipsis"),re(Bt,ye,dg,"\u2026","\\ldots",!0),re(ce,ye,dg,"\u2026","\\ldots",!0),re(ce,ye,dg,"\u22EF","\\@cdots",!0),re(ce,ye,dg,"\u22F1","\\ddots",!0),re(ce,ye,Ze,"\u22EE","\\varvdots"),re(Bt,ye,Ze,"\u22EE","\\varvdots"),re(ce,ye,$n,"\u02CA","\\acute"),re(ce,ye,$n,"\u02CB","\\grave"),re(ce,ye,$n,"\xA8","\\ddot"),re(ce,ye,$n,"~","\\tilde"),re(ce,ye,$n,"\u02C9","\\bar"),re(ce,ye,$n,"\u02D8","\\breve"),re(ce,ye,$n,"\u02C7","\\check"),re(ce,ye,$n,"^","\\hat"),re(ce,ye,$n,"\u20D7","\\vec"),re(ce,ye,$n,"\u02D9","\\dot"),re(ce,ye,$n,"\u02DA","\\mathring"),re(ce,ye,Fr,"\uE131","\\@imath"),re(ce,ye,Fr,"\uE237","\\@jmath"),re(ce,ye,Ze,"\u0131","\u0131"),re(ce,ye,Ze,"\u0237","\u0237"),re(Bt,ye,Ze,"\u0131","\\i",!0),re(Bt,ye,Ze,"\u0237","\\j",!0),re(Bt,ye,Ze,"\xDF","\\ss",!0),re(Bt,ye,Ze,"\xE6","\\ae",!0),re(Bt,ye,Ze,"\u0153","\\oe",!0),re(Bt,ye,Ze,"\xF8","\\o",!0),re(Bt,ye,Ze,"\xC6","\\AE",!0),re(Bt,ye,Ze,"\u0152","\\OE",!0),re(Bt,ye,Ze,"\xD8","\\O",!0),re(Bt,ye,$n,"\u02CA","\\'"),re(Bt,ye,$n,"\u02CB","\\`"),re(Bt,ye,$n,"\u02C6","\\^"),re(Bt,ye,$n,"\u02DC","\\~"),re(Bt,ye,$n,"\u02C9","\\="),re(Bt,ye,$n,"\u02D8","\\u"),re(Bt,ye,$n,"\u02D9","\\."),re(Bt,ye,$n,"\xB8","\\c"),re(Bt,ye,$n,"\u02DA","\\r"),re(Bt,ye,$n,"\u02C7","\\v"),re(Bt,ye,$n,"\xA8",'\\"'),re(Bt,ye,$n,"\u02DD","\\H"),re(Bt,ye,$n,"\u25EF","\\textcircled"),nN={"--":!0,"---":!0,"``":!0,"''":!0},re(Bt,ye,Ze,"\u2013","--",!0),re(Bt,ye,Ze,"\u2013","\\textendash"),re(Bt,ye,Ze,"\u2014","---",!0),re(Bt,ye,Ze,"\u2014","\\textemdash"),re(Bt,ye,Ze,"\u2018","`",!0),re(Bt,ye,Ze,"\u2018","\\textquoteleft"),re(Bt,ye,Ze,"\u2019","'",!0),re(Bt,ye,Ze,"\u2019","\\textquoteright"),re(Bt,ye,Ze,"\u201C","``",!0),re(Bt,ye,Ze,"\u201C","\\textquotedblleft"),re(Bt,ye,Ze,"\u201D","''",!0),re(Bt,ye,Ze,"\u201D","\\textquotedblright"),re(ce,ye,Ze,"\xB0","\\degree",!0),re(Bt,ye,Ze,"\xB0","\\degree"),re(Bt,ye,Ze,"\xB0","\\textdegree",!0),re(ce,ye,Ze,"\xA3","\\pounds"),re(ce,ye,Ze,"\xA3","\\mathsterling",!0),re(Bt,ye,Ze,"\xA3","\\pounds"),re(Bt,ye,Ze,"\xA3","\\textsterling",!0),re(ce,je,Ze,"\u2720","\\maltese"),re(Bt,je,Ze,"\u2720","\\maltese"),aN='0123456789/@."',RC=0;RC<aN.length;RC++)sN=aN.charAt(RC),re(ce,ye,Ze,sN,sN);for(oN='0123456789!@*()-=+";:?/.,',IC=0;IC<oN.length;IC++)lN=oN.charAt(IC),re(Bt,ye,Ze,lN,lN);for(Qb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",DC=0;DC<Qb.length;DC++)Jb=Qb.charAt(DC),re(ce,ye,Fr,Jb,Jb),re(Bt,ye,Ze,Jb,Jb);for(re(ce,je,Ze,"C","\u2102"),re(Bt,je,Ze,"C","\u2102"),re(ce,je,Ze,"H","\u210D"),re(Bt,je,Ze,"H","\u210D"),re(ce,je,Ze,"N","\u2115"),re(Bt,je,Ze,"N","\u2115"),re(ce,je,Ze,"P","\u2119"),re(Bt,je,Ze,"P","\u2119"),re(ce,je,Ze,"Q","\u211A"),re(Bt,je,Ze,"Q","\u211A"),re(ce,je,Ze,"R","\u211D"),re(Bt,je,Ze,"R","\u211D"),re(ce,je,Ze,"Z","\u2124"),re(Bt,je,Ze,"Z","\u2124"),re(ce,ye,Fr,"h","\u210E"),re(Bt,ye,Fr,"h","\u210E"),Zr="",Ps=0;Ps<Qb.length;Ps++)Jn=Qb.charAt(Ps),Zr=String.fromCharCode(55349,56320+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56372+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56424+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56580+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56684+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56736+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56788+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56840+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56944+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Ps<26&&(Zr=String.fromCharCode(55349,56632+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr),Zr=String.fromCharCode(55349,56476+Ps),re(ce,ye,Fr,Jn,Zr),re(Bt,ye,Ze,Jn,Zr));for(Zr="\u{1D55C}",re(ce,ye,Fr,"k",Zr),re(Bt,ye,Ze,"k",Zr),Jd=0;Jd<10;Jd++)Nu=Jd.toString(),Zr=String.fromCharCode(55349,57294+Jd),re(ce,ye,Fr,Nu,Zr),re(Bt,ye,Ze,Nu,Zr),Zr=String.fromCharCode(55349,57314+Jd),re(ce,ye,Fr,Nu,Zr),re(Bt,ye,Ze,Nu,Zr),Zr=String.fromCharCode(55349,57324+Jd),re(ce,ye,Fr,Nu,Zr),re(Bt,ye,Ze,Nu,Zr),Zr=String.fromCharCode(55349,57334+Jd),re(ce,ye,Fr,Nu,Zr),re(Bt,ye,Ze,Nu,Zr);for(NC="\xD0\xDE\xFE",MC=0;MC<NC.length;MC++)ex=NC.charAt(MC),re(ce,ye,Fr,ex,ex),re(Bt,ye,Ze,ex,ex);tx=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],cN=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],gpe=s(function(b,v){var k=b.charCodeAt(0),E=b.charCodeAt(1),A=(k-55296)*1024+(E-56320)+65536,I=v==="math"?0:1;if(119808<=A&&A<120484){var $=Math.floor((A-119808)/26);return[tx[$][2],tx[$][I]]}else if(120782<=A&&A<=120831){var O=Math.floor((A-120782)/10);return[cN[O][2],cN[O][I]]}else{if(A===120485||A===120486)return[tx[0][2],tx[0][I]];if(120486<A&&A<120782)return["",""];throw new Yt("Unsupported character: "+b)}},"wideCharacterFont"),rx=s(function(b,v,k){return un[k][b]&&un[k][b].replace&&(b=un[k][b].replace),{value:b,metrics:yC(b,v,k)}},"lookupSymbol"),_l=s(function(b,v,k,E,A){var I=rx(b,v,k),$=I.metrics;b=I.value;var O;if($){var j=$.italic;(k==="text"||E&&E.font==="mathit")&&(j=0),O=new el(b,$.height,$.depth,j,$.skew,$.width,A)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+b+"' in style '"+v+"' and mode '"+k+"'")),O=new el(b,0,0,0,0,0,A);if(E){O.maxFontSize=E.sizeMultiplier,E.style.isTight()&&O.classes.push("mtight");var D=E.getColor();D&&(O.style.color=D)}return O},"makeSymbol"),fpe=s(function(b,v,k,E){return E===void 0&&(E=[]),k.font==="boldsymbol"&&rx(b,"Main-Bold",v).metrics?_l(b,"Main-Bold",v,k,E.concat(["mathbf"])):b==="\\"||un[v][b].font==="main"?_l(b,"Main-Regular",v,k,E):_l(b,"AMS-Regular",v,k,E.concat(["amsrm"]))},"mathsym"),mpe=s(function(b,v,k,E,A){return A!=="textord"&&rx(b,"Math-BoldItalic",v).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},"boldsymbol"),ype=s(function(b,v,k){var E=b.mode,A=b.text,I=["mord"],$=E==="math"||E==="text"&&v.font,O=$?v.font:v.fontFamily,j="",D="";if(A.charCodeAt(0)===55349&&([j,D]=gpe(A,E)),j.length>
vendor: 5,494 bytes, line 256
2560)return _l(A,j,E,v,I.concat(D));if(O){var P,F;if(O==="boldsymbol"){var U=mpe(A,E,v,I,k);P=U.fontName,F=[U.fontClass]}else $?(P=dN[O].fontName,F=[O]):(P=ix(O,v.fontWeight,v.fontShape),F=[O,v.fontWeight,v.fontShape]);if(rx(A,P,E).metrics)return _l(A,P,E,v,I.concat(F));if(nN.hasOwnProperty(A)&&P.slice(0,10)==="Typewriter"){for(var z=[],V=0;V<A.length;V++)z.push(_l(A[V],P,E,v,I.concat(F)));return uN(z)}}if(k==="mathord")return _l(A,"Math-Italic",E,v,I.concat(["mathnormal"]));if(k==="textord"){var W=un[E][A]&&un[E][A].font;if(W==="ams"){var X=ix("amsrm",v.fontWeight,v.fontShape);return _l(A,X,E,v,I.concat("amsrm",v.fontWeight,v.fontShape))}else if(W==="main"||!W){var J=ix("textrm",v.fontWeight,v.fontShape);return _l(A,J,E,v,I.concat(v.fontWeight,v.fontShape))}else{var H=ix(W,v.fontWeight,v.fontShape);return _l(A,H,E,v,I.concat(H,v.fontWeight,v.fontShape))}}else throw new Error("unexpected type: "+k+" in makeOrd")},"makeOrd"),vpe=s((b,v)=>{if(Iu(b.classes)!==Iu(v.classes)||b.skew!==v.skew||b.maxFontSize!==v.maxFontSize)return!1;if(b.classes.length===1){var k=b.classes[0];if(k==="mbin"||k==="mord")return!1}for(var E in b.style)if(b.style.hasOwnProperty(E)&&b.style[E]!==v.style[E])return!1;for(var A in v.style)if(v.style.hasOwnProperty(A)&&b.style[A]!==v.style[A])return!1;return!0},"canCombine"),bpe=s(b=>{for(var v=0;v<b.length-1;v++){var k=b[v],E=b[v+1];k instanceof el&&E instanceof el&&vpe(k,E)&&(k.text+=E.text,k.height=Math.max(k.height,E.height),k.depth=Math.max(k.depth,E.depth),k.italic=E.italic,b.splice(v+1,1),v--)}return b},"tryCombineChars"),OC=s(function(b){for(var v=0,k=0,E=0,A=0;A<b.children.length;A++){var I=b.children[A];I.height>v&&(v=I.height),I.depth>k&&(k=I.depth),I.maxFontSize>E&&(E=I.maxFontSize)}b.height=v,b.depth=k,b.maxFontSize=E},"sizeElementFromChildren"),io=s(function(b,v,k,E){var A=new vm(b,v,k,E);return OC(A),A},"makeSpan"),hN=s((b,v,k,E)=>new vm(b,v,k,E),"makeSvgSpan"),xpe=s(function(b,v,k){var E=io([b],[],v);return E.height=Math.max(k||v.fontMetrics().defaultRuleThickness,v.minRuleThickness),E.style.borderBottomWidth=tr(E.height),E.maxFontSize=1,E},"makeLineSpan"),kpe=s(function(b,v,k,E){var A=new AC(b,v,k,E);return OC(A),A},"makeAnchor"),uN=s(function(b){var v=new ym(b);return OC(v),v},"makeFragment"),Tpe=s(function(b,v){return b instanceof ym?io([],[b],v):b},"wrapFragment"),wpe=s(function(b){if(b.positionType==="individualShift"){for(var v=b.children,k=[v[0]],E=-v[0].shift-v[0].elem.depth,A=E,I=1;I<v.length;I++){var $=-v[I].shift-A-v[I].elem.depth,O=$-(v[I-1].elem.height+v[I-1].elem.depth);A=A+$,k.push({type:"kern",size:O}),k.push(v[I])}return{children:k,depth:E}}var j;if(b.positionType==="top"){for(var D=b.positionData,P=0;P<b.children.length;P++){var F=b.children[P];D-=F.type==="kern"?F.size:F.elem.height+F.elem.depth}j=D}else if(b.positionType==="bottom")j=-b.positionData;else{var U=b.children[0];if(U.type!=="elem")throw new Error('First child must have type "elem".');if(b.positionType==="shift")j=-U.elem.depth-b.positionData;else if(b.positionType==="firstBaseline")j=-U.elem.depth;else throw new Error("Invalid positionType "+b.positionType+".")}return{children:b.children,depth:j}},"getVListChildrenAndDepth"),Cpe=s(function(b,v){for(var{children:k,depth:E}=wpe(b),A=0,I=0;I<k.length;I++){var $=k[I];if($.type==="elem"){var O=$.elem;A=Math.max(A,O.maxFontSize,O.height)}}A+=2;var j=io(["pstrut"],[]);j.style.height=tr(A);for(var D=[],P=E,F=E,U=E,z=0;z<k.length;z++){var V=k[z];if(V.type==="kern")U+=V.size;else{var W=V.elem,X=V.wrapperClasses||[],J=V.wrapperStyle||{},H=io(X,[j,W],void 0,J);H.style.top=tr(-A-U-W.depth),V.marginLeft&&(H.style.marginLeft=V.marginLeft),V.marginRight&&(H.style.marginRight=V.marginRight),D.push(H),U+=W.height+W.depth}P=Math.min(P,U),F=Math.max(F,U)}var te=io(["vlist"],D);te.style.height=tr(F);var ie;if(P<0){var oe=io([],[]),he=io(["vlist"],[oe]);he.style.height=tr(-P);var pe=io(["vlist-s"],[new el("\u200B")]);ie=[io(["vlist-r"],[te,pe]),io(["vlist-r"],[he])]}else ie=[io(["vlist-r"],[te])];var se=io(["vlist-t"],ie);return ie.length===2&&se.classes.push("vlist-t2"),se.height=F,se.depth=-P,se},"makeVList"),Epe=s((b,v)=>{var k=io(["mspace"],[],v),E=Xn(b,v);return k.style.marginRight=tr(E),k},"makeGlue"),ix=s(function(b,v,k){var E="";switch(b){case"amsrm":E="AMS";break;case"textrm":E="Main";break;case"textsf":E="SansSerif";break;case"texttt":E="Typewriter";break;default:E=b}var A;return v==="textbf"&&k==="textit"?A="BoldItalic":v==="textbf"?A="Bold":v==="textit"?A="Italic":A="Regular",E+"-"+A},"retrieveTextFontName"),dN={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"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-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"}},pN={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Spe=s(function(b,v){var[k,E,A]=pN[b],I=new Du(k),$=new dh([I],{width:tr(E),height:tr(A),style:"width:"+tr(E),viewB
vendor: 4,321 bytes, line 256
256ox:"0 0 "+1e3*E+" "+1e3*A,preserveAspectRatio:"xMinYMin"}),O=hN(["overlay"],[$],v);return O.height=A,O.style.height=tr(A),O.style.width=tr(E),O},"staticSvg"),pt={fontMap:dN,makeSymbol:_l,mathsym:fpe,makeSpan:io,makeSvgSpan:hN,makeLineSpan:xpe,makeAnchor:kpe,makeFragment:uN,wrapFragment:Tpe,makeVList:Cpe,makeOrd:ype,makeGlue:Epe,staticSvg:Spe,svgData:pN,tryCombineChars:bpe},Kn={number:3,unit:"mu"},ep={number:4,unit:"mu"},gh={number:5,unit:"mu"},_pe={mord:{mop:Kn,mbin:ep,mrel:gh,minner:Kn},mop:{mord:Kn,mop:Kn,mrel:gh,minner:Kn},mbin:{mord:ep,mop:ep,mopen:ep,minner:ep},mrel:{mord:gh,mop:gh,mopen:gh,minner:gh},mopen:{},mclose:{mop:Kn,mbin:ep,mrel:gh,minner:Kn},mpunct:{mord:Kn,mop:Kn,mrel:gh,mopen:Kn,mclose:Kn,mpunct:Kn,minner:Kn},minner:{mord:Kn,mop:Kn,mbin:ep,mrel:gh,mopen:Kn,mpunct:Kn,minner:Kn}},Ape={mord:{mop:Kn},mop:{mord:Kn,mop:Kn},mbin:{},mrel:{},mopen:{},mclose:{mop:Kn},mpunct:{},minner:{mop:Kn}},gN={},nx={},ax={},s(hr,"defineFunction"),s(Qd,"defineFunctionBuilders"),sx=s(function(b){return b.type==="ordgroup"&&b.body.length===1?b.body[0]:b},"normalizeArgument"),ca=s(function(b){return b.type==="ordgroup"?b.body:[b]},"ordargument"),fh=pt.makeSpan,Lpe=["leftmost","mbin","mopen","mrel","mop","mpunct"],Rpe=["rightmost","mrel","mclose","mpunct"],Ipe={display:Pr.DISPLAY,text:Pr.TEXT,script:Pr.SCRIPT,scriptscript:Pr.SCRIPTSCRIPT},Dpe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ma=s(function(b,v,k,E){E===void 0&&(E=[null,null]);for(var A=[],I=0;I<b.length;I++){var $=Ni(b[I],v);if($ instanceof ym){var O=$.children;A.push(...O)}else A.push($)}if(pt.tryCombineChars(A),!k)return A;var j=v;if(b.length===1){var D=b[0];D.type==="sizing"?j=v.havingSize(D.size):D.type==="styling"&&(j=v.havingStyle(Ipe[D.style]))}var P=fh([E[0]||"leftmost"],[],v),F=fh([E[1]||"rightmost"],[],v),U=k==="root";return fN(A,(z,V)=>{var W=V.classes[0],X=z.classes[0];W==="mbin"&&Rpe.includes(X)?V.classes[0]="mord":X==="mbin"&&Lpe.includes(W)&&(z.classes[0]="mord")},{node:P},F,U),fN(A,(z,V)=>{var W=$C(V),X=$C(z),J=W&&X?z.hasClass("mtight")?Ape[W][X]:_pe[W][X]:null;if(J)return pt.makeGlue(J,j)},{node:P},F,U),A},"buildExpression"),fN=s(f(function b(v,k,E,A,I){A&&v.push(A);for(var $=0;$<v.length;$++){var O=v[$],j=mN(O);if(j){b(j.children,k,E,null,I);continue}var D=!O.hasClass("mspace");if(D){var P=k(O,E.node);P&&(E.insertAfter?E.insertAfter(P):(v.unshift(P),$++))}D?E.node=O:I&&O.hasClass("newline")&&(E.node=fh(["leftmost"])),E.insertAfter=(F=>U=>{v.splice(F+1,0,U),$++})($)}A&&v.pop()},"e"),"traverseNonSpaceNodes"),mN=s(function(b){return b instanceof ym||b instanceof AC||b instanceof vm&&b.hasClass("enclosing")?b:null},"checkPartialGroup"),Npe=s(f(function b(v,k){var E=mN(v);if(E){var A=E.children;if(A.length){if(k==="right")return b(A[A.length-1],"right");if(k==="left")return b(A[0],"left")}}return v},"e"),"getOutermostNode"),$C=s(function(b,v){return b?(v&&(b=Npe(b,v)),Dpe[b.classes[0]]||null):null},"getTypeOfDomTree"),bm=s(function(b,v){var k=["nulldelimiter"].concat(b.baseSizingClasses());return fh(v.concat(k))},"makeNullDelimiter"),Ni=s(function(b,v,k){if(!b)return fh();if(nx[b.type]){var E=nx[b.type](b,v);if(k&&v.size!==k.size){E=fh(v.sizingClasses(k),[E],v);var A=v.sizeMultiplier/k.sizeMultiplier;E.height*=A,E.depth*=A}return E}else throw new Yt("Got group of unknown type: '"+b.type+"'")},"buildGroup"),s(Vb,"buildHTMLUnbreakable"),s(vC,"buildHTML"),s(qD,"newDocumentFragment"),Lo=(y=class{constructor(v,k,E){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=v,this.attributes={},this.children=k||[],this.classes=E||[]}setAttribute(v,k){this.attributes[v]=k}getAttribute(v){return this.attributes[v]}toNode(){var v=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&v.setAttribute(k,this.attributes[k]);this.classes.length>0&&(v.className=Iu(this.classes));for(var E=0;E<this.children.length;E++)if(this.children[E]instanceof dc&&this.children[E+1]instanceof dc){for(var A=this.children[E].toText()+this.children[++E].toText();this.children[E+1]instanceof dc;)A+=this.children[++E].toText();v.appendChild(new dc(A).toNode())}else v.appendChild(this.children[E].toNode());return v}
vendor: 79,662 bytes, lines 256-257
256toMarkup(){var v="<"+this.type;for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&(v+=" "+k+'="',v+=Fi.escape(this.attributes[k]),v+='"');this.classes.length>0&&(v+=' class ="'+Fi.escape(Iu(this.classes))+'"'),v+=">";for(var E=0;E<this.children.length;E++)v+=this.children[E].toMarkup();return v+="</"+this.type+">",v}toText(){return this.children.map(v=>v.toText()).join("")}},f(y,"Ha"),s(y,"MathNode"),y),dc=(x=class{constructor(v){this.text=void 0,this.text=v}toNode(){return document.createTextNode(this.text)}toMarkup(){return Fi.escape(this.toText())}toText(){return this.text}},f(x,"Mo"),s(x,"TextNode"),x),Mpe=(C=class{constructor(v){this.width=void 0,this.character=void 0,this.width=v,v>=.05555&&v<=.05556?this.character="\u200A":v>=.1666&&v<=.1667?this.character="\u2009":v>=.2222&&v<=.2223?this.character="\u2005":v>=.2777&&v<=.2778?this.character="\u2005\u200A":v>=-.05556&&v<=-.05555?this.character="\u200A\u2063":v>=-.1667&&v<=-.1666?this.character="\u2009\u2063":v>=-.2223&&v<=-.2222?this.character="\u205F\u2063":v>=-.2778&&v<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var v=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return v.setAttribute("width",tr(this.width)),v}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+tr(this.width)+'"/>'}toText(){return this.character?this.character:" "}},f(C,"iD"),s(C,"SpaceNode"),C),Ut={MathNode:Lo,TextNode:dc,SpaceNode:Mpe,newDocumentFragment:qD},tl=s(function(b,v,k){return un[v][b]&&un[v][b].replace&&b.charCodeAt(0)!==55349&&!(nN.hasOwnProperty(b)&&k&&(k.fontFamily&&k.fontFamily.slice(4,6)==="tt"||k.font&&k.font.slice(4,6)==="tt"))&&(b=un[v][b].replace),new Ut.TextNode(b)},"makeText"),BC=s(function(b){return b.length===1?b[0]:new Ut.MathNode("mrow",b)},"makeRow"),PC=s(function(b,v){if(v.fontFamily==="texttt")return"monospace";if(v.fontFamily==="textsf")return v.fontShape==="textit"&&v.fontWeight==="textbf"?"sans-serif-bold-italic":v.fontShape==="textit"?"sans-serif-italic":v.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(v.fontShape==="textit"&&v.fontWeight==="textbf")return"bold-italic";if(v.fontShape==="textit")return"italic";if(v.fontWeight==="textbf")return"bold";var k=v.font;if(!k||k==="mathnormal")return null;var E=b.mode;if(k==="mathit")return"italic";if(k==="boldsymbol")return b.type==="textord"?"bold":"bold-italic";if(k==="mathbf")return"bold";if(k==="mathbb")return"double-struck";if(k==="mathsfit")return"sans-serif-italic";if(k==="mathfrak")return"fraktur";if(k==="mathscr"||k==="mathcal")return"script";if(k==="mathsf")return"sans-serif";if(k==="mathtt")return"monospace";var A=b.text;if(["\\imath","\\jmath"].includes(A))return null;un[E][A]&&un[E][A].replace&&(A=un[E][A].replace);var I=pt.fontMap[k].fontName;return yC(A,I,E)?pt.fontMap[k].variant:null},"getVariant"),s(bC,"isNumberPunctuation"),no=s(function(b,v,k){if(b.length===1){var E=ln(b[0],v);return k&&E instanceof Lo&&E.type==="mo"&&(E.setAttribute("lspace","0em"),E.setAttribute("rspace","0em")),[E]}for(var A=[],I,$=0;$<b.length;$++){var O=ln(b[$],v);if(O instanceof Lo&&I instanceof Lo){if(O.type==="mtext"&&I.type==="mtext"&&O.getAttribute("mathvariant")===I.getAttribute("mathvariant")){I.children.push(...O.children);continue}else if(O.type==="mn"&&I.type==="mn"){I.children.push(...O.children);continue}else if(bC(O)&&I.type==="mn"){I.children.push(...O.children);continue}else if(O.type==="mn"&&bC(I))O.children=[...I.children,...O.children],A.pop();else if((O.type==="msup"||O.type==="msub")&&O.children.length>=1&&(I.type==="mn"||bC(I))){var j=O.children[0];j instanceof Lo&&j.type==="mn"&&(j.children=[...I.children,...j.children],A.pop())}else if(I.type==="mi"&&I.children.length===1){var D=I.children[0];if(D instanceof dc&&D.text==="\u0338"&&(O.type==="mo"||O.type==="mi"||O.type==="mn")){var P=O.children[0];P instanceof dc&&P.text.length>0&&(P.text=P.text.slice(0,1)+"\u0338"+P.text.slice(1),A.pop())}}}A.push(O),I=O}return A},"buildExpression"),Mu=s(function(b,v,k){return BC(no(b,v,k))},"buildExpressionRow"),ln=s(function(b,v){if(!b)return new Ut.MathNode("mrow");if(ax[b.type]){var k=ax[b.type](b,v);return k}else throw new Yt("Got group of unknown type: '"+b.type+"'")},"buildGroup"),s(jD,"buildMathML"),yN=s(function(b){return new JD({style:b.displayMode?Pr.DISPLAY:Pr.TEXT,maxSize:b.maxSize,minRuleThickness:b.minRuleThickness})},"optionsFromSettings"),vN=s(function(b,v){if(v.displayMode){var k=["katex-display"];v.leqno&&k.push("leqno"),v.fleqn&&k.push("fleqn"),b=pt.makeSpan(k,[b])}return b},"displayWrap"),Ope=s(function(b,v,k){var E=yN(k),A;if(k.output==="mathml")return jD(b,v,E,k.displayMode,!0);if(k.output==="html"){var I=vC(b,E);A=pt.makeSpan(["katex"],[I])}else{var $=jD(b,v,E,k.displayMode,!1),O=vC(b,E);A=pt.makeSpan(["katex"],[$,O])}return vN(A,k)},"buildTree"),$pe=s(function(b,v,k){var E=yN(k),A=vC(b,E),I=pt.makeSpan(["katex"],[A]);return vN(I,k)},"buildHTMLTree"),Bpe={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":"="},Ppe=s(function(b){var v=new Ut.MathNode("mo",[new Ut.TextNode(Bpe[b.replace(/^\\/,"")])]);return v.setAttribute("stretchy","true"),v},"mathMLnode"),Fpe={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]},zpe=s(function(b){return b.type==="ordgroup"?b.body.length:1},"groupLength"),qpe=s(function(b,v){function k(){var $=4e5,O=b.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(O)){var j=b,D=zpe(j.base),P,F,U;if(D>5)O==="widehat"||O==="widecheck"?(P=420,$=2364,U=.42,F=O+"4"):(P=312,$=2340,U=.34,F="tilde4");else{var z=[1,1,2,2,3,3][D];O==="widehat"||O==="widecheck"?($=[0,1062,2364,2364,2364][z],P=[0,239,300,360,420][z],U=[0,.24,.3,.3,.36,.42][z],F=O+z):($=[0,600,1033,2339,2340][z],P=[0,260,286,306,312][z],U=[0,.26,.286,.3,.306,.34][z],F="tilde"+z)}var V=new Du(F),W=new dh([V],{width:"100%",height:tr(U),viewBox:"0 0 "+$+" "+P,preserveAspectRatio:"none"});return{span:pt.makeSvgSpan([],[W],v),minWidth:0,height:U}}else{var X=[],J=Fpe[O],[H,te,ie]=J,oe=ie/1e3,he=H.length,pe,se;if(he===1){var le=J[3];pe=["hide-tail"],se=[le]}else if(he===2)pe=["halfarrow-left","halfarrow-right"],se=["xMinYMin","xMaxYMin"];else if(he===3)pe=["brace-left","brace-center","brace-right"],se=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 257 `+he+" children.");for(var ue=0;ue<he;ue++){var de=new Du(H[ue]),we=new dh([de],{width:"400em",height:tr(oe),viewBox:"0 0 "+$+" "+ie,preserveAspectRatio:se[ue]+" slice"}),De=pt.makeSvgSpan([pe[ue]],[we],v);if(he===1)return{span:De,minWidth:te,height:oe};De.style.height=tr(oe),X.push(De)}return{span:pt.makeSpan(["stretchy"],X,v),minWidth:te,height:oe}}}f(k,"i"),s(k,"buildSvgSpan_");var{span:E,minWidth:A,height:I}=k();return E.height=I,E.style.height=tr(I),A>0&&(E.style.minWidth=tr(A)),E},"svgSpan"),jpe=s(function(b,v,k,E,A){var I,$=b.height+b.depth+k+E;if(/fbox|color|angl/.test(v)){if(I=pt.makeSpan(["stretchy",v],[],A),v==="fbox"){var O=A.color&&A.getColor();O&&(I.style.borderColor=O)}}else{var j=[];/^[bx]cancel$/.test(v)&&j.push(new LC({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(v)&&j.push(new LC({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var D=new dh(j,{width:"100%",height:tr($)});I=pt.makeSvgSpan([],[D],A)}return I.height=$,I.style.height=tr($),I},"encloseSpan"),mh={encloseSpan:jpe,mathMLnode:Ppe,svgSpan:qpe},s(di,"assertNodeType"),s(xC,"assertSymbolNodeType"),s(Wb,"checkSymbolNodeType"),FC=s((b,v)=>{var k,E,A;b&&b.type==="supsub"?(E=di(b.base,"accent"),k=E.base,b.base=k,A=Mde(Ni(b,v)),b.base=E):(E=di(b,"accent"),k=E.base);var I=Ni(k,v.havingCrampedStyle()),$=E.isShifty&&Fi.isCharacterBox(k),O=0;if($){var j=Fi.getBaseElem(k),D=Ni(j,v.havingCrampedStyle());O=zD(D).skew}var P=E.label==="\\c",F=P?I.height+I.depth:Math.min(I.height,v.fontMetrics().xHeight),U;if(E.isStretchy)U=mh.svgSpan(E,v),U=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I},{type:"elem",elem:U,wrapperClasses:["svg-align"],wrapperStyle:O>0?{width:"calc(100% - "+tr(2*O)+")",marginLeft:tr(2*O)}:void 0}]},v);else{var z,V;E.label==="\\vec"?(z=pt.staticSvg("vec",v),V=pt.svgData.vec[1]):(z=pt.makeOrd({mode:E.mode,text:E.label},v,"textord"),z=zD(z),z.italic=0,V=z.width,P&&(F+=z.depth)),U=pt.makeSpan(["accent-body"],[z]);var W=E.label==="\\textcircled";W&&(U.classes.push("accent-full"),F=I.height);var X=O;W||(X-=V/2),U.style.left=tr(X),E.label==="\\textcircled"&&(U.style.top=".2em"),U=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I},{type:"kern",size:-F},{type:"elem",elem:U}]},v)}var J=pt.makeSpan(["mord","accent"],[U],v);return A?(A.children[0]=J,A.height=Math.max(J.height,A.height),A.classes[0]="mord",A):J},"htmlBuilder$a"),bN=s((b,v)=>{var k=b.isStretchy?mh.mathMLnode(b.label):new Ut.MathNode("mo",[tl(b.label,b.mode)]),E=new Ut.MathNode("mover",[ln(b.base,v),k]);return E.setAttribute("accent","true"),E},"mathmlBuilder$9"),Gpe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(b=>"\\"+b).join("|")),hr({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((b,v)=>{var k=sx(v[0]),E=!Gpe.test(b.funcName),A=!E||b.funcName==="\\widehat"||b.funcName==="\\widetilde"||b.funcName==="\\widecheck";return{type:"accent",mode:b.parser.mode,label:b.funcName,isStretchy:E,isShifty:A,base:k}},"handler"),htmlBuilder:FC,mathmlBuilder:bN}),hr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:s((b,v)=>{var k=v[0],E=b.parser.mode;return E==="math"&&(b.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+b.funcName+" works only in text mode"),E="text"),{type:"accent",mode:E,label:b.funcName,isStretchy:!1,isShifty:!0,base:k}},"handler"),htmlBuilder:FC,mathmlBuilder:bN}),hr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0];return{type:"accentUnder",mode:k.mode,label:E,base:A}},"handler"),htmlBuilder:s((b,v)=>{var k=Ni(b.base,v),E=mh.svgSpan(b,v),A=b.label==="\\utilde"?.12:0,I=pt.makeVList({positionType:"top",positionData:k.height,children:[{type:"elem",elem:E,wrapperClasses:["svg-align"]},{type:"kern",size:A},{type:"elem",elem:k}]},v);return pt.makeSpan(["mord","accentunder"],[I],v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=mh.mathMLnode(b.label),E=new Ut.MathNode("munder",[ln(b.base,v),k]);return E.setAttribute("accentunder","true"),E},"mathmlBuilder")}),ox=s(b=>{var v=new Ut.MathNode("mpadded",b?[b]:[]);return v.setAttribute("width","+0.6em"),v.setAttribute("lspace","0.3em"),v},"paddedNode"),hr({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(b,v,k){var{parser:E,funcName:A}=b;return{type:"xArrow",mode:E.mode,label:A,body:v[0],below:k[0]}},htmlBuilder(b,v){var k=v.style,E=v.havingStyle(k.sup()),A=pt.wrapFragment(Ni(b.body,E,v),v),I=b.label.slice(0,2)==="\\x"?"x":"cd";A.classes.push(I+"-arrow-pad");var $;b.below&&(E=v.havingStyle(k.sub()),$=pt.wrapFragment(Ni(b.below,E,v),v),$.classes.push(I+"-arrow-pad"));var O=mh.svgSpan(b,v),j=-v.fontMetrics().axisHeight+.5*O.height,D=-v.fontMetrics().axisHeight-.5*O.height-.111;(A.depth>.25||b.label==="\\xleftequilibrium")&&(D-=A.depth);var P;if($){var F=-v.fontMetrics().axisHeight+$.height+.5*O.height+.111;P=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:A,shift:D},{type:"elem",elem:O,shift:j},{type:"elem",elem:$,shift:F}]},v)}else P=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:A,shift:D},{type:"elem",elem:O,shift:j}]},v);return P.children[0].children[0].children[1].classes.push("svg-align"),pt.makeSpan(["mrel","x-arrow"],[P],v)},mathmlBuilder(b,v){var k=mh.mathMLnode(b.label);k.setAttribute("minsize",b.label.charAt(0)==="x"?"1.75em":"3.0em");var E;if(b.body){var A=ox(ln(b.body,v));if(b.below){var I=ox(ln(b.below,v));E=new Ut.MathNode("munderover",[k,I,A])}else E=new Ut.MathNode("mover",[k,A])}else if(b.below){var $=ox(ln(b.below,v));E=new Ut.MathNode("munder",[k,$])}else E=ox(),E=new Ut.MathNode("mover",[k,E]);return E}}),Upe=pt.makeSpan,s(GD,"htmlBuilder$9"),s(UD,"mathmlBuilder$8"),hr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(b,v){var{parser:k,funcName:E}=b,A=v[0];return{type:"mclass",mode:k.mode,mclass:"m"+E.slice(5),body:ca(A),isCharacterBox:Fi.isCharacterBox(A)}},htmlBuilder:GD,mathmlBuilder:UD}),lx=s(b=>{var v=b.type==="ordgroup"&&b.body.length?b.body[0]:b;return v.type==="atom"&&(v.family==="bin"||v.family==="rel")?"m"+v.family:"mord"},"binrelClass"),hr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(b,v){var{parser:k}=b;return{type:"mclass",mode:k.mode,mclass:lx(v[0]),body:ca(v[1]),isCharacterBox:Fi.isCharacterBox(v[1])}}}),hr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(b,v){var{parser:k,funcName:E}=b,A=v[1],I=v[0],$;E!=="\\stackrel"?$=lx(A):$="mrel";var O={type:"op",mode:A.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:E!=="\\stackrel",body:ca(A)},j={type:"supsub",mode:I.mode,base:O,sup:E==="\\underset"?null:I,sub:E==="\\underset"?I:null};return{type:"mclass",mode:k.mode,mclass:$,body:[j],isCharacterBox:Fi.isCharacterBox(j)}},htmlBuilder:GD,mathmlBuilder:UD}),hr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(b,v){var{parser:k}=b;return{type:"pmb",mode:k.mode,mclass:lx(v[0]),body:ca(v[0])}},htmlBuilder(b,v){var k=Ma(b.body,v,!0),E=pt.makeSpan([b.mclass],k,v);return E.style.textShadow="0.02em 0.01em 0.04px",E},mathmlBuilder(b,v){var k=no(b.body,v),E=new Ut.MathNode("mstyle",k);return E.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),E}}),Vpe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},xN=s(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),kN=s(b=>b.type==="textord"&&b.text==="@","isStartOfArrow"),Wpe=s((b,v)=>(b.type==="mathord"||b.type==="atom")&&b.text===v,"isLabelEnd"),s(Ode,"cdArrow"),s($de,"parseCD"),hr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(b,v){var{parser:k,funcName:E}=b;return{type:"cdlabel",mode:k.mode,side:E.slice(4),label:v[0]}},htmlBuilder(b,v){var k=v.havingStyle(v.style.sup()),E=pt.wrapFragment(Ni(b.label,k,v),v);return E.classes.push("cd-label-"+b.side),E.style.bottom=tr(.8-E.depth),E.height=0,E.depth=0,E},mathmlBuilder(b,v){var k=new Ut.MathNode("mrow",[ln(b.label,v)]);return k=new Ut.MathNode("mpadded",[k]),k.setAttribute("width","0"),b.side==="left"&&k.setAttribute("lspace","-1width"),k.setAttribute("voffset","0.7em"),k=new Ut.MathNode("mstyle",[k]),k.setAttribute("displaystyle","false"),k.setAttribute("scriptlevel","1"),k}}),hr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(b,v){var{parser:k}=b;return{type:"cdlabelparent",mode:k.mode,fragment:v[0]}},htmlBuilder(b,v){var k=pt.wrapFragment(Ni(b.fragment,v),v);return k.classes.push("cd-vert-arrow"),k},mathmlBuilder(b,v){return new Ut.MathNode("mrow",[ln(b.fragment,v)])}}),hr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(b,v){for(var{parser:k}=b,E=di(v[0],"ordgroup"),A=E.body,I="",$=0;$<A.length;$++){var O=di(A[$],"textord");I+=O.text}var j=parseInt(I),D;if(isNaN(j))throw new Yt("\\@char has non-numeric argument "+I);if(j<0||j>=1114111)throw new Yt("\\@char with invalid code point "+I);return j<=65535?D=String.fromCharCode(j):(j-=65536,D=String.fromCharCode((j>>10)+55296,(j&1023)+56320)),{type:"textord",mode:k.mode,text:D}}}),TN=s((b,v)=>{var k=Ma(b.body,v.withColor(b.color),!1);return pt.makeFragment(k)},"htmlBuilder$8"),wN=s((b,v)=>{var k=no(b.body,v.withColor(b.color)),E=new Ut.MathNode("mstyle",k);return E.setAttribute("mathcolor",b.color),E},"mathmlBuilder$7"),hr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(b,v){var{parser:k}=b,E=di(v[0],"color-token").color,A=v[1];return{type:"color",mode:k.mode,color:E,body:ca(A)}},htmlBuilder:TN,mathmlBuilder:wN}),hr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(b,v){var{parser:k,breakOnTokenText:E}=b,A=di(v[0],"color-token").color;k.gullet.macros.set("\\current@color",A);var I=k.parseExpression(!0,E);return{type:"color",mode:k.mode,color:A,body:I}},htmlBuilder:TN,mathmlBuilder:wN}),hr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(b,v,k){var{parser:E}=b,A=E.gullet.future().text==="["?E.parseSizeGroup(!0):null,I=!E.settings.displayMode||!E.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:E.mode,newLine:I,size:A&&di(A,"size").value}},htmlBuilder(b,v){var k=pt.makeSpan(["mspace"],[],v);return b.newLine&&(k.classes.push("newline"),b.size&&(k.style.marginTop=tr(Xn(b.size,v)))),k},mathmlBuilder(b,v){var k=new Ut.MathNode("mspace");return b.newLine&&(k.setAttribute("linebreak","newline"),b.size&&k.setAttribute("height",tr(Xn(b.size,v)))),k}}),zC={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},CN=s(b=>{var v=b.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(v))throw new Yt("Expected a control sequence",b);return v},"checkControlSequence"),Hpe=s(b=>{var v=b.gullet.popToken();return v.text==="="&&(v=b.gullet.popToken(),v.text===" "&&(v=b.gullet.popToken())),v},"getRHS"),EN=s((b,v,k,E)=>{var A=b.gullet.macros.get(k.text);A==null&&(k.noexpand=!0,A={tokens:[k],numArgs:0,unexpandable:!b.gullet.isExpandable(k.text)}),b.gullet.macros.set(v,A,E)},"letCommand"),hr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(b){var{parser:v,funcName:k}=b;v.consumeSpaces();var E=v.fetch();if(zC[E.text])return(k==="\\global"||k==="\\\\globallong")&&(E.text=zC[E.text]),di(v.parseFunction(),"internal");throw new Yt("Invalid token after macro prefix",E)}}),hr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(b){var{parser:v,funcName:k}=b,E=v.gullet.popToken(),A=E.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(A))throw new Yt("Expected a control sequence",E);for(var I=0,$,O=[[]];v.gullet.future().text!=="{";)if(E=v.gullet.popToken(),E.text==="#"){if(v.gullet.future().text==="{"){$=v.gullet.future(),O[I].push("{");break}if(E=v.gullet.popToken(),!/^[1-9]$/.test(E.text))throw new Yt('Invalid argument number "'+E.text+'"');if(parseInt(E.text)!==I+1)throw new Yt('Argument number "'+E.text+'" out of order');I++,O.push([])}else{if(E.text==="EOF")throw new Yt("Expected a macro definition");O[I].push(E.text)}var{tokens:j}=v.gullet.consumeArg();return $&&j.unshift($),(k==="\\edef"||k==="\\xdef")&&(j=v.gullet.expandTokens(j),j.reverse()),v.gullet.macros.set(A,{tokens:j,numArgs:I,delimiters:O},k===zC[k]),{type:"internal",mode:v.mode}}}),hr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(b){var{parser:v,funcName:k}=b,E=CN(v.gullet.popToken());v.gullet.consumeSpaces();var A=Hpe(v);return EN(v,E,A,k==="\\\\globallet"),{type:"internal",mode:v.mode}}}),hr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(b){var{parser:v,funcName:k}=b,E=CN(v.gullet.popToken()),A=v.gullet.popToken(),I=v.gullet.popToken();return EN(v,E,I,k==="\\\\globalfuture"),v.gullet.pushToken(I),v.gullet.pushToken(A),{type:"internal",mode:v.mode}}}),xm=s(function(b,v,k){var E=un.math[b]&&un.math[b].replace,A=yC(E||b,v,k);if(!A)throw new Error("Unsupported symbol "+b+" and font size "+v+".");return A},"getMetrics"),qC=s(function(b,v,k,E){var A=k.havingBaseStyle(v),I=pt.makeSpan(E.concat(A.sizingClasses(k)),[b],k),$=A.sizeMultiplier/k.sizeMultiplier;return I.height*=$,I.depth*=$,I.maxFontSize=A.sizeMultiplier,I},"styleWrap"),SN=s(function(b,v,k){var E=v.havingBaseStyle(k),A=(1-v.sizeMultiplier/E.sizeMultiplier)*v.fontMetrics().axisHeight;b.classes.push("delimcenter"),b.style.top=tr(A),b.height-=A,b.depth+=A},"centerSpan"),Ype=s(function(b,v,k,E,A,I){var $=pt.makeSymbol(b,"Main-Regular",A,E),O=qC($,v,E,I);return k&&SN(O,E,v),O},"makeSmallDelim"),Xpe=s(function(b,v,k,E){return pt.makeSymbol(b,"Size"+v+"-Regular",k,E)},"mathrmSize"),_N=s(function(b,v,k,E,A,I){var $=Xpe(b,v,A,E),O=qC(pt.makeSpan(["delimsizing","size"+v],[$],E),Pr.TEXT,E,I);return k&&SN(O,E,Pr.TEXT),O},"makeLargeDelim"),jC=s(function(b,v,k){var E;v==="Size1-Regular"?E="delim-size1":E="delim-size4";var A=pt.makeSpan(["delimsizinginner",E],[pt.makeSpan([],[pt.makeSymbol(b,v,k)])]);return{type:"elem",elem:A}},"makeGlyphSpan"),GC=s(function(b,v,k){var E=uc["Size4-Regular"][b.charCodeAt(0)]?uc["Size4-Regular"][b.charCodeAt(0)][4]:uc["Size1-Regular"][b.charCodeAt(0)][4],A=new Du("inner",ape(b,Math.round(1e3*v))),I=new dh([A],{width:tr(E),height:tr(v),style:"width:"+tr(E),viewBox:"0 0 "+1e3*E+" "+Math.round(1e3*v),preserveAspectRatio:"xMinYMin"}),$=pt.makeSvgSpan([],[I],k);return $.height=v,$.style.height=tr(v),$.style.width=tr(E),{type:"elem",elem:$}},"makeInner"),UC=.008,cx={type:"kern",size:-1*UC},Kpe=["|","\\lvert","\\rvert","\\vert"],Zpe=["\\|","\\lVert","\\rVert","\\Vert"],AN=s(function(b,v,k,E,A,I){var $,O,j,D,P="",F=0;$=j=D=b,O=null;var U="Size1-Regular";b==="\\uparrow"?j=D="\u23D0":b==="\\Uparrow"?j=D="\u2016":b==="\\downarrow"?$=j="\u23D0":b==="\\Downarrow"?$=j="\u2016":b==="\\updownarrow"?($="\\uparrow",j="\u23D0",D="\\downarrow"):b==="\\Updownarrow"?($="\\Uparrow",j="\u2016",D="\\Downarrow"):Kpe.includes(b)?(j="\u2223",P="vert",F=333):Zpe.includes(b)?(j="\u2225",P="doublevert",F=556):b==="["||b==="\\lbrack"?($="\u23A1",j="\u23A2",D="\u23A3",U="Size4-Regular",P="lbrack",F=667):b==="]"||b==="\\rbrack"?($="\u23A4",j="\u23A5",D="\u23A6",U="Size4-Regular",P="rbrack",F=667):b==="\\lfloor"||b==="\u230A"?(j=$="\u23A2",D="\u23A3",U="Size4-Regular",P="lfloor",F=667):b==="\\lceil"||b==="\u2308"?($="\u23A1",j=D="\u23A2",U="Size4-Regular",P="lceil",F=667):b==="\\rfloor"||b==="\u230B"?(j=$="\u23A5",D="\u23A6",U="Size4-Regular",P="rfloor",F=667):b==="\\rceil"||b==="\u2309"?($="\u23A4",j=D="\u23A5",U="Size4-Regular",P="rceil",F=667):b==="("||b==="\\lparen"?($="\u239B",j="\u239C",D="\u239D",U="Size4-Regular",P="lparen",F=875):b===")"||b==="\\rparen"?($="\u239E",j="\u239F",D="\u23A0",U="Size4-Regular",P="rparen",F=875):b==="\\{"||b==="\\lbrace"?($="\u23A7",O="\u23A8",D="\u23A9",j="\u23AA",U="Size4-Regular"):b==="\\}"||b==="\\rbrace"?($="\u23AB",O="\u23AC",D="\u23AD",j="\u23AA",U="Size4-Regular"):b==="\\lgroup"||b==="\u27EE"?($="\u23A7",D="\u23A9",j="\u23AA",U="Size4-Regular"):b==="\\rgroup"||b==="\u27EF"?($="\u23AB",D="\u23AD",j="\u23AA",U="Size4-Regular"):b==="\\lmoustache"||b==="\u23B0"?($="\u23A7",D="\u23AD",j="\u23AA",U="Size4-Regular"):(b==="\\rmoustache"||b==="\u23B1")&&($="\u23AB",D="\u23A9",j="\u23AA",U="Size4-Regular");var z=xm($,U,A),V=z.height+z.depth,W=xm(j,U,A),X=W.height+W.depth,J=xm(D,U,A),H=J.height+J.depth,te=0,ie=1;if(O!==null){var oe=xm(O,U,A);te=oe.height+oe.depth,ie=2}var he=V+H+te,pe=Math.max(0,Math.ceil((v-he)/(ie*X))),se=he+pe*ie*X,le=E.fontMetrics().axisHeight;k&&(le*=E.sizeMultiplier);var ue=se/2-le,de=[];if(P.length>0){var we=se-V-H,De=Math.round(se*1e3),Ge=spe(P,Math.round(we*1e3)),be=new Du(P,Ge),qe=(F/1e3).toFixed(3)+"em",Ie=(De/1e3).toFixed(3)+"em",Be=new dh([be],{width:qe,height:Ie,viewBox:"0 0 "+F+" "+De}),ke=pt.makeSvgSpan([],[Be],E);ke.height=De/1e3,ke.style.width=qe,ke.style.height=Ie,de.push({type:"elem",elem:ke})}else{if(de.push(jC(D,U,A)),de.push(cx),O===null){var Qe=se-V-H+2*UC;de.push(GC(j,Qe,E))}else{var Pe=(se-V-H-te)/2+2*UC;de.push(GC(j,Pe,E)),de.push(cx),de.push(jC(O,U,A)),de.push(cx),de.push(GC(j,Pe,E))}de.push(cx),de.push(jC($,U,A))}var ht=E.havingBaseStyle(Pr.TEXT),Xe=pt.makeVList({positionType:"bottom",positionData:ue,children:de},ht);return qC(pt.makeSpan(["delimsizing","mult"],[Xe],ht),Pr.TEXT,E,I)},"makeStackedDelim"),VC=80,WC=.08,HC=s(function(b,v,k,E,A){var I=npe(b,E,k),$=new Du(b,I),O=new dh([$],{width:"400em",height:tr(v),viewBox:"0 0 400000 "+k,preserveAspectRatio:"xMinYMin slice"});return pt.makeSvgSpan(["hide-tail"],[O],A)},"sqrtSvg"),Qpe=s(function(b,v){var k=v.havingBaseSizing(),E=DN("\\surd",b*k.sizeMultiplier,IN,k),A=k.sizeMultiplier,I=Math.max(0,v.minRuleThickness-v.fontMetrics().sqrtRuleThickness),$,O=0,j=0,D=0,P;return E.type==="small"?(D=1e3+1e3*I+VC,b<1?A=1:b<1.4&&(A=.7),O=(1+I+WC)/A,j=(1+I)/A,$=HC("sqrtMain",O,D,I,v),$.style.minWidth="0.853em",P=.833/A):E.type==="large"?(D=(1e3+VC)*km[E.size],j=(km[E.size]+I)/A,O=(km[E.size]+I+WC)/A,$=HC("sqrtSize"+E.size,O,D,I,v),$.style.minWidth="1.02em",P=1/A):(O=b+I+WC,j=b+I,D=Math.floor(1e3*b+I)+VC,$=HC("sqrtTall",O,D,I,v),$.style.minWidth="0.742em",P=1.056),$.height=j,$.style.height=tr(O),{span:$,advanceWidth:P,ruleWidth:(v.fontMetrics().sqrtRuleThickness+I)*A}},"makeSqrtImage"),LN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Jpe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],RN=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],km=[0,1.2,1.8,2.4,3],e0e=s(function(b,v,k,E,A){if(b==="<"||b==="\\lt"||b==="\u27E8"?b="\\langle":(b===">"||b==="\\gt"||b==="\u27E9")&&(b="\\rangle"),LN.includes(b)||RN.includes(b))return _N(b,v,!1,k,E,A);if(Jpe.includes(b))return AN(b,km[v],!1,k,E,A);throw new Yt("Illegal delimiter: '"+b+"'")},"makeSizedDelim"),t0e=[{type:"small",style:Pr.SCRIPTSCRIPT},{type:"small",style:Pr.SCRIPT},{type:"small",style:Pr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],r0e=[{type:"small",style:Pr.SCRIPTSCRIPT},{type:"small",style:Pr.SCRIPT},{type:"small",style:Pr.TEXT},{type:"stack"}],IN=[{type:"small",style:Pr.SCRIPTSCRIPT},{type:"small",style:Pr.SCRIPT},{type:"small",style:Pr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],i0e=s(function(b){if(b.type==="small")return"Main-Regular";if(b.type==="large")return"Size"+b.size+"-Regular";if(b.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+b.type+"' here.")},"delimTypeToFont"),DN=s(function(b,v,k,E){for(var A=Math.min(2,3-E.style.size),I=A;I<k.length&&k[I].type!=="stack";I++){var $=xm(b,i0e(k[I]),"math"),O=$.height+$.depth;if(k[I].type==="small"){var j=E.havingBaseStyle(k[I].style);O*=j.sizeMultiplier}if(O>v)return k[I]}return k[k.length-1]},"traverseSequence"),NN=s(function(b,v,k,E,A,I){b==="<"||b==="\\lt"||b==="\u27E8"?b="\\langle":(b===">"||b==="\\gt"||b==="\u27E9")&&(b="\\rangle");var $;RN.includes(b)?$=t0e:LN.includes(b)?$=IN:$=r0e;var O=DN(b,v,$,E);return O.type==="small"?Ype(b,O.style,k,E,A,I):O.type==="large"?_N(b,O.size,k,E,A,I):AN(b,v,k,E,A,I)},"makeCustomSizedDelim"),n0e=s(function(b,v,k,E,A,I){var $=E.fontMetrics().axisHeight*E.sizeMultiplier,O=901,j=5/E.fontMetrics().ptPerEm,D=Math.max(v-$,k+$),P=Math.max(D/500*O,2*D-j);return NN(b,P,!0,E,A,I)},"makeLeftRightDelim"),yh={sqrtImage:Qpe,sizedDelim:e0e,sizeToMaxHeight:km,customSizedDelim:NN,leftRightDelim:n0e},MN={"\\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}},a0e=["(","\\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(Hb,"checkDelimiter"),hr({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((b,v)=>{var k=Hb(v[0],b);return{type:"delimsizing",mode:b.parser.mode,size:MN[b.funcName].size,mclass:MN[b.funcName].mclass,delim:k.text}},"handler"),htmlBuilder:s((b,v)=>b.delim==="."?pt.makeSpan([b.mclass]):yh.sizedDelim(b.delim,b.size,v,b.mode,[b.mclass]),"htmlBuilder"),mathmlBuilder:s(b=>{var v=[];b.delim!=="."&&v.push(tl(b.delim,b.mode));var k=new Ut.MathNode("mo",v);b.mclass==="mopen"||b.mclass==="mclose"?k.setAttribute("fence","true"):k.setAttribute("fence","false"),k.setAttribute("stretchy","true");var E=tr(yh.sizeToMaxHeight[b.size]);return k.setAttribute("minsize",E),k.setAttribute("maxsize",E),k},"mathmlBuilder")}),s(VD,"assertParsed"),hr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:s((b,v)=>{var k=b.parser.gullet.macros.get("\\current@color");if(k&&typeof k!="string")throw new Yt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:b.parser.mode,delim:Hb(v[0],b).text,color:k}},"handler")}),hr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:s((b,v)=>{var k=Hb(v[0],b),E=b.parser;++E.leftrightDepth;var A=E.parseExpression(!1);--E.leftrightDepth,E.expect("\\right",!1);var I=di(E.parseFunction(),"leftright-right");return{type:"leftright",mode:E.mode,body:A,left:k.text,right:I.delim,rightColor:I.color}},"handler"),htmlBuilder:s((b,v)=>{VD(b);for(var k=Ma(b.body,v,!0,["mopen","mclose"]),E=0,A=0,I=!1,$=0;$<k.length;$++)k[$].isMiddle?I=!0:(E=Math.max(k[$].height,E),A=Math.max(k[$].depth,A));E*=v.sizeMultiplier,A*=v.sizeMultiplier;var O;if(b.left==="."?O=bm(v,["mopen"]):O=yh.leftRightDelim(b.left,E,A,v,b.mode,["mopen"]),k.unshift(O),I)for(var j=1;j<k.length;j++){var D=k[j],P=D.isMiddle;P&&(k[j]=yh.leftRightDelim(P.delim,E,A,P.options,b.mode,[]))}var F;if(b.right===".")F=bm(v,["mclose"]);else{var U=b.rightColor?v.withColor(b.rightColor):v;F=yh.leftRightDelim(b.right,E,A,U,b.mode,["mclose"])}return k.push(F),pt.makeSpan(["minner"],k,v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{VD(b);var k=no(b.body,v);if(b.left!=="."){var E=new Ut.MathNode("mo",[tl(b.left,b.mode)]);E.setAttribute("fence","true"),k.unshift(E)}if(b.right!=="."){var A=new Ut.MathNode("mo",[tl(b.right,b.mode)]);A.setAttribute("fence","true"),b.rightColor&&A.setAttribute("mathcolor",b.rightColor),k.push(A)}return BC(k)},"mathmlBuilder")}),hr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:s((b,v)=>{var k=Hb(v[0],b);if(!b.parser.leftrightDepth)throw new Yt("\\middle without preceding \\left",k);return{type:"middle",mode:b.parser.mode,delim:k.text}},"handler"),htmlBuilder:s((b,v)=>{var k;if(b.delim===".")k=bm(v,[]);else{k=yh.sizedDelim(b.delim,1,v,b.mode,[]);var E={delim:b.delim,options:v};k.isMiddle=E}return k},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=b.delim==="\\vert"||b.delim==="|"?tl("|","text"):tl(b.delim,b.mode),E=new Ut.MathNode("mo",[k]);return E.setAttribute("fence","true"),E.setAttribute("lspace","0.05em"),E.setAttribute("rspace","0.05em"),E},"mathmlBuilder")}),YC=s((b,v)=>{var k=pt.wrapFragment(Ni(b.body,v),v),E=b.label.slice(1),A=v.sizeMultiplier,I,$=0,O=Fi.isCharacterBox(b.body);if(E==="sout")I=pt.makeSpan(["stretchy","sout"]),I.height=v.fontMetrics().defaultRuleThickness/A,$=-.5*v.fontMetrics().xHeight;else if(E==="phase"){var j=Xn({number:.6,unit:"pt"},v),D=Xn({number:.35,unit:"ex"},v),P=v.havingBaseSizing();A=A/P.sizeMultiplier;var F=k.height+k.depth+j+D;k.style.paddingLeft=tr(F/2+j);var U=Math.floor(1e3*F*A),z=rpe(U),V=new dh([new Du("phase",z)],{width:"400em",height:tr(U/1e3),viewBox:"0 0 400000 "+U,preserveAspectRatio:"xMinYMin slice"});I=pt.makeSvgSpan(["hide-tail"],[V],v),I.style.height=tr(F),$=k.depth+j+D}else{/cancel/.test(E)?O||k.classes.push("cancel-pad"):E==="angl"?k.classes.push("anglpad"):k.classes.push("boxpad");var W=0,X=0,J=0;/box/.test(E)?(J=Math.max(v.fontMetrics().fboxrule,v.minRuleThickness),W=v.fontMetrics().fboxsep+(E==="colorbox"?0:J),X=W):E==="angl"?(J=Math.max(v.fontMetrics().defaultRuleThickness,v.minRuleThickness),W=4*J,X=Math.max(0,.25-k.depth)):(W=O?.2:0,X=W),I=mh.encloseSpan(k,E,W,X,v),/fbox|boxed|fcolorbox/.test(E)?(I.style.borderStyle="solid",I.style.borderWidth=tr(J)):E==="angl"&&J!==.049&&(I.style.borderTopWidth=tr(J),I.style.borderRightWidth=tr(J)),$=k.depth+X,b.backgroundColor&&(I.style.backgroundColor=b.backgroundColor,b.borderColor&&(I.style.borderColor=b.borderColor))}var H;if(b.backgroundColor)H=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:$},{type:"elem",elem:k,shift:0}]},v);else{var te=/cancel|phase/.test(E)?["svg-align"]:[];H=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:0},{type:"elem",elem:I,shift:$,wrapperClasses:te}]},v)}return/cancel/.test(E)&&(H.height=k.height,H.depth=k.depth),/cancel/.test(E)&&!O?pt.makeSpan(["mord","cancel-lap"],[H],v):pt.makeSpan(["mord"],[H],v)},"htmlBuilder$7"),XC=s((b,v)=>{var k=0,E=new Ut.MathNode(b.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ln(b.body,v)]);switch(b.label){case"\\cancel":E.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":E.setAttribute("notation","downdiagonalstrike");break;case"\\phase":E.setAttribute("notation","phasorangle");break;case"\\sout":E.setAttribute("notation","horizontalstrike");break;case"\\fbox":E.setAttribute("notation","box");break;case"\\angl":E.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(k=v.fontMetrics().fboxsep*v.fontMetrics().ptPerEm,E.setAttribute("width","+"+2*k+"pt"),E.setAttribute("height","+"+2*k+"pt"),E.setAttribute("lspace",k+"pt"),E.setAttribute("voffset",k+"pt"),b.label==="\\fcolorbox"){var A=Math.max(v.fontMetrics().fboxrule,v.minRuleThickness);E.setAttribute("style","border: "+A+"em solid "+String(b.borderColor))}break;case"\\xcancel":E.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return b.backgroundColor&&E.setAttribute("mathbackground",b.backgroundColor),E},"mathmlBuilder$6"),hr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(b,v,k){var{parser:E,funcName:A}=b,I=di(v[0],"color-token").color,$=v[1];return{type:"enclose",mode:E.mode,label:A,backgroundColor:I,body:$}},htmlBuilder:YC,mathmlBuilder:XC}),hr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(b,v,k){var{parser:E,funcName:A}=b,I=di(v[0],"color-token").color,$=di(v[1],"color-token").color,O=v[2];return{type:"enclose",mode:E.mode,label:A,backgroundColor:$,borderColor:I,body:O}},htmlBuilder:YC,mathmlBuilder:XC}),hr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(b,v){var{parser:k}=b;return{type:"enclose",mode:k.mode,label:"\\fbox",body:v[0]}}}),hr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(b,v){var{parser:k,funcName:E}=b,A=v[0];return{type:"enclose",mode:k.mode,label:E,body:A}},htmlBuilder:YC,mathmlBuilder:XC}),hr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(b,v){var{parser:k}=b;return{type:"enclose",mode:k.mode,label:"\\angl",body:v[0]}}}),ON={},s(cc,"defineEnvironment"),$N={},s(Ce,"defineMacro"),s(WD,"getHLines"),hx=s(b=>{var v=b.parser.settings;if(!v.displayMode)throw new Yt("{"+b.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext"),s(kC,"getAutoTag"),s(Lu,"parseArray"),s(TC,"dCellStyle"),pc=s(function(b,v){var k,E,A=b.body.length,I=b.hLinesBeforeRow,$=0,O=new Array(A),j=[],D=Math.max(v.fontMetrics().arrayRuleWidth,v.minRuleThickness),P=1/v.fontMetrics().ptPerEm,F=5*P;if(b.colSeparationType&&b.colSeparationType==="small"){var U=v.havingStyle(Pr.SCRIPT).sizeMultiplier;F=.2778*(U/v.sizeMultiplier)}var z=b.colSeparationType==="CD"?Xn({number:3,unit:"ex"},v):12*P,V=3*P,W=b.arraystretch*z,X=.7*W,J=.3*W,H=0;function te(Re){for(var et=0;et<Re.length;++et)et>0&&(H+=.25),j.push({pos:H,isDashed:Re[et]})}for(f(te,"w"),s(te,"setHLinePos"),te(I[0]),k=0;k<b.body.length;++k){var ie=b.body[k],oe=X,he=J;$<ie.length&&($=ie.length);var pe=new Array(ie.length);for(E=0;E<ie.length;++E){var se=Ni(ie[E],v);he<se.depth&&(he=se.depth),oe<se.height&&(oe=se.height),pe[E]=se}var le=b.rowGaps[k],ue=0;le&&(ue=Xn(le,v),ue>0&&(ue+=J,he<ue&&(he=ue),ue=0)),b.addJot&&(he+=V),pe.height=oe,pe.depth=he,H+=oe,pe.pos=H,H+=he+ue,O[k]=pe,te(I[k+1])}var de=H/2+v.fontMetrics().axisHeight,we=b.cols||[],De=[],Ge,be,qe=[];if(b.tags&&b.tags.some(Re=>Re))for(k=0;k<A;++k){var Ie=O[k],Be=Ie.pos-de,ke=b.tags[k],Qe=void 0;ke===!0?Qe=pt.makeSpan(["eqn-num"],[],v):ke===!1?Qe=pt.makeSpan([],[],v):Qe=pt.makeSpan([],Ma(ke,v,!0),v),Qe.depth=Ie.depth,Qe.height=Ie.height,qe.push({type:"elem",elem:Qe,shift:Be})}for(E=0,be=0;E<$||be<we.length;++E,++be){for(var Pe=we[be]||{},ht=!0;Pe.type==="separator";){if(ht||(Ge=pt.makeSpan(["arraycolsep"],[]),Ge.style.width=tr(v.fontMetrics().doubleRuleSep),De.push(Ge)),Pe.separator==="|"||Pe.separator===":"){var Xe=Pe.separator==="|"?"solid":"dashed",dt=pt.makeSpan(["vertical-separator"],[],v);dt.style.height=tr(H),dt.style.borderRightWidth=tr(D),dt.style.borderRightStyle=Xe,dt.style.margin="0 "+tr(-D/2);var at=H-de;at&&(dt.style.verticalAlign=tr(-at)),De.push(dt)}else throw new Yt("Invalid separator type: "+Pe.separator);be++,Pe=we[be]||{},ht=!1}if(!(E>=$)){var kt=void 0;(E>0||b.hskipBeforeAndAfter)&&(kt=Fi.deflt(Pe.pregap,F),kt!==0&&(Ge=pt.makeSpan(["arraycolsep"],[]),Ge.style.width=tr(kt),De.push(Ge)));var Le=[];for(k=0;k<A;++k){var lt=O[k],ve=lt[E];if(ve){var tt=lt.pos-de;ve.depth=lt.depth,ve.height=lt.height,Le.push({type:"elem",elem:ve,shift:tt})}}Le=pt.makeVList({positionType:"individualShift",children:Le},v),Le=pt.makeSpan(["col-align-"+(Pe.align||"c")],[Le]),De.push(Le),(E<$-1||b.hskipBeforeAndAfter)&&(kt=Fi.deflt(Pe.postgap,F),kt!==0&&(Ge=pt.makeSpan(["arraycolsep"],[]),Ge.style.width=tr(kt),De.push(Ge)))}}if(O=pt.makeSpan(["mtable"],De),j.length>0){for(var Q=pt.makeLineSpan("hline",v,D),xe=pt.makeLineSpan("hdashline",v,D),ae=[{type:"elem",elem:O,shift:0}];j.length>0;){var _e=j.pop(),Se=_e.pos-de;_e.isDashed?ae.push({type:"elem",elem:xe,shift:Se}):ae.push({type:"elem",elem:Q,shift:Se})}O=pt.makeVList({positionType:"individualShift",children:ae},v)}if(qe.length===0)return pt.makeSpan(["mord"],[O],v);var Je=pt.makeVList({positionType:"individualShift",children:qe},v);return Je=pt.makeSpan(["tag"],[Je],v),pt.makeFragment([O,Je])},"htmlBuilder"),s0e={c:"center ",l:"left ",r:"right "},gc=s(function(b,v){for(var k=[],E=new Ut.MathNode("mtd",[],["mtr-glue"]),A=new Ut.MathNode("mtd",[],["mml-eqn-num"]),I=0;I<b.body.length;I++){for(var $=b.body[I],O=[],j=0;j<$.length;j++)O.push(new Ut.MathNode("mtd",[ln($[j],v)]));b.tags&&b.tags[I]&&(O.unshift(E),O.push(E),b.leqno?O.unshift(A):O.push(A)),k.push(new Ut.MathNode("mtr",O))}var D=new Ut.MathNode("mtable",k),P=b.arraystretch===.5?.1:.16+b.arraystretch-1+(b.addJot?.09:0);D.setAttribute("rowspacing",tr(P));var F="",U="";if(b.cols&&b.cols.length>0){var z=b.cols,V="",W=!1,X=0,J=z.length;z[0].type==="separator"&&(F+="top ",X=1),z[z.length-1].type==="separator"&&(F+="bottom ",J-=1);for(var H=X;H<J;H++)z[H].type==="align"?(U+=s0e[z[H].align],W&&(V+="none "),W=!0):z[H].type==="separator"&&W&&(V+=z[H].separator==="|"?"solid ":"dashed ",W=!1);D.setAttribute("columnalign",U.trim()),/[sd]/.test(V)&&D.setAttribute("columnlines",V.trim())}if(b.colSeparationType==="align"){for(var te=b.cols||[],ie="",oe=1;oe<te.length;oe++)ie+=oe%2?"0em ":"1em ";D.setAttribute("columnspacing",ie.trim())}else b.colSeparationType==="alignat"||b.colSeparationType==="gather"?D.setAttribute("columnspacing","0em"):b.colSeparationType==="small"?D.setAttribute("columnspacing","0.2778em"):b.colSeparationType==="CD"?D.setAttribute("columnspacing","0.5em"):D.setAttribute("columnspacing","1em");var he="",pe=b.hLinesBeforeRow;F+=pe[0].length>0?"left ":"",F+=pe[pe.length-1].length>0?"right ":"";for(var se=1;se<pe.length-1;se++)he+=pe[se].length===0?"none ":pe[se][0]?"dashed ":"solid ";return/[sd]/.test(he)&&D.setAttribute("rowlines",he.trim()),F!==""&&(D=new Ut.MathNode("menclose",[D]),D.setAttribute("notation",F.trim())),b.arraystretch&&b.arraystretch<1&&(D=new Ut.MathNode("mstyle",[D]),D.setAttribute("scriptlevel","1")),D},"mathmlBuilder"),BN=s(function(b,v){b.envName.indexOf("ed")===-1&&hx(b);var k=[],E=b.envName.indexOf("at")>-1?"alignat":"align",A=b.envName==="split",I=Lu(b.parser,{cols:k,addJot:!0,autoTag:A?void 0:kC(b.envName),emptySingleRow:!0,colSeparationType:E,maxNumCols:A?2:void 0,leqno:b.parser.settings.leqno},"display"),$,O=0,j={type:"ordgroup",mode:b.mode,body:[]};if(v[0]&&v[0].type==="ordgroup"){for(var D="",P=0;P<v[0].body.length;P++){var F=di(v[0].body[P],"textord");D+=F.text}$=Number(D),O=$*2}var U=!O;I.body.forEach(function(X){for(var J=1;J<X.length;J+=2){var H=di(X[J],"styling"),te=di(H.body[0],"ordgroup");te.body.unshift(j)}if(U)O<X.length&&(O=X.length);else{var ie=X.length/2;if($<ie)throw new Yt("Too many math in a row: "+("expected "+$+", but got "+ie),X[0])}});for(var z=0;z<O;++z){var V="r",W=0;z%2===1?V="l":z>0&&U&&(W=1),k[z]={type:"align",align:V,pregap:W,postgap:0}}return I.colSeparationType=U?"align":"alignat",I},"alignedHandler"),cc({type:"array",names:["array","darray"],props:{numArgs:1},handler(b,v){var k=Wb(v[0]),E=k?[v[0]]:di(v[0],"ordgroup").body,A=E.map(function($){var O=xC($),j=O.text;if("lcr".indexOf(j)!==-1)return{type:"align",align:j};if(j==="|")return{type:"separator",separator:"|"};if(j===":")return{type:"separator",separator:":"};throw new Yt("Unknown column alignment: "+j,$)}),I={cols:A,hskipBeforeAndAfter:!0,maxNumCols:A.length};return Lu(b.parser,I,TC(b.envName))},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(b){var v={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[b.envName.replace("*","")],k="c",E={hskipBeforeAndAfter:!1,cols:[{type:"align",align:k}]};if(b.envName.charAt(b.envName.length-1)==="*"){var A=b.parser;if(A.consumeSpaces(),A.fetch().text==="["){if(A.consume(),A.consumeSpaces(),k=A.fetch().text,"lcr".indexOf(k)===-1)throw new Yt("Expected l or c or r",A.nextToken);A.consume(),A.consumeSpaces(),A.expect("]"),A.consume(),E.cols=[{type:"align",align:k}]}}var I=Lu(b.parser,E,TC(b.envName)),$=Math.max(0,...I.body.map(O=>O.length));return I.cols=new Array($).fill({type:"align",align:k}),v?{type:"leftright",mode:b.mode,body:[I],left:v[0],right:v[1],rightColor:void 0}:I},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(b){var v={arraystretch:.5},k=Lu(b.parser,v,"script");return k.colSeparationType="small",k},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["subarray"],props:{numArgs:1},handler(b,v){var k=Wb(v[0]),E=k?[v[0]]:di(v[0],"ordgroup").body,A=E.map(function($){var O=xC($),j=O.text;if("lc".indexOf(j)!==-1)return{type:"align",align:j};throw new Yt("Unknown column alignment: "+j,$)});if(A.length>1)throw new Yt("{subarray} can contain only one column");var I={cols:A,hskipBeforeAndAfter:!1,arraystretch:.5};if(I=Lu(b.parser,I,"script"),I.body.length>0&&I.body[0].length>1)throw new Yt("{subarray} can contain only one column");return I},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(b){var v={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},k=Lu(b.parser,v,TC(b.envName));return{type:"leftright",mode:b.mode,body:[k],left:b.envName.indexOf("r")>-1?".":"\\{",right:b.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:BN,htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(b){["gather","gather*"].includes(b.envName)&&hx(b);var v={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:kC(b.envName),emptySingleRow:!0,leqno:b.parser.settings.leqno};return Lu(b.parser,v,"display")},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:BN,htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(b){hx(b);var v={autoTag:kC(b.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:b.parser.settings.leqno};return Lu(b.parser,v,"display")},htmlBuilder:pc,mathmlBuilder:gc}),cc({type:"array",names:["CD"],props:{numArgs:0},handler(b){return hx(b),$de(b.parser)},htmlBuilder:pc,mathmlBuilder:gc}),Ce("\\nonumber","\\gdef\\@eqnsw{0}"),Ce("\\notag","\\nonumber"),hr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(b,v){throw new Yt(b.funcName+" valid only within array environment")}}),PN=ON,hr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(b,v){var{parser:k,funcName:E}=b,A=v[0];if(A.type!=="ordgroup")throw new Yt("Invalid environment name",A);for(var I="",$=0;$<A.body.length;++$)I+=di(A.body[$],"textord").text;if(E==="\\begin"){if(!PN.hasOwnProperty(I))throw new Yt("No such environment: "+I,A);var O=PN[I],{args:j,optArgs:D}=k.parseArguments("\\begin{"+I+"}",O),P={mode:k.mode,envName:I,parser:k},F=O.handler(P,j,D);k.expect("\\end",!1);var U=k.nextToken,z=di(k.parseFunction(),"environment");if(z.name!==I)throw new Yt("Mismatch: \\begin{"+I+"} matched by \\end{"+z.name+"}",U);return F}return{type:"environment",mode:k.mode,name:I,nameGroup:A}}}),FN=s((b,v)=>{var k=b.font,E=v.withFont(k);return Ni(b.body,E)},"htmlBuilder$5"),zN=s((b,v)=>{var k=b.font,E=v.withFont(k);return ln(b.body,E)},"mathmlBuilder$4"),qN={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},hr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=sx(v[0]),I=E;return I in qN&&(I=qN[I]),{type:"font",mode:k.mode,font:I.slice(1),body:A}},"handler"),htmlBuilder:FN,mathmlBuilder:zN}),hr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:s((b,v)=>{var{parser:k}=b,E=v[0],A=Fi.isCharacterBox(E);return{type:"mclass",mode:k.mode,mclass:lx(E),body:[{type:"font",mode:k.mode,font:"boldsymbol",body:E}],isCharacterBox:A}},"handler")}),hr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:s((b,v)=>{var{parser:k,funcName:E,breakOnTokenText:A}=b,{mode:I}=k,$=k.parseExpression(!0,A),O="math"+E.slice(1);return{type:"font",mode:I,font:O,body:{type:"ordgroup",mode:k.mode,body:$}}},"handler"),htmlBuilder:FN,mathmlBuilder:zN}),jN=s((b,v)=>{var k=v;return b==="display"?k=k.id>=Pr.SCRIPT.id?k.text():Pr.DISPLAY:b==="text"&&k.size===Pr.DISPLAY.size?k=Pr.TEXT:b==="script"?k=Pr.SCRIPT:b==="scriptscript"&&(k=Pr.SCRIPTSCRIPT),k},"adjustStyle"),KC=s((b,v)=>{var k=jN(b.size,v.style),E=k.fracNum(),A=k.fracDen(),I;I=v.havingStyle(E);var $=Ni(b.numer,I,v);if(b.continued){var O=8.5/v.fontMetrics().ptPerEm,j=3.5/v.fontMetrics().ptPerEm;$.height=$.height<O?O:$.height,$.depth=$.depth<j?j:$.depth}I=v.havingStyle(A);var D=Ni(b.denom,I,v),P,F,U;b.hasBarLine?(b.barSize?(F=Xn(b.barSize,v),P=pt.makeLineSpan("frac-line",v,F)):P=pt.makeLineSpan("frac-line",v),F=P.height,U=P.height):(P=null,F=0,U=v.fontMetrics().defaultRuleThickness);var z,V,W;k.size===Pr.DISPLAY.size||b.size==="display"?(z=v.fontMetrics().num1,F>0?V=3*U:V=7*U,W=v.fontMetrics().denom1):(F>0?(z=v.fontMetrics().num2,V=U):(z=v.fontMetrics().num3,V=3*U),W=v.fontMetrics().denom2);var X;if(P){var J=v.fontMetrics().axisHeight;z-$.depth-(J+.5*F)<V&&(z+=V-(z-$.depth-(J+.5*F))),J-.5*F-(D.height-W)<V&&(W+=V-(J-.5*F-(D.height-W)));var H=-(J-.5*F);X=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:W},{type:"elem",elem:P,shift:H},{type:"elem",elem:$,shift:-z}]},v)}else{var te=z-$.depth-(D.height-W);te<V&&(z+=.5*(V-te),W+=.5*(V-te)),X=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:W},{type:"elem",elem:$,shift:-z}]},v)}I=v.havingStyle(k),X.height*=I.sizeMultiplier/v.sizeMultiplier,X.depth*=I.sizeMultiplier/v.sizeMultiplier;var ie;k.size===Pr.DISPLAY.size?ie=v.fontMetrics().delim1:k.size===Pr.SCRIPTSCRIPT.size?ie=v.havingStyle(Pr.SCRIPT).fontMetrics().delim2:ie=v.fontMetrics().delim2;var oe,he;return b.leftDelim==null?oe=bm(v,["mopen"]):oe=yh.customSizedDelim(b.leftDelim,ie,!0,v.havingStyle(k),b.mode,["mopen"]),b.continued?he=pt.makeSpan([]):b.rightDelim==null?he=bm(v,["mclose"]):he=yh.customSizedDelim(b.rightDelim,ie,!0,v.havingStyle(k),b.mode,["mclose"]),pt.makeSpan(["mord"].concat(I.sizingClasses(v)),[oe,pt.makeSpan(["mfrac"],[X]),he],v)},"htmlBuilder$4"),ZC=s((b,v)=>{var k=new Ut.MathNode("mfrac",[ln(b.numer,v),ln(b.denom,v)]);if(!b.hasBarLine)k.setAttribute("linethickness","0px");else if(b.barSize){var E=Xn(b.barSize,v);k.setAttribute("linethickness",tr(E))}var A=jN(b.size,v.style);if(A.size!==v.style.size){k=new Ut.MathNode("mstyle",[k]);var I=A.size===Pr.DISPLAY.size?"true":"false";k.setAttribute("displaystyle",I),k.setAttribute("scriptlevel","0")}if(b.leftDelim!=null||b.rightDelim!=null){var $=[];if(b.leftDelim!=null){var O=new Ut.MathNode("mo",[new Ut.TextNode(b.leftDelim.replace("\\",""))]);O.setAttribute("fence","true"),$.push(O)}if($.push(k),b.rightDelim!=null){var j=new Ut.MathNode("mo",[new Ut.TextNode(b.rightDelim.replace("\\",""))]);j.setAttribute("fence","true"),$.push(j)}return BC($)}return k},"mathmlBuilder$3"),hr({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0],I=v[1],$,O=null,j=null,D="auto";switch(E){case"\\dfrac":case"\\frac":case"\\tfrac":$=!0;break;case"\\\\atopfrac":$=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":$=!1,O="(",j=")";break;case"\\\\bracefrac":$=!1,O="\\{",j="\\}";break;case"\\\\brackfrac":$=!1,O="[",j="]";break;default:throw new Error("Unrecognized genfrac command")}switch(E){case"\\dfrac":case"\\dbinom":D="display";break;case"\\tfrac":case"\\tbinom":D="text";break}return{type:"genfrac",mode:k.mode,continued:!1,numer:A,denom:I,hasBarLine:$,leftDelim:O,rightDelim:j,size:D,barSize:null}},"handler"),htmlBuilder:KC,mathmlBuilder:ZC}),hr({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0],I=v[1];return{type:"genfrac",mode:k.mode,continued:!0,numer:A,denom:I,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}},"handler")}),hr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(b){var{parser:v,funcName:k,token:E}=b,A;switch(k){case"\\over":A="\\frac";break;case"\\choose":A="\\binom";break;case"\\atop":A="\\\\atopfrac";break;case"\\brace":A="\\\\bracefrac";break;case"\\brack":A="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:v.mode,replaceWith:A,token:E}}}),GN=["display","text","script","scriptscript"],UN=s(function(b){var v=null;return b.length>0&&(v=b,v=v==="."?null:v),v},"delimFromValue"),hr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(b,v){var{parser:k}=b,E=v[4],A=v[5],I=sx(v[0]),$=I.type==="atom"&&I.family==="open"?UN(I.text):null,O=sx(v[1]),j=O.type==="atom"&&O.family==="close"?UN(O.text):null,D=di(v[2],"size"),P,F=null;D.isBlank?P=!0:(F=D.value,P=F.number>0);var U="auto",z=v[3];if(z.type==="ordgroup"){if(z.body.length>0){var V=di(z.body[0],"textord");U=GN[Number(V.text)]}}else z=di(z,"textord"),U=GN[Number(z.text)];return{type:"genfrac",mode:k.mode,numer:E,denom:A,continued:!1,hasBarLine:P,barSize:F,leftDelim:$,rightDelim:j,size:U}},htmlBuilder:KC,mathmlBuilder:ZC}),hr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(b,v){var{parser:k,funcName:E,token:A}=b;return{type:"infix",mode:k.mode,replaceWith:"\\\\abovefrac",size:di(v[0],"size").value,token:A}}}),hr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0],I=Gde(di(v[1],"infix").size),$=v[2],O=I.number>0;return{type:"genfrac",mode:k.mode,numer:A,denom:$,continued:!1,hasBarLine:O,barSize:I,leftDelim:null,rightDelim:null,size:"auto"}},"handler"),htmlBuilder:KC,mathmlBuilder:ZC}),VN=s((b,v)=>{var k=v.style,E,A;b.type==="supsub"?(E=b.sup?Ni(b.sup,v.havingStyle(k.sup()),v):Ni(b.sub,v.havingStyle(k.sub()),v),A=di(b.base,"horizBrace")):A=di(b,"horizBrace");var I=Ni(A.base,v.havingBaseStyle(Pr.DISPLAY)),$=mh.svgSpan(A,v),O;if(A.isOver?(O=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I},{type:"kern",size:.1},{type:"elem",elem:$}]},v),O.children[0].children[0].children[1].classes.push("svg-align")):(O=pt.makeVList({positionType:"bottom",positionData:I.depth+.1+$.height,children:[{type:"elem",elem:$},{type:"kern",size:.1},{type:"elem",elem:I}]},v),O.children[0].children[0].children[0].classes.push("svg-align")),E){var j=pt.makeSpan(["mord",A.isOver?"mover":"munder"],[O],v);A.isOver?O=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:j},{type:"kern",size:.2},{type:"elem",elem:E}]},v):O=pt.makeVList({positionType:"bottom",positionData:j.depth+.2+E.height+E.depth,children:[{type:"elem",elem:E},{type:"kern",size:.2},{type:"elem",elem:j}]},v)}return pt.makeSpan(["mord",A.isOver?"mover":"munder"],[O],v)},"htmlBuilder$3"),o0e=s((b,v)=>{var k=mh.mathMLnode(b.label);return new Ut.MathNode(b.isOver?"mover":"munder",[ln(b.base,v),k])},"mathmlBuilder$2"),hr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(b,v){var{parser:k,funcName:E}=b;return{type:"horizBrace",mode:k.mode,label:E,isOver:/^\\over/.test(E),base:v[0]}},htmlBuilder:VN,mathmlBuilder:o0e}),hr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b,E=v[1],A=di(v[0],"url").url;return k.settings.isTrusted({command:"\\href",url:A})?{type:"href",mode:k.mode,href:A,body:ca(E)}:k.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:s((b,v)=>{var k=Ma(b.body,v,!1);return pt.makeAnchor(b.href,[],k,v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=Mu(b.body,v);return k instanceof Lo||(k=new Lo("mrow",[k])),k.setAttribute("href",b.href),k},"mathmlBuilder")}),hr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b,E=di(v[0],"url").url;if(!k.settings.isTrusted({command:"\\url",url:E}))return k.formatUnsupportedCmd("\\url");for(var A=[],I=0;I<E.length;I++){var $=E[I];$==="~"&&($="\\textasciitilde"),A.push({type:"textord",mode:"text",text:$})}var O={type:"text",mode:k.mode,font:"\\texttt",body:A};return{type:"href",mode:k.mode,href:E,body:ca(O)}},"handler")}),hr({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(b,v){var{parser:k}=b;return{type:"hbox",mode:k.mode,body:ca(v[0])}},htmlBuilder(b,v){var k=Ma(b.body,v,!1);return pt.makeFragment(k)},mathmlBuilder(b,v){return new Ut.MathNode("mrow",no(b.body,v))}}),hr({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:s((b,v)=>{var{parser:k,funcName:E,token:A}=b,I=di(v[0],"raw").string,$=v[1];k.settings.strict&&k.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var O,j={};switch(E){case"\\htmlClass":j.class=I,O={command:"\\htmlClass",class:I};break;case"\\htmlId":j.id=I,O={command:"\\htmlId",id:I};break;case"\\htmlStyle":j.style=I,O={command:"\\htmlStyle",style:I};break;case"\\htmlData":{for(var D=I.split(","),P=0;P<D.length;P++){var F=D[P].split("=");if(F.length!==2)throw new Yt("Error parsing key-value for \\htmlData");j["data-"+F[0].trim()]=F[1].trim()}O={command:"\\htmlData",attributes:j};break}default:throw new Error("Unrecognized html command")}return k.settings.isTrusted(O)?{type:"html",mode:k.mode,attributes:j,body:ca($)}:k.formatUnsupportedCmd(E)},"handler"),htmlBuilder:s((b,v)=>{var k=Ma(b.body,v,!1),E=["enclosing"];b.attributes.class&&E.push(...b.attributes.class.trim().split(/\s+/));var A=pt.makeSpan(E,k,v);for(var I in b.attributes)I!=="class"&&b.attributes.hasOwnProperty(I)&&A.setAttribute(I,b.attributes[I]);return A},"htmlBuilder"),mathmlBuilder:s((b,v)=>Mu(b.body,v),"mathmlBuilder")}),hr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b;return{type:"htmlmathml",mode:k.mode,html:ca(v[0]),mathml:ca(v[1])}},"handler"),htmlBuilder:s((b,v)=>{var k=Ma(b.html,v,!1);return pt.makeFragment(k)},"htmlBuilder"),mathmlBuilder:s((b,v)=>Mu(b.mathml,v),"mathmlBuilder")}),QC=s(function(b){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(b))return{number:+b,unit:"bp"};var v=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(b);if(!v)throw new Yt("Invalid size: '"+b+"' in \\includegraphics");var k={number:+(v[1]+v[2]),unit:v[3]};if(!eN(k))throw new Yt("Invalid unit: '"+k.unit+"' in \\includegraphics.");return k},"sizeData"),hr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:s((b,v,k)=>{var{parser:E}=b,A={number:0,unit:"em"},I={number:.9,unit:"em"},$={number:0,unit:"em"},O="";if(k[0])for(var j=di(k[0],"raw").string,D=j.split(","),P=0;P<D.length;P++){var F=D[P].split("=");if(F.length===2){var U=F[1].trim();switch(F[0].trim()){case"alt":O=U;break;case"width":A=QC(U);break;case"height":I=QC(U);break;case"totalheight":$=QC(U);break;default:throw new Yt("Invalid key: '"+F[0]+"' in \\includegraphics.")}}}var z=di(v[0],"url").url;return O===""&&(O=z,O=O.replace(/^.*[\\/]/,""),O=O.substring(0,O.lastIndexOf("."))),E.settings.isTrusted({command:"\\includegraphics",url:z})?{type:"includegraphics",mode:E.mode,alt:O,width:A,height:I,totalheight:$,src:z}:E.formatUnsupportedCmd("\\includegraphics")},"handler"),htmlBuilder:s((b,v)=>{var k=Xn(b.height,v),E=0;b.totalheight.number>0&&(E=Xn(b.totalheight,v)-k);var A=0;b.width.number>0&&(A=Xn(b.width,v));var I={height:tr(k+E)};A>0&&(I.width=tr(A)),E>0&&(I.verticalAlign=tr(-E));var $=new hpe(b.src,b.alt,I);return $.height=k,$.depth=E,$},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=new Ut.MathNode("mglyph",[]);k.setAttribute("alt",b.alt);var E=Xn(b.height,v),A=0;if(b.totalheight.number>0&&(A=Xn(b.totalheight,v)-E,k.setAttribute("valign",tr(-A))),k.setAttribute("height",tr(E+A)),b.width.number>0){var I=Xn(b.width,v);k.setAttribute("width",tr(I))}return k.setAttribute("src",b.src),k},"mathmlBuilder")}),hr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(b,v){var{parser:k,funcName:E}=b,A=di(v[0],"size");if(k.settings.strict){var I=E[1]==="m",$=A.value.unit==="mu";I?($||k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+E+" supports only mu units, "+("not "+A.value.unit+" units")),k.mode!=="math"&&k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+E+" works only in math mode")):$&&k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+E+" doesn't support mu units")}return{type:"kern",mode:k.mode,dimension:A.value}},htmlBuilder(b,v){return pt.makeGlue(b.dimension,v)},mathmlBuilder(b,v){var k=Xn(b.dimension,v);return new Ut.SpaceNode(k)}}),hr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0];return{type:"lap",mode:k.mode,alignment:E.slice(5),body:A}},"handler"),htmlBuilder:s((b,v)=>{var k;b.alignment==="clap"?(k=pt.makeSpan([],[Ni(b.body,v)]),k=pt.makeSpan(["inner"],[k],v)):k=pt.makeSpan(["inner"],[Ni(b.body,v)]);var E=pt.makeSpan(["fix"],[]),A=pt.makeSpan([b.alignment],[k,E],v),I=pt.makeSpan(["strut"]);return I.style.height=tr(A.height+A.depth),A.depth&&(I.style.verticalAlign=tr(-A.depth)),A.children.unshift(I),A=pt.makeSpan(["thinbox"],[A],v),pt.makeSpan(["mord","vbox"],[A],v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=new Ut.MathNode("mpadded",[ln(b.body,v)]);if(b.alignment!=="rlap"){var E=b.alignment==="llap"?"-1":"-0.5";k.setAttribute("lspace",E+"width")}return k.setAttribute("width","0px"),k},"mathmlBuilder")}),hr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(b,v){var{funcName:k,parser:E}=b,A=E.mode;E.switchMode("math");var I=k==="\\("?"\\)":"$",$=E.parseExpression(!1,I);return E.expect(I),E.switchMode(A),{type:"styling",mode:E.mode,style:"text",body:$}}}),hr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(b,v){throw new Yt("Mismatched "+b.funcName)}}),WN=s((b,v)=>{switch(v.style.size){case Pr.DISPLAY.size:return b.display;case Pr.TEXT.size:return b.text;case Pr.SCRIPT.size:return b.script;case Pr.SCRIPTSCRIPT.size:return b.scriptscript;default:return b.text}},"chooseMathStyle"),hr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:s((b,v)=>{var{parser:k}=b;return{type:"mathchoice",mode:k.mode,display:ca(v[0]),text:ca(v[1]),script:ca(v[2]),scriptscript:ca(v[3])}},"handler"),htmlBuilder:s((b,v)=>{var k=WN(b,v),E=Ma(k,v,!1);return pt.makeFragment(E)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=WN(b,v);return Mu(k,v)},"mathmlBuilder")}),HN=s((b,v,k,E,A,I,$)=>{b=pt.makeSpan([],[b]);var O=k&&Fi.isCharacterBox(k),j,D;if(v){var P=Ni(v,E.havingStyle(A.sup()),E);D={elem:P,kern:Math.max(E.fontMetrics().bigOpSpacing1,E.fontMetrics().bigOpSpacing3-P.depth)}}if(k){var F=Ni(k,E.havingStyle(A.sub()),E);j={elem:F,kern:Math.max(E.fontMetrics().bigOpSpacing2,E.fontMetrics().bigOpSpacing4-F.height)}}var U;if(D&&j){var z=E.fontMetrics().bigOpSpacing5+j.elem.height+j.elem.depth+j.kern+b.depth+$;U=pt.makeVList({positionType:"bottom",positionData:z,children:[{type:"kern",size:E.fontMetrics().bigOpSpacing5},{type:"elem",elem:j.elem,marginLeft:tr(-I)},{type:"kern",size:j.kern},{type:"elem",elem:b},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:tr(I)},{type:"kern",size:E.fontMetrics().bigOpSpacing5}]},E)}else if(j){var V=b.height-$;U=pt.makeVList({positionType:"top",positionData:V,children:[{type:"kern",size:E.fontMetrics().bigOpSpacing5},{type:"elem",elem:j.elem,marginLeft:tr(-I)},{type:"kern",size:j.kern},{type:"elem",elem:b}]},E)}else if(D){var W=b.depth+$;U=pt.makeVList({positionType:"bottom",positionData:W,children:[{type:"elem",elem:b},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:tr(I)},{type:"kern",size:E.fontMetrics().bigOpSpacing5}]},E)}else return b;var X=[U];if(j&&I!==0&&!O){var J=pt.makeSpan(["mspace"],[],E);J.style.marginRight=tr(I),X.unshift(J)}return pt.makeSpan(["mop","op-limits"],X,E)},"assembleSupSub"),YN=["\\smallint"],pg=s((b,v)=>{var k,E,A=!1,I;b.type==="supsub"?(k=b.sup,E=b.sub,I=di(b.base,"op"),A=!0):I=di(b,"op");var $=v.style,O=!1;$.size===Pr.DISPLAY.size&&I.symbol&&!YN.includes(I.name)&&(O=!0);var j;if(I.symbol){var D=O?"Size2-Regular":"Size1-Regular",P="";if((I.name==="\\oiint"||I.name==="\\oiiint")&&(P=I.name.slice(1),I.name=P==="oiint"?"\\iint":"\\iiint"),j=pt.makeSymbol(I.name,D,"math",v,["mop","op-symbol",O?"large-op":"small-op"]),P.length>0){var F=j.italic,U=pt.staticSvg(P+"Size"+(O?"2":"1"),v);j=pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:j,shift:0},{type:"elem",elem:U,shift:O?.08:0}]},v),I.name="\\"+P,j.classes.unshift("mop"),j.italic=F}}else if(I.body){var z=Ma(I.body,v,!0);z.length===1&&z[0]instanceof el?(j=z[0],j.classes[0]="mop"):j=pt.makeSpan(["mop"],z,v)}else{for(var V=[],W=1;W<I.name.length;W++)V.push(pt.mathsym(I.name[W],I.mode,v));j=pt.makeSpan(["mop"],V,v)}var X=0,J=0;return(j instanceof el||I.name==="\\oiint"||I.name==="\\oiiint")&&!I.suppressBaseShift&&(X=(j.height-j.depth)/2-v.fontMetrics().axisHeight,J=j.italic),A?HN(j,k,E,v,$,J,X):(X&&(j.style.position="relative",j.style.top=tr(X)),j)},"htmlBuilder$2"),Tm=s((b,v)=>{var k;if(b.symbol)k=new Lo("mo",[tl(b.name,b.mode)]),YN.includes(b.name)&&k.setAttribute("largeop","false");else if(b.body)k=new Lo("mo",no(b.body,v));else{k=new Lo("mi",[new dc(b.name.slice(1))]);var E=new Lo("mo",[tl("\u2061","text")]);b.parentIsSupSub?k=new Lo("mrow",[k,E]):k=qD([k,E])}return k},"mathmlBuilder$1"),l0e={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"},hr({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((b,v)=>{var{parser:k,funcName:E}=b,A=E;return A.length===1&&(A=l0e[A]),{type:"op",mode:k.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:A}},"handler"),htmlBuilder:pg,mathmlBuilder:Tm}),hr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:s((b,v)=>{var{parser:k}=b,E=v[0];return{type:"op",mode:k.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ca(E)}},"handler"),htmlBuilder:pg,mathmlBuilder:Tm}),c0e={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"},hr({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(b){var{parser:v,funcName:k}=b;return{type:"op",mode:v.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:k}},htmlBuilder:pg,mathmlBuilder:Tm}),hr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(b){var{parser:v,funcName:k}=b;return{type:"op",mode:v.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:k}},htmlBuilder:pg,mathmlBuilder:Tm}),hr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(b){var{parser:v,funcName:k}=b,E=k;return E.length===1&&(E=c0e[E]),{type:"op",mode:v.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:E}},htmlBuilder:pg,mathmlBuilder:Tm}),XN=s((b,v)=>{var k,E,A=!1,I;b.type==="supsub"?(k=b.sup,E=b.sub,I=di(b.base,"operatorname"),A=!0):I=di(b,"operatorname");var $;if(I.body.length>0){for(var O=I.body.map(F=>{var U=F.text;return typeof U=="string"?{type:"textord",mode:F.mode,text:U}:F}),j=Ma(O,v.withFont("mathrm"),!0),D=0;D<j.length;D++){var P=j[D];P instanceof el&&(P.text=P.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}$=pt.makeSpan(["mop"],j,v)}else $=pt.makeSpan(["mop"],[],v);return A?HN($,k,E,v,v.style,0,0):$},"htmlBuilder$1"),h0e=s((b,v)=>{for(var k=no(b.body,v.withFont("mathrm")),E=!0,A=0;A<k.length;A++){var I=k[A];if(!(I instanceof Ut.SpaceNode))if(I instanceof Ut.MathNode)switch(I.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var $=I.children[0];I.children.length===1&&$ instanceof Ut.TextNode?$.text=$.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):E=!1;break}default:E=!1}else E=!1}if(E){var O=k.map(P=>P.toText()).join("");k=[new Ut.TextNode(O)]}var j=new Ut.MathNode("mi",k);j.setAttribute("mathvariant","normal");var D=new Ut.MathNode("mo",[tl("\u2061","text")]);return b.parentIsSupSub?new Ut.MathNode("mrow",[j,D]):Ut.newDocumentFragment([j,D])},"mathmlBuilder"),hr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:s((b,v)=>{var{parser:k,funcName:E}=b,A=v[0];return{type:"operatorname",mode:k.mode,body:ca(A),alwaysHandleSupSub:E==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:XN,mathmlBuilder:h0e}),Ce("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Qd({type:"ordgroup",htmlBuilder(b,v){return b.semisimple?pt.makeFragment(Ma(b.body,v,!1)):pt.makeSpan(["mord"],Ma(b.body,v,!0),v)},mathmlBuilder(b,v){return Mu(b.body,v,!0)}}),hr({type:"overline",names:["\\overline"],props:{numArgs:1},handler(b,v){var{parser:k}=b,E=v[0];return{type:"overline",mode:k.mode,body:E}},htmlBuilder(b,v){var k=Ni(b.body,v.havingCrampedStyle()),E=pt.makeLineSpan("overline-line",v),A=v.fontMetrics().defaultRuleThickness,I=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k},{type:"kern",size:3*A},{type:"elem",elem:E},{type:"kern",size:A}]},v);return pt.makeSpan(["mord","overline"],[I],v)},mathmlBuilder(b,v){var k=new Ut.MathNode("mo",[new Ut.TextNode("\u203E")]);k.setAttribute("stretchy","true");var E=new Ut.MathNode("mover",[ln(b.body,v),k]);return E.setAttribute("accent","true"),E}}),hr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b,E=v[0];return{type:"phantom",mode:k.mode,body:ca(E)}},"handler"),htmlBuilder:s((b,v)=>{var k=Ma(b.body,v.withPhantom(),!1);return pt.makeFragment(k)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=no(b.body,v);return new Ut.MathNode("mphantom",k)},"mathmlBuilder")}),hr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b,E=v[0];return{type:"hphantom",mode:k.mode,body:E}},"handler"),htmlBuilder:s((b,v)=>{var k=pt.makeSpan([],[Ni(b.body,v.withPhantom())]);if(k.height=0,k.depth=0,k.children)for(var E=0;E<k.children.length;E++)k.children[E].height=0,k.children[E].depth=0;return k=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k}]},v),pt.makeSpan(["mord"],[k],v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=no(ca(b.body),v),E=new Ut.MathNode("mphantom",k),A=new Ut.MathNode("mpadded",[E]);return A.setAttribute("height","0px"),A.setAttribute("depth","0px"),A},"mathmlBuilder")}),hr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:s((b,v)=>{var{parser:k}=b,E=v[0];return{type:"vphantom",mode:k.mode,body:E}},"handler"),htmlBuilder:s((b,v)=>{var k=pt.makeSpan(["inner"],[Ni(b.body,v.withPhantom())]),E=pt.makeSpan(["fix"],[]);return pt.makeSpan(["mord","rlap"],[k,E],v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=no(ca(b.body),v),E=new Ut.MathNode("mphantom",k),A=new Ut.MathNode("mpadded",[E]);return A.setAttribute("width","0px"),A},"mathmlBuilder")}),hr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(b,v){var{parser:k}=b,E=di(v[0],"size").value,A=v[1];return{type:"raisebox",mode:k.mode,dy:E,body:A}},htmlBuilder(b,v){var k=Ni(b.body,v),E=Xn(b.dy,v);return pt.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:k}]},v)},mathmlBuilder(b,v){var k=new Ut.MathNode("mpadded",[ln(b.body,v)]),E=b.dy.number+b.dy.unit;return k.setAttribute("voffset",E),k}}),hr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(b){var{parser:v}=b;return{type:"internal",mode:v.mode}}}),hr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(b,v,k){var{parser:E}=b,A=k[0],I=di(v[0],"size"),$=di(v[1],"size");return{type:"rule",mode:E.mode,shift:A&&di(A,"size").value,width:I.value,height:$.value}},htmlBuilder(b,v){var k=pt.makeSpan(["mord","rule"],[],v),E=Xn(b.width,v),A=Xn(b.height,v),I=b.shift?Xn(b.shift,v):0;return k.style.borderRightWidth=tr(E),k.style.borderTopWidth=tr(A),k.style.bottom=tr(I),k.width=E,k.height=A+I,k.depth=-I,k.maxFontSize=A*1.125*v.sizeMultiplier,k},mathmlBuilder(b,v){var k=Xn(b.width,v),E=Xn(b.height,v),A=b.shift?Xn(b.shift,v):0,I=v.color&&v.getColor()||"black",$=new Ut.MathNode("mspace");$.setAttribute("mathbackground",I),$.setAttribute("width",tr(k)),$.setAttribute("height",tr(E));var O=new Ut.MathNode("mpadded",[$]);return A>=0?O.setAttribute("height",tr(A)):(O.setAttribute("height",tr(A)),O.setAttribute("depth",tr(-A))),O.setAttribute("voffset",tr(A)),O}}),s(HD,"sizingGroup"),KN=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],u0e=s((b,v)=>{var k=v.havingSize(b.size);return HD(b.body,k,v)},"htmlBuilder"),hr({type:"sizing",names:KN,props:{numArgs:0,allowedInText:!0},handler:s((b,v)=>{var{breakOnTokenText:k,funcName:E,parser:A}=b,I=A.parseExpression(!1,k);return{type:"sizing",mode:A.mode,size:KN.indexOf(E)+1,body:I}},"handler"),htmlBuilder:u0e,mathmlBuilder:s((b,v)=>{var k=v.havingSize(b.size),E=no(b.body,k),A=new Ut.MathNode("mstyle",E);return A.setAttribute("mathsize",tr(k.sizeMultiplier)),A},"mathmlBuilder")}),hr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:s((b,v,k)=>{var{parser:E}=b,A=!1,I=!1,$=k[0]&&di(k[0],"ordgroup");if($)for(var O="",j=0;j<$.body.length;++j){var D=$.body[j];if(O=D.text,O==="t")A=!0;else if(O==="b")I=!0;else{A=!1,I=!1;break}}else A=!0,I=!0;var P=v[0];return{type:"smash",mode:E.mode,body:P,smashHeight:A,smashDepth:I}},"handler"),htmlBuilder:s((b,v)=>{var k=pt.makeSpan([],[Ni(b.body,v)]);if(!b.smashHeight&&!b.smashDepth)return k;if(b.smashHeight&&(k.height=0,k.children))for(var E=0;E<k.children.length;E++)k.children[E].height=0;if(b.smashDepth&&(k.depth=0,k.children))for(var A=0;A<k.children.length;A++)k.children[A].depth=0;var I=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k}]},v);return pt.makeSpan(["mord"],[I],v)},"htmlBuilder"),mathmlBuilder:s((b,v)=>{var k=new Ut.MathNode("mpadded",[ln(b.body,v)]);return b.smashHeight&&k.setAttribute("height","0px"),b.smashDepth&&k.setAttribute("depth","0px"),k},"mathmlBuilder")}),hr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(b,v,k){var{parser:E}=b,A=k[0],I=v[0];return{type:"sqrt",mode:E.mode,body:I,index:A}},htmlBuilder(b,v){var k=Ni(b.body,v.havingCrampedStyle());k.height===0&&(k.height=v.fontMetrics().xHeight),k=pt.wrapFragment(k,v);var E=v.fontMetrics(),A=E.defaultRuleThickness,I=A;
vendor: 4,895 bytes, line 257
257v.style.id<Pr.TEXT.id&&(I=v.fontMetrics().xHeight);var $=A+I/4,O=k.height+k.depth+$+A,{span:j,ruleWidth:D,advanceWidth:P}=yh.sqrtImage(O,v),F=j.height-D;F>k.height+k.depth+$&&($=($+F-k.height-k.depth)/2);var U=j.height-k.height-$-D;k.style.paddingLeft=tr(P);var z=pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k,wrapperClasses:["svg-align"]},{type:"kern",size:-(k.height+U)},{type:"elem",elem:j},{type:"kern",size:D}]},v);if(b.index){var V=v.havingStyle(Pr.SCRIPTSCRIPT),W=Ni(b.index,V,v),X=.6*(z.height-z.depth),J=pt.makeVList({positionType:"shift",positionData:-X,children:[{type:"elem",elem:W}]},v),H=pt.makeSpan(["root"],[J]);return pt.makeSpan(["mord","sqrt"],[H,z],v)}else return pt.makeSpan(["mord","sqrt"],[z],v)},mathmlBuilder(b,v){var{body:k,index:E}=b;return E?new Ut.MathNode("mroot",[ln(k,v),ln(E,v)]):new Ut.MathNode("msqrt",[ln(k,v)])}}),ZN={display:Pr.DISPLAY,text:Pr.TEXT,script:Pr.SCRIPT,scriptscript:Pr.SCRIPTSCRIPT},hr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(b,v){var{breakOnTokenText:k,funcName:E,parser:A}=b,I=A.parseExpression(!0,k),$=E.slice(1,E.length-5);return{type:"styling",mode:A.mode,style:$,body:I}},htmlBuilder(b,v){var k=ZN[b.style],E=v.havingStyle(k).withFont("");return HD(b.body,E,v)},mathmlBuilder(b,v){var k=ZN[b.style],E=v.havingStyle(k),A=no(b.body,E),I=new Ut.MathNode("mstyle",A),$={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},O=$[b.style];return I.setAttribute("scriptlevel",O[0]),I.setAttribute("displaystyle",O[1]),I}}),d0e=s(function(b,v){var k=b.base;if(k)if(k.type==="op"){var E=k.limits&&(v.style.size===Pr.DISPLAY.size||k.alwaysHandleSupSub);return E?pg:null}else if(k.type==="operatorname"){var A=k.alwaysHandleSupSub&&(v.style.size===Pr.DISPLAY.size||k.limits);return A?XN:null}else{if(k.type==="accent")return Fi.isCharacterBox(k.base)?FC:null;if(k.type==="horizBrace"){var I=!b.sub;return I===k.isOver?VN:null}else return null}else return null},"htmlBuilderDelegate"),Qd({type:"supsub",htmlBuilder(b,v){var k=d0e(b,v);if(k)return k(b,v);var{base:E,sup:A,sub:I}=b,$=Ni(E,v),O,j,D=v.fontMetrics(),P=0,F=0,U=E&&Fi.isCharacterBox(E);if(A){var z=v.havingStyle(v.style.sup());O=Ni(A,z,v),U||(P=$.height-z.fontMetrics().supDrop*z.sizeMultiplier/v.sizeMultiplier)}if(I){var V=v.havingStyle(v.style.sub());j=Ni(I,V,v),U||(F=$.depth+V.fontMetrics().subDrop*V.sizeMultiplier/v.sizeMultiplier)}var W;v.style===Pr.DISPLAY?W=D.sup1:v.style.cramped?W=D.sup3:W=D.sup2;var X=v.sizeMultiplier,J=tr(.5/D.ptPerEm/X),H=null;if(j){var te=b.base&&b.base.type==="op"&&b.base.name&&(b.base.name==="\\oiint"||b.base.name==="\\oiiint");($ instanceof el||te)&&(H=tr(-$.italic))}var ie;if(O&&j){P=Math.max(P,W,O.depth+.25*D.xHeight),F=Math.max(F,D.sub2);var oe=D.defaultRuleThickness,he=4*oe;if(P-O.depth-(j.height-F)<he){F=he-(P-O.depth)+j.height;var pe=.8*D.xHeight-(P-O.depth);pe>0&&(P+=pe,F-=pe)}var se=[{type:"elem",elem:j,shift:F,marginRight:J,marginLeft:H},{type:"elem",elem:O,shift:-P,marginRight:J}];ie=pt.makeVList({positionType:"individualShift",children:se},v)}else if(j){F=Math.max(F,D.sub1,j.height-.8*D.xHeight);var le=[{type:"elem",elem:j,marginLeft:H,marginRight:J}];ie=pt.makeVList({positionType:"shift",positionData:F,children:le},v)}else if(O)P=Math.max(P,W,O.depth+.25*D.xHeight),ie=pt.makeVList({positionType:"shift",positionData:-P,children:[{type:"elem",elem:O,marginRight:J}]},v);else throw new Error("supsub must have either sup or sub.");var ue=$C($,"right")||"mord";return pt.makeSpan([ue],[$,pt.makeSpan(["msupsub"],[ie])],v)},mathmlBuilder(b,v){var k=!1,E,A;b.base&&b.base.type==="horizBrace"&&(A=!!b.sup,A===b.base.isOver&&(k=!0,E=b.base.isOver)),b.base&&(b.base.type==="op"||b.base.type==="operatorname")&&(b.base.parentIsSupSub=!0);var I=[ln(b.base,v)];b.sub&&I.push(ln(b.sub,v)),b.sup&&I.push(ln(b.sup,v));var $;if(k)$=E?"mover":"munder";else if(b.sub)if(b.sup){var O=b.base;O&&O.type==="op"&&O.limits&&v.style===Pr.DISPLAY||O&&O.type==="operatorname"&&O.alwaysHandleSupSub&&(v.style===Pr.DISPLAY||O.limits)?$="munderover":$="msubsup"}else{var j=b.base;j&&j.type==="op"&&j.limits&&(v.style===Pr.DISPLAY||j.alwaysHandleSupSub)||j&&j.type==="operatorname"&&j.alwaysHandleSupSub&&(j.limits||v.style===Pr.DISPLAY)?$="munder":$="msub"}else{var D=b.base;D&&D.type==="op"&&D.limits&&(v.style===Pr.DISPLAY||D.alwaysHandleSupSub)||D&&D.type==="operatorname"&&D.alwaysHandleSupSub&&(D.limits||v.style===Pr.DISPLAY)?$="mover":$="msup"}return new Ut.MathNode($,I)}}),Qd({type:"atom",htmlBuilder(b,v){return pt.mathsym(b.text,b.mode,v,["m"+b.family])},mathmlBuilder(b,v){var k=new Ut.MathNode("mo",[tl(b.text,b.mode)]);if(b.family==="bin"){var E=PC(b,v);E==="bold-italic"&&k.setAttribute("mathvariant",E)}else b.family==="punct"?k.setAttribute("separator","true"):(b.fam
vendor: 5,086 bytes, lines 257-260
257ily==="open"||b.family==="close")&&k.setAttribute("stretchy","false");return k}}),QN={mi:"italic",mn:"normal",mtext:"normal"},Qd({type:"mathord",htmlBuilder(b,v){return pt.makeOrd(b,v,"mathord")},mathmlBuilder(b,v){var k=new Ut.MathNode("mi",[tl(b.text,b.mode,v)]),E=PC(b,v)||"italic";return E!==QN[k.type]&&k.setAttribute("mathvariant",E),k}}),Qd({type:"textord",htmlBuilder(b,v){return pt.makeOrd(b,v,"textord")},mathmlBuilder(b,v){var k=tl(b.text,b.mode,v),E=PC(b,v)||"normal",A;return b.mode==="text"?A=new Ut.MathNode("mtext",[k]):/[0-9]/.test(b.text)?A=new Ut.MathNode("mn",[k]):b.text==="\\prime"?A=new Ut.MathNode("mo",[k]):A=new Ut.MathNode("mi",[k]),E!==QN[A.type]&&A.setAttribute("mathvariant",E),A}}),JC={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},e6={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}},Qd({type:"spacing",htmlBuilder(b,v){if(e6.hasOwnProperty(b.text)){var k=e6[b.text].className||"";if(b.mode==="text"){var E=pt.makeOrd(b,v,"textord");return E.classes.push(k),E}else return pt.makeSpan(["mspace",k],[pt.mathsym(b.text,b.mode,v)],v)}else{if(JC.hasOwnProperty(b.text))return pt.makeSpan(["mspace",JC[b.text]],[],v);throw new Yt('Unknown type of space "'+b.text+'"')}},mathmlBuilder(b,v){var k;if(e6.hasOwnProperty(b.text))k=new Ut.MathNode("mtext",[new Ut.TextNode("\xA0")]);else{if(JC.hasOwnProperty(b.text))return new Ut.MathNode("mspace");throw new Yt('Unknown type of space "'+b.text+'"')}return k}}),JN=s(()=>{var b=new Ut.MathNode("mtd",[]);return b.setAttribute("width","50%"),b},"pad"),Qd({type:"tag",mathmlBuilder(b,v){var k=new Ut.MathNode("mtable",[new Ut.MathNode("mtr",[JN(),new Ut.MathNode("mtd",[Mu(b.body,v)]),JN(),new Ut.MathNode("mtd",[Mu(b.tag,v)])])]);return k.setAttribute("width","100%"),k}}),eM={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tM={"\\textbf":"textbf","\\textmd":"textmd"},p0e={"\\textit":"textit","\\textup":"textup"},rM=s((b,v)=>{var k=b.font;if(k){if(eM[k])return v.withTextFontFamily(eM[k]);if(tM[k])return v.withTextFontWeight(tM[k]);if(k==="\\emph")return v.fontShape==="textit"?v.withTextFontShape("textup"):v.withTextFontShape("textit")}else return v;return v.withTextFontShape(p0e[k])},"optionsWithFont"),hr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(b,v){var{parser:k,funcName:E}=b,A=v[0];return{type:"text",mode:k.mode,body:ca(A),font:E}},htmlBuilder(b,v){var k=rM(b,v),E=Ma(b.body,k,!0);return pt.makeSpan(["mord","text"],E,k)},mathmlBuilder(b,v){var k=rM(b,v);return Mu(b.body,k)}}),hr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(b,v){var{parser:k}=b;return{type:"underline",mode:k.mode,body:v[0]}},htmlBuilder(b,v){var k=Ni(b.body,v),E=pt.makeLineSpan("underline-line",v),A=v.fontMetrics().defaultRuleThickness,I=pt.makeVList({positionType:"top",positionData:k.height,children:[{type:"kern",size:A},{type:"elem",elem:E},{type:"kern",size:3*A},{type:"elem",elem:k}]},v);return pt.makeSpan(["mord","underline"],[I],v)},mathmlBuilder(b,v){var k=new Ut.MathNode("mo",[new Ut.TextNode("\u203E")]);k.setAttribute("stretchy","true");var E=new Ut.MathNode("munder",[ln(b.body,v),k]);return E.setAttribute("accentunder","true"),E}}),hr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(b,v){var{parser:k}=b;return{type:"vcenter",mode:k.mode,body:v[0]}},htmlBuilder(b,v){var k=Ni(b.body,v),E=v.fontMetrics().axisHeight,A=.5*(k.height-E-(k.depth+E));return pt.makeVList({positionType:"shift",positionData:A,children:[{type:"elem",elem:k}]},v)},mathmlBuilder(b,v){return new Ut.MathNode("mpadded",[ln(b.body,v)],["vcenter"])}}),hr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(b,v,k){throw new Yt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(b,v){for(var k=iM(b),E=[],A=v.havingStyle(v.style.text()),I=0;I<k.length;I++){var $=k[I];$==="~"&&($="\\textasciitilde"),E.push(pt.makeSymbol($,"Typewriter-Regular",b.mode,A,["mord","texttt"]))}return pt.makeSpan(["mord","text"].concat(A.sizingClasses(v)),pt.tryCombineChars(E),A)},mathmlBuilder(b,v){var k=new Ut.TextNode(iM(b)),E=new Ut.MathNode("mtext",[k]);return E.setAttribute("mathvariant","monospace"),E}}),iM=s(b=>b.body.replace(/ /g,b.star?"\u2423":"\xA0"),"makeVerb"),Ou=gN,nM=`[ \r 258 ]`,g0e="\\\\[a-zA-Z@]+",f0e="\\\\[^\uD800-\uDFFF]",m0e="("+g0e+")"+nM+"*",y0e=`\\\\( 259|[ \r ]+ 260?)[ \r ]*`,t6="[\u0300-\u036F]",v0e=new RegExp(t6+"+$"),b0e="("+nM+"+)|"+(y0e+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(t6+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(t6+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+m0e)+("|"+f0e+")"),aM=(w=class{constructor(v,k){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=v,this.settings=k,this.tokenRegex=new RegExp(b0e,"g"),this.catcodes={"%":14,"~":13}}
vendor: 4,346 bytes, lines 260-261
260setCatcode(v,k){this.catcodes[v]=k}lex(){var v=this.input,k=this.tokenRegex.lastIndex;if(k===v.length)return new Sl("EOF",new Qo(this,k,k));var E=this.tokenRegex.exec(v);if(E===null||E.index!==k)throw new Yt("Unexpected character: '"+v[k]+"'",new Sl(v[k],new Qo(this,k,k+1)));var A=E[6]||E[3]||(E[2]?"\\ ":" ");if(this.catcodes[A]===14){var I=v.indexOf(` 261`,this.tokenRegex.lastIndex);return I===-1?(this.tokenRegex.lastIndex=v.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=I+1,this.lex()}return new Sl(A,new Qo(this,k,this.tokenRegex.lastIndex))}},f(w,"rk"),s(w,"Lexer"),w),x0e=(_=class{constructor(v,k){v===void 0&&(v={}),k===void 0&&(k={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=k,this.builtins=v,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Yt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var v=this.undefStack.pop();for(var k in v)v.hasOwnProperty(k)&&(v[k]==null?delete this.current[k]:this.current[k]=v[k])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(v){return this.current.hasOwnProperty(v)||this.builtins.hasOwnProperty(v)}get(v){return this.current.hasOwnProperty(v)?this.current[v]:this.builtins[v]}set(v,k,E){if(E===void 0&&(E=!1),E){for(var A=0;A<this.undefStack.length;A++)delete this.undefStack[A][v];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][v]=k)}else{var I=this.undefStack[this.undefStack.length-1];I&&!I.hasOwnProperty(v)&&(I[v]=this.current[v])}k==null?delete this.current[v]:this.current[v]=k}},f(_,"oD"),s(_,"Namespace"),_),k0e=$N,Ce("\\noexpand",function(b){var v=b.popToken();return b.isExpandable(v.text)&&(v.noexpand=!0,v.treatAsRelax=!0),{tokens:[v],numArgs:0}}),Ce("\\expandafter",function(b){var v=b.popToken();return b.expandOnce(!0),{tokens:[v],numArgs:0}}),Ce("\\@firstoftwo",function(b){var v=b.consumeArgs(2);return{tokens:v[0],numArgs:0}}),Ce("\\@secondoftwo",function(b){var v=b.consumeArgs(2);return{tokens:v[1],numArgs:0}}),Ce("\\@ifnextchar",function(b){var v=b.consumeArgs(3);b.consumeSpaces();var k=b.future();return v[0].length===1&&v[0][0].text===k.text?{tokens:v[1],numArgs:0}:{tokens:v[2],numArgs:0}}),Ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ce("\\TextOrMath",function(b){var v=b.consumeArgs(2);return b.mode==="text"?{tokens:v[0],numArgs:0}:{tokens:v[1],numArgs:0}}),sM={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},Ce("\\char",function(b){var v=b.popToken(),k,E="";if(v.text==="'")k=8,v=b.popToken();else if(v.text==='"')k=16,v=b.popToken();else if(v.text==="`")if(v=b.popToken(),v.text[0]==="\\")E=v.text.charCodeAt(1);else{if(v.text==="EOF")throw new Yt("\\char` missing argument");E=v.text.charCodeAt(0)}else k=10;if(k){if(E=sM[v.text],E==null||E>=k)throw new Yt("Invalid base-"+k+" digit "+v.text);for(var A;(A=sM[b.future().text])!=null&&A<k;)E*=k,E+=A,b.popToken()}return"\\@char{"+E+"}"}),r6=s((b,v,k,E)=>{var A=b.consumeArg().tokens;if(A.length!==1)throw new Yt("\\newcommand's first argument must be a macro name");var I=A[0].text,$=b.isDefined(I);if($&&!v)throw new Yt("\\newcommand{"+I+"} attempting to redefine "+(I+"; use \\renewcommand"));if(!$&&!k)throw new Yt("\\renewcommand{"+I+"} when command "+I+" does not yet exist; use \\newcommand");var O=0;if(A=b.consumeArg().tokens,A.length===1&&A[0].text==="["){for(var j="",D=b.expandNextToken();D.text!=="]"&&D.text!=="EOF";)j+=D.text,D=b.expandNextToken();if(!j.match(/^\s*[0-9]+\s*$/))throw new Yt("Invalid number of arguments: "+j);O=parseInt(j),A=b.consumeArg().tokens}return $&&E||b.macros.set(I,{tokens:A,numArgs:O}),""},"newcommand"),Ce("\\newcommand",b=>r6(b,!1,!0,!1)),Ce("\\renewcommand",b=>r6(b,!0,!1,!1)),Ce("\\providecommand",b=>r6(b,!0,!0,!0)),Ce("\\message",b=>{var v=b.consumeArgs(1)[0];return console.log(v.reverse().map(k=>k.text).join("")),""}),Ce("\\errmessage",b=>{var v=b.consumeArgs(1)[0];return console.error(v.reverse().map(k=>k.text).join("")),""}),Ce("\\show",b=>{var v=b.popToken(),k=v.text;return console.log(v,b.macros.get(k),Ou[k],un.math[k],un.text[k]),""}),Ce("\\bgroup","{"),Ce("\\egroup","}
261"),Ce("~","\\nobreakspace"),Ce("\\lq","`"),Ce("\\rq","'"),Ce("\\aa","\\r a"),Ce("\\AA","\\r A"),Ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ce("\u212C","\\mathscr{B}"),Ce("\u2130","\\mathscr{E}"),Ce("\u2131","\\mathscr{F}"),Ce("\u210B","\\mathscr{H}"),Ce("\u2110","\\mathscr{I}"),Ce("\u2112","\\mathscr{L}"),Ce("\u2133","\\mathscr{M}"),Ce("\u211B","\\mathscr{R}"),Ce("\u212D","\\mathfrak{C}"),Ce("\u210C","\\mathfrak{H}"),Ce("\u2128","\\mathfrak{Z}"),Ce("\\Bbbk","\\Bbb{k}"),Ce("\xB7","\\cdotp"),Ce("\\llap","\\mathllap{\\textrm{#1}}"),Ce("\\rlap","\\mathrlap{\\textrm{#1}}"),Ce("\\clap","\\mathclap{\\textrm{#1}}"),Ce("\\mathstrut","\\vphantom{(}"),Ce("\\underbar","\\underline{\\text{#1}}"),Ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ce("\\ne","\\neq"),Ce("\u2260","\\neq"),Ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}
261"),Ce("\u2209","\\notin"),Ce("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ce("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ce("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ce("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ce("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ce("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ce("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ce("\u27C2","\\perp"),Ce("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ce("\u220C","\\notni"),Ce("\u231C","\\ulcorner"),Ce("\u231D","\\urcorner"),Ce("\u231E","\\llcorner"),Ce("\u231F","\\lrcorner"),Ce("\xA9","\\copyright"),Ce("\xAE","\\textregistered"),Ce("\uFE0F","\\textregistered"),Ce("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Ce("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Ce("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Ce("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Ce("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Ce("\u22EE","\\vdots"),Ce("\\varGamma","\\mathit{\\Gamma}"),Ce("\\varDelta","\\mathit{\\Delta}"),Ce("\\varTheta","\\mathit{\\Theta}"),Ce("\\varLambda","\\mathit{\\Lambda}"),Ce("\\varXi","\\mathit{\\Xi}"),Ce("\\varPi","\\mathit{\\Pi}"),Ce("\\varSigma","\\mathit{\\Sigma}"),Ce("\\varUpsilon","\\mathit{\\Upsilon}"),Ce("\\varPhi","\\mathit{\\Phi}"),Ce("\\varPsi","\\mathit{\\Psi}"),Ce("\\varOmega","\\mathit{\\Omega}"),Ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Ce("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),Ce("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),Ce("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}"),oM={",":"\\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"},Ce("\\dots",function(b){var v="\\dotso",k=b.expandAfterFuture().text;return k in oM?v=oM[k]:(k.slice(0,4)==="\\not"||k in un.math&&["bin","rel"].includes(un.math[k].group))&&(v="\\dotsb"),v}),i6={")":!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},Ce("\\dotso",function(b){var v=b.future().text;return v in i6?"\\ldots\\,":"\\ldots"}),Ce("\\dotsc",function(b){var v=b.future().text;return v in i6&&v!==","?"\\ldots\\,":"\\ldots"}),Ce("\\cdots",function(b){var v=b.future().text;return v in i6?"\\@cdots\\,":"\\@cdots"}),Ce("\\dotsb","\\cdots"),Ce("\\dotsm","\\cdots"),Ce("\\dotsi","\\!\\cdots"),Ce("\\dotsx","\\ldots\\,"),Ce("\\DOTSI","\\relax"),Ce("\\DOTSB","\\relax"),Ce("\\DOTSX","\\relax"),Ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ce("\\,","\\tmspace+{3mu}{.1667em}"),Ce("\\thinspace","\\,"),Ce("\\>","\\mskip{4mu}"),Ce("\\:","\\tmspace+{4mu}{.2222em}"),Ce("\\medspace","\\:"),Ce("\\;","\\tmspace+{5mu}{.2777em}"),Ce("\\thickspace","\\;"),Ce("\\!","\\tmspace-{3mu}{.1667em}"),Ce("\\negthinspace","\\!"),Ce("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ce("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ce("\\enspace","\\kern.5em "),Ce("\\enskip","\\hskip.5em\\relax"),Ce("\\quad","\\hskip1em\\relax"),Ce("\\qquad","\\hskip2em\\relax"),Ce("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ce("\\tag@paren","\\tag@literal{({#1})}"),Ce("\\tag@literal",b=>{if(b.macros.get("\\df@tag"))throw new Yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ce("\\newline","\\\\\\relax"),Ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"),lM=tr(uc["Main-Regular"][84][1]-.7*uc["Main-Regular"][65][1]),Ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+lM+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+lM+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}
261"),Ce("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ce("\\@hspace","\\hskip #1\\relax"),Ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ce("\\ordinarycolon",":"),Ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ce("\u2237","\\dblcolon"),Ce("\u2239","\\eqcolon"),Ce("\u2254","\\coloneqq"),Ce("\u2255","\\eqqcolon"),Ce("\u2A74","\\Coloneqq"),Ce("\\ratio","\\vcentcolon"),Ce("\\coloncolon","\\dblcolon"),Ce("\\colonequals","\\coloneqq"),Ce("\\coloncolonequals","\\Coloneqq"),Ce("\\equalscolon","\\eqqcolon"),Ce("\\equalscoloncolon","\\Eqqcolon"),Ce("\\colonminus","\\coloneq"),Ce("\\coloncolonminus","\\Coloneq"),Ce("\\minu
261scolon","\\eqcolon"),Ce("\\minuscoloncolon","\\Eqcolon"),Ce("\\coloncolonapprox","\\Colonapprox"),Ce("\\coloncolonsim","\\Colonsim"),Ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ce("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Ce("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Ce("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Ce("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Ce("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Ce("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ce("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ce("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ce("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ce("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ce("\\imath","\\html@mathml{\\@imath}{\u0131}"),Ce("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),Ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ce("\u27E6","\\llbracket"),Ce("\u27E7","\\rrbracket"),Ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}
261"),Ce("\u2983","\\lBrace"),Ce("\u2984","\\rBrace"),Ce("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),Ce("\u29B5","\\minuso"),Ce("\\darr","\\downarrow"),Ce("\\dArr","\\Downarrow"),Ce("\\Darr","\\Downarrow"),Ce("\\lang","\\langle"),Ce("\\rang","\\rangle"),Ce("\\uarr","\\uparrow"),Ce("\\uArr","\\Uparrow"),Ce("\\Uarr","\\Uparrow"),Ce("\\N","\\mathbb{N}"),Ce("\\R","\\mathbb{R}"),Ce("\\Z","\\mathbb{Z}"),Ce("\\alef","\\aleph"),Ce("\\alefsym","\\aleph"),Ce("\\Alpha","\\mathrm{A}"),Ce("\\Beta","\\mathrm{B}"),Ce("\\bull","\\bullet"),Ce("\\Chi","\\mathrm{X}"),Ce("\\clubs","\\clubsuit"),Ce("\\cnums","\\mathbb{C}"),Ce("\\Complex","\\mathbb{C}"),Ce("\\Dagger","\\ddagger"),Ce("\\diamonds","\\diamondsuit"),Ce("\\empty","\\emptyset"),Ce("\\Epsilon","\\mathrm{E}"),Ce("\\Eta","\\mathrm{H}"),Ce("\\exist","\\exists"),Ce("\\harr","\\leftrightarrow"),Ce("\\hArr","\\Leftrightarrow"),Ce("\\Harr","\\Leftrightarrow"),Ce("\\hearts","\\heartsuit"),Ce("\\image","\\Im"),Ce("\\infin","\\infty"),Ce("\\Iota","\\mathrm{I}"),Ce("\\isin","\\in"),Ce("\\Kappa","\\mathrm{K}"),Ce("\\larr","\\leftarrow"),Ce("\\lArr","\\Leftarrow"),Ce("\\Larr","\\Leftarrow"),Ce("\\lrarr","\\leftrightarrow"),Ce("\\lrArr","\\Leftrightarrow"),Ce("\\Lrarr","\\Leftrightarrow"),Ce("\\Mu","\\mathrm{M}"),Ce("\\natnums","\\mathbb{N}"),Ce("\\Nu","\\mathrm{N}"),Ce("\\Omicron","\\mathrm{O}"),Ce("\\plusmn","\\pm"),Ce("\\rarr","\\rightarrow"),Ce("\\rArr","\\Rightarrow"),Ce("\\Rarr","\\Rightarrow"),Ce("\\real","\\Re"),Ce("\\reals","\\mathbb{R}"),Ce("\\Reals","\\mathbb{R}"),Ce("\\Rho","\\mathrm{P}"),Ce("\\sdot","\\cdot"),Ce("\\sect","\\S"),Ce("\\spades","\\spadesuit"),Ce("\\sub","\\subset"),Ce("\\sube","\\subseteq"),Ce("\\supe","\\supseteq"),Ce("\\Tau","\\mathrm{T}"),Ce("\\thetasym","\\vartheta"),Ce("\\weierp","\\wp"),Ce("\\Zeta","\\mathrm{Z}"),Ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ce("\\bra","\\mathinner{\\langle{#1}|}"),Ce("\\ket","\\mathinner{|{#1}\\rangle}"),Ce("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Ce("\\Bra","\\left\\langle#1\\right|"),Ce("\\Ket","\\left|#1\\right\\rangle"),cM=s(b=>v=>{var k=v.consumeArg().tokens,E=v.consumeArg().tokens,A=v.consumeArg().tokens,I=v.consumeArg().tokens,$=v.macros.get("|"),O=v.macros.get("\\|");v.macros.beginGroup();var j=s(F=>U=>{b&&(U.macros.set("|",$),A.length&&U.macros.set("\\|",O));var z=F;if(!F&&A.length){var V=U.future();V.text==="|"&&(U.popToken(),z=!0)}return{tokens:z?A:E,numArgs:0}},"midMacro");v.macros.set("|",j(!1)),A.length&&v.macros.set("\\|",j(!0));var D=v.consumeArg().tokens,P=v.expandTokens([...I,...D,...k]);return v.macros.endGroup(),{tokens:P.reverse(),numArgs:0}},"braketHelper"),Ce("\\bra@ket",cM(!1)),Ce("\\bra@set",cM(!0)),Ce("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Ce("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Ce("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Ce("\\angln","{\\angl n}"),Ce("\\blue","\\textcolor{##6495ed}{#1}"),Ce("\\orange","\\textcolor{##ffa500}{#1}"),Ce("\\pink","\\textcolor{##ff00af}{#1}"),Ce("\\red","\\textcolor{##df0030}{#1}"),Ce("\\green","\\textcolor{##28ae7b}{#1}"),Ce("\\gray","\\textcolor{gray}{#1}"),Ce("\\purple","\\textcolor{##9d38bd}{#1}"),Ce("\\blueA","\\textcolor{##ccfaff}{#1}"),Ce("\\blueB","\\textcolor{##80f6ff}{#1}"),Ce("\\blueC","\\textcolor{##63d9ea}{#1}"),Ce("\\blueD","\\textcolor{##11accd}{#1}"),Ce("\\blueE","\\textcolor{##0c7f99}{#1}"),Ce("\\tealA","\\textcolor{##94fff5}{#1}"),Ce("\\tealB","\\textcolor{##26edd5}{#1}"),Ce("\\tealC","\\textcolor{##01d1c1}{#1}"),Ce("\\tealD","\\textcolor{##01a995}{#1}"),Ce("\\tealE","\\textcolor{##208170}{#1}"),Ce("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ce("\\greenB","\\textcolor{##8af281}{#1}"),Ce("\\greenC","\\textcolor{##74cf70}{#1}"),Ce("\\greenD","\\textcolor{##1fab54}{#1}"),Ce("\\greenE","\\textcolor{##0d923f}{#1}"),Ce("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ce("\\goldB","\\textcolor{##ffbb71}{#1}"),Ce("\\goldC","\\textcolor{##ff9c39}{#1}"),Ce("\\goldD","\\textcolor{##e07d10}{#1}"),Ce("\\goldE","\\textcolor{##a75a05}{#1}"),Ce("\\redA","\\textcolor{##fca9a9}{#1}"),Ce("\\redB","\\textcolor{##ff8482}{#1}"),Ce("\\redC","\\textcolor{##f9685d}{#1}"),Ce("\\redD","\\textcolor{##e84d39}{#1}
261"),Ce("\\redE","\\textcolor{##bc2612}{#1}"),Ce("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ce("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ce("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ce("\\maroonD","\\textcolor{##ca337c}{#1}"),Ce("\\maroonE","\\textcolor{##9e034e}{#1}"),Ce("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ce("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ce("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ce("\\purpleD","\\textcolor{##7854ab}{#1}"),Ce("\\purpleE","\\textcolor{##543b78}{#1}"),Ce("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ce("\\mintB","\\textcolor{##edf2df}{#1}"),Ce("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ce("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ce("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ce("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ce("\\grayD","\\textcolor{##d6d8da}{#1}"),Ce("\\grayE","\\textcolor{##babec2}{#1}"),Ce("\\grayF","\\textcolor{##888d93}{#1}"),Ce("\\grayG","\\textcolor{##626569}{#1}"),Ce("\\grayH","\\textcolor{##3b3e40}{#1}"),Ce("\\grayI","\\textcolor{##21242c}{#1}"),Ce("\\kaBlue","\\textcolor{##314453}{#1}"),Ce("\\kaGreen","\\textcolor{##71B307}{#1}"),hM={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},T0e=(S=class{constructor(v,k,E){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=k,this.expansionCount=0,this.feed(v),this.macros=new x0e(k0e,k.macros),this.mode=E,this.stack=[]}feed(v){this.lexer=new aM(v,this.settings)}switchMode(v){this.mode=v}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(v){this.stack.push(v)}pushTokens(v){this.stack.push(...v)}scanArgument(v){var k,E,A;if(v){if(this.consumeSpaces(),this.future().text!=="[")return null;k=this.popToken(),{tokens:A,end:E}=this.consumeArg(["]"])}else({tokens:A,start:k,end:E}=this.consumeArg());return this.pushToken(new Sl("EOF",E.loc)),this.pushTokens(A),new Sl("",Qo.range(k,E))}consumeSpaces(){for(;;){var v=this.future();if(v.text===" ")this.stack.pop();else break}}consumeArg(v){var k=[],E=v&&v.length>0;E||this.consumeSpaces();var A=this.future(),I,$=0,O=0;do{if(I=this.popToken(),k.push(I),I.text==="{")++$;else if(I.text==="}"){if(--$,$===-1)throw new Yt("Extra }",I)}else if(I.text==="EOF")throw new Yt("Unexpected end of input in a macro argument, expected '"+(v&&E?v[O]:"}")+"'",I);if(v&&E)if(($===0||$===1&&v[O]==="{")&&I.text===v[O]){if(++O,O===v.length){k.splice(-O,O);break}}else O=0}while($!==0||E);return A.text==="{"&&k[k.length-1].text==="}"&&(k.pop(),k.shift()),k.reverse(),{tokens:k,start:A,end:I}}consumeArgs(v,k){if(k){if(k.length!==v+1)throw new Yt("The length of delimiters doesn't match the number of args!");for(var E=k[0],A=0;A<E.length;A++){var I=this.popToken();if(E[A]!==I.text)throw new Yt("Use of the macro doesn't match its definition",I)}}for(var $=[],O=0;O<v;O++)$.push(this.consumeArg(k&&k[O+1]).tokens);return $}countExpansion(v){if(this.expansionCount+=v,this.expansionCount>this.settings.maxExpand)throw new Yt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(v){var k=this.popToken(),E=k.text,A=k.noexpand?null:this._getExpansion(E);if(A==null||v&&A.unexpandable){if(v&&A==null&&E[0]==="\\"&&!this.isDefined(E))throw new Yt("Undefined control sequence: "+E);return this.pushToken(k),!1}this.countExpansion(1);var I=A.tokens,$=this.consumeArgs(A.numArgs,A.delimiters);if(A.numArgs){I=I.slice();for(var O=I.length-1;O>=0;--O){var j=I[O];if(j.text==="#"){if(O===0)throw new Yt("Incomplete placeholder at end of macro body",j);if(j=I[--O],j.text==="#")I.splice(O+1,1);else if(/^[1-9]$/.test(j.text))I.splice(O,2,...$[+j.text-1]);else throw new Yt("Not a valid argument number",j)}}}return this.pushTokens(I),I.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var v=this.stack.pop();return v.treatAsRelax&&(v.text="\\relax"),v}throw new Error}expandMacro(v){return this.macros.has(v)?this.expandTokens([new Sl(v)]):void 0}expandTokens(v){var k=[],E=this.stack.length;for(this.pushTokens(v);this.stack.length>E;)if(this.expandOnce(!0)===!1){var A=this.stack.pop();A.treatAsRelax&&(A.noexpand=!1,A.treatAsRelax=!1),k.push(A)}return this.countExpansion(k.length),k}expandMacroAsText(v){var k=this.expandMacro(v);return k&&k.map(E=>E.text).join("")}_getExpansion(v){var k=this.macros.get(v);if(k==null)return k;if(v.length===1){var E=this.lexer.catcodes[v];if(E!=null&&E!==13)return}var A=typeof k=="function"?k(this):k;if(typeof A=="string"){var I=0;if(A.indexOf("#")!==-1)for(var $=A.replace(/##/g,"");$.indexOf("#"+(I+1))!==-1;)++I;for(var O=new aM(A,this.settings),j=[],D=O.lex();D.text!=="EOF";)j.push(D),D=O.lex();j.reverse();var P={tokens:j,numArgs:I};return P}return A}isDefined(v){return this.macros.has(v)||Ou.hasOwnProperty(v)||un.math.hasOwnProperty(v)||un.text.hasOwnProperty(v)||hM.hasOwnProperty(v)}isExpandable(v){var k=this.macros.get(v);return k!=null?typeof k=="string"||typeof k=="function"||!k.unexpandable:Ou.hasOwnProperty(v)&&!Ou[v].primitive}},f(S,"lD"),s(S,"MacroExpander"),S),uM=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,ux=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"
261:"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"}),n6={"\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"}},dM={\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\u
2610302",\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"},pM=(R=class{constructor(v,k){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 T0e(v,k,this.mode),this.settings=k,this.leftrightDepth=0}expect(v,k){if(k===void 0&&(k=!0),this.fetch().text!==v)throw new Yt("Expected '"+v+"', got '"+this.fetch().text+"'",this.fetch());k&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(v){this.mode=v,this.gullet.switchMode(v)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var v=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),v}finally{this.gullet.endGroups()}}subparse(v){var k=this.nextToken;this.consume(),this.gullet.pushToken(new Sl("}")),this.gullet.pushTokens(v);var E=this.parseExpression(!1);return this.expect("}"),this.nextToken=k,E}parseExpression(v,k){for(var E=[];;){this.mode==="math"&&this.consumeSpaces();var A=this.fetch();if(R.endOfExpression.indexOf(A.text)!==-1||k&&A.text===k||v&&Ou[A.text]&&Ou[A.text].infix)break;var I=this.parseAtom(k);if(I){if(I.type==="internal")continue}else break;E.push(I)}return this.mode==="text"&&this.formLigatures(E),this.handleInfixNodes(E)}handleInfixNodes(v){for(var k=-1,E,A=0;A<v.length;A++)if(v[A].type==="infix"){if(k!==-1)throw new Yt("only one infix operator per group",v[A].token);k=A,E=v[A].replaceWith}if(k!==-1&&E){var I,$,O=v.slice(0,k),j=v.slice(k+1);O.length===1&&O[0].type==="ordgroup"?I=O[0]:I={type:"ordgroup",mode:this.mode,body:O},j.length===1&&j[0].type==="ordgroup"?$=j[0]:$={type:"ordgroup",mode:this.mode,body:j};var D;return E==="\\\\abovefrac"?D=this.callFunction(E,[I,v[k],$],[]):D=this.callFunction(E,[I,$],[]),[D]}else return v}handleSupSubscript(v){var k=this.fetch(),E=k.text;this.consume(),this.consumeSpaces();var A;do{var I;A=this.parseGroup(v)}while(((I=A)==null?void 0:I.type)==="internal");if(!A)throw new Yt("Expected group after '"+E+"'",k);return A}formatUnsupportedCmd(v){for(var k=[],E=0;E<v.length;E++)k.push({type:"textord",mode:"text",text:v[E]});var A={type:"text",mode:this.mode,body:k},I={type:"color",mode:this.mode,color:this.settings.errorColor,body:[A]};return I}parseAtom(v){var k=this.parseGroup("atom",v);if((k==null?void 0:k.type)==="internal"||this.mode==="text")return k;for(var E,A;;){this.consumeSpaces();var I=this.fetch();if(I.text==="\\limits"||I.text==="\\nolimits"){if(k&&k.type==="op"){var $=I.text==="\\limits";
vendor: 4,598 bytes, line 261
261k.limits=$,k.alwaysHandleSupSub=!0}else if(k&&k.type==="operatorname")k.alwaysHandleSupSub&&(k.limits=I.text==="\\limits");else throw new Yt("Limit controls must follow a math operator",I);this.consume()}else if(I.text==="^"){if(E)throw new Yt("Double superscript",I);E=this.handleSupSubscript("superscript")}else if(I.text==="_"){if(A)throw new Yt("Double subscript",I);A=this.handleSupSubscript("subscript")}else if(I.text==="'"){if(E)throw new Yt("Double superscript",I);var O={type:"textord",mode:this.mode,text:"\\prime"},j=[O];for(this.consume();this.fetch().text==="'";)j.push(O),this.consume();this.fetch().text==="^"&&j.push(this.handleSupSubscript("superscript")),E={type:"ordgroup",mode:this.mode,body:j}}else if(ux[I.text]){var D=uM.test(I.text),P=[];for(P.push(new Sl(ux[I.text])),this.consume();;){var F=this.fetch().text;if(!ux[F]||uM.test(F)!==D)break;P.unshift(new Sl(ux[F])),this.consume()}var U=this.subparse(P);D?A={type:"ordgroup",mode:"math",body:U}:E={type:"ordgroup",mode:"math",body:U}}else break}return E||A?{type:"supsub",mode:this.mode,base:k,sup:E,sub:A}:k}parseFunction(v,k){var E=this.fetch(),A=E.text,I=Ou[A];if(!I)return null;if(this.consume(),k&&k!=="atom"&&!I.allowedInArgument)throw new Yt("Got function '"+A+"' with no arguments"+(k?" as "+k:""),E);if(this.mode==="text"&&!I.allowedInText)throw new Yt("Can't use function '"+A+"' in text mode",E);if(this.mode==="math"&&I.allowedInMath===!1)throw new Yt("Can't use function '"+A+"' in math mode",E);var{args:$,optArgs:O}=this.parseArguments(A,I);return this.callFunction(A,$,O,E,v)}callFunction(v,k,E,A,I){var $={funcName:v,parser:this,token:A,breakOnTokenText:I},O=Ou[v];if(O&&O.handler)return O.handler($,k,E);throw new Yt("No function handler for "+v)}parseArguments(v,k){var E=k.numArgs+k.numOptionalArgs;if(E===0)return{args:[],optArgs:[]};for(var A=[],I=[],$=0;$<E;$++){var O=k.argTypes&&k.argTypes[$],j=$<k.numOptionalArgs;(k.primitive&&O==null||k.type==="sqrt"&&$===1&&I[0]==null)&&(O="primitive");var D=this.parseGroupOfType("argument to '"+v+"'",O,j);if(j)I.push(D);else if(D!=null)A.push(D);else throw new Yt("Null argument, please report this as a bug")}return{args:A,optArgs:I}}parseGroupOfType(v,k,E){switch(k){case"color":return this.parseColorGroup(E);case"size":return this.parseSizeGroup(E);case"url":return this.parseUrlGroup(E);case"math":case"text":return this.parseArgumentGroup(E,k);case"hbox":{var A=this.parseArgumentGroup(E,"text");return A!=null?{type:"styling",mode:A.mode,body:[A],style:"text"}:null}case"raw":{var I=this.parseStringGroup("raw",E);return I!=null?{type:"raw",mode:"text",string:I.text}:null}case"primitive":{if(E)throw new Yt("A primitive argument cannot be optional");var $=this.parseGroup(v);if($==null)throw new Yt("Expected group as "+v,this.fetch());return $}case"original":case null:case void 0:return this.parseArgumentGroup(E);default:throw new Yt("Unknown group type as "+v,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(v,k){var E=this.gullet.scanArgument(k);if(E==null)return null;for(var A="",I;(I=this.fetch()).text!=="EOF";)A+=I.text,this.consume();return this.consume(),E.text=A,E}parseRegexGroup(v,k){for(var E=this.fetch(),A=E,I="",$;($=this.fetch()).text!=="EOF"&&v.test(I+$.text);)A=$,I+=A.text,this.consume();if(I==="")throw new Yt("Invalid "+k+": '"+E.text+"'",E);return E.range(A,I)}parseColorGroup(v){var k=this.parseStringGroup("color",v);if(k==null)return null;var E=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(k.text);if(!E)throw new Yt("Invalid color: '"+k.text+"'",k);var A=E[0];return/^[0-9a-f]{6}$/i.test(A)&&(A="#"+A),{type:"color-token",mode:this.mode,color:A}}parseSizeGroup(v){var k,E=!1;if(this.gullet.consumeSpaces(),!v&&this.gullet.future().text!=="{"?k=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):k=this.parseStringGroup("size",v),!k)return null;!v&&k.text.length===0&&(k.text="0pt",E=!0);var A=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(k.text);if(!A)throw new Yt("Invalid size: '"+k.text+"'",k);var I={number:+(A[1]+A[2]),unit:A[3]};if(!eN(I))throw new Yt("Invalid unit: '"+I.unit+"'",k);return{type:"size",mode:this.mode,value:I,isBlank:E}}parseUrlGroup(v){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var k=this.parseStringGroup("url",v);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),k==null)return null;var E=k.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:E}}parseArgumentGroup(v,k){var E=this.gullet.scanArgument(v);
vendor: 4,076 bytes, lines 261-262
261if(E==null)return null;var A=this.mode;k&&this.switchMode(k),this.gullet.beginGroup();var I=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var $={type:"ordgroup",mode:this.mode,loc:E.loc,body:I};return k&&this.switchMode(A),$}parseGroup(v,k){var E=this.fetch(),A=E.text,I;if(A==="{"||A==="\\begingroup"){this.consume();var $=A==="{"?"}":"\\endgroup";this.gullet.beginGroup();var O=this.parseExpression(!1,$),j=this.fetch();this.expect($),this.gullet.endGroup(),I={type:"ordgroup",mode:this.mode,loc:Qo.range(E,j),body:O,semisimple:A==="\\begingroup"||void 0}}else if(I=this.parseFunction(k,v)||this.parseSymbol(),I==null&&A[0]==="\\"&&!hM.hasOwnProperty(A)){if(this.settings.throwOnError)throw new Yt("Undefined control sequence: "+A,E);I=this.formatUnsupportedCmd(A),this.consume()}return I}formLigatures(v){for(var k=v.length-1,E=0;E<k;++E){var A=v[E],I=A.text;I==="-"&&v[E+1].text==="-"&&(E+1<k&&v[E+2].text==="-"?(v.splice(E,3,{type:"textord",mode:"text",loc:Qo.range(A,v[E+2]),text:"---"}),k-=2):(v.splice(E,2,{type:"textord",mode:"text",loc:Qo.range(A,v[E+1]),text:"--"}),k-=1)),(I==="'"||I==="`")&&v[E+1].text===I&&(v.splice(E,2,{type:"textord",mode:"text",loc:Qo.range(A,v[E+1]),text:I+I}),k-=1)}}parseSymbol(){var v=this.fetch(),k=v.text;if(/^\\verb[^a-zA-Z]/.test(k)){this.consume();var E=k.slice(5),A=E.charAt(0)==="*";if(A&&(E=E.slice(1)),E.length<2||E.charAt(0)!==E.slice(-1))throw new Yt(`\\verb assertion failed -- 262 please report what input caused this bug`);return E=E.slice(1,-1),{type:"verb",mode:"text",body:E,star:A}}dM.hasOwnProperty(k[0])&&!un[this.mode][k[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+k[0]+'" used in math mode',v),k=dM[k[0]]+k.slice(1));var I=v0e.exec(k);I&&(k=k.substring(0,I.index),k==="i"?k="\u0131":k==="j"&&(k="\u0237"));var $;if(un[this.mode][k]){this.settings.strict&&this.mode==="math"&&NC.indexOf(k)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+k[0]+'" used in math mode',v);var O=un[this.mode][k].group,j=Qo.range(v),D;if(dpe.hasOwnProperty(O)){var P=O;D={type:"atom",mode:this.mode,family:P,loc:j,text:k}}else D={type:O,mode:this.mode,loc:j,text:k};$=D}else if(k.charCodeAt(0)>=128)this.settings.strict&&(PD(k.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+k[0]+'" used in math mode',v):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+k[0]+'"'+(" ("+k.charCodeAt(0)+")"),v)),$={type:"textord",mode:"text",loc:Qo.range(v),text:k};else return null;if(this.consume(),I)for(var F=0;F<I[0].length;F++){var U=I[0][F];if(!n6[U])throw new Yt("Unknown accent ' "+U+"'",v);var z=n6[U][this.mode]||n6[U].text;if(!z)throw new Yt("Accent "+U+" unsupported in "+this.mode+" mode",v);$={type:"accent",mode:this.mode,loc:Qo.range(v),label:z,isStretchy:!1,isShifty:!0,base:$}}return $}},f(R,"e"),s(R,"Parser"),R),pM.endOfExpression=["}","\\endgroup","\\end","\\right","&"],a6=s(function(b,v){if(!(typeof b=="string"||b instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var k=new pM(b,v);delete k.gullet.macros.current["\\df@tag"];var E=k.parse();if(delete k.gullet.macros.current["\\current@color"],delete k.gullet.macros.current["\\color"],k.gullet.macros.get("\\df@tag")){if(!v.displayMode)throw new Yt("\\tag works only in display equations");E=[{type:"tag",mode:"text",body:E,tag:k.subparse([new Sl("\\df@tag")])}]}return E},"parseTree"),s6=s(function(b,v,k){v.textContent="";var E=dx(b,k).toNode();v.appendChild(E)},"render"),typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),s6=s(function(){throw new Yt("KaTeX doesn't work in quirks mode.")},"render")),gM=s(function(b,v){var k=dx(b,v).toMarkup();return k},"renderToString"),fM=s(function(b,v){var k=new wC(v);return a6(b,k)}
262,"generateParseTree"),mM=s(function(b,v,k){if(k.throwOnError||!(b instanceof Yt))throw b;var E=pt.makeSpan(["katex-error"],[new el(v)]);return E.setAttribute("title",b.toString()),E.setAttribute("style","color:"+k.errorColor),E},"renderError"),dx=s(function(b,v){var k=new wC(v);try{var E=a6(b,k);return Ope(E,b,k)}catch(A){return mM(A,b,k)}},"renderToDomTree"),yM=s(function(b,v){var k=new wC(v);try{var E=a6(b,k);return $pe(E,b,k)}catch(A){return mM(A,b,k)}},"renderToHTMLTree"),vM="0.16.25",bM={Span:vm,Anchor:AC,SymbolNode:el,SvgNode:dh,PathNode:Du,LineNode:LC},w0e={version:vM,render:s6,renderToString:gM,ParseError:Yt,SETTINGS_SCHEMA:fm,__parse:fM,__renderToDomTree:dx,__renderToHTMLTree:yM,__setFontMetrics:FD,__defineSymbol:re,__defineFunction:hr,__defineMacro:Ce,__domTree:bM}});function C0e(){let e="data-temp-href-target";Au.addHook("beforeSanitizeAttributes",t=>{var r;t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,(r=t.getAttribute("target"))!=null?r:"")}),Au.addHook("afterSanitizeAttributes",t=>{var r;t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",(r=t.getAttribute(e))!=null?r:""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}f(C0e,"eOe");var gg,E0e,S0e,xM,kM,Ei,_0e,A0e,L0e,R0e,TM,px,I0e,D0e,$u,o6,N0e,M0e,wM,gx,ha,wm,O0e,fx,Vt,gi=Y(()=>{"use strict";mC(),ti(),gg=/<br\s*\/?>/gi,E0e=s(e=>
vendor: 5,893 bytes, lines 262-267
262e?TM(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),S0e=(()=>{let e=!1;return()=>{e||(C0e(),e=!0)}})(),s(C0e,"setupDompurifyHooks"),xM=s(e=>(S0e(),Au.sanitize(e)),"removeScript"),kM=s((e,t)=>{if(Vi(t)){let r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=xM(e):r!=="loose"&&(e=TM(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=R0e(e))}return e},"sanitizeMore"),Ei=s((e,t)=>e&&(t.dompurifyConfig?e=Au.sanitize(kM(e,t),t.dompurifyConfig).toString():e=Au.sanitize(kM(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),_0e=s((e,t)=>typeof e=="string"?Ei(e,t):e.flat().map(r=>Ei(r,t)),"sanitizeTextOrArray"),A0e=s(e=>gg.test(e),"hasBreaks"),L0e=s(e=>e.split(gg),"splitBreaks"),R0e=s(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),TM=s(e=>e.replace(gg,"#br#"),"breakToPlaceholder"),px=s(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),I0e=s(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),D0e=s(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),$u=s(function(e){let t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){let a=t[i-1],o=t[i+1];N0e(a,o)&&(n=a+","+o,i++,r.pop())}r.push(M0e(n))}return r.join("")},"parseGenericTypes"),o6=s((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),N0e=s((e,t)=>{let r=o6(e,"~"),i=o6(t,"~");return r===1&&i===1},"shouldCombineSets"),M0e=s(e=>{let t=o6(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let i=[...e],n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),wM=s(()=>window.MathMLElement!==void 0,"isMathMLSupported"),gx=/\$\$(.*)\$\$/g,ha=s(e=>{var t,r;return((r=(t=e.match(gx))==null?void 0:t.length)!=null?r:0)>0},"hasKatex"),wm=s(async(e,t)=>{var n;let r=document.createElement("div");r.innerHTML=await fx(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",(n=document.querySelector("body"))==null||n.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),O0e=s(async(e,t)=>{if(!ha(e))return e;if(!(wM()||t.legacyMathML||t.forceLegacyMathML))return e.replace(gx,"MathML is unsupported in this environment.");{let{default:r}=await Promise.resolve().then(()=>(syt(),Lde)),i=t.forceLegacyMathML||!wM()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(gg).map(n=>ha(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(gx,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return e.replace(gx,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),fx=s(async(e,t)=>Ei(await O0e(e,t),t),"renderKatexSanitized"),Vt={getRows:E0e,sanitizeText:Ei,sanitizeTextOrArray:_0e,hasBreaks:A0e,splitBreaks:L0e,lineBreakRegex:gg,removeScript:xM,getUrl:px,evaluate:hh,getMax:I0e,getMin:D0e}}),CM,l6,EM,SM,_M,$0e,Bu,Pu=Y(()=>{"use strict";Lmt(),ti(),gi(),jt(),CM={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},l6=new Map,EM=new Map,SM=s(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ge.debug("Registering icon pack:",t.name),"loader"in t)EM.set(t.name,t.loader);else if("icons"in t)l6.set(t.name,t.icons);else throw ge.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),_M=s(async(e,t)=>{let r=zhe(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=l6.get(i);if(!n){let o=EM.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n=_r(Tt({},await o()),{prefix:i}),l6.set(i,n)}catch(l){throw ge.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let a=Ghe(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),$0e=s(async e=>{try{return await _M(e),!0}catch(t){return!1}},"isIconAvailable"),Bu=s(async(e,t,r)=>{let i;try{i=await _M(e,t==null?void 0:t.fallbackPrefix)}catch(o){ge.error(o),i=CM}let n=Xhe(i,t),a=tue(Zhe(n.body),Tt(Tt({},n.attributes),r));return Ei(a,Ir())},"getIconSVG")});function AM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(l,h){var u=h.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,g;return(g=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&g!==void 0?g:0})):l},[]);if(n.length){var a=new RegExp(` 263[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(l){return l.replace(a,` 264`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(l,h){var u=o.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(` 265`)&&(p=String(l).split(` 266`).map(function(g,m){return m===0?g:""+d+g}).join(` 267`)),o+=p+i[h+1]}),o}f(AM,"fk");var B0e=Y(()=>{"use strict";s(AM,"dedent")}),LM,Cm,P0e,RM=Y(()=>{"use strict";LM=new RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),Cm=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P0e=/\s*%%.*\n/gm}),IM,F0e=Y(()=>{"use strict";var e;
267IM=(e=class extends Error{constructor(r){super(r),this.name="UnknownDiagramError"}},f(e,"$m"),s(e,"UnknownDiagramError"),e)}),tp,c6,h6,DM,z0e,Em=Y(()=>{"use strict";jt(),RM(),F0e(),tp={},c6=s(function(e,t){e=e.replace(LM,"").replace(Cm,"").replace(P0e,` 268`);for(let[r,{detector:i}]of Object.entries(tp))if(i(e,t))return r;throw new IM(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),h6=s((...e)=>{for(let{id:t,detector:r,loader:i}of e)DM(t,r,i)},"registerLazyLoadedDiagrams"),DM=s((e,t,r)=>{tp[e]&&ge.warn(`Detector with key ${e} already exists. Overwriting.`),tp[e]={detector:t,loader:r},ge.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),z0e=s(e=>tp[e].loader,"getDiagramLoader")}),mx,q0e,j0e=Y(()=>{"use strict";mx=(function(){var e=s(function(ht,Xe,dt,at){for(dt=dt||{},at=ht.length;at--;dt[ht[at]]=Xe);return dt},"o"),t=[1,24],r=[1,25],i=[1,26],n=[1,27],a=[1,28],o=[1,63],l=[1,64],h=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],y=[1,30],x=[1,31],C=[1,32],w=[1,33],_=[1,34],S=[1,35],R=[1,36],b=[1,37],v=[1,38],k=[1,39],E=[1,40],A=[1,41],I=[1,42],$=[1,43],O=[1,44],j=[1,45],D=[1,46],P=[1,47],F=[1,48],U=[1,50],z=[1,51],V=[1,52],W=[1,53],X=[1,54],J=[1,55],H=[1,56],te=[1,57],ie=[1,58],oe=[1,59],he=[1,60],pe=[14,42],se=[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],le=[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],ue=[1,82],de=[1,83],we=[1,84],De=[1,85],Ge=[12,14,42],be=[12,14,33,42],qe=[12,14,33,42,76,77,79,80],Ie=[12,33],Be=[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],ke={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,boun
vendor: 10,556 bytes, line 268
268daryStatement: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(ht,Xe,dt,at,kt,Le,lt){var ve=Le.length-1;switch(kt){case 3:at.setDirection("TB");break;case 4:at.setDirection("BT");break;case 5:at.setDirection("RL");break;case 6:at.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:at.setC4Type(Le[ve-3]);break;case 19:at.setTitle(Le[ve].substring(6)),this.$=Le[ve].substring(6);break;case 20:at.setAccDescription(Le[ve].substring(15)),this.$=Le[ve].substring(15);break;case 21:this.$=Le[ve].trim(),at.setTitle(this.$);break;case 22:case 23:this.$=Le[ve].trim(),at.setAccDescription(this.$);break;case 28:Le[ve].splice(2,0,"ENTERPRISE"),at.addPersonOrSystemBoundary(...Le[ve]),this.$=Le[ve];break;case 29:Le[ve].splice(2,0,"SYSTEM"),at.addPersonOrSystemBoundary(...Le[ve]),this.$=Le[ve];break;case 30:at.addPersonOrSystemBoundary(...Le[ve]),this.$=Le[ve];break;case 31:Le[ve].splice(2,0,"CONTAINER"),at.addContainerBoundary(...Le[ve]),this.$=Le[ve];break;case 32:at.addDeploymentNode("node",...Le[ve]),this.$=Le[ve];break;case 33:at.addDeploymentNode("nodeL",...Le[ve]),this.$=Le[ve];break;case 34:at.addDeploymentNode("nodeR",...Le[ve]),this.$=Le[ve];break;case 35:at.popBoundaryParseStack();break;case 39:at.addPersonOrSystem("person",...Le[ve]),this.$=Le[ve];break;case 40:at.addPersonOrSystem("external_person",...Le[ve]),this.$=Le[ve];break;case 41:at.addPersonOrSystem("system",...Le[ve]),this.$=Le[ve];break;case 42:at.addPersonOrSystem("system_db",...Le[ve]),this.$=Le[ve];break;case 43:at.addPersonOrSystem("system_queue",...Le[ve]),this.$=Le[ve];break;case 44:at.addPersonOrSystem("external_system",...Le[ve]),this.$=Le[ve];break;case 45:at.addPersonOrSystem("external_system_db",...Le[ve]),this.$=Le[ve];break;case 46:at.addPersonOrSystem("external_system_queue",...Le[ve]),this.$=Le[ve];break;case 47:at.addContainer("container",...Le[ve]),this.$=Le[ve];break;case 48:at.addContainer("container_db",...Le[ve]),this.$=Le[ve];break;case 49:at.addContainer("container_queue",...Le[ve]),this.$=Le[ve];break;case 50:at.addContainer("external_container",...Le[ve]),this.$=Le[ve];break;case 51:at.addContainer("external_container_db",...Le[ve]),this.$=Le[ve];break;case 52:at.addContainer("external_container_queue",...Le[ve]),this.$=Le[ve];break;case 53:at.addComponent("component",...Le[ve]),this.$=Le[ve];break;case 54:at.addComponent("component_db",...Le[ve]),this.$=Le[ve];break;case 55:at.addComponent("component_queue",...Le[ve]),this.$=Le[ve];break;case 56:at.addComponent("external_component",...Le[ve]),this.$=Le[ve];break;case 57:at.addComponent("external_component_db",...Le[ve]),this.$=Le[ve];break;case 58:at.addComponent("external_component_queue",...Le[ve]),this.$=Le[ve];break;case 60:at.addRel("rel",...Le[ve]),this.$=Le[ve];break;case 61:at.addRel("birel",...Le[ve]),this.$=Le[ve];break;case 62:at.addRel("rel_u",...Le[ve]),this.$=Le[ve];break;case 63:at.addRel("rel_d",...Le[ve]),this.$=Le[ve];break;case 64:at.addRel("rel_l",...Le[ve]),this.$=Le[ve];break;case 65:at.addRel("rel_r",...Le[ve]),this.$=Le[ve];break;case 66:at.addRel("rel_b",...Le[ve]),this.$=Le[ve];break;case 67:Le[ve].splice(0,1),at.addRel("rel",...Le[ve]),this.$=Le[ve];break;case 68:at.updateElStyle("update_el_style",...Le[ve]),this.$=Le[ve];break;case 69:at.updateRelStyle("update_rel_style",...Le[ve]),this.$=Le[ve];break;case 70:at.updateLayoutConfig("update_layout_config",...Le[ve]),this.$=Le[ve];break;case 71:this.$=[Le[ve]];break;case 72:Le[ve].unshift(Le[ve-1]),this.$=Le[ve];break;case 73:case 75:this.$=Le[ve].trim();break;case 74:let tt={};tt[Le[ve-1].trim()]=Le[ve].trim(),this.$=tt;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:t,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{13:70,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{13:71,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{13:72,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{13:73,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{14:[1,74]},e(pe,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:h,38:u,39:d,40:p,41:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he}),e(pe,[2,14]),e(se,[2,16],{12:[1,76]}),e(pe,[2,36],{12:[1,77]}),e(le,[2,19]),e(le,[2,20]),{25:[1,78]},{27:[1,79]},e(le,[2,23]),{35:80,75:81,76:ue,77:de,79:we,80:De},{35:86,75:81,76:ue,77:de,79:we,80:De},{35:87,75:81,76:ue,77:de,79:we,80:De},{35:88,75:81,76:ue,77:de,79:we,80:De},{35:89,75:81,76:ue,77:de,79:we,80:De},{35:90,75:81,76:ue,77:de,79:we,80:De},{35:91,75:81,76:ue,77:de,79:we,80:De},{35:92,75:81,76:ue,77:de,79:we,80:De},{35:93,75:81,76:ue,77:de,79:we,80:De},{35:94,75:81,76:ue,77:de,79:we,80:De},{35:95,75:81,76:ue,77:de,79:we,80:De},{35:96,75:81,76:ue,77:de,79:we,80:De},{35:97,75:81,76:ue,77:de,79:we,80:De},{35:98,75:81,76:ue,77:de,79:we,80:De},{35:99,75:81,76:ue,77:de,79:we,80:De},{35:100,75:81,76:ue,77:de,79:we,80:De},{35:101,75:81,76:ue,77:de,79:we,80:De},{35:102,75:81,76:ue,77:de,79:we,80:De},{35:103,75:81,76:ue,77:de,79:we,80:De},{35:104,75:81,76:ue,77:de,79:we,80:De},e(Ge,[2,59]),{35:105,75:81,76:ue,77:de,79:we,80:De},{35:106,75:81,76:ue,77:de,79:we,80:De},{35:107,75:81,76:ue,77:de,79:we,80:De},{35:108,75:81,76:ue,77:de,79:we,80:De},{35:109,75:81,76:ue,77:de,79:we,80:De},{35:110,75:81,76:ue,77:de,79:we,80:De},{35:111,75:81,76:ue,77:de,79:we,80:De},{35:112,75:81,76:ue,77:de,79:we,80:De},{35:113,75:81,76:ue,77:de,79:we,80:De},{35:114,75:81,76:ue,77:de,79:we,80:De},{35:115,75:81,76:ue,77:de,79:we,80:De},{20:116,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:g,43:23,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he},{12:[1,118],33:[1,117]},{35:119,75:81,76:ue,77:de,79:we,80:De},{35:120,75:81,76:ue,77:de,79:we,80:De},{35:121,75:81,76:ue,77:de,79:we,80:De},{35:122,75:81,76:ue,77:de,79:we,80:De},{35:123,75:81,76:ue,77:de,79:we,80:De},{35:124,75:81,76:ue,77:de,79:we,80:De},{35:125,75:81,76:ue,77:de,79:we,80:De},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(pe,[2,15]),e(se,[2,17],{21:22,19:130,22:t,23:r,24:i,26:n,28:a}),e(pe,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:i,26:n,28:a,34:o,36:l,37:h,38:u,39:d,40:p,41:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S,51:R,52:b,53:v,54:k,55:E,56:A,57:I,58:$,59:O,60:j,61:D,62:P,63:F,64:U,65:z,66:V,67:W,68:X,69:J,70:H,71:te,72:ie,73:oe,74:he}),e(le,[2,21]),e(le,[2,22]),e(Ge,[2,39]),e(be,[2,71],{75:81,35:132,76:ue,77:de,79:we,80:De}),e(qe,[2,73]),{78:[1,133]},e(qe,[2,75]),e(qe,[2,76]),e(Ge,[2,40]),e(Ge,[2,41]),e(Ge,[2,42]),e(Ge,[2,43]),e(Ge,[2,44]),e(Ge,[2,45]),e(Ge,[2,46]),e(Ge,[2,47]),e(Ge,[2,48]),e(Ge,[2,49]),e(Ge,[2,50]),e(Ge,[2,51]),e(Ge,[2,52]),e(Ge,[2,53]),e(Ge,[2,54]),e(Ge,[2,55]),e(Ge,[2,56]),e(Ge,[2,57]),e(Ge,[2,58]),e(Ge,[2,60]),e(Ge,[2,61
vendor: 7,195 bytes, lines 268-272
268]),e(Ge,[2,62]),e(Ge,[2,63]),e(Ge,[2,64]),e(Ge,[2,65]),e(Ge,[2,66]),e(Ge,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),e(Ge,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Ie,[2,28]),e(Ie,[2,29]),e(Ie,[2,30]),e(Ie,[2,31]),e(Ie,[2,32]),e(Ie,[2,33]),e(Ie,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(se,[2,18]),e(pe,[2,38]),e(be,[2,72]),e(qe,[2,74]),e(Ge,[2,24]),e(Ge,[2,35]),e(Be,[2,25]),e(Be,[2,26],{12:[1,138]}),e(Be,[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(ht,Xe){if(Xe.recoverable)this.trace(ht);else{var dt=new Error(ht);throw dt.hash=Xe,dt}},"parseError"),parse:s(function(ht){var Xe=this,dt=[0],at=[],kt=[null],Le=[],lt=this.table,ve="",tt=0,Q=0,xe=0,ae=2,_e=1,Se=Le.slice.call(arguments,1),Je=Object.create(this.lexer),Re={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(Re.yy[et]=this.yy[et]);Je.setInput(ht,Re.yy),Re.yy.lexer=Je,Re.yy.parser=this,typeof Je.yylloc>"u"&&(Je.yylloc={});var ze=Je.yylloc;Le.push(ze);var Ke=Je.options&&Je.options.ranges;typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(At){dt.length=dt.length-2*At,kt.length=kt.length-At,Le.length=Le.length-At}f(We,"Pe"),s(We,"popStack");function nt(){var At;return At=at.pop()||Je.lex()||_e,typeof At!="number"&&(At instanceof Array&&(at=At,At=at.pop()),At=Xe.symbols_[At]||At),At}f(nt,"Ye"),s(nt,"lex");for(var Te,bt,Ae,ft,Nt,Wt,Ht={},Ft,Qt,Dt,Mt;;){if(Ae=dt[dt.length-1],this.defaultActions[Ae]?ft=this.defaultActions[Ae]:((Te===null||typeof Te>"u")&&(Te=nt()),ft=lt[Ae]&<[Ae][Te]),typeof ft>"u"||!ft.length||!ft[0]){var $t="";Mt=[];for(Ft in lt[Ae])this.terminals_[Ft]&&Ft>ae&&Mt.push("'"+this.terminals_[Ft]+"'");Je.showPosition?$t="Parse error on line "+(tt+1)+`: 269`+Je.showPosition()+` 270Expecting `+Mt.join(", ")+", got '"+(this.terminals_[Te]||Te)+"'":$t="Parse error on line "+(tt+1)+": Unexpected "+(Te==_e?"end of input":"'"+(this.terminals_[Te]||Te)+"'"),this.parseError($t,{text:Je.match,token:this.terminals_[Te]||Te,line:Je.yylineno,loc:ze,expected:Mt})}if(ft[0]instanceof Array&&ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+Te);switch(ft[0]){case 1:dt.push(Te),kt.push(Je.yytext),Le.push(Je.yylloc),dt.push(ft[1]),Te=null,bt?(Te=bt,bt=null):(Q=Je.yyleng,ve=Je.yytext,tt=Je.yylineno,ze=Je.yylloc,xe>0&&xe--);break;case 2:if(Qt=this.productions_[ft[1]][1],Ht.$=kt[kt.length-Qt],Ht._$={first_line:Le[Le.length-(Qt||1)].first_line,last_line:Le[Le.length-1].last_line,first_column:Le[Le.length-(Qt||1)].first_column,last_column:Le[Le.length-1].last_column},Ke&&(Ht._$.range=[Le[Le.length-(Qt||1)].range[0],Le[Le.length-1].range[1]]),Wt=this.performAction.apply(Ht,[ve,Q,tt,Re.yy,ft[1],kt,Le].concat(Se)),typeof Wt<"u")return Wt;Qt&&(dt=dt.slice(0,-1*Qt*2),kt=kt.slice(0,-1*Qt),Le=Le.slice(0,-1*Qt)),dt.push(this.productions_[ft[1]][0]),kt.push(Ht.$),Le.push(Ht._$),Dt=lt[dt[dt.length-2]][dt[dt.length-1]],dt.push(Dt);break;case 3:return!0}}return!0},"parse")},Qe=(function(){var ht={EOF:1,parseError:s(function(Xe,dt){if(this.yy.parser)this.yy.parser.parseError(Xe,dt);else throw new Error(Xe)},"parseError"),setInput:s(function(Xe,dt){return this.yy=dt||this.yy||{},this._input=Xe,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 Xe=this._input[0];this.yytext+=Xe,this.yyleng++,this.offset++,this.match+=Xe,this.matched+=Xe;var dt=Xe.match(/(?:\r\n?|\n).*/g);return dt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Xe},"input"),unput:s(function(Xe){var dt=Xe.length,at=Xe.split(/(?:\r\n?|\n)/g);this._input=Xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-dt),this.offset-=dt;var kt=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),at.length-1&&(this.yylineno-=at.length-1);var Le=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:at?(at.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-at.length].length-at[0].length:this.yylloc.first_column-dt},this.options.ranges&&(this.yylloc.range=[Le[0],Le[0]+this.yyleng-dt]),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). 271`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(Xe){this.unput(this.match.slice(Xe))},"less"),pastInput:s(function(){var Xe=this.matched.substr(0,this.matched.length-this.match.length);return(Xe.length>20?"...":"")+Xe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var Xe=this.match;return Xe.length<20&&(Xe+=this._input.substr(0,20-Xe.length)),(Xe.substr(0,20)+(Xe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var Xe=this.pastInput(),dt=new Array(Xe.length+1).join("-");return Xe+this.upcomingInput()+` 272`+dt+"^"},"showPosition"),test_match:s(function(Xe,dt){var at,kt,Le;if(this.options.backtrack_lexer&&(Le={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&&(Le.yylloc.range=this.yylloc.range.slice(0))),kt=Xe[0].match(/(?:\r\n?|\n).*/g),kt&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Xe[0].length},this.yytext+=Xe[0],this.match+=Xe[0],this.matches=Xe,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(Xe[0].length),this.matched+=Xe[0],at=this.performAction.call(this,this.yy,this,dt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),at)return at;if(this._backtrack){for(var lt in Le)this[lt]=Le[lt];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Xe,dt,at,kt;this._more||(this.yytext="",this.match="");for(var Le=this._currentRules(),lt=0;lt<Le.length;
vendor: 4,287 bytes, lines 272-273
272lt++)if(at=this._input.match(this.rules[Le[lt]]),at&&(!dt||at[0].length>dt[0].length)){if(dt=at,kt=lt,this.options.backtrack_lexer){if(Xe=this.test_match(at,Le[lt]),Xe!==!1)return Xe;if(this._backtrack){dt=!1;continue}else return!1}else if(!this.options.flex)break}return dt?(Xe=this.test_match(dt,Le[kt]),Xe!==!1?Xe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 273`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var Xe=this.next();return Xe||this.lex()},"lex"),begin:s(function(Xe){this.conditionStack.push(Xe)},"begin"),popState:s(function(){var Xe=this.conditionStack.length-1;return Xe>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(Xe){return Xe=this.conditionStack.length-1-Math.abs(Xe||0),Xe>=0?this.conditionStack[Xe]:"INITIAL"},"topState"),pushState:s(function(Xe){this.begin(Xe)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:s(function(Xe,dt,at,kt){var Le=kt;switch(at){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;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";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;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";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";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";
vendor: 23,728 bytes, lines 273-393
273case 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:[65,66,67,68],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 ht})();ke.lexer=Qe;function Pe(){this.yy={}}return f(Pe,"rt"),s(Pe,"Parser"),Pe.prototype=ke,ke.Parser=Pe,new Pe})(),mx.parser=mx,q0e=mx}),G0e,U0e,Ta,fg,Bn=Y(()=>{"use strict";jt(),G0e=s(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),U0e=s(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Ta=s(function(e,t,r,i){let n=U0e(t,r,i);G0e(e,n)},"configureSvgSize"),fg=s(function(e,t,r,i){let n=t.node().getBBox(),a=n.width,o=n.height;ge.info(`SVG bounds: ${a}x${o}`,n);let l=0,h=0;ge.info(`Graph bounds: ${l}x${h}`,e),l=a+r*2,h=o+r*2,ge.info(`Calculated bounds: ${l}x${h}`),Ta(t,h,l,i);let u=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",u)},"setupGraphViewbox")});function NM(e){return[...e.cssRules].map(t=>t.cssText).join(` 274`)}f(NM,"ID");var yx,V0e,W0e,H0e,Y0e=Y(()=>{"use strict";jt(),yx={},s(NM,"cssStyleSheetToString"),V0e=s((e,t,r,i)=>{var a,o;let n="";return e in yx&&yx[e]?n=yx[e](_r(Tt({},r),{svgId:i})):ge.warn(`No theme found for ${e}`),` & { 275 font-family: ${r.fontFamily}; 276 font-size: ${r.fontSize}; 277 fill: ${r.textColor} 278 } 279 @keyframes edge-animation-frame { 280 from { 281 stroke-dashoffset: 0; 282 } 283 } 284 @keyframes dash { 285 to { 286 stroke-dashoffset: 0; 287 } 288 } 289 & .edge-animation-slow { 290 stroke-dasharray: 9,5 !important; 291 stroke-dashoffset: 900; 292 animation: dash 50s linear infinite; 293 stroke-linecap: round; 294 } 295 & .edge-animation-fast { 296 stroke-dasharray: 9,5 !important; 297 stroke-dashoffset: 900; 298 animation: dash 20s linear infinite; 299 stroke-linecap: round; 300 } 301 /* Classes common for multiple diagrams */ 302 303 & .error-icon { 304 fill: ${r.errorBkgColor}; 305 } 306 & .error-text { 307 fill: ${r.errorTextColor}; 308 stroke: ${r.errorTextColor}; 309 } 310 311 & .edge-thickness-normal { 312 stroke-width: ${(a=r.strokeWidth)!=null?a:1}px; 313 } 314 & .edge-thickness-thick { 315 stroke-width: 3.5px 316 } 317 & .edge-pattern-solid { 318 stroke-dasharray: 0; 319 } 320 & .edge-thickness-invisible { 321 stroke-width: 0; 322 fill: none; 323 } 324 & .edge-pattern-dashed{ 325 stroke-dasharray: 3; 326 } 327 .edge-pattern-dotted { 328 stroke-dasharray: 2; 329 } 330 331 & .marker { 332 fill: ${r.lineColor}; 333 stroke: ${r.lineColor}; 334 } 335 & .marker.cross { 336 stroke: ${r.lineColor}; 337 } 338 339 & svg { 340 font-family: ${r.fontFamily}; 341 font-size: ${r.fontSize}; 342 } 343 & p { 344 margin: 0 345 } 346 347 ${n} 348 .node .neo-node { 349 stroke: ${r.nodeBorder}; 350 } 351 352 [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { 353 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 354 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 355 } 356 357 358 [data-look="neo"].node path { 359 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 360 stroke-width: ${(o=r.strokeWidth)!=null?o:1}px; 361 } 362 363 [data-look="neo"].node .outer-path { 364 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 365 } 366 367 [data-look="neo"].node .neo-line path { 368 stroke: ${r.nodeBorder}; 369 filter: none; 370 } 371 372 [data-look="neo"].node circle{ 373 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 374 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 375 } 376 377 [data-look="neo"].node circle .state-start{ 378 fill: #000000; 379 } 380 381 [data-look="neo"].icon-shape .icon { 382 fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 383 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 384 } 385 386 [data-look="neo"].icon-shape .icon-neo path { 387 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 388 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 389 } 390 391 ${t} 392`},"getStyles"),W0e=s((e,t)=>{t!==void 0&&(yx[e]=t)},"addStylesForDiagram"),H0e=V0e}),MM={};Jr(MM,{clear:f(()=>Tn,"clear"),getAccDescription:f(()=>zn,"getAccDescription"),getAccTitle:f(()=>Pn,"getAccTitle"),getDiagramTitle:f(()=>Cn,"getDiagramTitle"),setAccDescription:f(()=>Fn,"setAccDescription"),setAccTitle:f(()=>wn,"setAccTitle"),setDiagramTitle:f(()=>qn,"setDiagramTitle")});var u6,d6,p6,g6,Tn,wn,Pn,Fn,zn,qn,Cn,En=Y(()=>{"use strict";gi(),ti(),u6="",d6="",p6="",g6=s(e=>Ei(e,Ir()),"sanitizeText"),Tn=s(()=>{u6="",p6="",d6=""},"clear"),wn=s(e=>{u6=g6(e).replace(/^\s+/g,"")},"setAccTitle"),Pn=s(()=>u6,"getAccTitle"),Fn=s(e=>{p6=g6(e).replace(/\n\s+/g,` 393`)},"setAccDescription"),zn=s(()=>p6,"getAccDescription"),qn=s(e=>{d6=g6(e)},"setDiagramTitle"),Cn=s(()=>d6,"getDiagramTitle")}),OM,X0e,Ue,f6,$M,m6,y6,K0e,vx,bx,v6,Z0e,vr=Y(()=>{"use strict";var e;Em(),jt(),ti(),gi(),Bn(),Y0e(),En(),OM=ge,X0e=rC,Ue=Ir,f6=kD,$M=og,m6=s(t=>Ei(t,Ue()),"sanitizeText"),y6=fg,K0e=s(()=>MM,"getCommonDb"),vx={},bx=s((t,r,i)=>{var n;vx[t]&&OM.warn(`Diagram with id ${t} already registered. Overwriting.`),vx[t]=r,i&&DM(t,i),W0e(t,r.styles),(n=r.injectUtils)==null||n.call(r,OM,X0e,Ue,m6,y6,K0e(),()=>{})},"registerDiagram"),v6=s(t=>{if(t in vx)return vx[t];throw new Z0e(t)},"getDiagram"),Z0e=(e=class extends Error{constructor(r){super(`Diagram ${r} not found.`)}},f(e,"zD"),s(e,"DiagramNotFoundError"),e)}),Al,Fu,Fs,Ll,fc,Sm,b6,x6,xx,kx,Q0e,J0e,ege,tge,rge,ige,nge,age,sge,oge,lge,cge,hge,uge,dge,pge,gge,fge,BM,mge,yge,PM,vge,bge,xge,kge,zu,Tge,wge,Cge,Ege,Sge,k6,_ge=Y(()=>{"use strict";vr(),gi(),En(),Al=[],Fu=[""],Fs="global",Ll="",fc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Sm=[],b6="",x6=!1,xx=4,kx=2,J0e=s(function(){return Q0e},"getC4Type"),ege=s(function(e){Q0e=Ei(e,Ue())},"setC4Type"),tge=s(function(e,t,r,i,n,a,o,l,h){if(e==null||t===void 0||t===null||r===void 0||r===null||i===void 0||i===null)return;let u={},d=Sm.find(p=>p.from===t&&p.to===r);if(d?u=d:Sm.push(u),u.type=e,u.from=t,u.to=r,u.label={text:i},n==null)u.techn={text:""};else if(typeof n=="object"){let[p,g]=Object.entries(n)[0];u[p]={text:g}}else u.techn={text:n};if(a==null)u.descr={text:""};else if(typeof a=="object"){let[p,g]=Object.entries(a)[0];u[p]={text:g}}else u.descr={text:a};if(typeof o=="object"){let[p,g]=Object.entries(o)[0];u[p]=g}else u.sprite=o;if(typeof l=="object"){let[p,g]=Object.entries(l)[0];u[p]=g}else u.tags=l;if(typeof h=="object"){let[p,g]=Object.entries(h)[0];u[p]=g}else u.link=h;u.wrap=zu()},"addRel"),rge=s(function(e,t,r,i,n,a,o){if(t===null||r===null)return;let l={},h=Al.find(u=>u.alias===t);if(h&&t===h.alias?l=h:(l.alias=t,Al.push(l)),r==null?l.label={text:""}:l.label={text:r},i==null)l.descr={text:""};else if(typeof i=="object"){let[u,d]=Object.entries(i)[0];l[u]={text:d}}else l.descr={text:i};if(typeof n=="object"){let[u,d]=Object.entries(n)[0];l[u]=d}else l.sprite=n;if(typeof a=="object"){let[u,d]=Object.entries(a)[0];l[u]=d}else l.tags=a;if(typeof o=="object"){let[u,d]=Object.entries(o)[0];l[u]=d}else l.link=o;l.typeC4Shape={text:e},l.parentBoundary=Fs,l.wrap=zu()},"addPersonOrSystem"),ige=s(function(e,t,r,i,n,a,o,l){if(t===null||r===null)return;let h={},u=Al.find(d=>d.alias===t);if(u&&t===u.alias?h=u:(h.alias=t,Al.push(h)),r==null?h.label={text:""}:h.label={text:r},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(n==null)h.descr={text:""};else if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]={text:p}}else h.descr={text:n};if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]=p}else h.sprite=a;if(typeof o=="object"){let[d,p]=Object.entries(o)[0];h[d]=p}else h.tags=o;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.link=l;h.wrap=zu(),h.typeC4Shape={text:e},h.parentBoundary=Fs},"addContainer"),nge=s(function(e,t,r,i,n,a,o,l){if(t===null||r===null)return;let h={},u=Al.find(d=>d.alias===t);if(u&&t===u.alias?h=u:(h.alias=t,Al.push(h)),r==null?h.label={text:""}:h.label={text:r},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(n==null)h.descr={text:""};else if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]={text:p}}else h.descr={text:n};if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]=p}else h.sprite=a;if(typeof o=="object"){let[d,p]=Object.entries(o)[0];h[d]=p}else h.tags=o;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.link=l;h.wrap=zu(),h.typeC4Shape={text:e},h.parentBoundary=Fs},"addComponent"),age=s(function(e,t,r,i,n){if(e===null||t===null)return;let a={},o=fc.find(l=>l.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,fc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,h]=Object.entries(r)[0];a[l]={text:h}}else a.type={text:r};if(typeof i=="object"){let[l,h]=Object.entries(i)[0];a[l]=h}else a.tags=i;if(typeof n=="object"){let[l,h]=Object.entries(n)[0];a[l]=h}else a.link=n;a.parentBoundary=Fs,a.wrap=zu(),Ll=Fs,Fs=e,Fu.push(Ll)},"addPersonOrSystemBoundary"),sge=s(function(e,t,r,i,n){if(e===null||t===null)return;let a={},o=fc.find(l=>l.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,fc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,h]=Object.entries(r)[0];a[l]={text:h}}else a.type={text:r};if(typeof i=="object"){let[l,h]=Object.entries(i)[0];a[l]=h}else a.tags=i;if(typeof n=="object"){let[l,h]=Object.entries(n)[0];a[l]=h}else a.link=n;a.parentBoundary=Fs,a.wrap=zu(),Ll=Fs,Fs=e,Fu.push(Ll)},"addContainerBoundary"),oge=s(function(e,t,r,i,n,a,o,l){if(t===null||r===null)return;let h={},u=fc.find(d=>d.alias===t);if(u&&t===u.alias?h=u:(h.alias=t,fc.push(h)),r==null?h.label={text:""}:h.label={text:r},i==null)h.type={text:"node"};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.type={text:i};if(n==null)h.descr={text:""};else if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]={text:p}}else h.descr={text:n};if(typeof o=="object"){let[d,p]=Object.entries(o)[0];h[d]=p}else h.tags=o;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.link=l;h.nodeType=e,h.parentBoundary=Fs,h.wrap=zu(),Ll=Fs,Fs=t,Fu.push(Ll)},"addDeploymentNode"),lge=s(function(){Fs=Ll,Fu.pop(),Ll=Fu.pop(),Fu.push(Ll)},"popBoundaryParseStack"),cge=s(function(e,t,r,i,n,a,o,l,h,u,d){let p=Al.find(g=>g.alias===t);if(!(p===void 0&&(p=fc.find(g=>g.alias===t),p===void 0))){if(r!=null)if(typeof r=="object"){let[g,m]=Object.entries(r)[0];p[g]=m}else p.bgColor=r;if(i!=null)if(typeof i=="object"){let[g,m]=Object.entries(i)[0];p[g]=m}else p.fontColor=i;if(n!=null)if(typeof n=="object"){let[g,m]=Object.entries(n)[0];p[g]=m}else p.borderColor=n;if(a!=null)if(typeof a=="object"){let[g,m]=Object.entries(a)[0];p[g]=m}else p.shadowing=a;if(o!=null)if(typeof o=="object"){let[g,m]=Object.entries(o)[0];p[g]=m}else p.shape=o;if(l!=null)if(typeof l=="object"){let[g,m]=Object.entries(l)[0];p[g]=m}else p.sprite=l;if(h!=null)if(typeof h=="object"){let[g,m]=Object.entries(h)[0];p[g]=m}else p.techn=h;if(u!=null)if(typeof u=="object"){let[g,m]=Object.entries(u)[0];p[g]=m}else p.legendText=u;if(d!=null)if(typeof d=="object"){let[g,m]=Object.entries(d)[0];p[g]=m}else p.legendSprite=d}},"updateElStyle"),hge=s(function(e,t,r,i,n,a,o){let l=Sm.find(h=>h.from===t&&h.to===r);if(l!==void 0){if(i!=null)if(typeof i=="object"){let[h,u]=Object.entries(i)[0];l[h]=u}else l.textColor=i;if(n!=null)if(typeof n=="object"){let[h,u]=Object.entries(n)[0];l[h]=u}else l.lineColor=n;if(a!=null)if(typeof a=="object"){let[h,u]=Object.entries(a)[0];l[h]=parseInt(u)}else l.offsetX=parseInt(a);if(o!=null)if(typeof o=="object"){let[h,u]=Object.entries(o)[0];l[h]=parseInt(u)}else l.offsetY=parseInt(o)}},"updateRelStyle"),uge=s(function(e,t,r){let i=xx,n=kx;if(typeof t=="object"){let a=Object.values(t)[0];i=parseInt(a)}else i=parseInt(t);if(typeof r=="object"){let a=Object.values(r)[0];n=parseInt(a)}else n=parseInt(r);i>=1&&(xx=i),n>=1&&(kx=n)},"updateLayoutConfig"),dge=s(function(){return xx},"getC4ShapeInRow"),pge=s(function(){return kx},"getC4BoundaryInRow"),gge=s(function(){return Fs},"getCurrentBoundaryParse"),fge=s(function(){return Ll},"getParentBoundaryParse"),BM=s(function(e){return e==null?Al:Al.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),mge=s(function(e){return Al.find(t=>t.alias===e)},"getC4Shape"),yge=s(function(e){return Object.keys(BM(e))},"getC4ShapeKeys"),PM=s(function(e){return e==null?fc:fc.filter(t=>t.parentBoundary===e)},"getBoundaries"),vge=PM,bge=s(function(){return Sm},"getRels"),xge=s(function(){return b6},"getTitle"),kge=s(function(e){x6=e},"setWrap"),zu=s(function(){return x6},"autoWrap"),Tge=s(function(){Al=[],fc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ll="",Fs="global",Fu=[""],Sm=[],Fu=[""],b6="",x6=!1,xx=4,kx=2},"clear"),wge={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},Cge={FILLED:0,OPEN:1},Ege={LEFTOF:0,RIGHTOF:1,OVER:2},Sge=s(function(e){b6=Ei(e,Ue())},"setTitle"),k6={addPersonOrSystem:rge,addPersonOrSystemBoundary:age,addContainer:ige,addContainerBoundary:sge,addComponent:nge,addDeploymentNode:oge,popBoundaryParseStack:lge,addRel:tge,updateElStyle:cge,updateRelStyle:hge,updateLayoutConfig:uge,autoWrap:zu,setWrap:kge,getC4ShapeArray:BM,getC4Shape:mge,getC4ShapeKeys:yge,getBoundaries:PM,getBoundarys:vge,getCurrentBoundaryParse:gge,getParentBoundaryParse:fge,getRels:bge,getTitle:xge,getC4Type:J0e,getC4ShapeInRow:dge,getC4BoundaryInRow:pge,setAccTitle:wn,getAccTitle:Pn,getAccDescription:zn,setAccDescription:Fn,getConfig:s(()=>Ue().c4,"getConfig"),clear:Tge,LINETYPE:wge,ARROWTYPE:Cge,PLACEMENT:Ege,setTitle:Sge,setC4Type:ege}});function Tx(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}f(Tx,"Zf");var Age=Y(()=>{"use strict";s(Tx,"ascending")});function Lge(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}f(Lge,"UD");var oyt=Y(()=>{"use strict";s(Lge,"descending")});function T6(e){let t,r,i;e.length!==2?(t=Tx,r=s((l,h)=>Tx(e(l),h),"compare2"),i=s((l,h)=>e(l)-h,"delta")):(t=e===Tx||e===Lge?e:Rge,r=e,i=e);function n(l,h,u=0,d=l.length){if(u<d){if(t(h,h)!==0)return d;do{let p=u+d>>>1;r(l[p],h)<0?u=p+1:d=p}while(u<d)}return u}f(n,"n"),s(n,"left");function a(l,h,u=0,d=l.length){if(u<d){if(t(h,h)!==0)return d;do{let p=u+d>>>1;r(l[p],h)<=0?u=p+1:d=p}while(u<d)}return u}f(a,"a"),s(a,"right");function o(l,h,u=0,d=l.length){let p=n(l,h,u,d-1);return p>u&&i(l[p-1],h)>-i(l[p],h)?p-1:p}return f(o,"s"),s(o,"center"),{left:n,center:o,right:a}}f(T6,"Qf");function Rge(){return 0}f(Rge,"WOe");var Ige=Y(()=>{"use strict";Age(),oyt(),s(T6,"bisector"),s(Rge,"zero")});function Dge(e){return e===null?NaN:+e}f(Dge,"YD");var lyt=Y(()=>{"use strict";s(Dge,"number")}),FM,Nge,cyt,hyt,Mge,uyt=Y(()=>{"use strict";Age(),Ige(),lyt(),FM=T6(Tx),Nge=FM.right,cyt=FM.left,hyt=T6(Dge).center,Mge=Nge});function zM({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):r}f(zM,"dX");function Oge({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}f(Oge,"HOe");function $ge({_intern:e,_key:t},r){let i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}f($ge,"YOe");function Bge(e){return e!==null&&typeof e=="object"?e.valueOf():e}f(Bge,"jOe");var qM,dyt=Y(()=>{"use strict";var e;qM=(e=class extends Map{constructor(r,i=Bge){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),r!=null)for(let[n,a]of r)this.set(n,a)}get(r){return super.get(zM(this,r))}has(r){return super.has(zM(this,r))}set(r,i){return super.set(Oge(this,r),i)}delete(r){return super.delete($ge(this,r))}},f(e,"Gm"),s(e,"InternMap"),e),s(zM,"intern_get"),s(Oge,"intern_set"),s($ge,"intern_delete"),s(Bge,"keyof")});function wx(e,t,r){let i=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(i)),a=i/Math.pow(10,n),o=a>=Fge?10:a>=zge?5:a>=qge?2:1,l,h,u;return n<0?(u=Math.pow(10,-n)/o,l=Math.round(e*u),h=Math.round(t*u),l/u<e&&++l,h/u>t&&--h,u=-u):(u=Math.pow(10,n)*o,l=Math.round(e/u),h=Math.round(t/u),l*u<e&&++l,h*u>t&&--h),h<l&&.5<=r&&r<2?wx(e,t,r*2):[l,h,u]}f(wx,"Tk");function Pge(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let i=t<e,[n,a,o]=i?wx(t,e,r):wx(e,t,r);if(!(a>=n))return[];let l=a-n+1,h=new Array(l);if(i)if(o<0)for(let u=0;u<l;++u)h[u]=(a-u)/-o;else for(let u=0;u<l;++u)h[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)h[u]=(n+u)/-o;else for(let u=0;u<l;++u)h[u]=(n+u)*o;return h}f(Pge,"Ck");function w6(e,t,r){return t=+t,e=+e,r=+r,wx(e,t,r)[2]}f(w6,"Lv");function C6(e,t,r){t=+t,e=+e,r=+r;let i=t<e,n=i?w6(t,e,r):w6(e,t,r);return(i?-1:1)*(n<0?1/-n:n)}f(C6,"Vm");var Fge,zge,qge,pyt=Y(()=>{"use strict";Fge=Math.sqrt(50),zge=Math.sqrt(10),qge=Math.sqrt(2),s(wx,"tickSpec"),s(Pge,"ticks"),s(w6,"tickIncrement"),s(C6,"tickStep")});function jge(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}f(jge,"kk");var gyt=Y(()=>{"use strict";s(jge,"max")});function Gge(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}f(Gge,"wk");var fyt=Y(()=>{"use strict";s(Gge,"min")});function Uge(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(n);++i<n;)a[i]=e+i*r;return a}f(Uge,"Sk");var myt=Y(()=>{"use strict";s(Uge,"range")}),mg=Y(()=>{"use strict";uyt(),Ige(),gyt(),fyt(),myt(),pyt(),dyt()});function Vge(e){return e}f(Vge,"XD");var yyt=Y(()=>{"use strict";s(Vge,"default")});function Wge(e){return"translate("+e+",0)"}f(Wge,"QOe");function Hge(e){return"translate(0,"+e+")"}f(Hge,"JOe");function Yge(e){return t=>+e(t)}f(Yge,"ePe");function Xge(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}f(Xge,"tPe");function Kge(){return!this.__axis}f(Kge,"rPe");function jM(e,t){var r=[],i=null,n=null,a=6,o=6,l=3,h=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===Cx||e===Ex?-1:1,d=e===Ex||e===E6?"x":"y",p=e===Cx||e===S6?Wge:Hge;function g(m){var y=i!=null?i:t.ticks?t.ticks.apply(t,r):t.domain(),x=n!=null?n:t.tickFormat?t.tickFormat.apply(t,r):Vge,C=Math.max(a,0)+l,w=t.range(),_=+w[0]+h,S=+w[w.length-1]+h,R=(t.bandwidth?Xge:Yge)(t.copy(),h),b=m.selection?m.selection():m,v=b.selectAll(".domain").data([null]),k=b.selectAll(".tick").data(y,t).order(),E=k.exit(),A=k.enter().append("g").attr("class","tick"),I=k.select("line"),$=k.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(A),I=I.merge(A.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),$=$.merge(A.append("text").attr("fill","currentColor").attr(d,u*C).attr("dy",e===Cx?"0em":e===S6?"0.71em":"0.32em")),m!==b&&(v=v.transition(m),k=k.transition(m),I=I.transition(m),$=$.transition(m),E=E.transition(m).attr("opacity",GM).attr("transform",function(O){return isFinite(O=R(O))?p(O+h):this.getAttribute("transform")}),A.attr("opacity",GM).attr("transform",function(O){var j=this.parentNode.__axis;return p((j&&isFinite(j=j(O))?j:R(O))+h)})),E.remove(),v.attr("d",e===Ex||e===E6?o?"M"+u*o+","+_+"H"+h+"V"+S+"H"+u*o:"M"+h+","+_+"V"+S:o?"M"+_+","+u*o+"V"+h+"H"
vendor: 16,384 bytes, line 393
393+S+"V"+u*o:"M"+_+","+h+"H"+S),k.attr("opacity",1).attr("transform",function(O){return p(R(O)+h)}),I.attr(d+"2",u*a),$.attr(d,u*C).text(x),b.filter(Kge).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===E6?"start":e===Ex?"end":"middle"),b.each(function(){this.__axis=R})}return f(g,"p"),s(g,"axis"),g.scale=function(m){return arguments.length?(t=m,g):t},g.ticks=function(){return r=Array.from(arguments),g},g.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),g):r.slice()},g.tickValues=function(m){return arguments.length?(i=m==null?null:Array.from(m),g):i&&i.slice()},g.tickFormat=function(m){return arguments.length?(n=m,g):n},g.tickSize=function(m){return arguments.length?(a=o=+m,g):a},g.tickSizeInner=function(m){return arguments.length?(a=+m,g):a},g.tickSizeOuter=function(m){return arguments.length?(o=+m,g):o},g.tickPadding=function(m){return arguments.length?(l=+m,g):l},g.offset=function(m){return arguments.length?(h=+m,g):h},g}f(jM,"bX");function Zge(e){return jM(Cx,e)}f(Zge,"QD");function Qge(e){return jM(S6,e)}f(Qge,"JD");var Cx,E6,S6,Ex,GM,vyt=Y(()=>{"use strict";yyt(),Cx=1,E6=2,S6=3,Ex=4,GM=1e-6,s(Wge,"translateX"),s(Hge,"translateY"),s(Yge,"number"),s(Xge,"center"),s(Kge,"entering"),s(jM,"axis"),s(Zge,"axisTop"),s(Qge,"axisBottom")}),byt=Y(()=>{"use strict";vyt()});function UM(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Sx(r)}f(UM,"wX");function Sx(e){this._=e}f(Sx,"_k");function Jge(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}f(Jge,"nPe");function efe(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}f(efe,"aPe");function VM(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=tfe,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}f(VM,"kX");var tfe,rfe,xyt=Y(()=>{"use strict";tfe={value:s(()=>{},"value")},s(UM,"dispatch"),s(Sx,"Dispatch"),s(Jge,"parseTypenames"),Sx.prototype=UM.prototype={constructor:Sx,on:s(function(e,t){var r=this._,i=Jge(e+"",r),n,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=efe(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=VM(r[n],e.name,t);else if(t==null)for(n in r)r[n]=VM(r[n],e.name,null);return this},"on"),copy:s(function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Sx(e)},"copy"),call:s(function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},"call"),apply:s(function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)},"apply")},s(efe,"get"),s(VM,"set"),rfe=UM}),ife=Y(()=>{"use strict";xyt()}),_6,WM,nfe=Y(()=>{"use strict";_6="http://www.w3.org/1999/xhtml",WM={svg:"http://www.w3.org/2000/svg",xhtml:_6,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function _x(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),WM.hasOwnProperty(t)?{space:WM[t],local:e}:e}f(_x,"dc");var HM=Y(()=>{"use strict";nfe(),s(_x,"default")});function afe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===_6&&t.documentElement.namespaceURI===_6?t.createElement(e):t.createElementNS(r,e)}}f(afe,"sPe");function sfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}f(sfe,"oPe");function YM(e){var t=_x(e);return(t.local?sfe:afe)(t)}f(YM,"Mv");var ofe=Y(()=>{"use strict";HM(),nfe(),s(afe,"creatorInherit"),s(sfe,"creatorFixed"),s(YM,"default")});function lfe(){}f(lfe,"lPe");function A6(e){return e==null?lfe:function(){return this.querySelector(e)}}f(A6,"Uh");var XM=Y(()=>{"use strict";s(lfe,"none"),s(A6,"default")});function cfe(e){typeof e!="function"&&(e=A6(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,l=i[n]=new Array(o),h,u,d=0;d<o;++d)(h=a[d])&&(u=e.call(h,h.__data__,d,a))&&("__data__"in h&&(u.__data__=h.__data__),l[d]=u);return new Ro(i,this._parents)}f(cfe,"a8");var kyt=Y(()=>{"use strict";vh(),XM(),s(cfe,"default")});function hfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}f(hfe,"s8");var Tyt=Y(()=>{"use strict";s(hfe,"array")});function ufe(){return[]}f(ufe,"cPe");function KM(e){return e==null?ufe:function(){return this.querySelectorAll(e)}}f(KM,"Wm");var dfe=Y(()=>{"use strict";s(ufe,"empty"),s(KM,"default")});function pfe(e){return function(){return hfe(e.apply(this,arguments))}}f(pfe,"uPe");function gfe(e){typeof e=="function"?e=pfe(e):e=KM(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var o=t[a],l=o.length,h,u=0;u<l;++u)(h=o[u])&&(i.push(e.call(h,h.__data__,u,o)),n.push(h));return new Ro(i,n)}f(gfe,"l8");var wyt=Y(()=>{"use strict";vh(),Tyt(),dfe(),s(pfe,"arrayAll"),s(gfe,"default")});function ZM(e){return function(){return this.matches(e)}}f(ZM,"qm");function QM(e){return function(t){return t.matches(e)}}f(QM,"Mk");var L6=Y(()=>{"use strict";s(ZM,"default"),s(QM,"childMatcher")});function ffe(e){return function(){return vfe.call(this.children,e)}}f(ffe,"dPe");function mfe(){return this.firstElementChild}f(mfe,"fPe");function yfe(e){return this.select(e==null?mfe:ffe(typeof e=="function"?e:QM(e)))}f(yfe,"c8");var vfe,Cyt=Y(()=>{"use strict";L6(),vfe=Array.prototype.find,s(ffe,"childFind"),s(mfe,"childFirst"),s(yfe,"default")});function bfe(){return Array.from(this.children)}f(bfe,"mPe");function xfe(e){return function(){return Tfe.call(this.children,e)}}f(xfe,"gPe");function kfe(e){return this.selectAll(e==null?bfe:xfe(typeof e=="function"?e:QM(e)))}f(kfe,"u8");var Tfe,Eyt=Y(()=>{"use strict";L6(),Tfe=Array.prototype.filter,s(bfe,"children"),s(xfe,"childrenFilter"),s(kfe,"default")});function wfe(e){typeof e!="function"&&(e=ZM(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,l=i[n]=[],h,u=0;u<o;++u)(h=a[u])&&e.call(h,h.__data__,u,a)&&l.push(h);return new Ro(i,this._parents)}f(wfe,"h8");var Syt=Y(()=>{"use strict";vh(),L6(),s(wfe,"default")});function JM(e){return new Array(e.length)}f(JM,"Iv");var Cfe=Y(()=>{"use strict";s(JM,"default")});function Efe(){return new Ro(this._enter||this._groups.map(JM),this._parents)}f(Efe,"f8");function Ax(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}f(Ax,"Ov");var Sfe=Y(()=>{"use strict";Cfe(),vh(),s(Efe,"default"),s(Ax,"EnterNode"),Ax.prototype={constructor:Ax,appendChild:s(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:s(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:s(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:s(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function _fe(e){return function(){return e}}f(_fe,"m8");var _yt=Y(()=>{"use strict";s(_fe,"default")});function Afe(e,t,r,i,n,a){for(var o=0,l,h=t.length,u=a.length;o<u;++o)(l=t[o])?(l.__data__=a[o],i[o]=l):r[o]=new Ax(e,a[o]);for(;o<h;++o)(l=t[o])&&(n[o]=l)}f(Afe,"yPe");function Lfe(e,t,r,i,n,a,o){var l,h,u=new Map,d=t.length,p=a.length,g=new Array(d),m;for(l=0;l<d;++l)(h=t[l])&&(g[l]=m=o.call(h,h.__data__,l,t)+"",u.has(m)?n[l]=h:u.set(m,h));for(l=0;l<p;++l)m=o.call(e,a[l],l,a)+"",(h=u.get(m))?(i[l]=h,h.__data__=a[l],u.delete(m)):r[l]=new Ax(e,a[l]);for(l=0;l<d;++l)(h=t[l])&&u.get(g[l])===h&&(n[l]=h)}f(Lfe,"vPe");function Rfe(e){return e.__data__}f(Rfe,"xPe");function Ife(e,t){if(!arguments.length)return Array.from(this,Rfe);var r=t?Lfe:Afe,i=this._parents,n=this._groups;typeof e!="function"&&(e=_fe(e));for(var a=n.length,o=new Array(a),l=new Array(a),h=new Array(a),u=0;u<a;++u){var d=i[u],p=n[u],g=p.length,m=Dfe(e.call(d,d&&d.__data__,u,i)),y=m.length,x=l[u]=new Array(y),C=o[u]=new Array(y),w=h[u]=new Array(g);r(d,p,x,C,w,m,t);for(var _=0,S=0,R,b;_<y;++_)if(R=x[_]){for(_>=S&&(S=_+1);!(b=C[S])&&++S<y;);R._next=b||null}}return o=new Ro(o,i),o._enter=l,o._exit=h,o}f(Ife,"g8");function Dfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}f(Dfe,"bPe");var Ayt=Y(()=>{"use strict";vh(),Sfe(),_yt(),s(Afe,"bindIndex"),s(Lfe,"bindKey"),s(Rfe,"datum"),s(Ife,"default"),s(Dfe,"arraylike")});function Nfe(){return new Ro(this._exit||this._groups.map(JM),this._parents)}f(Nfe,"y8");var Lyt=Y(()=>{"use strict";Cfe(),vh(),s(Nfe,"default")});function Mfe(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}f(Mfe,"v8");var Ryt=Y(()=>{"use strict";s(Mfe,"default")});function Ofe(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,o=Math.min(n,a),l=new Array(n),h=0;h<o;++h)for(var u=r[h],d=i[h],p=u.length,g=l[h]=new Array(p),m,y=0;y<p;++y)(m=u[y]||d[y])&&(g[y]=m);for(;h<n;++h)l[h]=r[h];return new Ro(l,this._parents)}f(Ofe,"x8");var Iyt=Y(()=>{"use strict";vh(),s(Ofe,"default")});function $fe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],o;--n>=0;)(o=i[n])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}f($fe,"b8");var Dyt=Y(()=>{"use strict";s($fe,"default")});function Bfe(e){e||(e=Pfe);function t(p,g){return p&&g?e(p.__data__,g.__data__):!p-!g}f(t,"t"),s(t,"compareNode");for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o=r[a],l=o.length,h=n[a]=new Array(l),u,d=0;d<l;++d)(u=o[d])&&(h[d]=u);h.sort(t)}return new Ro(n,this._parents).order()}f(Bfe,"T8");function Pfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}f(Pfe,"TPe");var Nyt=Y(()=>{"use strict";vh(),s(Bfe,"default"),s(Pfe,"ascending")});function Ffe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}f(Ffe,"C8");var Myt=Y(()=>{"use strict";s(Ffe,"default")});function zfe(){return Array.from(this)}f(zfe,"k8");var Oyt=Y(()=>{"use strict";s(zfe,"default")});function qfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null}f(qfe,"w8");var $yt=Y(()=>{"use strict";s(qfe,"default")});function jfe(){let e=0;for(let t of this)++e;return e}f(jfe,"S8");var Byt=Y(()=>{"use strict";s(jfe,"default")});function Gfe(){return!this.node()}f(Gfe,"E8");var Pyt=Y(()=>{"use strict";s(Gfe,"default")});function Ufe(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,o=n.length,l;a<o;++a)(l=n[a])&&e.call(l,l.__data__,a,n);return this}f(Ufe,"A8");var Fyt=Y(()=>{"use strict";s(Ufe,"default")});function Vfe(e){return function(){this.removeAttribute(e)}}f(Vfe,"CPe");function Wfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}f(Wfe,"kPe");function Hfe(e,t){return function(){this.setAttribute(e,t)}}f(Hfe,"wPe");function Yfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}f(Yfe,"SPe");function Xfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}f(Xfe,"EPe");function Kfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}f(Kfe,"APe");function Zfe(e,t){var r=_x(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Wfe:Vfe:typeof t=="function"?r.local?Kfe:Xfe:r.local?Yfe:Hfe)(r,t))}f(Zfe,"_8");var zyt=Y(()=>{"use strict";HM(),s(Vfe,"attrRemove"),s(Wfe,"attrRemoveNS"),s(Hfe,"attrConstant"),s(Yfe,"attrConstantNS"),s(Xfe,"attrFunction"),s(Kfe,"attrFunctionNS"),s(Zfe,"default")});function eO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}f(eO,"Pv");var Qfe=Y(()=>{"use strict";s(eO,"default")});function Jfe(e){return function(){this.style.removeProperty(e)}}f(Jfe,"_Pe");function e1e(e,t,r){return function(){this.style.setProperty(e,t,r)}}f(e1e,"DPe");function t1e(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}f(t1e,"RPe");function r1e(e,t,r){return arguments.length>1?this.each((t==null?Jfe:typeof t=="function"?t1e:e1e)(e,t,r!=null?r:"")):yg(this.node(),e)}f(r1e,"R8");function yg(e,t){return e.style.getPropertyValue(t)||eO(e).getComputedStyle(e,null).getPropertyValue(t)}f(yg,"Hh");var i1e=Y(()=>{"use strict";Qfe(),s(Jfe,"styleRemove"),s(e1e,"styleConstant"),s(t1e,"styleFunction"),s(r1e,"default"),s(yg,"styleValue")});function n1e(e){return function(){delete this[e]}}f(n1e,"LPe");function a1e(e,t){return function(){this[e]=t}}f(a1e,"MPe");function s1e(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}f(s1e,"NPe");function o1e(e,t){return arguments.length>1?this.each((t==null?n1e:typeof t=="function"?s1e:a1e)(e,t)):this.node()[e]}f(o1e,"M8");var qyt=Y(()=>{"use strict";s(n1e,"propertyRemove"),s(a1e,"propertyConstant"),s(s1e,"propertyFunction"),s(o1e,"default")});function tO(e){return e.trim().split(/^|\s+/)}f(tO,"YX");function R6(e){return e.classList||new rO(e)}f(R6,"N8");function rO(e){this._node=e,this._names=tO(e.getAttribute("class")||"")}f(rO,"jX");function iO(e,t){for(var r=R6(e),i=-1,n=t.length;++i<n;)r.add(t[i])}f(iO,"XX");function nO(e,t){for(var r=R6(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}f(nO,"KX");function l1e(e){return function(){iO(this,e)}}f(l1e,"IPe");function c1e(e){return function(){nO(this,e)}}f(c1e,"OPe");function h1e(e,t){return function(){(t.apply(this,arguments)?iO:nO)(this,e)}}f(h1e,"PPe");function u1e(e,t){var r=tO(e+"");if(arguments.length<2){for(var i=R6(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?h1e:t?l1e:c1e)(r,t))}f(u1e,"I8");var jyt=Y(()=>{"use strict";s(tO,"classArray"),s(R6,"classList"),s(rO,"ClassList"),rO.prototype={add:s(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:s(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:s(function(e){return this._names.indexOf(e)>=0},"contains")},s(iO,"classedAdd"),s(nO,"classedRemove"),s(l1e,"classedTrue"),s(c1e,"classedFalse"),s(h1e,"classedFunction"),s(u1e,"default")});function d1e(){this.textContent=""}f(d1e,"BPe");function p1e(e){return function(){this.textContent=e}}f(p1e,"FPe");function g1e(e){return function(){var t=e.apply(this,arguments);this.textContent=t!=null?t:""}}f(g1e,"$Pe");function f1e(e){return arguments.length?this.each(e==null?d1e:(typeof e=="function"?g1e:p1e)(e)):this.node().textContent}f(f1e,"O8");var Gyt=Y(()=>{"use strict";s(d1e,"textRemove"),s(p1e,"textConstant"),s(g1e,"textFunction"),s(f1e,"default")});function m1e(){this.innerHTML=""}f(m1e,"zPe");function y1e(e){return function(){this.innerHTML=e}}f(y1e,"GPe");function v1e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t!=null?t:""}}f(v1e,"VPe");function b1e(e){return arguments.length?this.each(e==null?m1e:(typeof e=="function"?v1e:y1e)(e)):this.node().innerHTML}f(b1e,"P8");var Uyt=Y(()=>{"use strict";s(m1e,"htmlRemove"),s(y1e,"htmlConstant"),s(v1e,"htmlFunction"),s(b1e,"default")});function x1e(){this.nextSibling&&this.parentNode.appendChild(this)}f(x1e,"WPe");function k1e(){return this.each(x1e)}f(k1e,"B8");var Vyt=Y(()=>{"use strict";s(x1e,"raise"),s(k1e,"default")});function T1e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}f(T1e,"qPe");function w1e(){return this.each(T1e)}f(w1e,"F8");var Wyt=Y(()=>{"use strict";s(T1e,"lower"),s(w1e,"default")});function C1e(e){var t=typeof e=="function"?e:YM(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}f(C1e,"$8");var Hyt=Y(()=>{"use strict";ofe(
vendor: 6,569 bytes, line 393
393),s(C1e,"default")});function E1e(){return null}f(E1e,"UPe");function S1e(e,t){var r=typeof e=="function"?e:YM(e),i=t==null?E1e:typeof t=="function"?t:A6(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}f(S1e,"z8");var Yyt=Y(()=>{"use strict";ofe(),XM(),s(E1e,"constantNull"),s(S1e,"default")});function _1e(){var e=this.parentNode;e&&e.removeChild(this)}f(_1e,"HPe");function A1e(){return this.each(_1e)}f(A1e,"G8");var Xyt=Y(()=>{"use strict";s(_1e,"remove"),s(A1e,"default")});function L1e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}f(L1e,"YPe");function R1e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}f(R1e,"jPe");function I1e(e){return this.select(e?R1e:L1e)}f(I1e,"V8");var Kyt=Y(()=>{"use strict";s(L1e,"selection_cloneShallow"),s(R1e,"selection_cloneDeep"),s(I1e,"default")});function D1e(e){return arguments.length?this.property("__data__",e):this.node().__data__}f(D1e,"W8");var Zyt=Y(()=>{"use strict";s(D1e,"default")});function N1e(e){return function(t){e.call(this,t,this.__data__)}}f(N1e,"XPe");function M1e(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}f(M1e,"KPe");function O1e(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}f(O1e,"ZPe");function $1e(e,t,r){return function(){var i=this.__on,n,a=N1e(t);if(i){for(var o=0,l=i.length;o<l;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}f($1e,"QPe");function B1e(e,t,r){var i=M1e(e+""),n,a=i.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var h=0,u=l.length,d;h<u;++h)for(n=0,d=l[h];n<a;++n)if((o=i[n]).type===d.type&&o.name===d.name)return d.value}return}for(l=t?$1e:O1e,n=0;n<a;++n)this.each(l(i[n],t,r));return this}f(B1e,"q8");var Qyt=Y(()=>{"use strict";s(N1e,"contextListener"),s(M1e,"parseTypenames"),s(O1e,"onRemove"),s($1e,"onAdd"),s(B1e,"default")});function aO(e,t,r){var i=eO(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}f(aO,"lK");function P1e(e,t){return function(){return aO(this,e,t)}}f(P1e,"JPe");function F1e(e,t){return function(){return aO(this,e,t.apply(this,arguments))}}f(F1e,"eBe");function z1e(e,t){return this.each((typeof t=="function"?F1e:P1e)(e,t))}f(z1e,"U8");var Jyt=Y(()=>{"use strict";Qfe(),s(aO,"dispatchEvent"),s(P1e,"dispatchConstant"),s(F1e,"dispatchFunction"),s(z1e,"default")});function*q1e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,o;n<a;++n)(o=i[n])&&(yield o)}f(q1e,"H8");var e2t=Y(()=>{"use strict";s(q1e,"default")});function Ro(e,t){this._groups=e,this._parents=t}f(Ro,"sn");function sO(){return new Ro([[document.documentElement]],oO)}f(sO,"hK");function j1e(){return this}f(j1e,"tBe");var oO,_m,vh=Y(()=>{"use strict";kyt(),wyt(),Cyt(),Eyt(),Syt(),Ayt(),Sfe(),Lyt(),Ryt(),Iyt(),Dyt(),Nyt(),Myt(),Oyt(),$yt(),Byt(),Pyt(),Fyt(),zyt(),i1e(),qyt(),jyt(),Gyt(),Uyt(),Vyt(),Wyt(),Hyt(),Yyt(),Xyt(),Kyt(),Zyt(),Qyt(),Jyt(),e2t(),oO=[null],s(Ro,"Selection"),s(sO,"selection"),s(j1e,"selection_selection"),Ro.prototype=sO.prototype={constructor:Ro,select:cfe,selectAll:gfe,selectChild:yfe,selectChildren:kfe,filter:wfe,data:Ife,enter:Efe,exit:Nfe,join:Mfe,merge:Ofe,selection:j1e,order:$fe,sort:Bfe,call:Ffe,nodes:zfe,node:qfe,size:jfe,empty:Gfe,each:Ufe,attr:Zfe,style:r1e,property:o1e,classed:u1e,text:f1e,html:b1e,raise:k1e,lower:w1e,append:C1e,insert:S1e,remove:A1e,clone:I1e,datum:D1e,on:B1e,dispatch:z1e,[Symbol.iterator]:q1e},_m=sO});function Lt(e){return typeof e=="string"?new Ro([[document.querySelector(e)]],[document.documentElement]):new Ro([[e]],oO)}f(Lt,"Je");var t2t=Y(()=>{"use strict";vh(),s(Lt,"default")}),bh=Y(()=>{"use strict";L6(),HM(),t2t(),vh(),XM(),dfe(),i1e()}),r2t=Y(()=>{"use strict"});function Am(e,t,r){e.prototype=t.prototype=r,r.constructor=e}f(Am,"Yh");function Lx(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}f(Lx,"Um");var G1e=Y(()=>{"use strict";s(Am,"default"),s(Lx,"extend")});function rp(){}f(rp,"jh");function lO(){return this.rgb().formatHex()}f(lO,"mK");function U1e(){return this.rgb().formatHex8()}f(U1e,"cBe");function V1e(){return fO(this).formatHsl()}f(V1e,"uBe");function cO(){return this.rgb().formatRgb()}f(cO,"gK");function ip(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Y1e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?hO(t):r===3?new ys(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=X1e.exec(e))?new ys(t[1],t[2],t[3],1):(t=K1e.exec(e))?new ys(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Z1e.exec(e))?Rx(t[1],t[2],t[3],t[4]):(t=Q1e.exec(e))?Rx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=J1e.exec(e))?gO(t[1],t[2]/100,t[3]/100,1):(t=eme.exec(e))?gO(t[1],t[2]/100,t[3]/100,t[4]):yO.hasOwnProperty(e)?hO(yO[e]):e==="transparent"?new ys(NaN,NaN,NaN,0):null}f(ip,"Tl");function hO(e){return new ys(e>>16&255,e>>8&255,e&255,1)}f(hO,"yK");function Rx(e,t,r,i){return i<=0&&(e=t=r=NaN),new ys(e,t,r,i)}f(Rx,"Nk");function uO(e){return e instanceof rp||(e=ip(e)),e?(e=e.rgb(),new ys(e.r,e.g,e.b,e.opacity)):new ys}f(uO,"K8");function Ix(e,t,r,i){return arguments.length===1?uO(e):new ys(e,t,r,i!=null?i:1)}f(Ix,"Ym");function ys(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}f(ys,"ua");function dO(){return`#${ap(this.r)}${ap(this.g)}${ap(this.b)}`}f(dO,"vK");function W1e(){return`#${ap(this.r)}${ap(this.g)}${ap(this.b)}${ap((isNaN(this.opacity)?1:this.opacity)*255)}`}f(W1e,"hBe");function pO(){let e=Dx(this.opacity);return`${e===1?"rgb(":"rgba("}${np(this.r)}, ${np(this.g)}, ${np(this.b)}${e===1?")":`, ${e})`}`}f(pO,"xK");function Dx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}f(Dx,"Pk");function np(e){return Math.max(0,Math.min(255,Math.round(e)||0))}f(np,"ep");function ap(e){return e=np(e),(e<16?"0":"")+e.toString(16)}f(ap,"Jf");
vendor: 6,422 bytes, line 393
393function gO(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Rl(e,t,r,i)}f(gO,"bK");function fO(e){if(e instanceof Rl)return new Rl(e.h,e.s,e.l,e.opacity);if(e instanceof rp||(e=ip(e)),!e)return new Rl;if(e instanceof Rl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,l=a-n,h=(a+n)/2;return l?(t===a?o=(r-i)/l+(r<i)*6:r===a?o=(i-t)/l+2:o=(t-r)/l+4,l/=h<.5?a+n:2-a-n,o*=60):l=h>0&&h<1?0:o,new Rl(o,l,h,e.opacity)}f(fO,"CK");function H1e(e,t,r,i){return arguments.length===1?fO(e):new Rl(e,t,r,i!=null?i:1)}f(H1e,"kK");function Rl(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}f(Rl,"bl");function mO(e){return e=(e||0)%360,e<0?e+360:e}f(mO,"TK");function Nx(e){return Math.max(0,Math.min(1,e||0))}f(Nx,"Ik");function I6(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}f(I6,"X8");var Lm,Mx,vg,Rm,mc,Y1e,X1e,K1e,Z1e,Q1e,J1e,eme,yO,tme=Y(()=>{"use strict";G1e(),s(rp,"Color"),Lm=.7,Mx=1/Lm,vg="\\s*([+-]?\\d+)\\s*",Rm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y1e=/^#([0-9a-f]{3,8})$/,X1e=new RegExp(`^rgb\\(${vg},${vg},${vg}\\)$`),K1e=new RegExp(`^rgb\\(${mc},${mc},${mc}\\)$`),Z1e=new RegExp(`^rgba\\(${vg},${vg},${vg},${Rm}\\)$`),Q1e=new RegExp(`^rgba\\(${mc},${mc},${mc},${Rm}\\)$`),J1e=new RegExp(`^hsl\\(${Rm},${mc},${mc}\\)$`),eme=new RegExp(`^hsla\\(${Rm},${mc},${mc},${Rm}\\)$`),yO={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},Am(rp,ip,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:lO,formatHex:lO,formatHex8:U1e,formatHsl:V1e,formatRgb:cO,toString:cO}),s(lO,"color_formatHex"),s(U1e,"color_formatHex8"),s(V1e,"color_formatHsl"),s(cO,"color_formatRgb"),s(ip,"color"),s(hO,"rgbn"),s(Rx,"rgba"),s(uO,"rgbConvert"),s(Ix,"rgb"),s(ys,"Rgb"),Am(ys,Ix,Lx(rp,{brighter(e){return e=e==null?Mx:Math.pow(Mx,e),new ys(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Lm:Math.pow(Lm,e),new ys(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ys(np(this.r),np(this.g),np(this.b),Dx(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:dO,formatHex:dO,formatHex8:W1e,formatRgb:pO,toString:pO})),s(dO,"rgb_formatHex"),s(W1e,"rgb_formatHex8"),s(pO,"rgb_formatRgb"),s(Dx,"clampa"),s(np,"clampi"),s(ap,"hex"),s(gO,"hsla"),s(fO,"hslConvert"),s(H1e,"hsl"),s(Rl,"Hsl"),Am(Rl,H1e,Lx(rp,{brighter(e){return e=e==null?Mx:Math.pow(Mx,e),new Rl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Lm:Math.pow(Lm,e),new Rl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new ys(I6(e>=240?e-240:e+120,n,i),I6(e,n,i),I6(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new Rl(mO(this.h),Nx(this.s),Nx(this.l),Dx(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 e=Dx(this.opacity);return`${e===1?"hsl(":"hsla("}${mO(this.h)}, ${Nx(this.s)*100}%, ${Nx(this.l)*100}%${e===1?")":`, ${e})`}`}})),s(mO,"clamph"),s(Nx,"clampt"),s(I6,"hsl2rgb")}),rme,ime,i2t=Y(()=>{"use strict";rme=Math.PI/180,ime=180/Math.PI});function vO(e){if(e instanceof yc)return new yc(e.l,e.a,e.b,e.opacity);if(e instanceof xh)return bO(e);e instanceof ys||(e=uO(e));var t=O6(e.r),r=O6(e.g),i=O6(e.b),n=D6((.2225045*t+.7168786*r+.0606169*i)/kO),a,o;return t===r&&r===i?a=o=n:(a=D6((.4360747*t+.3850649*r+.1430804*i)/xO),o=D6((.0139322*t+.0971045*r+.7141733*i)/TO)),new yc(116*n-16,500*(a-n),200*(n-o),e.opacity)}f(vO,"MK");
vendor: 7,226 bytes, line 393
393function nme(e,t,r,i){return arguments.length===1?vO(e):new yc(e,t,r,i!=null?i:1)}f(nme,"rR");function yc(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}f(yc,"pc");function D6(e){return e>sme?Math.pow(e,1/3):e/CO+wO}f(D6,"Q8");function N6(e){return e>bg?e*e*e:CO*(e-wO)}f(N6,"J8");function M6(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}f(M6,"eR");function O6(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}f(O6,"tR");function ame(e){if(e instanceof xh)return new xh(e.h,e.c,e.l,e.opacity);if(e instanceof yc||(e=vO(e)),e.a===0&&e.b===0)return new xh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ime;return new xh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}f(ame,"fBe");function $6(e,t,r,i){return arguments.length===1?ame(e):new xh(e,t,r,i!=null?i:1)}f($6,"$v");function xh(e,t,r,i){this.h=+e,this.c=+t,this.l=+r,this.opacity=+i}f(xh,"Su");function bO(e){if(isNaN(e.h))return new yc(e.l,0,0,e.opacity);var t=e.h*rme;return new yc(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}f(bO,"NK");var Ox,xO,kO,TO,wO,bg,CO,sme,n2t=Y(()=>{"use strict";G1e(),tme(),i2t(),Ox=18,xO=.96422,kO=1,TO=.82521,wO=4/29,bg=6/29,CO=3*bg*bg,sme=bg*bg*bg,s(vO,"labConvert"),s(nme,"lab"),s(yc,"Lab"),Am(yc,nme,Lx(rp,{brighter(e){return new yc(this.l+Ox*(e!=null?e:1),this.a,this.b,this.opacity)},darker(e){return new yc(this.l-Ox*(e!=null?e:1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=xO*N6(t),e=kO*N6(e),r=TO*N6(r),new ys(M6(3.1338561*t-1.6168667*e-.4906146*r),M6(-.9787684*t+1.9161415*e+.033454*r),M6(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),s(D6,"xyz2lab"),s(N6,"lab2xyz"),s(M6,"lrgb2rgb"),s(O6,"rgb2lrgb"),s(ame,"hclConvert"),s($6,"hcl"),s(xh,"Hcl"),s(bO,"hcl2lab"),Am(xh,$6,Lx(rp,{brighter(e){return new xh(this.h,this.c,this.l+Ox*(e!=null?e:1),this.opacity)},darker(e){return new xh(this.h,this.c,this.l-Ox*(e!=null?e:1),this.opacity)},rgb(){return bO(this).rgb()}}))}),$x=Y(()=>{"use strict";tme(),n2t()});function EO(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}f(EO,"iR");function ome(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],a=e[i+1],o=i>0?e[i-1]:2*n-a,l=i<t-1?e[i+2]:2*a-n;return EO((r-i/t)*t,o,n,a,l)}}f(ome,"nR");var lme=Y(()=>{"use strict";s(EO,"basis"),s(ome,"default")});function cme(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],l=e[(i+2)%t];return EO((r-i/t)*t,n,a,o,l)}}f(cme,"sR");var a2t=Y(()=>{"use strict";lme(),s(cme,"default")}),Bx,hme=Y(()=>{"use strict";Bx=s(e=>()=>e,"default")});function SO(e,t){return function(r){return e+r*t}}f(SO,"PK");function ume(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}f(ume,"pBe");function dme(e,t){var r=t-e;return r?SO(e,r>180||r<-180?r-360*Math.round(r/360):r):Bx(isNaN(e)?t:e)}f(dme,"BK");function pme(e){return(e=+e)==1?xg:function(t,r){return r-t?ume(t,r,e):Bx(isNaN(t)?r:t)}}f(pme,"FK");function xg(e,t){var r=t-e;return r?SO(e,r):Bx(isNaN(e)?t:e)}f(xg,"Eu");var gme=Y(()=>{"use strict";hme(),s(SO,"linear"),s(ume,"exponential"),s(dme,"hue"),s(pme,"gamma"),s(xg,"nogamma")});function _O(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=Ix(t[o]),i[o]=l.r||0,n[o]=l.g||0,a[o]=l.b||0;return i=e(i),n=e(n),a=e(a),l.opacity=1,function(h){return l.r=i(h),l.g=n(h),l.b=a(h),l+""}}}f(_O,"$K");var Px,s2t,o2t,fme=Y(()=>{"use strict";$x(),lme(),a2t(),gme(),Px=s(f((function e(t){var r=pme(t);function i(n,a){var o=r((n=Ix(n)).r,(a=Ix(a)).r),l=r(n.g,a.g),h=r(n.b,a.b),u=xg(n.opacity,a.opacity);return function(d){return n.r=o(d),n.g=l(d),n.b=h(d),n.opacity=u(d),n+""}}return f(i,"i"),s(i,"rgb"),i.gamma=e,i}),"e"),"rgbGamma")(1),s(_O,"rgbSpline"),s2t=_O(ome),o2t=_O(cme)});function mme(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}f(mme,"uR");function yme(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}f(yme,"zK");var l2t=Y(()=>{"use strict";s(mme,"default"),s(yme,"isNumberArray")});function vme(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o<i;++o)n[o]=z6(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<i;++o)a[o]=n[o](l);return a}}f(vme,"VK");var c2t=Y(()=>{"use strict";LO(),s(vme,"genericArray")});function bme(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}f(bme,"hR");var h2t=Y(()=>{"use strict";s(bme,"default")});function Il(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}f(Il,"Zn");var B6=Y(()=>{"use strict";s(Il,"default")});function xme(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=z6(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}f(xme,"dR");var u2t=Y(()=>{"use strict";LO(),s(xme,"default")});function kme(e){return function(){return e}}f(kme,"yBe");function Tme(e){return function(t){return e(t)+""}}f(Tme,"vBe");function AO(e,t){var r=P6.lastIndex=F6.lastIndex=0,i,n,a,o=-1,l=[],h=[];for(e=e+"",t=t+"";(i=P6.exec(e))&&(n=F6.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,h.push({i:o,x:Il(i,n)})),r=F6.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?h[0]?Tme(h[0].x):kme(t):(t=h.length,function(u){for(var d=0,p;d<t;++d)l[(p=h[d]).i]=p.x(u);return l.join("")})}f(AO,"Zm");var P6,F6,wme=Y(()=>{"use strict";B6(),P6=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,F6=new RegExp(P6.source,"g"),s(kme,"zero"),s(Tme,"one"),s(AO,"default")});function z6(e,t){var r=typeof t,i;return t==null||r==="boolean"?Bx(t):(r==="number"?Il:r==="string"?(i=ip(t))?(t=i,Px):AO:t instanceof ip?Px:t instanceof Date?bme:yme(t)?mme:Array.isArray(t)?vme:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?xme:Il)(e,t)}f(z6,"Xh");var LO=Y(()=>{"use strict";$x(),fme(),c2t(),h2t(),B6(),u2t(),wme(),hme(),l2t(),s(z6,"default")});function Cme(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}f(Cme,"$k");var d2t=Y(()=>{"use strict";s(Cme,"default")});function RO(e,t,r,i,n,a){var o,l,h;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(h=e*r+t*i)&&(r-=e*h,i-=t*h),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,h/=l),e*i<t*r&&(e=-e,t=-t,h=-h,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*IO,skewX:Math.atan(h)*IO,scaleX:o,scaleY:l}}f(RO,"Gk");var IO,q6,p2t=Y(()=>{"use strict";IO=180/Math.PI,q6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},s(RO,"default")});function Eme(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q6:RO(t.a,t.b,t.c,t.d,t.e,t.f)}f(Eme,"XK");function Sme(e){return e==null?q6:(j6||(j6=document.createElementNS("http://www.w3.org/2000/svg","g")),j6.setAttribute("transform",e),(e=j6.transform.baseVal.consolidate())?(e=e.matrix,RO(e.a,e.b,e.c,e.d,e.e,e.f)):q6)}f(Sme,"KK");var j6,g2t=Y(()=>{"use strict";p2t(),s(Eme,"parseCss"),s(Sme,"parseSvg")});
vendor: 8,485 bytes, line 393
393function DO(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}f(n,"n"),s(n,"pop");function a(u,d,p,g,m,y){if(u!==p||d!==g){var x=m.push("translate(",null,t,null,r);y.push({i:x-4,x:Il(u,p)},{i:x-2,x:Il(d,g)})}else(p||g)&&m.push("translate("+p+t+g+r)}f(a,"a"),s(a,"translate");function o(u,d,p,g){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),g.push({i:p.push(n(p)+"rotate(",null,i)-2,x:Il(u,d)})):d&&p.push(n(p)+"rotate("+d+i)}f(o,"s"),s(o,"rotate");function l(u,d,p,g){u!==d?g.push({i:p.push(n(p)+"skewX(",null,i)-2,x:Il(u,d)}):d&&p.push(n(p)+"skewX("+d+i)}f(l,"l"),s(l,"skewX");function h(u,d,p,g,m,y){if(u!==p||d!==g){var x=m.push(n(m)+"scale(",null,",",null,")");y.push({i:x-4,x:Il(u,p)},{i:x-2,x:Il(d,g)})}else(p!==1||g!==1)&&m.push(n(m)+"scale("+p+","+g+")")}return f(h,"u"),s(h,"scale"),function(u,d){var p=[],g=[];return u=e(u),d=e(d),a(u.translateX,u.translateY,d.translateX,d.translateY,p,g),o(u.rotate,d.rotate,p,g),l(u.skewX,d.skewX,p,g),h(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,g),u=d=null,function(m){for(var y=-1,x=g.length,C;++y<x;)p[(C=g[y]).i]=C.x(m);return p.join("")}}}f(DO,"QK");var _me,Ame,f2t=Y(()=>{"use strict";B6(),g2t(),s(DO,"interpolateTransform"),_me=DO(Eme,"px, ","px)","deg)"),Ame=DO(Sme,", ",")",")")});function NO(e){return function(t,r){var i=e((t=$6(t)).h,(r=$6(r)).h),n=xg(t.c,r.c),a=xg(t.l,r.l),o=xg(t.opacity,r.opacity);return function(l){return t.h=i(l),t.c=n(l),t.l=a(l),t.opacity=o(l),t+""}}}f(NO,"eZ");var Lme,m2t,y2t=Y(()=>{"use strict";$x(),gme(),s(NO,"hcl"),Lme=NO(dme),m2t=NO(xg)}),Fx=Y(()=>{"use strict";LO(),B6(),d2t(),wme(),f2t(),fme(),y2t()});function G6(){return sp||(BO(Rme),sp=Nm.now()+Gx)}f(G6,"Hv");function Rme(){sp=0}f(Rme,"bBe");function zx(){this._call=this._time=this._next=null}f(zx,"Uv");function MO(e,t,r){var i=new zx;return i.restart(e,t,r),i}f(MO,"Hk");function Ime(){G6(),++kg;for(var e=V6,t;e;)(t=sp-e._time)>=0&&e._call.call(void 0,t),e=e._next;--kg}f(Ime,"aZ");function OO(){sp=(jx=Nm.now())+Gx,kg=Im=0;try{Ime()}finally{kg=0,Nme(),sp=0}}f(OO,"rZ");function Dme(){var e=Nm.now(),t=e-jx;t>$O&&(Gx-=t,jx=e)}f(Dme,"TBe");function Nme(){for(var e,t=V6,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:V6=r);qx=e,U6(i)}f(Nme,"CBe");function U6(e){if(!kg){Im&&(Im=clearTimeout(Im));var t=e-sp;t>24?(e<1/0&&(Im=setTimeout(OO,e-Nm.now()-Gx)),Dm&&(Dm=clearInterval(Dm))):(Dm||(jx=Nm.now(),Dm=setInterval(Dme,$O)),kg=1,BO(OO))}}f(U6,"xR");var kg,Im,Dm,$O,V6,qx,jx,sp,Gx,Nm,BO,Mme=Y(()=>{"use strict";kg=0,Im=0,Dm=0,$O=1e3,jx=0,sp=0,Gx=0,Nm=typeof performance=="object"&&performance.now?performance:Date,BO=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},s(G6,"now"),s(Rme,"clearNow"),s(zx,"Timer"),zx.prototype=MO.prototype={constructor:zx,restart:s(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?G6():+r)+(t==null?0:+t),!this._next&&qx!==this&&(qx?qx._next=this:V6=this,qx=this),this._call=e,this._time=r,U6()},"restart"),stop:s(function(){this._call&&(this._call=null,this._time=1/0,U6())},"stop")},s(MO,"timer"),s(Ime,"timerFlush"),s(OO,"wake"),s(Dme,"poke"),s(Nme,"nap"),s(U6,"sleep")});function PO(e,t,r){var i=new zx;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}f(PO,"Yv");var v2t=Y(()=>{"use strict";Mme(),s(PO,"default")}),FO=Y(()=>{"use strict";Mme(),v2t()});function Ux(e,t,r,i,n,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Ome(e,r,{name:t,index:i,group:n,on:$me,tween:Bme,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:zO})}f(Ux,"Au");function W6(e,t){var r=Dl(e,t);if(r.state>zO)throw new Error("too late; already scheduled");return r}f(W6,"Xv");function vc(e,t){var r=Dl(e,t);if(r.state>Vx)throw new Error("too late; already running");return r}f(vc,"ha");function Dl(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}f(Dl,"$n");function Ome(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=MO(a,0,r.time);function a(u){r.state=qO,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}f(a,"a"),s(a,"schedule");function o(u){var d,p,g,m;if(r.state!==qO)return h();for(d in i)if(m=i[d],m.name===r.name){if(m.state===Vx)return PO(o);m.state===jO?(m.state=Wx,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete i[d]):+d<t&&(m.state=Wx,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete i[d])}if(PO(function(){r.state===Vx&&(r.state=jO,r.timer.restart(l,r.delay,r.time),l(u))}),r.state=H6,r.on.call("start",e,e.__data__,r.index,r.group),r.state===H6){for(r.state=Vx,n=new Array(g=r.tween.length),d=0,p=-1;d<g;++d)(m=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(n[++p]=m);n.length=p+1}}f(o,"s"),s(o,"start");function l(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(h),r.state=Y6,1),p=-1,g=n.length;++p<g;)n[p].call(e,d);r.state===Y6&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}f(l,"l"),s(l,"tick");function h(){r.state=Wx,r.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}f(h,"u"),s(h,"stop")}f(Ome,"SBe");var $me,Bme,zO,qO,H6,Vx,jO,Y6,Wx,rl=Y(()=>{"use strict";ife(),FO(),$me=rfe("start","end","cancel","interrupt"),Bme=[],zO=0,qO=1,H6=2,Vx=3,jO=4,Y6=5,Wx=6,s(Ux,"default"),s(W6,"init"),s(vc,"set"),s(Dl,"get"),s(Ome,"create")});function Pme(e,t){var r=e.__transition,i,n,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}n=i.state>H6&&i.state<Y6,i.state=Wx,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}f(Pme,"Kv");var b2t=Y(()=>{"use strict";rl(),s(Pme,"default")});function Fme(e){return this.each(function(){Pme(this,e)})}f(Fme,"TR");var x2t=Y(()=>{"use strict";b2t(),s(Fme,"default")});function zme(e,t){var r,i;return function(){var n=vc(this,e),a=n.tween;if(a!==r){i=r=a;for(var o=0,l=i.length;o<l;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}f(zme,"EBe");function qme(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=vc(this,e),o=a.tween;if(o!==i){n=(i=o).slice();for(var l={name:t,value:r},h=0,u=n.length;h<u;++h)if(n[h].name===t){n[h]=l;break}h===u&&n.push(l)}a.tween=n}}f(qme,"ABe");function jme(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Dl(this.node(),r).tween,n=0,a=i.length,o;n<a;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?zme:qme)(r,e,t))}f(jme,"CR");function X6(e,t,r){var i=e._id;return e.each(function(){var n=vc(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Dl(n,i).value[t]}}f(X6,"eg");var K6=Y(()=>{"use strict";rl(),s(zme,"tweenRemove"),s(qme,"tweenFunction"),s(jme,"default"),s(X6,"tweenValue")});function GO(e,t){var r;return(typeof t=="number"?Il:t instanceof ip?Px:(r=ip(t))?(t=r,Px):AO)(e,t)}f(GO,"Qv");var Gme=Y(()=>{"use strict";$x(),Fx(),s(GO,"default")});function Ume(e){return function(){this.removeAttribute(e)}}f(Ume,"_Be");function Vme(e){return function(){this.removeAttributeNS(e.space,e.local)}}f(Vme,"DBe");function Wme(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttribute(e);return o===n?null:o===i?a:a=t(i=o,r)}}f(Wme,"RBe");function Hme(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?a:a=t(i=o,r)}}f(Hme,"LBe");function Yme(e,t,r){var i,n,a;return function(){var o,l=r(this),h;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),h=l+"",o===h?null:o===i&&h===n?a:(n=h,a=t(i=o,l)))}}f(Yme,"MBe");function Xme(e,t,r){var i,n,a;return function(){var o,l=r(this),h;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),h=l+"",o===h?null:o===i&&h===n?a:(n=h,a=t(i=o,l)))}}f(Xme,"NBe");function Kme(e,t){var r=_x(e),i=r==="transform"?Ame:GO;return this.attrTween(e,typeof t=="function"?(r.local?Xme:Yme)(r,i,X6(this,"attr."+e,t)):t==null?(r.local?Vme:Ume)(r):(r.local?Hme:Wme)(r,i,t))}f(Kme,"wR");var k2t=Y(()=>{"use strict";Fx(),bh(),K6(),Gme(),s(Ume,"attrRemove"),s(Vme,"attrRemoveNS"),s(Wme,"attrConstant"),s(Hme,"attrConstantNS"),s(Yme,"attrFunction"),s(Xme,"attrFunctionNS"),s(Kme,"default")});function Zme(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}f(Zme,"IBe");function Qme(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}f(Qme,"OBe");function Jme(e,t){var r,i;
vendor: 7,273 bytes, line 393
393function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Qme(e,a)),r}return f(n,"n"),s(n,"tween"),n._value=t,n}f(Jme,"PBe");function eye(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Zme(e,a)),r}return f(n,"n"),s(n,"tween"),n._value=t,n}f(eye,"BBe");function tye(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=_x(e);return this.tween(r,(i.local?Jme:eye)(i,t))}f(tye,"SR");var T2t=Y(()=>{"use strict";bh(),s(Zme,"attrInterpolate"),s(Qme,"attrInterpolateNS"),s(Jme,"attrTweenNS"),s(eye,"attrTween"),s(tye,"default")});function rye(e,t){return function(){W6(this,e).delay=+t.apply(this,arguments)}}f(rye,"FBe");function iye(e,t){return t=+t,function(){W6(this,e).delay=t}}f(iye,"$Be");function nye(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?rye:iye)(t,e)):Dl(this.node(),t).delay}f(nye,"ER");var w2t=Y(()=>{"use strict";rl(),s(rye,"delayFunction"),s(iye,"delayConstant"),s(nye,"default")});function aye(e,t){return function(){vc(this,e).duration=+t.apply(this,arguments)}}f(aye,"zBe");function sye(e,t){return t=+t,function(){vc(this,e).duration=t}}f(sye,"GBe");function oye(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?aye:sye)(t,e)):Dl(this.node(),t).duration}f(oye,"AR");var C2t=Y(()=>{"use strict";rl(),s(aye,"durationFunction"),s(sye,"durationConstant"),s(oye,"default")});function lye(e,t){if(typeof t!="function")throw new Error;return function(){vc(this,e).ease=t}}f(lye,"VBe");function cye(e){var t=this._id;return arguments.length?this.each(lye(t,e)):Dl(this.node(),t).ease}f(cye,"_R");var E2t=Y(()=>{"use strict";rl(),s(lye,"easeConstant"),s(cye,"default")});function hye(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;vc(this,e).ease=r}}f(hye,"WBe");function uye(e){if(typeof e!="function")throw new Error;return this.each(hye(this._id,e))}f(uye,"DR");var S2t=Y(()=>{"use strict";rl(),s(hye,"easeVarying"),s(uye,"default")});function dye(e){typeof e!="function"&&(e=ZM(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,l=i[n]=[],h,u=0;u<o;++u)(h=a[u])&&e.call(h,h.__data__,u,a)&&l.push(h);return new kh(i,this._parents,this._name,this._id)}f(dye,"RR");var _2t=Y(()=>{"use strict";bh(),Mm(),s(dye,"default")});function pye(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),o=new Array(i),l=0;l<a;++l)for(var h=t[l],u=r[l],d=h.length,p=o[l]=new Array(d),g,m=0;m<d;++m)(g=h[m]||u[m])&&(p[m]=g);for(;l<i;++l)o[l]=t[l];return new kh(o,this._parents,this._name,this._id)}f(pye,"LR");var A2t=Y(()=>{"use strict";Mm(),s(pye,"default")});function gye(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}f(gye,"qBe");function fye(e,t,r){var i,n,a=gye(t)?W6:vc;return function(){var o=a(this,e),l=o.on;l!==i&&(n=(i=l).copy()).on(t,r),o.on=n}}f(fye,"UBe");function mye(e,t){var r=this._id;return arguments.length<2?Dl(this.node(),r).on.on(e):this.each(fye(r,e,t))}f(mye,"MR");var L2t=Y(()=>{"use strict";rl(),s(gye,"start"),s(fye,"onFunction"),s(mye,"default")});function yye(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}f(yye,"HBe");function vye(){return this.on("end.remove",yye(this._id))}f(vye,"NR");var R2t=Y(()=>{"use strict";s(yye,"removeFunction"),s(vye,"default")});function bye(e){var t=this._name,r=this._id;typeof e!="function"&&(e=A6(e));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var l=i[o],h=l.length,u=a[o]=new Array(h),d,p,g=0;g<h;++g)(d=l[g])&&(p=e.call(d,d.__data__,g,l))&&("__data__"in d&&(p.__data__=d.__data__),u[g]=p,Ux(u[g],t,r,g,u,Dl(d,r)));return new kh(a,this._parents,t,r)}f(bye,"IR");var I2t=Y(()=>{"use strict";bh(),Mm(),rl(),s(bye,"default")});function xye(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KM(e));for(var i=this._groups,n=i.length,a=[],o=[],l=0;l<n;++l)for(var h=i[l],u=h.length,d,p=0;p<u;++p)if(d=h[p]){for(var g=e.call(d,d.__data__,p,h),m,y=Dl(d,r),x=0,C=g.length;x<C;++x)(m=g[x])&&Ux(m,t,r,x,g,y);a.push(g),o.push(d)}return new kh(a,o,t,r)}f(xye,"OR");var D2t=Y(()=>{"use strict";bh(),Mm(),rl(),s(xye,"default")});function kye(){return new Tye(this._groups,this._parents)}f(kye,"PR");var Tye,N2t=Y(()=>{"use strict";bh(),Tye=_m.prototype.constructor,s(kye,"default")});function wye(e,t){var r,i,n;return function(){var a=yg(this,e),o=(this.style.removeProperty(e),yg(this,e));return a===o?null:a===r&&o===i?n:n=t(r=a,i=o)}}f(wye,"jBe");function UO(e){return function(){this.style.removeProperty(e)}}f(UO,"SZ");function Cye(e,t,r){var i,n=r+"",a;return function(){var o=yg(this,e);return o===n?null:o===i?a:a=t(i=o,r)}}f(Cye,"XBe");function Eye(e,t,r){var i,n,a;return function(){var o=yg(this,e),l=r(this),h=l+"";return l==null&&(h=l=(this.style.removeProperty(e),yg(this,e))),o===h?null:o===i&&h===n?a:(n=h,a=t(i=o,l))}}f(Eye,"KBe");function Sye(e,t){var r,i,n,a="style."+t,o="end."+a,l;return function(){var h=vc(this,e),u=h.on,d=h.value[a]==null?l||(l=UO(t)):void 0;(u!==r||n!==d)&&(i=(r=u).copy()).on(o,n=d),h.on=i}}f(Sye,"ZBe");function _ye(e,t,r){var i=(e+="")=="transform"?_me:GO;return t==null?this.styleTween(e,wye(e,i)).on("end.style."+e,UO(e)):typeof t=="function"?this.styleTween(e,Eye(e,i,X6(this,"style."+e,t))).each(Sye(this._id,e)):this.styleTween(e,Cye(e,i,t),r).on("end.style."+e,null)}f(_ye,"BR");var M2t=Y(()=>{"use strict";Fx(),bh(),rl(),K6(),Gme(),s(wye,"styleNull"),s(UO,"styleRemove"),s(Cye,"styleConstant"),s(Eye,"styleFunction"),s(Sye,"styleMaybeRemove"),s(_ye,"default")});function Aye(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}f(Aye,"QBe");function Lye(e,t,r){var i,n;function a(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&Aye(e,o,r)),i}return f(a,"a"),s(a,"tween"),a._value=t,a}f(Lye,"JBe");function Rye(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Lye(e,t,r!=null?r:""))}f(Rye,"FR");var O2t=Y(()=>{"use strict";s(Aye,"styleInterpolate"),s(Lye,"styleTween"),s(Rye,"default")});function Iye(e){return function(){this.textContent=e}}f(Iye,"eFe");function Dye(e){return function(){var t=e(this);this.textContent=t!=null?t:""}}f(Dye,"tFe");function Nye(e){return this.tween("text",typeof e=="function"?Dye(X6(this,"text",e)):Iye(e==null?"":e+""))}f(Nye,"$R");var $2t=Y(()=>{"use strict";K6(),s(Iye,"textConstant"),s(Dye,"textFunction"),s(Nye,"default")});function Mye(e){return function(t){this.textContent=e.call(this,t)}}f(Mye,"rFe");function Oye(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&Mye(n)),t}return f(i,"i"),s(i,"tween"),i._value=e,i}f(Oye,"iFe");function $ye(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Oye(e))}f($ye,"zR");var B2t=Y(()=>{"use strict";s(Mye,"textInterpolate"),s(Oye,"textTween"),s($ye,"default")});
393function Bye(){for(var e=this._name,t=this._id,r=VO(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],l=o.length,h,u=0;u<l;++u)if(h=o[u]){var d=Dl(h,t);Ux(h,e,r,u,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new kh(i,this._parents,e,r)}f(Bye,"GR");var P2t=Y(()=>{"use strict";Mm(),rl(),s(Bye,"default")});function Pye(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var l={value:o},h={value:s(function(){--n===0&&a()},"value")};r.each(function(){var u=vc(this,i),d=u.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(h)),u.on=t}),n===0&&a()})}f(Pye,"VR");var F2t=Y(()=>{"use strict";rl(),s(Pye,"default")});function kh(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}f(kh,"Ka");function Fye(e){return _m().transition(e)}f(Fye,"MZ");function VO(){return++zye}f(VO,"Zk");var zye,Th,Mm=Y(()=>{"use strict";bh(),k2t(),T2t(),w2t(),C2t(),E2t(),S2t(),_2t(),A2t(),L2t(),R2t(),I2t(),D2t(),N2t(),M2t(),O2t(),$2t(),B2t(),P2t(),K6(),F2t(),zye=0,s(kh,"Transition"),s(Fye,"transition"),s(VO,"newId"),Th=_m.prototype,kh.prototype=Fye.prototype={constructor:kh,select:bye,selectAll:xye,selectChild:Th.selectChild,selectChildren:Th.selectChildren,filter:dye,merge:pye,selection:kye,transition:Bye,call:Th.call,nodes:Th.nodes,node:Th.node,size:Th.size,empty:Th.empty,each:Th.each,on:mye,attr:Kme,attrTween:tye,style:_ye,styleTween:Rye,text:Nye,textTween:$ye,remove:vye,tween:jme,delay:nye,duration:oye,ease:cye,easeVarying:uye,end:Pye,[Symbol.iterator]:Th[Symbol.iterator]}});function qye(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}f(qye,"Qk");var z2t=Y(()=>{"use strict";s(qye,"cubicInOut")}),jye=Y(()=>{"use strict";z2t()});function Gye(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}f(Gye,"sFe");function Uye(e){var t,r;e instanceof kh?(t=e._id,e=e._name):(t=VO(),(r=Vye).time=G6(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],l=o.length,h,u=0;u<l;++u)(h=o[u])&&Ux(h,e,t,u,o,r||Gye(h,t));return new kh(i,this._parents,e,t)}f(Uye,"qR");var Vye,q2t=Y(()=>{"use strict";Mm(),rl(),jye(),FO(),Vye={time:null,delay:0,duration:250,ease:qye},s(Gye,"inherit"),s(Uye,"default")}),j2t=Y(()=>{"use strict";bh(),x2t(),q2t(),_m.prototype.interrupt=Fme,_m.prototype.transition=Uye}),WO=Y(()=>{"use strict";j2t()}),G2t=Y(()=>{"use strict"}),U2t=Y(()=>{"use strict"}),V2t=Y(()=>{"use strict"});function HO(e){return[+e[0],+e[1]]}f(HO,"$Z");function Wye(e){return[HO(e[0]),HO(e[1])]}f(Wye,"oFe");function Z6(e){return{type:e}}f(Z6,"UR");var W2t,H2t,Y2t,X2t,K2t,Z2t,Q2t=Y(()=>{"use strict";WO(),G2t(),U2t(),V2t(),{abs:W2t,max:H2t,min:Y2t}=Math,s(HO,"number1"),s(Wye,"number2"),X2t={name:"x",handles:["w","e"].map(Z6),input:s(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:s(function(e){return e&&[e[0][0],e[1][0]]},"output")},K2t={name:"y",handles:["n","s"].map(Z6),input:s(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:s(function(e){return e&&[e[0][1],e[1][1]]},"output")},Z2t={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Z6),input:s(function(e){return e==null?null:Wye(e)},"input"),output:s(function(e){return e},"output")},s(Z6,"type")}),J2t=Y(()=>{"use strict";Q2t()});function YO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}f(YO,"VZ");function Hye(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return YO;let r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}f(Hye,"cFe");function Yye(){return new eE}f(Yye,"WZ");var Q6,J6,op,Xye,eE,evt=Y(()=>{"use strict";var e;Q6=Math.PI,J6=2*Q6,op=1e-6,Xye=J6-op,s(YO,"append"),s(Hye,"append
393Round"),eE=(e=class{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?YO:Hye(r)}moveTo(r,i){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,i){this._append`L${this._x1=+r},${this._y1=+i}`}quadraticCurveTo(r,i,n,a){this._append`Q${+r},${+i},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(r,i,n,a,o,l){this._append`C${+r},${+i},${+n},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(r,i,n,a,o){if(r=+r,i=+i,n=+n,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,h=this._y1,u=n-r,d=a-i,p=l-r,g=h-i,m=p*p+g*g;if(this._x1===null)this._append`M${this._x1=r},${this._y1=i}`;else if(m>op)if(!(Math.abs(g*u-d*p)>op)||!o)this._append`L${this._x1=r},${this._y1=i}`;else{let y=n-l,x=a-h,C=u*u+d*d,w=y*y+x*x,_=Math.sqrt(C),S=Math.sqrt(m),R=o*Math.tan((Q6-Math.acos((C+m-w)/(2*_*S)))/2),b=R/S,v=R/_;Math.abs(b-1)>op&&this._append`L${r+b*p},${i+b*g}`,this._append`A${o},${o},0,0,${+(g*y>p*x)},${this._x1=r+v*u},${this._y1=i+v*d}`}}arc(r,i,n,a,o,l){if(r=+r,i=+i,n=+n,l=!!l,n<0)throw new Error(`negative radius: ${n}`);let h=n*Math.cos(a),u=n*Math.sin(a),d=r+h,p=i+u,g=1^l,m=l?a-o:o-a;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>op||Math.abs(this._y1-p)>op)&&this._append`L${d},${p}`,n&&(m<0&&(m=m%J6+J6),m>Xye?this._append`A${n},${n},0,1,${g},${r-h},${i-u}A${n},${n},0,1,${g},${this._x1=d},${this._y1=p}`:m>op&&this._append`A${n},${n},0,${+(m>=Q6)},${g},${this._x1=r+n*Math.cos(o)},${this._y1=i+n*Math.sin(o)}`)}rect(r,i,n,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+i}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}},f(e,"ap"),s(e,"Path"),e),s(Yye,"path"),Yye.prototype=eE.prototype}),Kye=Y(()=>{"use strict";evt()}),tvt=Y(()=>{"use strict"}),rvt=Y(()=>{"use strict"}),ivt=Y(()=>{"use strict"}),nvt=Y(()=>{"use strict"}),avt=Y(()=>{"use strict"}),svt=Y(()=>{"use strict"}),ovt=Y(()=>{"use strict"});function Zye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}f(Zye,"XR");function Hx(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>
vendor: 16,498 bytes, line 393
3931?i[0]+i.slice(2):i,+e.slice(r+1)]}f(Hx,"sp");var tE=Y(()=>{"use strict";s(Zye,"default"),s(Hx,"formatDecimalParts")});function Tg(e){return e=Hx(Math.abs(e)),e?e[1]:NaN}f(Tg,"Cl");var rE=Y(()=>{"use strict";tE(),s(Tg,"default")});function Qye(e,t){return function(r,i){for(var n=r.length,a=[],o=0,l=e[0],h=0;n>0&&l>0&&(h+l+1>i&&(l=Math.max(1,i-h)),a.push(r.substring(n-=l,n+l)),!((h+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}f(Qye,"KR");var lvt=Y(()=>{"use strict";s(Qye,"default")});function Jye(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}f(Jye,"ZR");var cvt=Y(()=>{"use strict";s(Jye,"default")});function Yx(e){if(!(t=e2e.exec(e)))throw new Error("invalid format: "+e);var t;return new iE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}f(Yx,"Kh");function iE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}f(iE,"ew");var e2e,t2e=Y(()=>{"use strict";e2e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,s(Yx,"formatSpecifier"),Yx.prototype=iE.prototype,s(iE,"FormatSpecifier"),iE.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 r2e(e){e:for(var t=e.length,r=1,i=-1,n;r<t;++r)switch(e[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+e[r])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(n+1):e}f(r2e,"JR");var hvt=Y(()=>{"use strict";s(r2e,"default")});function i2e(e,t){var r=Hx(e,t);if(!r)return e+"";var i=r[0],n=r[1],a=n-(n2e=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Hx(e,Math.max(0,t+a-1))[0]}f(i2e,"tL");var n2e,a2e=Y(()=>{"use strict";tE(),s(i2e,"default")});function XO(e,t){var r=Hx(e,t);if(!r)return e+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}f(XO,"tw");var uvt=Y(()=>{"use strict";tE(),s(XO,"default")}),KO,dvt=Y(()=>{"use strict";tE(),a2e(),uvt(),KO={"%":s((e,t)=>(e*100).toFixed(t),"%"),b:s(e=>Math.round(e).toString(2),"b"),c:s(e=>e+"","c"),d:Zye,e:s((e,t)=>e.toExponential(t),"e"),f:s((e,t)=>e.toFixed(t),"f"),g:s((e,t)=>e.toPrecision(t),"g"),o:s(e=>Math.round(e).toString(8),"o"),p:s((e,t)=>XO(e*100,t),"p"),r:XO,s:i2e,X:s(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:s(e=>Math.round(e).toString(16),"x")}});function ZO(e){return e}f(ZO,"rw");var pvt=Y(()=>{"use strict";s(ZO,"default")});function s2e(e){var t=e.grouping===void 0||e.thousands===void 0?ZO:Qye(QO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ZO:Jye(QO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function u(p){p=Yx(p);var g=p.fill,m=p.align,y=p.sign,x=p.symbol,C=p.zero,w=p.width,_=p.comma,S=p.precision,R=p.trim,b=p.type;b==="n"?(_=!0,b="g"):KO[b]||(S===void 0&&(S=12),R=!0,b="g"),(C||g==="0"&&m==="=")&&(C=!0,g="0",m="=");var v=x==="$"?r:x==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k=x==="$"?i:/[%p]/.test(b)?o:"",E=KO[b],A=/[defgprs%]/.test(b);S=S===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I($){var O=v,j=k,D,P,F;if(b==="c")j=E($)+j,$="";else{$=+$;var U=$<0||1/$<0;if($=isNaN($)?h:E(Math.abs($),S),R&&($=r2e($)),U&&+$==0&&y!=="+"&&(U=!1),O=(U?y==="("?y:l:y==="-"||y==="("?"":y)+O,j=(b==="s"?JO[8+n2e/3]:"")+j+(U&&y==="("?")":""),A){for(D=-1,P=$.length;++D<P;)if(F=$.charCodeAt(D),48>F||F>57){j=(F===46?n+$.slice(D+1):$.slice(D))+j,$=$.slice(0,D);break}}}_&&!C&&($=t($,1/0));var z=O.length+$.length+j.length,V=z<w?new Array(w-z+1).join(g):"";switch(_&&C&&($=t(V+$,V.length?w-j.length:1/0),V=""),m){case"<":$=O+$+j+V;break;case"=":$=O+V+$+j;break;case"^":$=V.slice(0,z=V.length>>1)+O+$+j+V.slice(z);break;default:$=V+O+$+j;break}return a($)}return f(I,"P"),s(I,"format"),I.toString=function(){return p+""},I}f(u,"h"),s(u,"newFormat");function d(p,g){var m=u((p=Yx(p),p.type="f",p)),y=Math.max(-8,Math.min(8,Math.floor(Tg(g)/3)))*3,x=Math.pow(10,-y),C=JO[8+y/3];return function(w){return m(x*w)+C}}return f(d,"d"),s(d,"formatPrefix"),{format:u,formatPrefix:d}}f(s2e,"nL");var QO,JO,gvt=Y(()=>{"use strict";rE(),lvt(),cvt(),t2e(),hvt(),dvt(),a2e(),pvt(),QO=Array.prototype.map,JO=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"],s(s2e,"default")});function o2e(e){return nE=s2e(e),wg=nE.format,l2e=nE.formatPrefix,nE}f(o2e,"aL");var nE,wg,l2e,fvt=Y(()=>{"use strict";gvt(),o2e({thousands:",",grouping:[3],currency:["$",""]}),s(o2e,"defaultLocale")});function c2e(e){return Math.max(0,-Tg(Math.abs(e)))}f(c2e,"aw");var mvt=Y(()=>{"use strict";rE(),s(c2e,"default")});function h2e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tg(t)/3)))*3-Tg(Math.abs(e)))}f(h2e,"sw");var yvt=Y(()=>{"use strict";rE(),s(h2e,"default")});function u2e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tg(t)-Tg(e))+1}f(u2e,"ow");var vvt=Y(()=>{"use strict";rE(),s(u2e,"default")}),d2e=Y(()=>{"use strict";fvt(),t2e(),mvt(),yvt(),vvt()}),bvt=Y(()=>{"use strict"});function p2e(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}f(p2e,"hFe");function g2e(){return this.eachAfter(p2e)}f(g2e,"oL");var xvt=Y(()=>{"use strict";s(p2e,"count"),s(g2e,"default")});function f2e(e,t){let r=-1;for(let i of this)e.call(t,i,++r,this);return this}f(f2e,"lL");var kvt=Y(()=>{"use strict";s(f2e,"default")});function m2e(e,t){for(var r=this,i=[r],n,a,o=-1;r=i.pop();)if(e.call(t,r,++o,this),n=r.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}f(m2e,"cL");var Tvt=Y(()=>{"use strict";s(m2e,"default")});function y2e(e,t){for(var r=this,i=[r],n=[],a,o,l,h=-1;r=i.pop();)if(n.push(r),a=r.children)for(o=0,l=a.length;o<l;++o)i.push(a[o]);for(;r=n.pop();)e.call(t,r,++h,this);return this}f(y2e,"uL");var wvt=Y(()=>{"use strict";s(y2e,"default")});function v2e(e,t){let r=-1;for(let i of this)if(e.call(t,i,++r,this))return i}f(v2e,"hL");var Cvt=Y(()=>{"use strict";s(v2e,"default")});function b2e(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,i=t.children,n=i&&i.length;--n>=0;)r+=i[n].value;t.value=r})}f(b2e,"dL");var Evt=Y(()=>{"use strict";s(b2e,"default")});function x2e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}f(x2e,"fL");var Svt=Y(()=>{"use strict";s(x2e,"default")});function k2e(e){for(var t=this,r=T2e(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var n=i.length;e!==r;)i.splice(n,0,e),e=e.parent;return i}f(k2e,"pL");function T2e(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),n=null;for(e=r.pop(),t=i.pop();e===t;)n=e,e=r.pop(),t=i.pop();return n}f(T2e,"dFe");var _vt=Y(()=>{"use strict";s(k2e,"default"),s(T2e,"leastCommonAncestor")});function w2e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}f(w2e,"mL");var Avt=Y(()=>{"use strict";s(w2e,"default")});function C2e(){return Array.from(this)}f(C2e,"gL");var Lvt=Y(()=>{"use strict";s(C2e,"default")});function E2e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}f(E2e,"yL");var Rvt=Y(()=>{"use strict";s(E2e,"default")});function S2e(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}f(S2e,"vL");var Ivt=Y(()=>{"use strict";s(S2e,"default")});function*_2e(){var e=this,t,r=[e],i,n,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,i=e.children)for(n=0,a=i.length;n<a;++n)r.push(i[n]);while(r.length)}f(_2e,"xL");var Dvt=Y(()=>{"use strict";s(_2e,"default")});function aE(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=R2e)):t===void 0&&(t=L2e);for(var r=new Xx(e),i,n=[r],a,o,l,h;i=n.pop();)if((o=t(i.data))&&(h=(o=Array.from(o)).length))for(i.children=o,l=h-1;l>=0;--l)n.push(a=o[l]=new Xx(o[l])),a.parent=i,a.depth=i.depth+1;return r.eachBefore(D2e)}f(aE,"tg");function A2e(){return aE(this).eachBefore(I2e)}f(A2e,"fFe");function L2e(e){return e.children}f(L2e,"pFe");function R2e(e){return Array.isArray(e)?e[1]:null}f(R2e,"mFe");function I2e(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}f(I2e,"gFe");function D2e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}f(D2e,"yFe");function Xx(e){this.data=e,this.depth=this.height=0,this.parent=null}f(Xx,"tx");var Nvt=Y(()=>{"use strict";xvt(),kvt(),Tvt(),wvt(),Cvt(),Evt(),Svt(),_vt(),Avt(),Lvt(),Rvt(),Ivt(),Dvt(),s(aE,"hierarchy"),s(A2e,"node_copy"),s(L2e,"objectChildren"),s(R2e,"mapChildren"),s(I2e,"copyData"),s(D2e,"computeHeight"),s(Xx,"Node"),Xx.prototype=aE.prototype={constructor:Xx,count:g2e,each:f2e,eachAfter:y2e,eachBefore:m2e,find:v2e,sum:b2e,sort:x2e,path:k2e,ancestors:w2e,descendants:C2e,leaves:E2e,links:S2e,copy:A2e,[Symbol.iterator]:_2e}});function N2e(e){if(typeof e!="function")throw new Error;return e}f(N2e,"EQ");var Mvt=Y(()=>{"use strict";s(N2e,"required")});function Om(){return 0}f(Om,"rg");function $m(e){return function(){return e}}f($m,"op");var Ovt=Y(()=>{"use strict";s(Om,"constantZero"),s($m,"default")});function M2e(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}f(M2e,"bL");var $vt=Y(()=>{"use strict";s(M2e,"default")});function O2e(e,t,r,i,n){for(var a=e.children,o,l=-1,h=a.length,u=e.value&&(i-t)/e.value;++l<h;)o=a[l],o.y0=r,o.y1=n,o.x0=t,o.x1=t+=o.value*u}f(O2e,"TL");var Bvt=Y(()=>{"use strict";s(O2e,"default")});function $2e(e,t,r,i,n){for(var a=e.children,o,l=-1,h=a.length,u=e.value&&(n-r)/e.value;++l<h;)o=a[l],o.x0=t,o.x1=i,o.y0=r,o.y1=r+=o.value*u}f($2e,"CL");var Pvt=Y(()=>{"use strict";s($2e,"default")});function B2e(e,t,r,i,n,a){for(var o=[],l=t.children,h,u,d=0,p=0,g=l.length,m,y,x=t.value,C,w,_,S,R,b,v;d<g;){m=n-r,y=a-i;do C=l[p++].value;while(!C&&p<g);for(w=_=C,b=Math.max(y/m,m/y)/(x*e),v=C*C*b,R=Math.max(_/v,v/w);p<g;++p){if(C+=u=l[p].value,u<w&&(w=u),u>_&&(_=u),v=C*C*b,S=Math.max(_/v,v/w),S>R){C-=u;break}R=S}o.push(h={value:C,dice:m<y,children:l.slice(d,p)}),h.dice?O2e(h,r,i,n,x?i+=y*C/x:a):$2e(h,r,i,x?r+=m*C/x:n,a),x-=C,d=p}return o}f(B2e,"xFe");var P2e,F2e,Fvt=Y(()=>{"use strict";Bvt(),Pvt(),P2e=(1+Math.sqrt(5))/2,s(B2e,"squarifyRatio"),F2e=s(f((function e(t){function r(i,n,a,o,l){B2e(t,i,n,a,o,l)}return f(r,"r"),s(r,"squarify"),r.ratio=function(i){return e((i=+i)>1?i:1)},r}),"e"),"custom")(P2e)});function z2e(){var e=F2e,t=!1,r=1,i=1,n=[0],a=Om,o=Om,l=Om,h=Om,u=Om;function d(g){return g.x0=g.y0=0,g.x1=r,g.y1=i,g.eachBefore(p),n=[0],t&&g.eachBefore(M2e),g}f(d,"d"),s(d,"treemap");function p(g){var m=n[g.depth],y=g.x0+m,x=g.y0+m,C=g.x1-m,w=g.y1-m;C<y&&(y=C=(y+C)/2),w<x&&(x=w=(x+w)/2),g.x0=y,g.y0=x,g.x1=C,g.y1=w,g.children&&(m=n[g.depth+1]=a(g)/2,y+=u(g)-m,x+=o(g)-m,C-=l(g)-m,w-=h(g)-m,C<y&&(y=C=(y+C)/2),w<x&&(x=w=(x+w)/2),e(g,y,x,C,w))}return f(p,"f"),s(p,"positionNode"),d.round=function(g){return arguments.length?(t=!!g,d):t},d.size=function(g){return arguments.length?(r=+g[0],i=+g[1],d):[r,i]},d.tile=function(g){return arguments.length?(e=N2e(g),d):e},d.padding=function(g){return arguments.length?d.paddingInner(g).paddingOuter(g):d.paddingInner()},d.paddingInner=function(g){return arguments.length?(a=typeof g=="function"?g:$m(+g),d):a},d.paddingOuter=function(g){return arguments.length?d.paddingTop(g).paddingRight(g).paddingBottom(g).paddingLeft(g):d.paddingTop()},d.paddingTop=function(g){return arguments.length?(o=typeof g=="function"?g:$m(+g),d):o},d.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:$m(+g),d):l},d.paddingBottom=function(g){return arguments.length?(h=typeof g=="function"?g:$m(+g),d):h},d.paddingLeft=function(g){return arguments.length?(u=typeof g=="function"?g:$m(+g),d):u},d}f(z2e,"lw");var zvt=Y(()=>{"use strict";$vt(),Fvt(),Mvt(),Ovt(),s(z2e,"default")}),qvt=Y(()=>{"use strict";Nvt(),zvt()}),jvt=Y(()=>{"use strict"}),Gvt=Y(()=>{"use strict"});function Kx(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}f(Kx,"Zh");var sE=Y(()=>{"use strict";s(Kx,"initRange")});function lp(){var e=new qM,t=[],r=[],i=e$;function n(a){let o=e.get(a);if(o===void 0){if(i!==e$)return i;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return f(n,"n"),s(n,"scale"),n.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new qM;for(let o of a)e.has(o)||e.set(o,t.push(o)-1);return n},n.range=function(a){return arguments.length?(r=Array.from(a),n):r.slice()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return lp(t,r).unknown(i)},Kx.apply(n,arguments),n}f(lp,"ro");var e$,q2e=Y(()=>{"use strict";mg(),sE(),e$=Symbol("implicit"),s(lp,"ordinal")});function oE(){var e=lp().unknown(void 0),t=e.domain,r=e.range,i=0,n=1,a,o,l=!1,h=0,u=0,d=.5;delete e.unknown;function p(){var g=t().length,m=n<i,y=m?n:i,x=m?i:n;a=(x-y)/Math.max(1,g-h+u*2),l&&(a=Math.floor(a)),y+=(x-y-a*(g-h))*d,o=a*(1-h),l&&(y=Math.round(y),o=Math.round(o));var C=Uge(g).map(function(w){return y+a*w});return r(m?C.reverse():C)}return f(p,"f"),s(p,"rescale"),e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([i,n]=g,i=+i,n=+n,p()):[i,n]},e.rangeRound=function(g){return[i,n]=g,i=+i,n=+n,l=!0,p()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(g){return arguments.length?(l=!!g,p()):l},e.padding=function(g){return arguments.length?(h=Math.min(1,u=+g),p()):h},e.paddingInner=function(g){return arguments.length?(h=Math.min(1,g),p()):h},e.paddingOuter=function(g){return arguments.length?(u=+g,p()):u},e.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),p()):d},e.copy=function(){return oE(t(),[i,n]).round(l).paddingInner(h).paddingOuter(u).align(d)},Kx.apply(p(),arguments)}f(oE,"ig");var Uvt=Y(()=>{"use strict";mg(),sE(),q2e(),s(oE,"band")});function j2e(e){return function(){return e}}f(j2e,"SL");var Vvt=Y(()=>{"use strict";s(j2e,"constants")});function G2e(e){return+e}f(G2e,"EL");var Wvt=Y(()=>{"use strict";s(G2e,"number")});function Cg(e){return e}f(Cg,"ng");function lE(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:j2e(isNaN(t)?NaN:.5)}f(lE,"AL");function U2e(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}f(U2e,"bFe");function V2e(e,t,r){var i=e[0],n=e[1],a=t[0],o=t[1];return n<i?(i=lE(n,i),a=r(o,a)):(i=lE(i,n),a=r(a,o)),function(l){return a(i(l))}}f(V2e,"TFe");function W2e(e,t,r){var i=Math.min(e.length,t.length)-1,n=new Array(i),a=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)n[o]=lE(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(l){var h=Mge(e,l,1,i)-1;return a[h](n[h](l))}}f(W2e,"CFe");function t$(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}f(t$,"cw");function H2e(){var e=i$,t=i$,r=z6,i,n,a,o=Cg,l,h,u;function d(){var g=Math.min(e.length,t.length);return o!==Cg&&(o=U2e(e[0],e[g-1])),l=g>2?W2e:V2e,h=u=null,p}f(d,"d"),s(d,"rescale");function p(g){return g==null||isNaN(g=+g)?a:(h||(h=l(e.map(i),t,r)))(i(o(g)))}return f(p,"f"),s(p,"scale"),p.invert=function(g){return o(n((u||(u=l(t,e.map(i),Il)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,G2e),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Cme,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Cg,d()):o!==Cg},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(a=g,p):a},function(g,m){return i=g,n=m,d()}}f(H2e,"kFe");function r$(){return H2e()(Cg,Cg)}f(r$,"ix");var i$,Y2e=Y(()=>{"use strict";mg(),Fx(),Vvt(),Wvt(),i$=[0,1],s(Cg,"identity"),s(lE,"normalize"),s(U2e,"clamper"),s(V2e,"bimap"),s(W2e,"polymap"),s(t$,"copy"),s(H2e,"transformer"),s(r$,"continuous")});
vendor: 11,075 bytes, line 393
393function X2e(e,t,r,i){var n=C6(e,t,r),a;switch(i=Yx(i!=null?i:",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(a=h2e(n,o))&&(i.precision=a),l2e(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=u2e(n,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=c2e(n))&&(i.precision=a-(i.type==="%")*2);break}}return wg(i)}f(X2e,"DL");var Hvt=Y(()=>{"use strict";mg(),d2e(),s(X2e,"tickFormat")});function K2e(e){var t=e.domain;return e.ticks=function(r){var i=t();return Pge(i[0],i[i.length-1],r!=null?r:10)},e.tickFormat=function(r,i){var n=t();return X2e(n[0],n[n.length-1],r!=null?r:10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),n=0,a=i.length-1,o=i[n],l=i[a],h,u,d=10;for(l<o&&(u=o,o=l,l=u,u=n,n=a,a=u);d-- >0;){if(u=w6(o,l,r),u===h)return i[n]=o,i[a]=l,t(i);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;h=u}return e},e}f(K2e,"wFe");function Eg(){var e=r$();return e.copy=function(){return t$(e,Eg())},Kx.apply(e,arguments),K2e(e)}f(Eg,"kl");var Yvt=Y(()=>{"use strict";mg(),Y2e(),sE(),Hvt(),s(K2e,"linearish"),s(Eg,"linear")});function Z2e(e,t){e=e.slice();var r=0,i=e.length-1,n=e[r],a=e[i],o;return a<n&&(o=r,r=i,i=o,o=n,n=a,a=o),e[r]=t.floor(n),e[i]=t.ceil(a),e}f(Z2e,"RL");var Xvt=Y(()=>{"use strict";s(Z2e,"nice")});function Oa(e,t,r,i){function n(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return f(n,"n"),s(n,"interval"),n.floor=a=>(e(a=new Date(+a)),a),n.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),n.round=a=>{let o=n(a),l=n.ceil(a);return a-o<l-a?o:l},n.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),n.range=(a,o,l)=>{let h=[];if(a=n.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return h;let u;do h.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return h},n.filter=a=>Oa(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(n.count=(a,o)=>(cE.setTime(+a),hE.setTime(+o),e(cE),e(hE),Math.floor(r(cE,hE))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(i?o=>i(o)%a===0:o=>n.count(0,o)%a===0):n)),n}f(Oa,"ki");var cE,hE,cp=Y(()=>{"use strict";cE=new Date,hE=new Date,s(Oa,"timeInterval")}),Sg,Kvt,Q2e=Y(()=>{"use strict";cp(),Sg=Oa(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),Sg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oa(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Sg),Kvt=Sg.range}),qu,Zvt,J2e=Y(()=>{"use strict";cp(),qu=Oa(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Zvt=qu.range}),Bm,Qvt,n$,Jvt,eve=Y(()=>{"use strict";cp(),Bm=Oa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),Qvt=Bm.range,n$=Oa(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),Jvt=n$.range}),Pm,ebt,a$,tbt,tve=Y(()=>{"use strict";cp(),Pm=Oa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),ebt=Pm.range,a$=Oa(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),tbt=a$.range}),hp,rbt,uE,ibt,s$,nbt,rve=Y(()=>{"use strict";cp(),hp=Oa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),rbt=hp.range,uE=Oa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),ibt=uE.range,s$=Oa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),nbt=s$.range});function up(e){return Oa(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}f(up,"up");function dp(e){return Oa(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}f(dp,"hp");var Fm,zm,o$,l$,pp,c$,h$,abt,sbt,obt,lbt,cbt,hbt,ubt,dE,Zx,ive,nve,_g,ave,sve,dbt,pbt,gbt,fbt,mbt,ybt,vbt,ove=Y(()=>{"use strict";cp(),s(up,"timeWeekday"),Fm=up(0),zm=up(1),o$=up(2),l$=up(3),pp=up(4),c$=up(5),h$=up(6),abt=Fm.range,sbt=zm.range,obt=o$.range,lbt=l$.range,cbt=pp.range,hbt=c$.range,ubt=h$.range,s(dp,"utcWeekday"),dE=dp(0),Zx=dp(1),ive=dp(2),nve=dp(3),_g=dp(4),ave=dp(5),sve=dp(6),dbt=dE.range,pbt=Zx.range,gbt=ive.range,fbt=nve.range,mbt=_g.range,ybt=ave.range,vbt=sve.range}),qm,bbt,u$,xbt,lve=Y(()=>{"use strict";cp(),qm=Oa(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),bbt=qm.range,u$=Oa(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),xbt=u$.range}),wh,kbt,ju,Tbt,cve=Y(()=>{"use strict";cp(),wh=Oa(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),wh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oa(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),kbt=wh.range,ju=Oa(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),ju.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oa(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),Tbt=ju.range});function d$(e,t,r,i,n,a){let o=[[qu,1,1e3],[qu,5,5e3],[qu,15,15e3],[qu,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[n,1,36e5],[n,3,108e5],[n,6,216e5],[n,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(u,d,p){let g=d<u;g&&([u,d]=[d,u]);let m=p&&typeof p.range=="function"?p:h(u,d,p),y=m?m.range(u,+d+1):[];return g?y.reverse():y}f(l,"l"),s(l,"ticks");function h(u,d,p){let g=Math.abs(d-u)/p,m=T6(([,,C])=>C).right(o,g);if(m===o.length)return e.every(C6(u/31536e6,d/31536e6,p));if(m===0)return Sg.every(Math.max(C6(u,d,p),1));let[y,x]=o[g/o[m-1][2]<o[m][2]/g?m-1:m];return y.every(x)}return f(h,"u"),s(h,"tickInterval"),[l,h]}f(d$,"tJ");var wbt,Cbt,hve,uve,Ebt=Y(()=>{"use strict";mg(),Q2e(),J2e(),eve(),tve(),rve(),ove(),lve(),cve(),s(d$,"ticker"),[wbt,Cbt]=d$(ju,u$,dE,s$,a$,n$),[hve,uve]=d$(wh,qm,Fm,hp,Pm,Bm)}),p$=Y(()=>{"use strict";Q2e(),J2e(),eve(),tve(),rve(),ove(),lve(),cve(),Ebt()});function pE(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}f(pE,"WL");function gE(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}f(gE,"qL");function jm(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}f(jm,"sx");function dve(e){var t=e.dateTime,r=e.date,i=e.time,n=e.periods,a=e.days,o=e.shortDays,l=e.months,h=e.shortMonths,u=Gm(n),d=Um(n),p=Gm(a),g=Um(a),m=Gm(o),y=Um(o),x=Gm(l),C=Um(l),w=Gm(h),_=Um(h),S={a:U,A:z,b:V,B:W,c:null,d:v$,e:v$,f:Nve,g:Gve,G:Vve,H:Rve,I:Ive,j:Dve,L:b$,m:Mve,M:Ove,p:X,q:J,Q:E$,s:S$,S:$ve,u:Bve,U:Pve,V:Fve,w:zve,W:qve,x:null,X:null,y:jve,Y:Uve,Z:Wve,"%":C$},R={a:H,A:te,b:ie,B:oe,c:null,d:k$,e:k$,f:Kve,g:sbe,G:lbe,H:Hve,I:Yve,j:Xve,L:T$,m:Zve,M:Qve,p:he,q:pe,Q:E$,s:S$,S:Jve,u:ebe,U:tbe,V:rbe,w:ibe,W:nbe,x:null,X:null,y:abe,Y:obe,Z:cbe,"%":C$},b={a:I,A:$,b:O,B:j,c:D,d:m$,e:m$,f:Sve,g:f$,G:g$,H:y$,I:y$,j:Tve,L:Eve,m:kve,M:wve,p:A,q:xve,Q:Ave,s:Lve,S:Cve,u:fve,U:mve,V:yve,w:gve,W:vve,x:P,X:F,y:f$,Y:g$,Z:bve,"%":_ve};S.x=v(r,S),S.X=v(i,S),S.c=v(t,S),R.x=v(r,R),R.X=v(i,R),R.c=v(t,R);function v(se,le){return function(ue){var de=[],we=-1,De=0,Ge=se.length,be,qe,Ie;for(ue instanceof Date||(ue=new Date(+ue));++we<Ge;)se.charCodeAt(we)===37&&(de.push(se.slice(De,we)),(qe=_$[be=se.charAt(++we)])!=null?be=se.charAt(++we):qe=be==="e"?" ":"0",(Ie=le[be])&&(be=Ie(ue,qe)),de.push(be),De=we+1);return de.push(se.slice(De,we)),de.join("")}}f(v,"k"),s(v,"newFormat");function k(se,le){return function(ue){var de=jm(1900,void 0,1),we=E(de,se,ue+="",0),De,Ge;if(we!=ue.length)return null;if("Q"in de)return new Date(de.Q);if("s"in de)return new Date(de.s*1e3+("L"in de?de.L:0));if(le&&!("Z"in de)&&(de.Z=0),"p"in de&&(de.H=de.H%12+de.p*12),de.m===void 0&&(de.m="q"in de?de.q:0),"V"in de){if(de.V<1||de.V>53)return null;"w"in de||(de.w=1),"Z"in de?(De=gE(jm(de.y,0,1)),Ge=De.getUTCDay(),De=Ge>4||Ge===0?Zx.ceil(De):Zx(De),De=uE.offset(De,(de.V-1)*7),de.y=De.getUTCFullYear(),de.m=De.getUTCMonth(),de.d=De.getUTCDate()+(de.w+6)%7):(De=pE(jm(de.y,0,1)),Ge=De.getDay(),De=Ge>4||Ge===0?zm.ceil(De):zm(De),De=hp.offset(De,(de.V-1)*7),de.y=De.getFullYear(),de.m=De.getMonth(),de.d=De.getDate()+(de.w+6)%7)}else("W"in de||"U"in de)&&("w"in de||(de.w="u"in de?de.u%7:"W"in de?1:0),Ge="Z"in de?gE(jm(de.y,0,1)).getUTCDay():pE(jm(de.y,0,1)).getDay(),de.m=0,de.d="W"in de?(de.w+6)%7+de.W*7-(Ge+5)%7:de.w+de.U*7-(Ge+6)%7);return"Z"in de?(de.H+=de.Z/100|0,de.M+=de.Z%100,gE(de)):pE(de)}}f(k,"E"),s(k,"newParse");function E(se,le,ue,de){for(var we=0,De=le.length,Ge=ue.length,be,qe;we<De;){if(de>=Ge)return-1;if(be=le.charCodeAt(we++),be===37){if(be=le.charAt(we++),qe=b[be in _$?le.charAt(we++):be],!qe||(de=qe(se,ue,de))<0)return-1}else if(be!=ue.charCodeAt(de++))return-1}return de}f(E,"A"),s(E,"parseSpecifier");function A(se,le,ue){var de=u.exec(le.slice(ue));return de?(se.p=d.get(de[0].toLowerCase()),ue+de[0].length):-1}f(A,"N"),s(A,"parsePeriod");function I(se,le,ue){var de=m.exec(le.slice(ue));return de?(se.w=y.get(de[0].toLowerCase()),ue+de[0].length):-1}f(I,"P"),s(I,"parseShortWeekday");function $(se,le,ue){var de=p.exec(le.slice(ue));return de?(se.w=g.get(de[0].toLowerCase()),ue+de[0].length):-1}f($,"I"),s($,"parseWeekday");function O(se,le,ue){var de=w.exec(le.slice(ue));return de?(se.m=_.get(de[0].toLowerCase()),ue+de[0].length):-1}f(O,"D"),s(O,"parseShortMonth");function j(se,le,ue){var de=x.exec(le.slice(ue));return de?(se.m=C.get(de[0].toLowerCase()),ue+de[0].length):-1}f(j,"_"),s(j,"parseMonth");function D(se,le,ue){return E(se,t,le,ue)}f(D,"R"),s(D,"parseLocaleDateTime");function P(se,le,ue){return E(se,r,le,ue)}f(P,"M"),s(P,"parseLocaleDate");function F(se,le,ue){return E(se,i,le,ue)}f(F,"L"),s(F,"parseLocaleTime");function U(se){return o[se.getDay()]}f(U,"B"),s(U,"formatShortWeekday");function z(se){return a[se.getDay()]}f(z,"O"),s(z,"formatWeekday");function V(se){return h[se.getMonth()]}f(V,"$"),s(V,"formatShortMonth");function W(se){return l[se.getMonth()]}f(W,"G"),s(W,"formatMonth");function X(se){return n[+(se.getHours()>=12)]}
vendor: 31,062 bytes, line 393
393f(X,"F"),s(X,"formatPeriod");function J(se){return 1+~~(se.getMonth()/3)}f(J,"V"),s(J,"formatQuarter");function H(se){return o[se.getUTCDay()]}f(H,"H"),s(H,"formatUTCShortWeekday");function te(se){return a[se.getUTCDay()]}f(te,"j"),s(te,"formatUTCWeekday");function ie(se){return h[se.getUTCMonth()]}f(ie,"U"),s(ie,"formatUTCShortMonth");function oe(se){return l[se.getUTCMonth()]}f(oe,"Q"),s(oe,"formatUTCMonth");function he(se){return n[+(se.getUTCHours()>=12)]}f(he,"Y"),s(he,"formatUTCPeriod");function pe(se){return 1+~~(se.getUTCMonth()/3)}return f(pe,"ae"),s(pe,"formatUTCQuarter"),{format:s(function(se){var le=v(se+="",S);return le.toString=function(){return se},le},"format"),parse:s(function(se){var le=k(se+="",!1);return le.toString=function(){return se},le},"parse"),utcFormat:s(function(se){var le=v(se+="",R);return le.toString=function(){return se},le},"utcFormat"),utcParse:s(function(se){var le=k(se+="",!0);return le.toString=function(){return se},le},"utcParse")}}f(dve,"UL");function zi(e,t,r){var i=e<0?"-":"",n=(i?-e:e)+"",a=n.length;return i+(a<r?new Array(r-a+1).join(t)+n:n)}f(zi,"Qr");function pve(e){return e.replace(ube,"\\$&")}f(pve,"JFe");function Gm(e){return new RegExp("^(?:"+e.map(pve).join("|")+")","i")}f(Gm,"ox");function Um(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}f(Um,"lx");function gve(e,t,r){var i=Xa.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}f(gve,"e$e");function fve(e,t,r){var i=Xa.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}f(fve,"t$e");function mve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}f(mve,"r$e");function yve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}f(yve,"i$e");function vve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}f(vve,"n$e");function g$(e,t,r){var i=Xa.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}f(g$,"nJ");function f$(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}f(f$,"aJ");function bve(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}f(bve,"a$e");function xve(e,t,r){var i=Xa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}f(xve,"s$e");function kve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}f(kve,"o$e");function m$(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}f(m$,"sJ");function Tve(e,t,r){var i=Xa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}f(Tve,"l$e");function y$(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}f(y$,"oJ");function wve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}f(wve,"c$e");function Cve(e,t,r){var i=Xa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}f(Cve,"u$e");function Eve(e,t,r){var i=Xa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}f(Eve,"h$e");function Sve(e,t,r){var i=Xa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}f(Sve,"d$e");function _ve(e,t,r){var i=hbe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}f(_ve,"f$e");function Ave(e,t,r){var i=Xa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}f(Ave,"p$e");function Lve(e,t,r){var i=Xa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}f(Lve,"m$e");function v$(e,t){return zi(e.getDate(),t,2)}f(v$,"lJ");function Rve(e,t){return zi(e.getHours(),t,2)}f(Rve,"g$e");function Ive(e,t){return zi(e.getHours()%12||12,t,2)}f(Ive,"y$e");function Dve(e,t){return zi(1+hp.count(wh(e),e),t,3)}f(Dve,"v$e");function b$(e,t){return zi(e.getMilliseconds(),t,3)}f(b$,"fJ");function Nve(e,t){return b$(e,t)+"000"}f(Nve,"x$e");function Mve(e,t){return zi(e.getMonth()+1,t,2)}f(Mve,"b$e");function Ove(e,t){return zi(e.getMinutes(),t,2)}f(Ove,"T$e");function $ve(e,t){return zi(e.getSeconds(),t,2)}f($ve,"C$e");function Bve(e){var t=e.getDay();return t===0?7:t}f(Bve,"k$e");function Pve(e,t){return zi(Fm.count(wh(e)-1,e),t,2)}f(Pve,"w$e");function x$(e){var t=e.getDay();return t>=4||t===0?pp(e):pp.ceil(e)}f(x$,"pJ");function Fve(e,t){return e=x$(e),zi(pp.count(wh(e),e)+(wh(e).getDay()===4),t,2)}f(Fve,"S$e");function zve(e){return e.getDay()}f(zve,"E$e");function qve(e,t){return zi(zm.count(wh(e)-1,e),t,2)}f(qve,"A$e");function jve(e,t){return zi(e.getFullYear()%100,t,2)}f(jve,"_$e");function Gve(e,t){return e=x$(e),zi(e.getFullYear()%100,t,2)}f(Gve,"D$e");function Uve(e,t){return zi(e.getFullYear()%1e4,t,4)}f(Uve,"R$e");function Vve(e,t){var r=e.getDay();return e=r>=4||r===0?pp(e):pp.ceil(e),zi(e.getFullYear()%1e4,t,4)}f(Vve,"L$e");function Wve(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zi(t/60|0,"0",2)+zi(t%60,"0",2)}f(Wve,"M$e");function k$(e,t){return zi(e.getUTCDate(),t,2)}f(k$,"cJ");function Hve(e,t){return zi(e.getUTCHours(),t,2)}f(Hve,"N$e");function Yve(e,t){return zi(e.getUTCHours()%12||12,t,2)}f(Yve,"I$e");function Xve(e,t){return zi(1+uE.count(ju(e),e),t,3)}f(Xve,"O$e");function T$(e,t){return zi(e.getUTCMilliseconds(),t,3)}f(T$,"mJ");function Kve(e,t){return T$(e,t)+"000"}f(Kve,"P$e");function Zve(e,t){return zi(e.getUTCMonth()+1,t,2)}f(Zve,"B$e");function Qve(e,t){return zi(e.getUTCMinutes(),t,2)}f(Qve,"F$e");function Jve(e,t){return zi(e.getUTCSeconds(),t,2)}f(Jve,"$$e");function ebe(e){var t=e.getUTCDay();return t===0?7:t}f(ebe,"z$e");function tbe(e,t){return zi(dE.count(ju(e)-1,e),t,2)}f(tbe,"G$e");function w$(e){var t=e.getUTCDay();return t>=4||t===0?_g(e):_g.ceil(e)}f(w$,"gJ");function rbe(e,t){return e=w$(e),zi(_g.count(ju(e),e)+(ju(e).getUTCDay()===4),t,2)}f(rbe,"V$e");function ibe(e){return e.getUTCDay()}f(ibe,"W$e");function nbe(e,t){return zi(Zx.count(ju(e)-1,e),t,2)}f(nbe,"q$e");function abe(e,t){return zi(e.getUTCFullYear()%100,t,2)}f(abe,"U$e");function sbe(e,t){return e=w$(e),zi(e.getUTCFullYear()%100,t,2)}f(sbe,"H$e");function obe(e,t){return zi(e.getUTCFullYear()%1e4,t,4)}f(obe,"Y$e");function lbe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?_g(e):_g.ceil(e),zi(e.getUTCFullYear()%1e4,t,4)}f(lbe,"j$e");function cbe(){return"+0000"}f(cbe,"X$e");function C$(){return"%"}f(C$,"uJ");function E$(e){return+e}f(E$,"hJ");function S$(e){return Math.floor(+e/1e3)}f(S$,"dJ");var _$,Xa,hbe,ube,Sbt=Y(()=>{"use strict";p$(),s(pE,"localDate"),s(gE,"utcDate"),s(jm,"newDate"),s(dve,"formatLocale"),_$={"-":"",_:" ",0:"0"},Xa=/^\s*\d+/,hbe=/^%/,ube=/[\\^$*+?|[\]().{}]/g,s(zi,"pad"),s(pve,"requote"),s(Gm,"formatRe"),s(Um,"formatLookup"),s(gve,"parseWeekdayNumberSunday"),s(fve,"parseWeekdayNumberMonday"),s(mve,"parseWeekNumberSunday"),s(yve,"parseWeekNumberISO"),s(vve,"parseWeekNumberMonday"),s(g$,"parseFullYear"),s(f$,"parseYear"),s(bve,"parseZone"),s(xve,"parseQuarter"),s(kve,"parseMonthNumber"),s(m$,"parseDayOfMonth"),s(Tve,"parseDayOfYear"),s(y$,"parseHour24"),s(wve,"parseMinutes"),s(Cve,"parseSeconds"),s(Eve,"parseMilliseconds"),s(Sve,"parseMicroseconds"),s(_ve,"parseLiteralPercent"),s(Ave,"parseUnixTimestamp"),s(Lve,"parseUnixTimestampSeconds"),s(v$,"formatDayOfMonth"),s(Rve,"formatHour24"),s(Ive,"formatHour12"),s(Dve,"formatDayOfYear"),s(b$,"formatMilliseconds"),s(Nve,"formatMicroseconds"),s(Mve,"formatMonthNumber"),s(Ove,"formatMinutes"),s($ve,"formatSeconds"),s(Bve,"formatWeekdayNumberMonday"),s(Pve,"formatWeekNumberSunday"),s(x$,"dISO"),s(Fve,"formatWeekNumberISO"),s(zve,"formatWeekdayNumberSunday"),s(qve,"formatWeekNumberMonday"),s(jve,"formatYear"),s(Gve,"formatYearISO"),s(Uve,"formatFullYear"),s(Vve,"formatFullYearISO"),s(Wve,"formatZone"),s(k$,"formatUTCDayOfMonth"),s(Hve,"formatUTCHour24"),s(Yve,"formatUTCHour12"),s(Xve,"formatUTCDayOfYear"),s(T$,"formatUTCMilliseconds"),s(Kve,"formatUTCMicroseconds"),s(Zve,"formatUTCMonthNumber"),s(Qve,"formatUTCMinutes"),s(Jve,"formatUTCSeconds"),s(ebe,"formatUTCWeekdayNumberMonday"),s(tbe,"formatUTCWeekNumberSunday"),s(w$,"UTCdISO"),s(rbe,"formatUTCWeekNumberISO"),s(ibe,"formatUTCWeekdayNumberSunday"),s(nbe,"formatUTCWeekNumberMonday"),s(abe,"formatUTCYear"),s(sbe,"formatUTCYearISO"),s(obe,"formatUTCFullYear"),s(lbe,"formatUTCFullYearISO"),s(cbe,"formatUTCZone"),s(C$,"formatLiteralPercent"),s(E$,"formatUnixTimestamp"),s(S$,"formatUnixTimestampSeconds")});function dbe(e){return Vm=dve(e),fE=Vm.format,_bt=Vm.parse,Abt=Vm.utcFormat,Lbt=Vm.utcParse,Vm}f(dbe,"HL");var Vm,fE,_bt,Abt,Lbt,Rbt=Y(()=>{"use strict";Sbt(),dbe({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(dbe,"defaultLocale")}),pbe=Y(()=>{"use strict";Rbt()});function gbe(e){return new Date(e)}f(gbe,"K$e");function fbe(e){return e instanceof Date?+e:+new Date(+e)}f(fbe,"Z$e");function A$(e,t,r,i,n,a,o,l,h,u){var d=r$(),p=d.invert,g=d.domain,m=u(".%L"),y=u(":%S"),x=u("%I:%M"),C=u("%I %p"),w=u("%a %d"),_=u("%b %d"),S=u("%B"),R=u("%Y");function b(v){return(h(v)<v?m:l(v)<v?y:o(v)<v?x:a(v)<v?C:i(v)<v?n(v)<v?w:_:r(v)<v?S:R)(v)}return f(b,"C"),s(b,"tickFormat"),d.invert=function(v){return new Date(p(v))},d.domain=function(v){return arguments.length?g(Array.from(v,fbe)):g().map(gbe)},d.ticks=function(v){var k=g();return e(k[0],k[k.length-1],v!=null?v:10)},d.tickFormat=function(v,k){return k==null?b:u(k)},d.nice=function(v){var k=g();return(!v||typeof v.range!="function")&&(v=t(k[0],k[k.length-1],v!=null?v:10)),v?g(Z2e(k,v)):d},d.copy=function(){return t$(d,A$(e,t,r,i,n,a,o,l,h,u))},d}f(A$,"CJ");function mbe(){return Kx.apply(A$(hve,uve,wh,qm,Fm,hp,Pm,Bm,qu,fE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}f(mbe,"xw");var Ibt=Y(()=>{"use strict";p$(),pbe(),Y2e(),sE(),Xvt(),s(gbe,"date"),s(fbe,"number"),s(A$,"calendar"),s(mbe,"time")}),Dbt=Y(()=>{"use strict";Uvt(),Yvt(),q2e(),Ibt()});function ybe(e){for(var t=e.length/6|0,r=new Array(t),i=0;i<t;)r[i]="#"+e.slice(i*6,++i*6);return r}f(ybe,"jL");var Nbt=Y(()=>{"use strict";s(ybe,"default")}),vbe,Mbt=Y(()=>{"use strict";Nbt(),vbe=ybe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")}),Obt=Y(()=>{"use strict";Mbt()});function ua(e){return s(function(){return e},"constant")}f(ua,"Fi");var L$=Y(()=>{"use strict";s(ua,"default")});function bbe(e){return e>1?0:e<-1?Wm:Math.acos(e)}f(bbe,"DJ");function R$(e){return e>=1?Qx:e<=-1?-Qx:Math.asin(e)}f(R$,"ZL");var I$,vs,gp,xbe,mE,bc,Ag,bs,Wm,Qx,Jx,D$=Y(()=>{"use strict";I$=Math.abs,vs=Math.atan2,gp=Math.cos,xbe=Math.max,mE=Math.min,bc=Math.sin,Ag=Math.sqrt,bs=1e-12,Wm=Math.PI,Qx=Wm/2,Jx=2*Wm,s(bbe,"acos"),s(R$,"asin")});function N$(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new eE(t)}f(N$,"kw");var kbe=Y(()=>{"use strict";Kye(),s(N$,"withPath")});function Tbe(e){return e.innerRadius}f(Tbe,"Q$e");function wbe(e){return e.outerRadius}f(wbe,"J$e");function Cbe(e){return e.startAngle}f(Cbe,"eze");function Ebe(e){return e.endAngle}f(Ebe,"tze");function Sbe(e){return e&&e.padAngle}f(Sbe,"rze");function _be(e,t,r,i,n,a,o,l){var h=r-e,u=i-t,d=o-n,p=l-a,g=p*h-d*u;if(!(g*g<bs))return g=(d*(t-a)-p*(e-n))/g,[e+g*h,t+g*u]}f(_be,"ize");function e4(e,t,r,i,n,a,o){var l=e-r,h=t-i,u=(o?a:-a)/Ag(l*l+h*h),d=u*h,p=-u*l,g=e+d,m=t+p,y=r+d,x=i+p,C=(g+y)/2,w=(m+x)/2,_=y-g,S=x-m,R=_*_+S*S,b=n-a,v=g*x-y*m,k=(S<0?-1:1)*Ag(xbe(0,b*b*R-v*v)),E=(v*S-_*k)/R,A=(-v*_-S*k)/R,I=(v*S+_*k)/R,$=(-v*_+S*k)/R,O=E-C,j=A-w,D=I-C,P=$-w;return O*O+j*j>D*D+P*P&&(E=I,A=$),{cx:E,cy:A,x01:-d,y01:-p,x11:E*(n/b-1),y11:A*(n/b-1)}}f(e4,"ww");function Lg(){var e=Tbe,t=wbe,r=ua(0),i=null,n=Cbe,a=Ebe,o=Sbe,l=null,h=N$(u);function u(){var d,p,g=+e.apply(this,arguments),m=+t.apply(this,arguments),y=n.apply(this,arguments)-Qx,x=a.apply(this,arguments)-Qx,C=I$(x-y),w=x>y;if(l||(l=d=h()),m<g&&(p=m,m=g,g=p),!(m>bs))l.moveTo(0,0);else if(C>Jx-bs)l.moveTo(m*gp(y),m*bc(y)),l.arc(0,0,m,y,x,!w),g>bs&&(l.moveTo(g*gp(x),g*bc(x)),l.arc(0,0,g,x,y,w));else{var _=y,S=x,R=y,b=x,v=C,k=C,E=o.apply(this,arguments)/2,A=E>bs&&(i?+i.apply(this,arguments):Ag(g*g+m*m)),I=mE(I$(m-g)/2,+r.apply(this,arguments)),$=I,O=I,j,D;if(A>bs){var P=R$(A/g*bc(E)),F=R$(A/m*bc(E));(v-=P*2)>bs?(P*=w?1:-1,R+=P,b-=P):(v=0,R=b=(y+x)/2),(k-=F*2)>bs?(F*=w?1:-1,_+=F,S-=F):(k=0,_=S=(y+x)/2)}var U=m*gp(_),z=m*bc(_),V=g*gp(b),W=g*bc(b);if(I>bs){var X=m*gp(S),J=m*bc(S),H=g*gp(R),te=g*bc(R),ie;if(C<Wm)if(ie=_be(U,z,H,te,X,J,V,W)){var oe=U-ie[0],he=z-ie[1],pe=X-ie[0],se=J-ie[1],le=1/bc(bbe((oe*pe+he*se)/(Ag(oe*oe+he*he)*Ag(pe*pe+se*se)))/2),ue=Ag(ie[0]*ie[0]+ie[1]*ie[1]);$=mE(I,(g-ue)/(le-1)),O=mE(I,(m-ue)/(le+1))}else $=O=0}k>bs?O>bs?(j=e4(H,te,U,z,m,O,w),D=e4(X,J,V,W,m,O,w),l.moveTo(j.cx+j.x01,j.cy+j.y01),O<I?l.arc(j.cx,j.cy,O,vs(j.y01,j.x01),vs(D.y01,D.x01),!w):(l.arc(j.cx,j.cy,O,vs(j.y01,j.x01),vs(j.y11,j.x11),!w),l.arc(0,0,m,vs(j.cy+j.y11,j.cx+j.x11),vs(D.cy+D.y11,D.cx+D.x11),!w),l.arc(D.cx,D.cy,O,vs(D.y11,D.x11),vs(D.y01,D.x01),!w))):(l.moveTo(U,z),l.arc(0,0,m,_,S,!w)):l.moveTo(U,z),!(g>bs)||!(v>bs)?l.lineTo(V,W):$>bs?(j=e4(V,W,X,J,g,-$,w),D=e4(U,z,H,te,g,-$,w),l.lineTo(j.cx+j.x01,j.cy+j.y01),$<I?l.arc(j.cx,j.cy,$,vs(j.y01,j.x01),vs(D.y01,D.x01),!w):(l.arc(j.cx,j.cy,$,vs(j.y01,j.x01),vs(j.y11,j.x11),!w),l.arc(0,0,g,vs(j.cy+j.y11,j.cx+j.x11),vs(D.cy+D.y11,D.cx+D.x11),w),l.arc(D.cx,D.cy,$,vs(D.y11,D.x11),vs(D.y01,D.x01),!w))):l.arc(0,0,g,b,R,w)}if(l.closePath(),d)return l=null,d+""||null}return f(u,"h"),s(u,"arc"),u.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,p=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2-Wm/2;return[gp(p)*d,bc(p)*d]},u.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:ua(+d),u):e},u.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:ua(+d),u):t},u.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:ua(+d),u):r},u.padRadius=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:ua(+d),u):i},u.startAngle=function(d){return arguments.length?(n=typeof d=="function"?d:ua(+d),u):n},u.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:ua(+d),u):a},u.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:ua(+d),u):o},u.context=function(d){return arguments.length?(l=d!=null?d:null,u):l},u}f(Lg,"Al");var $bt=Y(()=>{"use strict";L$(),D$(),kbe(),s(Tbe,"arcInnerRadius"),s(wbe,"arcOuterRadius"),s(Cbe,"arcStartAngle"),s(Ebe,"arcEndAngle"),s(Sbe,"arcPadAngle"),s(_be,"intersect"),s(e4,"cornerTangents"),s(Lg,"default")});function M$(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}f(M$,"ux");var Bbt,Abe=Y(()=>{"use strict";Bbt=Array.prototype.slice,s(M$,"default")});function O$(e){this._context=e}f(O$,"LJ");function Hm(e){return new O$(e)}f(Hm,"xc");var Lbe=Y(()=>{"use strict";s(O$,"Linear"),O$.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")},s(Hm,"default")});function Rbe(e){return e[0]}f(Rbe,"MJ");function Ibe(e){return e[1]}f(Ibe,"NJ");var Pbt=Y(()=>{"use strict";s(Rbe,"x"),s(Ibe,"y")});function Ym(e,t){var r=ua(!0),i=null,n=Hm,a=null,o=N$(l);e=typeof e=="function"?e:e===void 0?Rbe:ua(e),t=typeof t=="function"?t:t===void 0?Ibe:ua(t);function l(h){var u,d=(h=M$(h)).length,p,g=!1,m;for(i==null&&(a=n(m=o())),u=0;u<=d;++u)!(u<d&&r(p=h[u],u,h))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+e(p,u,h),+t(p,u,h));if(m)return a=null,m+""||null}return f(l,"l"),s(l,"line"),l.x=function(h){return arguments.length?(e=typeof h=="function"?h:ua(+h),l):e},l.y=function(h){return arguments.length?(t=typeof h=="function"?h:ua(+h),l):t},l.defined=function(h){return arguments.length?(r=typeof h=="function"?h:ua(!!h),l):r},l.curve=function(h){return arguments.length?(n=h,i!=null&&(a=n(i)),l):n},l.context=function(h){return arguments.length?(h==null?i=a=null:a=n(i=h),l):i},l}f(Ym,"_l");var Fbt=Y(()=>{"use strict";Abe(),L$(),Lbe(),kbe(),Pbt(),s(Ym,"default")});function Dbe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}f(Dbe,"tM");var zbt=Y(()=>{"use strict";s(Dbe,"default")});function Nbe(e){return e}f(Nbe,"rM");var qbt=Y(()=>{"use strict";s(Nbe,"default")});function Mbe(){var e=Nbe,t=Dbe,r=null,i=ua(0),n=ua(Jx),a=ua(0);function o(l){var h,u=(l=M$(l)).length,d,p,g=0,m=new Array(u),y=new Array(u),x=+i.apply(this,arguments),C=Math.min(Jx,Math.max(-Jx,n.apply(this,arguments)-x)),w,_=Math.min(Math.abs(C)/u,a.apply(this,arguments)),S=_*(C<0?-1:1),R;for(h=0;h<u;++h)(R=y[m[h]=h]=+e(l[h],h,l))>0&&(g+=R);for(t!=null?m.sort(function(b,v){return t(y[b],y[v])}):r!=null&&m.sort(function(b,v){return r(l[b],l[v])}),h=0,p=g?(C-u*S)/g:0;h<u;++h,x=w)d=m[h],R=y[d],w=x+(R>0?R*p:0)+S,y[d]={data:l[d],index:h,value:R,startAngle:x,endAngle:w,padAngle:_};return y}return f(o,"s"),s(o,"pie"),o.value=function(l){return arguments.length?(e=typeof l=="function"?l:ua(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,r=null,o):t},o.sort=function(l){return arguments.length?(r=l,t=null,o):r},o.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ua(+l),o):i},o.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:ua(+l),o):n},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ua(+l),o):a},o}f(Mbe,"Sw");var jbt=Y(()=>{"use strict";Abe(),L$(),zbt(),qbt(),D$(),s(Mbe,"default")});function $$(e){return new P$(e,!0)}f($$,"hx");function B$(e){return new P$(e,!1)}f(B$,"dx");var P$,Gbt=Y(()=>{"use strict";var e;P$=(e=class{constructor(r,i){this._context=r,this._x=i}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(r,i){switch(r=+r,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,i,r,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,r,this._y0,r,i);break}}this._x0=r,this._y0=i}},f(e,"Ew"),s(e,"Bump"),e),s($$,"bumpX"),s(B$,"bumpY")});function Gu(){}f(Gu,"ao");var yE=Y(()=>{"use strict";s(Gu,"default")});function t4(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}f(t4,"cg");function r4(e){this._context=e}f(r4,"px");function Xm(e){return new r4(e)}f(Xm,"Dl");var vE=Y(()=>{"use strict";s(t4,"point"),s(r4,"Basis"),r4.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:t4(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:t4(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},s(Xm,"default")});function F$(e){this._context=e}f(F$,"zJ");function Obe(e){return new F$(e)}f(Obe,"Aw");var Ubt=Y(()=>{"use strict";yE(),vE(),s(F$,"BasisClosed"),F$.prototype={areaStart:Gu,areaEnd:Gu,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:t4(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},s(Obe,"default")});function z$(e){this._context=e}f(z$,"VJ");function $be(e){return new z$(e)}f($be,"_w");var Vbt=Y(()=>{"use strict";vE(),s(z$,"BasisOpen"),z$.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(e,t){switch(e=+e,t=+t,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+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:t4(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")},s($be,"default")});function q$(e,t){this._basis=new r4(e),this._beta=t}f(q$,"qJ");var Bbe,Wbt=Y(()=>{"use strict";vE(),s(q$,"Bundle"),q$.prototype={lineStart:s(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:s(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,o=t[r]-n,l=-1,h;++l<=r;)h=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+h*a),this._beta*t[l]+(1-this._beta)*(n+h*o));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:s(function(e,t){this._x.push(+e),this._y.push(+t)},"point")},Bbe=s(f((function e(t){function r(i){return t===1?new r4(i):new q$(i,t)}return f(r,"r"),s(r,"bundle"),r.beta=function(i){return e(+i)},r}),"e"),"custom")(.85)});function i4(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}f(i4,"ug");function bE(e,t){this._context=e,this._k=(1-t)/6}f(bE,"Dw");var j$,xE=Y(()=>{"use strict";s(i4,"point"),s(bE,"Cardinal"),bE.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:i4(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:i4(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},j$=s(f((function e(t){function r(i){return new bE(i,t)}return f(r,"r"),s(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"e"),"custom")(0)});function kE(e,t){this._context=e,this._k=(1-t)/6}f(kE,"Rw");var Pbe,Fbe=Y(()=>{"use strict";yE(),xE(),s(kE,"CardinalClosed"),kE.prototype={areaStart:Gu,areaEnd:Gu,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:i4(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},Pbe=s(f((function e(t){function r(i){return new kE(i,t)}return f(r,"r"),s(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"e"),"custom")(0)});function TE(e,t){this._context=e,this._k=(1-t)/6}f(TE,"Lw");var zbe,qbe=Y(()=>{"use strict";xE(),s(TE,"CardinalOpen"),TE.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(e,t){switch(e=+e,t=+t,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:i4(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},zbe=s(f((function e(t){function r(i){return new TE(i,t)}return f(r,"r"),s(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"e"),"custom")(0)});function wE(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>bs){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,h=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/h,n=(n*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/h}if(e._l23_a>bs){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(i,n,a,o,e._x2,e._y2)}f(wE,"vx");function G$(e,t){this._context=e,this._alpha=t}f(G$,"HJ");var U$,V$=Y(()=>{"use strict";D$(),xE(),s(wE,"point"),s(G$,"CatmullRom"),G$.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:wE(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},U$=s(f((function e(t){function r(i){return t?new G$(i,t):new bE(i,0)}return f(r,"r"),s(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"e"),"custom")(.5)});function W$(e,t){this._context=e,this._alpha=t}f(W$,"YJ");var jbe,Hbt=Y(()=>{"use strict";Fbe(),yE(),V$(),s(W$,"CatmullRomClosed"),W$.prototype={areaStart:Gu,areaEnd:Gu,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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wE(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},jbe=s(f((function e(t){function r(i){return t?new W$(i,t):new kE(i,0)}return f(r,"r"),s(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"e"),"custom")(.5)});function H$(e,t){this._context=e,this._alpha=t}f(H$,"XJ");var Gbe,Ybt=Y(()=>{"use strict";qbe(),V$(),s(H$,"CatmullRomOpen"),H$.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:wE(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")},Gbe=s(f((function e(t){function r(i){return t?new H$(i,t):new TE(i,0)}return f(r,"r"),s(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"e"),"custom")(.5)});function Y$(e){this._context=e}f(Y$,"ZJ");function Ube(e){return new Y$(e)}f(Ube,"Nw");var Xbt=Y(()=>{"use strict";yE(),s(Y$,"LinearClosed"),Y$.prototype={areaStart:Gu,areaEnd:Gu,lineStart:s(function(){this._point=0},"lineStart"),lineEnd:s(function(){this._point&&this._context.closePath()},"lineEnd"),point:s(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")},s(Ube,"default")});
vendor: 4,168 bytes, line 393
393function X$(e){return e<0?-1:1}f(X$,"JJ");function K$(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),l=(a*n+o*i)/(i+n);return(X$(a)+X$(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}f(K$,"eee");function Z$(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}f(Z$,"tee");function CE(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,n+l*t,a-l,o-l*r,a,o)}f(CE,"uM");function n4(e){this._context=e}f(n4,"Iw");function Q$(e){this._context=new J$(e)}f(Q$,"ree");function J$(e){this._context=e}f(J$,"iee");function eB(e){return new n4(e)}f(eB,"bx");function tB(e){return new Q$(e)}f(tB,"Tx");var Kbt=Y(()=>{"use strict";s(X$,"sign"),s(K$,"slope3"),s(Z$,"slope2"),s(CE,"point"),s(n4,"MonotoneX"),n4.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:CE(this,this._t0,Z$(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:s(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,CE(this,Z$(this,r=K$(this,e,t)),r);break;default:CE(this,this._t0,r=K$(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")},s(Q$,"MonotoneY"),(Q$.prototype=Object.create(n4.prototype)).point=function(e,t){n4.prototype.point.call(this,t,e)},s(J$,"ReflectContext"),J$.prototype={moveTo:s(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:s(function(){this._context.closePath()},"closePath"),lineTo:s(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:s(function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)},"bezierCurveTo")},s(eB,"monotoneX"),s(tB,"monotoneY")});function rB(e){this._context=e}f(rB,"see");function iB(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),o=new Array(r);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}f(iB,"aee");function nB(e){return new rB(e)}f(nB,"hg");var Zbt=Y(()=>{"use strict";s(rB,"Natural"),rB.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 e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=iB(e),n=iB(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:s(function(e,t){this._x.push(+e),this._y.push(+t)},"point")},s(iB,"controlPoints"),s(nB,"default")});function a4(e,t){this._context=e,this._t=t}f(a4,"Ow");function aB(e){return new a4(e,.5)}f(aB,"dg");function sB(e){return new a4(e,0)}f(sB,"Cx");function oB(e){return new a4(e,1)}f(oB,"kx");var Qbt=Y(()=>{"use strict";s(a4,"Step"),a4.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<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:s(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
393default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t},"point")},s(aB,"default"),s(sB,"stepBefore"),s(oB,"stepAfter")}),Jbt=Y(()=>{"use strict";$bt(),Fbt(),jbt(),Ubt(),Vbt(),vE(),Gbt(),Wbt(),Fbe(),qbe(),xE(),Hbt(),Ybt(),V$(),Xbt(),Lbe(),Kbt(),Zbt(),Qbt()}),ext=Y(()=>{"use strict"}),txt=Y(()=>{"use strict"});function Rg(e,t,r){this.k=e,this.x=t,this.y=r}f(Rg,"td");function Vbe(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wbe;return e.__zoom}f(Vbe,"dM");var Wbe,Hbe=Y(()=>{"use strict";s(Rg,"Transform"),Rg.prototype={constructor:Rg,scale:s(function(e){return e===1?this:new Rg(this.k*e,this.x,this.y)},"scale"),translate:s(function(e,t){return e===0&t===0?this:new Rg(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:s(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:s(function(e){return e*this.k+this.x},"applyX"),applyY:s(function(e){return e*this.k+this.y},"applyY"),invert:s(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:s(function(e){return(e-this.x)/this.k},"invertX"),invertY:s(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:s(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:s(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:s(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")},Wbe=new Rg(1,0,0),Vbe.prototype=Rg.prototype,s(Vbe,"transform")}),rxt=Y(()=>{"use strict"}),ixt=Y(()=>{"use strict";WO(),ext(),txt(),Hbe(),rxt()}),nxt=Y(()=>{"use strict";ixt(),Hbe()}),ui=Y(()=>{"use strict";mg(),byt(),J2t(),tvt(),$x(),rvt(),ivt(),ife(),r2t(),nvt(),jye(),avt(),ovt(),d2e(),bvt(),qvt(),Fx(),Kye(),jvt(),svt(),Gvt(),Dbt(),Obt(),bh(),Jbt(),p$(),pbe(),FO(),WO(),nxt()}),axt=Xo(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"}),s4=Xo(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=void 0;var t=axt();function r(l){return t.relativeFirstCharacters.indexOf(l[0])>-1}f(r,"nze"),s(r,"isRelativeUrlWithoutProtocol");function i(l){var h=l.replace(t.ctrlCharactersRegex,"");return h.replace(t.htmlEntitiesRegex,function(u,d){return String.fromCharCode(d)})}f(i,"aze"),s(i,"decodeHtmlCharacters");function n(l){return URL.canParse(l)}f(n,"sze"),s(n,"isValidUrl");function a(l){try{return decodeURIComponent(l)}catch(h){return l}}f(a,"gee"),s(a,"decodeURI");function o(l){if(!l)return t.BLANK_URL;var h,u=a(l.trim());do u=i(u).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),u=a(u),h=u.match(t.ctrlCharactersRegex)||u.match(t.htmlEntitiesRegex)||u.match(t.htmlCtrlEntityRegex)||u.match(t.whitespaceEscapeCharsRegex);while(h&&h.length>0);var d=u;if(!d)return t.BLANK_URL;if(r(d))return d;var p=d.trimStart(),g=p.match(t.urlSchemeRegex);if(!g)return d;var m=g[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(m))return t.BLANK_URL;var y=p.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return y;if(m==="http:"||m==="https:"){if(!n(y))return t.BLANK_URL;var x=new URL(y);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return y}f(o,"oze"),s(o,"sanitizeUrl"),e.sanitizeUrl=o}),lB,o4,cB,Ybe,EE,SE,Io,_E,hB,Km=Y(()=>{"use strict";lB=_o(s4(),1),ui(),gi(),o4=s((e,t)=>{let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let i in t.attrs)r.attr(i,t.attrs[i]);return t.class&&r.attr("class",t.class),r},"drawRect"),cB=s((e,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o4(e,r).lower()}
vendor: 4,519 bytes, line 393
393,"drawBackgroundRect"),Ybe=s((e,t)=>{let r=t.text.replace(gg," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class&&i.attr("class",t.class);let n=i.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),i},"drawText"),EE=s((e,t,r,i)=>{let n=e.append("image");n.attr("x",t),n.attr("y",r);let a=(0,lB.sanitizeUrl)(i);n.attr("xlink:href",a)},"drawImage"),SE=s((e,t,r,i)=>{let n=e.append("use");n.attr("x",t),n.attr("y",r);let a=(0,lB.sanitizeUrl)(i);n.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Io=s(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),_E=s(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),hB=s(()=>{let e=Lt(".mermaidTooltip");return e.empty()&&(e=Lt("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip")}),Xbe,AE,uB,Kbe,Zbe,Qbe,Jbe,exe,txe,rxe,ixe,nxe,axe,sxe,Ch,xc,sxt=Y(()=>{"use strict";gi(),Km(),Xbe=_o(s4(),1),AE=s(function(e,t){return o4(e,t)},"drawRect"),uB=s(function(e,t,r,i,n,a){let o=e.append("image");o.attr("width",t),o.attr("height",r),o.attr("x",i),o.attr("y",n);let l=a.startsWith("data:image/png;base64")?a:(0,Xbe.sanitizeUrl)(a);o.attr("xlink:href",l)},"drawImage"),Kbe=s((e,t,r,i)=>{let n=e.append("g"),a=0;for(let o of t){let l=o.textColor?o.textColor:"#444444",h=o.lineColor?o.lineColor:"#444444",u=o.offsetX?parseInt(o.offsetX):0,d=o.offsetY?parseInt(o.offsetY):0,p="";if(a===0){let m=n.append("line");m.attr("x1",o.startPoint.x),m.attr("y1",o.startPoint.y),m.attr("x2",o.endPoint.x),m.attr("y2",o.endPoint.y),m.attr("stroke-width","1"),m.attr("stroke",h),m.style("fill","none"),o.type!=="rel_b"&&m.attr("marker-end","url("+p+"#"+i+"-arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&m.attr("marker-start","url("+p+"#"+i+"-arrowend)"),a=-1}else{let m=n.append("path");m.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&m.attr("marker-end","url("+p+"#"+i+"-arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&m.attr("marker-start","url("+p+"#"+i+"-arrowend)")}let g=r.messageFont();Ch(r)(o.label.text,n,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+u,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+d,o.label.width,o.label.height,{fill:l},g),o.techn&&o.techn.text!==""&&(g=r.messageFont(),Ch(r)("["+o.techn.text+"]",n,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+u,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+d,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:l,"font-style":"italic"},g))}},"drawRels"),Zbe=s(function(e,t,r){let i=e.append("g"),n=t.bgColor?t.bgColor:"none",a=t.borderColor?t.borderColor:"#444444",o=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let h={x:t.x,y:t.y,fill:n,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};AE(i,h);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=o,Ch(r)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},u),t.type&&t.type.text!==""&&(u=r.boundaryFont(),u.fontColor=o,Ch(r)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},u)),t.descr&&t.descr.text!==""&&(u=r.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=o,Ch(r)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},u))},"drawBoundary"),Qbe=s(function(e,t,r){var p;let i=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],n=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4Q
393HgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.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=e.append("g");l.attr("class","person-man");let h=Io();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=i,h.width=t.width,h.height=t.height,h.stroke=n,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},AE(l,h);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",i).attr("stroke-width","0.5").attr("stroke",n).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",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.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",i).attr("stroke-width","0.5").attr("stroke",n).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",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let u=sxe(r,t.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","
393italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":uB(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,o);break}let d=r[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,Ch(r)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=r[t.typeC4Shape.text+"Font"](),d.fontColor=a,t.techn&&((p=t.techn)==null?void 0:p.text)!==""?Ch(r)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":"italic"},d):t.type&&t.type.text!==""&&Ch(r)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=r.personFont(),d.fontColor=a,Ch(r)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},"drawC4Shape"),Jbe=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-
vendor: 13,283 bytes, line 393
393database").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"),
vendor: 4,251 bytes, line 393
393exe=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-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"),txe=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-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"),rxe=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-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"),ixe=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-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"),nxe=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-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"),axe=s(function(e,t){let r=e.append("defs").append("marker").attr("id",t+"-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"),sxe=s((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),Ch=(function(){function e(n,a,o,l,h,u,d){let p=a.append("text").attr("x",o+h/2).attr("y",l+u/2+5).style("text-anchor","middle").text(n);i(p,d)}f(e,"e"),s(e,"byText");function t(n,a,o,l,h,u,d,p){let{fontSize:g,fontFamily:m,fontWeight:y}=p,x=n.split(Vt.lineBreakRegex);for(let C=0;C<x.length;C++){let w=C*g-g*(x.length-1)/2,_=a.append("text").attr("x",o+h/2).attr("y",l).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",g).style("font-weight",y).style("font-family",m);_.append("tspan").attr("dy",w).text(x[C]).attr("alignment-baseline","mathematical"),i(_,d)}}f(t,"t"),s(t,"byTspan");function r(n,a,o,l,h,u,d,p){let g=a.append("switch"),m=g.append("foreignObject").attr("x",o).attr("y",l).attr("width",h).attr("height",u).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,g,o,l,h,u,d,p),i(m,d)}f(r,"r"),s(r,"byFo");function i(n,a){for(let o in a)a.hasOwnProperty(o)&&n.attr(o,a[o])}return f(i,"i"),s(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),xc={drawRect:AE,drawBoundary:Zbe,drawC4Shape:Qbe,drawRels:Kbe,drawImage:uB,insertArrowHead:rxe,insertArrowEnd:ixe,insertArrowFilledHead:nxe,insertArrowCrossHead:axe,insertDatabaseIcon:Jbe,insertComputerIcon:exe,insertClockIcon:txe}});function oxe(e){return Number.isSafeInteger(e)&&e>=0}f(oxe,"Tee");var oxt=Y(()=>{"use strict";s(oxe,"isLength")});function dB(e){return e!=null&&typeof e!="function"&&oxe(e.length)}f(dB,"Vw");var lxe=Y(()=>{"use strict";oxt(),s(dB,"isArrayLike")});function cxe(e){return e==="__proto__"}f(cxe,"kee");var lxt=Y(()=>{"use strict";s(cxe,"isUnsafeProperty")});function l4(e){return e==null||typeof e!="object"&&typeof e!="function"}f(l4,"rd");var LE=Y(()=>{"use strict";s(l4,"isPrimitive")}
vendor: 5,006 bytes, line 393
393);function pB(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}f(pB,"Ww");var hxe=Y(()=>{"use strict";s(pB,"getSymbols")});function Zm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}f(Zm,"Iu");var RE=Y(()=>{"use strict";s(Zm,"getTag")}),IE,Qm,c4,h4,u4,DE,NE,ME,OE,gB,$E,BE,PE,fB,mB,yB,vB,bB,xB,kB,TB,wB,CB=Y(()=>{"use strict";IE="[object RegExp]",Qm="[object String]",c4="[object Number]",h4="[object Boolean]",u4="[object Arguments]",DE="[object Symbol]",NE="[object Date]",ME="[object Map]",OE="[object Set]",gB="[object Array]",$E="[object ArrayBuffer]",BE="[object Object]",PE="[object DataView]",fB="[object Uint8Array]",mB="[object Uint8ClampedArray]",yB="[object Uint16Array]",vB="[object Uint32Array]",bB="[object Int8Array]",xB="[object Int16Array]",kB="[object Int32Array]",TB="[object Float32Array]",wB="[object Float64Array]"});function FE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}f(FE,"mg");var EB=Y(()=>{"use strict";s(FE,"isTypedArray")});function uxe(e,t){return Ig(e,void 0,e,new Map,t)}f(uxe,"See");function Ig(e,t,r,i=new Map,n=void 0){let a=n==null?void 0:n(e,t,r,i);if(a!==void 0)return a;if(l4(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){let o=new Array(e.length);i.set(e,o);for(let l=0;l<e.length;l++)o[l]=Ig(e[l],l,r,i,n);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){let o=new Map;i.set(e,o);for(let[l,h]of e)o.set(l,Ig(h,l,r,i,n));return o}if(e instanceof Set){let o=new Set;i.set(e,o);for(let l of e)o.add(Ig(l,void 0,r,i,n));return o}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(FE(e)){let o=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,o);for(let l=0;l<e.length;l++)o[l]=Ig(e[l],l,r,i,n);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,o),Nl(o,e,r,i,n),o}if(typeof File<"u"&&e instanceof File){let o=new File([e],e.name,{type:e.type});return i.set(e,o),Nl(o,e,r,i,n),o}if(typeof Blob<"u"&&e instanceof Blob){let o=new Blob([e],{type:e.type});return i.set(e,o),Nl(o,e,r,i,n),o}if(e instanceof Error){let o=structuredClone(e);return i.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,Nl(o,e,r,i,n),o}if(e instanceof Boolean){let o=new Boolean(e.valueOf());return i.set(e,o),Nl(o,e,r,i,n),o}if(e instanceof Number){let o=new Number(e.valueOf());return i.set(e,o),Nl(o,e,r,i,n),o}if(e instanceof String){let o=new String(e.valueOf());return i.set(e,o),Nl(o,e,r,i,n),o}if(typeof e=="object"&&dxe(e)){let o=Object.create(Object.getPrototypeOf(e));return i.set(e,o),Nl(o,e,r,i,n),o}return e}f(Ig,"gg");function Nl(e,t,r=e,i,n){let a=[...Object.keys(t),...pB(t)];for(let o=0;o<a.length;o++){let l=a[o],h=Object.getOwnPropertyDescriptor(e,l);(h==null||h.writable)&&(e[l]=Ig(t[l],l,r,i,n))}}f(Nl,"Po");function dxe(e){switch(Zm(e)){case u4:case gB:case $E:case PE:case h4:case NE:case TB:case wB:case bB:case xB:case kB:case ME:case c4:case BE:case IE:case OE:case Qm:case DE:case fB:case mB:case yB:case vB:return!0;default:return!1}}f(dxe,"xze");var cxt=Y(()=>{"use strict";hxe(),RE(),CB(),LE(),EB(),s(uxe,"cloneDeepWith"),s(Ig,"cloneDeepWithImpl"),s(Nl,"copyProperties"),s(dxe,"isCloneableObject")});function pxe(e,t){return uxe(e,(r,i,n,a)=>{let o=t==null?void 0:t(r,i,n,a);if(o!==void 0)return o;if(typeof e=="object"){if(Zm(e)===BE&&typeof e.constructor!="function"){let l={};return a.set(e,l),Nl(l,e,n,a),l}switch(Object.prototype.toString.call(e)){case c4:case Qm:case h4:{let l=new e.constructor(e==null?void 0:e.valueOf());return Nl(l,e),l}case u4:{let l={};return Nl(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}f(pxe,"Aee");var hxt=Y(()=>{"use strict";cxt(),RE(),CB(),s(pxe,"cloneDeepWith")});function SB(e){return pxe(e)}f(SB,"vM");var uxt=Y(()=>{"use strict";hxt(),s(SB,"cloneDeep")});function zE(e){return e!==null&&typeof e=="object"&&Zm(e)==="[object Arguments]"}f(zE,"Ix");var gxe=Y(()=>{"use strict";RE(),s(zE,"isArguments")});function qE(e){return typeof e=="object"&&e!==null}f(qE,"Ox");var fxe=Y(()=>{"use strict";s(qE,"isObjectLike")});function mxe(e){return qE(e)&&dB(e)}f(mxe,"Ree");var dxt=Y(()=>{"use strict";lxe(),fxe(),s(mxe,"isArrayLikeObject")});function yxe(e){return Array.isArray(e)}f(yxe,"Mee");var pxt=Y(()=>{"use strict";s(yxe,"isArray")});function Jm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let r=s(function(...n){let a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);let l=e.apply(this,n);return r.cache=o.set(a,l)||o,l}
vendor: 10,543 bytes, lines 393-394
393,"memoized"),i=Jm.Cache||Map;return r.cache=new i,r}f(Jm,"bp");var gxt=Y(()=>{"use strict";s(Jm,"memoize"),Jm.Cache=Map});function vxe(){}f(vxe,"Oee");var fxt=Y(()=>{"use strict";s(vxe,"noop")});function bxe(e){let t=e==null?void 0:e.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}f(bxe,"Bee");var mxt=Y(()=>{"use strict";s(bxe,"isPrototype")});function ey(e){return FE(e)}f(ey,"nd");var _B=Y(()=>{"use strict";EB(),s(ey,"isTypedArray")});function xxe(e){if(l4(e))return e;let t=Zm(e);if(!kxe(e))return{};if(yxe(e)){let i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(ey(e)){let i=e,n=i.constructor;return new n(i.buffer,i.byteOffset,i.length)}if(t===$E)return new ArrayBuffer(e.byteLength);if(t===PE){let i=e,n=i.buffer,a=i.byteOffset,o=i.byteLength,l=new ArrayBuffer(o),h=new Uint8Array(n,a,o);return new Uint8Array(l).set(h),new DataView(l)}if(t===h4||t===c4||t===Qm){let i=e.constructor,n=new i(e.valueOf());return t===Qm?wxe(n,e):jE(n,e),n}if(t===NE)return new Date(Number(e));if(t===IE){let i=e,n=new RegExp(i.source,i.flags);return n.lastIndex=i.lastIndex,n}if(t===DE)return Object(Symbol.prototype.valueOf.call(e));if(t===ME){let i=e,n=new Map;return i.forEach((a,o)=>{n.set(o,a)}),n}if(t===OE){let i=e,n=new Set;return i.forEach(a=>{n.add(a)}),n}if(t===u4){let i=e,n={};return jE(n,i),n.length=i.length,n[Symbol.iterator]=i[Symbol.iterator],n}let r={};return Cxe(r,e),jE(r,e),Txe(r,e),r}f(xxe,"CM");function kxe(e){switch(Zm(e)){case u4:case gB:case $E:case PE:case h4:case NE:case TB:case wB:case bB:case xB:case kB:case ME:case c4:case BE:case IE:case OE:case Qm:case DE:case fB:case mB:case yB:case vB:return!0;default:return!1}}f(kxe,"bze");function jE(e,t){for(let r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}f(jE,"TM");function Txe(e,t){let r=Object.getOwnPropertySymbols(t);for(let i=0;i<r.length;i++){let n=r[i];Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}}f(Txe,"Tze");function wxe(e,t){let r=t.valueOf().length;for(let i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=r)&&(e[i]=t[i])}f(wxe,"Cze");function Cxe(e,t){let r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}f(Cxe,"kze");var yxt=Y(()=>{"use strict";LE(),RE(),CB(),pxt(),_B(),s(xxe,"clone"),s(kxe,"isCloneableObject"),s(jE,"copyOwnProperties"),s(Txe,"copySymbolProperties"),s(wxe,"cloneStringObjectProperties"),s(Cxe,"copyPrototype")});function GE(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}f(GE,"i4");var vxt=Y(()=>{"use strict";s(GE,"isPlainObject")});function Exe(e){if(l4(e))return e;if(Array.isArray(e)||FE(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let i=Object.create(t);return Object.assign(i,e)}return e}f(Exe,"Gee");var bxt=Y(()=>{"use strict";LE(),EB(),s(Exe,"clone")});function Sxe(e,...t){let r=t.slice(0,-1),i=t[t.length-1],n=e;for(let a=0;a<r.length;a++){let o=r[a];n=UE(n,o,i,new Map)}return n}f(Sxe,"Wee");function UE(e,t,r,i){var a;if(l4(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Exe(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=(a=t[o])!=null?a:void 0}let n=[...Object.keys(t),...pB(t)];for(let o=0;o<n.length;o++){let l=n[o];if(cxe(l))continue;let h=t[l],u=e[l];if(zE(h)&&(h=Tt({},h)),zE(u)&&(u=Tt({},u)),typeof Buffer<"u"&&Buffer.isBuffer(h)&&(h=SB(h)),Array.isArray(h))if(Array.isArray(u)){let p=[],g=Reflect.ownKeys(u);for(let m=0;m<g.length;m++){let y=g[m];p[y]=u[y]}u=p}else if(mxe(u)){let p=[];for(let g=0;g<u.length;g++)p[g]=u[g];u=p}else u=[];let d=r(u,h,l,e,t,i);d!==void 0?e[l]=d:Array.isArray(h)||qE(u)&&qE(h)&&(GE(u)||GE(h)||ey(u)||ey(h))?e[l]=UE(u,h,r,i):u==null&&GE(h)?e[l]=UE({},h,r,i):u==null&&ey(h)?e[l]=SB(h):(u===void 0||h!==void 0)&&(e[l]=h)}return e}f(UE,"n4");var xxt=Y(()=>{"use strict";uxt(),lxt(),bxt(),LE(),hxe(),gxe(),dxt(),fxe(),vxt(),_B(),s(Sxe,"mergeWith"),s(UE,"mergeWithDeep")});function _xe(e,...t){return Sxe(e,...t,vxe)}f(_xe,"kM");var kxt=Y(()=>{"use strict";xxt(),fxt(),s(_xe,"merge")});function AB(e){if(e==null)return!0;if(dB(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!ey(e)&&!zE(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return bxe(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}f(AB,"a4");var Txt=Y(()=>{"use strict";gxe(),lxe(),_B(),mxt(),s(AB,"isEmpty")}),LB=Y(()=>{"use strict";gxt(),yxt(),kxt(),Txt()});function RB(e,t){var i;if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return(i=Oxe[r])!=null?i:t}f(RB,"EM");function Axe(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,Mxe.sanitizeUrl)(r):r}f(Axe,"_ze");function IB(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}f(IB,"Qee");function Lxe(e){let t,r=0;e.forEach(n=>{r+=IB(n,t),t=n});let i=r/2;return WE(e,i)}f(Lxe,"Rze");function Rxe(e){return e.length===1?e[0]:Lxe(e)}f(Rxe,"Lze");function Ixe(e,t,r){let i=structuredClone(r);ge.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();let n=25+e,a=WE(i,n),o=10+e*.5,l=Math.atan2(i[0].y-a.y,i[0].x-a.x),h={x:0,y:0};return t==="start_left"?(h.x=Math.sin(l+Math.PI)*o+(i[0].x+a.x)/2,h.y=-Math.cos(l+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(h.x=Math.sin(l-Math.PI)*o+(i[0].x+a.x)/2-5,h.y=-Math.cos(l-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(h.x=Math.sin(l)*o+(i[0].x+a.x)/2-5,h.y=-Math.cos(l)*o+(i[0].y+a.y)/2-5):(h.x=Math.sin(l)*o+(i[0].x+a.x)/2,h.y=-Math.cos(l)*o+(i[0].y+a.y)/2),h}f(Ixe,"Nze");function DB(e){let t="",r="";for(let i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}f(DB,"_M");function Dxe(e){let t="",r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}f(Dxe,"Ize");function VE(e,t){return d4(e,t).height}f(VE,"l4");function ao(e,t){return d4(e,t).width}f(ao,"ta");function NB(e){return"str"in e}f(NB,"LM");function da(e,t){return _xe({},e,t)}f(da,"Gr");function is(e){return e!=null?e:null}f(is,"ii");function Nxe(e,t){let r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}f(Nxe,"zze");var Mxe,MB,Oxe,$xe,Bxe,OB,Pxe,Fxe,zxe,$B,WE,qxe,BB,PB,FB,jxe,Gxe,ty,Uxe,d4,Vxe,HE,Wxe,Hxe,Eh,ri,Yxe,Sh,Dg,wr=Y(()=>{"use strict";var e;Mxe=_o(s4(),1),ui(),gi(),bD(),jt(),Em(),Nb(),LB(),RM(),MB="\u200B",Oxe={curveBasis:Xm,curveBasisClosed:Obe,curveBasisOpen:$be,curveBumpX:$$,curveBumpY:B$,curveBundle:Bbe,curveCardinalClosed:Pbe,curveCardinalOpen:zbe,curveCardinal:j$,curveCatmullRomClosed:jbe,curveCatmullRomOpen:Gbe,curveCatmullRom:U$,curveLinear:Hm,curveLinearClosed:Ube,curveMonotoneX:eB,curveMonotoneY:tB,curveNatural:nB,curveStep:aB,curveStepAfter:oB,curveStepBefore:sB},$xe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Bxe=s(function(t,r){let i=OB(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(i)){let l=i.map(h=>h.args);zb(l),n=la(n,[...l])}else n=i.args;if(!n)return;let a=c6(t,r),o="config";return n[o]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),n[a]=n[o],delete n[o]),n},"detectInit"),OB=s(function(t,r=null){var i,n;try{let a=new RegExp(`[%]{2}(?![{]${$xe.source})(?=[}][%]{2}).* 394`,"ig");t=t.trim().replace(a,"").replace(/'/gm,'"'),ge.debug(`Detecting diagram directive${r!==null?" type:"+r:""} based on the text:${t}`);let o,l=[];for(;(o=Cm.exec(t))!==null;)if(o.index===Cm.lastIndex&&Cm.lastIndex++,o&&!r||r&&((i=o[1])==null?void 0:i.match(r))||r&&((n=o[2])==null?void 0:n.match(r))){let h=o[1]?o[1]:o[2],u=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;l.push({type:h,args:u})}return l.length===0?{type:t,args:null}:l.length===1?l[0]:l}catch(a){return ge.error(`ERROR: ${a.message} - Unable to parse directive type: '${r}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),Pxe=s(function(t){return t.replace(Cm,"")},"removeDirectives"),Fxe=s(function(t,r){for(let[i,n]of r.entries())if(n.match(t))return i;return-1},"isSubstringInArray"),s(RB,"interpolateToCurve"),s(Axe,"formatUrl"),zxe=s((t,...r)=>{let i=t.split("."),n=i.length-1,a=i[n],o=window;for(let l=0;l<n;l++)if(o=o[i[l]],!o){ge.error(`Function name: ${t} not found in window`);return}o[a](...r)},"runFunc"),s(IB,"distance"),s(Lxe,"traverseEdge"),s(Rxe,"calcLabelPosition"),$B=s((t,r=2)=>{let i=Math.pow(10,r);return Math.round(t*i)/i},"roundNumber"),WE=s((t,r)=>{let i,n=r;for(let a of t){if(i){let o=IB(a,i);if(o===0)return i;if(o<n)n-=o;else{let l=n/o;if(l<=0)return i;if(l>=1)return{x:a.x,y:a.y};if(l>0&&l<1)return{x:$B((1-l)*i.x+l*a.x,5),y:$B((1-l)*i.y+l*a.y,5)}}}i=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),qxe=s((t,r,i)=>{ge.info(`our points ${JSON.stringify(r)}`),r[0]!==i&&(r=r.reverse());let n=WE(r,25),a=t?10:5,o=Math.atan2(r[0].y-n.y,r[0].x-n.x),l={x:0,y:0};return l.x=Math.sin(o)*a+(r[0].x+n.x)/2,l.y=-Math.cos(o)*a+(r[0].y+n.y)/2,l},"calcCardinalityPosition"),s(Ixe,"calcTerminalLabelPosition"),s(DB,"getStylesFromArray"),BB=0,PB=s(()=>(BB++,"id-"+Math.random().toString(36).substr(2,12)+"-"+BB),"generateId"),s(Dxe,"makeRandomHex"),FB=s(t=>Dxe(t.length),"random"),jxe=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:""}}
vendor: 16,758 bytes, lines 394-404
394,"getTextObj"),Gxe=s(function(t,r){let i=r.text.replace(Vt.lineBreakRegex," "),[,n]=Eh(r.fontSize),a=t.append("text");a.attr("x",r.x),a.attr("y",r.y),a.style("text-anchor",r.anchor),a.style("font-family",r.fontFamily),a.style("font-size",n),a.style("font-weight",r.fontWeight),a.attr("fill",r.fill),r.class!==void 0&&a.attr("class",r.class);let o=a.append("tspan");return o.attr("x",r.x+r.textMargin*2),o.attr("fill",r.fill),o.text(i),a},"drawSimpleText"),ty=Jm((t,r,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Vt.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((l,h)=>{let u=ao(`${l} `,i),d=ao(o,i);if(u>r){let{hyphenatedStrings:p,remainingWord:g}=Uxe(l,r,"-",i);a.push(o,...p),o=g}else d+u>=r?(a.push(o),o=l):o=[o,l].filter(Boolean).join(" ");h+1===n.length&&a.push(o)}),a.filter(l=>l!=="").join(i.joinWith)},(t,r,i)=>`${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Uxe=Jm((t,r,i="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let a=[...t],o=[],l="";return a.forEach((h,u)=>{let d=`${l}${h}`;if(ao(d,n)>=r){let p=u+1,g=a.length===p,m=`${d}${i}`;o.push(g?d:m),l=""}else l=d}),{hyphenatedStrings:o,remainingWord:l}},(t,r,i="-",n)=>`${t}${r}${i}${n.fontSize}${n.fontWeight}${n.fontFamily}`),s(VE,"calculateTextHeight"),s(ao,"calculateTextWidth"),d4=Jm((t,r)=>{let{fontSize:i=12,fontFamily:n="Arial",fontWeight:a=400}=r;if(!t)return{width:0,height:0};let[,o]=Eh(i),l=["sans-serif",n],h=t.split(Vt.lineBreakRegex),u=[],d=Lt("body");if(!d.remove)return{width:0,height:0,lineHeight:0};let p=d.append("svg");for(let m of l){let y=0,x={width:0,height:0,lineHeight:0};for(let C of h){let w=jxe();w.text=C||MB;let _=Gxe(p,w).style("font-size",o).style("font-weight",a).style("font-family",m),S=(_._groups||_)[0][0].getBBox();if(S.width===0&&S.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,S.width)),y=Math.round(S.height),x.height+=y,x.lineHeight=Math.round(Math.max(x.lineHeight,y))}u.push(x)}p.remove();let g=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[g]},(t,r)=>`${t}${r.fontSize}${r.fontWeight}${r.fontFamily}`),Vxe=(e=class{constructor(r=!1,i){this.count=0,this.count=i?i.length:0,this.next=r?()=>this.count++:()=>Date.now()}},f(e,"wM"),s(e,"InitIDGenerator"),e),Wxe=s(function(t){return HE=HE||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),HE.innerHTML=t,unescape(HE.textContent)},"entityDecode"),s(NB,"isDetailedError"),Hxe=s((t,r,i,n)=>{var o;if(!n)return;let a=(o=t.node())==null?void 0:o.getBBox();a&&t.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-i).attr("class",r)},"insertTitle"),Eh=s(t=>{if(typeof t=="number")return[t,t+"px"];let r=parseInt(t!=null?t:"",10);return Number.isNaN(r)?[void 0,void 0]:t===String(r)?[r,t+"px"]:[r,t]},"parseFontSize"),s(da,"cleanAndMerge"),ri={assignWithDepth:la,wrapLabel:ty,calculateTextHeight:VE,calculateTextWidth:ao,calculateTextDimensions:d4,cleanAndMerge:da,detectInit:Bxe,detectDirective:OB,isSubstringInArray:Fxe,interpolateToCurve:RB,calcLabelPosition:Rxe,calcCardinalityPosition:qxe,calcTerminalLabelPosition:Ixe,formatUrl:Axe,getStylesFromArray:DB,generateId:PB,random:FB,runFunc:zxe,entityDecode:Wxe,insertTitle:Hxe,isLabelCoordinateInPath:Nxe,parseFontSize:Eh,InitIDGenerator:Vxe},Yxe=s(function(t){let r=t;return r=r.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/#\w+;/g,function(i){let n=i.substring(1,i.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),r},"encodeEntities"),Sh=s(function(t){return t.replace(/ï¬Â°Â°/g,"&#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},"decodeEntities"),Dg=s((t,r,{counter:i=0,prefix:n,suffix:a},o)=>o||`${n?`${n}_`:""}${t}_${r}_${i}${a?`_${a}`:""}`,"getEdgeId"),s(is,"handleUndefinedAttr"),s(Nxe,"isLabelCoordinateInPath")});function Ml(e,t,r,i,n){if(!t[e].width)if(r)t[e].text=ty(t[e].text,n,i),t[e].textLines=t[e].text.split(Vt.lineBreakRegex).length,t[e].width=n,t[e].height=VE(t[e].text,i);else{let a=t[e].text.split(Vt.lineBreakRegex);t[e].textLines=a.length;let o=0;t[e].height=0,t[e].width=0;for(let l of a)t[e].width=Math.max(ao(l,i),t[e].width),o=VE(l,i),t[e].height=t[e].height+o}}f(Ml,"Ll");function zB(e,t,r,i,n){let a=new jB(n);a.data.widthLimit=r.data.widthLimit/Math.min(YE,i.length);for(let[o,l]of i.entries()){let h=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=h,h=l.image.Y+l.image.height);let u=l.wrap&&Cr.wrap,d=f4(Cr);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",Ml("label",l,u,d,a.data.widthLimit),l.label.Y=h+8,h=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let y=f4(Cr);Ml("type",l,u,y,a.data.widthLimit),l.type.Y=h+5,h=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let y=f4(Cr);y.fontSize=y.fontSize-2,Ml("descr",l,u,y,a.data.widthLimit),l.descr.Y=h+20,h=l.descr.Y+l.descr.height}if(o==0||o%YE===0){let y=r.data.startx+Cr.diagramMarginX,x=r.data.stopy+Cr.diagramMarginY+h;a.setData(y,y,x,x)}else{let y=a.data.stopx!==a.data.startx?a.data.stopx+Cr.diagramMarginX:a.data.startx,x=a.data.starty;a.setData(y,y,x,x)}a.name=l.alias;let p=n.db.getC4ShapeArray(l.alias),g=n.db.getC4ShapeKeys(l.alias);g.length>0&&UB(a,e,p,g),t=l.alias;let m=n.db.getBoundaries(t);m.length>0&&zB(e,t,a,m,n),l.alias!=="global"&&GB(e,l,a),r.data.stopy=Math.max(a.data.stopy+Cr.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+Cr.c4ShapeMargin,r.data.stopx),p4=Math.max(p4,r.data.stopx),g4=Math.max(g4,r.data.stopy)}}f(zB,"nte");var p4,g4,qB,YE,Cr,jB,XE,ry,f4,Xxe,GB,UB,il,VB,Kxe,Zxe,Qxe,WB,wxt=Y(()=>{"use strict";var e,t;ui(),sxt(),jt(),j0e(),gi(),_ge(),vr(),Nb(),wr(),Bn(),p4=0,g4=0,qB=4,YE=2,mx.yy=k6,Cr={},jB=(e=class{constructor(i){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,XE(i.db.getConfig())}setData(i,n,a,o){this.nextData.startx=this.data.startx=i,this.nextData.stopx=this.data.stopx=n,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=o}updateVal(i,n,a,o){i[n]===void 0?i[n]=a:i[n]=o(a,i[n])}insert(i){this.nextData.cnt=this.nextData.cnt+1;let n=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+i.margin:this.nextData.stopx+i.margin*2,a=n+i.width,o=this.nextData.starty+i.margin*2,l=o+i.height;(n>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>qB)&&(n=this.nextData.startx+i.margin+Cr.nextLinePaddingX,o=this.nextData.stopy+i.margin*2,this.nextData.stopx=a=n+i.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=l=o+i.height,this.nextData.cnt=1),i.x=n,i.y=o,this.updateVal(this.data,"startx",n,Math.min),this.updateVal(this.data,"starty",o,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",l,Math.max),this.updateVal(this.nextData,"startx",n,Math.min),this.updateVal(this.nextData,"starty",o,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",l,Math.max)}init(i){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},XE(i.db.getConfig())}bumpLastMargin(i){this.data.stopx+=i,this.data.stopy+=i}},f(e,"d4"),s(e,"Bounds"),e),XE=s(function(r){la(Cr,r),r.fontFamily&&(Cr.personFontFamily=Cr.systemFontFamily=Cr.messageFontFamily=r.fontFamily),r.fontSize&&(Cr.personFontSize=Cr.systemFontSize=Cr.messageFontSize=r.fontSize),r.fontWeight&&(Cr.personFontWeight=Cr.systemFontWeight=Cr.messageFontWeight=r.fontWeight)},"setConf"),ry=s((r,i)=>({fontFamily:r[i+"FontFamily"],fontSize:r[i+"FontSize"],fontWeight:r[i+"FontWeight"]}),"c4ShapeFont"),f4=s(r=>({fontFamily:r.boundaryFontFamily,fontSize:r.boundaryFontSize,fontWeight:r.boundaryFontWeight}),"boundaryFont"),Xxe=s(r=>({fontFamily:r.messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight}),"messageFont"),s(Ml,"calcC4ShapeTextWH"),GB=s(function(r,i,n){i.x=n.data.startx,i.y=n.data.starty,i.width=n.data.stopx-n.data.startx,i.height=n.data.stopy-n.data.starty,i.label.y=Cr.c4ShapeMargin-35;let a=i.wrap&&Cr.wrap,o=f4(Cr);o.fontSize=o.fontSize+2,o.fontWeight="bold";let l=ao(i.label.text,o);Ml("label",i,a,o,l),xc.drawBoundary(r,i,Cr)},"drawBoundary"),UB=s(function(r,i,n,a){let o=0;for(let l of a){o=0;let h=n[l],u=ry(Cr,h.typeC4Shape.text);switch(u.fontSize=u.fontSize-2,h.typeC4Shape.width=ao("\xAB"+h.typeC4Shape.text+"\xBB",u),h.typeC4Shape.height=u.fontSize+2,h.typeC4Shape.Y=Cr.c4ShapePadding,o=h.typeC4Shape.Y+h.typeC4Shape.height-4,h.image={width:0,height:0,Y:0},h.typeC4Shape.text){case"person":case"external_person":h.image.width=48,h.image.height=48,h.image.Y=o,o=h.image.Y+h.image.height;break}h.sprite&&(h.image.width=48,h.image.height=48,h.image.Y=o,o=h.image.Y+h.image.height);let d=h.wrap&&Cr.wrap,p=Cr.width-Cr.c4ShapePadding*2,g=ry(Cr,h.typeC4Shape.text);if(g.fontSize=g.fontSize+2,g.fontWeight="bold",Ml("label",h,d,g,p),h.label.Y=o+8,o=h.label.Y+h.label.height,h.type&&h.type.text!==""){h.type.text="["+h.type.text+"]";let x=ry(Cr,h.typeC4Shape.text);Ml("type",h,d,x,p),h.type.Y=o+5,o=h.type.Y+h.type.height}else if(h.techn&&h.techn.text!==""){h.techn.text="["+h.techn.text+"]";let x=ry(Cr,h.techn.text);Ml("techn",h,d,x,p),h.techn.Y=o+5,o=h.techn.Y+h.techn.height}let m=o,y=h.label.width;if(h.descr&&h.descr.text!==""){let x=ry(Cr,h.typeC4Shape.text);Ml("descr",h,d,x,p),h.descr.Y=o+20,o=h.descr.Y+h.descr.height,y=Math.max(h.label.width,h.descr.width),m=o-h.descr.textLines*5}y=y+Cr.c4ShapePadding,h.width=Math.max(h.width||Cr.width,y,Cr.width),h.height=Math.max(h.height||Cr.height,m,Cr.height),h.margin=h.margin||Cr.c4ShapeMargin,r.insert(h),xc.drawC4Shape(i,h,Cr)}r.bumpLastMargin(Cr.c4ShapeMargin)},"drawC4ShapeArray"),il=(t=class{constructor(i,n){this.x=i,this.y=n}},f(t,"Ss"),s(t,"Point"),t),VB=s(function(r,i){let n=r.x,a=r.y,o=i.x,l=i.y,h=n+r.width/2,u=a+r.height/2,d=Math.abs(n-o),p=Math.abs(a-l),g=p/d,m=r.height/r.width,y=null;return a==l&&n<o?y=new il(n+r.width,u):a==l&&n>o?y=new il(n,u):n==o&&a<l?y=new il(h,a+r.height):n==o&&a>l&&(y=new il(h,a)),n>o&&a<l?m>=g?y=new il(n,u+g*r.width/2):y=new il(h-d/p*r.height/2,a+r.height):n<o&&a<l?m>=g?y=new il(n+r.width,u+g*r.width/2):y=new il(h+d/p*r.height/2,a+r.height):n<o&&a>l?m>=g?y=new il(n+r.width,u-g*r.width/2):y=new il(h+r.height/2*d/p,a):n>o&&a>l&&(m>=g?y=new il(n,u-r.width/2*g):y=new il(h-r.height/2*d/p,a)),y},"getIntersectPoint"),Kxe=s(function(r,i){let n={x:0,y:0};n.x=i.x+i.width/2,n.y=i.y+i.height/2;let a=VB(r,n);n.x=r.x+r.width/2,n.y=r.y+r.height/2;let o=VB(i,n);return{startPoint:a,endPoint:o}},"getIntersectPoints"),Zxe=s(function(r,i,n,a,o){let l=0;for(let h of i){l=l+1;let u=h.wrap&&Cr.wrap,d=Xxe(Cr);a.db.getC4Type()==="C4Dynamic"&&(h.label.text=l+": "+h.label.text);let p=ao(h.label.text,d);Ml("label",h,u,d,p),h.techn&&h.techn.text!==""&&(p=ao(h.techn.text,d),Ml("techn",h,u,d,p)),h.descr&&h.descr.text!==""&&(p=ao(h.descr.text,d),Ml("descr",h,u,d,p));let g=n(h.from),m=n(h.to),y=Kxe(g,m);h.startPoint=y.startPoint,h.endPoint=y.endPoint}xc.drawRels(r,i,Cr,o)},"drawRels"),s(zB,"drawInsideBoundary"),Qxe=s(function(r,i,n,a){Cr=Ue().c4;let o=Ue().securityLevel,l;o==="sandbox"&&(l=Lt("#i"+i));let h=Lt(o==="sandbox"?l.nodes()[0].contentDocument.body:"body"),u=a.db;a.db.setWrap(Cr.wrap),qB=u.getC4ShapeInRow(),YE=u.getC4BoundaryInRow(),ge.debug(`C:${JSON.stringify(Cr,null,2)}`);let d=o==="sandbox"?h.select(`[id="${i}"]`):Lt(`[id="${i}"]`);xc.insertComputerIcon(d,i),xc.insertDatabaseIcon(d,i),xc.insertClockIcon(d,i);let p=new jB(a);p.setData(Cr.diagramMarginX,Cr.diagramMarginX,Cr.diagramMarginY,Cr.diagramMarginY),p.data.widthLimit=screen.availWidth,p4=Cr.diagramMarginX,g4=Cr.diagramMarginY;let g=a.db.getTitle(),m=a.db.getBoundaries("");zB(d,"",p,m,a),xc.insertArrowHead(d,i),xc.insertArrowEnd(d,i),xc.insertArrowCrossHead(d,i),xc.insertArrowFilledHead(d,i),Zxe(d,a.db.getRels(),a.db.getC4Shape,a,i),p.data.stopx=p4,p.data.stopy=g4;let y=p.data,x=y.stopy-y.starty+2*Cr.diagramMarginY,C=y.stopx-y.startx+2*Cr.diagramMarginX;g&&d.append("text").text(g).attr("x",(y.stopx-y.startx)/2-4*Cr.diagramMarginX).attr("y",y.starty+Cr.diagramMarginY),Ta(d,x,C,Cr.useMaxWidth);let w=g?60:0;d.attr("viewBox",y.startx-Cr.diagramMarginX+" -"+(Cr.diagramMarginY+w)+" "+C+" "+(x+w)),ge.debug("models:",y)},"draw"),WB={drawPersonOrSystemArray:UB,drawBoundary:GB,setConf:XE,draw:Qxe}}),Jxe,e4e,Cxt=Y(()=>{"use strict";Jxe=s(e=>`.person { 395 stroke: ${e.personBorder}; 396 fill: ${e.personBkg}; 397 } 398`,"getStyles"),e4e=Jxe}),t4e={};Jr(t4e,{diagram:f(()=>r4e,"diagram")});var r4e,Ext=Y(()=>{"use strict";j0e(),_ge(),wxt(),Cxt(),r4e={parser:q0e,db:k6,renderer:WB,styles:e4e,init:s(({c4:e,wrap:t})=>{WB.setConf(e),k6.setWrap(t)},"init")}});function HB(e){return typeof e>"u"||e===null}f(HB,"Ete");function i4e(e){return typeof e=="object"&&e!==null}f(i4e,"Kze");function n4e(e){return Array.isArray(e)?e:HB(e)?[]:[e]}f(n4e,"Zze");function a4e(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}f(a4e,"Qze");function s4e(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}f(s4e,"Jze");function o4e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}f(o4e,"eGe");function YB(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=` 399 400`+e.mark.snippet),i+" "+r):i}f(YB,"Ate");function iy(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=YB(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}f(iy,"$x");function KE(e,t,r,i,n){var a="",o="",l=Math.floor(n/2)-1;return i-t>l&&(a=" ... ",t=i-l+a.length),r-i>l&&(o=" ...",r=i+l-o.length),{str:a+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:i-t+a.length}}f(KE,"OM");function ZE(e,t){return $a.repeat(" ",t-e.length)+e}f(ZE,"PM");function l4e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,o=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var l="",h,u,d=Math.min(e.line+t.linesAfter,n.length).toString().length,p=t.maxLength-(t.indent+d+3);for(h=1;h<=t.linesBefore&&!(o-h<0);h++)u=KE(e.buffer,i[o-h],n[o-h],e.position-(i[o]-i[o-h]),p),l=$a.repeat(" ",t.indent)+ZE((e.line-h+1).toString(),d)+" | "+u.str+` 401`+l;for(u=KE(e.buffer,i[o],n[o],e.position,p),l+=$a.repeat(" ",t.indent)+ZE((e.line+1).toString(),d)+" | "+u.str+` 402`,l+=$a.repeat("-",t.indent+d+3+u.pos)+`^ 403`,h=1;h<=t.linesAfter&&!(o+h>=n.length);h++)u=KE(e.buffer,i[o+h],n[o+h],e.position-(i[o]-i[o+h]),p),l+=$a.repeat(" ",t.indent)+ZE((e.line+h+1).toString(),d)+" | "+u.str+` 404`;return l.replace(/\n$/,"")}f(l4e,"oGe");function c4e(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}f(c4e,"hGe");function h4e(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(_3e.indexOf(r)===-1)throw new oo('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=c4e(t.styleAliases||null),A3e.indexOf(this.kind)===-1)throw new oo('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}f(h4e,"dGe");function XB(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,o){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=o)}),r[n]=i}),r}f(XB,"hte");function u4e(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}
vendor: 33,099 bytes, lines 404-428
404for(f(i,"i"),s(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}f(u4e,"fGe");function QE(e){return this.extend(e)}f(QE,"FM");function d4e(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}f(d4e,"xGe");function p4e(){return null}f(p4e,"bGe");function g4e(e){return e===null}f(g4e,"TGe");function f4e(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}f(f4e,"kGe");function m4e(e){return e==="true"||e==="True"||e==="TRUE"}f(m4e,"wGe");function y4e(e){return Object.prototype.toString.call(e)==="[object Boolean]"}f(y4e,"SGe");function v4e(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}f(v4e,"AGe");function b4e(e){return 48<=e&&e<=55}f(b4e,"_Ge");function x4e(e){return 48<=e&&e<=57}f(x4e,"DGe");function k4e(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!v4e(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!b4e(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!x4e(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}f(k4e,"RGe");function T4e(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}f(T4e,"LGe");function w4e(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$a.isNegativeZero(e)}f(w4e,"MGe");function C4e(e){return!(e===null||!B3e.test(e)||e[e.length-1]==="_")}f(C4e,"OGe");function E4e(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}f(E4e,"PGe");function S4e(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($a.isNegativeZero(e))return"-0.0";return r=e.toString(10),P3e.test(r)?r.replace("e",".e"):r}f(S4e,"FGe");function _4e(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$a.isNegativeZero(e))}f(_4e,"$Ge");function A4e(e){return e===null?!1:pP.exec(e)!==null||gP.exec(e)!==null}f(A4e,"VGe");function L4e(e){var t,r,i,n,a,o,l,h=0,u=null,d,p,g;if(t=pP.exec(e),t===null&&(t=gP.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],o=+t[5],l=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h=+h}return t[9]&&(d=+t[10],p=+(t[11]||0),u=(d*60+p)*6e4,t[9]==="-"&&(u=-u)),g=new Date(Date.UTC(r,i,n,a,o,l,h)),u&&g.setTime(g.getTime()-u),g}f(L4e,"WGe");function R4e(e){return e.toISOString()}f(R4e,"qGe");function I4e(e){return e==="<<"||e===null}f(I4e,"HGe");function D4e(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=nS;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}f(D4e,"jGe");function N4e(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=nS,o=0,l=[];for(t=0;t<n;t++)t%4===0&&t&&(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)),o=o<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)):r===18?(l.push(o>>10&255),l.push(o>>2&255)):r===12&&l.push(o>>4&255),new Uint8Array(l)}f(N4e,"XGe");function M4e(e){var t="",r=0,i,n,a=e.length,o=nS;for(i=0;i<a;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}f(M4e,"KGe");function O4e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}f(O4e,"ZGe");function $4e(e){if(e===null)return!0;var t=[],r,i,n,a,o,l=e;for(r=0,i=l.length;r<i;r+=1){if(n=l[r],o=!1,V3e.call(n)!=="[object Object]")return!1;for(a in n)if(U3e.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}f($4e,"tVe");function B4e(e){return e!==null?e:[]}f(B4e,"rVe");function P4e(e){if(e===null)return!0;var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],H3e.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}f(P4e,"aVe");function F4e(e){if(e===null)return[];var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}f(F4e,"sVe");function z4e(e){if(e===null)return!0;var t,r=e;for(t in r)if(X3e.call(r,t)&&r[t]!==null)return!1;return!0}f(z4e,"cVe");function q4e(e){return e!==null?e:{}}f(q4e,"uVe");function KB(e){return Object.prototype.toString.call(e)}f(KB,"fte");function kc(e){return e===10||e===13}f(kc,"Tc");function fp(e){return e===9||e===32}f(fp,"kp");function so(e){return e===9||e===32||e===10||e===13}f(so,"As");function Ng(e){return e===44||e===91||e===93||e===123||e===125}f(Ng,"vg");function j4e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}f(j4e,"gVe");function G4e(e){return e===120?2:e===117?4:e===85?8:0}f(G4e,"yVe");function U4e(e){return 48<=e&&e<=57?e-48:-1}f(U4e,"vVe");function ZB(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` 405`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}f(ZB,"pte");function V4e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}f(V4e,"xVe");function QB(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}f(QB,"Pte");function W4e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fP,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}f(W4e,"bVe");function JB(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=S3e(r),new oo(t,r)}f(JB,"$te");function Nr(e,t){throw JB(e,t)}f(Nr,"ar");function m4(e,t){e.onWarning&&e.onWarning.call(null,JB(e,t))}f(m4,"m4");function Uu(e,t,r,i){var n,a,o,l;if(t<r){if(l=e.input.slice(t,r),i)for(n=0,a=l.length;n<a;n+=1)o=l.charCodeAt(n),o===9||32<=o&&o<=1114111||Nr(e,"expected valid JSON character");else Q3e.test(l)&&Nr(e,"the stream contains non-printable characters");e.result+=l}}f(Uu,"ad");function eP(e,t,r,i){var n,a,o,l;for($a.isObject(r)||Nr(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,l=n.length;o<l;o+=1)a=n[o],Vu.call(t,a)||(QB(t,a,r[a]),i[a]=!0)}f(eP,"gte");function Mg(e,t,r,i,n,a,o,l,h){var u,d;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,d=n.length;u<d;u+=1)Array.isArray(n[u])&&Nr(e,"nested arrays are not supported inside keys"),typeof n=="object"&&KB(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&KB(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,d=a.length;u<d;u+=1)eP(e,t,a[u],r);else eP(e,t,a,r);else!e.json&&!Vu.call(r,n)&&Vu.call(t,n)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=h||e.position,Nr(e,"duplicated mapping key")),QB(t,n,a),delete r[n];return t}f(Mg,"xg");function JE(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Nr(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}f(JE,"qM");function wa(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;fp(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(kc(n))for(JE(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&m4(e,"deficient indentation"),i}f(wa,"En");function y4(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||so(r)))}f(y4,"v4");function eS(e,t){t===1?e.result+=" ":t>1&&(e.result+=$a.repeat(` 406`,t-1))}f(eS,"UM");function H4e(e,t,r){var i,n,a,o,l,h,u,d,p=e.kind,g=e.result,m;if(m=e.input.charCodeAt(e.position),so(m)||Ng(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(n=e.input.charCodeAt(e.position+1),so(n)||r&&Ng(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,l=!1;m!==0;){if(m===58){if(n=e.input.charCodeAt(e.position+1),so(n)||r&&Ng(n))break}else if(m===35){if(i=e.input.charCodeAt(e.position-1),so(i))break}else{if(e.position===e.lineStart&&y4(e)||r&&Ng(m))break;if(kc(m))if(h=e.line,u=e.lineStart,d=e.lineIndent,wa(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=h,e.lineStart=u,e.lineIndent=d;break}}l&&(Uu(e,a,o,!1),eS(e,e.line-h),a=o=e.position,l=!1),fp(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return Uu(e,a,o,!1),e.result?!0:(e.kind=p,e.result=g,!1)}f(H4e,"TVe");function Y4e(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Uu(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else kc(r)?(Uu(e,i,n,!0),eS(e,wa(e,!1,t)),i=n=e.position):e.position===e.lineStart&&y4(e)?Nr(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Nr(e,"unexpected end of the stream within a single quoted scalar")}f(Y4e,"CVe");function X4e(e,t){var r,i,n,a,o,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Uu(e,r,e.position,!0),e.position++,!0;if(l===92){if(Uu(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),kc(l))wa(e,!1,t);else if(l<256&&kP[l])e.result+=TP[l],e.position++;else if((o=G4e(l))>0){for(n=o,a=0;n>0;n--)l=e.input.charCodeAt(++e.position),(o=j4e(l))>=0?a=(a<<4)+o:Nr(e,"expected hexadecimal character");e.result+=V4e(a),e.position++}else Nr(e,"unknown escape sequence");r=i=e.position}else kc(l)?(Uu(e,r,i,!0),eS(e,wa(e,!1,t)),r=i=e.position):e.position===e.lineStart&&y4(e)?Nr(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Nr(e,"unexpected end of the stream within a double quoted scalar")}f(X4e,"kVe");function K4e(e,t){var r=!0,i,n,a,o=e.tag,l,h=e.anchor,u,d,p,g,m,y=Object.create(null),x,C,w,_;if(_=e.input.charCodeAt(e.position),_===91)d=93,m=!1,l=[];else if(_===123)d=125,m=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(++e.position);_!==0;){if(wa(e,!0,t),_=e.input.charCodeAt(e.position),_===d)return e.position++,e.tag=o,e.anchor=h,e.kind=m?"mapping":"sequence",e.result=l,!0;r?_===44&&Nr(e,"expected the node content, but found ','"):Nr(e,"missed comma between flow collection entries"),C=x=w=null,p=g=!1,_===63&&(u=e.input.charCodeAt(e.position+1),so(u)&&(p=g=!0,e.position++,wa(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,Og(e,t,b4,!1,!0),C=e.tag,x=e.result,wa(e,!0,t),_=e.input.charCodeAt(e.position),(g||e.line===i)&&_===58&&(p=!0,_=e.input.charCodeAt(++e.position),wa(e,!0,t),Og(e,t,b4,!1,!0),w=e.result),m?Mg(e,l,y,C,x,w,i,n,a):p?l.push(Mg(e,null,y,C,x,w,i,n,a)):l.push(x),wa(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}Nr(e,"unexpected end of the stream within a flow collection")}f(K4e,"wVe");function Z4e(e,t){var r,i,n=aS,a=!1,o=!1,l=t,h=0,u=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)aS===n?n=p===43?vP:Z3e:Nr(e,"repeat of a chomping mode identifier");else if((d=U4e(p))>=0)d===0?Nr(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Nr(e,"repeat of an indentation width identifier"):(l=t+d-1,o=!0);else break;if(fp(p)){do p=e.input.charCodeAt(++e.position);while(fp(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!kc(p)&&p!==0)}for(;p!==0;){for(JE(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),kc(p)){h++;continue}if(e.lineIndent<l){n===vP?e.result+=$a.repeat(` 407`,a?1+h:h):n===aS&&a&&(e.result+=` 408`);break}for(i?fp(p)?(u=!0,e.result+=$a.repeat(` 409`,a?1+h:h)):u?(u=!1,e.result+=$a.repeat(` 410`,h+1)):h===0?a&&(e.result+=" "):e.result+=$a.repeat(` 411`,h):e.result+=$a.repeat(` 412`,a?1+h:h),a=!0,o=!0,h=0,r=e.position;!kc(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Uu(e,r,e.position,!1)}return!0}f(Z4e,"SVe");function tP(e,t){var r,i=e.tag,n=e.anchor,a=[],o,l=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),h=e.input.charCodeAt(e.position);h!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nr(e,"tab characters must not be used in indentation")),!(h!==45||(o=e.input.charCodeAt(e.position+1),!so(o))));){if(l=!0,e.position++,wa(e,!0,-1)&&e.lineIndent<=t){a.push(null),h=e.input.charCodeAt(e.position);continue}if(r=e.line,Og(e,t,yP,!1,!0),a.push(e.result),wa(e,!0,-1),h=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&h!==0)Nr(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}f(tP,"yte");function Q4e(e,t,r){var i,n,a,o,l,h,u=e.tag,d=e.anchor,p={},g=Object.create(null),m=null,y=null,x=null,C=!1,w=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),_=e.input.charCodeAt(e.position);_!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nr(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(_===63||_===58)&&so(i))_===63?(C&&(Mg(e,p,g,m,y,null,o,l,h),m=y=x=null),w=!0,C=!0,n=!0):C?(C=!1,n=!0):Nr(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=i;else{if(o=e.line,l=e.lineStart,h=e.position,!Og(e,r,mP,!1,!0))break;if(e.line===a){for(_=e.input.charCodeAt(e.position);fp(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),so(_)||Nr(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Mg(e,p,g,m,y,null,o,l,h),m=y=x=null),w=!0,C=!1,n=!1,m=e.tag,y=e.result;else if(w)Nr(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=d,!0}else if(w)Nr(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=d,!0}if((e.line===a||e.lineIndent>t)&&(C&&(o=e.line,l=e.lineStart,h=e.position),Og(e,t,x4,!0,n)&&(C?y=e.result:x=e.result),C||(Mg(e,p,g,m,y,x,o,l,h),m=y=x=null),wa(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&_!==0)Nr(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&Mg(e,p,g,m,y,null,o,l,h),w&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),w}f(Q4e,"EVe");function J4e(e){var t,r=!1,i=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Nr(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Nr(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!so(o);)o===33&&(i?Nr(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),bP.test(n)||Nr(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),eke.test(a)&&Nr(e,"tag suffix cannot contain flow indicator characters")}a&&!xP.test(a)&&Nr(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch(l){Nr(e,"tag name is malformed: "+a)}return r?e.tag=a:Vu.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:Nr(e,'undeclared tag handle "'+n+'"'),!0}f(J4e,"AVe");function e3e(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Nr(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!so(r)&&!Ng(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Nr(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}f(e3e,"_Ve");function t3e(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!so(i)&&!Ng(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Nr(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Vu.call(e.anchorMap,r)||Nr(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],wa(e,!0,-1),!0}f(t3e,"DVe");function Og(e,t,r,i,n){var a,o,l,h=1,u=!1,d=!1,p,g,m,y,x,C;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=l=x4===r||yP===r,i&&wa(e,!0,-1)&&(u=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),h===1)for(;J4e(e)||e3e(e);)wa(e,!0,-1)?(u=!0,l=a,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):l=!1;if(l&&(l=u||n),(h===1||x4===r)&&(b4===r||mP===r?x=t:x=t+1,C=e.position-e.lineStart,h===1?l&&(tP(e,C)||Q4e(e,C,x))||K4e(e,x)?d=!0:(o&&Z4e(e,x)||Y4e(e,x)||X4e(e,x)?d=!0:t3e(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Nr(e,"alias node should not have any properties")):H4e(e,x,b4===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h===0&&(d=l&&tP(e,C))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Nr(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,g=e.implicitTypes.length;p<g;p+=1)if(y=e.implicitTypes[p],y.resolve(e.result)){e.result=y.construct(e.result),e.tag=y.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Vu.call(e.typeMap[e.kind||"fallback"],e.tag))y=e.typeMap[e.kind||"fallback"][e.tag];else for(y=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,g=m.length;p<g;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){y=m[p];break}y||Nr(e,"unknown tag !<"+e.tag+">"),e.result!==null&&y.kind!==e.kind&&Nr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result,e.tag)?(e.result=y.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Nr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}f(Og,"bg");function r3e(e){var t=e.position,r,i,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(wa(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!so(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&Nr(e,"directive name must not be less than one character in length");o!==0;){for(;fp(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!kc(o));break}if(kc(o))break;for(r=e.position;o!==0&&!so(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&JE(e),Vu.call(wP,i)?wP[i](e,i,n):m4(e,'unknown document directive "'+i+'"')}if(wa(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,wa(e,!0,-1)):a&&Nr(e,"directives end mark is expected"),Og(e,e.lineIndent-1,x4,!1,!0),wa(e,!0,-1),e.checkLineBreaks&&J3e.test(e.input.slice(t,e.position))&&m4(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&y4(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,wa(e,!0,-1));return}if(e.position<e.length-1)Nr(e,"end of the stream or a document separator is expected");else return}f(r3e,"RVe");function rP(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` 413`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new W4e(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Nr(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)r3e(r);return r.documents}f(rP,"zte");function i3e(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=rP(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}f(i3e,"LVe");function n3e(e,t){var r=rP(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new oo("expected a single document in the stream, but found more")}}f(n3e,"MVe");function a3e(e,t){var r,i,n,a,o,l,h;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)o=i[n],l=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),h=e.compiledTypeMap.fallback[o],h&&SP.call(h.styleAliases,l)&&(l=h.styleAliases[l]),r[o]=l;return r}f(a3e,"JVe");function s3e(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new oo("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+$a.repeat("0",i-t.length)+t}f(s3e,"eWe");function o3e(e){this.schema=e.schema||fP,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=$a.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=a3e(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?oy:kke,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}f(o3e,"rWe");function iP(e,t){for(var r=$a.repeat(" ",t),i=0,n=-1,a="",o,l=e.length;i<l;)n=e.indexOf(` 414`,i),n===-1?(o=e.slice(i),i=l):(o=e.slice(i,n+1),i=n+1),o.length&&o!==` 415`&&(a+=r),a+=o;return a}f(iP,"vte");function tS(e,t){return` 416`+$a.repeat(" ",e.indent*t)}f(tS,"zM");function l3e(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}f(l3e,"iWe");function v4(e){return e===ake||e===ike}f(v4,"y4");function ny(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==sS||65536<=e&&e<=1114111}f(ny,"Vx");function nP(e){return ny(e)&&e!==sS&&e!==nke&&e!==sy}f(nP,"xte");function aP(e,t,r){var i=nP(e),n=i&&!v4(e);return(r?i:i&&e!==_P&&e!==AP&&e!==LP&&e!==RP&&e!==IP)&&e!==oS&&!(t===k4&&!n)||nP(t)&&!v4(t)&&e===oS||t===k4&&n}f(aP,"bte");function c3e(e){return ny(e)&&e!==sS&&!v4(e)&&e!==dke&&e!==fke&&e!==k4&&e!==_P&&e!==AP&&e!==LP&&e!==RP&&e!==IP&&e!==oS&&e!==cke&&e!==uke&&e!==ske&&e!==vke&&e!==pke&&e!==gke&&e!==hke&&e!==oke&&e!==lke&&e!==mke&&e!==yke}f(c3e,"nWe");function h3e(e){return!v4(e)&&e!==k4}f(h3e,"aWe");function ay(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}f(ay,"Fx");function sP(e){var t=/^\n* /;return t.test(e)}f(sP,"Xte");function u3e(e,t,r,i,n,a,o,l){var h,u=0,d=null,p=!1,g=!1,m=i!==-1,y=-1,x=c3e(ay(e,0))&&h3e(ay(e,e.length-1));if(t||o)for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=ay(e,h),!ny(u))return Bg;x=x&&aP(u,d,l),d=u}else{for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=ay(e,h),u===sy)p=!0,m&&(g=g||h-y-1>i&&e[y+1]!==" ",y=h);else if(!ny(u))return Bg;x=x&&aP(u,d,l),d=u}g=g||m&&h-y-1>i&&e[y+1]!==" "}return!p&&!g?x&&!o&&!n(e)?DP:a===oy?Bg:lS:r>9&&sP(e)?Bg:o?a===oy?Bg:lS:g?MP:NP}f(u3e,"sWe");function d3e(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===oy?'""':"''";if(!e.noCompatMode&&(bke.indexOf(t)!==-1||xke.test(t)))return e.quotingType===oy?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=i||e.flowLevel>-1&&r>=e.flowLevel;function h(u){return l3e(e,u)}switch(f(h,"u"),s(h,"testAmbiguity"),u3e(t,l,e.indent,o,h,e.quotingType,e.forceQuotes&&!i,n)){case DP:return t;case lS:return"'"+t.replace(/'/g,"''")+"'";case NP:return"|"+oP(t,e.indent)+lP(iP(t,a));case MP:return">"+oP(t,e.indent)+lP(iP(p3e(t,o),a));case Bg:return'"'+g3e(t)+'"';default:throw new oo("impossible error: invalid scalar style")}})()}f(d3e,"oWe");function oP(e,t){var r=sP(e)?String(t):"",i=e[e.length-1]===` 417`,n=i&&(e[e.length-2]===` 418`||e===` 419`),a=n?"+":i?"":"-";return r+a+` 420`}f(oP,"Tte");function lP(e){return e[e.length-1]===` 421`?e.slice(0,-1):e}f(lP,"Cte");function p3e(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=e.indexOf(` 422`);return u=u!==-1?u:e.length,r.lastIndex=u,cP(e.slice(0,u),t)})(),n=e[0]===` 423`||e[0]===" ",a,o;o=r.exec(e);){var l=o[1],h=o[2];a=h[0]===" ",i+=l+(!n&&!a&&h!==""?` 424`:"")+cP(h,t),n=a}return i}f(p3e,"lWe");function cP(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,o=0,l=0,h="";i=r.exec(e);)l=i.index,l-n>t&&(a=o>n?o:l,h+=` 425`+e.slice(n,a),n=a+1),o=l;return h+=` 426`,e.length-n>t&&o>n?h+=e.slice(n,o)+` 427`+e.slice(o+1):h+=e.slice(n),h.slice(1)}f(cP,"kte");function g3e(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=ay(e,n),i=ks[r],!i&&ny(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||s3e(r);return t}f(g3e,"cWe");function f3e(e,t,r){var i="",n=e.tag,a,o,l;for(a=0,o=r.length;a<o;a+=1)l=r[a],e.replacer&&(l=e.replacer.call(r,String(a),l)),(_h(e,t,l,!1,!1)||typeof l>"u"&&_h(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}f(f3e,"uWe");function hP(e,t,r,i){var n="",a=e.tag,o,l,h;for(o=0,l=r.length;o<l;o+=1)h=r[o],e.replacer&&(h=e.replacer.call(r,String(o),h)),(_h(e,t+1,h,!0,!0,!1,!0)||typeof h>"u"&&_h(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=tS(e,t)),e.dump&&sy===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}f(hP,"wte");function m3e(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,l,h,u,d;for(o=0,l=a.length;o<l;o+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),h=a[o],u=r[h],e.replacer&&(u=e.replacer.call(r,h,u)),_h(e,t,h,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),_h(e,t,u,!1,!1)&&(d+=e.dump,i+=d));e.tag=n,e.dump="{"+i+"}"}f(m3e,"hWe");function y3e(e,t,r,i){var n="",a=e.tag,o=Object.keys(r),l,h,u,d,p,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new oo("sortKeys must be a boolean or a function");for(l=0,h=o.length;l<h;l+=1)g="",(!i||n!=="")&&(g+=tS(e,t)),u=o[l],d=r[u],e.replacer&&(d=e.replacer.call(r,u,d)),_h(e,t+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&sy===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,p&&(g+=tS(e,t)),_h(e,t+1,d,!0,p)&&(e.dump&&sy===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,n+=g));e.tag=a,e.dump=n||"{}"}f(y3e,"dWe");function uP(e,t,r){var i,n,a,o,l,h;for(n=r?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(l=n[a],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(h=e.styleMap[l.tag]||l.defaultStyle,EP.call(l.represent)==="[object Function]")i=l.represent(t,h);else if(SP.call(l.represent,h))i=l.represent[h](t,h);else throw new oo("!<"+l.tag+'> tag resolver accepts not "'+h+'" style');e.dump=i}return!0}return!1}f(uP,"Ste");function _h(e,t,r,i,n,a,o){e.tag=null,e.dump=r,uP(e,r,!1)||uP(e,r,!0);var l=EP.call(e.dump),h=i,u;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",p,g;if(d&&(p=e.duplicates.indexOf(r),g=p!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(n=!1),g&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&g&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),l==="[object Object]")i&&Object.keys(e.dump).length!==0?(y3e(e,t,e.dump,n),g&&(e.dump="&ref_"+p+e.dump)):(m3e(e,t,e.dump),g&&(e.dump="&ref_"+p+" "+e.dump));else if(l==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?hP(e,t-1,e.dump,n):hP(e,t,e.dump,n),g&&(e.dump="&ref_"+p+e.dump)):(f3e(e,t,e.dump),g&&(e.dump="&ref_"+p+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&d3e(e,e.dump,t,a,h);else{if(l==="[object Undefined]"||e.skipInvalid)return!1;throw new oo("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}f(_h,"Ou");function v3e(e,t){var r=[],i=[],n,a;for(rS(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}f(v3e,"fWe");function rS(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)rS(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)rS(e[i[n]],t,r)}f(rS,"VM");function b3e(e,t){t=t||{};var r=new o3e(t);r.noRefs||v3e(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),_h(r,0,i,!0,!0)?r.dump+` 428`:""}f(b3e,"pWe");function iS(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}f(iS,"YM");var x3e,k3e,T3e,w3e,C3e,E3e,$a,oo,S3e,_3e,A3e,xs,L3e,R3e,I3e,D3e,N3e,M3e,O3e,$3e,B3e,P3e,F3e,dP,z3e,pP,gP,q3e,j3e,nS,G3e,U3e,V3e,W3e,H3e,Y3e,X3e,K3e,fP,Vu,b4,mP,yP,x4,aS,Z3e,vP,Q3e,J3e,eke,bP,xP,kP,TP,$g,wP,tke,rke,CP,EP,SP,sS,ike,sy,nke,ake,ske,oke,oS,lke,cke,hke,uke,_P,dke,k4,pke,gke,fke,mke,AP,LP,yke,RP,vke,IP,ks,bke,xke,kke,oy,DP,lS,NP,MP,Bg,Tke,wke,T4,w4,Sxt,_xt,Axt,Lxt,Rxt,cS=Y(()=>{"use strict";for(s(HB,"isNothing"),s(i4e,"isObject"),s(n4e,"toArray"),s(a4e,"extend"),s(s4e,"repeat"),s(o4e,"isNegativeZero"),x3e=HB,k3e=i4e,T3e=n4e,w3e=s4e,C3e=o4e,E3e=a4e,$a={isNothing:x3e,isObject:k3e,toArray:T3e,repeat:w3e,isNegativeZero:C3e,extend:E3e},s(YB,"formatError"),s(iy,"YAMLException$1"),iy.prototype=Object.create(Error.prototype),iy.prototype.constructor=iy,iy.prototype.toString=s(function(e){return this.name+": "+YB(this,e)},"toString"),oo=iy,s(KE,"getLine"),s(ZE,"padStart"),s(l4e,"makeSnippet"),S3e=l4e,_3e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],A3e=["scalar","sequence","mapping"],s(c4e,"compileStyleAliases"),s(h4e,"Type$1"),xs=h4e,s(XB,"compileList"),s(u4e,"compileMap"),s(QE,"Schema$1"),QE.prototype.extend=s(function(e){var t=[],r=[];if(e instanceof xs)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new oo("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(n){if(!(n instanceof xs))throw new oo("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new oo("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
vendor: 2,156 bytes, line 428
428if(n.multi)throw new oo("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(n){if(!(n instanceof xs))throw new oo("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(QE.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=XB(i,"implicit"),i.compiledExplicit=XB(i,"explicit"),i.compiledTypeMap=u4e(i.compiledImplicit,i.compiledExplicit),i},"extend"),L3e=QE,R3e=new xs("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")}),I3e=new xs("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")}),D3e=new xs("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")}),N3e=new L3e({explicit:[R3e,I3e,D3e]}),s(d4e,"resolveYamlNull"),s(p4e,"constructYamlNull"),s(g4e,"isNull"),M3e=new xs("tag:yaml.org,2002:null",{kind:"scalar",resolve:d4e,construct:p4e,predicate:g4e,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase"),empty:s(function(){return""},"empty")},defaultStyle:"lowercase"}),s(f4e,"resolveYamlBoolean"),s(m4e,"constructYamlBoolean"),s(y4e,"isBoolean"),O3e=new xs("tag:yaml.org,2002:bool",{kind:"scalar",resolve:f4e,construct:m4e,predicate:y4e,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),s(v4e,"isHexCode"),s(b4e,"isOctCode"),s(x4e,"isDecCode"),s(k4e,"resolveYamlInteger"),s(T4e,"constructYamlInteger"),s(w4e,"isInteger"),$3e=new xs("tag:yaml.org,2002:int",{kind:"scalar",resolve:k4e,construct:T4e,predicate:w4e,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)}
428,"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),B3e=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s(C4e,"resolveYamlFloat"),s(E4e,"constructYamlFloat"),P3e=/^[-+]?[0-9]+e/,s(S4e,"representYamlFloat"),s(_4e,"isFloat"),F3e=new xs("tag:yaml.org,2002:float",{kind:"scalar",resolve:C4e,construct:E4e,predicate:_4e,represent:S4e,defaultStyle:"lowercase"}),dP=N3e.extend({implicit:[M3e,O3e,$3e,F3e]}),z3e=dP,pP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),s(A4e,"resolveYamlTimestamp"),s(L4e,"constructYamlTimestamp"),s(R4e,"representYamlTimestamp"),q3e=new xs("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:A4e,construct:L4e,instanceOf:Date,represent:R4e}),s(I4e,"resolveYamlMerge"),j3e=new xs("tag:yaml.org,2002:merge",{kind:"scalar",resolve:I4e}),nS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 429\r`,s(D4e,"resolveYamlBinary"),s(N4e,"constructYamlBinary"),s(M4e,"representYamlBinary"),s(O4e,"isBinary"),G3e=new xs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:D4e,construct:N4e,predicate:O4e,represent:M4e}),U3e=Object.prototype.hasOwnProperty,V3e=Object.prototype.toString,s($4e,"resolveYamlOmap"),s(B4e,"constructYamlOmap"),W3e=new xs("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$4e,construct:B4e}),H3e=Object.prototype.toString,s(P4e,"resolveYamlPairs"),s(F4e,"constructYamlPairs"),Y3e=new xs("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:P4e,construct:F4e}),X3e=Object.prototype.hasOwnProperty,s(z4e,"resolveYamlSet"),s(q4e,"constructYamlSet"),K3e=new xs("tag:yaml.org,2002:set",{kind:"mapping",resolve:z4e,construct:q4e}),fP=z3e.extend({implicit:[q3e,j3e],explicit:[G3e,W3e,Y3e,K3e]}),Vu=Object.prototype.hasOwnProperty,b4=1,mP=2,yP=3,x4=4,aS=1,Z3e=2,vP=3,Q3e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,J3e=/[\x85\u2028\u2029]/,eke=/[,\[\]\{\}]/,bP=/^(?:!|!!|![a-z\-]+!)$/i,xP=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,s(KB,"_class"),s(kc,"is_EOL"),s(fp,"is_WHITE_SPACE"),s(so,"is_WS_OR_EOL"),s(Ng,"is_FLOW_INDICATOR"),s(j4e,"fromHexCode"),s(G4e,"escapedHexLen"),s(U4e,"fromDecimalCode"),s(ZB,"simpleEscapeSequence"),s(V4e,"charFromCodepoint"),s(QB,"setProperty"),kP=new Array(256),TP=new Array(256),$g=0;$g<256;$g++)kP[$g]=ZB($g)?1:0,TP[$g]=ZB($g);s(W4e,"State$1"),s(JB,"generateError"),s(Nr,"throwError"),s(m4,"throwWarning"),wP={YAML:s(function(e,t,r){var i,n,a;e.version!==null&&Nr(e,"duplication of %YAML directive"),r.length!==1&&Nr(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Nr(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),n!==1&&Nr(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&m4(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(e,t,r){var i,n;r.length!==2&&Nr(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],bP.test(i)||Nr(e,"ill-formed tag handle (first argument) of the TAG directive"),Vu.call(e.tagMap,i)&&Nr(e,'there is a previously declared suffix for "'+i+'" tag handle'),xP.test(n)||Nr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(a){Nr(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n},"handleTagDirective")},s(Uu,"captureSegment"),s(eP,"mergeMappings"),s(Mg,"storeMappingPair"),s(JE,"readLineBreak"),s(wa,"skipSeparationSpace"),s(y4,"testDocumentSeparator"),s(eS,"writeFoldedLines"),s(H4e,"readPlainScalar"),s(Y4e,"readSingleQuotedScalar"),s(X4e,"readDoubleQuotedScalar"),s(K4e,"readFlowCollection"),s(Z4e,"readBlockScalar"),s(tP,"readBlockSequence"),s(Q4e,"readBlockMapping"),s(J4e,"readTagProperty"),s(e3e,"readAnchorProperty"),s(t3e,"readAlias"),s(Og,"composeNode"),s(r3e,"readDocument"),s(rP,"loadDocuments"),s(i3e,"loadAll$1"),s(n3e,"load$1"),tke=i3e,rke=n3e,CP={loadAll:tke,load:rke},EP=Object.prototype.toString,SP=Object.prototype.hasOwnProperty,sS=65279,ike=9,sy=10,nke=13,ake=32,ske=33,oke=34,oS=35,lke=37,cke=38,hke=39,uke=42,_P=44,dke=45,k4=58,pke=61,gke=62,fke=63,mke=64,AP=91,LP=93,yke=96,RP=123,vke=124,IP=125,ks={},ks[0]="\\0",ks[7]="\\a",ks[8]="\\b",ks[9]="\\t",ks[10]="\\n",ks[11]="\\v",ks[12]="\\f",ks[13]="\\r",ks[27]="\\e",ks[34]='\\"',ks[92]="\\\\",ks[133]="\\N",ks[160]="\\_",ks[8232]="\\L",ks[8233]="\\P",bke=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],xke=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,s(a3e,"compileStyleMap"),s(s3e,"encodeHex"),kke=1,oy=2,s(o3e,"State"),s(iP,"indentStr
429ing"),s(tS,"generateNextLine"),s(l3e,"testImplicitResolving"),s(v4,"isWhitespace"),s(ny,"isPrintable"),s(nP,"isNsCharOrWhitespace"),s(aP,"isPlainSafe"),s(c3e,"isPlainSafeFirst"),s(h3e,"isPlainSafeLast"),s(ay,"codePointAt"),s(sP,"needIndentIndicator"),DP=1,lS=2,NP=3,MP=4,Bg=5,s(u3e,"chooseScalarStyle"),s(d3e,"writeScalar"),s(oP,"blockHeader"),s(lP,"dropEndingNewline"),s(p3e,"foldString"),s(cP,"foldLine"),s(g3e,"escapeString"),s(f3e,"writeFlowSequence"),s(hP,"writeBlockSequence"),s(m3e,"writeFlowMapping"),s(y3e,"writeBlockMapping"),s(uP,"detectType"),s(_h,"writeNode"),s(v3e,"getDuplicateReferences"),s(rS,"inspectNode"),s(b3e,"dump$1"),Tke=b3e,wke={dump:Tke},s(iS,"renamed"),T4=dP,w4=CP.load,Sxt=CP.loadAll,_xt=wke.dump,Axt=iS("safeLoad","load"),Lxt=iS("safeLoadAll","loadAll"),Rxt=iS("safeDump","dump")});function hS(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}f(hS,"ZM");function OP(e){mp=e}f(OP,"nre");function Wi(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:s((n,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(zs.caret,"$1"),r=r.replace(n,o),i},"replace"),getRegex:s(()=>new RegExp(r,t),"getRegex")};return i}f(Wi,"li");function Tc(e,t){if(t){if(zs.escapeTest.test(e))return e.replace(zs.escapeReplace,KP)}else if(zs.escapeTestNoEncode.test(e))return e.replace(zs.escapeReplaceNoEncode,KP);return e}f(Tc,"Cc");function $P(e){try{e=encodeURI(e).replace(zs.percentDecode,"%")}catch(t){return null}return e}f($P,"tre");function BP(e,t){var a;let r=e.replace(zs.findPipe,(o,l,h)=>{let u=!1,d=l;for(;--d>=0&&h[d]==="\\";)u=!u;return u?"|":" |"}),i=r.split(zs.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(zs.slashPipe,"|");return i}f(BP,"rre");function ly(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i;){let a=e.charAt(i-n-1);if(a===t&&!r)n++;else if(a!==t&&r)n++;else break}return e.slice(0,i-n)}f(ly,"Ux");function Cke(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}f(Cke,"KWe");function PP(e,t,r,i,n){let a=t.href,o=t.title||null,l=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,h}f(PP,"ire");function Eke(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(` 430`).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[l]=o;return l.length>=n.length?a.slice(n.length):a}).join(` 431`)}f(Eke,"ZWe");function Hi(e,t){return yp.parse(e,t)}f(Hi,"ni");var mp,cy,zs,Ske,_ke,Ake,hy,Lke,uS,FP,zP,Rke,dS,Ike,pS,Dke,Nke,C4,gS,Mke,qP,Oke,fS,jP,$ke,Bke,Pke,Fke,GP,zke,E4,mS,UP,qke,VP,jke,Gke,Uke,WP,Vke,Wke,HP,Hke,Yke,Xke,Kke,Zke,Qke,Jke,S4,eTe,YP,XP,tTe,yS,rTe,vS,iTe,_4,uy,nTe,KP,A4,Ah,L4,bS,Lh,dy,aTe,yp,Ixt,Dxt,Nxt,Mxt,Oxt,$xt,Bxt,Pxt=Y(()=>{"use strict";var e,t,r,i,n,a,o;s(hS,"L"),mp=hS(),s(OP,"G"),cy={exec:s(()=>null,"exec")},s(Wi,"h"),zs={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s(l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:s(l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:s(l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:s(l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:s(l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),"headingBeginRegex"),htmlBeginRegex:s(l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},Ske=/^(?:[ \t]*(?:\n|$))+/,_ke=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ake=/^ {0,3}(`{3,}
vendor: 4,746 bytes, lines 431-432
431(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hy=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Lke=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,uS=/(?:[*+-]|\d{1,9}[.)])/,FP=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zP=Wi(FP).replace(/bull/g,uS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/\|table/g,"").getRegex(),Rke=Wi(FP).replace(/bull/g,uS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),dS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ike=/^[^\n]+/,pS=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Dke=Wi(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pS).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nke=Wi(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,uS).getRegex(),C4="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",gS=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Mke=Wi("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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",gS).replace("tag",C4).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qP=Wi(dS).replace("hr",hy).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",C4).getRegex(),Oke=Wi(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qP).getRegex(),fS={blockquote:Oke,code:_ke,def:Dke,fences:Ake,heading:Lke,hr:hy,html:Mke,lheading:zP,list:Nke,newline:Ske,paragraph:qP,table:cy,text:Ike},jP=Wi("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hy).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",C4).getRegex(),$ke=_r(Tt({},fS),{lheading:Rke,table:jP,paragraph:Wi(dS).replace("hr",hy).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jP).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",C4).getRegex()}),Bke=_r(Tt({},fS),{html:Wi(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gS).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:cy,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wi(dS).replace("hr",hy).replace("heading",` *#{1,6} *[^ 432]`).replace("lheading",zP).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Pke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}
vendor: 25,959 bytes, lines 432-487
432~])/,Fke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GP=/^( {2,}|\\)\n(?!\s*$)/,zke=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,E4=/[\p{P}\p{S}]/u,mS=/[\s\p{P}\p{S}]/u,UP=/[^\s\p{P}\p{S}]/u,qke=Wi(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mS).getRegex(),VP=/(?!~)[\p{P}\p{S}]/u,jke=/(?!~)[\s\p{P}\p{S}]/u,Gke=/(?:[^\s\p{P}\p{S}]|~)/u,Uke=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,WP=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Vke=Wi(WP,"u").replace(/punct/g,E4).getRegex(),Wke=Wi(WP,"u").replace(/punct/g,VP).getRegex(),HP="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hke=Wi(HP,"gu").replace(/notPunctSpace/g,UP).replace(/punctSpace/g,mS).replace(/punct/g,E4).getRegex(),Yke=Wi(HP,"gu").replace(/notPunctSpace/g,Gke).replace(/punctSpace/g,jke).replace(/punct/g,VP).getRegex(),Xke=Wi("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,UP).replace(/punctSpace/g,mS).replace(/punct/g,E4).getRegex(),Kke=Wi(/\\(punct)/,"gu").replace(/punct/g,E4).getRegex(),Zke=Wi(/^<(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(),Qke=Wi(gS).replace("(?:-->|$)","-->").getRegex(),Jke=Wi("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Qke).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),S4=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,eTe=Wi(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",S4).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),YP=Wi(/^!?\[(label)\]\[(ref)\]/).replace("label",S4).replace("ref",pS).getRegex(),XP=Wi(/^!?\[(ref)\](?:\[\])?/).replace("ref",pS).getRegex(),tTe=Wi("reflink|nolink(?!\\()","g").replace("reflink",YP).replace("nolink",XP).getRegex(),yS={_backpedal:cy,anyPunctuation:Kke,autolink:Zke,blockSkip:Uke,br:GP,code:Fke,del:cy,emStrongLDelim:Vke,emStrongRDelimAst:Hke,emStrongRDelimUnd:Xke,escape:Pke,link:eTe,nolink:XP,punctuation:qke,reflink:YP,reflinkSearch:tTe,tag:Jke,text:zke,url:cy},rTe=_r(Tt({},yS),{link:Wi(/^!?\[(label)\]\((.*?)\)/).replace("label",S4).getRegex(),reflink:Wi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",S4).getRegex()}),vS=_r(Tt({},yS),{emStrongRDelimAst:Yke,emStrongLDelim:Wke,url:Wi(/^((?: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\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),iTe=_r(Tt({},vS),{br:Wi(GP).replace("{2,}","*").getRegex(),text:Wi(vS.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),_4={normal:fS,gfm:$ke,pedantic:Bke},uy={normal:yS,gfm:vS,breaks:iTe,pedantic:rTe},nTe={"&":"&","<":"<",">":">",'"':""","'":"'"},KP=s(l=>nTe[l],"ke"),s(Tc,"w"),s($P,"J"),s(BP,"V"),s(ly,"z"),s(Cke,"ge"),s(PP,"fe"),s(Eke,"Je"),A4=(e=class{constructor(h){Di(this,"options");Di(this,"rules");Di(this,"lexer");this.options=h||mp}space(h){let u=this.rules.block.newline.exec(h);if(u&&u[0].length>0)return{type:"space",raw:u[0]}}code(h){let u=this.rules.block.code.exec(h);if(u){let d=u[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:u[0],codeBlockStyle:"indented",text:this.options.pedantic?d:ly(d,` 433`)}}}fences(h){let u=this.rules.block.fences.exec(h);if(u){let d=u[0],p=Eke(d,u[3]||"",this.rules);return{type:"code",raw:d,lang:u[2]?u[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):u[2],text:p}}}heading(h){let u=this.rules.block.heading.exec(h);if(u){let d=u[2].trim();if(this.rules.other.endingHash.test(d)){let p=ly(d,"#");(this.options.pedantic||!p||this.rules.other.endingSpaceChar.test(p))&&(d=p.trim())}return{type:"heading",raw:u[0],depth:u[1].length,text:d,tokens:this.lexer.inline(d)}}}hr(h){let u=this.rules.block.hr.exec(h);if(u)return{type:"hr",raw:ly(u[0],` 434`)}}blockquote(h){let u=this.rules.block.blockquote.exec(h);if(u){let d=ly(u[0],` 435`).split(` 436`),p="",g="",m=[];for(;d.length>0;){let y=!1,x=[],C;for(C=0;C<d.length;C++)if(this.rules.other.blockquoteStart.test(d[C]))x.push(d[C]),y=!0;else if(!y)x.push(d[C]);else break;d=d.slice(C);let w=x.join(` 437`),_=w.replace(this.rules.other.blockquoteSetextReplace,` 438 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");p=p?`${p} 439${w}`:w,g=g?`${g} 440${_}`:_;let S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_,m,!0),this.lexer.state.top=S,d.length===0)break;let R=m.at(-1);if((R==null?void 0:R.type)==="code")break;if((R==null?void 0:R.type)==="blockquote"){let b=R,v=b.raw+` 441`+d.join(` 442`),k=this.blockquote(v);m[m.length-1]=k,p=p.substring(0,p.length-b.raw.length)+k.raw,g=g.substring(0,g.length-b.text.length)+k.text;break}else if((R==null?void 0:R.type)==="list"){let b=R,v=b.raw+` 443`+d.join(` 444`),k=this.list(v);m[m.length-1]=k,p=p.substring(0,p.length-R.raw.length)+k.raw,g=g.substring(0,g.length-b.raw.length)+k.raw,d=v.substring(m.at(-1).raw.length).split(` 445`);continue}}return{type:"blockquote",raw:p,tokens:m,text:g}}}list(h){let u=this.rules.block.list.exec(h);if(u){let d=u[1].trim(),p=d.length>1,g={type:"list",raw:"",ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]};d=p?`\\d{1,9}\\${d.slice(-1)}`:`\\${d}`,this.options.pedantic&&(d=p?d:"[*+-]");let m=this.rules.other.listItemRegex(d),y=!1;for(;h;){let C=!1,w="",_="";if(!(u=m.exec(h))||this.rules.block.hr.test(h))break;w=u[0],h=h.substring(w.length);let S=u[2].split(` 446`,1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),R=h.split(` 447`,1)[0],b=!S.trim(),v=0;if(this.options.pedantic?(v=2,_=S.trimStart()):b?v=u[1].length+1:(v=u[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,_=S.slice(v),v+=u[1].length),b&&this.rules.other.blankLine.test(R)&&(w+=R+` 448`,h=h.substring(R.length+1),C=!0),!C){let A=this.rules.other.nextBulletRegex(v),I=this.rules.other.hrRegex(v),$=this.rules.other.fencesBeginRegex(v),O=this.rules.other.headingBeginRegex(v),j=this.rules.other.htmlBeginRegex(v);for(;h;){let D=h.split(` 449`,1)[0],P;if(R=D,this.options.pedantic?(R=R.replace(this.rules.other.listReplaceNesting," "),P=R):P=R.replace(this.rules.other.tabCharGlobal," "),$.test(R)||O.test(R)||j.test(R)||A.test(R)||I.test(R))break;if(P.search(this.rules.other.nonSpaceChar)>=v||!R.trim())_+=` 450`+P.slice(v);else{if(b||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||$.test(S)||O.test(S)||I.test(S))break;_+=` 451`+R}!b&&!R.trim()&&(b=!0),w+=D+` 452`,h=h.substring(D.length+1),S=P.slice(v)}}g.loose||(y?g.loose=!0:this.rules.other.doubleBlankLine.test(w)&&(y=!0));let k=null,E;this.options.gfm&&(k=this.rules.other.listIsTask.exec(_),k&&(E=k[0]!=="[ ] ",_=_.replace(this.rules.other.listReplaceTask,""))),g.items.push({type:"list_item",raw:w,task:!!k,checked:E,loose:!1,text:_,tokens:[]}),g.raw+=w}let x=g.items.at(-1);if(x)x.raw=x.raw.trimEnd(),x.text=x.text.trimEnd();else return;g.raw=g.raw.trimEnd();for(let C=0;C<g.items.length;C++)if(this.lexer.state.top=!1,g.items[C].tokens=this.lexer.blockTokens(g.items[C].text,[]),!g.loose){let w=g.items[C].tokens.filter(S=>S.type==="space"),_=w.length>0&&w.some(S=>this.rules.other.anyLine.test(S.raw));g.loose=_}if(g.loose)for(let C=0;C<g.items.length;C++)g.items[C].loose=!0;return g}}html(h){let u=this.rules.block.html.exec(h);if(u)return{type:"html",block:!0,raw:u[0],pre:u[1]==="pre"||u[1]==="script"||u[1]==="style",text:u[0]}}def(h){let u=this.rules.block.def.exec(h);if(u){let d=u[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),p=u[2]?u[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",g=u[3]?u[3].substring(1,u[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):u[3];return{type:"def",tag:d,raw:u[0],href:p,title:g}}}table(h){var y;let u=this.rules.block.table.exec(h);if(!u||!this.rules.other.tableDelimiter.test(u[2]))return;let d=BP(u[1]),p=u[2].replace(this.rules.other.tableAlignChars,"").split("|"),g=(y=u[3])!=null&&y.trim()?u[3].replace(this.rules.other.tableRowBlankLine,"").split(` 453`):[],m={type:"table",raw:u[0],header:[],align:[],rows:[]};if(d.length===p.length){for(let x of p)this.rules.other.tableAlignRight.test(x)?m.align.push("right"):this.rules.other.tableAlignCenter.test(x)?m.align.push("center"):this.rules.other.tableAlignLeft.test(x)?m.align.push("left"):m.align.push(null);for(let x=0;x<d.length;x++)m.header.push({text:d[x],tokens:this.lexer.inline(d[x]),header:!0,align:m.align[x]});for(let x of g)m.rows.push(BP(x,m.header.length).map((C,w)=>({text:C,tokens:this.lexer.inline(C),header:!1,align:m.align[w]})));return m}}lheading(h){let u=this.rules.block.lheading.exec(h);if(u)return{type:"heading",raw:u[0],depth:u[2].charAt(0)==="="?1:2,text:u[1],tokens:this.lexer.inline(u[1])}}paragraph(h){let u=this.rules.block.paragraph.exec(h);if(u){let d=u[1].charAt(u[1].length-1)===` 454`?u[1].slice(0,-1):u[1];return{type:"paragraph",raw:u[0],text:d,tokens:this.lexer.inline(d)}}}text(h){let u=this.rules.block.text.exec(h);if(u)return{type:"text",raw:u[0],text:u[0],tokens:this.lexer.inline(u[0])}}escape(h){let u=this.rules.inline.escape.exec(h);if(u)return{type:"escape",raw:u[0],text:u[1]}}tag(h){let u=this.rules.inline.tag.exec(h);if(u)return!this.lexer.state.inLink&&this.rules.other.startATag.test(u[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(u[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(u[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(u[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:u[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:u[0]}}link(h){let u=this.rules.inline.link.exec(h);if(u){let d=u[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(d)){if(!this.rules.other.endAngleBracket.test(d))return;let m=ly(d.slice(0,-1),"\\");if((d.length-m.length)%2===0)return}else{let m=Cke(u[2],"()");if(m===-2)return;if(m>-1){let y=(u[0].indexOf("!")===0?5:4)+u[1].length+m;u[2]=u[2].substring(0,m),u[0]=u[0].substring(0,y).trim(),u[3]=""}}let p=u[2],g="";if(this.options.pedantic){let m=this.rules.other.pedanticHrefTitle.exec(p);m&&(p=m[1],g=m[3])}else g=u[3]?u[3].slice(1,-1):"";return p=p.trim(),this.rules.other.startAngleBracket.test(p)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(d)?p=p.slice(1):p=p.slice(1,-1)),PP(u,{href:p&&p.replace(this.rules.inline.anyPunctuation,"$1"),title:g&&g.replace(this.rules.inline.anyPunctuation,"$1")},u[0],this.lexer,this.rules)}}reflink(h,u){let d;if((d=this.rules.inline.reflink.exec(h))||(d=this.rules.inline.nolink.exec(h))){let p=(d[2]||d[1]).replace(this.rules.other.multipleSpaceGlobal," "),g=u[p.toLowerCase()];if(!g){let m=d[0].charAt(0);return{type:"text",raw:m,text:m}}return PP(d,g,d[0],this.lexer,this.rules)}}emStrong(h,u,d=""){let p=this.rules.inline.emStrongLDelim.exec(h);if(!(!p||p[3]&&d.match(this.rules.other.unicodeAlphaNumeric))&&(!(p[1]||p[2])||!d||this.rules.inline.punctuation.exec(d))){let g=[...p[0]].length-1,m,y,x=g,C=0,w=p[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(w.lastIndex=0,u=u.slice(-1*h.length+g);(p=w.exec(u))!=null;){if(m=p[1]||p[2]||p[3]||p[4]||p[5]||p[6],!m)continue;if(y=[...m].length,p[3]||p[4]){x+=y;continue}else if((p[5]||p[6])&&g%3&&!((g+y)%3)){C+=y;continue}if(x-=y,x>0)continue;y=Math.min(y,y+x+C);let _=[...p[0]][0].length,S=h.slice(0,g+p.index+_+y);if(Math.min(g,y)%2){let b=S.slice(1,-1);return{type:"em",raw:S,text:b,tokens:this.lexer.inlineTokens(b)}}let R=S.slice(2,-2);return{type:"strong",raw:S,text:R,tokens:this.lexer.inlineTokens(R)}}}}codespan(h){let u=this.rules.inline.code.exec(h);if(u){let d=u[2].replace(this.rules.other.newLineCharGlobal," "),p=this.rules.other.nonSpaceChar.test(d),g=this.rules.other.startingSpaceChar.test(d)&&this.rules.other.endingSpaceChar.test(d);return p&&g&&(d=d.substring(1,d.length-1)),{type:"codespan",raw:u[0],text:d}}}br(h){let u=this.rules.inline.br.exec(h);if(u)return{type:"br",raw:u[0]}}del(h){let u=this.rules.inline.del.exec(h);if(u)return{type:"del",raw:u[0],text:u[2],tokens:this.lexer.inlineTokens(u[2])}}autolink(h){let u=this.rules.inline.autolink.exec(h);if(u){let d,p;return u[2]==="@"?(d=u[1],p="mailto:"+d):(d=u[1],p=d),{type:"link",raw:u[0],text:d,href:p,tokens:[{type:"text",raw:d,text:d}]}}}url(h){var d,p;let u;if(u=this.rules.inline.url.exec(h)){let g,m;if(u[2]==="@")g=u[0],m="mailto:"+g;else{let y;do y=u[0],u[0]=(p=(d=this.rules.inline._backpedal.exec(u[0]))==null?void 0:d[0])!=null?p:"";while(y!==u[0]);g=u[0],u[1]==="www."?m="http://"+u[0]:m=u[0]}return{type:"link",raw:u[0],text:g,href:m,tokens:[{type:"text",raw:g,text:g}]}}}inlineText(h){let u=this.rules.inline.text.exec(h);if(u){let d=this.lexer.state.inRawBlock;return{type:"text",raw:u[0],text:u[0],escaped:d}}}},f(e,"C4"),s(e,"y"),e),Ah=(t=class{constructor(h){Di(this,"tokens");Di(this,"options");Di(this,"state");Di(this,"tokenizer");Di(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=h||mp,this.options.tokenizer=this.options.tokenizer||new A4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let u={other:zs,block:_4.normal,inline:uy.normal};this.options.pedantic?(u.block=_4.pedantic,u.inline=uy.pedantic):this.options.gfm&&(u.block=_4.gfm,this.options.breaks?u.inline=uy.breaks:u.inline=uy.gfm),this.tokenizer.rules=u}static get rules(){return{block:_4,inline:uy}}static lex(h,u){return new t(u).lex(h)}static lexInline(h,u){return new t(u).inlineTokens(h)}lex(h){h=h.replace(zs.carriageReturn,` 455`),this.blockTokens(h,this.tokens);for(let u=0;u<this.inlineQueue.length;u++){let d=this.inlineQueue[u];this.inlineTokens(d.src,d.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(h,u=[],d=!1){var p,g,m;for(this.options.pedantic&&(h=h.replace(zs.tabCharGlobal," ").replace(zs.spaceLine,""));h;){let y;if((g=(p=this.options.extensions)==null?void 0:p.block)!=null&&g.some(C=>(y=C.call({lexer:this},h,u))?(h=h.substring(y.raw.length),u.push(y),!0):!1))continue;if(y=this.tokenizer.space(h)){h=h.substring(y.raw.length);let C=u.at(-1);y.raw.length===1&&C!==void 0?C.raw+=` 456`:u.push(y);continue}if(y=this.tokenizer.code(h)){h=h.substring(y.raw.length);let C=u.at(-1);(C==null?void 0:C.type)==="paragraph"||(C==null?void 0:C.type)==="text"?(C.raw+=(C.raw.endsWith(` 457`)?"":` 458`)+y.raw,C.text+=` 459`+y.text,this.inlineQueue.at(-1).src=C.text):u.push(y);continue}if(y=this.tokenizer.fences(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.heading(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.hr(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.blockquote(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.list(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.html(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.def(h)){h=h.substring(y.raw.length);let C=u.at(-1);(C==null?void 0:C.type)==="paragraph"||(C==null?void 0:C.type)==="text"?(C.raw+=(C.raw.endsWith(` 460`)?"":` 461`)+y.raw,C.text+=` 462`+y.raw,this.inlineQueue.at(-1).src=C.text):this.tokens.links[y.tag]||(this.tokens.links[y.tag]={href:y.href,title:y.title},u.push(y));continue}if(y=this.tokenizer.table(h)){h=h.substring(y.raw.length),u.push(y);continue}if(y=this.tokenizer.lheading(h)){h=h.substring(y.raw.length),u.push(y);continue}let x=h;if((m=this.options.extensions)!=null&&m.startBlock){let C=1/0,w=h.slice(1),_;this.options.extensions.startBlock.forEach(S=>{_=S.call({lexer:this},w),typeof _=="number"&&_>=0&&(C=Math.min(C,_))}),C<1/0&&C>=0&&(x=h.substring(0,C+1))}if(this.state.top&&(y=this.tokenizer.paragraph(x))){let C=u.at(-1);d&&(C==null?void 0:C.type)==="paragraph"?(C.raw+=(C.raw.endsWith(` 463`)?"":` 464`)+y.raw,C.text+=` 465`+y.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=C.text):u.push(y),d=x.length!==h.length,h=h.substring(y.raw.length);continue}if(y=this.tokenizer.text(h)){h=h.substring(y.raw.length);let C=u.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=(C.raw.endsWith(` 466`)?"":` 467`)+y.raw,C.text+=` 468`+y.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=C.text):u.push(y);continue}if(h){let C="Infinite loop on byte: "+h.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return this.state.top=!0,u}inline(h,u=[]){return this.inlineQueue.push({src:h,tokens:u}),u}inlineTokens(h,u=[]){var y,x,C,w,_,S;let d=h,p=null;if(this.tokens.links){let R=Object.keys(this.tokens.links);if(R.length>0)for(;(p=this.tokenizer.rules.inline.reflinkSearch.exec(d))!=null;)R.includes(p[0].slice(p[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,p.index)+"["+"a".repeat(p[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(p=this.tokenizer.rules.inline.anyPunctuation.exec(d))!=null;)d=d.slice(0,p.index)+"++"+d.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(p=this.tokenizer.rules.inline.blockSkip.exec(d))!=null;)d=d.slice(0,p.index)+"["+"a".repeat(p[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);d=(C=(x=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:x.call({lexer:this},d))!=null?C:d;let g=!1,m="";for(;h;){g||(m=""),g=!1;let R;if((_=(w=this.options.extensions)==null?void 0:w.inline)!=null&&_.some(v=>(R=v.call({lexer:this},h,u))?(h=h.substring(R.raw.length),u.push(R),!0):!1))continue;if(R=this.tokenizer.escape(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.tag(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.link(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.reflink(h,this.tokens.links)){h=h.substring(R.raw.length);let v=u.at(-1);R.type==="text"&&(v==null?void 0:v.type)==="text"?(v.raw+=R.raw,v.text+=R.text):u.push(R);continue}if(R=this.tokenizer.emStrong(h,d,m)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.codespan(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.br(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.del(h)){h=h.substring(R.raw.length),u.push(R);continue}if(R=this.tokenizer.autolink(h)){h=h.substring(R.raw.length),u.push(R);continue}if(!this.state.inLink&&(R=this.tokenizer.url(h))){h=h.substring(R.raw.length),u.push(R);continue}let b=h;if((S=this.options.extensions)!=null&&S.startInline){let v=1/0,k=h.slice(1),E;this.options.extensions.startInline.forEach(A=>{E=A.call({lexer:this},k),typeof E=="number"&&E>=0&&(v=Math.min(v,E))}),v<1/0&&v>=0&&(b=h.substring(0,v+1))}if(R=this.tokenizer.inlineText(b)){h=h.substring(R.raw.length),R.raw.slice(-1)!=="_"&&(m=R.raw.slice(-1)),g=!0;let v=u.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=R.raw,v.text+=R.text):u.push(R);continue}if(h){let v="Infinite loop on byte: "+h.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return u}},f(t,"XM"),s(t,"l"),t),L4=(r=class{constructor(h){Di(this,"options");Di(this,"parser");this.options=h||mp}space(h){return""}code({text:h,lang:u,escaped:d}){var m;let p=(m=(u||"").match(zs.notSpaceStart))==null?void 0:m[0],g=h.replace(zs.endingNewline,"")+` 469`;return p?'<pre><code class="language-'+Tc(p)+'">'+(d?g:Tc(g,!0))+`</code></pre> 470`:"<pre><code>"+(d?g:Tc(g,!0))+`</code></pre> 471`}blockquote({tokens:h}){return`<blockquote> 472${this.parser.parse(h)}</blockquote> 473`}html({text:h}){return h}def(h){return""}heading({tokens:h,depth:u}){return`<h${u}>${this.parser.parseInline(h)}</h${u}> 474`}hr(h){return`<hr> 475`}list(h){let u=h.ordered,d=h.start,p="";for(let y=0;y<h.items.length;y++){let x=h.items[y];p+=this.listitem(x)}let g=u?"ol":"ul",m=u&&d!==1?' start="'+d+'"':"";return"<"+g+m+`> 476`+p+"</"+g+`> 477`}listitem(h){var d;let u="";if(h.task){let p=this.checkbox({checked:!!h.checked});h.loose?((d=h.tokens[0])==null?void 0:d.type)==="paragraph"?(h.tokens[0].text=p+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=p+" "+Tc(h.tokens[0].tokens[0].text),h.tokens[0].tokens[0].escaped=!0)):h.tokens.unshift({type:"text",raw:p+" ",text:p+" ",escaped:!0}):u+=p+" "}return u+=this.parser.parse(h.tokens,!!h.loose),`<li>${u}</li> 478`}checkbox({checked:h}){return"<input "+(h?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:h}){return`<p>${this.parser.parseInline(h)}</p> 479`}table(h){let u="",d="";for(let g=0;g<h.header.length;g++)d+=this.tablecell(h.header[g]);u+=this.tablerow({text:d});let p="";for(let g=0;g<h.rows.length;g++){let m=h.rows[g];d="";for(let y=0;y<m.length;y++)d+=this.tablecell(m[y]);p+=this.tablerow({text:d})}return p&&(p=`<tbody>${p}</tbody>`),`<table> 480<thead> 481`+u+`</thead> 482`+p+`</table> 483`}tablerow({text:h}){return`<tr> 484${h}</tr> 485`}tablecell(h){let u=this.parser.parseInline(h.tokens),d=h.header?"th":"td";return(h.align?`<${d} align="${h.align}">`:`<${d}>`)+u+`</${d}> 486`}strong({tokens:h}){return`<strong>${this.parser.parseInline(h)}</strong>`}em({tokens:h}){return`<em>${this.parser.parseInline(h)}</em>`}codespan({text:h}){return`<code>${Tc(h,!0)}</code>`}br(h){return"<br>"}del({tokens:h}){return`<del>${this.parser.parseInline(h)}</del>`}link({href:h,title:u,tokens:d}){let p=this.parser.parseInline(d),g=$P(h);if(g===null)return p;h=g;let m='<a href="'+h+'"';return u&&(m+=' title="'+Tc(u)+'"'),m+=">"+p+"</a>",m}image({href:h,title:u,text:d,tokens:p}){p&&(d=this.parser.parseInline(p,this.parser.textRenderer));let g=$P(h);if(g===null)return Tc(d);h=g;let m=`<img src="${h}" alt="${d}"`;return u&&(m+=` title="${Tc(u)}"`),m+=">",m}text(h){return"tokens"in h&&h.tokens?this.parser.parseInline(h.tokens):"escaped"in h&&h.escaped?h.text:Tc(h.text)}},f(r,"k4"),s(r,"P"),r),bS=(i=class{strong({text:h}){return h}em({text:h}){return h}codespan({text:h}){return h}del({text:h}){return h}html({text:h}){return h}text({text:h}){return h}link({text:h}){return""+h}image({text:h}){return""+h}br(){return""}},f(i,"aN"),s(i,"$"),i),Lh=(n=class{constructor(h){Di(this,"options");Di(this,"renderer");Di(this,"textRenderer");this.options=h||mp,this.options.renderer=this.options.renderer||new L4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bS}static parse(h,u){return new n(u).parse(h)}static parseInline(h,u){return new n(u).parseInline(h)}parse(h,u=!0){var p,g;let d="";for(let m=0;m<h.length;m++){let y=h[m];if((g=(p=this.options.extensions)==null?void 0:p.renderers)!=null&&g[y.type]){let C=y,w=this.options.extensions.renderers[C.type].call({parser:this},C);if(w!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(C.type)){d+=w||"";continue}}let x=y;switch(x.type){case"space":{d+=this.renderer.space(x);continue}case"hr":{d+=this.renderer.hr(x);continue}case"heading":{d+=this.renderer.heading(x);continue}case"code":{d+=this.renderer.code(x);continue}case"table":{d+=this.renderer.table(x);continue}case"blockquote":{d+=this.renderer.blockquote(x);continue}case"list":{d+=this.renderer.list(x);continue}case"html":{d+=this.renderer.html(x);continue}case"def":{d+=this.renderer.def(x);continue}case"paragraph":{d+=this.renderer.paragraph(x);continue}case"text":{let C=x,w=this.renderer.text(C);for(;m+1<h.length&&h[m+1].type==="text";)C=h[++m],w+=` 487`+this.renderer.text(C);u?d+=this.renderer.paragraph({type:"paragraph",raw:w,text:w,tokens:[{type:"text",raw:w,text:w,escaped:!0}]}):d+=w;continue}default:{let C='Token with "'+x.type+'" type was not found.';if(this.options.silent)return console.error(C),"";throw new Error(C)}}}return d}parseInline(h,u=this.renderer){var p,g;let d="";for(let m=0;m<h.length;m++){let y=h[m];if((g=(p=this.options.extensions)==null?void 0:p.renderers)!=null&&g[y.type]){let C=this.options.extensions.renderers[y.type].call({parser:this},y);if(C!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(y.type)){d+=C||"";continue}}let x=y;switch(x.type){case"escape":{d+=u.text(x);break}case"html":{d+=u.html(x);break}case"link":{d+=u.link(x);break}case"image":{d+=u.image(x);break}case"strong":{d+=u.strong(x);break}case"em":{d+=u.em(x);break}case"codespan":{d+=u.codespan(x);break}case"br":{d+=u.br(x);break}case"del":{d+=u.del(x);break}case"text":{d+=u.text(x);break}default:{let C='Token with "'+x.type+'" type was not found.';if(this.options.silent)return console.error(C),"";throw new Error(C)}}}return d}},f(n,"KM"),s(n,"l"),n),dy=(a=class{constructor(h){Di(this,"options");Di(this,"block");this.options=h||mp}preprocess(h){return h}postprocess(h){return h}processAllTokens(h){return h}emStrongMask(h){return h}
487provideLexer(){return this.block?Ah.lex:Ah.lexInline}provideParser(){return this.block?Lh.parse:Lh.parseInline}},f(a,"Hx"),s(a,"S"),Di(a,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Di(a,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),a),aTe=(o=class{constructor(...h){Di(this,"defaults",hS());Di(this,"options",this.setOptions);Di(this,"parse",this.parseMarkdown(!0));Di(this,"parseInline",this.parseMarkdown(!1));Di(this,"Parser",Lh);Di(this,"Renderer",L4);Di(this,"TextRenderer",bS);Di(this,"Lexer",Ah);Di(this,"Tokenizer",A4);Di(this,"Hooks",dy);this.use(...h)}walkTokens(h,u){var p,g;let d=[];for(let m of h)switch(d=d.concat(u.call(this,m)),m.type){case"table":{let y=m;for(let x of y.header)d=d.concat(this.walkTokens(x.tokens,u));for(let x of y.rows)for(let C of x)d=d.concat(this.walkTokens(C.tokens,u));break}case"list":{let y=m;d=d.concat(this.walkTokens(y.items,u));break}default:{let y=m;(g=(p=this.defaults.extensions)==null?void 0:p.childTokens)!=null&&g[y.type]?this.defaults.extensions.childTokens[y.type].forEach(x=>{let C=y[x].flat(1/0);d=d.concat(this.walkTokens(C,u))}):y.tokens&&(d=d.concat(this.walkTokens(y.tokens,u)))}}return d}use(...h){let u=this.defaults.extensions||{renderers:{},childTokens:{}};return h.forEach(d=>{let p=Tt({},d);if(p.async=this.defaults.async||p.async||!1,d.extensions&&(d.extensions.forEach(g=>{if(!g.name)throw new Error("extension name required");if("renderer"in g){let m=u.renderers[g.name];m?u.renderers[g.name]=function(...y){let x=g.renderer.apply(this,y);return x===!1&&(x=m.apply(this,y)),x}:u.renderers[g.name]=g.renderer}if("tokenizer"in g){if(!g.level||g.level!=="block"&&g.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let m=u[g.level];m?m.unshift(g.tokenizer):u[g.level]=[g.tokenizer],g.start&&(g.level==="block"?u.startBlock?u.startBlock.push(g.start):u.startBlock=[g.start]:g.level==="inline"&&(u.startInline?u.startInline.push(g.start):u.startInline=[g.start]))}"childTokens"in g&&g.childTokens&&(u.childTokens[g.name]=g.childTokens)}),p.extensions=u),d.renderer){let g=this.defaults.renderer||new L4(this.defaults);for(let m in d.renderer){if(!(m in g))throw new Error(`renderer '${m}' does not exist`);if(["options","parser"].includes(m))continue;let y=m,x=d.renderer[y],C=g[y];g[y]=(...w)=>{let _=x.apply(g,w);return _===!1&&(_=C.apply(g,w)),_||""}}p.renderer=g}if(d.tokenizer){let g=this.defaults.tokenizer||new A4(this.defaults);for(let m in d.tokenizer){if(!(m in g))throw new Error(`tokenizer '${m}' does not exist`);if(["options","rules","lexer"].includes(m))continue;let y=m,x=d.tokenizer[y],C=g[y];g[y]=(...w)=>{let _=x.apply(g,w);return _===!1&&(_=C.apply(g,w)),_}}p.tokenizer=g}if(d.hooks){let g=this.defaults.hooks||new dy;for(let m in d.hooks){if(!(m in g))throw new Error(`hook '${m}' does not exist`);if(["options","block"].includes(m))continue;let y=m,x=d.hooks[y],C=g[y];dy.passThroughHooks.has(m)?g[y]=w=>{if(this.defaults.async&&dy.passThroughHooksRespectAsync.has(m))return Promise.resolve(x.call(g,w)).then(S=>C.call(g,S));let _=x.call(g,w);return C.call(g,_)}:g[y]=(...w)=>{let _=x.apply(g,w);return _===!1&&(_=C.apply(g,w)),_}}p.hooks=g}if(d.walkTokens){let g=this.defaults.walkTokens,m=d.walkTokens;p.walkTokens=function(y){let x=[];return x.push(m.call(this,y)),g&&(x=x.concat(g.call(this,y))),x}}this.defaults=Tt(Tt({},this.defaults),p)}),this}setOptions(h){return this.defaults=Tt(Tt({},this.defaults),h),this}lexer(h,u){return Ah.lex(h,u!=null?u:this.defaults)}parser(h,u){return Lh.parse(h,u!=null?u:this.defaults)}parseMarkdown(h){return(u,d)=>{let p=Tt({},d),g=Tt(Tt({},this.defaults),p),m=this.onError(!!g.silent,!!g.async);if(this.defaults.async===!0&&p.async===!1)return m(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof u>"u"||u===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof u!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(u)+", string expected"));g.hooks&&(g.hooks.options=g,g.hooks.block=h);let y=g.hooks?g.hooks.provideLexer():h?Ah.lex:Ah.lexInline,x=g.hooks?g.hooks.provideParser():h?Lh.parse:Lh.parseInline;if(g.async)return Promise.resolve(g.hooks?g.hooks.preprocess(u):u).then(C=>y(C,g)).then(C=>g.hooks?g.hooks.processAllTokens(C):C).then(C=>g.walkTokens?Promise.all(this.walkTokens(C,g.walkTokens)).then(()=>C):C).then(C=>x(C,g)).then(C=>g.hooks?g.hooks.postprocess(C):C).catch(m);try{g.hooks&&(u=g.hooks.preprocess(u));let C=y(u,g);g.hooks&&(C=g.hooks.processAllTokens(C)),g.walkTokens&&this.walkTokens(C,g.walkTokens);let w=x(C,g);return g.hooks&&(w=g.hooks.postprocess(w)),w}catch(C){return m(C)}}}onError(h,u){return d=>{if(d.message+=` 488Please report this to https://github.com/markedjs/marked.`,h){let p="<p>An error occurred:</p><pre>"+Tc(d.message+"",!0)+"</pre>";return u?Promise.resolve(p):p}if(u)return Promise.reject(d);throw d}}},f(o,"QWe"),s(o,"B"),o),yp=new aTe,s(Hi,"d"),Hi.options=Hi.setOptions=function(l){return yp.setOptions(l),Hi.defaults=yp.defaults,OP(Hi.defaults),Hi},Hi.getDefaults=hS,Hi.defaults=mp,Hi.use=function(...l){return yp.use(...l),Hi.defaults=yp.defaults,OP(Hi.defaults),Hi},Hi.walkTokens=function(l,h){return yp.walkTokens(l,h)},Hi.parseInline=yp.parseInline,Hi.Parser=Lh,Hi.parser=Lh.parse,Hi.Renderer=L4,Hi.TextRenderer=bS,Hi.Lexer=Ah,Hi.lexer=Ah.lex,Hi.Tokenizer=A4,Hi.Hooks=dy,Hi.parse=Hi,Ixt=Hi.options,Dxt=Hi.setOptions,Nxt=Hi.use,Mxt=Hi.walkTokens,Oxt=Hi.parseInline,$xt=Lh.parse,Bxt=Ah.lex});function sTe(e,{markdownAutoWrap:t}){let r=e.replace(/<br\/>/g,` 489`).replace(/\n{2,}/g,` 490`);return AM(r)}f(sTe,"JWe");function oTe(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r,i;return(i=(r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(n=>({content:n,type:"normal"})))!=null?i:[]})}f(oTe,"gre");function lTe(e,t={}){let r=sTe(e,t),i=Hi.lexer(r),n=[[]],a=0;function o(l,h="normal"){l.type==="text"?l.text.split(` 491`).forEach((u,d)=>{d!==0&&(a++,n.push([])),u.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&n[a].push({content:p,type:h})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(u=>{o(u,l.type)}):l.type==="html"&&n[a].push({content:l.text,type:"normal"})}
vendor: 5,540 bytes, lines 491-493
491return f(o,"s"),s(o,"processNode"),i.forEach(l=>{var h;l.type==="paragraph"?(h=l.tokens)==null||h.forEach(u=>{o(u)}):l.type==="html"?n[a].push({content:l.text,type:"normal"}):n[a].push({content:l.raw,type:"normal"})}),n}f(lTe,"yre");function cTe(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}f(cTe,"vre");function hTe(e,{markdownAutoWrap:t}={}){let r=Hi.lexer(e);function i(n){var a,o,l;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(l=n.tokens)==null?void 0:l.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(ge.warn(`Unsupported markdown: ${n.type}`),n.raw)}return f(i,"i"),s(i,"output"),r.map(i).join("")}f(hTe,"xre");var Fxt=Y(()=>{"use strict";Pxt(),B0e(),jt(),s(sTe,"preprocessMarkdown"),s(oTe,"nonMarkdownToLines"),s(lTe,"markdownToLines"),s(cTe,"nonMarkdownToHTML"),s(hTe,"markdownToHTML")});function uTe(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}f(uTe,"eqe");function dTe(e,t){let r=uTe(t.content);return ZP(e,[],r,t.type)}f(dTe,"tqe");function ZP(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];let[n,...a]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?ZP(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}f(ZP,"Tre");function pTe(e,t){if(e.some(({content:r})=>r.includes(` 492`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return xS(e,t)}f(pTe,"Cre");function xS(e,t,r=[],i=[]){var l;if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());let a=(l=e.shift())!=null?l:{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(a),t(o))return xS(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){let[h,u]=dTe(t,a);r.push([h]),u.content&&e.unshift(u)}return xS(e,t,r)}f(xS,"sN");var zxt=Y(()=>{"use strict";s(uTe,"splitTextToChars"),s(dTe,"splitWordToFitWidth"),s(ZP,"splitWordToFitWidthRecursion"),s(pTe,"splitLineToFitWidth"),s(xS,"splitLineToFitWidthRecursion")});function QP(e,t){t&&e.attr("style",t)}f(QP,"wre");async function gTe(e,t,r,i,n=!1,a=Ir()){let o=e.append("foreignObject");o.attr("width",`${Math.min(10*r,eF)}px`),o.attr("height",`${Math.min(10*r,eF)}px`);let l=o.append("xhtml:div"),h=ha(t.label)?await fx(t.label.replace(Vt.lineBreakRegex,` 493`),a):Ei(t.label,a),u=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),QP(d,t.labelStyle),d.attr("class",`${u} ${i}`),QP(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&l.attr("class","labelBkg");let p=l.node().getBoundingClientRect();return p.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),p=l.node().getBoundingClientRect()),o.node()}f(gTe,"rqe");function kS(e,t,r,i=!1){let n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}f(kS,"oN");function fTe(e,t,r){let i=e.append("text"),n=kS(i,1,t);TS(n,r);let a=n.node().getComputedTextLength();return i.remove(),a}f(fTe,"iqe");function mTe(e,t,r){var o;let i=e.append("text"),n=kS(i,1,t);TS(n,[{content:r,type:"normal"}]);let a=(o=n.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}f(mTe,"Are");function yTe(e,t,r,i=!1,n=!1){let a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let h=0;for(let u of r){let d=s(g=>fTe(a,1.1,g)<=e,"checkWidth"),p=d(u)?[u]:pTe(u,d);for(let g of p){let m=kS(l,h,1.1,n);TS(m,g),h++}}if(i){let u=l.node().getBBox(),d=2;return o.attr("x",u.x-d).attr("y",u.y-d).attr("width",u.width+2*d).attr("height",u.height+2*d),a.node()}else return l.node()}f(yTe,"nqe");function JP(e){let t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}f(JP,"Ere");function TS(e,t){e.text(""),t.forEach((r,i)=>{let n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(JP(r.content)):n.text(" "+JP(r.content))})}f(TS,"lN");async function vTe(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,o)=>(r.push((async()=>{let l=`${a}:${o}`;return await $0e(l)?await Bu(l,void 0,{class:"label-icon"}):`<i class='${Ei(n,t).replace(":"," ")}'></i>`})()),n));let i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>{var n;return(n=i.shift())!=null?n:""})}f(vTe,"aqe");var eF,qs,nl=Y(()=>{"use strict";ui(),gi(),jt(),Fxt(),wr(),Pu(),zxt(),ti(),s(QP,"applyStyle"),eF=16384,s(gTe,"addHtmlSpan"),s(kS,"createTspan"),s(fTe,"computeWidthOfText"),s(mTe,"computeDimensionOfText"),s(yTe,"createFormattedText"),s(JP,"decodeHTMLEntities"),s(TS,"updateTextContentAndStyles"),s(vTe,"replaceIconSubstring"),qs=s(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:o=!0,isNode:l=!0,width:h=200,addSvgBackgroun
493d:u=!1}={},d)=>{if(ge.debug("XYZ createText",t,r,i,n,a,l,"addSvgBackground: ",u),a){let p=o?hTe(t,d):cTe(t),g=await vTe(Sh(p),d),m=t.replace(/\\\\/g,"\\"),y={isNode:l,label:ha(t)?m:g,labelStyle:r.replace("fill:","color:")};return await gTe(e,y,h,n,u,d)}else{let p=Sh(t.replace(/<br\s*\/?>/g,"<br/>")),g=o?lTe(p.replace("<br>","<br/>"),d):oTe(p),m=yTe(h,e,g,t?u:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Lt(m).attr("style",y)}else{let y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Lt(m).select("rect").attr("style",y.replace(/background:/g,"fill:"));let x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Lt(m).select("text").attr("style",x)}return i?Lt(m).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Lt(m).selectAll("tspan.text-outer-tspan").classed("row",!0),m}},"createText")});async function tF(e,t){let r=e.getElementsByTagName("img");if(!r||r.length===0)return;let i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(a=>{function o(){if(n.style.display="flex",n.style.flexDirection="column",i){let l=Ue().fontSize?Ue().fontSize:window.getComputedStyle(document.body).fontSize,h=5,[u=bi.fontSize]=Eh(l),d=u*h+"px";n.style.minWidth=d,n.style.maxWidth=d}else n.style.width="100%";a(n)}f(o,"s"),s(o,"setupImage"),setTimeout(()=>{n.complete&&o()}),n.addEventListener("error",o),n.addEventListener("load",o)})))}f(tF,"E4");var bTe=Y(()=>{"use strict";vr(),rs(),wr(),s(tF,"configureLabelImages")});function Li(e){let t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}f(Li,"tr");function vp(e,t,r,i,n,a){let o=[],l=r-e,h=i-t,u=l/a,d=2*Math.PI/u,p=t+h/2;for(let g=0;g<=50;g++){let m=g/50,y=e+m*l,x=p+n*Math.sin(d*(y-e));o.push({x:y,y:x})}return o}f(vp,"Bo");function R4(e,t,r,i,n,a){let o=[],l=n*Math.PI/180,h=(a*Math.PI/180-l)/(i-1);for(let u=0;u<i;u++){let d=l+u*h,p=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-p,y:-g})}return o}f(R4,"Ep");function rF(e){var h,u,d;let t=Array.from(e.childNodes).filter(p=>p.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(p=>p.getAttribute("d")).filter(p=>p!==null).join(" ");r.setAttribute("d",i);let n=t.find(p=>p.getAttribute("fill")!=="none"),a=t.find(p=>p.getAttribute("stroke")!=="none"),o=s((p,g)=>{var m;return(m=p==null?void 0:p.getAttribute(g))!=null?m:void 0},"getAttr");if(n){let p={fill:o(n,"fill"),"fill-opacity":(h=o(n,"fill-opacity"))!=null?h:"1"};Object.entries(p).forEach(([g,m])=>{m&&r.setAttribute(g,m)})}if(a){let p={stroke:o(a,"stroke"),"stroke-width":(u=o(a,"stroke-width"))!=null?u:"1","stroke-opacity":(d=o(a,"stroke-opacity"))!=null?d:"1"};Object.entries(p).forEach(([g,m])=>{m&&r.setAttribute(g,m)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}f(rF,"uN");var Vr,wS,kr,zr,gr=Y(()=>{"use strict";nl(),vr(),ti(),ui(),gi(),wr(),bTe(),Vr=s(async(e,t,r)=>{var m,y,x;let i,n=t.useHtmlLabels||hh((m=Ue())==null?void 0:m.htmlLabels);r?i=r:i="node default";let a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",is(t.labelStyle)),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let h=!!t.icon||!!t.img,u=t.labelType==="markdown",d=await qs(o,Ei(Sh(l),Ue()),{useHtmlLabels:n,width:t.width||((y=Ue().flowchart)==null?void 0:y.wrappingWidth),classes:u?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:h,markdown:u},Ue()),p=d.getBBox(),g=((x=t==null?void 0:t.padding)!=null?x:0)/2;if(n){let C=d.children[0],w=Lt(d);await tF(C,l),p=C.getBoundingClientRect(),w.attr("width",p.width),w.attr("height",p.height)}return n?o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):o.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:p,halfPadding:g,label:o}},"labelHelper"),wS=s(async(e,t,r)=>{var h,u,d;let i=(h=r.useHtmlLabels)!=null?h:Vi(Ue()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await qs(n,Ei(Sh(t),Ue()),{useHtmlLabels:i,width:r.width||((d=(u=Ue())==null?void 0:u.flowchart)==null?void 0:d.wrappingWidth),style:r.labelStyle,addSvgBackgroun
493d:!!r.icon||!!r.img}),o=a.getBBox(),l=r.padding/2;if(Vi(Ue())){let p=a.children[0],g=Lt(a);o=p.getBoundingClientRect(),g.attr("width",o.width),g.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:l,label:n}},"insertLabel"),kr=s((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),zr=s((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses"),s(Li,"createPathFromPoints"),s(vp,"generateFullSineWavePoints"),s(R4,"generateCirclePoints"),s(rF,"mergePaths")});function xTe(e,t){return e.intersect(t)}f(xTe,"sqe");var kTe,qxt=Y(()=>{"use strict";s(xTe,"intersectNode"),kTe=xTe});function TTe(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,l=a-i.y,h=Math.sqrt(t*t*l*l+r*r*o*o),u=Math.abs(t*r*o/h);i.x<n&&(u=-u);var d=Math.abs(t*r*l/h);return i.y<a&&(d=-d),{x:n+u,y:a+d}}f(TTe,"oqe");var iF,wTe=Y(()=>{"use strict";s(TTe,"intersectEllipse"),iF=TTe});function CTe(e,t,r){return iF(e,t,t,r)}f(CTe,"lqe");var ETe,jxt=Y(()=>{"use strict";wTe(),s(CTe,"intersectCircle"),ETe=CTe});
vendor: 4,378 bytes, line 493
493function STe(e,t,r,i){{let n=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,l=n*r.x+a*r.y+o,h=n*i.x+a*i.y+o,u=1e-6;if(l!==0&&h!==0&&nF(l,h))return;let d=i.y-r.y,p=r.x-i.x,g=i.x*r.y-r.x*i.y,m=d*e.x+p*e.y+g,y=d*t.x+p*t.y+g;if(Math.abs(m)<u&&Math.abs(y)<u&&nF(m,y))return;let x=n*p-d*a;if(x===0)return;let C=Math.abs(x/2),w=a*g-p*o,_=w<0?(w-C)/x:(w+C)/x;w=d*o-n*g;let S=w<0?(w-C)/x:(w+C)/x;return{x:_,y:S}}}f(STe,"cqe");function nF(e,t){return e*t>0}f(nF,"Mre");var _Te,Gxt=Y(()=>{"use strict";s(STe,"intersectLine"),s(nF,"sameSign"),_Te=STe});function ATe(e,t,r){let i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){o=Math.min(o,d.x),l=Math.min(l,d.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));let h=i-e.width/2-o,u=n-e.height/2-l;for(let d=0;d<t.length;d++){let p=t[d],g=t[d<t.length-1?d+1:0],m=_Te(e,r,{x:h+p.x,y:u+p.y},{x:h+g.x,y:u+g.y});m&&a.push(m)}return a.length?(a.length>1&&a.sort(function(d,p){let g=d.x-r.x,m=d.y-r.y,y=Math.sqrt(g*g+m*m),x=p.x-r.x,C=p.y-r.y,w=Math.sqrt(x*x+C*C);return y<w?-1:y===w?0:1}),a[0]):e}f(ATe,"uqe");var LTe,Uxt=Y(()=>{"use strict";Gxt(),s(ATe,"intersectPolygon"),LTe=ATe}),RTe,Pg,ITe=Y(()=>{"use strict";RTe=s((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,l=e.height/2,h,u;return Math.abs(a)*o>Math.abs(n)*l?(a<0&&(l=-l),h=a===0?0:l*n/a,u=l):(n<0&&(o=-o),h=o,u=n===0?0:o*a/n),{x:r+h,y:i+u}},"intersectRect"),Pg=RTe}),ur,Er=Y(()=>{"use strict";qxt(),jxt(),wTe(),Uxt(),ITe(),ur={node:kTe,circle:ETe,ellipse:iF,polygon:LTe,rect:Pg}}),DTe,Fg,NTe,CS,pr,xr,MTe,br=Y(()=>{"use strict";vr(),DTe=s(e=>{let{handDrawnSeed:t}=Ue();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Fg=s(e=>{let t=NTe([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),NTe=s(e=>{let t=new Map;return e.forEach(r=>{let[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),CS=s(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),pr=s(e=>{let{stylesArray:t}=Fg(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{let l=o[0];CS(l)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),l.includes("stroke")&&n.push(o.join(":")+" !important"),l==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),xr=s((e,t)=>{var l;let{themeVariables:r,handDrawnSeed:i}=Ue(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=Fg(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((l=o.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:MTe(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),MTe=s(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let n=isNaN(t[0])?0:t[0];return[n,n]}let r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray")});function ES(e,t,r){if(e&&e.length){let[i,n]=t,a=Math.PI/180*r,o=Math.cos(a),l=Math.sin(a);for(let h of e){let[u,d]=h;h[0]=(u-i)*o-(d-n)*l+i,h[1]=(u-i)*l+(d-n)*o+n}}}f(ES,"fN");function OTe(e,t){return e[0]===t[0]&&e[1]===t[1]}f(OTe,"pqe");function $Te(e,t,r,i=1){let n=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(n)for(let u of o)ES(u,l,n);let h=(function(u,d,p){let g=[];for(let _ of u){let S=[..._];OTe(S[0],S[S.length-1])||S.push([S[0][0],S[0][1]]),S.length>2&&g.push(S)}let m=[];d=Math.max(d,.1);let y=[];for(let _ of g)for(let S=0;S<_.length-1;S++){let R=_[S],b=_[S+1];if(R[1]!==b[1]){let v=Math.min(R[1],b[1]);y.push({ymin:v,ymax:Math.max(R[1],b[1]),x:v===R[1]?R[0]:b[0],islope:(b[0]-R[0])/(b[1]-R[1])})}}if(y.sort(((_,S)=>_.ymin<S.ymin?-1:_.ymin>S.ymin?1:_.x<S.x?-1:_.x>S.x?1:_.ymax===S.ymax?0:(_.ymax-S.ymax)/Math.abs(_.ymax-S.ymax))),!y.length)return m;let x=[],C=y[0].ymin,w=0;for(;x.length||y.length;){if(y.length){let _=-1;for(let S=0;S<y.length&&!(y[S].ymin>C);S++)_=S;
vendor: 10,553 bytes, line 493
493y.splice(0,_+1).forEach((S=>{x.push({s:C,edge:S})}))}if(x=x.filter((_=>!(_.edge.ymax<=C))),x.sort(((_,S)=>_.edge.x===S.edge.x?0:(_.edge.x-S.edge.x)/Math.abs(_.edge.x-S.edge.x))),(p!==1||w%d==0)&&x.length>1)for(let _=0;_<x.length;_+=2){let S=_+1;if(S>=x.length)break;let R=x[_].edge,b=x[S].edge;m.push([[Math.round(R.x),C],[Math.round(b.x),C]])}C+=p,x.forEach((_=>{_.edge.x=_.edge.x+p*_.edge.islope})),w++}return m})(o,a,i);if(n){for(let u of o)ES(u,l,-n);(function(u,d,p){let g=[];u.forEach((m=>g.push(...m))),ES(g,d,p)})(h,l,-n)}return h}f($Te,"mqe");function py(e,t){var r;let i=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),$Te(e,n,i,a||1)}f(py,"Jx");function I4(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}f(I4,"B4");function SS(e,t){return e.type===t}f(SS,"mN");function _S(e){let t=[],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:HTe,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:MS,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:vF,text:""},l})(e),i="BOD",n=0,a=r[n];for(;!SS(a,vF);){let o=0,l=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return _S("M0,0"+e);n++,o=P4[a.text],i=a.text}else SS(a,MS)?o=P4[i]:(n++,o=P4[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let h=n;h<n+o;h++){let u=r[h];if(!SS(u,MS))throw new Error("Param not a number: "+i+","+u.text);l[l.length]=+u.text}if(typeof P4[i]!="number")throw new Error("Bad segment: "+i);{let h={key:i,data:l};t.push(h),n+=o,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}f(_S,"DN");function aF(e){let t=0,r=0,i=0,n=0,a=[];for(let{key:o,data:l}of e)switch(o){case"M":a.push({key:"M",data:[...l]}),[t,r]=l,[i,n]=l;break;case"m":t+=l[0],r+=l[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{let h=l.map(((u,d)=>d%2?u+r:u+t));a.push({key:"C",data:h}),t=h[4],r=h[5];break}case"Q":a.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let h=l.map(((u,d)=>d%2?u+r:u+t));a.push({key:"Q",data:h}),t=h[2],r=h[3];break}case"A":a.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":a.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],a.push({key:"H",data:[t]});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]}),t=l[2],r=l[3];break;case"s":{let h=l.map(((u,d)=>d%2?u+r:u+t));a.push({key:"S",data:h}),t=h[2],r=h[3];break}case"T":a.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}f(aF,"Hre");function sF(e){let t=[],r="",i=0,n=0,a=0,o=0,l=0,h=0;for(let{key:u,data:d}of e){switch(u){case"M":t.push({key:"M",data:[...d]}),[i,n]=d,[a,o]=d;break;case"C":t.push({key:"C",data:[...d]}),i=d[4],n=d[5],l=d[2],h=d[3];break;case"L":t.push({key:"L",data:[...d]}),[i,n]=d;break;case"H":i=d[0],t.push({key:"L",data:[i,n]});break;case"V":n=d[0],t.push({key:"L",data:[i,n]});break;case"S":{let p=0,g=0;r==="C"||r==="S"?(p=i+(i-l),g=n+(n-h)):(p=i,g=n),t.push({key:"C",data:[p,g,...d]}),l=d[0],h=d[1],i=d[2],n=d[3];break}case"T":{let[p,g]=d,m=0,y=0;r==="Q"||r==="T"?(m=i+(i-l),y=n+(n-h)):(m=i,y=n);let x=i+2*(m-i)/3,C=n+2*(y-n)/3,w=p+2*(m-p)/3,_=g+2*(y-g)/3;t.push({key:"C",data:[x,C,w,_,p,g]}),l=m,h=y,i=p,n=g;break}case"Q":{let[p,g,m,y]=d,x=i+2*(p-i)/3,C=n+2*(g-n)/3,w=m+2*(p-m)/3,_=y+2*(g-y)/3;t.push({key:"C",data:[x,C,w,_,m,y]}),l=p,h=g,i=m,n=y;break}case"A":{let p=Math.abs(d[0]),g=Math.abs(d[1]),m=d[2],y=d[3],x=d[4],C=d[5],w=d[6];p===0||g===0?(t.push({key:"C",data:[i,n,C,w,C,w]}),i=C,n=w):(i!==C||n!==w)&&(oF(i,n,C,w,p,g,m,y,x).forEach((function(_){t.push({key:"C",data:_})})),i=C,n=w);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=u}return t}f(sF,"Yre");function gy(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}f(gy,"Kx");function oF(e,t,r,i,n,a,o,l,h,u){let d=(p=o,Math.PI*p/180);var p;let g=[],m=0,y=0,x=0,C=0;if(u)[m,y,x,C]=u;else{[e,t]=gy(e,t,-d),[r,i]=gy(r,i,-d);let j=(e-r)/2,D=(t-i)/2,P=j*j/(n*n)+D*D/(a*a);P>1&&(P=Math.sqrt(P),n*=P,a*=P);let F=n*n,U=a*a,z=F*U-F*D*D-U*j*j,V=F*D*D+U*j*j,W=(l===h?-1:1)*Math.sqrt(Math.abs(z/V));x=W*n*D/a+(e+r)/2,C=W*-a*j/n+(t+i)/2,m=Math.asin(parseFloat(((t-C)/a).toFixed(9))),y=Math.asin(parseFloat(((i-C)/a).toFixed(9))),e<x&&(m=Math.PI-m),r<x&&(y=Math.PI-y),m<0&&(m=2*Math.PI+m),y<0&&(y=2*Math.PI+y),h&&m>y&&(m-=2*Math.PI),!h&&y>m&&(y-=2*Math.PI)}let w=y-m;if(Math.abs(w)>120*Math.PI/180){let j=y,D=r,P=i;y=h&&y>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,g=oF(r=x+n*Math.cos(y),i=C+a*Math.sin(y),D,P,n,a,o,0,h,[y,j,x,C])}w=y-m;let _=Math.cos(m),S=Math.sin(m),R=Math.cos(y),b=Math.sin(y),v=Math.tan(w/4),k=4/3*n*v,E=4/3*a*v,A=[e,t],I=[e+k*S,t-E*_],$=[r+k*b,i-E*R],O=[r,i];if(I[0]=2*A[0]-I[0],I[1]=2*A[1]-I[1],u)return[I,$,O].concat(g);{g=[I,$,O].concat(g);let j=[];for(let D=0;D<g.length;D+=3){let P=gy(g[D][0],g[D][1],d),F=gy(g[D+1][0],g[D+1][1],d),U=gy(g[D+2][0],g[D+2][1],d);j.push([P[0],P[1],F[0],F[1],U[0],U[1]])}return j}}f(oF,"jre");function lF(e,t,r,i,n){return{type:"path",ops:Wu(e,t,r,i,n)}}f(lF,"Xre");function D4(e,t,r){let i=(e||[]).length;if(i>2){let n=[];for(let a=0;a<i-1;a++)n.push(...Wu(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...Wu(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?lF(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}f(D4,"M4");function BTe(e,t,r,i,n){return(function(a,o){return D4(a,!0,o)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}f(BTe,"vqe");function cF(e,t){if(e.length){let r=typeof e[0][0]=="number"?[e]:e,i=M4(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:M4(r[0],1.5*(1+.22*t.roughness),pF(t));for(let a=1;a<r.length;a++){let o=r[a];if(o.length){let l=M4(o,1*(1+.2*t.roughness),t),h=t.disableMultiStroke?[]:M4(o,1.5*(1+.22*t.roughness),pF(t));for(let u of l)u.op!=="move"&&i.push(u);for(let u of h)u.op!=="move"&&n.push(u)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}f(cF,"$re");function hF(e,t,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n,o=Math.abs(e/2),l=Math.abs(t/2),h=1-r.curveFitting;return o+=Gr(o*h,r),l+=Gr(l*h,r),{increment:a,rx:o,ry:l}}f(hF,"Kre");function AS(e,t,r,i){let[n,a]=fF(i.increment,e,t,i.rx,i.ry,1,i.increment*N4(.1,N4(.4,1,r),r),r),o=O4(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){let[l]=fF(i.increment,e,t,i.rx,i.ry,1.5,0,r),h=O4(l,null,r);o=o.concat(h)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}f(AS,"wN");function uF(e,t,r,i,n,a,o,l,h){let u=e,d=t,p=Math.abs(r/2),g=Math.abs(i/2);p+=Gr(.01*p,h),g+=Gr(.01*g,h);let m=n,y=a;for(;m<0;)m+=2*Math.PI,y+=2*Math.PI;y-m>2*Math.PI&&(m=0,y=2*Math.PI);let x=2*Math.PI/h.curveStepCount,C=Math.min(x/2,(y-m)/2),w=mF(C,u,d,p,g,m,y,1,h);if(!h.disableMultiStroke){let _=mF(C,u,d,p,g,m,y,1.5,h);w.push(..._)}return o&&(l?w.push(...Wu(u,d,u+p*Math.cos(m),d+g*Math.sin(m),h),...Wu(u,d,u+p*Math.cos(y),d+g*Math.sin(y),h)):w.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+p*Math.cos(m),d+g*Math.sin(m)]})),{type:"path",ops:w}}f(uF,"zre");function dF(e,t){let r=sF(aF(_S(e))),i=[],n=[0,0],a=[0,0];for(let{key:o,data:l}of r)switch(o){case"M":a=[l[0],l[1]],n=[l[0],l[1]];break;case"L":i.push(...Wu(a[0],a[1],l[0],l[1],t)),a=[l[0],l[1]];break;case"C":{let[h,u,d,p,g,m]=l;i.push(...PTe(h,u,d,p,g,m,a,t)),a=[g,m];break}case"Z":i.push(...Wu(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}f(dF,"Gre");function LS(e,t){let r=[];for(let i of e)if(i.length){let n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Gr(n,t),i[0][1]+Gr(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+Gr(n,t),i[o][1]+Gr(n,t)]})}}return{type:"fillPath",ops:r}}f(LS,"gN");function zg(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!lo[n])switch(n){case"zigzag":lo[n]||(lo[n]=new qTe(i));break;case"cross-hatch":lo[n]||(lo[n]=new jTe(i));break;case"dots":lo[n]||(lo[n]=new GTe(i));break;case"dashed":lo[n]||(lo[n]=new UTe(i));break;case"zigzag-line":lo[n]||(lo[n]=new VTe(i));break;default:n="hachure",lo[n]||(lo[n]=new NS(i))}return lo[n]})(t,YTe).fillPolygons(e,t)}f(zg,"Tg");function pF(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}f(pF,"Vre");function gF(e){return e.randomizer||(e.randomizer=new WTe(e.seed||0)),e.randomizer.next()}f(gF,"Zre");function N4(e,t,r,i=1){return r.roughness*i*(gF(r)*(t-e)+e)}f(N4,"I4");function Gr(e,t,r=1){return N4(-e,e,t,r)}f(Gr,"pr");function Wu(e,t,r,i,n,a=!1){let o=a?n.disableMultiStrokeFill:n.disableMultiStroke,l=RS(e,t,r,i,n,!0,!1);if(o)return l;let h=RS(e,t,r,i,n,!0,!0);return l.concat(h)}f(Wu,"ud");function RS(e,t,r,i,n,a,o){let l=Math.pow(e-r,2)+Math.pow(t-i,2),h=Math.sqrt(l),u=1;u=h<200?1:h>500?.4:-.0016668*h+1.233334;let d=n.maxRandomnessOffset||0;d*d*100>l&&(d=h/10);let p=d/2,g=.2+.2*gF(n),m=n.bowing*n.maxRandomnessOffset*(i-t)/200,y=n.bowing*n.maxRandomnessOffset*(e-r)/200;m=Gr(m,n,u),y=Gr(y,n,u);let x=[],C=s(()=>Gr(p,n,u),"M"),w=s(()=>Gr(d,n,u),"k"),_=n.preserveVertices;return a&&(o?x.push({op:"move",data:[e+(_?0:C()),t+(_?0:C())]}):x.push({op:"move",data:[e+(_?0:Gr(d,n,u)),t+(_?0:Gr(d,n,u))]})),o?x.push({op:"bcurveTo",data:[m+e+(r-e)*g+C(),y+t+(i-t)*g+C(),m+e+2*(r-e)*g+C(),y+t+2*(i-t)*g+C(),r+(_?0:C()),i+(_?0:C())]}):x.push({op:"bcurveTo",data:[m+e+(r-e)*g+w(),y+t+(i-t)*g+w(),m+e+2*(r-e)*g+w(),y+t+2*(i-t)*g+w(),r+(_?0:w()),i+(_?0:w())]}),x}f(RS,"SN");function M4(e,t,r){if(!e.length)return[];let i=[];i.push([e[0][0]+Gr(t,r),e[0][1]+Gr(t,r)]),i.push([e[0][0]+Gr(t,r),e[0][1]+Gr(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Gr(t,r),e[n][1]+Gr(t,r)]),n===e.length-1&&i.push([e[n][0]+Gr(t,r),e[n][1]+Gr(t,r)]);return O4(i,null,r)}f(M4,"R4");function O4(e,t,r){let i=e.length,n=[];if(i>3){let a=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<i;l++){let h=e[l];
vendor: 5,377 bytes, line 493
493a[0]=[h[0],h[1]],a[1]=[h[0]+(o*e[l+1][0]-o*e[l-1][0])/6,h[1]+(o*e[l+1][1]-o*e[l-1][1])/6],a[2]=[e[l+1][0]+(o*e[l][0]-o*e[l+2][0])/6,e[l+1][1]+(o*e[l][1]-o*e[l+2][1])/6],a[3]=[e[l+1][0],e[l+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&t.length===2){let l=r.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+Gr(l,r),t[1]+Gr(l,r)]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...RS(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}f(O4,"O4");function fF(e,t,r,i,n,a,o,l){let h=[],u=[];if(l.roughness===0){e/=4,u.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){let p=[t+i*Math.cos(d),r+n*Math.sin(d)];h.push(p),u.push(p)}u.push([t+i*Math.cos(0),r+n*Math.sin(0)]),u.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{let d=Gr(.5,l)-Math.PI/2;u.push([Gr(a,l)+t+.9*i*Math.cos(d-e),Gr(a,l)+r+.9*n*Math.sin(d-e)]);let p=2*Math.PI+d-.01;for(let g=d;g<p;g+=e){let m=[Gr(a,l)+t+i*Math.cos(g),Gr(a,l)+r+n*Math.sin(g)];h.push(m),u.push(m)}u.push([Gr(a,l)+t+i*Math.cos(d+2*Math.PI+.5*o),Gr(a,l)+r+n*Math.sin(d+2*Math.PI+.5*o)]),u.push([Gr(a,l)+t+.98*i*Math.cos(d+o),Gr(a,l)+r+.98*n*Math.sin(d+o)]),u.push([Gr(a,l)+t+.9*i*Math.cos(d+.5*o),Gr(a,l)+r+.9*n*Math.sin(d+.5*o)])}return[u,h]}f(fF,"Wre");function mF(e,t,r,i,n,a,o,l,h){let u=a+Gr(.1,h),d=[];d.push([Gr(l,h)+t+.9*i*Math.cos(u-e),Gr(l,h)+r+.9*n*Math.sin(u-e)]);for(let p=u;p<=o;p+=e)d.push([Gr(l,h)+t+i*Math.cos(p),Gr(l,h)+r+n*Math.sin(p)]);return d.push([t+i*Math.cos(o),r+n*Math.sin(o)]),d.push([t+i*Math.cos(o),r+n*Math.sin(o)]),O4(d,null,h)}f(mF,"qre");function PTe(e,t,r,i,n,a,o,l){let h=[],u=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3],d=[0,0],p=l.disableMultiStroke?1:2,g=l.preserveVertices;for(let m=0;m<p;m++)m===0?h.push({op:"move",data:[o[0],o[1]]}):h.push({op:"move",data:[o[0]+(g?0:Gr(u[0],l)),o[1]+(g?0:Gr(u[0],l))]}),d=g?[n,a]:[n+Gr(u[m],l),a+Gr(u[m],l)],h.push({op:"bcurveTo",data:[e+Gr(u[m],l),t+Gr(u[m],l),r+Gr(u[m],l),i+Gr(u[m],l),d[0],d[1]]});return h}f(PTe,"xqe");function fy(e){return[...e]}f(fy,"Zx");function yF(e,t=0){let r=e.length;if(r<3)throw new Error("A curve must have at least three points.");let i=[];if(r===3)i.push(fy(e[0]),fy(e[1]),fy(e[2]),fy(e[2]));else{let n=[];n.push(e[0],e[0]);for(let l=1;l<e.length;l++)n.push(e[l]),l===e.length-1&&n.push(e[l]);let a=[],o=1-t;i.push(fy(n[0]));for(let l=1;l+2<n.length;l++){let h=n[l];a[0]=[h[0],h[1]],a[1]=[h[0]+(o*n[l+1][0]-o*n[l-1][0])/6,h[1]+(o*n[l+1][1]-o*n[l-1][1])/6],a[2]=[n[l+1][0]+(o*n[l][0]-o*n[l+2][0])/6,n[l+1][1]+(o*n[l][1]-o*n[l+2][1])/6],a[3]=[n[l+1][0],n[l+1][1]],i.push(a[1],a[2],a[3])}}return i}f(yF,"Ure");function $4(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}f($4,"N4");function FTe(e,t,r){let i=$4(t,r);if(i===0)return $4(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),$4(e,bp(t,r,n))}f(FTe,"bqe");function bp(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}f(bp,"Ap");function IS(e,t,r,i){let n=i||[];if((function(l,h){let u=l[h+0],d=l[h+1],p=l[h+2],g=l[h+3],m=3*d[0]-2*u[0]-g[0];m*=m;let y=3*d[1]-2*u[1]-g[1];y*=y;let x=3*p[0]-2*g[0]-u[0];x*=x;let C=3*p[1]-2*g[1]-u[1];return C*=C,m<x&&(m=x),y<C&&(y=C),m+y})(e,t)<r){let l=e[t+0];n.length?(a=n[n.length-1],o=l,Math.sqrt($4(a,o))>1&&n.push(l)):n.push(l),n.push(e[t+3])}else{let l=e[t+0],h=e[t+1],u=e[t+2],d=e[t+3],p=bp(l,h,.5),g=bp(h,u,.5),m=bp(u,d,.5),y=bp(p,g,.5),x=bp(g,m,.5),C=bp(y,x,.5);IS([l,p,y,C],0,r,n),IS([C,x,m,d],0,r,n)}var a,o;return n}f(IS,"EN");function zTe(e,t){return B4(e,0,e.length,t)}f(zTe,"Tqe");function B4(e,t,r,i,n){let a=n||[],o=e[t],l=e[r-1],h=0,u=1;for(let d=t+1;d<r-1;++d){let p=FTe(e[d],o,l);p>h&&(h=p,u=d)}return Math.sqrt(h)>i?(B4(e,t,u+1,i,a),B4(e,u,r,i,a)):(a.length||a.push(o),a.push(l)),a}f(B4,"P4");function DS(e,t=.15,r){let i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)IS(e,3*a,t,i);return r&&r>0?B4(i,0,i.length,r):i}f(DS,"yN");var NS,qTe,jTe,GTe,UTe,VTe,lo,WTe,HTe,MS,vF,P4,YTe,Do,F4,XTe,z4,KTe,fr,Tr=Y(()=>{"use strict";var e,t,r,i,n,a,o,l,h,u;s(ES,"t"),s(OTe,"e"),s($Te,"s"),s(py,"n"),NS=(e=class{constructor(p){this.helper=p}fillPolygons(p,g){return this._fillPolygons(p,g)}_fillPolygons(p,g){let m=py(p,g);return{type:"fillSketch",ops:this.renderLines(m,g)}}renderLines(p,g){let m=[];for(let y of p)m.push(...this.helper.doubleLineOps(y[0][0],y[0][1],y[1][0],y[1][1],g));return m}},f(e,"Qx"),s(e,"o"),e),s(I4,"a"),qTe=(t=class extends NS{fillPolygons(p,g){let m=g.hachureGap;m<0&&(m=4*g.strokeWidth),m=Math.max(m,.1);let y=py(p,Object.assign({},g,{hachureGap:m})),x=Math.PI/180*g.hachureAngle,C=[],w=.5*m*Math.cos(x),_=.5*m*Math.sin(x);for(let[S,R]of y)I4([S,R])&&C.push([[S[0]-w,S[1]+_],[...R]],[[S[0]+w,S[1]-_],[...R]]);return{type:"fillSketch",ops:this.renderLines(C,g)}}},f(t,"vN"),s(t,"h"),t),jTe=(r=class extends NS{fillPolygons(p,g){let m=this._fillPolygons(p,g),y=Object.assign({},g,{hachureAngle:g.hachureAngle+90}),x=this._fillPolygons(p,y);return m.ops=m.ops.concat(x.ops),m}},f(r,"xN"),s(r,"r"),r),GTe=(i=class{constructor(p){this.helper=p}fillPolygons(p,g){let m=py(p,g=Object.assign({},g,{hachureAngle:0}));return this.dotsOnLines(m,g)}dotsOnLines(p,g){let m=[],y=g.hachureGap;y<0&&(y=4*g.strokeWidth),y=Math.max(y,.1);let x=g.fillWeight;x<0&&(x=g.strokeWidth/2);let C=y/4;
vendor: 4,617 bytes, line 493
493for(let w of p){let _=I4(w),S=_/y,R=Math.ceil(S)-1,b=_-R*y,v=(w[0][0]+w[1][0])/2-y/4,k=Math.min(w[0][1],w[1][1]);for(let E=0;E<R;E++){let A=k+b+E*y,I=v-C+2*Math.random()*C,$=A-C+2*Math.random()*C,O=this.helper.ellipse(I,$,x,x,g);m.push(...O.ops)}}return{type:"fillSketch",ops:m}}},f(i,"bN"),s(i,"i"),i),UTe=(n=class{constructor(p){this.helper=p}fillPolygons(p,g){let m=py(p,g);return{type:"fillSketch",ops:this.dashedLine(m,g)}}dashedLine(p,g){let m=g.dashOffset<0?g.hachureGap<0?4*g.strokeWidth:g.hachureGap:g.dashOffset,y=g.dashGap<0?g.hachureGap<0?4*g.strokeWidth:g.hachureGap:g.dashGap,x=[];return p.forEach((C=>{let w=I4(C),_=Math.floor(w/(m+y)),S=(w+y-_*(m+y))/2,R=C[0],b=C[1];R[0]>b[0]&&(R=C[1],b=C[0]);let v=Math.atan((b[1]-R[1])/(b[0]-R[0]));for(let k=0;k<_;k++){let E=k*(m+y),A=E+m,I=[R[0]+E*Math.cos(v)+S*Math.cos(v),R[1]+E*Math.sin(v)+S*Math.sin(v)],$=[R[0]+A*Math.cos(v)+S*Math.cos(v),R[1]+A*Math.sin(v)+S*Math.sin(v)];x.push(...this.helper.doubleLineOps(I[0],I[1],$[0],$[1],g))}})),x}},f(n,"TN"),s(n,"c"),n),VTe=(a=class{constructor(p){this.helper=p}fillPolygons(p,g){let m=g.hachureGap<0?4*g.strokeWidth:g.hachureGap,y=g.zigzagOffset<0?m:g.zigzagOffset,x=py(p,g=Object.assign({},g,{hachureGap:m+y}));return{type:"fillSketch",ops:this.zigzagLines(x,y,g)}}zigzagLines(p,g,m){let y=[];return p.forEach((x=>{let C=I4(x),w=Math.round(C/(2*g)),_=x[0],S=x[1];_[0]>S[0]&&(_=x[1],S=x[0]);let R=Math.atan((S[1]-_[1])/(S[0]-_[0]));for(let b=0;b<w;b++){let v=2*b*g,k=2*(b+1)*g,E=Math.sqrt(2*Math.pow(g,2)),A=[_[0]+v*Math.cos(R),_[1]+v*Math.sin(R)],I=[_[0]+k*Math.cos(R),_[1]+k*Math.sin(R)],$=[A[0]+E*Math.cos(R+Math.PI/4),A[1]+E*Math.sin(R+Math.PI/4)];y.push(...this.helper.doubleLineOps(A[0],A[1],$[0],$[1],m),...this.helper.doubleLineOps($[0],$[1],I[0],I[1],m))}})),y}},f(a,"CN"),s(a,"l"),a),lo={},WTe=(o=class{constructor(p){this.seed=p}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},f(o,"kN"),s(o,"p"),o),HTe=0,MS=1,vF=2,P4={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},s(SS,"k"),s(_S,"b"),s(aF,"y"),s(sF,"m"),s(gy,"w"),s(oF,"x"),YTe={randOffset:s(function(d,p){return Gr(d,p)},"randOffset"),randOffsetWithRange:s(function(d,p,g){return N4(d,p,g)},"randOffsetWithRange"),ellipse:s(function(d,p,g,m,y){let x=hF(g,m,y);return AS(d,p,y,x).opset},"ellipse"),doubleLineOps:s(function(d,p,g,m,y){return Wu(d,p,g,m,y,!0)},"doubleLineOps")},s(lF,"v"),s(D4,"S"),s(BTe,"O"),s(cF,"L"),s(hF,"T"),s(AS,"D"),s(uF,"A"),s(dF,"_"),s(LS,"I"),s(zg,"C"),s(pF,"z"),s(gF,"W"),s(N4,"E"),s(Gr,"G"),s(Wu,"$"),s(RS,"R"),s(M4,"j"),s(O4,"q"),s(fF,"F"),s(mF,"V"),s(PTe,"Z"),s(fy,"Q"),s(yF,"H"),s($4,"N"),s(FTe,"B"),s(bp,"J"),s(IS,"K"),s(zTe,"U"),s(B4,"X"),s(DS,"Y"),Do="none",F4=(l=class{constructor(p){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=p||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(p){return p?Object.assign({},this.defaultOptions,p):this.defaultOptions}_d(p,g,m){return{shape:p,sets:g||[],options:m||this.defaultOptions}}line(p,g,m,y,x){let C=this._o(x);return this._d("line",[lF(p,g,m,y,C)],C)}rectangle(p,g,m,y,x){let C=this._o(x),w=[],_=BTe(p,g,m,y,C);if(C.fill){let S=[[p,g],[p+m,g],[p+m,g+y],[p,g+y]];C.fillStyle==="solid"?w.push(LS([S],C)):w.push(zg([S],C))}return C.stroke!==Do&&w.push(_),this._d("rectangle",w,C)}ellipse(p,g,m,y,x){let C=this._o(x),w=[],_=hF(m,y,C),S=AS(p,g,C,_);if(C.fill)if(C.fillStyle==="solid"){let R=AS(p,g,C,_).opset;R.type="fillPath",w.push(R)}else w.push(zg([S.estimatedPoints],C));return C.stroke!==Do&&w.push(S.opset),this._d("ellipse",w,C)}circle(p,g,m,y){let x=this.ellipse(p,g,m,m,y);return x.shape="circle",x}linearPath(p,g){let m=this._o(g);return this._d("linearPath",[D4(p,!1,m)],m)}arc(p,g,m,y,x,C,w=!1,_){let S=this._o(_),R=[],b=uF(p,g,m,y,x,C,w,!0,S);if(w&&S.fill)if(S.fillStyle==="solid"){let v=Object.assign({},S);v.disableMultiStroke=!0;let k=uF(p,g,m,y,x,C,!0,!1,v);k.type="fillPath",R.push(k)}else R.push((function(v,k,E,A,I,$,O){let j=v,D=k,P=Math.abs(E/2),F=Math.abs(A/2);P+=Gr(.01*P,O),F+=Gr(.01*F,O);let U=I,z=$;for(;U<0;)U+=2*Math.PI,z+=2*Math.PI;z-U>2*Math.PI&&(U=0,z=2*Math.PI);let V=(z-U)/O.curveStepCount,W=[];for(let X=U;X<=z;X+=V)W.push([j+P*Math.cos(X),D+F*Math.sin(X)]);
vendor: 7,260 bytes, line 493
493return W.push([j+P*Math.cos(z),D+F*Math.sin(z)]),W.push([j,D]),zg([W],O)})(p,g,m,y,x,C,S));return S.stroke!==Do&&R.push(b),this._d("arc",R,S)}curve(p,g){let m=this._o(g),y=[],x=cF(p,m);if(m.fill&&m.fill!==Do)if(m.fillStyle==="solid"){let C=cF(p,Object.assign(Object.assign({},m),{disableMultiStroke:!0,roughness:m.roughness?m.roughness+m.fillShapeRoughnessGain:0}));y.push({type:"fillPath",ops:this._mergedShape(C.ops)})}else{let C=[],w=p;if(w.length){let _=typeof w[0][0]=="number"?[w]:w;for(let S of _)S.length<3?C.push(...S):S.length===3?C.push(...DS(yF([S[0],S[0],S[1],S[2]]),10,(1+m.roughness)/2)):C.push(...DS(yF(S),10,(1+m.roughness)/2))}C.length&&y.push(zg([C],m))}return m.stroke!==Do&&y.push(x),this._d("curve",y,m)}polygon(p,g){let m=this._o(g),y=[],x=D4(p,!0,m);return m.fill&&(m.fillStyle==="solid"?y.push(LS([p],m)):y.push(zg([p],m))),m.stroke!==Do&&y.push(x),this._d("polygon",y,m)}path(p,g){let m=this._o(g),y=[];if(!p)return this._d("path",y,m);p=(p||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let x=m.fill&&m.fill!=="transparent"&&m.fill!==Do,C=m.stroke!==Do,w=!!(m.simplification&&m.simplification<1),_=(function(R,b,v){let k=sF(aF(_S(R))),E=[],A=[],I=[0,0],$=[],O=s(()=>{$.length>=4&&A.push(...DS($,b)),$=[]},"i"),j=s(()=>{O(),A.length&&(E.push(A),A=[])},"c");for(let{key:P,data:F}of k)switch(P){case"M":j(),I=[F[0],F[1]],A.push(I);break;case"L":O(),A.push([F[0],F[1]]);break;case"C":if(!$.length){let U=A.length?A[A.length-1]:I;$.push([U[0],U[1]])}$.push([F[0],F[1]]),$.push([F[2],F[3]]),$.push([F[4],F[5]]);break;case"Z":O(),A.push([I[0],I[1]])}if(j(),!v)return E;let D=[];for(let P of E){let F=zTe(P,v);F.length&&D.push(F)}return D})(p,1,w?4-4*(m.simplification||1):(1+m.roughness)/2),S=dF(p,m);if(x)if(m.fillStyle==="solid")if(_.length===1){let R=dF(p,Object.assign(Object.assign({},m),{disableMultiStroke:!0,roughness:m.roughness?m.roughness+m.fillShapeRoughnessGain:0}));y.push({type:"fillPath",ops:this._mergedShape(R.ops)})}else y.push(LS(_,m));else y.push(zg(_,m));return C&&(w?_.forEach((R=>{y.push(D4(R,!1,m))})):y.push(S)),this._d("path",y,m)}opsToPath(p,g){let m="";for(let y of p.ops){let x=typeof g=="number"&&g>=0?y.data.map((C=>+C.toFixed(g))):y.data;switch(y.op){case"move":m+=`M${x[0]} ${x[1]} `;break;case"bcurveTo":m+=`C${x[0]} ${x[1]}, ${x[2]} ${x[3]}, ${x[4]} ${x[5]} `;break;case"lineTo":m+=`L${x[0]} ${x[1]} `}}return m.trim()}toPaths(p){let g=p.sets||[],m=p.options||this.defaultOptions,y=[];for(let x of g){let C=null;switch(x.type){case"path":C={d:this.opsToPath(x),stroke:m.stroke,strokeWidth:m.strokeWidth,fill:Do};break;case"fillPath":C={d:this.opsToPath(x),stroke:Do,strokeWidth:0,fill:m.fill||Do};break;case"fillSketch":C=this.fillSketch(x,m)}C&&y.push(C)}return y}fillSketch(p,g){let m=g.fillWeight;return m<0&&(m=g.strokeWidth/2),{d:this.opsToPath(p),stroke:g.fill||Do,strokeWidth:m,fill:Do}}_mergedShape(p){return p.filter(((g,m)=>m===0||g.op!=="move"))}},f(l,"Cg"),s(l,"et"),l),XTe=(h=class{constructor(p,g){this.canvas=p,this.ctx=this.canvas.getContext("2d"),this.gen=new F4(g)}draw(p){let g=p.sets||[],m=p.options||this.getDefaultOptions(),y=this.ctx,x=p.options.fixedDecimalPlaceDigits;for(let C of g)switch(C.type){case"path":y.save(),y.strokeStyle=m.stroke==="none"?"transparent":m.stroke,y.lineWidth=m.strokeWidth,m.strokeLineDash&&y.setLineDash(m.strokeLineDash),m.strokeLineDashOffset&&(y.lineDashOffset=m.strokeLineDashOffset),this._drawToContext(y,C,x),y.restore();break;case"fillPath":{y.save(),y.fillStyle=m.fill||"";let w=p.shape==="curve"||p.shape==="polygon"||p.shape==="path"?"evenodd":"nonzero";this._drawToContext(y,C,x,w),y.restore();break}case"fillSketch":this.fillSketch(y,C,m)}}fillSketch(p,g,m){let y=m.fillWeight;y<0&&(y=m.strokeWidth/2),p.save(),m.fillLineDash&&p.setLineDash(m.fillLineDash),m.fillLineDashOffset&&(p.lineDashOffset=m.fillLineDashOffset),p.strokeStyle=m.fill||"",p.lineWidth=y,this._drawToContext(p,g,m.fixedDecimalPlaceDigits),p.restore()}_drawToContext(p,g,m,y="nonzero"){p.beginPath();for(let x of g.ops){let C=typeof m=="number"&&m>=0?x.data.map((w=>+w.toFixed(m))):x.data;switch(x.op){case"move":p.moveTo(C[0],C[1]);break;case"bcurveTo":p.bezierCurveTo(C[0],C[1],C[2],C[3],C[4],C[5]);break;case"lineTo":p.lineTo(C[0],C[1])}}g.type==="fillPath"?p.fill(y):p.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(p,g,m,y,x){let C=this.gen.line(p,g,m,y,x);return this.draw(C),C}rectangle(p,g,m,y,x){let C=this.gen.rectangle(p,g,m,y,x);return this.draw(C),C}ellipse(p,g,m,y,x){let C=this.gen.ellipse(p,g,m,y,x);return this.draw(C),C}circle(p,g,m,y){let x=this.gen.circle(p,g,m,y);return this.draw(x),x}linearPath(p,g){let m=this.gen.linearPath(p,g);return this.draw(m),m}polygon(p,g){let m=this.gen.polygon(p,g);return this.draw(m),m}arc(p,g,m,y,x,C,w=!1,_){let S=this.gen.arc(p,g,m,y,x,C,w,_);return this.draw(S),S}curve(p,g){let m=this.gen.curve(p,g);return this.draw(m),m}path(p,g){let m=this.gen.path(p,g);return this.draw(m),m}},f(h,"AN"),s(h,"st"),h),z4="http://www.w3.org/2000/svg",KTe=(u=class{constructor(p,g){this.svg=p,this.gen=new F4(g)}draw(p){let g=p.sets||[],m=p.options||this.getDefaultOptions(),y=this.svg.ownerDocument||window.document,x=y.createElementNS(z4,"g"),C=p.options.fixedDecimalPlaceDigits;for(let w of g){let _=null;switch(w.type){case"path":_=y.createElementNS(z4,"path"),_.setAttribute("d",this.opsToPath(w,C)),_.setAttribute("stroke",m.stroke),_.setAttribute("stroke-width",m.strokeWidth+""),_.setAttribute("fill","none"),m.strokeLineDash&&_.setAttribute("stroke-dasharray",m.strokeLineDash.join(" ").trim()),m.strokeLineDashOffset&&_.setAttribute("stroke-dashoffset",`${m.strokeLineDashOffset}`);break;case"fillPath":_=y.createElementNS(z4,"path"),_.setAttribute("d",this.opsToPath(w,C)),_.setAttribute("stroke","none"),_.setAttribute("stroke-width","0"),_.setAttribute("fill",m.fill||""),p.shape!=="curve"&&p.shape!=="polygon"||_.setAttribute("fill-rule","evenodd");break;case"fillSketch":_=this.fillSketch(y,w,m)}_&&x.appendChild(_)}return x}fillSketch(p,g,m){let y=m.fillWeight;y<0&&(y=m.strokeWidth/2);let x=p.createElementNS(z4,"path");return x.setAttribute("d",this.opsToPath(g,m.fixedDecimalPlaceDigits)),x.setAttribute("stroke",m.fill||""),x.setAttribute("stroke-width",y+""),x.setAttribute("fill","none"),m.fillLineDash&&x.setAttribute("stroke-dasharray",m.fillLineDash.join(" ").trim()),m.fillLineDashOffset&&x.setAttribute("stroke-dashoffset",`${m.fillLineDashOffset}`),x}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(p,g){return this.gen.opsToPath(p,g)}line(p,g,m,y,x){let C=this.gen.line(p,g,m,y,x);return this.draw(C)}rectangle(p,g,m,y,x){let C=this.gen.rectangle(p,g,m,y,x);return this.draw(C)}ellipse(p,g,m,y,x){let C=this.gen.ellipse(p,g,m,y,x);return this.draw(C)}circle(p,g,m,y){let x=this.gen.circle(p,g,m,y);return this.draw(x)}linearPath(p,g){let m=this.gen.linearPath(p,g);return this.draw(m)}polygon(p,g){let m=this.gen.polygon(p,g);return this.draw(m)}arc(p,g,m,y,x,C,w=!1,_){let S=this.gen.arc(p,g,m,y,x,C,w,_);return this.draw(S)}curve(p,g){let m=this.gen.curve(p,g);return this.draw(m)}path(p,g){let m=this.gen.path(p,g);return this.draw(m)}},f(u,"_N"),s(u,"ot"),u),fr={canvas:s((d,p)=>
vendor: 6,170 bytes, lines 493-494
493new XTe(d,p),"canvas"),svg:s((d,p)=>new KTe(d,p),"svg"),generator:s(d=>new F4(d),"generator"),newSeed:s(()=>F4.newSeed(),"newSeed")}});function ZTe(e,t){let{labelStyles:r}=pr(t);t.labelStyle=r;let i=zr(t),n=i;i||(n="anchor");let a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:l}=t,h=fr.svg(a),u=xr(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);let d=h.circle(0,0,o*2,u),p=a.insert(()=>d,":first-child");return p.attr("class","anchor").attr("style",is(l)),kr(t,p),t.intersect=function(g){return ge.info("Circle intersect",t,o,g),ur.circle(t,o,g)},a}f(ZTe,"Qre");var Vxt=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),wr(),s(ZTe,"anchor")});function bF(e,t,r,i,n,a,o){let l=(e+r)/2,h=(t+i)/2,u=Math.atan2(i-t,r-e),d=(r-e)/2,p=(i-t)/2,g=d/n,m=p/a,y=Math.sqrt(g**2+m**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let x=Math.sqrt(1-y**2),C=l+x*a*Math.sin(u)*(o?-1:1),w=h-x*n*Math.cos(u)*(o?-1:1),_=Math.atan2((t-w)/a,(e-C)/n),S=Math.atan2((i-w)/a,(r-C)/n)-_;o&&S<0&&(S+=2*Math.PI),!o&&S>0&&(S-=2*Math.PI);let R=[];for(let b=0;b<20;b++){let v=b/19,k=_+v*S,E=C+n*Math.cos(k),A=w+a*Math.sin(k);R.push({x:E,y:A})}return R}f(bF,"eie");function QTe(e,t,r){let[i,n]=[t,r].sort((a,o)=>o-a);return n*(1-Math.sqrt(1-(e/i/2)**2))}f(QTe,"Cqe");async function JTe(e,t){var E;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(E=t.padding)!=null?E:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=s(A=>A+o,"calcTotalHeight"),h=s(A=>{let I=A/2;return[I/(2.5+A/50),I]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Vr(e,t,zr(t)),p=l(t!=null&&t.height?t==null?void 0:t.height:d.height),[g,m]=h(p),y=QTe(p,g,m),x=(t!=null&&t.width?t==null?void 0:t.width:d.width)+a*2+y-y,C=p,{cssStyles:w}=t,_=[{x:x/2,y:-C/2},{x:-x/2,y:-C/2},...bF(-x/2,-C/2,-x/2,C/2,g,m,!1),{x:x/2,y:C/2},...bF(x/2,C/2,x/2,-C/2,g,m,!0)],S=fr.svg(u),R=xr(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let b=Li(_),v=S.path(b,R),k=u.insert(()=>v,":first-child");return k.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",w),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${g/2}, 0)`),kr(t,k),t.intersect=function(A){return ur.polygon(t,_,A)},u}f(JTe,"tie");var Wxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(bF,"generateArcPoints"),s(QTe,"calculateArcSagitta"),s(JTe,"bowTieRect")});function Hu(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}f(Hu,"Ma");var xp=Y(()=>{"use strict";s(Hu,"insertPolygonShape")});async function e5e(e,t){var _,S,R;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(_=t.padding)!=null?_:0,a=t.look==="neo"?28:n,o=t.look==="neo"?24:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=((S=t==null?void 0:t.width)!=null?S:h.width)+(t.look==="neo"?a*2:a+q4),d=((R=t==null?void 0:t.height)!=null?R:h.height)+(t.look==="neo"?o*2:o),p=0,g=u,m=-d,y=0,x=[{x:p+q4,y:m},{x:g,y:m},{x:g,y},{x:p,y},{x:p,y:m+q4},{x:p+q4,y:m}],C,{cssStyles:w}=t;if(t.look==="handDrawn"){let b=fr.svg(l),v=xr(t,{}),k=Li(x),E=b.path(k,v);C=l.insert(()=>E,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),w&&C.attr("style",w)}else C=Hu(l,u,d,x);return i&&C.attr("style",i),kr(t,C),t.intersect=function(b){return ur.polygon(t,x,b)},l}f(e5e,"iie");var q4,Hxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),gr(),q4=12,s(e5e,"card")});function t5e(e,t){var g,m;let{nodeStyles:r}=pr(t);t.label="";let i=e.insert("g").attr("class",zr(t)).attr("id",(g=t.domId)!=null?g:t.id),{cssStyles:n}=t,a=Math.max(28,(m=t.width)!=null?m:0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=fr.svg(i),h=xr(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=Li(o),d=l.path(u,h),p=i.insert(()=>d,":first-child");return n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(y){return ur.polygon(t,o,y)},i}f(t5e,"aie");var Yxt=Y(()=>{"use strict";Er(),Tr(),br(),gr(),s(t5e,"choice")});async function xF(e,t,r){var m;let{labelStyles:i,nodeStyles:n}=pr(t);t.labelStyle=i;let{shapeSvg:a,bbox:o,halfPadding:l}=await Vr(e,t,zr(t)),h=16,u=(m=r==null?void 0:r.padding)!=null?m:l,d=t.look==="neo"?o.width/2+h*2:o.width/2+u,p,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=fr.svg(a),x=xr(t,{}),C=y.circle(0,0,d*2,x);p=a.insert(()=>C,":first-child"),p.attr("class","basic label-container").attr("style",is(g))}else p=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0);return kr(t,p),t.calcIntersect=function(y,x){let C=y.width/2;return ur.circle(y,C,x)},t.intersect=function(y){return ge.info("Circle intersect",t,d,y),ur.circle(t,d,y)},a}f(xF,"$4");var r5e=Y(()=>{"use strict";Tr(),jt(),wr(),Er(),br(),gr(),s(xF,"circle")});function i5e(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},l={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${l.x},${l.y} 494 M ${n.x},${n.y} L ${o.x},${o.y}`}f(i5e,"kqe");function n5e(e,t){var m,y;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r,t.label="";let n=e.insert("g").attr("class",zr(t)).attr("id",(m=t.domId)!=null?m:t.id),a=Math.max(30,(y=t==null?void 0:t.width)!=null?y:0),{cssStyles:o}=t,l=fr.svg(n),h=xr(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=l.circle(0,0,a*2,h),d=i5e(a),p=l.path(d,h),g=n.insert(()=>u,":first-child");return g.insert(()=>p),g.attr("class","outer-path"),o&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),kr(t,g),t.intersect=function(x){return ge.info("crossedCircle intersect",t,{radius:a,point:x}),ur.circle(t,a,x)},n}f(n5e,"oie");var Xxt=Y(()=>{"use strict";jt(),gr(),br(),Tr(),Er(),s(i5e,"createLine"),s(n5e,"crossedCircle")});function Yu(e,t,r,i=100,n=0,a=180){let o=[],l=n*Math.PI/180,h=(a*M
vendor: 4,180 bytes, line 494
494ath.PI/180-l)/(i-1);for(let u=0;u<i;u++){let d=l+u*h,p=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-p,y:-g})}return o}f(Yu,"hd");async function a5e(e,t){var v,k,E,A,I;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await Vr(e,t,zr(t)),l=t.look==="neo"?18:(v=t.padding)!=null?v:0,h=t.look==="neo"?12:(k=t.padding)!=null?k:0,u=a.width+l,d=a.height+h,p=Math.max(5,d*.1),{cssStyles:g}=t,m=[...Yu(u/2,-d/2,p,30,-90,0),{x:-u/2-p,y:p},...Yu(u/2+p*2,-p,p,20,-180,-270),...Yu(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:-d/2},...Yu(u/2,d/2,p,20,0,90)],y=[{x:u/2,y:-d/2-p},{x:-u/2,y:-d/2-p},...Yu(u/2,-d/2,p,20,-90,0),{x:-u/2-p,y:-p},...Yu(u/2+u*.1,-p,p,20,-180,-270),...Yu(u/2+u*.1,p,p,20,-90,-180),{x:-u/2-p,y:d/2},...Yu(u/2,d/2,p,20,0,90),{x:-u/2,y:d/2+p},{x:u/2,y:d/2+p}],x=fr.svg(n),C=xr(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=Li(m).replace("Z",""),_=x.path(w,C),S=Li(y),R=x.path(S,Tt({},C)),b=n.insert("g",":first-child");return b.insert(()=>R,":first-child").attr("stroke-opacity",0),b.insert(()=>_,":first-child"),b.attr("class","text"),g&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${p}, 0)`),o.attr("transform",`translate(${-u/2+p-(a.x-((E=a.left)!=null?E:0))},${-d/2+((A=t.padding)!=null?A:0)/2-(a.y-((I=a.top)!=null?I:0))})`),kr(t,b),t.intersect=function($){return ur.polygon(t,y,$)},n}f(a5e,"cie");var Kxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(Yu,"generateCirclePoints"),s(a5e,"curlyBraceLeft")});function Xu(e,t,r,i=100,n=0,a=180){let o=[],l=n*Math.PI/180,h=(a*Math.PI/180-l)/(i-1);for(let u=0;u<i;u++){let d=l+u*h,p=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:p,y:g})}return o}f(Xu,"dd");async function s5e(e,t){var v,k,E,A,I,$;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await Vr(e,t,zr(t)),l=t.look==="neo"?18:(v=t.padding)!=null?v:0,h=t.look==="neo"?12:(k=t.padding)!=null?k:0,u=a.width+(t.look==="neo"?l*2:l),d=a.height+(t.look==="neo"?h*2:h),p=Math.max(5,d*.1),{cssStyles:g}=t,m=[...Xu(u/2,-d/2,p,20,-90,0),{x:u/2+p,y:-p},...Xu(u/2+p*2,-p,p,20,-180,-270),...Xu(u/2+p*2,p,p,20,-90,-180),{x:u/2+p,y:d/2},...Xu(u/2,d/2,p,20,0,90)],y=[{x:-u/2,y:-d/2-p},{x:u/2,y:-d/2-p},...Xu(u/2,-d/2,p,20,-90,0),{x:u/2+p,y:-p},...Xu(u/2+p*2,-p,p,20,-180,-270),...Xu(u/2+p*2,p,p,20,-90,-180),{x:u/2+p,y:d/2},...Xu(u/2,d/2,p,20,0,90),{x:u/2,y:d/2+p},{x:-u/2,y:d/2+p}],x=fr.svg(n),C=xr(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=Li(m).replace("Z",""),_=x.path(w,C),S=Li(y),R=x.path(S,Tt({},C)),b=n.insert("g",":first-child");return b.insert(()=>R,":first-child").attr("stroke-opacity",0),b.insert(()=>_,":first-child"),b.attr("class","text"),g&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-p}, 0)`),o.attr("transform",`translate(${-u/2+((E=t.padding)!=null?E:0)/2-(a.x-((A=a.left)!=null?A:0))},${-d/2+((I=t.padding)!=null?I:0)/2-(a.y-(($=a.top)!=null?$:0))})`),kr(t,b),t.intersect=function(O){return ur.polygon(t,y,O)},n}f(s5e,"hie");var Zxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(Xu,"generateCirclePoints"),s(s5e,"curlyBraceRight")});function Ts(e,t,r,i=100,n=0,a=180){let o=[],l=n*Math.PI/180,h=(a*Math.PI/180-l)/(i-1);for(let u=0;u<i;u++){let d=l+u*h,p=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-p,y:-g})}return o}f(Ts,"Na");async function o5e(e,t){var A,I,$,O,j,D;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await Vr(e,t,zr(t)),l=t.look==="neo"?18:(A=t.padding)!=null?A:0,h=t.look==="neo"?12:(I=t.padding)!=null?I:0,u=a.width+(t.look==="neo"?l*2:l),d=a.height+(t.look==="neo"?h*2:h),p=Math.max(5,d*.1),{cssStyles:g}=t,m=[...Ts(u/2,-d/2,p,30,-90,0),{x:-u/2-p,y:p},...Ts(u/2+p*2,-p,p,20,-180,-270),...Ts(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:-d/2},...Ts(u/2,d/2,p,20,0,90)],y=[...Ts(-u/2+p+p/2,-d/2,p,20,-90,-180),{x:u/2-p/2,y:p},...Ts(-u/2-p/2,-p,p,20,0,90),...Ts(-u/2-p/2,p,p,20,-90,0),{x:u/2-p/2,y:-p},...Ts(-u/2+p+p/2,d/2,p,30,-180,-270)],x=[{x:u/2,y:-d/2-p},{x:-u/2,y:-d/2-p}
494,...Ts(u/2,-d/2,p,20,-90,0),{x:-u/2-p,y:-p},...Ts(u/2+p*2,-p,p,20,-180,-270),...Ts(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:d/2},...Ts(u/2,d/2,p,20,0,90),{x:-u/2,y:d/2+p},{x:u/2-p-p/2,y:d/2+p},...Ts(-u/2+p+p/2,-d/2,p,20,-90,-180),{x:u/2-p/2,y:p},...Ts(-u/2-p/2,-p,p,20,0,90),...Ts(-u/2-p/2,p,p,20,-90,0),{x:u/2-p/2,y:-p},...Ts(-u/2+p+p/2,d/2,p,30,-180,-270)],C=fr.svg(n),w=xr(t,{fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=Li(m).replace("Z",""),S=C.path(_,w),R=Li(y).replace("Z",""),b=C.path(R,w),v=Li(x),k=C.path(v,Tt({},w)),E=n.insert("g",":first-child");return E.insert(()=>k,":first-child").attr("stroke-opacity",0),E.insert(()=>S,":first-child"),E.insert(()=>b,":first-child"),E.attr("class","text"),g&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(${p-p/4}, 0)`),o.attr("transform",`translate(${-u/2+(($=t.padding)!=null?$:0)/2-(a.x-((O=a.left)!=null?O:0))},${-d/2+((j=t.padding)!=null?j:0)/2-(a.y-((D=a.top)!=null?D:0))})`),kr(t,E),t.intersect=function(P){return ur.polygon(t,x,P)},n}f(o5e,"fie");var Qxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(Ts,"generateCirclePoints"),s(o5e,"curlyBraces")});async function l5e(e,t){var A,I,$;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(A=t.padding)!=null?A:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=20,h=5,{shapeSvg:u,bbox:d}=await Vr(e,t,zr(t)),p=Math.max(l,(d.width+a*2)*1.25,(I=t==null?void 0:t.width)!=null?I:0),g=Math.max(h,d.height+o*2,($=t==null?void 0:t.height)!=null?$:0),m=g/2,{cssStyles:y}=t,x=fr.svg(u),C=xr(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=p,_=g,S=w-m,R=_/4,b=[{x:S,y:0},{x:R,y:0},{x:0,y:_/2},{x:R,y:_},{x:S,y:_},...R4(-S,-_/2,m,50,270,90)],v=Li(b),k=x.path(v,C),E=u.insert(()=>k,":first-child");return E.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",i),E.attr("transform",`translate(${-p/2}, ${-g/2})`),kr(t,E),t.intersect=function(O){return ur.polygon(t,b,O)},u}f(l5e,"mie");var Jxt=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(l5e,"curvedTrapezoid")});async function c5e(e,t){var C,w,_,S,R,b,v;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(C=t.padding)!=null?C:0,a=t.look==="neo"?24:n,o=t.look==="neo"?24:n;if(t.width||t.height){let k=(w=t.width)!=null?w:0;t.width=((_=t.width)!=null?_:0)-o,t.width<TF&&(t.width=TF);let E=k/2/(2.5+k/50);t.height=((S=t.height)!=null?S:0)-a-E*3,t.height<kF&&(t.height=kF)}let{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=(t.width?t.width:h.width)+o,p=d/2,g=p/(2.5+d/50),m=(t.height?t.height:h.height)+a+g,y,{cssStyles:x}=t;if(t.look==="handDrawn"){let k=fr.svg(l),E=u5e(0,0,d,m,p,g),A=d5e(0,g,d,m,p,g),I=xr(t,{}),$=k.path(E,I),O=k.path(A,xr(t,{fill:"none"}));y=l.insert(()=>O,":first-child"),y=l.insert(()=>$,":first-child"),y.attr("class","basic label-container"),x&&y.attr("style",x)}else{let k=h5e(0,0,d,m,p,g);y=l.insert("path",":first-child").attr("d",k).attr("class","basic label-container outer-path").attr("style",is(x)).attr("style",i)}return y.attr("label-offset-y",g),y.attr("transform",`translate(${-d/2}, ${-(m/2+g)})`),kr(t,y),u.attr("transform",`translate(${-(h.width/2)-(h.x-((R=h.left)!=null?R:0))}, ${-(h.height/2)+((b=t.padding)!=null?b:0)/1.5-(h.y-((v=h.top)!=null?v:0))})`),t.intersect=function(k){var I,$,O,j,D,P;let E=ur.rect(t,k),A=E.x-((I=t.x)!=null?I:0);if(p!=0&&(Math.abs(A)<(($=t.width)!=null?$:0)/2||Math.abs(A)==((O=t.width)!=null?O:0)/2&&Math.abs(E.y-((j=t.y)!=null?j:0))>((D=t.height)!=null?D:0)/2-g)){let F=g*g*(1-A*A/(p*p));F>0&&(F=Math.sqrt(F)),F=g-F,k.y-((P=t.y)!=null?P:0)>0&&(F=-F),E.y+=F}return E},l}f(c5e,"xie");var h5e,u5e,d5e,kF,TF,e4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),wr(),h5e=s((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),u5e=s((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),d5e=s((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),kF=8,TF=8,s(c5e,"cylinder")}),Ku,my=Y(()=>{"use strict";Ku=s((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD")});async function yy(e,t,r){let{labelStyles:i,nodeStyles:n}=pr(t);t.labelStyle=i;let{shapeSvg:a,bbox:o}=await Vr(e,t,zr(t)),l=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),h=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),u=-l/2,d=-h/2,p,{rx:g,ry:m}=t,{cssStyles:y}=t;if(r!=null&&r.rx&&r.ry&&(g=r.rx,m=r.ry),t.look==="handDrawn"){let x=fr.svg(a),C=xr(t,{}),w=g||m?x.path(Ku(u,d,l,h,g||0),C):x.rectangle(u,d,l,h,C);p=a.insert(()=>w,":first-child"),p.attr("class","basic label-container").attr("style",is(y))}else p=a.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",n).attr("rx",is(g)).attr("ry",is(m)).attr("x",u).attr("y",d).attr("width",l).attr("height",h);return kr(t,p),t.calcIntersect=function(x,C){return ur.rect(x,C)},t.intersect=function(x){return ur.rect(t,x)},a}f(yy,"Ml");var vy=Y(()=>{"use strict";gr(),Er(),my(),br(),Tr(),wr(),s(yy,"drawRect")});async function p5e(e,t){var m,y,x;
494let{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:a,width:o,height:l}=t,h={rx:0,ry:0,classes:r!=null?r:"",labelPaddingX:i!=null?i:(a!=null?a:0)*2,labelPaddingY:(m=n!=null?n:a)!=null?m:0},u=await yy(e,t,h);if(t.look==="handDrawn"){let C=fr.svg(u),w=xr(t,{}),_=u.select(".basic.label-container > path:nth-child(2)"),S=_.node();if(!S)return u;let R=null;if(S instanceof SVGGraphicsElement)R=S.getBBox();else return u;return u.insert(()=>C.line(R.x,R.y,R.x+R.width,R.y,w),".basic.label-container g.label"),u.insert(()=>C.line(R.x,R.y+R.height,R.x+R.width,R.y+R.height,w),".basic.label-container g.label"),_.remove(),u}let d=u.select(".basic.label-container"),p=(y=Number(d.attr("width"))||o)!=null?y:0,g=(x=Number(d.attr("height"))||l)!=null?x:0;return p>0&&g>0&&d.attr("stroke-dasharray",`${p} ${g}`),u}f(p5e,"Tie");var t4t=Y(()=>{"use strict";vy(),br(),Tr(),s(p5e,"datastore")});async function g5e(e,t){var R,b,v,k,E,A;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=t.look==="neo"?16:(R=t.padding)!=null?R:0,a=t.look==="neo"?16:(b=t.padding)!=null?b:0,{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=l.width+n,d=l.height+a,p=d*.2,g=-u/2,m=-d/2-p/2,{cssStyles:y}=t,x=fr.svg(o),C=xr(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=[{x:g,y:m+p},{x:-g,y:m+p},{x:-g,y:-m},{x:g,y:-m},{x:g,y:m},{x:-g,y:m},{x:-g,y:m+p}],_=x.polygon(w.map(I=>[I.x,I.y]),C),S=o.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),h.attr("transform",`translate(${g+((v=t.padding)!=null?v:0)/2-(l.x-((k=l.left)!=null?k:0))}, ${m+p+((E=t.padding)!=null?E:0)/2-(l.y-((A=l.top)!=null?A:0))})`),kr(t,S),t.intersect=function(I){return ur.rect(t,I)},o}f(g5e,"kie");var r4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(g5e,"dividedRectangle")});async function f5e(e,t){var m,y,x;let{labelStyles:r,nodeStyles:i}=pr(t),n=t.look==="neo"?12:5;t.labelStyle=r;let a=(m=t.padding)!=null?m:0,o=t.look==="neo"?16:a,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=(t!=null&&t.width?(t==null?void 0:t.width)/2:h.width/2)+(o!=null?o:0),d=u-n,p,{cssStyles:g}=t;if(t.look==="handDrawn"){let C=fr.svg(l),w=xr(t,{roughness:.2,strokeWidth:2.5}),_=xr(t,{roughness:.2,strokeWidth:1.5}),S=C.circle(0,0,u*2,w),R=C.circle(0,0,d*2,_);p=l.insert("g",":first-child"),p.attr("class",is(t.cssClasses)).attr("style",is(g)),(y=p.node())==null||y.appendChild(S),(x=p.node())==null||x.appendChild(R)}else{p=l.insert("g",":first-child");let C=p.insert("circle",":first-child"),w=p.insert("circle");p.attr("class","basic label-container").attr("style",i),C.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),w.attr("class","inner-circle").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0)}return kr(t,p),t.intersect=function(C){return ge.info("DoubleCircle intersect",t,u,C),ur.circle(t,u,C)},l}f(f5e,"Sie");var i4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),wr(),s(f5e,"doublecircle")});function m5e(e,t,{config:{themeVariables:r}}){var m;let{labelStyles:i,nodeStyles:n}=pr(t);t.label="",t.labelStyle=i;let a=e.insert("g").attr("class",zr(t)).attr("id",(m=t.domId)!=null?m:t.id),o=7,{cssStyles:l}=t,h=fr.svg(a),{nodeBorder:u}=r,d=xr(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);let p=h.circle(0,0,o*2,d),g=a.insert(()=>p,":first-child");return g.selectAll("path").attr("style",`fill: ${u} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",l),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),kr(t,g),t.intersect=function(y){return ge.info("filledCircle intersect",t,{radius:o,point:y}),ur.circle(t,o,y)},a}f(m5e,"Aie");var n4t=Y(()=>{"use strict";Tr(),jt(),Er(),br(),gr(),s(m5e,"filledCircle")});async function y5e(e,t){var S,R,b,v,k,E;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(S=t.padding)!=null?S:0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(R=t==null?void 0:t.height)!=null?R:0,t.height<wF&&(t.height=wF),t.width=((b=t==null?void 0:t.width)!=null?b:0)-a-a/2,t.width<CF&&(t.width=CF));let{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a!=null?a:0),d=t!=null&&t.height?t==null?void 0:t.height:u+l.height,p=d,g=[{x:0,y:-d},{x:p,y:-d},{x:p/2,y:0}],{cssStyles:m}=t,y=fr.svg(o),x=xr(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=Li(g),w=y.path(C,x),_=o.insert(()=>w,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),t.width=u,t.height=d,kr(t,_),h.attr("transform",`translate(${-l.width/2-(l.x-((v=l.left)!=null?v:0))}, ${-d/2+((k=t.padding)!=null?k:0)/2+(l.y-((E=l.top)!=null?E:0))})`),t.intersect=function(A){return ge.info("Triangle intersect",t,g,A),ur.polygon(t,g,A)},o}
494f(y5e,"Lie");var wF,CF,a4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),gr(),wF=10,CF=10,s(y5e,"flippedTriangle")});function v5e(e,t,{dir:r,config:{state:i,themeVariables:n}}){var w,_,S,R,b,v;let{nodeStyles:a}=pr(t);t.label="";let o=e.insert("g").attr("class",zr(t)).attr("id",(w=t.domId)!=null?w:t.id),{cssStyles:l}=t,h=Math.max(70,(_=t==null?void 0:t.width)!=null?_:0),u=Math.max(10,(S=t==null?void 0:t.height)!=null?S:0);r==="LR"&&(h=Math.max(10,(R=t==null?void 0:t.width)!=null?R:0),u=Math.max(70,(b=t==null?void 0:t.height)!=null?b:0));let d=-1*h/2,p=-1*u/2,g=fr.svg(o),m=xr(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let y=g.rectangle(d,p,h,u,m),x=o.insert(()=>y,":first-child");l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",a),kr(t,x);let C=(v=i==null?void 0:i.padding)!=null?v:0;return t.width&&t.height&&(t.width+=C/2||0,t.height+=C/2||0),t.intersect=function(k){return ur.rect(t,k)},o}f(v5e,"Nie");var s4t=Y(()=>{"use strict";Tr(),Er(),br(),gr(),s(v5e,"forkJoin")});async function b5e(e,t){var R,b,v,k;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=15,a=10,o=t.look==="neo"?16:(R=t.padding)!=null?R:0,l=t.look==="neo"?12:(b=t.padding)!=null?b:0;(t.width||t.height)&&(t.height=((v=t==null?void 0:t.height)!=null?v:0)-l*2,t.height<a&&(t.height=a),t.width=((k=t==null?void 0:t.width)!=null?k:0)-o*2,t.width<n&&(t.width=n));let{shapeSvg:h,bbox:u}=await Vr(e,t,zr(t)),d=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,u.width))+o*2,p=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,u.height))+l*2,g=p/2,{cssStyles:m}=t,y=fr.svg(h),x=xr(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:-d/2,y:-p/2},{x:d/2-g,y:-p/2},...R4(-d/2+g,0,g,50,90,270),{x:d/2-g,y:p/2},{x:-d/2,y:p/2}],w=Li(C),_=y.path(w,x),S=h.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),kr(t,S),t.intersect=function(E){return ge.info("Pill intersect",t,{radius:g,point:E}),ur.polygon(t,C,E)},h}f(b5e,"Oie");var o4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),s(b5e,"halfRoundedRectangle")});async function x5e(e,t){var _,S,R,b;let{labelStyles:r,nodeStyles:i}=pr(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;let a=(_=t.padding)!=null?_:0,o=70,l=32,h=t.look==="neo"?o:a,u=t.look==="neo"?l:a;if(t.width||t.height){let v=((S=t.height)!=null?S:0)/n;t.width=((R=t==null?void 0:t.width)!=null?R:0)-2*v-u,t.height=((b=t.height)!=null?b:0)-h}let{shapeSvg:d,bbox:p}=await Vr(e,t,zr(t)),g=(t!=null&&t.height?t==null?void 0:t.height:p.height)+h,m=g/n,y=(t!=null&&t.width?t==null?void 0:t.width:p.width)+2*m+u,x=[{x:m,y:0},{x:y-m,y:0},{x:y,y:-g/2},{x:y-m,y:-g},{x:m,y:-g},{x:0,y:-g/2}],C,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=fr.svg(d),k=xr(t,{}),E=k5e(0,0,y,g,m),A=v.path(E,k);C=d.insert(()=>A,":first-child").attr("transform",`translate(${-y/2}, ${g/2})`),w&&C.attr("style",w)}else C=Hu(d,y,g,x);return i&&C.attr("style",i),t.width=y,t.height=g,kr(t,C),t.intersect=function(v){return ur.polygon(t,x,v)},d}f(x5e,"Bie");var k5e,l4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),k5e=s((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD"),s(x5e,"hexagon")});async function T5e(e,t){var y,x;let{labelStyles:r,nodeStyles:i}=pr(t);t.label="",t.labelStyle=r;let{shapeSvg:n}=await Vr(e,t,zr(t)),a=Math.max(30,(y=t==null?void 0:t.width)!=null?y:0),o=Math.max(30,(x=t==null?void 0:t.height)!=null?x:0),{cssStyles:l}=t,h=fr.svg(n),u=xr(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let d=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],p=Li(d),g=h.path(p,u),m=n.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(${-a/2}, ${-o/2})`),kr(t,m),t.intersect=function(C){return ge.info("Pill intersect",t,{points:d}),ur.polygon(t,d,C)},n}f(T5e,"$ie");var c4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),s(T5e,"hourglass")});async function w5e(e,t,{config:{themeVariables:r,flowchart:i}}){var O,j,D,P;let{labelStyles:n}=pr(t);t.labelStyle=n;let a=(O=t.assetHeight)!=null?O:48,o=(j=t.assetWidth)!=null?j:48,l=Math.max(a,o),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h!=null?h:0);let{shapeSvg:u,bbox:d,label:p}=await Vr(e,t,"icon-shape default"),g=t.pos==="t",m=l,y=l,{nodeBorder:x}=r,{stylesMap:C}=Fg(t),w=-y/2,_=-m/2,S=t.label?8:0,R=fr.svg(u),b=xr(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let v=R.rectangle(w,_,y,m,b),k=Math.max(y,d.width),E=m+d.height+S,A=R.rectangle(-k/2,-E/2,k,E,_r(Tt({},b),{fill:"transparent",stroke:"none"})),I=u.insert(()=>v,":first-child"),$=u.insert(()=>A);if(t.icon){let F=u.append("g");F.html(`<g>${await Bu(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let U=F.node().getBBox(),z=U.width,V=U.height,W=U.x,X=U.y;F.attr("transform",`translate(${-z/2-W},${g?d.height/2+S/2-V/2-X:-d.height/2-S/2-V/2-X})`),F.attr("style",`color: ${(D=C.get("stroke"))!=null?D:x};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-((P=d.left)!=null?P:0))},${g?-E/2:E/2-d.height})`),I.attr("transform",`translate(0,${g?d.height/2+S/2:-d.height/2-S/2})`),kr(t,$),t.intersect=function(F){var X,J,H;if(ge.info("iconSquare intersect",t,F),!t.label)return ur.rect(t,F);let U=(X=t.x)!=null?X:0,z=(J=t.y)!=null?J:0,V=(H=t.height)!=null?H:0,W=[];return g?W=[{x:U-d.width/2,y:z-V/2},{x:U+d.width/2,y:z-V/2},{x:U+d.width/2,y:z-V/2+d.height+S},{x:U+y/2,y:z-V/2+d.height+S},{x:U+y/2,y:z+V/2},{x:U-y/2,y:z+V/2},{x:U-y/2,y:z-V/2+d.height+S},{x:U-d.width/2,y:z-V/2+d.height+S}]:W=[{x:U-y/2,y:z-V/2},{x:U+y/2,y:z-V/2},{x:U+y/2,y:z-V/2+m},{x:U+d.width/2,y:z-V/2+m},{x:U+d.width/2/2,y:z+V/2},{x:U-d.width/2,y:z+V/2},{x:U-d.width/2,y:z-V/2+m},{x:U-y/2,y:z-V/2+m}],ur.polygon(t,W,F)},u}f(w5e,"Gie");var h4t=Y(()=>{"use strict";Tr(),jt(),Pu(),Er(),br(),gr(),s(w5e,"icon")});async function C5e(e,t,{config:{themeVariables:r,flowchart:i}}){var z,V,W,X;let{labelStyles:n}=pr(t);t.labelStyle=n;let a=(z=t.assetHeight)!=null?z:48,o=(V=t.assetWidth)!=null?V:48,l=Math.max(a,o),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h!=null?h:0);let{shapeSvg:u,bbox:d,label:p}=await Vr(e,t,"icon-shape default"),g=20,m=t.label?8:0,y=t.pos==="t",{nodeBorder:x,mainBkg:C}=r,{stylesMap:w}=Fg(t),_=fr.svg(u),S=xr(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=w.get("fill");S.stroke=R!=null?R:C;let b=u.append("g");t.icon&&b.html(`<g>${await Bu(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let v=b.node().getBBox(),k=v.width,E=v.height,A=v.x,I=v.y,$=Math.max(k,E)*Math.SQRT2+g*2,O=_.cir
494cle(0,0,$,S),j=Math.max($,d.width),D=$+d.height+m,P=_.rectangle(-j/2,-D/2,j,D,_r(Tt({},S),{fill:"transparent",stroke:"none"})),F=u.insert(()=>O,":first-child"),U=u.insert(()=>P);return b.attr("transform",`translate(${-k/2-A},${y?d.height/2+m/2-E/2-I:-d.height/2-m/2-E/2-I})`),b.attr("style",`color: ${(W=w.get("stroke"))!=null?W:x};`),p.attr("transform",`translate(${-d.width/2-(d.x-((X=d.left)!=null?X:0))},${y?-D/2:D/2-d.height})`),F.attr("transform",`translate(0,${y?d.height/2+m/2:-d.height/2-m/2})`),kr(t,U),t.intersect=function(J){return ge.info("iconSquare intersect",t,J),ur.rect(t,J)},u}f(C5e,"Wie");var u4t=Y(()=>{"use strict";Tr(),jt(),Pu(),Er(),br(),gr(),s(C5e,"iconCircle")});async function E5e(e,t,{config:{themeVariables:r,flowchart:i}}){var P,F,U,z;let{labelStyles:n}=pr(t);t.labelStyle=n;let a=(P=t.assetHeight)!=null?P:48,o=(F=t.assetWidth)!=null?F:48,l=Math.max(a,o),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h!=null?h:0);let{shapeSvg:u,bbox:d,halfPadding:p,label:g}=await Vr(e,t,"icon-shape default"),m=t.pos==="t",y=l+p*2,x=l+p*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:_}=Fg(t),S=-x/2,R=-y/2,b=t.label?8:0,v=fr.svg(u),k=xr(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let E=_.get("fill");k.stroke=E!=null?E:w;let A=v.path(Ku(S,R,x,y,5),k),I=Math.max(x,d.width),$=y+d.height+b,O=v.rectangle(-I/2,-$/2,I,$,_r(Tt({},k),{fill:"transparent",stroke:"none"})),j=u.insert(()=>A,":first-child").attr("class","icon-shape2"),D=u.insert(()=>O);if(t.icon){let V=u.append("g");V.html(`<g>${await Bu(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let W=V.node().getBBox(),X=W.width,J=W.height,H=W.x,te=W.y;V.attr("transform",`translate(${-X/2-H},${m?d.height/2+b/2-J/2-te:-d.height/2-b/2-J/2-te})`),V.attr("style",`color: ${(U=_.get("stroke"))!=null?U:C};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-((z=d.left)!=null?z:0))},${m?-$/2:$/2-d.height})`),j.attr("transform",`translate(0,${m?d.height/2+b/2:-d.height/2-b/2})`),kr(t,D),t.intersect=function(V){var te,ie,oe;if(ge.info("iconSquare intersect",t,V),!t.label)return ur.rect(t,V);let W=(te=t.x)!=null?te:0,X=(ie=t.y)!=null?ie:0,J=(oe=t.height)!=null?oe:0,H=[];return m?H=[{x:W-d.width/2,y:X-J/2},{x:W+d.width/2,y:X-J/2},{x:W+d.width/2,y:X-J/2+d.height+b},{x:W+x/2,y:X-J/2+d.height+b},{x:W+x/2,y:X+J/2},{x:W-x/2,y:X+J/2},{x:W-x/2,y:X-J/2+d.height+b},{x:W-d.width/2,y:X-J/2+d.height+b}]:H=[{x:W-x/2,y:X-J/2},{x:W+x/2,y:X-J/2},{x:W+x/2,y:X-J/2+y},{x:W+d.width/2,y:X-J/2+y},{x:W+d.width/2/2,y:X+J/2},{x:W-d.width/2,y:X+J/2},{x:W-d.width/2,y:X-J/2+y},{x:W-x/2,y:X-J/2+y}],ur.polygon(t,H,V)},u}f(E5e,"Uie");var d4t=Y(()=>{"use strict";Tr(),jt(),Pu(),Er(),br(),my(),gr(),s(E5e,"iconRounded")});async function S5e(e,t,{config:{themeVariables:r,flowchart:i}}){var P,F,U,z;let{labelStyles:n}=pr(t);t.labelStyle=n;let a=(P=t.assetHeight)!=null?P:48,o=(F=t.assetWidth)!=null?F:48,l=Math.max(a,o),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h!=null?h:0);let{shapeSvg:u,bbox:d,halfPadding:p,label:g}=await Vr(e,t,"icon-shape default"),m=t.pos==="t",y=l+p*2,x=l+p*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:_}=Fg(t),S=-x/2,R=-y/2,b=t.label?8:0,v=fr.svg(u),k=xr(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let E=_.get("fill");k.stroke=E!=null?E:w;let A=v.path(Ku(S,R,x,y,.1),k),I=Math.max(x,d.width),$=y+d.height+b,O=v.rectangle(-I/2,-$/2,I,$,_r(Tt({},k),{fill:"transparent",stroke:"none"})),j=u.insert(()=>A,":first-child"),D=u.insert(()=>O);if(t.icon){let V=u.append("g");V.html(`<g>${await Bu(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let W=V.node().getBBox(),X=W.width,J=W.height,H=W.x,te=W.y;V.attr("transform",`translate(${-X/2-H},${m?d.height/2+b/2-J/2-te:-d.height/2-b/2-J/2-te})`),V.attr("style",`color: ${(U=_.get("stroke"))!=null?U:C};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-((z=d.left)!=null?z:0))},${m?-$/2:$/2-d.height})`),j.attr("transform",`translate(0,${m?d.height/2+b/2:-d.height/2-b/2})`),kr(t,D),t.intersect=function(V){var te,ie,oe;if(ge.info("iconSquare intersect",t,V),!t.label)return ur.rect(t,V);
494let W=(te=t.x)!=null?te:0,X=(ie=t.y)!=null?ie:0,J=(oe=t.height)!=null?oe:0,H=[];return m?H=[{x:W-d.width/2,y:X-J/2},{x:W+d.width/2,y:X-J/2},{x:W+d.width/2,y:X-J/2+d.height+b},{x:W+x/2,y:X-J/2+d.height+b},{x:W+x/2,y:X+J/2},{x:W-x/2,y:X+J/2},{x:W-x/2,y:X-J/2+d.height+b},{x:W-d.width/2,y:X-J/2+d.height+b}]:H=[{x:W-x/2,y:X-J/2},{x:W+x/2,y:X-J/2},{x:W+x/2,y:X-J/2+y},{x:W+d.width/2,y:X-J/2+y},{x:W+d.width/2/2,y:X+J/2},{x:W-d.width/2,y:X+J/2},{x:W-d.width/2,y:X-J/2+y},{x:W-x/2,y:X-J/2+y}],ur.polygon(t,H,V)},u}f(S5e,"Yie");var p4t=Y(()=>{"use strict";Tr(),jt(),Pu(),Er(),my(),br(),gr(),s(S5e,"iconSquare")});async function _5e(e,t,{config:{flowchart:r}}){var I,$,O,j;let i=new Image;i.src=(I=t==null?void 0:t.img)!=null?I:"",await i.decode();let n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;let{labelStyles:o}=pr(t);t.labelStyle=o;let l=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;let h=Math.max(t.label&&l!=null?l:0,($=t==null?void 0:t.assetWidth)!=null?$:n),u=t.constraint==="on"&&(t!=null&&t.assetHeight)?t.assetHeight*t.imageAspectRatio:h,d=t.constraint==="on"?u/t.imageAspectRatio:(O=t==null?void 0:t.assetHeight)!=null?O:a;t.width=Math.max(u,l!=null?l:0);let{shapeSvg:p,bbox:g,label:m}=await Vr(e,t,"image-shape default"),y=t.pos==="t",x=-u/2,C=-d/2,w=t.label?8:0,_=fr.svg(p),S=xr(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=_.rectangle(x,C,u,d,S),b=Math.max(u,g.width),v=d+g.height+w,k=_.rectangle(-b/2,-v/2,b,v,_r(Tt({},S),{fill:"none",stroke:"none"})),E=p.insert(()=>R,":first-child"),A=p.insert(()=>k);if(t.img){let D=p.append("image");D.attr("href",t.img),D.attr("width",u),D.attr("height",d),D.attr("preserveAspectRatio","none"),D.attr("transform",`translate(${-u/2},${y?v/2-d:-v/2})`)}return m.attr("transform",`translate(${-g.width/2-(g.x-((j=g.left)!=null?j:0))},${y?-d/2-g.height/2-w/2:d/2-g.height/2+w/2})`),E.attr("transform",`translate(0,${y?g.height/2+w/2:-g.height/2-w/2})`),kr(t,A),t.intersect=function(D){var V,W,X;if(ge.info("iconSquare intersect",t,D),!t.label)return ur.rect(t,D);let P=(V=t.x)!=null?V:0,F=(W=t.y)!=null?W:0,U=(X=t.height)!=null?X:0,z=[];return y?z=[{x:P-g.width/2,y:F-U/2},{x:P+g.width/2,y:F-U/2},{x:P+g.width/2,y:F-U/2+g.height+w},{x:P+u/2,y:F-U/2+g.height+w},{x:P+u/2,y:F+U/2},{x:P-u/2,y:F+U/2},{x:P-u/2,y:F-U/2+g.height+w},{x:P-g.width/2,y:F-U/2+g.height+w}]:z=[{x:P-u/2,y:F-U/2},{x:P+u/2,y:F-U/2},{x:P+u/2,y:F-U/2+d},{x:P+g.width/2,y:F-U/2+d},{x:P+g.width/2/2,y:F+U/2},{x:P-g.width/2,y:F+U/2},{x:P-g.width/2,y:F-U/2+d},{x:P-u/2,y:F-U/2+d}],ur.polygon(t,z,D)},p}f(_5e,"Xie");var g4t=Y(()=>{"use strict";Tr(),jt(),Er(),br(),gr(),s(_5e,"imageSquare")});async function A5e(e,t){var y,x,C;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(y=t.padding)!=null?y:0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=Math.max(h.width+(o!=null?o:0)*2,(x=t==null?void 0:t.width)!=null?x:0),d=Math.max(h.height+(a!=null?a:0)*2,(C=t==null?void 0:t.height)!=null?C:0),p=[{x:0,y:0},{x:u,y:0},{x:u+3*d/6,y:-d},{x:-3*d/6,y:-d}],g,{cssStyles:m}=t;if(t.look==="handDrawn"){let w=fr.svg(l),_=xr(t,{}),S=Li(p),R=w.path(S,_);g=l.insert(()=>R,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),m&&g.attr("style",m)}else g=Hu(l,u,d,p);return i&&g.attr("style",i),t.width=u,t.height=d,kr(t,g),t.intersect=function(w){return ur.polygon(t,p,w)},l}f(A5e,"Zie");var f4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),s(A5e,"inv_trapezoid")});async function L5e(e,t){var o,l;let{shapeSvg:r,bbox:i,label:n}=await Vr(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-((o=i.left)!=null?o:0))}, ${-(i.height/2)-(i.y-((l=i.top)!=null?l:0))})`),kr(t,a),t.intersect=function(h){return ur.rect(t,h)},r}f(L5e,"Jie");var m4t=Y(()=>{"use strict";vy(),gr(),Er(),s(L5e,"labelRect")});async function R5e(e,t){var y,x,C;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(y=t.padding)!=null?y:0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=((x=t==null?void 0:t.height)!=null?x:h.height)+a,d=((C=t==null?void 0:t.width)!=null?C:h.width)+o,p=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}],g,{cssStyles:m}=t;if(t.look==="handDrawn"){let w=fr.svg(l),_=xr(t,{}),S=Li(p),R=w.path(S,_);g=l.insert(()=>R,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),m&&g.attr("style",m)}else g=Hu(l,d,u,p);return i&&g.attr("style",i),t.width=d,t.height=u,kr(t,g),t.intersect=function(w){return ur.polygon(t,p,w)},l}f(R5e,"tne");var y4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),s(R5e,"lean_left")});async function I5e(e,t){var y,x,C;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(y=t.padding)!=null?y:0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=((x=t==null?void 0:t.height)!=null?x:h.height)+a,d=((C=t==null?void 0:t.width)!=null?C:h.width)+o,p=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}],g,{cssStyles:m}=t;if(t.look==="handDrawn"){let w=fr.svg(l),_=xr(t,{}),S=Li(p),R=w.path(S,_);g=l.insert(()=>R,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),m&&g.attr("style",m)}else g=Hu(l,d,u,p);return i&&g.attr("style",i),t.width=d,t.height=u,kr(t,g),t.intersect=function(w){return ur.polygon(t,p,w)},l}f(I5e,"ine");var v4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),s(I5e,"lean_right")});function D5e(e,t){var x,C,w;let{labelStyles:r,nodeStyles:i}=pr(t);t.label="",t.labelStyle=r;let n=e.insert("g").attr("class",zr(t)).attr("id",(x=t.domId)!=null?x:t.id),{cssStyles:a}=t,o=Math.max(35,(C=t==null?void 0:t.width)!=null?C:0),l=Math.max(35,(w=t==null?void 0:t.height)!=null?w:0),h=7,u=[{x:o,y:0},{x:0,y:l+h/2},{x:o-2*h,y:l+h/2},{x:0,y:2*l},{x:o,y:l-h/2},{x:2*h,y:l-h/2}],d=fr.svg(n),p=xr(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let g=Li(u),m=d.path(g,p),y=n.insert(()=>m,":first-child");return y.attr("class","outer-path"),a&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${o/2},${-l})`),kr(t,y),t.intersect=function(_){return ge.info("lightningBolt intersect",t,_),ur.polygon(t,u,_)},n}f(D5e,"ane");var b4t=Y(()=>{"use strict";jt(),gr(),br(),Tr(),Er(),gr(),s(D5e,"lightningBolt")});async function N5e(e,t){var w,_,S,R,b,v;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(w=t.padding)!=null?w:0,a=t.look==="neo"?16:n,o=t.look==="neo"?24:n;if(t.width||t.height){let k=(_=t.width)!=null?_:0;t.width=((S=t.width)!=null?S:0)-a,t.width<SF&&(t.width=SF);let E=k/2/(2.5+k/50);t.height=((R=t.height)!=null?R:0)-o-E*3,t.height<EF&&(t.height=EF)}let{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,p=d/2,g=p/(2.5+d/50),m=(t!=null&&t.height?t==null?void 0:t.height:h.height)+g+o*2,y=m*.1,x,{cssStyles:C}=t;if(t.look==="handDrawn"){let k=fr.svg(l),E=O5e(0,0,d,m,p,g,y),A=$5e(0,g,d,m,p,g),I=xr(t,{}),$=k.path(E,I),O=k.path(A,I);l.insert(()=>O,":first-child").attr("class","line"),x=l.insert(()=>$,":first-child"),x.attr("class","basic label-container"),C&&x.attr("style",C)}else{let k=M5e(0,0,d,m,p,g,y);x=l.insert("path",":first-child").attr("d",k).attr("class","basic label-container outer-path").attr("style",is(C)).attr("style",i)}return x.attr("label-offset-y",g),x.attr("transform",`translate(${-d/2}, ${-(m/2+g)})`),kr(t,x),u.attr("transform",`translate(${-(h.width/2)-(h.x-((b=h.left)!=null?b:0))}, ${-(h.height/2)+g-(h.y-((v=h.top)!=null?v:0))})`),t.intersect=function(k){var I,$,O,j,D,P;let E=ur.rect(t,k),A=E.x-((I=t.x)!=null?I:0);if(p!=0&&(Math.abs(A)<(($=t.width)!=null?$:0)/2||Math.abs(A)==((O=t.width)!=null?O:0)/2&&Math.abs(E.y-((j=t.y)!=null?j:0))>((D=t.height)!=null?D:0)/2-g)){let F=g*g*(1-A*A/(p*p));F>0&&(F=Math.sqrt(F)),F=g-F,k.y-((P=t.y)!=null?P:0)>0&&(F=-F),E.y+=F}return E},l}f(N5e,"cne");var M5e,O5e,$5e,EF,SF,x4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),wr(),M5e=s((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),O5e=s((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),$5e=s((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),EF=10,SF=10,s(N5e,"linedCylinder")});async function B5e(e,t){var R,b,v,k,E,A;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(R=t.padding)!=null?R:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;if(t.width||t.height){let I=t.width;t.width=(I!=null?I:0)*10/11-a*2,t.width<10&&(t.width=10),t.height=((b=t==null?void 0:t.height)!=null?b:0)-o
494*2,t.height<10&&(t.height=10)}let{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(a!=null?a:0)*2,p=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(o!=null?o:0)*2,g=t.look==="neo"?p/4:p/8,m=p+g,{cssStyles:y}=t,x=fr.svg(l),C=xr(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...vp(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,g,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],_=x.polygon(w.map(I=>[I.x,I.y]),C),S=l.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-g/2})`),u.attr("transform",`translate(${-d/2+((v=t.padding)!=null?v:0)+d/2*.1/2-(h.x-((k=h.left)!=null?k:0))},${-p/2+((E=t.padding)!=null?E:0)-g/2-(h.y-((A=h.top)!=null?A:0))})`),kr(t,S),t.intersect=function(I){return ur.polygon(t,w,I)},l}f(B5e,"hne");var k4t=Y(()=>{"use strict";gr(),Er(),Tr(),br(),s(B5e,"linedWaveEdgedRect")});async function P5e(e,t){var $,O,j,D,P;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=($=t.padding)!=null?$:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((O=t==null?void 0:t.width)!=null?O:0)-a*2-2*l,10),t.height=Math.max(((j=t==null?void 0:t.height)!=null?j:0)-o*2-2*l,10));let{shapeSvg:h,bbox:u,label:d}=await Vr(e,t,zr(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+a*2+2*l,g=(t!=null&&t.height?t==null?void 0:t.height:u.height)+o*2+2*l,m=p-2*l,y=g-2*l,x=-m/2,C=-y/2,{cssStyles:w}=t,_=fr.svg(h),S=xr(t,{}),R=[{x:x-l,y:C+l},{x:x-l,y:C+y+l},{x:x+m-l,y:C+y+l},{x:x+m-l,y:C+y},{x:x+m,y:C+y},{x:x+m,y:C+y-l},{x:x+m+l,y:C+y-l},{x:x+m+l,y:C-l},{x:x+l,y:C-l},{x:x+l,y:C},{x,y:C},{x,y:C+l}],b=[{x,y:C+l},{x:x+m-l,y:C+l},{x:x+m-l,y:C+y},{x:x+m,y:C+y},{x:x+m,y:C},{x,y:C}];t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let v=Li(R),k=_.path(v,S),E=Li(b),A=_.path(E,S);t.look!=="handDrawn"&&(k=rF(k),A=rF(A));let I=h.insert("g",":first-child");return I.insert(()=>k),I.insert(()=>A),I.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",w),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),d.attr("transform",`translate(${-(u.width/2)-l-(u.x-((D=u.left)!=null?D:0))}, ${-(u.height/2)+l-(u.y-((P=u.top)!=null?P:0))})`),kr(t,I),t.intersect=function(F){return ur.polygon(t,R,F)},h}f(P5e,"fne");var T4t=Y(()=>{"use strict";gr(),br(),Tr(),Er(),s(P5e,"multiRect")});async function F5e(e,t){var D,P,F,U,z,V,W;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await Vr(e,t,zr(t)),l=(D=t.padding)!=null?D:0,h=t.look==="neo"?16:l,u=t.look==="neo"?12:l,d=!0;(t.width||t.height)&&(d=!1,t.width=((P=t==null?void 0:t.width)!=null?P:0)-h*2,t.height=((F=t==null?void 0:t.height)!=null?F:0)-u*3);let p=Math.max(a.width,(U=t==null?void 0:t.width)!=null?U:0)+h*2,g=Math.max(a.height,(z=t==null?void 0:t.height)!=null?z:0)+u*3,m=t.look==="neo"?g/4:g/8,y=g+(d?m/2:-m/2),x=-p/2,C=-y/2,w=10,{cssStyles:_}=t,S=vp(x-w,C+y+w,x+p-w,C+y+w,m,.8),R=S==null?void 0:S[S.length-1],b=[{x:x-w,y:C+w},{x:x-w,y:C+y+w},...S,{x:x+p-w,y:R.y-w},{x:x+p,y:R.y-w},{x:x+p,y:R.y-2*w},{x:x+p+w,y:R.y-2*w},{x:x+p+w,y:C-w},{x:x+w,y:C-w},{x:x+w,y:C},{x,y:C},{x,y:C+w}],v=[{x,y:C+w},{x:x+p-w,y:C+w},{x:x+p-w,y:R.y-w},{x:x+p,y:R.y-w},{x:x+p,y:C},{x,y:C}],k=fr.svg(n),E=xr(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");let A=Li(b),I=k.path(A,E),$=Li(v),O=k.path($,E),j=n.insert(()=>I,":first-child");return j.insert(()=>O),j.attr("class","basic label-container outer-path"),_&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",_),i&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(0,${-m/2})`),o.attr("transform",`translate(${-(a.width/2)-w-(a.x-((V=a.left)!=null?V:0))}, ${-(a.height/2)+w-m/2-(a.y-((W=a.top)!=null?W:0))})`),kr(t,j),t.intersect=function(X){return ur.polygon(t,b,X)},n}f(F5e,"mne");var w4t=Y(()=>{"use strict";gr(),Er(),Tr(),br(),s(F5e,"multiWaveEdgedRectangle")});async function z5e(e,t,{config:{themeVariables:r}}){var w,_,S,R,b,v;let{labelStyles:i,nodeStyles:n}=pr(t);t.labelStyle=i,t.useHtmlLabels||Vi(Ir())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:l}=await Vr(e,t,zr(t)),h=Math.max(o.width+((w=t.padding)!=null?w:0)*2,(_=t==null?void 0:t.width)!=null?_:0),u=Math.max(o.height+((S=t.padding)!=null?S:0)
vendor: 4,246 bytes, line 494
494*2,(R=t==null?void 0:t.height)!=null?R:0),d=-h/2,p=-u/2,{cssStyles:g}=t,m=fr.svg(a),y=xr(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let x=m.rectangle(d,p,h,u,y),C=a.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),g&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),l.attr("transform",`translate(${-o.width/2-(o.x-((b=o.left)!=null?b:0))}, ${-(o.height/2)-(o.y-((v=o.top)!=null?v:0))})`),kr(t,C),t.intersect=function(k){return ur.rect(t,k)},a}f(z5e,"yne");var C4t=Y(()=>{"use strict";Tr(),Er(),br(),gr(),ti(),ti(),s(z5e,"note")});async function q5e(e,t){var m,y;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a}=await Vr(e,t,zr(t)),o=a.width+((m=t.padding)!=null?m:0),l=a.height+((y=t.padding)!=null?y:0),h=o+l,u=.5,d=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],p,{cssStyles:g}=t;if(t.look==="handDrawn"){let x=fr.svg(n),C=xr(t,{}),w=j5e(0,0,h),_=x.path(w,C);p=n.insert(()=>_,":first-child").attr("transform",`translate(${-h/2+u}, ${h/2})`),g&&p.attr("style",g)}else p=Hu(n,h,h,d),p.attr("transform",`translate(${-h/2+u}, ${h/2})`);return i&&p.attr("style",i),kr(t,p),t.calcIntersect=function(x,C){let w=x.width,_=[{x:w/2,y:0},{x:w,y:-w/2},{x:w/2,y:-w},{x:0,y:-w/2}],S=ur.polygon(x,_,C);return{x:S.x-.5,y:S.y-.5}},t.intersect=function(x){return this.calcIntersect(t,x)},n}f(q5e,"xne");var j5e,E4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),j5e=s((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD"),s(q5e,"question")});async function G5e(e,t){var v,k,E,A,I;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(v=t.padding)!=null?v:0,a=t.look==="neo"?21:n!=null?n:0,o=t.look==="neo"?12:n!=null?n:0,{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=((k=t==null?void 0:t.width)!=null?k:h.width)+(t.look==="neo"?a*2:a),p=((E=t==null?void 0:t.height)!=null?E:h.height)+(t.look==="neo"?o*2:o),g=-d/2,m=-p/2,y=m/2,x=[{x:g+y,y:m},{x:g,y:0},{x:g+y,y:-m},{x:-g,y:-m},{x:-g,y:m}],{cssStyles:C}=t,w=fr.svg(l),_=xr(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let S=Li(x),R=w.path(S,_),b=l.insert(()=>R,":first-child");return b.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-y/2},0)`),u.attr("transform",`translate(${-y/2-h.width/2-(h.x-((A=h.left)!=null?A:0))}, ${-(h.height/2)-(h.y-((I=h.top)!=null?I:0))})`),kr(t,b),t.intersect=function($){return ur.polygon(t,x,$)},l}f(G5e,"Tne");var S4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(G5e,"rect_left_inv_arrow")}),U5e,Zu,_F=Y(()=>{"use strict";ti(),vr(),nl(),U5e=s(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);let o=Ue(),l=Vi(o);return await qs(e,a,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Zu=U5e});async function V5e(e,t){let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";let a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",i),h=t.description,u=t.label,d=await Zu(l,u,t.labelStyle,!0,!0),p={width:0,height:0};if(Vi(Ue())){let E=d.children[0],A=Lt(d);p=E.getBoundingClientRect(),A.attr("width",p.width),A.attr("height",p.height)}ge.info("Text 2",h);let g=h||[],m=d.getBBox(),y=await Zu(l,Array.isArray(g)?g.join("<br/>"):g,t.labelStyle,!0,!0),x=y.children[0],C=Lt(y);p=x.getBoundingClientRect(),C.attr("width",p.width),C.attr("height",p.height);let w=(t.padding||0)/2;Lt(y).attr("transform","translate( "+(p.width>m.width?0:(m.width-p.width)/2)+", "+(m.height+w+5)+")"),Lt(d).attr("transform","translate( "+(p.width<m.width?0:-(m.width-p.width)/2)+", 0)"),p=l.node().getBBox(),l.attr("transform","translate("+-p.width/2+", "+(-p.height/2-w+3)+")");let _=p.width+(t.padding||0),S=p.height+(t.padding||0),R=-p.width/2-w,b=-p.height/2-w,v,k;if(t.look==="handDrawn"){let E=fr.svg(a),A=xr(t,{}
494),I=E.path(Ku(R,b,_,S,t.rx||0),A),$=E.line(-p.width/2-w,-p.height/2-w+m.height+w,p.width/2+w,-p.height/2-w+m.height+w,A);k=a.insert(()=>(ge.debug("Rough node insert CXC",I),$),":first-child"),v=a.insert(()=>(ge.debug("Rough node insert CXC",I),I),":first-child")}else v=o.insert("rect",":first-child"),k=o.insert("line"),v.attr("class","outer title-state").attr("style",i).attr("x",-p.width/2-w).attr("y",-p.height/2-w).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),k.attr("class","divider").attr("x1",-p.width/2-w).attr("x2",p.width/2+w).attr("y1",-p.height/2-w+m.height+w).attr("y2",-p.height/2-w+m.height+w);return kr(t,v),t.intersect=function(E){return ur.rect(t,E)},a}f(V5e,"kne");var _4t=Y(()=>{"use strict";ui(),gr(),_F(),Er(),br(),Tr(),vr(),my(),jt(),ti(),s(V5e,"rectWithTitle")});async function W5e(e,t,{config:{themeVariables:r}}){var a,o,l;let i=(a=r==null?void 0:r.radius)!=null?a:5,n={rx:i,ry:i,classes:"",labelPaddingX:((o=t==null?void 0:t.padding)!=null?o:0)*1,labelPaddingY:((l=t==null?void 0:t.padding)!=null?l:0)*1};return yy(e,t,n)}f(W5e,"Sne");var A4t=Y(()=>{"use strict";vy(),s(W5e,"roundedRect")});async function H5e(e,t){var b,v,k,E,A,I;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=t.look==="neo"?16:(b=t.padding)!=null?b:0,a=t.look==="neo"?12:(v=t.padding)!=null?v:0,{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=((k=t==null?void 0:t.width)!=null?k:l.width)+n*2+(t.look==="neo"?kp:kp*2),d=((E=t==null?void 0:t.height)!=null?E:l.height)+a*2,p=u-kp,g=d,m=kp-u/2,y=-d/2,{cssStyles:x}=t,C=fr.svg(o),w=xr(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=[{x:m,y},{x:m+p,y},{x:m+p,y:y+g},{x:m-kp,y:y+g},{x:m-kp,y},{x:m,y},{x:m,y:y+g}],S=C.polygon(_.map($=>[$.x,$.y]),w),R=o.insert(()=>S,":first-child");return R.attr("class","basic label-container outer-path").attr("style",is(x)),i&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",i),x&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",i),h.attr("transform",`translate(${kp/2-l.width/2-(l.x-((A=l.left)!=null?A:0))}, ${-(l.height/2)-(l.y-((I=l.top)!=null?I:0))})`),kr(t,R),t.intersect=function($){return ur.rect(t,$)},o}f(H5e,"Ane");var kp,L4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),wr(),kp=8,s(H5e,"shadedProcess")});async function Y5e(e,t){var k,E,A,I,$,O,j;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(k=t.padding)!=null?k:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((E=t==null?void 0:t.width)!=null?E:0)-a*2,10),t.height=Math.max(((A=t==null?void 0:t.height)!=null?A:0)/1.5-o*2,10));let{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,p=((t!=null&&t.height?t==null?void 0:t.height:h.height)+o*2)*1.5,g=d,m=p/1.5,y=-g/2,x=-m/2,{cssStyles:C}=t,w=fr.svg(l),_=xr(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let S=[{x:y,y:x},{x:y,y:x+m},{x:y+g,y:x+m},{x:y+g,y:x-m/2}],R=Li(S),b=w.path(R,_),v=l.insert(()=>b,":first-child");return v.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",C),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(0, ${m/4})`),u.attr("transform",`translate(${-g/2+((I=t.padding)!=null?I:0)-(h.x-(($=h.left)!=null?$:0))}, ${-m/4+((O=t.padding)!=null?O:0)-(h.y-((j=h.top)!=null?j:0))})`),kr(t,v),t.intersect=function(D){return ur.polygon(t,S,D)},l}f(Y5e,"Dne");var R4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(Y5e,"slopedRect")});async function X5e(e,t){var o,l;let r=(o=t.padding)!=null?o:0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,a={rx:0,ry:0,classes:"",labelPaddingX:(l=t.labelPaddingX)!=null?l:i,labelPaddingY:n};return yy(e,t,a)}f(X5e,"Lne");var I4t=Y(()=>{"use strict";vy(),s(X5e,"squareRect")});async function K5e(e,t){var S;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(S=t.padding)!=null?S:0,a=t.look==="neo"?20:n,o=t.look==="neo"?12:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=h.height+(t.look==="neo"?o*2:o),d=h.width+u/4+(t.look==="neo"?a*2:a),p=u/2,{cssStyles:g}=t,m=fr.svg(l),y=xr(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let x=[{x:-d/2+p,y:-u/2},{x:d/2-p,y:-u/2}
494,...R4(-d/2+p,0,p,50,90,270),{x:d/2-p,y:u/2},...R4(d/2-p,0,p,50,270,450)],C=Li(x),w=m.path(C,y),_=l.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),kr(t,_),t.intersect=function(R){return ur.polygon(t,x,R)},l}f(K5e,"Nne");var D4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(K5e,"stadium")});async function Z5e(e,t){let r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return yy(e,t,r)}f(Z5e,"One");var N4t=Y(()=>{"use strict";vy(),s(Z5e,"state")});function Q5e(e,t,{config:{themeVariables:r}}){var _,S,R,b,v,k,E;let{labelStyles:i,nodeStyles:n}=pr(t);t.labelStyle=i;let{cssStyles:a}=t,{lineColor:o,stateBorder:l,nodeBorder:h,nodeShadow:u}=r;(t.width||t.height)&&(((_=t.width)!=null?_:0)<14&&(t.width=14),((S=t.height)!=null?S:0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let d=e.insert("g").attr("class","node default").attr("id",(R=t.domId)!=null?R:t.id),p=fr.svg(d),g=xr(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let m=p.circle(0,0,t.width,_r(Tt({},g),{stroke:o,strokeWidth:2})),y=l!=null?l:h,x=((b=t.width)!=null?b:0)*5/14,C=p.circle(0,0,x,_r(Tt({},g),{fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"})),w=d.insert(()=>m,":first-child");if(w.insert(()=>C),t.look!=="handDrawn"&&w.attr("class","outer-path"),a&&w.selectAll("path").attr("style",a),n&&w.selectAll("path").attr("style",n),t.width<25&&u&&t.look!=="handDrawn"){let A=(E=(k=(v=e.node())==null?void 0:v.ownerSVGElement)==null?void 0:k.id)!=null?E:"",I=A?`${A}-drop-shadow-small`:"drop-shadow-small";w.attr("style",`filter:url(#${I})`)}return kr(t,w),t.intersect=function(A){var I;return ur.circle(t,((I=t.width)!=null?I:0)/2,A)},d}f(Q5e,"Bne");var M4t=Y(()=>{"use strict";Tr(),Er(),br(),gr(),s(Q5e,"stateEnd")});function J5e(e,t,{config:{themeVariables:r}}){var l,h,u,d,p,g,m,y,x,C,w;let{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&(((l=t.width)!=null?l:0)<14&&(t.width=14),((h=t.height)!=null?h:0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),o;if(t.look==="handDrawn"){let _=fr.svg(a).circle(0,0,t.width,DTe(i));o=a.insert(()=>_),o.attr("class","state-start").attr("r",((u=t.width)!=null?u:7)/2).attr("width",(d=t.width)!=null?d:14).attr("height",(p=t.height)!=null?p:14)}else o=a.insert("circle",":first-child"),o.attr("class","state-start").attr("r",((g=t.width)!=null?g:7)/2).attr("width",(m=t.width)!=null?m:14).attr("height",(y=t.height)!=null?y:14);if(t.width<25&&n&&t.look!=="handDrawn"){let _=(w=(C=(x=e.node())==null?void 0:x.ownerSVGElement)==null?void 0:C.id)!=null?w:"",S=_?`${_}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${S})`)}return kr(t,o),t.intersect=function(_){var S;return ur.circle(t,((S=t.width)!=null?S:7)/2,_)},a}f(J5e,"$ne");var O4t=Y(()=>{"use strict";Tr(),Er(),br(),gr(),s(J5e,"stateStart")});async function ewe(e,t){var C,w,_;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(C=t==null?void 0:t.padding)!=null?C:8,a=t.look==="neo"?28:n,o=t.look==="neo"?12:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=((w=t==null?void 0:t.width)!=null?w:h.width)+2*qg+a,d=((_=t==null?void 0:t.height)!=null?_:h.height)+o,p=u-2*qg,g=d,m=-u/2,y=-d/2,x=[{x:0,y:0},{x:p,y:0},{x:p,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if(t.look==="handDrawn"){let S=fr.svg(l),R=xr(t,{}),b=S.rectangle(m,y,p+16,g,R),v=S.line(m+qg,y,m+qg,y+g,R),k=S.line(m+qg+p,y,m+qg+p,y+g,R);l.insert(()=>v,":first-child"),l.insert(()=>k,":first-child");let E=l.insert(()=>b,":first-child"),{cssStyles:A}=t;E.attr("class","basic label-container").attr("style",is(A)),kr(t,E)}else{let S=Hu(l,p,g,x);i&&S.attr("style",i),kr(t,S)}return t.intersect=function(S){return ur.polygon(t,x,S)},l}f(ewe,"Gne");var qg,$4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),wr(),qg=8,s(ewe,"subroutine")});async function twe(e,t){var I,$,O;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(I=t.padding)!=null?I:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max((($=t==null?void 0:t.height)!=null?$:0)-o*2,10),t.width=Math.max(((O=t==null?void 0:t.width)!=null?O:0)-a*2-OS*(t.height+o*2),10));let{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=(t!=null&&t.height?t==null?void 0:t.height:h.height)+o*2,d=OS*u,p=OS*u,g=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2+d-d,m=u,y=-g/2,x=-m/2,{cssStyles:C}=t,w=fr.svg(l),_=xr(t,{}),S=[{x:y-d/2,y:x},{x:y+g+d/2,y:x},{x:y+g+d/2,y:x+m},{x:y-d/2,y:x+m}],R=[{x:y+g-d/2,y:x+m},{x:y+g+d/2,y:x+m},{x:y+g+d/2,y:x+m-p}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let b=Li(S),v=w.path(b,_),k=Li(R),E=w.path(k,_r(Tt({},_),{fillStyle:"solid"})),A=l.insert(()=>E,":first-child");return A.insert(()=>v,":first-child"),A.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),kr(t,A),t.intersect=function(j){return ur.polygon(t,S,j)},l}f(twe,"Wne");var OS,B4t=Y(()=>{"use strict";gr(),br(),Tr(),Er(),OS=.2,s(twe,"taggedRect")});async function rwe(e,t){var A,I,$,O,j,D,P,F;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await Vr(e,t,zr(t)),l=Math.max(a.width+((A=t.padding)!=null?A:0)*2,(I=t==null?void 0:t.width)!=null?I:0),h=Math.max(a.height+(($=t.padding)!=null?$:0)*2,(O=t==null?void 0:t.height)!=null?O:0),u=h/8,d=.2*l,p=.2*h,g=h+u,{cssStyles:m}=t,y=fr.svg(n),x=xr(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:-l/2-l/2*.1,y:g/2},...vp(-l/2-l/2*.1,g/2,l/2+l/2*.1,g/2,u,.8),{x:l/2+l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:-g/2}],w=-l/2+l/2*.1,_=-g/2-p*.4,S=[{x:w+l-d,y:(_+h)*1.3},{x:w+l,y:_+h-p},{x:w+l,y:(_+h)*.9},...vp(w+l,(_+h)*1.25,w+l-d,(_+h)*1.3,-h*.02,.5)],R=Li(C),b=y.path(R,x),v=Li(S),k=y.path(v,_r(Tt({},x),{fillStyle:"solid"})),E=n.insert(()=>k,":first-child");return E.insert(()=>b,":first-child"),E.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-l/2+((j=t.padding)!=null?j:0)-(a.x-((D=a.left)!=null?D:0))},${-h/2+((P=t.padding)!=null?P:0)-u/2-(a.y-((F=a.top)!=null?F:0))})`),kr(t,E),t.intersect=function(U){return ur.polygon(t,C,U)},n}f(rwe,"Une");var P4t=Y(()=>{"use strict";gr(),Er(),Tr(),br(),s(rwe,"taggedWaveEdgedRectangle")});async function iwe(e,t){var p,g;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a}=await Vr(e,t,zr(t)),o=Math.max(a.width+((p=t.padding)!=null?p:0),(t==null?void 0:t.width)||0),l=Math.max(a.height+((g=t.padding)!=null?g:0),(t==null?void 0:t.height)||0),h=-o/2,u=-l/2,d=n.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",u).attr("width",o).attr("height",l),kr(t,d),t.intersect=function(m){return ur.rect(t,m)},n}f(iwe,"Yne");var F4t=Y(()=>{"use strict";gr(),Er(),br(),s(iwe,"text")});async function nwe(e,t){var x,C,w,_,S,R;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(x=t.padding)!=null?x:0,a=t.look==="neo"?12:n/2;if(t.width||t.height){let b=(C=t.height)!=null?C:0;
494t.height=((w=t.height)!=null?w:0)-a,t.height<AF&&(t.height=AF);let v=b/2/(2.5+b/50);t.width=((_=t.width)!=null?_:0)-a-v*3,t.width<LF&&(t.width=LF)}let{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=(t.height?t.height:l.height)+a,d=u/2,p=d/(2.5+u/50),g=(t.width?t.width:l.width)+p+a,{cssStyles:m}=t,y;if(t.look==="handDrawn"){let b=fr.svg(o),v=swe(0,0,g,u,p,d),k=owe(0,0,g,u,p,d),E=b.path(v,xr(t,{})),A=b.path(k,xr(t,{fill:"none"}));y=o.insert(()=>A,":first-child"),y=o.insert(()=>E,":first-child"),y.attr("class","basic label-container"),m&&y.attr("style",m)}else{let b=awe(0,0,g,u,p,d);y=o.insert("path",":first-child").attr("d",b).attr("class","basic label-container").attr("style",is(m)).attr("style",i),y.attr("class","basic label-container outer-path"),m&&y.selectAll("path").attr("style",m),i&&y.selectAll("path").attr("style",i)}return y.attr("label-offset-x",p),y.attr("transform",`translate(${-g/2}, ${u/2} )`),h.attr("transform",`translate(${-(l.width/2)-p-(l.x-((S=l.left)!=null?S:0))}, ${-(l.height/2)-(l.y-((R=l.top)!=null?R:0))})`),kr(t,y),t.intersect=function(b){var E,A,I,$,O,j;let v=ur.rect(t,b),k=v.y-((E=t.y)!=null?E:0);if(d!=0&&(Math.abs(k)<((A=t.height)!=null?A:0)/2||Math.abs(k)==((I=t.height)!=null?I:0)/2&&Math.abs(v.x-(($=t.x)!=null?$:0))>((O=t.width)!=null?O:0)/2-p)){let D=p*p*(1-k*k/(d*d));D!=0&&(D=Math.sqrt(Math.abs(D))),D=p-D,b.x-((j=t.x)!=null?j:0)>0&&(D=-D),v.x+=D}return v},o}f(nwe,"Zne");var awe,swe,owe,AF,LF,z4t=Y(()=>{"use strict";gr(),br(),Tr(),Er(),wr(),awe=s((e,t,r,i,n,a)=>`M${e},${t} 495 a${n},${a} 0,0,1 0,${-i} 496 l${r},0 497 a${n},${a} 0,0,1 0,${i} 498 M${r},${-i} 499 a${n},${a} 0,0,0 0,${i} 500 l${-r},0`,"createCylinderPathD"),swe=s((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),owe=s((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),AF=5,LF=10,s(nwe,"tiltedCylinder")});async function lwe(e,t){var y,x,C;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(y=t.padding)!=null?y:0,a=(t.look,n),o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=((x=t==null?void 0:t.height)!=null?x:h.height)+a,d=((C=t==null?void 0:t.width)!=null?C:h.width)+o,p=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}],g,{cssStyles:m}=t;if(t.look==="handDrawn"){let w=fr.svg(l),_=xr(t,{}),S=Li(p),R=w.path(S,_);g=l.insert(()=>R,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),m&&g.attr("style",m)}else g=Hu(l,d,u,p);return i&&g.attr("style",i),t.width=d,t.height=u,kr(t,g),t.intersect=function(w){return ur.polygon(t,p,w)},l}f(lwe,"Jne");var q4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),xp(),s(lwe,"trapezoid")});async function cwe(e,t){var R,b,v;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(R=t.padding)!=null?R:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=15,h=5;(t.width||t.height)&&(t.height=((b=t.height)!=null?b:0)-o*2,t.height<h&&(t.height=h),t.width=((v=t.width)!=null?v:0)-a*2,t.width<l&&(t.width=l));let{shapeSvg:u,bbox:d}=await Vr(e,t,zr(t)),p=(t!=null&&t.width?t==null?void 0:t.width:d.width)+a*2,g=(t!=null&&t.height?t==null?void 0:t.height:d.height)+o*2,{cssStyles:m}=t,y=fr.svg(u),x=xr(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:-p/2*.8,y:-g/2},{x:p/2*.8,y:-g/2},{x:p/2,y:-g/2*.6},{x:p/2,y:g/2},{x:-p/2,y:g/2},{x:-p/2,y:-g/2*.6}],w=Li(C),_=y.path(w,x),S=u.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),kr(t,S),t.intersect=function(k){return ur.polygon(t,C,k)},u}f(cwe,"tae");var j4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(cwe,"trapezoidalPentagon")});async function hwe(e,t){var R,b,v,k,E,A,I;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(R=t.padding)!=null?R:0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((b=t==null?void 0:t.width)!=null?b:0)-a)/2,t.width<IF&&(t.width=IF),t.height=(v=t==null?void 0:t.height)!=null?v:0,t.height<RF&&(t.height=RF));let{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=hh((k=Ue().flowchart)==null?void 0:k.htmlLabels),d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a,p=t!=null&&t.height?t==null?void 0:t.height:d+l.height,g=p,m=[{x:0,y:0},{x:g,y:0},{x:g/2,y:-p}],{cssStyles:y}=t,x=fr.svg(o),C=xr(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=Li(m),_=x.path(w,C),S=o.insert(()=>_,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),t.width=d,t.height=p,kr(t,S),h.attr("transform",`translate(${-l.width/2-(l.x-((E=l.left)!=null?E:0))}, ${p/2-(l.height+((A=t.padding)!=null?A:0)/(u?2:1)-(l.y-((I=l.top)!=null?I:0)))})`),t.intersect=function($){return ge.info("Triangle intersect",t,m,$),ur.polygon(t,m,$)},o}f(hwe,"aae");var RF,IF,G4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),gr(),gi(),vr(),RF=10,IF=10,s(hwe,"triangle")});async function uwe(e,t){var E,A,I,$,O,j,D;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(E=t.padding)!=null?E:0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=!0;(t.width||t.height)&&(l=!1,t.width=((A=t==null?void 0:t.width)!=null?A:0)-a*2,t.width<10&&(t.width=10),t.height=((I=t==null?void 0:t.height)!=null?I:0)-o*2,t.he
500ight<10&&(t.height=10));let{shapeSvg:h,bbox:u,label:d}=await Vr(e,t,zr(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+(a!=null?a:0)*2,g=(t!=null&&t.height?t==null?void 0:t.height:u.height)+(o!=null?o:0)*2,m=t.look==="neo"?g/4:g/8,y=g+(l?m:-m),{cssStyles:x}=t,C=14-p,w=C>0?C/2:0,_=fr.svg(h),S=xr(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=[{x:-p/2-w,y:y/2},...vp(-p/2-w,y/2,p/2+w,y/2,m,.8),{x:p/2+w,y:-y/2},{x:-p/2-w,y:-y/2}],b=Li(R),v=_.path(b,S),k=h.insert(()=>v,":first-child");return k.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-m/2})`),d.attr("transform",`translate(${-p/2+(($=t.padding)!=null?$:0)-(u.x-((O=u.left)!=null?O:0))},${-g/2+((j=t.padding)!=null?j:0)-m-(u.y-((D=u.top)!=null?D:0))})`),kr(t,k),t.intersect=function(P){return ur.polygon(t,R,P)},h}f(uwe,"oae");var U4t=Y(()=>{"use strict";gr(),Er(),Tr(),br(),s(uwe,"waveEdgedRectangle")});async function dwe(e,t){var R,b,v;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=(R=t.padding)!=null?R:0,a=t.look==="neo"?16:n,o=t.look==="neo"?20:n;if(t.width||t.height){t.width=(b=t==null?void 0:t.width)!=null?b:0,t.width<20&&(t.width=20),t.height=(v=t==null?void 0:t.height)!=null?v:0,t.height<10&&(t.height=10);let k=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-k*(20/9)),t.width=t.width-a*2}let{shapeSvg:l,bbox:h}=await Vr(e,t,zr(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,d=(t!=null&&t.height?t==null?void 0:t.height:h.height)+o,p=d/8,g=d+p*2,{cssStyles:m}=t,y=fr.svg(l),x=xr(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:-u/2,y:g/2},...vp(-u/2,g/2,u/2,g/2,p,1),{x:u/2,y:-g/2},...vp(u/2,-g/2,-u/2,-g/2,p,-1)],w=Li(C),_=y.path(w,x),S=l.insert(()=>_,":first-child");return S.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),kr(t,S),t.intersect=function(k){return ur.polygon(t,C,k)},l}f(dwe,"cae");var V4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),s(dwe,"waveRectangle")});async function pwe(e,t){var v,k,E,A,I,$;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=t.look==="neo"?16:(v=t.padding)!=null?v:0,a=t.look==="neo"?12:(k=t.padding)!=null?k:0;(t.width||t.height)&&(t.width=Math.max(((E=t==null?void 0:t.width)!=null?E:0)-n*2-ea,10),t.height=Math.max(((A=t==null?void 0:t.height)!=null?A:0)-a*2-ea,10));let{shapeSvg:o,bbox:l,label:h}=await Vr(e,t,zr(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+n*2+ea,d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+a*2+ea,p=u-ea,g=d-ea,m=-p/2,y=-g/2,{cssStyles:x}=t,C=fr.svg(o),w=xr(t,{}),_=[{x:m-ea,y:y-ea},{x:m-ea,y:y+g},{x:m+p,y:y+g},{x:m+p,y:y-ea}],S=`M${m-ea},${y-ea} L${m+p},${y-ea} L${m+p},${y+g} L${m-ea},${y+g} L${m-ea},${y-ea} 501 M${m-ea},${y} L${m+p},${y} 502 M${m},${y-ea} L${m},${y+g}`;t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let R=C.path(S,w),b=o.insert(()=>R,":first-child");return b.attr("transform",`translate(${ea/2}, ${ea/2})`),b.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(l.width/2)+ea/2-(l.x-((I=l.left)!=null?I:0))}, ${-(l.height/2)+ea/2-(l.y-(($=l.top)!=null?$:0))})`),kr(t,b),t.intersect=function(O){return ur.polygon(t,_,O)},o}f(pwe,"hae");var ea,W4t=Y(()=>{"use strict";gr(),br(),Tr(),Er(),ea=10,s(pwe,"windowPane")});async function DF(e,t){var oe,he,pe,se,le,ue,de,we,De,Ge;let r=t;r.alias&&(t.label=r.alias);let{theme:i,themeVariables:n}=Ir(),{rowEven:a,rowOdd:o,nodeBorder:l,borderColorArray:h}=n;if(t.look==="handDrawn"){let{themeVariables:be}=Ir(),{background:qe}=be,Ie=_r(Tt({},t),{id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${qe}`]});await DF(e,Ie)}let u=Ir();t.useHtmlLabels=u.htmlLabels;let d=(he=(oe=u.er)==null?void 0:oe.diagramPadding)!=null?he:10,p=(se=(pe=u.er)==null?void 0:pe.entityPadding)!=null?se:6,{cssStyles:g}=t,{labelStyles:m,nodeStyles:y}=pr(t);if(r.attributes.length===0&&t.label){let be={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:""};ao(t.label,u)+be.labelPaddingX*2<u.er.minEntityWidth&&(t.width=u.er.minEntityWidth);let qe=await yy(e,t,be);if(i!=null&&NF.has(i)){let Ie=(le=r.colorIndex)!=null?le:0;qe.attr("data-color-id",`color-${Ie%h.length}`)}
502if(!hh(u.htmlLabels)){let Ie=qe.select("text"),Be=(ue=Ie.node())==null?void 0:ue.getBBox();Ie.attr("transform",`translate(${-Be.width/2}, 0)`)}return qe}u.htmlLabels||(d*=1.25,p*=1.25);let x=zr(t);x||(x="node default");let C=e.insert("g").attr("class",x).attr("id",t.domId||t.id),w=await by(C,(de=t.label)!=null?de:"",u,0,0,["name"],m);w.height+=p;let _=0,S=[],R=[],b=0,v=0,k=0,E=0,A=!0,I=!0;for(let be of r.attributes){let qe=await by(C,be.type,u,0,_,["attribute-type"],m);b=Math.max(b,qe.width+d);let Ie=await by(C,be.name,u,0,_,["attribute-name"],m);v=Math.max(v,Ie.width+d);let Be=await by(C,be.keys.join(),u,0,_,["attribute-keys"],m);k=Math.max(k,Be.width+d);let ke=await by(C,be.comment,u,0,_,["attribute-comment"],m);E=Math.max(E,ke.width+d);let Qe=Math.max(qe.height,Ie.height,Be.height,ke.height)+p;R.push({yOffset:_,rowHeight:Qe}),_+=Qe}let $=4;k<=d&&(A=!1,k=0,$--),E<=d&&(I=!1,E=0,$--);let O=C.node().getBBox();if(w.width+d*2-(b+v+k+E)>0){let be=w.width+d*2-(b+v+k+E);b+=be/$,v+=be/$,k>0&&(k+=be/$),E>0&&(E+=be/$)}let j=b+v+k+E,D=fr.svg(C),P=xr(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let F=0;R.length>0&&(F=R.reduce((be,qe)=>{var Ie;return be+((Ie=qe==null?void 0:qe.rowHeight)!=null?Ie:0)},0));let U=Math.max(O.width+d*2,(t==null?void 0:t.width)||0,j),z=Math.max((F!=null?F:0)+w.height,(t==null?void 0:t.height)||0),V=-U/2,W=-z/2;if(C.selectAll("g:not(:first-child)").each((be,qe,Ie)=>{let Be=Lt(Ie[qe]),ke=Be.attr("transform"),Qe=0,Pe=0;if(ke){let ht=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ke);ht&&(Qe=parseFloat(ht[1]),Pe=parseFloat(ht[2]),Be.attr("class").includes("attribute-name")?Qe+=b:Be.attr("class").includes("attribute-keys")?Qe+=b+v:Be.attr("class").includes("attribute-comment")&&(Qe+=b+v+k))}Be.attr("transform",`translate(${V+d/2+Qe}, ${Pe+W+w.height+p/2})`)}),C.select(".name").attr("transform","translate("+-w.width/2+", "+(W+p/2)+")"),i!=null&&NF.has(i)){let be=(we=r.colorIndex)!=null?we:0;C.attr("data-color-id",`color-${be%h.length}`)}let X=D.rectangle(V,W,U,z,P),J=C.insert(()=>X,":first-child").attr("class","outer-path").attr("style",g.join(""));S.push(0);for(let[be,qe]of R.entries()){let Ie=(be+1)%2===0&&qe.yOffset!==0,Be=D.rectangle(V,w.height+W+(qe==null?void 0:qe.yOffset),U,qe==null?void 0:qe.rowHeight,_r(Tt({},P),{fill:Ie?a:o,stroke:l}));C.insert(()=>Be,"g.label").attr("style",g.join("")).attr("class",`row-rect-${Ie?"even":"odd"}`)}let H=1e-4,te=xy(V,w.height+W,U+V,w.height+W,H),ie=D.polygon(te.map(be=>[be.x,be.y]),P);if(C.insert(()=>ie).attr("class","divider"),te=xy(b+V,w.height+W,b+V,z+W,H),ie=D.polygon(te.map(be=>[be.x,be.y]),P),C.insert(()=>ie).attr("class","divider"),A){let be=b+v+V;te=xy(be,w.height+W,be,z+W,H),ie=D.polygon(te.map(qe=>[qe.x,qe.y]),P),C.insert(()=>ie).attr("class","divider")}if(I){let be=b+v+k+V;te=xy(be,w.height+W,be,z+W,H),ie=D.polygon(te.map(qe=>[qe.x,qe.y]),P),C.insert(()=>ie).attr("class","divider")}for(let be of S){let qe=w.height+W+be;te=xy(V,qe,U+V,qe,H),ie=D.polygon(te.map(Ie=>[Ie.x,Ie.y]),P),C.insert(()=>ie).attr("class","divider")}if(kr(t,J),y&&t.look!=="handDrawn")if(i!=null&&gwe.has(i))C.selectAll("path").attr("style",y);else{let be=(Ge=(De=y.split(";"))==null?void 0:De.filter(qe=>qe.includes("stroke")))==null?void 0:Ge.map(qe=>`${qe}`).join("; ");C.selectAll("path").attr("style",be!=null?be:""),C.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(be){return ur.rect(t,be)},C}f(DF,"MN");async function by(e,t,r,i=0,n=0,a=[],o=""){let l=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==$u(t)&&(t=$u(t),t=t.replaceAll("<","<").replaceAll(">",">"));let h=l.node().appendChild(await qs(l,t,{width:ao(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=h.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let u=h.getBBox();if(hh(r.htmlLabels)){let d=h.children[0];d.style.textAlign="start";let p=Lt(h);u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height)}return u}f(by,"eb");function xy(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}f(xy,"tb");var NF,gwe,H4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),vy(),ti(),nl(),gi(),ui(),wr(),NF=new Set(["redux-color","redux-dark-color"]),gwe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),s(DF,"erBo
502x"),s(by,"addText"),s(xy,"lineToPolygon")});async function fwe(e,t,r,i,n=(a=>(a=r.class.padding)!=null?a:12)()){let o=i?0:3,l=e.insert("g").attr("class",zr(t)).attr("id",t.domId||t.id),h=null,u=null,d=null,p=null,g=0,m=0,y=0;if(h=l.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let S=t.annotations[0];await j4(h,{text:`\xAB${S}\xBB`},0),g=h.node().getBBox().height}u=l.insert("g").attr("class","label-group text"),await j4(u,t,0,["font-weight: bolder"]);let x=u.node().getBBox();m=x.height,d=l.insert("g").attr("class","members-group text");let C=0;for(let S of t.members){let R=await j4(d,S,C,[S.parseClassifier()]);C+=R+o}y=d.node().getBBox().height,y<=0&&(y=n/2),p=l.insert("g").attr("class","methods-group text");let w=0;for(let S of t.methods){let R=await j4(p,S,w,[S.parseClassifier()]);w+=R+o}let _=l.node().getBBox();if(h!==null){let S=h.node().getBBox();h.attr("transform",`translate(${-S.width/2})`)}return u.attr("transform",`translate(${-x.width/2}, ${g})`),_=l.node().getBBox(),d.attr("transform",`translate(0, ${g+m+n*2})`),_=l.node().getBBox(),p.attr("transform",`translate(0, ${g+m+(y?y+n*4:n*2)})`),_=l.node().getBBox(),{shapeSvg:l,bbox:_}}f(fwe,"mae");async function j4(e,t,r,i=[]){var p;let n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Ir(),o="useHtmlLabels"in t?t.useHtmlLabels:(p=hh(a.htmlLabels))!=null?p:!0,l="";"text"in t?l=t.text:l=t.label,!o&&l.startsWith("\\")&&(l=l.substring(1)),ha(l)&&(o=!0);let h=await qs(n,m6(Sh(l)),{width:ao(l,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a),u,d=1;if(o){let g=h.children[0],m=Lt(h);d=g.innerHTML.split("<br>").length,g.innerHTML.includes("</math>")&&(d+=g.innerHTML.split("<mrow>").length-1);let y=g.getElementsByTagName("img");if(y){let x=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(C=>new Promise(w=>{function _(){var S,R;if(C.style.display="flex",C.style.flexDirection="column",x){let b=(R=(S=a.fontSize)==null?void 0:S.toString())!=null?R:window.getComputedStyle(document.body).fontSize,v=parseInt(b,10)*5+"px";C.style.minWidth=v,C.style.maxWidth=v}else C.style.width="100%";w(C)}f(_,"x"),s(_,"setupImage"),setTimeout(()=>{C.complete&&_()}),C.addEventListener("error",_),C.addEventListener("load",_)})))}u=g.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}else{i.includes("font-weight: bolder")&&Lt(h).selectAll("tspan").attr("font-weight",""),d=h.children.length;let g=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(g.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(g.textContent=g.textContent[0]+" "+g.textContent.substring(1))),g.textContent==="undefined"&&(g.textContent=""),u=h.getBBox()}return n.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}f(j4,"G4");var Y4t=Y(()=>{"use strict";ui(),ti(),gr(),wr(),vr(),nl(),gi(),s(fwe,"textHelper"),s(j4,"addText")});async function mwe(e,t){var D,P,F,U,z,V,W,X,J,H,te;let r=Ue(),{themeVariables:i}=r,{useGradient:n}=i,a=(D=r.class.padding)!=null?D:12,o=a,l=(F=(P=t.useHtmlLabels)!=null?P:hh(r.htmlLabels))!=null?F:!0,h=t;h.annotations=(U=h.annotations)!=null?U:[],h.members=(z=h.members)!=null?z:[],h.methods=(V=h.methods)!=null?V:[];let{shapeSvg:u,bbox:d}=await fwe(e,t,r,l,o),{labelStyles:p,nodeStyles:g}=pr(t);t.labelStyle=p,t.cssStyles=h.styles||"";let m=((W=h.styles)==null?void 0:W.join(";"))||g||"";t.cssStyles||(t.cssStyles=m.replaceAll("!important","").split(";"));let y=h.members.length===0&&h.methods.length===0&&!((X=r.class)!=null&&X.hideEmptyMembersBox),x=fr.svg(u),C=xr(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let w=Math.max((J=t.width)!=null?J:0,d.width),_=Math.max((H=t.height)!=null?H:0,d.height),S=((te=t.height)!=null?te:0)>d.height;h.members.length===0&&h.methods.length===0?_+=o:h.members.length>0&&h.methods.length===0&&(_+=o*2);let R=-w/2,b=-_/2,v=y?a*2:h.members.length===0&&h.methods.length===0?-a:0;S&&(v=a*2);let k=x.rectangle(R-a,b-a-(y?a:h.members.length===0&&h.methods.length===0?-a/2:0),w+2*a,_+2*a+v,C),E=u.insert(()=>k,":first-child");E.attr("class","basic label-container outer-path");let A=E.node().getBBox(),I=u.select(".annotation-group").node().getBBox().height-(y?a/2:0)||0,$=u.select(".label-group").node().getBBox().height-(y?a/2:0)||0,O=u.select(".members-group").node().getBBox().height-(y?a/2:0)||0,j=(I+$+b+a-(b-a-(y?a:h.members.length===0&&h.methods.length===0?-a
vendor: 8,940 bytes, lines 502-534
502/2:0)))/2;if(u.selectAll(".text").each((ie,oe,he)=>{var we,De;let pe=Lt(he[oe]),se=pe.attr("transform"),le=0;if(se){let Ge=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(se);Ge&&(le=parseFloat(Ge[2]))}let ue=le+b+a-(y?a:h.members.length===0&&h.methods.length===0?-a/2:0);if(pe.attr("class").includes("methods-group")){let Ge=Math.max(O,o/2);S?ue=Math.max(j,I+$+Ge+b+o*2+a)+o*2:ue=I+$+Ge+b+o*4+a}h.members.length===0&&h.methods.length===0&&((we=r.class)!=null&&we.hideEmptyMembersBox)&&(h.annotations.length>0?ue=le-o:ue=le),l||(ue-=4);let de=R;(pe.attr("class").includes("label-group")||pe.attr("class").includes("annotation-group"))&&(de=-((De=pe.node())==null?void 0:De.getBBox().width)/2||0,u.selectAll("text").each(function(Ge,be,qe){window.getComputedStyle(qe[be]).textAnchor==="middle"&&(de=0)})),pe.attr("transform",`translate(${de}, ${ue})`)}),h.members.length>0||h.methods.length>0||y){let ie=I+$+b+a,oe=x.line(A.x,ie,A.x+A.width,ie+.001,C);u.insert(()=>oe).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",m)}if(y||h.members.length>0||h.methods.length>0){let ie=I+$+O+b+o*2+a,oe=x.line(A.x,S?Math.max(j,ie):ie,A.x+A.width,(S?Math.max(j,ie):ie)+.001,C);u.insert(()=>oe).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",m)}if(h.look!=="handDrawn"&&u.selectAll("path").attr("style",m),E.select(":nth-child(2)").attr("style",m),u.selectAll(".divider").select("path").attr("style",m),t.labelStyle?u.selectAll("span").attr("style",t.labelStyle):u.selectAll("span").attr("style",m),!l){let ie=RegExp(/color\s*:\s*([^;]*)/),oe=ie.exec(m);if(oe){let he=oe[0].replace("color","fill");u.selectAll("tspan").attr("style",he)}else if(p){let he=ie.exec(p);if(he){let pe=he[0].replace("color","fill");u.selectAll("tspan").attr("style",pe)}}}return kr(t,E),t.intersect=function(ie){return ur.rect(t,ie)},u}f(mwe,"yae");var X4t=Y(()=>{"use strict";gr(),vr(),ui(),Tr(),br(),Er(),Y4t(),gi(),s(mwe,"classBox")});async function ywe(e,t){var A,I,$,O,j,D;let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let n=t,a=t,o=20,l=20,h="verifyMethod"in t,u=zr(t),{themeVariables:d}=Ue(),{borderColorArray:p,requirementEdgeLabelBackground:g}=d,m=e.insert("g").attr("class",u).attr("id",(A=t.domId)!=null?A:t.id),y;h?y=await Rh(m,`<<${n.type}>>`,0,t.labelStyle):y=await Rh(m,"<<Element>>",0,t.labelStyle);let x=y,C=await Rh(m,n.name,x,t.labelStyle+"; font-weight: bold;");if(x+=C+l,h){let P=await Rh(m,`${n.requirementId?`ID: ${n.requirementId}`:""}`,x,t.labelStyle);x+=P;let F=await Rh(m,`${n.text?`Text: ${n.text}`:""}`,x,t.labelStyle);x+=F;let U=await Rh(m,`${n.risk?`Risk: ${n.risk}`:""}`,x,t.labelStyle);x+=U,await Rh(m,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,x,t.labelStyle)}else{let P=await Rh(m,`${a.type?`Type: ${a.type}`:""}`,x,t.labelStyle);x+=P,await Rh(m,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,x,t.labelStyle)}let w=(($=(I=m.node())==null?void 0:I.getBBox().width)!=null?$:200)+o,_=((j=(O=m.node())==null?void 0:O.getBBox().height)!=null?j:200)+o,S=-w/2,R=-_/2,b=fr.svg(m),v=xr(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let k=b.rectangle(S,R,w,_,v),E=m.insert(()=>k,":first-child");if(E.attr("class","basic label-container outer-path").attr("style",i),p==null?void 0:p.length){let P=(D=t.colorIndex)!=null?D:0;m.attr("data-color-id",`color-${P%p.length}`)}if(m.selectAll(".label").each((P,F,U)=>{let z=Lt(U[F]),V=z.attr("transform"),W=0,X=0;if(V){let te=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(V);te&&(W=parseFloat(te[1]),X=parseFloat(te[2]))}let J=X-_/2,H=S+o/2;(F===0||F===1)&&(H=W),z.attr("transform",`translate(${H}, ${J+o})`)}),x>y+C+l){let P=R+y+C+l,F;if(t.look==="neo"){let U=[[S,P],[S+w,P],[S+w,P+.001],[S,P+.001]];F=b.polygon(U,v)}else F=b.line(S,P,S+w,P,v);m.insert(()=>F).attr("class","divider")}return kr(t,E),t.intersect=function(P){return ur.rect(t,P)},i&&t.look!=="handDrawn"&&(g||p!=null&&p.length)&&m.selectAll("path").attr("style",i),m}f(ywe,"xae");async function Rh(e,t,r,i=""){var u;if(t==="")return 0;let n=e.insert("g").attr("class","label").attr("style",i),a=Ue(),o=(u=a.htmlLabels)!=null?u:!0,l=await qs(n,m6(Sh(t)),{width:ao(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a),h;if(o){let d=l.children[0],p=Lt(l);h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{let d=l.children[0];for(let p of d.children)i&&p.setAttribute("style",i);h=l.getBBox(),h.height+=6}return n.attr("transform",`translate(${-h.width/2},${-h.height/2+r})`),h.height}f(Rh,"$u");var K4t=Y(()=>{"use strict";gr(),Er(),br(),Tr(),wr(),vr(),nl(),ui(),s(ywe,"requirementBox"),s(Rh,"addText")});async function vwe(e,t,{config:r}){var O,j,D;let{labelStyles:i,nodeStyles:n}=pr(t);t.labelStyle=i||"";let a=10,o=t.width;t.width=((O=t.width)!=null?O:200)-10;let{shapeSvg:l,bbox:h,label:u}=await Vr(e,t,zr(t)),d=t.padding||10,p="",g;"ticket"in t&&t.ticket&&((j=r==null?void 0:r.kanban)!=null&&j.ticketBaseUrl)&&(p=(D=r==null?void 0:r.kanban)==null?void 0:D.ticketBaseUrl.replace("#TICKET#",t.ticket),g=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},y,x;g?{label:y,bbox:x}=await wS(g,"ticket"in t&&t.ticket||"",m):{label:y,bbox:x}=await wS(l,"ticket"in t&&t.ticket||"",m);let{label:C,bbox:w}=await wS(l,"assigned"in t&&t.assigned||"",m);t.width=o;let _=10,S=(t==null?void 0:t.width)||0,R=Math.max(x.height,w.height)/2,b=Math.max(h.height+_*2,(t==null?void 0:t.height)||0)+R,v=-S/2,k=-b/2;u.attr("transform","translate("+(d-S/2)+", "+(-R-h.height/2)+")"),y.attr("transform","translate("+(d-S/2)+", "+(-R+h.height/2)+")"),C.attr("transform","translate("+(d+S/2-w.width-2*a)+", "+(-R+h.height/2)+")");let E,{rx:A,ry:I}=t,{cssStyles:$}=t;if(t.look==="handDrawn"){let P=fr.svg(l),F=xr(t,{}),U=A||I?P.path(Ku(v,k,S,b,A||0),F):P.rectangle(v,k,S,b,F);E=l.insert(()=>U,":first-child"),E.attr("class","basic label-container").attr("style",$||null)}else{E=l.insert("rect",":first-child"),E.attr("class","basic label-container __APA__").attr("style",n).attr("rx",A!=null?A:5).attr("ry",I!=null?I:5).attr("x",v).attr("y",k).attr("width",S).attr("height",b);let P="priority"in t&&t.priority;if(P){let F=l.append("line"),U=v+2,z=k+Math.floor((A!=null?A:0)/2),V=k+b-Math.floor((A!=null?A:0)/2);F.attr("x1",U).attr("y1",z).attr("x2",U).attr("y2",V).attr("stroke-width","4").attr("stroke",bwe(P))}}return kr(t,E),t.height=b,t.intersect=function(P){return ur.rect(t,P)},l}f(vwe,"Tae");var bwe,Z4t=Y(()=>{"use strict";gr(),Er(),my(),br(),Tr(),bwe=s(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority"),s(vwe,"kanbanItem")});async function xwe(e,t){let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:o,label:l}=await Vr(e,t,zr(t)),h=a.width+10*o,u=a.height+8*o,d=.15*h,{cssStyles:p}=t,g=a.width+20,m=a.height+20,y=Math.max(h,g),x=Math.max(u,m);l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let C,w=`M0 0 503 a${d},${d} 1 0,0 ${y*.25},${-1*x*.1} 504 a${d},${d} 1 0,0 ${y*.25},0 505 a${d},${d} 1 0,0 ${y*.25},0 506 a${d},${d} 1 0,0 ${y*.25},${x*.1} 507 508 a${d},${d} 1 0,0 ${y*.15},${x*.33} 509 a${d*.8},${d*.8} 1 0,0 0,${x*.34} 510 a${d},${d} 1 0,0 ${-1*y*.15},${x*.33} 511 512 a${d},${d} 1 0,0 ${-1*y*.25},${x*.15} 513 a${d},${d} 1 0,0 ${-1*y*.25},0 514 a${d},${d} 1 0,0 ${-1*y*.25},0 515 a${d},${d} 1 0,0 ${-1*y*.25},${-1*x*.15} 516 517 a${d},${d} 1 0,0 ${-1*y*.1},${-1*x*.33} 518 a${d*.8},${d*.8} 1 0,0 0,${-1*x*.34} 519 a${d},${d} 1 0,0 ${y*.1},${-1*x*.33} 520 H0 V0 Z`;if(t.look==="handDrawn"){let _=fr.svg(n),S=xr(t,{}),R=_.path(w,S);C=n.insert(()=>R,":first-child"),C.attr("class","basic label-container").attr("style",is(p))}else C=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w);return C.attr("transform",`translate(${-y/2}, ${-x/2})`),kr(t,C),t.calcIntersect=function(_,S){return ur.rect(_,S)},t.intersect=function(_){return ge.info("Bang intersect",t,_),ur.rect(t,_)},n}f(xwe,"kae");var Q4t=Y(()=>{"use strict";jt(),gr(),Er(),br(),Tr(),wr(),s(xwe,"bang")});async function kwe(e,t){let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:o,label:l}=await Vr(e,t,zr(t)),h=a.width+2*o,u=a.height+2*o,d=.15*h,p=.25*h,g=.35*h,m=.2*h,{cssStyles:y}=t,x,C=`M0 0 521 a${d},${d} 0 0,1 ${h*.25},${-1*h*.1} 522 a${g},${g} 1 0,1 ${h*.4},${-1*h*.1} 523 a${p},${p} 1 0,1 ${h*.35},${h*.2} 524 525 a${d},${d} 1 0,1 ${h*.15},${u*.35} 526 a${m},${m} 1 0,1 ${-1*h*.15},${u*.65} 527 528 a${p},${d} 1 0,1 ${-1*h*.25},${h*.15} 529 a${g},${g} 1 0,1 ${-1*h*.5},0 530 a${d},${d} 1 0,1 ${-1*h*.25},${-1*h*.15} 531 532 a${d},${d} 1 0,1 ${-1*h*.1},${-1*u*.35} 533 a${m},${m} 1 0,1 ${h*.1},${-1*u*.65} 534 H0 V0 Z`;
534if(t.look==="handDrawn"){let w=fr.svg(n),_=xr(t,{}),S=w.path(C,_);x=n.insert(()=>S,":first-child"),x.attr("class","basic label-container").attr("style",is(y))}else x=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),x.attr("transform",`translate(${-h/2}, ${-u/2})`),kr(t,x),t.calcIntersect=function(w,_){return ur.rect(w,_)},t.intersect=function(w){return ge.info("Cloud intersect",t,w),ur.rect(t,w)},n}f(kwe,"Sae");var J4t=Y(()=>{"use strict";Tr(),jt(),wr(),Er(),br(),gr(),s(kwe,"cloud")});async function Twe(e,t){let{labelStyles:r,nodeStyles:i}=pr(t);t.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:o,label:l}=await Vr(e,t,zr(t)),h=a.width+8*o,u=a.height+2*o,d=5,p=t.look==="neo"?` 535 M${-h/2} ${u/2-d} 536 v${-u+2*d} 537 q0,-${d} ${d},-${d} 538 h${h-2*d} 539 q${d},0 ${d},${d} 540 v${u-d} 541 H${-h/2} 542 Z 543 `:` 544 M${-h/2} ${u/2-d} 545 v${-u+2*d} 546 q0,-${d} ${d},-${d} 547 h${h-2*d} 548 q${d},0 ${d},${d} 549 v${u-2*d} 550 q0,${d} ${-d},${d} 551 h${-(h-2*d)} 552 q${-d},0 ${-d},${-d} 553 Z 554 `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",p);return n.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",u/2).attr("x2",h/2).attr("y2",u/2),l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>l.node()),kr(t,g),t.calcIntersect=function(m,y){return ur.rect(m,y)},t.intersect=function(m){return ur.rect(t,m)},n}f(Twe,"Aae");var e3t=Y(()=>{"use strict";Er(),br(),gr(),s(Twe,"defaultMindmapNode")});async function wwe(e,t){var i;let r={padding:(i=t.padding)!=null?i:0};return xF(e,t,r)}f(wwe,"Dae");var t3t=Y(()=>{"use strict";r5e(),s(wwe,"mindmapCircle")});function Cwe(e){return e in MF}f(Cwe,"Lae");var Ewe,Swe,MF,_we=Y(()=>{"use strict";Vxt(),Wxt(),Hxt(),Yxt(),r5e(),Xxt(),Kxt(),Zxt(),Qxt(),Jxt(),e4t(),t4t(),r4t(),i4t(),n4t(),a4t(),s4t(),o4t(),l4t(),c4t(),h4t(),u4t(),d4t(),p4t(),g4t(),f4t(),m4t(),y4t(),v4t(),b4t(),x4t(),k4t(),T4t(),w4t(),C4t(),E4t(),S4t(),_4t(),A4t(),L4t(),R4t(),I4t(),D4t(),N4t(),M4t(),O4t(),$4t(),B4t(),P4t(),F4t(),z4t(),q4t(),j4t(),G4t(),U4t(),V4t(),W4t(),H4t(),X4t(),K4t(),Z4t(),Q4t(),J4t(),e3t(),t3t(),Ewe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:X5e},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:W5e},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:K5e},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ewe},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:c5e},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:p5e},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:xF},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:xwe},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:kwe}
554,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:q5e},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:x5e},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:I5e},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:R5e},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:lwe},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:A5e},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:f5e},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:iwe}
554,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:e5e},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:H5e},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:J5e},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Q5e},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:v5e},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:T5e},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:a5e},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:s5e},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:o5e},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:D5e}
554,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:uwe},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:b5e},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:nwe},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:N5e},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:l5e},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:g5e},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:hwe},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:pwe},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:m5e},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:cwe},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:y5e},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Y5e},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:F5e},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:P5e},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:JTe},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:n5e},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:rwe},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:twe},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:dwe},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:G5e},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:B5e}],Swe=s(()=>{let e=[...Object.entries({state:Z5e,choice:t5e,note:z5e,rectWithTitle:V5e,labelRect:L5e,iconSquare:S5e,iconCircle:C5e,icon:w5e,iconRounded:E5e,imageSquare:_5e,anchor:ZTe,kanbanItem:vwe,mindmapCircle:wwe,defaultMindmapNode:Twe,classBox:mwe,erBox:DF,requirementBox:ywe}),...Ewe.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(r=>[r,t.handler]))];return Object.fromEntries(e)},"generateShapeMap"),MF=Swe(),s(Cwe,"isValidShape")}),Awe,Lwe,r3t=Y(()=>{"use strict";var e;ui(),cS(),vr(),jt(),_we(),wr(),gi(),En(),Km(),mC(),Awe="flowchart-",Lwe=(e=class{constructor(){this.vertexCounter=0,this.config=Ue(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=wn,this.setAccDescription=Fn,this.setDiagramTitle=qn,this.getAccTitle=Pn,this.getAccDescription=zn,this.getDiagramTitle=Cn,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={f
554irstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(r){return Vt.sanitizeText(r,this.config)}sanitizeNodeLabelType(r){switch(r){case"markdown":case"string":case"text":return r;default:return"markdown"}}setDiagramId(r){this.diagramId=r}lookUpDomId(r){for(let i of this.vertices.values())if(i.id===r)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${r}`:r}addVertex(r,i,n,a,o,l,h={},u){var y,x;if(!r||r.trim().length===0)return;let d;if(u!==void 0){let C;u.includes(` 555`)?C=u+` 556`:C=`{ 557`+u+` 558}`,d=w4(C,{schema:T4})}let p=this.edges.find(C=>C.id===r);if(p){let C=d;(C==null?void 0:C.animate)!==void 0&&(p.animate=C.animate),(C==null?void 0:C.animation)!==void 0&&(p.animation=C.animation),(C==null?void 0:C.curve)!==void 0&&(p.interpolate=C.curve);return}let g,m=this.vertices.get(r);if(m===void 0&&(i===void 0&&n===void 0&&a!==void 0&&a!==null&&ge.warn(`Style applied to unknown node "${r}". This may indicate a typo. The node will be created automatically.`),m={id:r,labelType:"text",domId:Awe+r+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(r,m)),this.vertexCounter++,i!==void 0?(this.config=Ue(),g=this.sanitizeText(i.text.trim()),m.labelType=i.type,g.startsWith('"')&&g.endsWith('"')&&(g=g.substring(1,g.length-1)),m.text=g):m.text===void 0&&(m.text=r),n!==void 0&&(m.type=n),a==null||a.forEach(C=>{m.styles.push(C)}),o==null||o.forEach(C=>{m.classes.push(C)}),l!==void 0&&(m.dir=l),m.props===void 0?m.props=h:h!==void 0&&Object.assign(m.props,h),d!==void 0){if(d.shape){if(d.shape!==d.shape.toLowerCase()||d.shape.includes("_"))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);if(!Cwe(d.shape))throw new Error(`No such shape: ${d.shape}.`);m.type=d==null?void 0:d.shape}d!=null&&d.label&&(m.text=d==null?void 0:d.label,m.labelType=this.sanitizeNodeLabelType(d==null?void 0:d.labelType)),d!=null&&d.icon&&(m.icon=d==null?void 0:d.icon,!((y=d.label)!=null&&y.trim())&&m.text===r&&(m.text="")),d!=null&&d.form&&(m.form=d==null?void 0:d.form),d!=null&&d.pos&&(m.pos=d==null?void 0:d.pos),d!=null&&d.img&&(m.img=d==null?void 0:d.img,!((x=d.label)!=null&&x.trim())&&m.text===r&&(m.text="")),d!=null&&d.constraint&&(m.constraint=d.constraint),d.w&&(m.assetWidth=Number(d.w)),d.h&&(m.assetHeight=Number(d.h))}}addSingleLink(r,i,n,a){var h;let o={start:r,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};ge.info("abc78 Got edge...",o);let l=n.text;if(l!==void 0&&(o.text=this.sanitizeText(l.text.trim()),o.text.startsWith('"')&&o.text.endsWith('"')&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=this.sanitizeNodeLabelType(l.type)),n!==void 0&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length>10?10:n.length),a&&!this.edges.some(u=>u.id===a))o.id=a,o.isUserDefinedId=!0;else{let u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=Dg(o.start,o.end,{counter:0,prefix:"L"}):o.id=Dg(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<((h=this.config.maxEdges)!=null?h:500))ge.info("Pushing edge..."),this.edges.push(o);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. 559 560Initialize mermaid with maxEdges set to a higher number to allow more edges. 561You cannot set this config via configuration inside the diagram as it is a secure config. 562You have to call mermaid.initialize.`)}isLinkData(r){return r!==null&&typeof r=="object"&&"id"in r&&typeof r.id=="string"}addLink(r,i,n){let a=this.isLinkData(n)?n.id.replace("@",""):void 0;ge.info("addLink",r,i,a);for(let o of r)for(let l of i){let h=o===r[r.length-1],u=l===i[0];h&&u?this.addSingleLink(o,l,n,a):this.addSingleLink(o,l,n,void 0)}}updateLinkInterpolate(r,i){r.forEach(n=>{n==="default"?this.edges.defaultInterpolate=i:this.edges[n].interpolate=i})}updateLink(r,i){r.forEach(n=>{var a,o,l,h,u,d,p;if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=i:(this.edges[n].style=i,((l=(o=(a=this.edges[n])==null?void 0:a.style)==null?void 0:o.length)!=null?l:0)>0&&!((u=(h=this.edges[n])==null?void 0:h.style)!=null&&u.some(g=>g==null?void 0:g.startsWith("fill")))&&((p=(d=this.edges[n])==null?void 0:d.style)==null||p.push("fill:none")))})}addClass(r,i){let n=i.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");r.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]}
vendor: 6,937 bytes, line 562
562,this.classes.set(a,o)),n==null||n.forEach(l=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)})})}setDirection(r){this.direction=r.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(r,i){for(let n of r.split(",")){let a=this.vertices.get(n);a&&a.classes.push(i);let o=this.edges.find(h=>h.id===n);o&&o.classes.push(i);let l=this.subGraphLookup.get(n);l&&l.classes.push(i)}}setTooltip(r,i){if(i!==void 0){i=this.sanitizeText(i);for(let n of r.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,i)}}setClickFun(r,i,n){if(Ue().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof n=="string"){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<a.length;l++){let h=a[l].trim();h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),a[l]=h}}a.length===0&&a.push(r);let o=this.vertices.get(r);o&&(o.haveCallback=!0,this.funs.push(()=>{let l=this.lookUpDomId(r),h=document.querySelector(`[id="${l}"]`);h!==null&&h.addEventListener("click",()=>{ri.runFunc(i,...a)},!1)}))}setLink(r,i,n){r.split(",").forEach(a=>{let o=this.vertices.get(a);o!==void 0&&(o.link=ri.formatUrl(i,this.config),o.linkTarget=n)}),this.setClass(r,"clickable")}getTooltip(r){return this.tooltips.get(r)}setClickEvent(r,i,n){r.split(",").forEach(a=>{this.setClickFun(a,i,n)}),this.setClass(r,"clickable")}bindFunctions(r){this.funs.forEach(i=>{i(r)})}getDirection(){var r;return(r=this.direction)==null?void 0:r.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(r){let i=hB();Lt(r).select("svg").selectAll("g.node").on("mouseover",n=>{var h;let a=Lt(n.currentTarget),o=a.attr("title");if(o===null)return;let l=(h=n.currentTarget)==null?void 0:h.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(a.attr("title")).style("left",window.scrollX+l.left+(l.right-l.left)/2+"px").style("top",window.scrollY+l.bottom+"px"),i.html(Au.sanitize(o)),a.classed("hover",!0)}).on("mouseout",n=>{i.transition().duration(500).style("opacity",0),Lt(n.currentTarget).classed("hover",!1)})}clear(r="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=r,this.config=Ue(),Tn()}setGen(r){this.version=r||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(r,i,n){var g,m,y;let a=r.text.trim(),o=n.text;r===n&&/\s/.exec(n.text)&&(a=void 0);let l=s(x=>{let C={boolean:{},number:{},string:{}},w=[],_;return{nodeList:x.filter(function(S){let R=typeof S;return S.stmt&&S.stmt==="dir"?(_=S.value,!1):S.trim()===""?!1:R in C?C[R].hasOwnProperty(S)?!1:C[R][S]=!0:w.includes(S)?!1:w.push(S)}),dir:_}},"uniq")(i.flat()),h=l.nodeList,u=l.dir,d=(g=Ue().flowchart)!=null?g:{};if(u=u!=null?u:d.inheritDir&&(y=(m=this.getDirection())!=null?m:Ue().direction)!=null?y:void 0,this.version==="gen-1")for(let x=0;x<h.length;x++)h[x]=this.lookUpDomId(h[x]);a=a!=null?a:"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;let p={id:a,nodes:h,title:o.trim(),classes:[],dir:u,labelType:this.sanitizeNodeLabelType(n==null?void 0:n.type)};return ge.info("Adding",p.id,p.nodes,p.dir),p.nodes=this.makeUniq(p,this.subGraphs).nodes,this.subGraphs.push(p),this.subGraphLookup.set(a,p),a}getPosForId(r){for(let[i,n]of this.subGraphs.entries())if(n.id===r)return i;return-1}indexNodes2(r,i){let n=this.subGraphs[i].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===r)return{result:!0,count:0};let a=0,o=1;for(;a<n.length;){let l=this.getPosForId(n[a]);if(l>=0){let h=this.indexNodes2(r,l);if(h.result)return{result:!0,count:o+h.count};o=o+h.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(r){return this.posCrossRef[r]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(r){let i=r.trim(),n="arrow_open";switch(i[0]){case"<":n="arrow_point",i=i.slice(1);break;case"x":n="arrow_cross",i=i.slice(1);break;case"o":n="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(r,i){let n=i.length,a=0;for(let o=0;o<n;++o)i[o]===r&&++a;return a}destructEndLink(r){let i=r.trim(),n=i.slice(0,-1),a="arrow_open";switch(i.slice(-1)){case"x":a="arrow_cross",i.startsWith("x")&&(a="double_"+a,n=n.slice(1));break;case">":a="arrow_point",i.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let o="normal",l=n.length-1;n.startsWith("=")&&(o="thick"),n.startsWith("~")&&(o="invisible");let h=this.countChar(".",n);return h&&(o="dotted",l=h),{type:a,stroke:o,length:l}}destructLink(r,i){let n=this.destructEndLink(r),a;if(i){if(a=this.destructStartLink(i),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}return n}exists(r,i){for(let n of r)if(n.nodes.includes(i))return!0;return!1}makeUniq(r,i){let n=[];return r.nodes.forEach((a,o)=>{this.exists(i,a)||n.push(r.nodes[o])}),{nodes:n}}getTypeFromVertex(r){if(r.img)return"imageSquare";if(r.icon)return r.form==="circle"?"iconCircle":r.form==="square"?"iconSquare":r.form==="rounded"?"iconRounded":"icon";switch(r.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return r.type}}findNode(r,i){return r.find(n=>n.id===i)}destructEdgeType(r){let i="none",n="arrow_point";switch(r){case"arrow_point":case"arrow_circle":case"arrow_cross":n=r;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=r.replace("double_",""),n=i;break}return{arrowTypeStart:i,arrowTypeEnd:n}}addNodeFromVertex(r,i,n,a,o,l){var p,g;let h=n.get(r.id),u=(p=a.get(r.id))!=null?p:!1,d=this.findNode(i,r.id);if(d)d.cssStyles=r.styles,d.cssCompiledStyles=this.getCompiledStyles(r.classes),d.cssClasses=r.classes.join(" ");else{let m={id:r.id,label:r.text,labelType:r.labelType,labelStyle:"",parentId:h,padding:((g=o.flowchart)==null?void 0:g.padding)||8,cssStyles:r.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...r.classes]),cssClasse
562s:"default "+r.classes.join(" "),dir:r.dir,domId:r.domId,look:l,link:r.link,linkTarget:r.linkTarget,tooltip:this.getTooltip(r.id),icon:r.icon,pos:r.pos,img:r.img,assetWidth:r.assetWidth,assetHeight:r.assetHeight,constraint:r.constraint};u?i.push(_r(Tt({},m),{isGroup:!0,shape:"rect"})):i.push(_r(Tt({},m),{isGroup:!1,shape:this.getTypeFromVertex(r)}))}}getCompiledStyles(r){var n,a;let i=[];for(let o of r){let l=this.classes.get(o);l!=null&&l.styles&&(i=[...i,...(n=l.styles)!=null?n:[]].map(h=>h.trim())),l!=null&&l.textStyles&&(i=[...i,...(a=l.textStyles)!=null?a:[]].map(h=>h.trim()))}return i}getData(){let r=Ue(),i=[],n=[],a=this.getSubGraphs(),o=new Map,l=new Map;for(let u=a.length-1;u>=0;u--){let d=a[u];d.nodes.length>0&&l.set(d.id,!0);for(let p of d.nodes)o.set(p,d.id)}for(let u=a.length-1;u>=0;u--){let d=a[u];i.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:o.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir,isGroup:!0,look:r.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,i,o,l,r,r.look||"classic")});let h=this.getEdges();return h.forEach((u,d)=>{var x,C,w;let{arrowTypeStart:p,arrowTypeEnd:g}=this.destructEdgeType(u.type),m=[...(x=h.defaultStyle)!=null?x:[]];u.style&&m.push(...u.style);let y={id:Dg(u.start,u.end,{counter:d,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:(C=u.type)!=null?C:"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:(u==null?void 0:u.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(u==null?void 0:u.stroke)==="invisible"||(u==null?void 0:u.type)==="arrow_open"?"none":p,arrowTypeEnd:(u==null?void 0:u.stroke)==="invisible"||(u==null?void 0:u.type)==="arrow_open"?"none":g,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:m,style:m,pattern:u.stroke,look:r.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||((w=r.flowchart)==null?void 0:w.curve)};n.push(y)}),{nodes:i,edges:n,other:{},config:r}}defaultConfig(){return $M.flowchart}},f(e,"V4"),s(e,"FlowDB"),e)}),jg,ky=Y(()=>{"use strict";ui(),jg=s((e,t)=>{let r;return t==="sandbox"&&(r=Lt("#i"+e)),Lt(t==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement")}),Ty,$S=Y(()=>{"use strict";Ty=s(({flowchart:e})=>{var n,a,o,l;let t=(a=(n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)!=null?a:0,r=(l=(o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)!=null?l:0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins")}),OF,Rwe,Iwe,Dwe,Nwe,Mwe,Owe,$F,BS,$we,BF=Y(()=>{"use strict";vr(),ti(),jt(),$S(),ui(),Tr(),nl(),ITe(),_F(),my(),br(),OF=s(async(e,t)=>{ge.info("Creating subgraph rect for ",t.id,t);let r=Ue(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:l,nodeStyles:h,borderStyles:u,backgroundStyles:d}=pr(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),g=Vi(r),m=p.insert("g").attr("class","cluster-label "),y;t.labelType==="markdown"?y=await qs(m,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}):y=await Zu(m,t.label,t.labelStyle||"",!1,!0);let x=y.getBBox();if(Vi(r)){let k=y.children[0],E=Lt(y);x=k.getBoundingClientRect(),E.attr("width",x.width),E.attr("height",x.height)}let C=t.width<=x.width+t.padding?x.width+t.padding:t.width;t.width<=x.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;let w=t.height,_=t.x-C/2,S=t.y-w/2;ge.trace("Data ",t,JSON.stringify(t));let R;if(t.look==="handDrawn"){let k=fr.svg(p),E=xr(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),A=k.path(Ku(_,S,C,w,0),E);R=p.insert(()=>(ge.debug("Rough node insert CXC",A),A),":first-child"),R.select("path:nth-child(2)").attr("style",u.join(";")),R.select("path").attr("style",d.join(";").replace("fill","stroke"))}else R=p.insert("rect",":first-child"),R.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",S).attr("width",C).attr("height",w);let{subGraphTitleTopMargin:b}=Ty(r);if(m.attr("transform",`translate(${t.x-x.width/2}, ${t.y-t.height/2+b})`),l){let k=m.select("span");k&&k.attr("style",l)}let v=R.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=x.height-t.padding/2,t.intersect=function(k){return Pg(t,k)},{cluster:p,labelBBox:x}},"rect"),Rwe=s((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");let o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(l){return Pg(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Iwe=s(async(e,t)=>
vendor: 4,027 bytes, line 562
562{let r=Ue(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:l,nodeBorder:h}=i,u=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),d=u.insert("g",":first-child"),p=u.insert("g").attr("class","cluster-label"),g=u.append("rect"),m=await Zu(p,t.label,t.labelStyle,void 0,!0),y=m.getBBox();if(Vi(r)){let A=m.children[0],I=Lt(m);y=A.getBoundingClientRect(),I.attr("width",y.width),I.attr("height",y.height)}let x=0*t.padding,C=x/2,w=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+x;t.width<=y.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let _=t.height+x,S=t.height+x-y.height-6,R=t.x-w/2,b=t.y-_/2;t.width=w;let v=t.y-t.height/2-C+y.height+2,k;if(t.look==="handDrawn"){let A=t.cssClasses.includes("statediagram-cluster-alt"),I=fr.svg(u),$=t.rx||t.ry?I.path(Ku(R,b,w,_,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:h,seed:n}):I.rectangle(R,b,w,_,{seed:n});k=u.insert(()=>$,":first-child");let O=I.rectangle(R,v,w,S,{fill:A?a:o,fillStyle:A?"hachure":"solid",stroke:h,seed:n});k=u.insert(()=>$,":first-child"),g=u.insert(()=>O)}else k=d.insert("rect",":first-child"),k.attr("class","outer").attr("x",R).attr("y",b).attr("width",w).attr("height",_).attr("data-look",t.look),g.attr("class","inner").attr("x",R).attr("y",v).attr("width",w).attr("height",S);p.attr("transform",`translate(${t.x-y.width/2}, ${b+1-(Vi(r)?0:3)})`);let E=k.node().getBBox();return t.height=E.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(A){return Pg(t,A)},{cluster:u,labelBBox:y}},"roundedWithTitle"),Dwe=s(async(e,t)=>{ge.info("Creating subgraph rect for ",t.id,t);let r=Ue(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:l,nodeStyles:h,borderStyles:u,backgroundStyles:d}=pr(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),g=Vi(r),m=p.insert("g").attr("class","cluster-label "),y=await qs(m,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),x=y.getBBox();if(Vi(r)){let k=y.children[0],E=Lt(y);x=k.getBoundingClientRect(),E.attr("width",x.width),E.attr("height",x.height)}let C=t.width<=x.width+t.padding?x.width+t.padding:t.width;t.width<=x.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;let w=t.height,_=t.x-C/2,S=t.y-w/2;ge.trace("Data ",t,JSON.stringify(t));let R;if(t.look==="handDrawn"){let k=fr.svg(p),E=xr(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),A=k.path(Ku(_,S,C,w,t.rx),E);R=p.insert(()=>(ge.debug("Rough node insert CXC",A),A),":first-child"),R.select("path:nth-child(2)").attr("style",u.join(";")),R.select("path").attr("style",d.join(";").replace("fill","stroke"))}else R=p.insert("rect",":first-child"),R.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",S).attr("width",C).attr("height",w);let{subGraphTitleTopMargin:b}=Ty(r);if(m.attr("transform",`translate(${t.x-x.width/2}, ${t.y-t.height/2+b})`),l){let k=m.select("span");k&&k.attr("style",l)}let v=R.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=x.height-t.padding/2,t.intersect=function(k){return Pg(t,k)},{cluster:p,labelBBox:x}},"kanbanSection"),Nwe=s((e,t)=>{let r=Ue(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),l=o.insert("g",":first-child"),h=0*t.padding,u=t.width+h;t.diff=-t.padding;let d=t.height+h,p=t.x-u/2,g=t.y-d/2;t.width=u;let m;if(t.look==="handDrawn"){let x=fr.svg(o).rectangle(p,g,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});m=o.insert(()=>x,":first-child")}else{m=l.insert("rect",":first-child");let x="outer";t.look,x="divider",m.attr("class",x).attr("x",p).attr("y",g).attr("width",u).attr("height",d).attr("data-look",t.look)}let y=m.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(x){return Pg(t,x)},{cluster:o,labelBBox:{}}}
vendor: 23,682 bytes, lines 562-565
562,"divider"),Mwe=OF,Owe={rect:OF,squareRect:Mwe,roundedWithTitle:Iwe,noteGroup:Rwe,divider:Nwe,kanbanSection:Dwe},$F=new Map,BS=s(async(e,t)=>{let r=t.shape||"rect",i=await Owe[r](e,t);return $F.set(t.id,i),i},"insertCluster"),$we=s(()=>{$F=new Map},"clear")}),wc,Bwe=Y(()=>{"use strict";wc=s((e,t)=>{var n,a;if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let r=(n=e.x)!=null?n:0,i=(a=e.y)!=null?a:0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform")});function G4(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=jn(e),t=jn(t);let[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,l=a-i;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}f(G4,"q4");var ws,PF,jn,FF,Pwe=Y(()=>{"use strict";ws={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},PF={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},s(G4,"calculateDeltaAndAngle"),jn=s(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),FF=s(e=>({x:s(function(t,r,i){let n=0,a=jn(i[0]).x<jn(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(ws,e.arrowTypeStart)){let{angle:m,deltaX:y}=G4(i[0],i[1]);n=ws[e.arrowTypeStart]*Math.cos(m)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ws,e.arrowTypeEnd)){let{angle:m,deltaX:y}=G4(i[i.length-1],i[i.length-2]);n=ws[e.arrowTypeEnd]*Math.cos(m)*(y>=0?1:-1)}let o=Math.abs(jn(t).x-jn(i[i.length-1]).x),l=Math.abs(jn(t).y-jn(i[i.length-1]).y),h=Math.abs(jn(t).x-jn(i[0]).x),u=Math.abs(jn(t).y-jn(i[0]).y),d=ws[e.arrowTypeStart],p=ws[e.arrowTypeEnd],g=1;if(o<p&&o>0&&l<p){let m=p+g-o;m*=a==="right"?-1:1,n-=m}if(h<d&&h>0&&u<d){let m=d+g-h;m*=a==="right"?-1:1,n+=m}return jn(t).x+n},"x"),y:s(function(t,r,i){let n=0,a=jn(i[0]).y<jn(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(ws,e.arrowTypeStart)){let{angle:m,deltaY:y}=G4(i[0],i[1]);n=ws[e.arrowTypeStart]*Math.abs(Math.sin(m))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ws,e.arrowTypeEnd)){let{angle:m,deltaY:y}=G4(i[i.length-1],i[i.length-2]);n=ws[e.arrowTypeEnd]*Math.abs(Math.sin(m))*(y>=0?1:-1)}let o=Math.abs(jn(t).y-jn(i[i.length-1]).y),l=Math.abs(jn(t).x-jn(i[i.length-1]).x),h=Math.abs(jn(t).y-jn(i[0]).y),u=Math.abs(jn(t).x-jn(i[0]).x),d=ws[e.arrowTypeStart],p=ws[e.arrowTypeEnd],g=1;if(o<p&&o>0&&l<p){let m=p+g-o;m*=a==="up"?-1:1,n-=m}if(h<d&&h>0&&u<d){let m=d+g-h;m*=a==="up"?-1:1,n+=m}return jn(t).y+n},"y")}),"getLineFunctionsWithOffset")}),Fwe,zwe,qwe,zF,i3t=Y(()=>{"use strict";jt(),Fwe=s((e,t,r,i,n,a=!1,o)=>{t.arrowTypeStart&&zF(e,"start",t.arrowTypeStart,r,i,n,a,o),t.arrowTypeEnd&&zF(e,"end",t.arrowTypeEnd,r,i,n,a,o)},"addEdgeMarkers"),zwe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},qwe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],zF=s((e,t,r,i,n,a,o=!1,l)=>{var g;let h=zwe[r],u=h&&qwe.includes(h.type);if(!h){ge.warn(`Unknown arrow type: ${r}`);return}let d=h.type,p=`${n}_${a}-${d}${t==="start"?"Start":"End"}${o&&u?"-margin":""}`;if(l&&l.trim()!==""){let m=l.replace(/[^\dA-Za-z]/g,"_"),y=`${p}_${m}`;if(!document.getElementById(y)){let x=document.getElementById(p);if(x){let C=x.cloneNode(!0);C.id=y,C.querySelectorAll("path, circle, line").forEach(w=>{w.setAttribute("stroke",l),h.fill&&w.setAttribute("fill",l)}),(g=x.parentNode)==null||g.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${y})`)}else e.attr(`marker-${t}`,`url(${i}#${p})`)},"addEdgeMarker")});function U4(e,t){Vi(Ue())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}f(U4,"H4");function jwe(e){let t=[],r=[];for(let i=1;i<e.length-1;i++){let n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}f(jwe,"Qqe");function Gwe(e,t){if(e.length<2)return"";let r="",i=e.length,n=1e-5;for(let a=0;a<i;a++){let o=e[a],l=e[a-1],h=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{let u=o.x-l.x,d=o.y-l.y,p=h.x-o.x,g=h.y-o.y,m=Math.hypot(u,d),y=Math.hypot(p,g);if(m<n||y<n){r+=`L${o.x},${o.y}`;continue}let x=u/m,C=d/m,w=p/y,_=g/y,S=x*w+C*_,R=Math.max(-1,Math.min(1,S)),b=Math.acos(R);if(b<n||Math.abs(Math.PI-b)<n){r+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(b/2),m/2,y/2),k=o.x-x*v,E=o.y-C*v,A=o.x+w*v,I=o.y+_*v;r+=`L${k},${E}`,r+=`Q${o.x},${o.y} ${A},${I}`}}return r}f(Gwe,"tUe");function qF(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}f(qF,"Gae");function Uwe(e,t){let r=e.map(n=>Tt({},n));if(e.length>=2&&ws[t.arrowTypeStart]){let n=ws[t.arrowTypeStart],a=e[0],o=e[1],{angle:l}=qF(a,o),h=n*Math.cos(l),u=n*Math.sin(l);r[0].x=a.x+h,r[0].y=a.y+u}let i=e.length;if(i>=2&&ws[t.arrowTypeEnd]){let n=ws[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=qF(o,a),h=n*Math.cos(l),u=n*Math.sin(l);r[i-1].x=a.x-h,r[i-1].y=a.y-u}return r}f(Uwe,"rUe");var Vwe,V4,ns,Wwe,wy,jF,GF,Hwe,Ywe,UF,VF,Xwe,Kwe,WF,Zwe=Y(()=>{"use strict";vr(),ti(),jt(),nl(),Bwe(),wr(),Pwe(),$S(),ui(),Tr(),_F(),i3t(),br(),Vwe=s(e=>{var t,r;return typeof e=="string"?e:(r=(t=Ue())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),V4=new Map,ns=new Map,Wwe=s(()=>{V4.clear(),ns.clear()},"clear"),wy=s(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),jF=s(async(e,t)=>{let r=Ue(),i=Vi(r),{labelStyles:n}=pr(t);t.labelStyle=n;let a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",h=await qs(e,t.label,{style:wy(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:l,width:void 0},r);o.node().appendChild(h),ge.info("abc82",t,t.labelType);let u=h.getBBox(),d=u;if(i){let g=h.children[0],m=Lt(h);u=g.getBoundingClientRect(),d=u,m.attr("width",u.width),m.attr("height",u.height)}else{let g=Lt(h).select("text").node();g&&typeof g.getBBox=="function"&&(d=g.getBBox())}o.attr("transform",wc(d,i)),V4.set(t.id,a),t.width=u.width,t.height=u.height;let p;if(t.startLabelLeft){let g=e.insert("g").attr("class","edgeTerminals"),m=g.insert("g").attr("class","inner"),y=await Zu(m,t.startLabelLeft,wy(t.labelStyle)||"",!1,!1);p=y;let x=y.getBBox();if(i){let C=y.children[0],w=Lt(y);x=C.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height)}m.attr("transform",wc(x,i)),ns.get(t.id)||ns.set(t.id,{}),ns.get(t.id).startLeft=g,U4(p,t.startLabelLeft)}if(t.startLabelRight){let g=e.insert("g").attr("class","edgeTerminals"),m=g.insert("g").attr("class","inner"),y=await Zu(m,t.startLabelRight,wy(t.labelStyle)||"",!1,!1);p=y;let x=y.getBBox();if(i){let C=y.children[0],w=Lt(y);x=C.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height)}m.attr("transform",wc(x,i)),ns.get(t.id)||ns.set(t.id,{}),ns.get(t.id).startRight=g,U4(p,t.startLabelRight)}if(t.endLabelLeft){let g=e.insert("g").attr("class","edgeTerminals"),m=g.insert("g").attr("class","inner"),y=await Zu(g,t.endLabelLeft,wy(t.labelStyle)||"",!1,!1);p=y;let x=y.getBBox();if(i){let C=y.children[0],w=Lt(y);x=C.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height)}m.attr("transform",wc(x,i)),ns.get(t.id)||ns.set(t.id,{}),ns.get(t.id).endLeft=g,U4(p,t.endLabelLeft)}if(t.endLabelRight){let g=e.insert("g").attr("class","edgeTerminals"),m=g.insert("g").attr("class","inner"),y=await Zu(g,t.endLabelRight,wy(t.labelStyle)||"",!1,!1);p=y;let x=y.getBBox();if(i){let C=y.children[0],w=Lt(y);x=C.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height)}m.attr("transform",wc(x,i)),ns.get(t.id)||ns.set(t.id,{}),ns.get(t.id).endRight=g,U4(p,t.endLabelRight)}return h},"insertEdgeLabel"),s(U4,"setTerminalWidth"),GF=s((e,t)=>{ge.debug("Moving label abc88 ",e.id,e.label,V4.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,i=Ue(),{subGraphTitleTotalMargin:n}=Ty(i);if(e.label){let a=V4.get(e.id),o=e.x,l=e.y;if(r){let h=ri.calcLabelPosition(r);ge.debug("Moving label "+e.label+" from (",o,",",l,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(o=h.x,l=h.y)}a.attr("transform",`translate(${o}, ${l+n/2})`)}if(e.startLabelLeft){let a=ns.get(e.id).startLeft,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){let a=ns.get(e.id).startRight,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){let a=ns.get(e.id).endLeft,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){let a=ns.get(e.id).endRight,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),Hwe=s((e,t)=>{let r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,l=e.height/2;return n>=o||a>=l},"outsideNode"),Ywe=s((e,t,r)=>{ge.debug(`intersection calc abc89: 563 outsidePoint: ${JSON.stringify(t)} 564 insidePoint : ${JSON.stringify(r)} 565 node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2,l=r.x<t.x?o-a:o+a,h=e.height/2,u=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*h){let p=r.y<t.y?t.y-h-n:n-h-t.y;l=d*p/u;let g={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+u-p:r.y-u+p};return l===0&&(g.x=t.x,g.y=t.y),d===0&&(g.x=t.x),u===0&&(g.y=t.y),ge.debug(`abc89 top/bottom calc, Q ${u}, q ${p}, R ${d}, r ${l}`,g),g}else{r.x<t.x?l=t.x-o-i:l=i-o-t.x;let p=u*l/d,g=r.x<t.x?r.x+d-l:r.x-d+l,m=r.y<t.y?r.y+p:r.y-p;return ge.debug(`sides calc abc89, Q ${u}, q ${p}, R ${d}, r ${l}`,{_x:g,_y:m}),l===0&&(g=t.x,m=t.y),d===0&&(g=t.x),u===0&&(m=t.y),{x:g,y:m}}},"intersection"),UF=s((e,t)=>{ge.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(ge.info("abc88 checking point",a,t),!Hwe(t,a)&&!n){let o=Ywe(t,i,a);ge.debug("abc88 inside",a,i,o),ge.debug("abc88 intersection",o,t);let l=!1;r.forEach(h=>{l=l||h.x===o.x&&h.y===o.y}),r.some(h=>h.x===o.x&&h.y===o.y)?ge.warn("abc88 no intersect",o,r):r.push(o),n=!0}else ge.warn("abc88 outside",a,i),i=a,n||r.push(a)}),ge.debug("returning points",r),r},"cutPathAtIntersect"),s(jwe,"extractCornerPoints"),VF=s(function(e,t,r){let i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),Xwe=s(function(e){let{cornerPointPositions:t}=jwe(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){let n=e[i-1],a=e[i+1],o=e[i],l=VF(n,o,5),h=VF(a,o,5),u=h.x-l.x,d=h.y-l.y;r.push(l);let p=Math.sqrt(2)*2,g={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){ge.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));let m=5;o.x===l.x?g={x:u<0?l.x-m+p:l.x+m-p,y:d<0?l.y-p:l.y+p}:g={x:u<0?l.x-p:l.x+p,y:d<0?l.y-m+p:l.y+m-p}}else ge.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(g,h)}else r.push(e[i]);return r},"fixCorners"),Kwe=s((e,t,r)=>{let i=e-t-r,n=2,a=2,o=n+a,l=Math.floor(i/o),h=Array(l).fill(`${n} ${a}`).join(" ");return`0 ${t} ${h} ${r}`},"generateDashArray"),WF=s(function(e,t,r,i,n,a,o,l=!1){var U;if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:h}=Ue(),u=t.points,d=!1,p=n;var g=a;let m=[];for(let z in t.cssCompiledStyles)CS(z)||m.push(t.cssCompiledStyles[z]);ge.debug("UIO intersect check",t.points,g.x,p.x),g.intersect&&p.intersect&&!l&&(u=u.slice(1,t.points.length-1),u.unshift(p.intersect(u[0])),ge.debug("Last point UIO",t.start,"-->",t.end,u[u.length-1],g,g.intersect(u[u.length-1])),u.push(g.intersect(u[u.length-1])));let y=btoa(JSON.stringify(u));t.toCluster&&(ge.info("to cluster abc88",r.get(t.toCluster)),u=UF(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&(ge.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=UF(u.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let x=u.filter(z=>!Number.isNaN(z.y)),C=Vwe(t.curve);C!=="rounded"&&(x=Xwe(x));let w=Hm;switch(C){case"linear":w=Hm;break;case"basis":w=Xm;break;case"cardinal":w=j$;break;case"bumpX":w=$$;break;case"bumpY":w=B$;break;case"catmullRom":w=U$;break;case"monotoneX":w=eB;break;case"monotoneY":w=tB;break;case"natural":w=nB;break;case"step":w=aB;break;case"stepAfter":w=oB;break;case"stepBefore":w=sB;break;case"rounded":w=Hm;break;default:w=Xm}let{x:_,y:S}=FF(t),R=Ym().x(_).y(S).curve(w),b;switch(t.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(t.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 v,k=C==="rounded"?Gwe(Uwe(x,t),5):R(x),E=Array.isArray(t.style)?t.style:[t.style],A=E.find(z=>z==null?void 0:z.startsWith("stroke:")),I="";t.animate&&(I="edge-animation-fast"),t.animation&&(I="edge-animation-"+t.animation);let $=!1;if(t.look==="handDrawn"){let z=fr.svg(e);Object.assign([],x);let V=z.path(k,{roughness:.3,seed:h});b+=" transition",v=Lt(V).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+b+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",E?E.reduce((X,J)=>X+";"+J,""):"");let W=v.attr("d");v.attr("d",W),e.node().appendChild(v.node())}else{let z=m.join(";"),V=E?E.reduce((ie,oe)=>ie+oe+";",""):"",W=(z?z+";"+V+";":V)+";"+(E?E.reduce((ie,oe)=>ie+";"+oe,""):"");v=e.append("path").attr("d",k).attr("id",`${o}-${t.id}`).attr("class"," "+b+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",W),A=(U=W.match(/stroke:([^;]+)/))==null?void 0:U[1],$=t.animate===!0||!!t.animation||z.includes("animation");let X=v.node(),J=typeof X.getTotalLength=="function"?X.getTotalLength():0,H=PF[t.arrowTypeStart]||0,te=PF[t.arrowTypeEnd]||0;if(t.look==="neo"&&!$){let ie=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Kwe(J,H,te):`0 ${H} ${J-H-te} ${te}`}; stroke-dashoffset: 0;`;v.attr("style",ie+v.attr("style"))}}v.attr("data-edge",!0),v.attr("data-et","edge"),v.attr("data-id",t.id),v.attr("data-points",y),v.attr("data-look",is(t.look)),t.showPoints&&x.forEach(z=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",z.x).attr("cy",z.y)});let O="";(Ue().flowchart.arrowMarkerAbsolute||Ue().state.arrowMarkerAbsolute)&&(O=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,O=O.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ge.info("arrowTypeStart",t.arrowTypeStart),ge.info("arrowTypeEnd",t.arrowTypeEnd);let j=!$&&(t==null?void 0:t.look)==="neo";Fwe(v,t,O,o,i,j,A);let D=Math.floor(u.length/2),P=u[D];ri.isLabelCoordinateInPath(P,v.attr("d"))||(d=!0);let F={};return d&&(F.updatedPath=u),F.originalPath=t.points,F},"insertEdge"),s(Gwe,"generateRoundedPath"),s(qF,"calculateDeltaAndAngle"),s(Uwe,"applyMarkerOffsetsToPoints")}),Qwe,Jwe,eCe,tCe,rCe,iCe,nCe,aCe,sCe,oCe,lCe,cCe,hCe,uCe,dCe,pCe,gCe,fCe,mCe,yCe,vCe,bCe,xCe,kCe,HF,TCe=Y(()=>{"use strict";jt(),ti(),Qwe=s((e,t,r,i)=>{t.forEach(n=>{kCe[n](e,r,i)})},"insertMarkers"),Jwe=s((e,t,r)=>{ge.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).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"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),eCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),tCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),rCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),iCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),nCe=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
565ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),aCe=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),sCe=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),oCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),lCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{transitionColor:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),cCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),hCe=s((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),uCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),dCe=s((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),pCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),gCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:o}=n,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",o!=null?o:"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let h=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");h.append("circle").attr("fill",o!=null?o:"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),h.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),fCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),mCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:o}=n,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",o!=null?o:"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let h=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");h.append("circle").attr("fill",o!=null?o:"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),h.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),yCe=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 566 L20,10 567 M20,10 568 L0,20`)},"requirement_arrow"),vCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 569 L20,10 570 M20,10 571 L0,20`).attr("stroke-linejoin","miter")}
571,"requirement_arrow_neo"),bCe=s((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xCe=s((e,t,r)=>{let i=Ir(),{themeVariables:n}=i,{strokeWidth:a}=n,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),kCe={extension:Jwe,composition:eCe,aggregation:tCe,dependency:rCe,lollipop:iCe,point:nCe,circle:aCe,cross:sCe,barb:oCe,barbNeo:lCe,only_one:cCe,zero_or_one:hCe,one_or_more:uCe,zero_or_more:dCe,only_one_neo:pCe,zero_or_one_neo:gCe,one_or_more_neo:fCe,zero_or_more_neo:mCe,requirement_arrow:yCe,requirement_contains:bCe,requirement_arrow_neo:vCe,requirement_contains_neo:xCe},HF=Qwe});async function PS(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let a=t.shape?MF[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o!=null?o:null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return i.attr("data-look",is(t.look)),t.tooltip&&n.attr("title",t.tooltip),W4.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}f(PS,"Sg");var W4,wCe,CCe,FS,YF=Y(()=>{"use strict";jt(),_we(),wr(),W4=new Map,s(PS,"insertNode"),wCe=s((e,t)=>{W4.set(t.id,e)},"setNodeElem"),CCe=s(()=>{W4.clear()},"clear"),FS=s(e=>{let t=W4.get(e.id);ge.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")}),ECe,n3t=Y(()=>{"use strict";ti(),gi(),jt(),BF(),Zwe(),TCe(),YF(),gr(),wr(),ECe={common:Vt,getConfig:Ir,insertCluster:BS,insertEdge:WF,insertEdgeLabel:jF,insertMarkers:HF,insertNode:PS,interpolateToCurve:RB,labelHelper:Vr,log:ge,positionEdgeLabel:GF}}),SCe,XF,_Ce=Y(()=>{"use strict";SCe=typeof global=="object"&&global&&global.Object===Object&&global,XF=SCe}),ACe,LCe,Ol,Cc=Y(()=>{"use strict";_Ce(),ACe=typeof self=="object"&&self&&self.Object===Object&&self,LCe=XF||ACe||Function("return this")(),Ol=LCe}),RCe,al,Cy=Y(()=>{"use strict";Cc(),RCe=Ol.Symbol,al=RCe});function ICe(e){var t=DCe.call(e,Ey),r=e[Ey];try{e[Ey]=void 0;var i=!0}catch(a){}var n=NCe.call(e);return i&&(t?e[Ey]=r:delete e[Ey]),n}f(ICe,"NUe");var KF,DCe,NCe,Ey,MCe,a3t=Y(()=>{"use strict";Cy(),KF=Object.prototype,DCe=KF.hasOwnProperty,NCe=KF.toString,Ey=al?al.toStringTag:void 0,s(ICe,"getRawTag"),MCe=ICe});function OCe(e){return BCe.call(e)}f(OCe,"PUe");var $Ce,BCe,PCe,s3t=Y(()=>{"use strict";$Ce=Object.prototype,BCe=$Ce.toString,s(OCe,"objectToString"),PCe=OCe});function FCe(e){return e==null?e===void 0?qCe:zCe:ZF&&ZF in Object(e)?MCe(e):PCe(e)}f(FCe,"$Ue");var zCe,qCe,ZF,Qu,Gg=Y(()=>{"use strict";Cy(),a3t(),s3t(),zCe="[object Null]",qCe="[object Undefined]",ZF=al?al.toStringTag:void 0,s(FCe,"baseGetTag"),Qu=FCe});function jCe(e){return e!=null&&typeof e=="object"}f(jCe,"zUe");var $l,Ih=Y(()=>{"use strict";s(jCe,"isObjectLike"),$l=jCe});function GCe(e){return typeof e=="symbol"||$l(e)&&Qu(e)==UCe}f(GCe,"VUe");var UCe,Tp,Sy=Y(()=>{"use strict";Gg(),Ih(),UCe="[object Symbol]",s(GCe,"isSymbol"),Tp=GCe});function VCe(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}f(VCe,"WUe");var Ug,zS=Y(()=>{"use strict";s(VCe,"arrayMap"),Ug=VCe}),WCe,pa,Ka=Y(()=>{"use strict";
571WCe=Array.isArray,pa=WCe});function QF(e){if(typeof e=="string")return e;if(pa(e))return Ug(e,QF)+"";if(Tp(e))return ez?ez.call(e):"";var t=e+"";return t=="0"&&1/e==-HCe?"-0":t}f(QF,"tse");var HCe,JF,ez,YCe,o3t=Y(()=>{"use strict";Cy(),zS(),Ka(),Sy(),HCe=1/0,JF=al?al.prototype:void 0,ez=JF?JF.toString:void 0,s(QF,"baseToString"),YCe=QF});function XCe(e){for(var t=e.length;t--&&KCe.test(e.charAt(t)););return t}f(XCe,"YUe");var KCe,ZCe,l3t=Y(()=>{"use strict";KCe=/\s/,s(XCe,"trimmedEndIndex"),ZCe=XCe});function QCe(e){return e&&e.slice(0,ZCe(e)+1).replace(JCe,"")}f(QCe,"XUe");var JCe,e6e,c3t=Y(()=>{"use strict";l3t(),JCe=/^\s+/,s(QCe,"baseTrim"),e6e=QCe});function t6e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}f(t6e,"KUe");var No,Ec=Y(()=>{"use strict";s(t6e,"isObject"),No=t6e});function r6e(e){if(typeof e=="number")return e;if(Tp(e))return tz;if(No(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=No(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e6e(e);var r=n6e.test(e);return r||a6e.test(e)?s6e(e.slice(2),r?2:8):i6e.test(e)?tz:+e}f(r6e,"tHe");var tz,i6e,n6e,a6e,s6e,o6e,h3t=Y(()=>{"use strict";c3t(),Ec(),Sy(),tz=NaN,i6e=/^[-+]0x[0-9a-f]+$/i,n6e=/^0b[01]+$/i,a6e=/^0o[0-7]+$/i,s6e=parseInt,s(r6e,"toNumber"),o6e=r6e});function l6e(e){if(!e)return e===0?e:0;if(e=o6e(e),e===rz||e===-rz){var t=e<0?-1:1;return t*c6e}return e===e?e:0}f(l6e,"iHe");var rz,c6e,H4,h6e=Y(()=>{"use strict";h3t(),rz=1/0,c6e=17976931348623157e292,s(l6e,"toFinite"),H4=l6e});function u6e(e){var t=H4(e),r=t%1;return t===t?r?t-r:t:0}f(u6e,"nHe");var d6e,u3t=Y(()=>{"use strict";h6e(),s(u6e,"toInteger"),d6e=u6e});function p6e(e){return e}f(p6e,"aHe");var wp,Vg=Y(()=>{"use strict";s(p6e,"identity"),wp=p6e});function g6e(e){if(!No(e))return!1;var t=Qu(e);return t==m6e||t==y6e||t==f6e||t==v6e}f(g6e,"uHe");var f6e,m6e,y6e,v6e,_y,qS=Y(()=>{"use strict";Gg(),Ec(),f6e="[object AsyncFunction]",m6e="[object Function]",y6e="[object GeneratorFunction]",v6e="[object Proxy]",s(g6e,"isFunction"),_y=g6e}),b6e,jS,d3t=Y(()=>{"use strict";Cc(),b6e=Ol["__core-js_shared__"],jS=b6e});function x6e(e){return!!iz&&iz in e}f(x6e,"dHe");var iz,k6e,p3t=Y(()=>{"use strict";d3t(),iz=(function(){var e=/[^.]+$/.exec(jS&&jS.keys&&jS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),s(x6e,"isMasked"),k6e=x6e});function T6e(e){if(e!=null){try{return C6e.call(e)}catch(t){}try{return e+""}catch(t){}}return""}f(T6e,"mHe");var w6e,C6e,Cp,E6e=Y(()=>{"use strict";w6e=Function.prototype,C6e=w6e.toString,s(T6e,"toSource"),Cp=T6e});function S6e(e){if(!No(e)||k6e(e))return!1;var t=_y(e)?N6e:A6e;return t.test(Cp(e))}f(S6e,"kHe");var _6e,A6e,L6e,R6e,I6e,D6e,N6e,M6e,g3t=Y(()=>{"use strict";qS(),p3t(),Ec(),E6e(),_6e=/[\\^$.*+?()[\]{}|]/g,A6e=/^\[object .+?Constructor\]$/,L6e=Function.prototype,R6e=Object.prototype,I6e=L6e.toString,D6e=R6e.hasOwnProperty,N6e=RegExp("^"+I6e.call(D6e).replace(_6e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s(S6e,"baseIsNative"),M6e=S6e});function O6e(e,t){return e==null?void 0:e[t]}f(O6e,"wHe");var $6e,f3t=Y(()=>{"use strict";s(O6e,"getValue"),$6e=O6e});function B6e(e,t){var r=$6e(e,t);return M6e(r)?r:void 0}f(B6e,"SHe");var Ep,Wg=Y(()=>{"use strict";g3t(),f3t(),s(B6e,"getNative"),Ep=B6e}),P6e,GS,m3t=Y(()=>{"use strict";Wg(),Cc(),P6e=Ep(Ol,"WeakMap"),GS=P6e}),nz,F6e,z6e,y3t=Y(()=>{"use strict";Ec(),nz=Object.create,F6e=(function(){function e(){}return f(e,"e"),s(e,"object"),function(t){if(!No(t))return{};if(nz)return nz(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),z6e=F6e});function q6e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}f(q6e,"_He");var j6e,v3t=Y(()=>{"use strict";s(q6e,"apply"),j6e=q6e});function G6e(){}f(G6e,"DHe");var U6e,b3t=Y(()=>{"use strict";s(G6e,"noop"),U6e=G6e});function V6e(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}f(V6e,"RHe");var az,W6e=Y(()=>{"use strict";s(V6e,"copyArray"),az=V6e});function H6e(e){var t=0,r=0;return function(){var i=K6e(),n=X6e-(i-r);if(r=i,n>0){if(++t>=Y6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}f(H6e,"IHe");var Y6e,X6e,K6e,Z6e,x3t=Y(()=>{"use strict";
571Y6e=800,X6e=16,K6e=Date.now,s(H6e,"shortOut"),Z6e=H6e});function Q6e(e){return function(){return e}}f(Q6e,"OHe");var Ju,J6e=Y(()=>{"use strict";s(Q6e,"constant"),Ju=Q6e}),eEe,Y4,tEe=Y(()=>{"use strict";Wg(),eEe=(function(){try{var e=Ep(Object,"defineProperty");return e({},"",{}),e}catch(t){}})(),Y4=eEe}),rEe,iEe,k3t=Y(()=>{"use strict";J6e(),tEe(),Vg(),rEe=Y4?function(e,t){return Y4(e,"toString",{configurable:!0,enumerable:!1,value:Ju(t),writable:!0})}:wp,iEe=rEe}),nEe,sz,aEe=Y(()=>{"use strict";k3t(),x3t(),nEe=Z6e(iEe),sz=nEe});function sEe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}f(sEe,"$He");var oz,oEe=Y(()=>{"use strict";s(sEe,"arrayEach"),oz=sEe});function lEe(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++a<n;)if(t(e[a],a,e))return a;return-1}f(lEe,"zHe");var lz,cEe=Y(()=>{"use strict";s(lEe,"baseFindIndex"),lz=lEe});function hEe(e){return e!==e}f(hEe,"GHe");var uEe,T3t=Y(()=>{"use strict";s(hEe,"baseIsNaN"),uEe=hEe});function dEe(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}f(dEe,"VHe");var pEe,w3t=Y(()=>{"use strict";s(dEe,"strictIndexOf"),pEe=dEe});function gEe(e,t,r){return t===t?pEe(e,t,r):lz(e,uEe,r)}f(gEe,"WHe");var fEe,C3t=Y(()=>{"use strict";cEe(),T3t(),w3t(),s(gEe,"baseIndexOf"),fEe=gEe});function mEe(e,t){var r=e==null?0:e.length;return!!r&&fEe(e,t,0)>-1}f(mEe,"qHe");var yEe,E3t=Y(()=>{"use strict";C3t(),s(mEe,"arrayIncludes"),yEe=mEe});function vEe(e,t){var r=typeof e;return t=t!=null?t:bEe,!!t&&(r=="number"||r!="symbol"&&xEe.test(e))&&e>-1&&e%1==0&&e<t}f(vEe,"YHe");var bEe,xEe,X4,US=Y(()=>{"use strict";bEe=9007199254740991,xEe=/^(?:0|[1-9]\d*)$/,s(vEe,"isIndex"),X4=vEe});function kEe(e,t,r){t=="__proto__"&&Y4?Y4(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}f(kEe,"jHe");var K4,VS=Y(()=>{"use strict";tEe(),s(kEe,"baseAssignValue"),K4=kEe});function TEe(e,t){return e===t||e!==e&&t!==t}f(TEe,"XHe");var Hg,Ay=Y(()=>{"use strict";s(TEe,"eq"),Hg=TEe});function wEe(e,t,r){var i=e[t];(!(EEe.call(e,t)&&Hg(i,r))||r===void 0&&!(t in e))&&K4(e,t,r)}f(wEe,"QHe");var CEe,EEe,Z4,WS=Y(()=>{"use strict";VS(),Ay(),CEe=Object.prototype,EEe=CEe.hasOwnProperty,s(wEe,"assignValue"),Z4=wEe});function SEe(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],h=i?i(r[l],e[l],l,r,e):void 0;h===void 0&&(h=e[l]),n?K4(r,l,h):Z4(r,l,h)}return r}f(SEe,"JHe");var Ly,Q4=Y(()=>{"use strict";WS(),VS(),s(SEe,"copyObject"),Ly=SEe});function _Ee(e,t,r){return t=cz(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=cz(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=i[n];return l[t]=r(o),j6e(e,this,l)}}f(_Ee,"eYe");var cz,hz,AEe=Y(()=>{"use strict";v3t(),cz=Math.max,s(_Ee,"overRest"),hz=_Ee});function LEe(e,t){return sz(hz(e,t,wp),e+"")}f(LEe,"tYe");var J4,HS=Y(()=>{"use strict";Vg(),AEe(),aEe(),s(LEe,"baseRest"),J4=LEe});function REe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IEe}f(REe,"iYe");var IEe,YS,uz=Y(()=>{"use strict";IEe=9007199254740991,s(REe,"isLength"),YS=REe});function DEe(e){return e!=null&&YS(e.length)&&!_y(e)}f(DEe,"nYe");var Dh,ed=Y(()=>{"use strict";qS(),uz(),s(DEe,"isArrayLike"),Dh=DEe});function NEe(e,t,r){if(!No(r))return!1;var i=typeof t;return(i=="number"?Dh(r)&&X4(t,r.length):i=="string"&&t in r)?Hg(r[t],e):!1}f(NEe,"aYe");var Ry,XS=Y(()=>{"use strict";Ay(),ed(),US(),Ec(),s(NEe,"isIterateeCall"),Ry=NEe});function MEe(e){return J4(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,o&&Ry(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var l=r[i];l&&e(t,l,i,a)}return t})}f(MEe,"sYe");var OEe,S3t=Y(()=>{"use strict";HS(),XS(),s(MEe,"createAssigner"),OEe=MEe});function $Ee(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||BEe;return e===r}f($Ee,"lYe");var BEe,e3,KS=Y(()=>{"use strict";BEe=Object.prototype,s($Ee,"isPrototype"),e3=$Ee});function PEe(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}f(PEe,"cYe");var FEe,_3t=Y(()=>{"use strict";s(PEe,"baseTimes"),FEe=PEe});
571function zEe(e){return $l(e)&&Qu(e)==qEe}f(zEe,"hYe");var qEe,dz,A3t=Y(()=>{"use strict";Gg(),Ih(),qEe="[object Arguments]",s(zEe,"baseIsArguments"),dz=zEe}),pz,jEe,GEe,UEe,Yg,t3=Y(()=>{"use strict";A3t(),Ih(),pz=Object.prototype,jEe=pz.hasOwnProperty,GEe=pz.propertyIsEnumerable,UEe=dz((function(){return arguments})())?dz:function(e){return $l(e)&&jEe.call(e,"callee")&&!GEe.call(e,"callee")},Yg=UEe});function VEe(){return!1}f(VEe,"mYe");var WEe,L3t=Y(()=>{"use strict";s(VEe,"stubFalse"),WEe=VEe}),gz,fz,HEe,mz,YEe,XEe,Xg,r3=Y(()=>{"use strict";Cc(),L3t(),gz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fz=gz&&typeof module=="object"&&module&&!module.nodeType&&module,HEe=fz&&fz.exports===gz,mz=HEe?Ol.Buffer:void 0,YEe=mz?mz.isBuffer:void 0,XEe=YEe||WEe,Xg=XEe});function KEe(e){return $l(e)&&YS(e.length)&&!!Sn[Qu(e)]}f(KEe,"WYe");var ZEe,QEe,JEe,eSe,tSe,rSe,iSe,nSe,aSe,sSe,oSe,lSe,cSe,hSe,uSe,dSe,pSe,gSe,fSe,mSe,ySe,vSe,bSe,xSe,Sn,kSe,R3t=Y(()=>{"use strict";Gg(),uz(),Ih(),ZEe="[object Arguments]",QEe="[object Array]",JEe="[object Boolean]",eSe="[object Date]",tSe="[object Error]",rSe="[object Function]",iSe="[object Map]",nSe="[object Number]",aSe="[object Object]",sSe="[object RegExp]",oSe="[object Set]",lSe="[object String]",cSe="[object WeakMap]",hSe="[object ArrayBuffer]",uSe="[object DataView]",dSe="[object Float32Array]",pSe="[object Float64Array]",gSe="[object Int8Array]",fSe="[object Int16Array]",mSe="[object Int32Array]",ySe="[object Uint8Array]",vSe="[object Uint8ClampedArray]",bSe="[object Uint16Array]",xSe="[object Uint32Array]",Sn={},Sn[dSe]=Sn[pSe]=Sn[gSe]=Sn[fSe]=Sn[mSe]=Sn[ySe]=Sn[vSe]=Sn[bSe]=Sn[xSe]=!0,Sn[ZEe]=Sn[QEe]=Sn[hSe]=Sn[JEe]=Sn[uSe]=Sn[eSe]=Sn[tSe]=Sn[rSe]=Sn[iSe]=Sn[nSe]=Sn[aSe]=Sn[sSe]=Sn[oSe]=Sn[lSe]=Sn[cSe]=!1,s(KEe,"baseIsTypedArray"),kSe=KEe});function TSe(e){return function(t){return e(t)}}f(TSe,"qYe");var i3,ZS=Y(()=>{"use strict";s(TSe,"baseUnary"),i3=TSe}),yz,Iy,wSe,QS,CSe,Kg,vz=Y(()=>{"use strict";_Ce(),yz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Iy=yz&&typeof module=="object"&&module&&!module.nodeType&&module,wSe=Iy&&Iy.exports===yz,QS=wSe&&XF.process,CSe=(function(){try{var e=Iy&&Iy.require&&Iy.require("util").types;return e||QS&&QS.binding&&QS.binding("util")}catch(t){}})(),Kg=CSe}),bz,ESe,n3,JS=Y(()=>{"use strict";R3t(),ZS(),vz(),bz=Kg&&Kg.isTypedArray,ESe=bz?i3(bz):kSe,n3=ESe});function SSe(e,t){var r=pa(e),i=!r&&Yg(e),n=!r&&!i&&Xg(e),a=!r&&!i&&!n&&n3(e),o=r||i||n||a,l=o?FEe(e.length,String):[],h=l.length;for(var u in e)(t||ASe.call(e,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||X4(u,h)))&&l.push(u);return l}f(SSe,"KYe");var _Se,ASe,xz,LSe=Y(()=>{"use strict";_3t(),t3(),Ka(),r3(),US(),JS(),_Se=Object.prototype,ASe=_Se.hasOwnProperty,s(SSe,"arrayLikeKeys"),xz=SSe});function RSe(e,t){return function(r){return e(t(r))}}f(RSe,"ZYe");var kz,ISe=Y(()=>{"use strict";s(RSe,"overArg"),kz=RSe}),DSe,NSe,I3t=Y(()=>{"use strict";ISe(),DSe=kz(Object.keys,Object),NSe=DSe});function MSe(e){if(!e3(e))return NSe(e);var t=[];for(var r in Object(e))$Se.call(e,r)&&r!="constructor"&&t.push(r);return t}f(MSe,"tje");var OSe,$Se,e_,Tz=Y(()=>{"use strict";KS(),I3t(),OSe=Object.prototype,$Se=OSe.hasOwnProperty,s(MSe,"baseKeys"),e_=MSe});function BSe(e){return Dh(e)?xz(e):e_(e)}f(BSe,"rje");var Mo,Sp=Y(()=>{"use strict";LSe(),Tz(),ed(),s(BSe,"keys"),Mo=BSe});function PSe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}f(PSe,"ije");var FSe,D3t=Y(()=>{"use strict";s(PSe,"nativeKeysIn"),FSe=PSe});function zSe(e){if(!No(e))return FSe(e);var t=e3(e),r=[];for(var i in e)i=="constructor"&&(t||!jSe.call(e,i))||r.push(i);return r}f(zSe,"sje");var qSe,jSe,GSe,N3t=Y(()=>{"use strict";Ec(),KS(),D3t(),qSe=Object.prototype,jSe=qSe.hasOwnProperty,s(zSe,"baseKeysIn"),GSe=zSe});function USe(e){return Dh(e)?xz(e,!0):GSe(e)}f(USe,"oje");var _p,Zg=Y(()=>{"use strict";LSe(),N3t(),ed(),s(USe,"keysIn"),_p=USe});function VSe(e,t){if(pa(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Tp(e)?!0:HSe.test(e)||!WSe.test(e)||t!=null&&e in Object(t)}f(VSe,"uje");var WSe,HSe,t_,wz=Y(()=>{"use strict";Ka(),Sy(),WSe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HSe=/^\w*$/,s(VSe,"isKey"),t_=VSe}),YSe,Dy,r_=Y(()=>{"use strict";Wg(),YSe=Ep(Object,"create"),Dy=YSe});function XSe(){this.__data__=Dy?Dy(null):{},this.size=0}f(XSe,"dje");var KSe,M3t=Y(()=>{"use strict";r_(),s(XSe,"hashClear"),KSe=XSe});function ZSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}f(ZSe,"fje");var QSe,O3t=Y(()=>{"use strict";s(ZSe,"hashDelete"),QSe=ZSe});function JSe(e){var t=this.__data__;if(Dy){var r=t[e];return r===e_e?void 0:r}return r_e.call(t,e)?t[e]:void 0}f(JSe,"yje");var e_e,t_e,r_e,i_e,$3t=Y(()=>{"use strict";r_(),e_e="__lodash_hash_undefined__",t_e=Object.prototype,r_e=t_e.hasOwnProperty,s(JSe,"hashGet"),i_e=JSe});function n_e(e){var t=this.__data__;return Dy?t[e]!==void 0:s_e.call(t,e)}f(n_e,"bje");var a_e,s_e,o_e,B3t=Y(()=>{"use strict";r_(),a_e=Object.prototype,s_e=a_e.hasOwnProperty,s(n_e,"hashHas"),o_e=n_e});function l_e(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dy&&t===void 0?c_e:t,this}f(l_e,"Cje");var c_e,h_e,P3t=Y(()=>{"use strict";r_(),c_e="__lodash_hash_undefined__",s(l_e,"hashSet"),h_e=l_e});function Qg(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(Qg,"Ig");var Cz,F3t=Y(()=>{"use strict";M3t(),O3t(),$3t(),B3t(),P3t(),s(Qg,"Hash"),Qg.prototype.clear=KSe,Qg.prototype.delete=QSe,Qg.prototype.get=i_e,Qg.prototype.has=o_e,Qg.prototype.set=h_e,Cz=Qg});function u_e(){this.__data__=[],this.size=0}f(u_e,"kje");var d_e,z3t=Y(()=>{"use strict";s(u_e,"listCacheClear"),d_e=u_e});function p_e(e,t){for(var r=e.length;r--;)if(Hg(e[r][0],t))return r;return-1}f(p_e,"wje");var a3,i_=Y(()=>{"use strict";Ay(),s(p_e,"assocIndexOf"),a3=p_e});function g_e(e){var t=this.__data__,r=a3(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():m_e.call(t,r,1),--this.size,!0}f(g_e,"Aje");var f_e,m_e,y_e,q3t=Y(()=>{"use strict";i_(),f_e=Array.prototype,m_e=f_e.splice,s(g_e,"listCacheDelete"),y_e=g_e});function v_e(e){var t=this.__data__,r=a3(t,e);return r<0?void 0:t[r][1]}f(v_e,"_je");
571var b_e,j3t=Y(()=>{"use strict";i_(),s(v_e,"listCacheGet"),b_e=v_e});function x_e(e){return a3(this.__data__,e)>-1}f(x_e,"Dje");var k_e,G3t=Y(()=>{"use strict";i_(),s(x_e,"listCacheHas"),k_e=x_e});function T_e(e,t){var r=this.__data__,i=a3(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}f(T_e,"Rje");var w_e,U3t=Y(()=>{"use strict";i_(),s(T_e,"listCacheSet"),w_e=T_e});function Jg(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(Jg,"Og");var s3,n_=Y(()=>{"use strict";z3t(),q3t(),j3t(),G3t(),U3t(),s(Jg,"ListCache"),Jg.prototype.clear=d_e,Jg.prototype.delete=y_e,Jg.prototype.get=b_e,Jg.prototype.has=k_e,Jg.prototype.set=w_e,s3=Jg}),C_e,Ny,Ez=Y(()=>{"use strict";Wg(),Cc(),C_e=Ep(Ol,"Map"),Ny=C_e});function E_e(){this.size=0,this.__data__={hash:new Cz,map:new(Ny||s3),string:new Cz}}f(E_e,"Mje");var S_e,V3t=Y(()=>{"use strict";F3t(),n_(),Ez(),s(E_e,"mapCacheClear"),S_e=E_e});function __e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}f(__e,"Nje");var A_e,W3t=Y(()=>{"use strict";s(__e,"isKeyable"),A_e=__e});function L_e(e,t){var r=e.__data__;return A_e(t)?r[typeof t=="string"?"string":"hash"]:r.map}f(L_e,"Ije");var o3,a_=Y(()=>{"use strict";W3t(),s(L_e,"getMapData"),o3=L_e});function R_e(e){var t=o3(this,e).delete(e);return this.size-=t?1:0,t}f(R_e,"Oje");var I_e,H3t=Y(()=>{"use strict";a_(),s(R_e,"mapCacheDelete"),I_e=R_e});function D_e(e){return o3(this,e).get(e)}f(D_e,"Pje");var N_e,Y3t=Y(()=>{"use strict";a_(),s(D_e,"mapCacheGet"),N_e=D_e});function M_e(e){return o3(this,e).has(e)}f(M_e,"Bje");var O_e,X3t=Y(()=>{"use strict";a_(),s(M_e,"mapCacheHas"),O_e=M_e});function $_e(e,t){var r=o3(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}f($_e,"Fje");var B_e,K3t=Y(()=>{"use strict";a_(),s($_e,"mapCacheSet"),B_e=$_e});function ef(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(ef,"Pg");var l3,Sz=Y(()=>{"use strict";V3t(),H3t(),Y3t(),X3t(),K3t(),s(ef,"MapCache"),ef.prototype.clear=S_e,ef.prototype.delete=I_e,ef.prototype.get=N_e,ef.prototype.has=O_e,ef.prototype.set=B_e,l3=ef});function s_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(P_e);var r=s(function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o},"memoized");return r.cache=new(s_.Cache||l3),r}f(s_,"tI");var P_e,F_e,Z3t=Y(()=>{"use strict";Sz(),P_e="Expected a function",s(s_,"memoize"),s_.Cache=l3,F_e=s_});function z_e(e){var t=F_e(e,function(i){return r.size===q_e&&r.clear(),i}),r=t.cache;return t}f(z_e,"Gje");var q_e,j_e,Q3t=Y(()=>{"use strict";Z3t(),q_e=500,s(z_e,"memoizeCapped"),j_e=z_e}),G_e,U_e,V_e,W_e,J3t=Y(()=>{"use strict";Q3t(),G_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U_e=/\\(\\)?/g,V_e=j_e(function(e){var t=[];
571return e.charCodeAt(0)===46&&t.push(""),e.replace(G_e,function(r,i,n,a){t.push(n?a.replace(U_e,"$1"):i||r)}),t}),W_e=V_e});function H_e(e){return e==null?"":YCe(e)}f(H_e,"Uje");var _z,Y_e=Y(()=>{"use strict";o3t(),s(H_e,"toString"),_z=H_e});function X_e(e,t){return pa(e)?e:t_(e,t)?[e]:W_e(_z(e))}f(X_e,"Hje");var c3,o_=Y(()=>{"use strict";Ka(),wz(),J3t(),Y_e(),s(X_e,"castPath"),c3=X_e});function K_e(e){if(typeof e=="string"||Tp(e))return e;var t=e+"";return t=="0"&&1/e==-Z_e?"-0":t}f(K_e,"jje");var Z_e,My,h3=Y(()=>{"use strict";Sy(),Z_e=1/0,s(K_e,"toKey"),My=K_e});function Q_e(e,t){t=c3(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[My(t[r++])];return r&&r==i?e:void 0}f(Q_e,"Xje");var u3,l_=Y(()=>{"use strict";o_(),h3(),s(Q_e,"baseGet"),u3=Q_e});function J_e(e,t,r){var i=e==null?void 0:u3(e,t);return i===void 0?r:i}f(J_e,"Kje");var e7e,ekt=Y(()=>{"use strict";l_(),s(J_e,"get"),e7e=J_e});function t7e(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}f(t7e,"Zje");var c_,Az=Y(()=>{"use strict";s(t7e,"arrayPush"),c_=t7e});function r7e(e){return pa(e)||Yg(e)||!!(Lz&&e&&e[Lz])}f(r7e,"Qje");var Lz,i7e,tkt=Y(()=>{"use strict";Cy(),t3(),Ka(),Lz=al?al.isConcatSpreadable:void 0,s(r7e,"isFlattenable"),i7e=r7e});function Rz(e,t,r,i,n){var a=-1,o=e.length;for(r||(r=i7e),n||(n=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?Rz(l,t-1,r,i,n):c_(n,l):i||(n[n.length]=l)}return n}f(Rz,"ele");var h_,Iz=Y(()=>{"use strict";Az(),tkt(),s(Rz,"baseFlatten"),h_=Rz});function n7e(e){var t=e==null?0:e.length;return t?h_(e,1):[]}f(n7e,"Jje");var tf,a7e=Y(()=>{"use strict";Iz(),s(n7e,"flatten"),tf=n7e});function s7e(e){return sz(hz(e,void 0,tf),e+"")}f(s7e,"eXe");var o7e,rkt=Y(()=>{"use strict";a7e(),AEe(),aEe(),s(s7e,"flatRest"),o7e=s7e}),l7e,u_,Dz=Y(()=>{"use strict";ISe(),l7e=kz(Object.getPrototypeOf,Object),u_=l7e});function c7e(e){if(!$l(e)||Qu(e)!=h7e)return!1;var t=u_(e);if(t===null)return!0;var r=p7e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Nz.call(r)==g7e}f(c7e,"oXe");var h7e,u7e,d7e,Nz,p7e,g7e,f7e,ikt=Y(()=>{"use strict";Gg(),Dz(),Ih(),h7e="[object Object]",u7e=Function.prototype,d7e=Object.prototype,Nz=u7e.toString,p7e=d7e.hasOwnProperty,g7e=Nz.call(Object),s(c7e,"isPlainObject"),f7e=c7e});function m7e(e){return C7e.test(e)}f(m7e,"gXe");var y7e,v7e,b7e,x7e,k7e,T7e,w7e,C7e,E7e,nkt=Y(()=>{"use strict";y7e="\\ud800-\\udfff",v7e="\\u0300-\\u036f",b7e="\\ufe20-\\ufe2f",x7e="\\u20d0-\\u20ff",k7e=v7e+b7e+x7e,T7e="\\ufe0e\\ufe0f",w7e="\\u200d",C7e=RegExp("["+w7e+y7e+k7e+T7e+"]"),s(m7e,"hasUnicode"),E7e=m7e});function S7e(e,t,r,i){var n=-1,a=e==null?0:e.length;for(i&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r}f(S7e,"yXe");var _7e,akt=Y(()=>{"use strict";s(S7e,"arrayReduce"),_7e=S7e});function A7e(){this.__data__=new s3,this.size=0}f(A7e,"vXe");var L7e,skt=Y(()=>{"use strict";n_(),s(A7e,"stackClear"),L7e=A7e});function R7e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}f(R7e,"xXe");var I7e,okt=Y(()=>{"use strict";s(R7e,"stackDelete"),I7e=R7e});function D7e(e){return this.__data__.get(e)}f(D7e,"bXe");var N7e,lkt=Y(()=>{"use strict";s(D7e,"stackGet"),N7e=D7e});function M7e(e){return this.__data__.has(e)}f(M7e,"TXe");var O7e,ckt=Y(()=>{"use strict";s(M7e,"stackHas"),O7e=M7e});function $7e(e,t){var r=this.__data__;if(r instanceof s3){var i=r.__data__;if(!Ny||i.length<B7e-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new l3(i)}return r.set(e,t),this.size=r.size,this}f($7e,"kXe");var B7e,P7e,hkt=Y(()=>{"use strict";n_(),Ez(),Sz(),B7e=200,s($7e,"stackSet"),P7e=$7e});function rf(e){var t=this.__data__=new s3(e);this.size=t.size}f(rf,"Gg");var nf,d_=Y(()=>{"use strict";n_(),skt(),okt(),lkt(),ckt(),hkt(),s(rf,"Stack"),rf.prototype.clear=L7e,rf.prototype.delete=I7e,rf.prototype.get=N7e,rf.prototype.has=O7e,rf.prototype.set=P7e,nf=rf});function F7e(e,t){return e&&Ly(t,Mo(t),e)}f(F7e,"wXe");var z7e,ukt=Y(()=>{"use strict";Q4(),Sp(),s(F7e,"baseAssign"),z7e=F7e});function q7e(e,t){return e&&Ly(t,_p(t),e)}f(q7e,"SXe");var j7e,dkt=Y(()=>{"use strict";Q4(),Zg(),s(q7e,"baseAssignIn"),j7e=q7e});function G7e(e,t){if(t)return e.slice();var r=e.length,i=Bz?Bz(r):new e.constructor(r);return e.copy(i),i}f(G7e,"AXe");var Mz,Oz,U7e,$z,Bz,Pz,V7e=Y(()=>{"use strict";Cc(),Mz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oz=Mz&&typeof module=="object"&&module&&!module.nodeType&&module,U7e=Oz&&Oz.exports===Mz,$z=U7e?Ol.Buffer:void 0,Bz=$z?$z.allocUnsafe:void 0,s(G7e,"cloneBuffer"),Pz=G7e});function W7e(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[n++]=o)}return a}f(W7e,"_Xe");var Fz,H7e=Y(()=>{"use strict";s(W7e,"arrayFilter"),Fz=W7e});function Y7e(){return[]}f(Y7e,"DXe");var zz,X7e=Y(()=>{"use strict";s(Y7e,"stubArray"),zz=Y7e}),K7e,Z7e,qz,Q7e,p_,jz=Y(()=>{"use strict";H7e(),X7e(),K7e=Object.prototype,Z7e=K7e.propertyIsEnumerable,qz=Object.getOwnPropertySymbols,Q7e=qz?function(e){return e==null?[]:(e=Object(e),Fz(qz(e),function(t){return Z7e.call(e,t)}))}:zz,p_=Q7e});function J7e(e,t){return Ly(e,p_(e),t)}f(J7e,"NXe");var eAe,pkt=Y(()=>{"use strict";Q4(),jz(),s(J7e,"copySymbols"),eAe=J7e}),tAe,rAe,Gz,iAe=Y(()=>{"use strict";Az(),Dz(),jz(),X7e(),tAe=Object.getOwnPropertySymbols,rAe=tAe?function(e){for(var t=[];e;)c_(t,p_(e)),e=u_(e);return t}:zz,Gz=rAe});function nAe(e,t){return Ly(e,Gz(e),t)}f(nAe,"PXe");var aAe,gkt=Y(()=>{"use strict";Q4(),iAe(),s(nAe,"copySymbolsIn"),aAe=nAe});function sAe(e,t,r){var i=t(e);return pa(e)?i:c_(i,r(e))}f(sAe,"BXe");var Uz,oAe=Y(()=>{"use strict";Az(),Ka(),s(sAe,"baseGetAllKeys"),Uz=sAe});function lAe(e){return Uz(e,Mo,p_)}f(lAe,"FXe");var g_,cAe=Y(()=>{"use strict";oAe(),jz(),Sp(),s(lAe,"getAllKeys"),g_=lAe});function hAe(e){return Uz(e,_p,Gz)}f(hAe,"$Xe");var uAe,fkt=Y(()=>{"use strict";oAe(),iAe(),Zg(),s(hAe,"getAllKeysIn"),uAe=hAe}),dAe,f_,mkt=Y(()=>{"use strict";Wg(),Cc(),dAe=Ep(Ol,"DataView"),f_=dAe}),pAe,m_,ykt=Y(()=>{"use strict";Wg(),Cc(),pAe=Ep(Ol,"Promise"),m_=pAe}),gAe,af,fAe=Y(()=>{"use strict";Wg(),Cc(),gAe=Ep(Ol,"Set"),af=gAe}),Vz,mAe,Wz,Hz,Yz,Xz,yAe,vAe,bAe,xAe,kAe,Ap,Lp,Oy=Y(()=>{"use strict";mkt(),Ez(),ykt(),fAe(),m3t(),Gg(),E6e(),Vz="[object Map]",mAe="[object Object]",Wz="[object Promise]",Hz="[object Set]",Yz="[object WeakMap]",Xz="[object DataView]",yAe=Cp(f_),vAe=Cp(Ny),bAe=Cp(m_),xAe=Cp(af),kAe=Cp(GS),Ap=Qu,(f_&&Ap(new f_(new ArrayBuffer(1)))!=Xz||Ny&&Ap(new Ny)!=Vz||m_&&Ap(m_.resolve())!=Wz||af&&Ap(new af)!=Hz||GS&&Ap(new GS)!=Yz)&&(Ap=s(function(e){var t=Qu(e),r=t==mAe?e.constructor:void 0,i=r?Cp(r):"";if(i)switch(i){case yAe:return Xz;case vAe:return Vz;case bAe:return Wz;case xAe:return Hz;case kAe:return Yz}return t},"getTag")),Lp=Ap});function TAe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&CAe.call(e,"index")&&(r.index=e.index,r.input
571=e.input),r}f(TAe,"ZXe");var wAe,CAe,EAe,vkt=Y(()=>{"use strict";wAe=Object.prototype,CAe=wAe.hasOwnProperty,s(TAe,"initCloneArray"),EAe=TAe}),SAe,d3,_Ae=Y(()=>{"use strict";Cc(),SAe=Ol.Uint8Array,d3=SAe});function AAe(e){var t=new e.constructor(e.byteLength);return new d3(t).set(new d3(e)),t}f(AAe,"JXe");var y_,Kz=Y(()=>{"use strict";_Ae(),s(AAe,"cloneArrayBuffer"),y_=AAe});function LAe(e,t){var r=t?y_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}f(LAe,"eKe");var RAe,bkt=Y(()=>{"use strict";Kz(),s(LAe,"cloneDataView"),RAe=LAe});function IAe(e){var t=new e.constructor(e.source,DAe.exec(e));return t.lastIndex=e.lastIndex,t}f(IAe,"rKe");var DAe,NAe,xkt=Y(()=>{"use strict";DAe=/\w*$/,s(IAe,"cloneRegExp"),NAe=IAe});function MAe(e){return Qz?Object(Qz.call(e)):{}}f(MAe,"iKe");var Zz,Qz,OAe,kkt=Y(()=>{"use strict";Cy(),Zz=al?al.prototype:void 0,Qz=Zz?Zz.valueOf:void 0,s(MAe,"cloneSymbol"),OAe=MAe});function $Ae(e,t){var r=t?y_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}f($Ae,"nKe");var Jz,BAe=Y(()=>{"use strict";Kz(),s($Ae,"cloneTypedArray"),Jz=$Ae});function PAe(e,t,r){var i=e.constructor;switch(t){case HAe:return y_(e);case FAe:case zAe:return new i(+e);case YAe:return RAe(e,r);case XAe:case KAe:case ZAe:case QAe:case JAe:case e8e:case t8e:case r8e:case i8e:return Jz(e,r);case qAe:return new i;case jAe:case VAe:return new i(e);case GAe:return NAe(e);case UAe:return new i;case WAe:return OAe(e)}}f(PAe,"wKe");var FAe,zAe,qAe,jAe,GAe,UAe,VAe,WAe,HAe,YAe,XAe,KAe,ZAe,QAe,JAe,e8e,t8e,r8e,i8e,n8e,Tkt=Y(()=>{"use strict";Kz(),bkt(),xkt(),kkt(),BAe(),FAe="[object Boolean]",zAe="[object Date]",qAe="[object Map]",jAe="[object Number]",GAe="[object RegExp]",UAe="[object Set]",VAe="[object String]",WAe="[object Symbol]",HAe="[object ArrayBuffer]",YAe="[object DataView]",XAe="[object Float32Array]",KAe="[object Float64Array]",ZAe="[object Int8Array]",QAe="[object Int16Array]",JAe="[object Int32Array]",e8e="[object Uint8Array]",t8e="[object Uint8ClampedArray]",r8e="[object Uint16Array]",i8e="[object Uint32Array]",s(PAe,"initCloneByTag"),n8e=PAe});function a8e(e){return typeof e.constructor=="function"&&!e3(e)?z6e(u_(e)):{}}f(a8e,"SKe");var eq,s8e=Y(()=>{"use strict";y3t(),Dz(),KS(),s(a8e,"initCloneObject"),eq=a8e});function o8e(e){return $l(e)&&Lp(e)==l8e}f(o8e,"AKe");var l8e,c8e,wkt=Y(()=>{"use strict";Oy(),Ih(),l8e="[object Map]",s(o8e,"baseIsMap"),c8e=o8e}),tq,h8e,u8e,Ckt=Y(()=>{"use strict";wkt(),ZS(),vz(),tq=Kg&&Kg.isMap,h8e=tq?i3(tq):c8e,u8e=h8e});function d8e(e){return $l(e)&&Lp(e)==p8e}f(d8e,"RKe");var p8e,g8e,Ekt=Y(()=>{"use strict";Oy(),Ih(),p8e="[object Set]",s(d8e,"baseIsSet"),g8e=d8e}),rq,f8e,m8e,Skt=Y(()=>{"use strict";Ekt(),ZS(),vz(),rq=Kg&&Kg.isSet,f8e=rq?i3(rq):g8e,m8e=f8e});function p3(e,t,r,i,n,a){var o,l=t&y8e,h=t&v8e,u=t&b8e;if(r&&(o=n?r(e,i,n,a):r(e)),o!==void 0)return o;if(!No(e))return e;var d=pa(e);if(d){if(o=EAe(e),!l)return az(e,o)}else{var p=Lp(e),g=p==nq||p==C8e;if(Xg(e))return Pz(e,l);if(p==aq||p==iq||g&&!n){if(o=h||g?{}:eq(e),!l)return h?aAe(e,j7e(o,e)):eAe(e,z7e(o,e))}else{if(!dn[p])return n?e:{};o=n8e(e,p,l)}}a||(a=new nf);var m=a.get(e);if(m)return m;a.set(e,o),m8e(e)?e.forEach(function(C){o.add(p3(C,t,r,C,e,a))}):u8e(e)&&e.forEach(function(C,w){o.set(w,p3(C,t,r,w,e,a))});var y=u?h?uAe:g_:h?_p:Mo,x=d?void 0:y(e);return oz(x||e,function(C,w){x&&(w=C,C=e[w]),Z4(o,w,p3(C,t,r,w,e,a))}),o}f(p3,"LS");var y8e,v8e,b8e,iq,x8e,k8e,T8e,w8e,nq,C8e,E8e,S8e,aq,_8e,A8e,L8e,R8e,I8e,D8e,N8e,M8e,O8e,$8e,B8e,P8e,F8e,z8e,q8e,j8e,dn,sq,G8e=Y(()=>{"use strict";d_(),oEe(),WS(),ukt(),dkt(),V7e(),W6e(),pkt(),gkt(),cAe(),fkt(),Oy(),vkt(),Tkt(),s8e(),Ka(),r3(),Ckt(),Ec(),Skt(),Sp(),Zg(),y8e=1,v8e=2,b8e=4,iq="[object Arguments]",x8e="[object Array]",k8e="[object Boolean]",T8e="[object Date]",w8e="[object Error]",nq="[object Function]",C8e="[object GeneratorFunction]",E8e="[object Map]",S8e="[object Number]",aq="[object Object]",_8e="[object RegExp]",A8e="[object Set]",L8e="[object String]",R8e="[object Symbol]",I8e="[object WeakMap]",D8e="[object ArrayBuffer]",N8e="[object DataView]",M8e="[object Float32Array]",O8e="[object Float64Array
571]",$8e="[object Int8Array]",B8e="[object Int16Array]",P8e="[object Int32Array]",F8e="[object Uint8Array]",z8e="[object Uint8ClampedArray]",q8e="[object Uint16Array]",j8e="[object Uint32Array]",dn={},dn[iq]=dn[x8e]=dn[D8e]=dn[N8e]=dn[k8e]=dn[T8e]=dn[M8e]=dn[O8e]=dn[$8e]=dn[B8e]=dn[P8e]=dn[E8e]=dn[S8e]=dn[aq]=dn[_8e]=dn[A8e]=dn[L8e]=dn[R8e]=dn[F8e]=dn[z8e]=dn[q8e]=dn[j8e]=!0,dn[w8e]=dn[nq]=dn[I8e]=!1,s(p3,"baseClone"),sq=p3});function U8e(e){return sq(e,V8e)}f(U8e,"aZe");var V8e,W8e,_kt=Y(()=>{"use strict";G8e(),V8e=4,s(U8e,"clone"),W8e=U8e});function H8e(e){return sq(e,Y8e|X8e)}f(H8e,"lZe");var Y8e,X8e,K8e,Akt=Y(()=>{"use strict";G8e(),Y8e=1,X8e=4,s(H8e,"cloneDeep"),K8e=H8e});function Z8e(e){return this.__data__.set(e,Q8e),this}f(Z8e,"uZe");var Q8e,J8e,Lkt=Y(()=>{"use strict";Q8e="__lodash_hash_undefined__",s(Z8e,"setCacheAdd"),J8e=Z8e});function e9e(e){return this.__data__.has(e)}f(e9e,"hZe");var t9e,Rkt=Y(()=>{"use strict";s(e9e,"setCacheHas"),t9e=e9e});function g3(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new l3;++t<r;)this.add(e[t])}f(g3,"NS");var oq,r9e=Y(()=>{"use strict";Sz(),Lkt(),Rkt(),s(g3,"SetCache"),g3.prototype.add=g3.prototype.push=J8e,g3.prototype.has=t9e,oq=g3});function i9e(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}f(i9e,"dZe");var n9e,Ikt=Y(()=>{"use strict";s(i9e,"arraySome"),n9e=i9e});function a9e(e,t){return e.has(t)}f(a9e,"fZe");var lq,s9e=Y(()=>{"use strict";s(a9e,"cacheHas"),lq=a9e});function o9e(e,t,r,i,n,a){var o=r&l9e,l=e.length,h=t.length;if(l!=h&&!(o&&h>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,g=!0,m=r&c9e?new oq:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var y=e[p],x=t[p];if(i)var C=o?i(x,y,p,t,e,a):i(y,x,p,e,t,a);if(C!==void 0){if(C)continue;g=!1;break}if(m){if(!n9e(t,function(w,_){if(!lq(m,_)&&(y===w||n(y,w,r,i,a)))return m.push(_)})){g=!1;break}}else if(!(y===x||n(y,x,r,i,a))){g=!1;break}}return a.delete(e),a.delete(t),g}f(o9e,"gZe");var l9e,c9e,cq,h9e=Y(()=>{"use strict";r9e(),Ikt(),s9e(),l9e=1,c9e=2,s(o9e,"equalArrays"),cq=o9e});function u9e(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}f(u9e,"yZe");var d9e,Dkt=Y(()=>{"use strict";s(u9e,"mapToArray"),d9e=u9e});function p9e(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}f(p9e,"vZe");var v_,hq=Y(()=>{"use strict";s(p9e,"setToArray"),v_=p9e});function g9e(e,t,r,i,n,a,o){switch(r){case _9e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S9e:return!(e.byteLength!=t.byteLength||!a(new d3(e),new d3(t)));case y9e:case v9e:case k9e:return Hg(+e,+t);case b9e:return e.name==t.name&&e.message==t.message;case T9e:case C9e:return e==t+"";case x9e:var l=d9e;case w9e:var h=i&f9e;if(l||(l=v_),e.size!=t.size&&!h)return!1;var u=o.get(e);if(u)return u==t;i|=m9e,o.set(e,t);var d=cq(l(e),l(t),i,n,a,o);return o.delete(e),d;case E9e:if(b_)return b_.call(e)==b_.call(t)}return!1}f(g9e,"MZe");var f9e,m9e,y9e,v9e,b9e,x9e,k9e,T9e,w9e,C9e,E9e,S9e,_9e,uq,b_,A9e,Nkt=Y(()=>{"use strict";Cy(),_Ae(),Ay(),h9e(),Dkt(),hq(),f9e=1,m9e=2,y9e="[object Boolean]",v9e="[object Date]",b9e="[object Error]",x9e="[object Map]",k9e="[object Number]",T9e="[object RegExp]",w9e="[object Set]",C9e="[object String]",E9e="[object Symbol]",S9e="[object ArrayBuffer]",_9e="[object DataView]",uq=al?al.prototype:void 0,b_=uq?uq.valueOf:void 0,s(g9e,"equalByTag"),A9e=g9e});function L9e(e,t,r,i,n,a){var o=r&R9e,l=g_(e),h=l.length,u=g_(t),d=u.length;if(h!=d&&!o)return!1;for(var p=h;p--;){var g=l[p];if(!(o?g in t:D9e.call(t,g)))return!1}var m=a.get(e),y=a.get(t);if(m&&y)return m==t&&y==e;var x=!0;a.set(e,t),a.set(t,e);for(var C=o;++p<h;){g=l[p];var w=e[g],_=t[g];if(i)var S=o?i(_,w,g,t,e,a):i(w,_,g,e,t,a);if(!(S===void 0?w===_||n(w,_,r,i,a):S)){x=!1;break}C||(C=g=="constructor")}if(x&&!C){var R=e.constructor,b=t.constructor;R!=b&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof b=="function"&&b instanceof b)&&(x=!1)}return a.delete(e),a.delete(t),x}f(L9e,"PZe");var R9e,I9e,D9e,N9e,Mkt=Y(()=>{"use strict";cAe(),R9e=1,I9e=Object.prototype,D9e=I9e.hasOwnProperty,s(L9e,"equalObjects"),N9e=L9e});function M9e(e,t,r,i,n,a){var o=pa(e),l=pa(t),h=o?pq:Lp(e),u=l?pq:Lp(t);h=h==dq?f3:h,u=u==dq?f3:u;var d=h==f3,p=u==f3,g=h==u;if(g&&Xg(e)){if(!Xg(t))return!1;o=!0,d=!1}if(g&&!d)return a||(a=new nf),o||n3(e)?cq(e,t,r,i,n,a):A9e(e,t,h,r,i,n,a);if(!(r&O9e)){var m=d&&gq.call(e,"__wrapped__"),y=p&&gq.call(t,"__wrapped__");
571if(m||y){var x=m?e.value():e,C=y?t.value():t;return a||(a=new nf),n(x,C,r,i,a)}}return g?(a||(a=new nf),N9e(e,t,r,i,n,a)):!1}f(M9e,"$Ze");var O9e,dq,pq,f3,$9e,gq,B9e,Okt=Y(()=>{"use strict";d_(),h9e(),Nkt(),Mkt(),Oy(),Ka(),r3(),JS(),O9e=1,dq="[object Arguments]",pq="[object Array]",f3="[object Object]",$9e=Object.prototype,gq=$9e.hasOwnProperty,s(M9e,"baseIsEqualDeep"),B9e=M9e});function fq(e,t,r,i,n){return e===t?!0:e==null||t==null||!$l(e)&&!$l(t)?e!==e&&t!==t:B9e(e,t,r,i,fq,n)}f(fq,"Nce");var mq,P9e=Y(()=>{"use strict";Okt(),Ih(),s(fq,"baseIsEqual"),mq=fq});function F9e(e,t,r,i){var n=r.length,a=n,o=!i;if(e==null)return!a;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<a;){l=r[n];var h=l[0],u=e[h],d=l[1];if(o&&l[2]){if(u===void 0&&!(h in e))return!1}else{var p=new nf;if(i)var g=i(u,d,h,e,t,p);if(!(g===void 0?mq(d,u,z9e|q9e,i,p):g))return!1}}return!0}f(F9e,"VZe");var z9e,q9e,j9e,$kt=Y(()=>{"use strict";d_(),P9e(),z9e=1,q9e=2,s(F9e,"baseIsMatch"),j9e=F9e});function G9e(e){return e===e&&!No(e)}f(G9e,"WZe");var yq,U9e=Y(()=>{"use strict";Ec(),s(G9e,"isStrictComparable"),yq=G9e});function V9e(e){for(var t=Mo(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,yq(n)]}return t}f(V9e,"qZe");var W9e,Bkt=Y(()=>{"use strict";U9e(),Sp(),s(V9e,"getMatchData"),W9e=V9e});function H9e(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}f(H9e,"UZe");var vq,Y9e=Y(()=>{"use strict";s(H9e,"matchesStrictComparable"),vq=H9e});function X9e(e){var t=W9e(e);return t.length==1&&t[0][2]?vq(t[0][0],t[0][1]):function(r){return r===e||j9e(r,e,t)}}f(X9e,"HZe");var K9e,Pkt=Y(()=>{"use strict";$kt(),Bkt(),Y9e(),s(X9e,"baseMatches"),K9e=X9e});function Z9e(e,t){return e!=null&&t in Object(e)}f(Z9e,"YZe");var Q9e,Fkt=Y(()=>{"use strict";s(Z9e,"baseHasIn"),Q9e=Z9e});function J9e(e,t,r){t=c3(t,e);for(var i=-1,n=t.length,a=!1;++i<n;){var o=My(t[i]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++i!=n?a:(n=e==null?0:e.length,!!n&&YS(n)&&X4(o,n)&&(pa(e)||Yg(e)))}f(J9e,"jZe");var bq,eLe=Y(()=>{"use strict";o_(),t3(),Ka(),US(),uz(),h3(),s(J9e,"hasPath"),bq=J9e});function tLe(e,t){return e!=null&&bq(e,t,Q9e)}f(tLe,"XZe");var xq,rLe=Y(()=>{"use strict";Fkt(),eLe(),s(tLe,"hasIn"),xq=tLe});function iLe(e,t){return t_(e)&&yq(t)?vq(My(e),t):function(r){var i=e7e(r,e);return i===void 0&&i===t?xq(r,e):mq(t,i,nLe|aLe)}}f(iLe,"QZe");var nLe,aLe,sLe,zkt=Y(()=>{"use strict";P9e(),ekt(),rLe(),wz(),U9e(),Y9e(),h3(),nLe=1,aLe=2,s(iLe,"baseMatchesProperty"),sLe=iLe});function oLe(e){return function(t){return t==null?void 0:t[e]}}f(oLe,"JZe");var kq,lLe=Y(()=>{"use strict";s(oLe,"baseProperty"),kq=oLe});function cLe(e){return function(t){return u3(t,e)}}f(cLe,"eQe");var hLe,qkt=Y(()=>{"use strict";l_(),s(cLe,"basePropertyDeep"),hLe=cLe});function uLe(e){return t_(e)?kq(My(e)):hLe(e)}f(uLe,"tQe");var dLe,jkt=Y(()=>{"use strict";lLe(),qkt(),wz(),h3(),s(uLe,"property"),dLe=uLe});function pLe(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?pa(e)?sLe(e[0],e[1]):K9e(e):dLe(e)}f(pLe,"rQe");var td,Rp=Y(()=>{"use strict";Pkt(),zkt(),Vg(),Ka(),jkt(),s(pLe,"baseIteratee"),td=pLe});function gLe(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),l=o.length;l--;){var h=o[e?l:++n];if(r(a[h],h,a)===!1)break}return t}}f(gLe,"iQe");var fLe,Gkt=Y(()=>{"use strict";s(gLe,"createBaseFor"),fLe=gLe}),mLe,x_,Tq=Y(()=>{"use strict";Gkt(),mLe=fLe(),x_=mLe});function yLe(e,t){return e&&x_(e,t,Mo)}f(yLe,"aQe");var k_,wq=Y(()=>{"use strict";Tq(),Sp(),s(yLe,"baseForOwn"),k_=yLe});function vLe(e,t){return function(r,i){if(r==null)return r;if(!Dh(r))return e(r,i);for(var n=r.length,a=t?n:-1,o=Object(r);(t?a--:++a<n)&&i(o[a],a,o)!==!1;);return r}}f(vLe,"sQe");var bLe,Ukt=Y(()=>{"use strict";ed(),s(vLe,"createBaseEach"),bLe=vLe}),xLe,m3,T_=Y(()=>{"use strict";wq(),Ukt(),xLe=bLe(k_),m3=xLe}),kLe,Cq,Vkt=Y(()=>{"use strict";Cc(),kLe=s(function(){return Ol.Date.now()},"now"),Cq=kLe}),Eq,TLe,wLe,CLe,Wkt=Y(()=>{"use strict";HS(),Ay(),XS(),Zg(),Eq=Object.prototype,TLe=Eq.hasOwnProperty,wLe=J4(function(e,t){e=Object(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;for(n&&Ry(t[0],t[1],n)&&(i=1);++r<i;)for(var a=t[r],o=_p(a),l=-1,h=o.length;++l<h;){var u=o[l],d=e[u];(d===void 0||Hg(d,Eq[u])&&!TLe.call(e,u))&&(e[u]=a[u])}return e}),CLe=wLe});function ELe(e,t,r){(r!==void 0&&!Hg(e[t],r)||r===void 0&&!(t in e))&&K4(e,t,r)}f(ELe,"hQe");var w_,SLe=Y(()=>{"use strict";VS(),Ay(),s(ELe,"assignMergeValue"),w_=ELe});
571function _Le(e){return $l(e)&&Dh(e)}f(_Le,"dQe");var Sq,ALe=Y(()=>{"use strict";ed(),Ih(),s(_Le,"isArrayLikeObject"),Sq=_Le});function LLe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}f(LLe,"fQe");var C_,RLe=Y(()=>{"use strict";s(LLe,"safeGet"),C_=LLe});function ILe(e){return Ly(e,_p(e))}f(ILe,"pQe");var DLe,Hkt=Y(()=>{"use strict";Q4(),Zg(),s(ILe,"toPlainObject"),DLe=ILe});function NLe(e,t,r,i,n,a,o){var l=C_(e,r),h=C_(t,r),u=o.get(h);if(u){w_(e,r,u);return}var d=a?a(l,h,r+"",e,t,o):void 0,p=d===void 0;if(p){var g=pa(h),m=!g&&Xg(h),y=!g&&!m&&n3(h);d=h,g||m||y?pa(l)?d=l:Sq(l)?d=az(l):m?(p=!1,d=Pz(h,!0)):y?(p=!1,d=Jz(h,!0)):d=[]:f7e(h)||Yg(h)?(d=l,Yg(l)?d=DLe(l):(!No(l)||_y(l))&&(d=eq(h))):p=!1}p&&(o.set(h,d),n(d,h,i,a,o),o.delete(h)),w_(e,r,d)}f(NLe,"mQe");var MLe,Ykt=Y(()=>{"use strict";SLe(),V7e(),BAe(),W6e(),s8e(),t3(),Ka(),ALe(),r3(),qS(),Ec(),ikt(),JS(),RLe(),Hkt(),s(NLe,"baseMergeDeep"),MLe=NLe});function _q(e,t,r,i,n){e!==t&&x_(t,function(a,o){if(n||(n=new nf),No(a))MLe(e,t,o,r,_q,i,n);else{var l=i?i(C_(e,o),a,o+"",e,t,n):void 0;l===void 0&&(l=a),w_(e,o,l)}},_p)}f(_q,"aue");var OLe,Xkt=Y(()=>{"use strict";d_(),SLe(),Tq(),Ykt(),Ec(),Zg(),RLe(),s(_q,"baseMerge"),OLe=_q});function $Le(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}f($Le,"gQe");var BLe,Kkt=Y(()=>{"use strict";s($Le,"arrayIncludesWith"),BLe=$Le});function PLe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}f(PLe,"yQe");var y3,Zkt=Y(()=>{"use strict";s(PLe,"last"),y3=PLe});function FLe(e){return typeof e=="function"?e:wp}f(FLe,"vQe");var E_,Aq=Y(()=>{"use strict";Vg(),s(FLe,"castFunction"),E_=FLe});function zLe(e,t){var r=pa(e)?oz:m3;return r(e,E_(t))}f(zLe,"xQe");var _t,qLe=Y(()=>{"use strict";oEe(),T_(),Aq(),Ka(),s(zLe,"forEach"),_t=zLe}),Qkt=Y(()=>{"use strict";qLe()});function jLe(e,t){var r=[];return m3(e,function(i,n,a){t(i,n,a)&&r.push(i)}),r}f(jLe,"bQe");var GLe,Jkt=Y(()=>{"use strict";T_(),s(jLe,"baseFilter"),GLe=jLe});function ULe(e,t){var r=pa(e)?Fz:GLe;return r(e,td(t,3))}f(ULe,"TQe");var Nh,eTt=Y(()=>{"use strict";H7e(),Jkt(),Rp(),Ka(),s(ULe,"filter"),Nh=ULe});function VLe(e){return function(t,r,i){var n=Object(t);if(!Dh(t)){var a=td(r,3);t=Mo(t),r=s(function(l){return a(n[l],l,n)},"predicate")}var o=e(t,r,i);return o>-1?n[a?t[o]:o]:void 0}}f(VLe,"CQe");var WLe,tTt=Y(()=>{"use strict";Rp(),ed(),Sp(),s(VLe,"createFind"),WLe=VLe});function HLe(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:d6e(r);return n<0&&(n=YLe(i+n,0)),lz(e,td(t,3),n)}f(HLe,"wQe");var YLe,XLe,rTt=Y(()=>{"use strict";cEe(),Rp(),u3t(),YLe=Math.max,s(HLe,"findIndex"),XLe=HLe}),KLe,S_,iTt=Y(()=>{"use strict";tTt(),rTt(),KLe=WLe(XLe),S_=KLe});function ZLe(e,t){var r=-1,i=Dh(e)?Array(e.length):[];return m3(e,function(n,a,o){i[++r]=t(n,a,o)}),i}f(ZLe,"EQe");var Lq,QLe=Y(()=>{"use strict";T_(),ed(),s(ZLe,"baseMap"),Lq=ZLe});function JLe(e,t){var r=pa(e)?Ug:Lq;return r(e,td(t,3))}f(JLe,"AQe");var Ca,nTt=Y(()=>{"use strict";zS(),Rp(),QLe(),Ka(),s(JLe,"map"),Ca=JLe});function eRe(e,t){return e==null?e:x_(e,E_(t),_p)}f(eRe,"_Qe");var tRe,aTt=Y(()=>{"use strict";Tq(),Aq(),Zg(),s(eRe,"forIn"),tRe=eRe});function rRe(e,t){return e&&k_(e,E_(t))}f(rRe,"DQe");var iRe,sTt=Y(()=>{"use strict";wq(),Aq(),s(rRe,"forOwn"),iRe=rRe});function nRe(e,t){return e>t}f(nRe,"RQe");var aRe,oTt=Y(()=>{"use strict";s(nRe,"baseGt"),aRe=nRe});function sRe(e,t){return e!=null&&lRe.call(e,t)}f(sRe,"NQe");var oRe,lRe,cRe,lTt=Y(()=>{"use strict";oRe=Object.prototype,lRe=oRe.hasOwnProperty,s(sRe,"baseHas"),cRe=sRe});function hRe(e,t){return e!=null&&bq(e,t,cRe)}f(hRe,"IQe");var Rq,cTt=Y(()=>{"use strict";lTt(),eLe(),s(hRe,"has"),Rq=hRe});function uRe(e){return typeof e=="string"||!pa(e)&&$l(e)&&Qu(e)==dRe}f(uRe,"PQe");var dRe,pRe,hTt=Y(()=>{"use strict";Gg(),Ka(),Ih(),dRe="[object String]",s(uRe,"isString"),pRe=uRe});function gRe(e,t){return Ug(t,function(r){return e[r]})}f(gRe,"BQe");var fRe,uTt=Y(()=>{"use strict";zS(),s(gRe,"baseValues"),fRe=gRe});function mRe(e){return e==null?[]:fRe(e,Mo(e))}f(mRe,"FQe");var Mh,dTt=Y(()=>{"use strict";uTt(),Sp(),s(mRe,"values"),Mh=mRe});function yRe(e){if(e==null)return!0;
vendor: 4,481 bytes, line 571
571if(Dh(e)&&(pa(e)||typeof e=="string"||typeof e.splice=="function"||Xg(e)||n3(e)||Yg(e)))return!e.length;var t=Lp(e);if(t==vRe||t==bRe)return!e.size;if(e3(e))return!e_(e).length;for(var r in e)if(kRe.call(e,r))return!1;return!0}f(yRe,"WQe");var vRe,bRe,xRe,kRe,Iq,pTt=Y(()=>{"use strict";Tz(),Oy(),t3(),Ka(),ed(),r3(),KS(),JS(),vRe="[object Map]",bRe="[object Set]",xRe=Object.prototype,kRe=xRe.hasOwnProperty,s(yRe,"isEmpty"),Iq=yRe});function TRe(e){return e===void 0}f(TRe,"qQe");var ga,gTt=Y(()=>{"use strict";s(TRe,"isUndefined"),ga=TRe});function wRe(e,t){return e<t}f(wRe,"UQe");var Dq,CRe=Y(()=>{"use strict";s(wRe,"baseLt"),Dq=wRe});function ERe(e,t){var r={};return t=td(t,3),k_(e,function(i,n,a){K4(r,n,t(i,n,a))}),r}f(ERe,"HQe");var v3,fTt=Y(()=>{"use strict";VS(),wq(),Rp(),s(ERe,"mapValues"),v3=ERe});function SRe(e,t,r){for(var i=-1,n=e.length;++i<n;){var a=e[i],o=t(a);if(o!=null&&(l===void 0?o===o&&!Tp(o):r(o,l)))var l=o,h=a}return h}f(SRe,"YQe");var __,Nq=Y(()=>{"use strict";Sy(),s(SRe,"baseExtremum"),__=SRe});function _Re(e){return e&&e.length?__(e,wp,aRe):void 0}f(_Re,"jQe");var Ip,mTt=Y(()=>{"use strict";Nq(),oTt(),Vg(),s(_Re,"max"),Ip=_Re}),ARe,A_,yTt=Y(()=>{"use strict";Xkt(),S3t(),ARe=OEe(function(e,t,r){OLe(e,t,r)}),A_=ARe});function LRe(e){return e&&e.length?__(e,wp,Dq):void 0}f(LRe,"KQe");var $y,vTt=Y(()=>{"use strict";Nq(),CRe(),Vg(),s(LRe,"min"),$y=LRe});function RRe(e,t){return e&&e.length?__(e,td(t,2),Dq):void 0}f(RRe,"ZQe");var L_,bTt=Y(()=>{"use strict";Nq(),Rp(),CRe(),s(RRe,"minBy"),L_=RRe});function IRe(e,t,r,i){if(!No(e))return e;t=c3(t,e);for(var n=-1,a=t.length,o=a-1,l=e;l!=null&&++n<a;){var h=My(t[n]),u=r;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(n!=o){var d=l[h];u=i?i(d,h,l):void 0,u===void 0&&(u=No(d)?d:X4(t[n+1])?[]:{})}Z4(l,h,u),l=l[h]}return e}f(IRe,"QQe");var DRe,xTt=Y(()=>{"use strict";WS(),o_(),US(),Ec(),h3(),s(IRe,"baseSet"),DRe=IRe});function NRe(e,t,r){for(var i=-1,n=t.length,a={};++i<n;){var o=t[i],l=u3(e,o);r(l,o)&&DRe(a,c3(o,e),l)}return a}f(NRe,"JQe");var MRe,kTt=Y(()=>{"use strict";l_(),xTt(),o_(),s(NRe,"basePickBy"),MRe=NRe});function ORe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}f(ORe,"eJe");var $Re,TTt=Y(()=>{"use strict";s(ORe,"baseSortBy"),$Re=ORe});function BRe(e,t){if(e!==t){var r=e!==void 0,i=e===null,n=e===e,a=Tp(e),o=t!==void 0,l=t===null,h=t===t,u=Tp(t);if(!l&&!u&&!a&&e>t||a&&o&&h&&!l&&!u||i&&o&&h||!r&&h||!n)return 1;if(!i&&!a&&!u&&e<t||u&&r&&n&&!i&&!a||l&&r&&n||!o&&n||!h)return-1}return 0}f(BRe,"tJe");var PRe,wTt=Y(()=>{"use strict";Sy(),s(BRe,"compareAscending"),PRe=BRe});function FRe(e,t,r){for(var i=-1,n=e.criteria,a=t.criteria,o=n.length,l=r.length;++i<o;){var h=PRe(n[i],a[i]);if(h){if(i>=l)return h;var u=r[i];return h*(u=="desc"?-1:1)}}return e.index-t.index}f(FRe,"rJe");var zRe,CTt=Y(()=>{"use strict";wTt(),s(FRe,"compareMultiple"),zRe=FRe});function qRe(e,t,r){t.length?t=Ug(t,function(a){return pa(a)?function(o){return u3(o,a.length===1?a[0]:a)}:a}):t=[wp];var i=-1;t=Ug(t,i3(td));var n=Lq(e,function(a,o,l){var h=Ug(t,function(u){return u(a)});return{criteria:h,index:++i,value:a}});return $Re(n,function(a,o){return zRe(a,o,r)})}f(qRe,"iJe");var jRe,ETt=Y(()=>{"use strict";zS(),l_(),Rp(),QLe(),TTt(),ZS(),CTt(),Vg(),Ka(),s(qRe,"baseOrderBy"),jRe=qRe}),GRe,URe,STt=Y(()=>{"use strict";lLe(),GRe=kq("length"),URe=GRe});function VRe(e){for(var t=zq.lastIndex=0;zq.test(e);)++t;return t}f(VRe,"gJe");var Mq,WRe,HRe,YRe,XRe,KRe,ZRe,R_,I_,QRe,Oq,$q,Bq,JRe,Pq,Fq,eIe,tIe,rIe,zq,iIe,_Tt=Y(()=>{"use strict";Mq="\\ud800-\\udfff",WRe="\\u0300-\\u036f",HRe="\\ufe20-\\ufe2f",YRe="\\u20d0-\\u20ff",XRe=WRe+HRe+YRe,KRe="\\ufe0e\\ufe0f",ZRe="["+Mq+"]",R_="["+XRe+"]",I_="\\ud83c[\\udffb-\\udfff]",QRe="(?:"+R_+"|"+I_+")",Oq="[^"+Mq+"]",$q="(?:\\ud83c[\\udde6-\\uddff]){2}",Bq="[\\ud800-\\udbff][\\udc00-\\udfff]",JRe="\\u200d",Pq=QRe+"?",Fq="["+KRe+"]?",eIe="(?:"+JRe+"(?:"+[Oq,$q,Bq].join("|")+")"+Fq+Pq+")*",tIe=Fq+Pq+eIe,rIe="(?:"+[Oq+R_+"?",R_,$q,Bq,ZRe].join("|")+")",zq=RegExp(I_+"(?="+I_+")|"+rIe+tIe,"g"),s(VRe,"unicodeSize"),iIe=VRe});function nIe(e){return E7e(e)?iIe(e):URe(e)}f(nIe,"yJe");var aIe,ATt=Y(()=>{"use strict";STt(),nkt(),_Tt(),s(nIe,"stringSize"),aIe=nIe});function sIe(e,t){return MRe(e,t,function(r,i){return xq(e,i)})}f(sIe,"vJe");var oIe,LTt=Y(()=>{"use strict";kTt(),rLe(),s(sIe,"basePick"),oIe=sIe}),lIe,b3,RTt=Y(()=>{"use strict";LTt(),rkt(),lIe=o7e(function(e,t){return e==null?{}:oIe(e,t)}),b3=lIe});
571function cIe(e,t,r,i){for(var n=-1,a=uIe(hIe((t-e)/(r||1)),0),o=Array(a);a--;)o[i?a:++n]=e,e+=r;return o}f(cIe,"CJe");var hIe,uIe,dIe,ITt=Y(()=>{"use strict";hIe=Math.ceil,uIe=Math.max,s(cIe,"baseRange"),dIe=cIe});function pIe(e){return function(t,r,i){return i&&typeof i!="number"&&Ry(t,r,i)&&(r=i=void 0),t=H4(t),r===void 0?(r=t,t=0):r=H4(r),i=i===void 0?t<r?1:-1:H4(i),dIe(t,r,i,e)}}f(pIe,"kJe");var gIe,DTt=Y(()=>{"use strict";ITt(),XS(),h6e(),s(pIe,"createRange"),gIe=pIe}),fIe,sf,NTt=Y(()=>{"use strict";DTt(),fIe=gIe(),sf=fIe});function mIe(e,t,r,i,n){return n(e,function(a,o,l){r=i?(i=!1,a):t(r,a,o,l)}),r}f(mIe,"SJe");var yIe,MTt=Y(()=>{"use strict";s(mIe,"baseReduce"),yIe=mIe});function vIe(e,t,r){var i=pa(e)?_7e:yIe,n=arguments.length<3;return i(e,td(t,4),r,n,m3)}f(vIe,"EJe");var By,OTt=Y(()=>{"use strict";akt(),T_(),Rp(),MTt(),Ka(),s(vIe,"reduce"),By=vIe});function bIe(e){if(e==null)return 0;if(Dh(e))return pRe(e)?aIe(e):e.length;var t=Lp(e);return t==xIe||t==kIe?e.size:e_(e).length}f(bIe,"DJe");var xIe,kIe,TIe,$Tt=Y(()=>{"use strict";Tz(),Oy(),ed(),hTt(),ATt(),xIe="[object Map]",kIe="[object Set]",s(bIe,"size"),TIe=bIe}),wIe,Py,BTt=Y(()=>{"use strict";Iz(),ETt(),HS(),XS(),wIe=J4(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ry(e,t[0],t[1])?t=[]:r>2&&Ry(t[0],t[1],t[2])&&(t=[t[0]]),jRe(e,h_(t,1),[])}),Py=wIe}),CIe,EIe,SIe,PTt=Y(()=>{"use strict";fAe(),b3t(),hq(),CIe=1/0,EIe=af&&1/v_(new af([,-0]))[1]==CIe?function(e){return new af(e)}:U6e,SIe=EIe});function _Ie(e,t,r){var i=-1,n=yEe,a=e.length,o=!0,l=[],h=l;if(r)o=!1,n=BLe;else if(a>=AIe){var u=t?null:SIe(e);if(u)return v_(u);o=!1,n=lq,h=new oq}else h=t?[]:l;e:for(;++i<a;){var d=e[i],p=t?t(d):d;if(d=r||d!==0?d:0,o&&p===p){for(var g=h.length;g--;)if(h[g]===p)continue e;t&&h.push(p),l.push(d)}else n(h,p,r)||(h!==l&&h.push(p),l.push(d))}return l}f(_Ie,"IJe");var AIe,LIe,FTt=Y(()=>{"use strict";r9e(),E3t(),Kkt(),s9e(),PTt(),hq(),AIe=200,s(_Ie,"baseUniq"),LIe=_Ie}),RIe,IIe,zTt=Y(()=>{"use strict";Iz(),HS(),FTt(),ALe(),RIe=J4(function(e){return LIe(h_(e,1,Sq,!0))}),IIe=RIe});function DIe(e){var t=++NIe;return _z(e)+t}f(DIe,"BJe");var NIe,D_,qTt=Y(()=>{"use strict";Y_e(),NIe=0,s(DIe,"uniqueId"),D_=DIe});function MIe(e,t,r){for(var i=-1,n=e.length,a=t.length,o={};++i<n;){var l=i<a?t[i]:void 0;r(o,e[i],l)}return o}f(MIe,"FJe");
571var OIe,jTt=Y(()=>{"use strict";s(MIe,"baseZipObject"),OIe=MIe});function $Ie(e,t){return OIe(e||[],t||[],Z4)}f($Ie,"$Je");var BIe,GTt=Y(()=>{"use strict";WS(),jTt(),s($Ie,"zipObject"),BIe=$Ie}),rn=Y(()=>{"use strict";_kt(),Akt(),J6e(),Wkt(),Qkt(),eTt(),iTt(),a7e(),qLe(),aTt(),sTt(),cTt(),Ka(),pTt(),qS(),gTt(),Sp(),Zkt(),nTt(),fTt(),mTt(),yTt(),vTt(),bTt(),Vkt(),RTt(),NTt(),OTt(),$Tt(),BTt(),zTt(),qTt(),dTt(),GTt()});function qq(e,t){e[t]?e[t]++:e[t]=1}f(qq,"Ihe");function jq(e,t){--e[t]||delete e[t]}f(jq,"Ohe");function Fy(e,t,r,i){var n=""+t,a=""+r;if(!e&&n>a){var o=n;n=a,a=o}return n+Gq+a+Gq+(ga(i)?FIe:i)}f(Fy,"Db");function PIe(e,t,r,i){var n=""+t,a=""+r;if(!e&&n>a){var o=n;n=a,a=o}var l={v:n,w:a};return i&&(l.name=i),l}f(PIe,"GJe");function N_(e,t){return Fy(e,t.v,t.w,t.name)}f(N_,"zI");var FIe,Dp,Gq,co,Uq=Y(()=>{"use strict";var e;rn(),FIe="\0",Dp="\0",Gq="�",co=(e=class{constructor(r={}){this._isDirected=Object.prototype.hasOwnProperty.call(r,"directed")?r.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(r,"multigraph")?r.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(r,"compound")?r.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Ju(void 0),this._defaultEdgeLabelFn=Ju(void 0),this._nodes={}
vendor: 1,344 bytes, line 571
571,this._isCompound&&(this._parent={},this._children={},this._children[Dp]={}),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(r){return this._label=r,this}graph(){return this._label}setDefaultNodeLabel(r){return _y(r)||(r=Ju(r)),this._defaultNodeLabelFn=r,this}nodeCount(){return this._nodeCount}nodes(){return Mo(this._nodes)}sources(){var r=this;return Nh(this.nodes(),function(i){return Iq(r._in[i])})}sinks(){var r=this;return Nh(this.nodes(),function(i){return Iq(r._out[i])})}setNodes(r,i){var n=arguments,a=this;return _t(r,function(o){n.length>1?a.setNode(o,i):a.setNode(o)}),this}setNode(r,i){return Object.prototype.hasOwnProperty.call(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=i),this):(this._nodes[r]=arguments.length>1?i:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]=Dp,this._children[r]={},this._children[Dp][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)}node(r){return this._nodes[r]}hasNode(r){return Object.prototype.hasOwnProperty.call(this._nodes,r)}removeNode(r){if(Object.prototype.hasOwnProperty.call(this._nodes,r)){var i=s(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");
vendor: 5,308 bytes, line 571
571delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],_t(this.children(r),n=>{this.setParent(n)}),delete this._children[r]),_t(Mo(this._in[r]),i),delete this._in[r],delete this._preds[r],_t(Mo(this._out[r]),i),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this}setParent(r,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ga(i))i=Dp;else{i+="";for(var n=i;!ga(n);n=this.parent(n))if(n===r)throw new Error("Setting "+i+" as parent of "+r+" would create a cycle");this.setNode(i)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=i,this._children[i][r]=!0,this}_removeFromParentsChildList(r){delete this._children[this._parent[r]][r]}parent(r){if(this._isCompound){var i=this._parent[r];if(i!==Dp)return i}}children(r){if(ga(r)&&(r=Dp),this._isCompound){var i=this._children[r];if(i)return Mo(i)}else{if(r===Dp)return this.nodes();if(this.hasNode(r))return[]}}predecessors(r){var i=this._preds[r];if(i)return Mo(i)}successors(r){var i=this._sucs[r];if(i)return Mo(i)}neighbors(r){var i=this.predecessors(r);if(i)return IIe(i,this.successors(r))}isLeaf(r){var i;return this.isDirected()?i=this.successors(r):i=this.neighbors(r),i.length===0}filterNodes(r){var i=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});i.setGraph(this.graph());var n=this;_t(this._nodes,function(l,h){r(h)&&i.setNode(h,l)}),_t(this._edgeObjs,function(l){i.hasNode(l.v)&&i.hasNode(l.w)&&i.setEdge(l,n.edge(l))});var a={};function o(l){var h=n.parent(l);return h===void 0||i.hasNode(h)?(a[l]=h,h):h in a?a[h]:o(h)}return f(o,"a"),s(o,"findParent"),this._isCompound&&_t(i.nodes(),function(l){i.setParent(l,o(l))}),i}setDefaultEdgeLabel(r){return _y(r)||(r=Ju(r)),this._defaultEdgeLabelFn=r,this}edgeCount(){return this._edgeCount}edges(){return Mh(this._edgeObjs)}setPath(r,i){var n=this,a=arguments;return By(r,function(o,l){return a.length>1?n.setEdge(o,l,i):n.setEdge(o,l),l}),this}setEdge(){var r,i,n,a,o=!1,l=arguments[0];typeof l=="object"&&l!==null&&"v"in l?(r=l.v,i=l.w,n=l.name,arguments.length===2&&(a=arguments[1],o=!0)):(r=l,i=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],o=!0)),r=""+r,i=""+i,ga(n)||(n=""+n);var h=Fy(this._isDirected,r,i,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return o&&(this._edgeLabels[h]=a),this;if(!ga(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(i),this._edgeLabels[h]=o?a:this._defaultEdgeLabelFn(r,i,n);var u=PIe(this._isDirected,r,i,n);return r=u.v,i=u.w,Object.freeze(u),this._edgeObjs[h]=u,qq(this._preds[i],r),qq(this._sucs[r],i),this._in[i][h]=u,this._out[r][h]=u,this._edgeCount++,this}edge(r,i,n){var a=arguments.length===1?N_(this._isDirected,arguments[0]):Fy(this._isDirected,r,i,n);return this._edgeLabels[a]}hasEdge(r,i,n){var a=arguments.length===1?N_(this._isDirected,arguments[0]):Fy(this._isDirected,r,i,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(r,i,n){var a=arguments.length===1?N_(this._isDirected,arguments[0]):Fy(this._isDirected,r,i,n),o=this._edgeObjs[a];return o&&(r=o.v,i=o.w,delete this._edgeLabels[a],delete this._edgeObjs[a],jq(this._preds[i],r),jq(this._sucs[r],i),delete this._in[i][a],delete this._out[r][a],this._edgeCount--),this}inEdges(r,i){var n=this._in[r];if(n){var a=Mh(n);return i?Nh(a,function(o){return o.v===i}):a}}outEdges(r,i){var n=this._out[r];if(n){var a=Mh(n);return i?Nh(a,function(o){return o.w===i}):a}}nodeEdges(r,i){var n=this.inEdges(r,i);if(n)return n.concat(this.outEdges(r,i))}},f(e,"ui"),s(e,"Graph"),e),co.prototype._nodeCount=0,co.prototype._edgeCount=0,s(qq,"incrementOrInitEntry"),s(jq,"decrementOrRemoveEntry"),s(Fy,"edgeArgsToId"),s(PIe,"edgeArgsToObj"),s(N_,"edgeObjToId")}),Sc=Y(()=>{"use strict";Uq()});function Vq(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}f(Vq,"Phe");function zIe(e,t){if(e!=="_next"&&e!=="_prev")return t}f(zIe,"VJe");var qIe,UTt=Y(()=>{"use strict";var e;qIe=(e=class{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,i=r._prev;if(i!==r)return Vq(i),i}enqueue(r){var i=this._sentinel;r._prev&&r._next&&Vq(r),r._next=i._next,i._next._prev=r,i._next=r,r._prev=i}toString(){for(var r=[],i=this._sentinel,n=i._prev;n!==i;)r.push(JSON.stringify(n,zIe)),n=n._prev;return"["+r.join(", ")+"]"}},f(e,"i3"),s(e,"List"),e),s(Vq,"unlink"),s(zIe,"filterOutLinks")});function jIe(e,t){if(e.nodeCount()<=1)return[];var r=UIe(e,t||VIe),i=GIe(r.graph,r.buckets,r.zeroIdx);return tf(Ca(i,function(n){return e.outEdges(n.v,n.w)}))}f(jIe,"Fhe");function GIe(e,t,r){for(var i=[],n=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)M_(e,t,r,o);for(;o=n.dequeue();)M_(e,t,r,o);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){i=i.concat(M_(e,t,r,o,!0));break}}}return i}f(GIe,"qJe");function M_(e,t,r,i,n){var a=n?[]:void 0;return _t(e.inEdges(i.v),function(o){var l=e.edge(o),h=e.node(o.v);n&&a.push({v:o.v,w:o.w}),h.out-=l,O_(t,r,h)}),_t(e.outEdges(i.v),function(o){var l=e.edge(o),h=o.w,u=e.node(h);u.in-=l,O_(t,r,u)}),e.removeNode(i.v),a}f(M_,"GI");function UIe(e,t){var r=new co,i=0,n=0;
vendor: 3,538 bytes, line 571
571_t(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),_t(e.edges(),function(l){var h=r.edge(l.v,l.w)||0,u=t(l),d=h+u;r.setEdge(l.v,l.w,d),n=Math.max(n,r.node(l.v).out+=u),i=Math.max(i,r.node(l.w).in+=u)});var a=sf(n+i+3).map(function(){return new qIe}),o=i+1;return _t(r.nodes(),function(l){O_(a,o,r.node(l))}),{graph:r,buckets:a,zeroIdx:o}}f(UIe,"UJe");function O_(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}f(O_,"VI");var VIe,VTt=Y(()=>{"use strict";rn(),Sc(),UTt(),VIe=Ju(1),s(jIe,"greedyFAS"),s(GIe,"doGreedyFAS"),s(M_,"removeNode"),s(UIe,"buildState"),s(O_,"assignBucket")});function WIe(e){var t=e.graph().acyclicer==="greedy"?jIe(e,r(e)):HIe(e);_t(t,function(i){var n=e.edge(i);e.removeEdge(i),n.forwardName=i.name,n.reversed=!0,e.setEdge(i.w,i.v,n,D_("rev"))});function r(i){return function(n){return i.edge(n).weight}}f(r,"r"),s(r,"weightFn")}f(WIe,"zhe");function HIe(e){var t=[],r={},i={};function n(a){Object.prototype.hasOwnProperty.call(i,a)||(i[a]=!0,r[a]=!0,_t(e.outEdges(a),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?t.push(o):n(o.w)}),delete r[a])}return f(n,"n"),s(n,"dfs"),_t(e.nodes(),n),t}f(HIe,"HJe");function YIe(e){_t(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var i=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,i)}})}f(YIe,"Ghe");var XIe=Y(()=>{"use strict";rn(),VTt(),s(WIe,"run"),s(HIe,"dfsFAS"),s(YIe,"undo")});function of(e,t,r,i){var n;do n=D_(i);while(e.hasNode(n));return r.dummy=t,e.setNode(n,r),n}f(of,"Mc");function KIe(e){var t=new co().setGraph(e.graph());return _t(e.nodes(),function(r){t.setNode(r,e.node(r))}),_t(e.edges(),function(r){var i=t.edge(r.v,r.w)||{weight:0,minlen:1},n=e.edge(r);t.setEdge(r.v,r.w,{weight:i.weight+n.weight,minlen:Math.max(i.minlen,n.minlen)})}),t}f(KIe,"Whe");function Wq(e){var t=new co({multigraph:e.isMultigraph()}).setGraph(e.graph());return _t(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),_t(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}f(Wq,"n3");function Hq(e,t){var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,l=e.height/2;if(!n&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var h,u;return Math.abs(a)*o>Math.abs(n)*l?(a<0&&(l=-l),h=l*n/a,u=l):(n<0&&(o=-o),h=o,u=o*a/n),{x:r+h,y:i+u}}f(Hq,"qI");function x3(e){var t=Ca(sf(Xq(e)+1),function(){return[]});return _t(e.nodes(),function(r){var i=e.node(r),n=i.rank;ga(n)||(t[n][i.order]=r)}),t}f(x3,"Nd");function ZIe(e){var t=$y(Ca(e.nodes(),function(r){return e.node(r).rank}));_t(e.nodes(),function(r){var i=e.node(r);Rq(i,"rank")&&(i.rank-=t)})}f(ZIe,"qhe");function QIe(e){var t=$y(Ca(e.nodes(),function(a){return e.node(a).rank})),r=[];_t(e.nodes(),function(a){var o=e.node(a).rank-t;r[o]||(r[o]=[]),r[o].push(a)});var i=0,n=e.graph().nodeRankFactor;_t(r,function(a,o){ga(a)&&o%n!==0?--i:i&&_t(a,function(l){e.node(l).rank+=i})})}f(QIe,"Uhe");function Yq(e,t,r,i){var n={width:0,height:0};return arguments.length>=4&&(n.rank=r,n.order=i),of(e,"border",n,t)}f(Yq,"UI");function Xq(e){return Ip(Ca(e.nodes(),function(t){var r=e.node(t).rank;if(!ga(r))return r}))}f(Xq,"HI");function JIe(e,t){var r={lhs:[],rhs:[]};return _t(e,function(i){t(i)?r.lhs.push(i):r.rhs.push(i)}),r}f(JIe,"Hhe");function eDe(e,t){var r=Cq();try{return t()}finally{console.log(e+" time: "+(Cq()-r)+"ms")}}f(eDe,"Yhe");function tDe(e,t){return t()}f(tDe,"jhe");var rd=Y(()=>{"use strict";rn(),Sc(),s(of,"addDummyNode"),s(KIe,"simplify"),s(Wq,"asNonCompoundGraph"),s(
571Hq,"intersectRect"),s(x3,"buildLayerMatrix"),s(ZIe,"normalizeRanks"),s(QIe,"removeEmptyRanks"),s(Yq,"addBorderNode"),s(Xq,"maxRank"),s(JIe,"partition"),s(eDe,"time"),s(tDe,"notime")});function rDe(e){function t(r){var i=e.children(r),n=e.node(r);if(i.length&&_t(i,t),Object.prototype.hasOwnProperty.call(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var a=n.minRank,o=n.maxRank+1;a<o;++a)Kq(e,"borderLeft","_bl",r,n,a),Kq(e,"borderRight","_br",r,n,a)}}f(t,"t"),s(t,"dfs"),_t(e.children(),t)}f(rDe,"Khe");function Kq(e,t,r,i,n,a){var o={width:0,height:0,rank:a,borderType:t},l=n[t][a-1],h=of(e,"border",o,r);n[t][a]=h,e.setParent(h,i),l&&e.setEdge(l,h,{weight:1})}f(Kq,"Xhe");var WTt=Y(()=>{"use strict";rn(),rd(),s(rDe,"addBorderSegments"),s(Kq,"addBorderNode")});function iDe(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Zq(e)}f(iDe,"Jhe");function nDe(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&aDe(e),(t==="lr"||t==="rl")&&(sDe(e),Zq(e))}f(nDe,"ede");function Zq(e){_t(e.nodes(),function(t){Qq(e.node(t))}),_t(e.edges(),function(t){Qq(e.edge(t))})}f(Zq,"tde");function Qq(e){var t=e.width;e.width=e.height,e.height=t}f(Qq,"Qhe");function aDe(e){_t(e.nodes(),function(t){$_(e.node(t))}),_t(e.edges(),function(t){var r=e.edge(t);_t(r.points,$_),Object.prototype.hasOwnProperty.call(r,"y")&&$_(r)})}f(aDe,"YJe");function $_(e){e.y=-e.y}f($_,"YI");function sDe(e){_t(e.nodes(),function(t){B_(e.node(t))}),_t(e.edges(),function(t){var r=e.edge(t);_t(r.points,B_),Object.prototype.hasOwnProperty.call(r,"x")&&B_(r)})}f(sDe,"jJe");function B_(e){var t=e.x;e.x=e.y,e.y=t}f(B_,"jI");var HTt=Y(()=>{"use strict";rn(),s(iDe,"adjust"),s(nDe,"undo"),s(Zq,"swapWidthHeight"),s(Qq,"swapWidthHeightOne"),s(aDe,"reverseY"),s($_,"reverseYOne"),s(sDe,"swapXY"),s(B_,"swapXYOne")});function oDe(e){e.graph().dummyChains=[],_t(e.edges(),function(t){lDe(e,t)})}f(oDe,"ide");function lDe(e,t){var r=t.v,i=e.node(r).rank,n=t.w,a=e.node(n).rank,o=t.name,l=e.edge(t),h=l.labelRank;if(a!==i+1){e.removeEdge(t);var u=void 0,d,p;for(p=0,++i;i<a;++p,++i)l.points=[],u={width:0,height:0,edgeLabel:l,edgeObj:t,rank:i},d=of(e,"edge",u,"_d"),i===h&&(u.width=l.width,u.height=l.height,u.dummy="edge-label",u.labelpos=l.labelpos),e.setEdge(r,d,{weight:l.weight},o),p===0&&e.graph().dummyChains.push(d),r=d;e.setEdge(r,n,{weight:l.weight},o)}}f(lDe,"KJe");function cDe(e){_t(e.graph().dummyChains,function(t){var r=e.node(t),i=r.edgeLabel,n;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}f(cDe,"nde");var hDe=Y(()=>{"use strict";rn(),rd(),s(oDe,"run"),s(lDe,"normalizeEdge"),s(cDe,"undo")});function P_(e){var t={};function r(i){var n=e.node(i);if(Object.prototype.hasOwnProperty.call(t,i))return n.rank;t[i]=!0;var a=$y(Ca(e.outEdges(i),function(o){return r(o.w)-e.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),n.rank=a}f(r,"r"),s(r,"dfs"),_t(e.sources(),r)}f(P_,"Rb");function zy(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}f(zy,"Wp");var Jq=Y(()=>{"use strict";rn(),s(P_,"longestPath"),s(zy,"slack")});function ej(e){var t=new co({directed:!1}),r=e.nodes()[0],i=e.nodeCount();t.setNode(r,{});for(var n,a;uDe(t,e)<i;)n=dDe(t,e),a=t.hasNode(n.v)?zy(e,n):-zy(e,n),pDe(t,e,a);return t}f(ej,"s3");function uDe(e,t){function r(i){_t(t.nodeEdges(i),function(n){var a=n.v,o=i===a?n.w:a;!e.hasNode(o)&&!zy(t,n)&&(e.setNode(o,{}),e.setEdge(i,o,{}),r(o))})}return f(r,"r"),s(r,"dfs"),_t(e.nodes(),r),e.nodeCount()}f(uDe,"ZJe");function dDe(e,t){return L_(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return zy(t,r)})}f(dDe,"QJe");function pDe(e,t,r){_t(e.nodes(),function(i){t.node(i).rank+=r})}f(pDe,"JJe");var gDe=Y(()=>{"use strict";rn(),Sc(),Jq(),s(ej,"feasibleTree"),s(uDe,"tightTree"),s(dDe,"findMinSlackEdge"),s(pDe,"shiftRanks")}),YTt=Y(()=>{"use strict"}),fDe=Y(()=>{"use strict"}),XTt,mDe=Y(()=>{"use strict";rn(),fDe(),XTt=Ju(1)}),KTt=Y(()=>{"use strict";mDe()}),yDe=Y(()=>{"use strict"}),ZTt=Y(()=>{"use strict";yDe()}),QTt,JTt=Y(()=>{"use strict";rn(),QTt=Ju(1)});function vDe(e){var t={},r={},i=[];function n(a){if(Object.prototype.hasOwnProperty.call(r,a))throw new k3;Object.prototype.hasOwnProperty.call(t,a)||(r[a]=!0,t[a]=!0,_t(e.predecessors(a),n),delete r[a],i.push(a))}if(f(n,"n"),s(n,"visit"),_t(e.sinks(),n),TIe(t)!==e.nodeCount())throw new k3;return i}f(vDe,"e9");function k3(){}f(k3,"Lb");var bDe=Y(()=>{"use strict";rn(),vDe.CycleException=k3,s(vDe,"topsort"),s(k3,"CycleException"),k3.prototype=new Error}),e5t=Y(()=>{"use strict";bDe()});function tj(e,t,r){pa(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],a={};
vendor: 20,752 bytes, line 571
571return _t(t,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);rj(e,o,r==="post",a,i,n)}),n}f(tj,"o3");function rj(e,t,r,i,n,a){Object.prototype.hasOwnProperty.call(i,t)||(i[t]=!0,r||a.push(t),_t(n(t),function(o){rj(e,o,r,i,n,a)}),r&&a.push(t))}f(rj,"hde");var xDe=Y(()=>{"use strict";rn(),s(tj,"dfs"),s(rj,"doDfs")});function kDe(e,t){return tj(e,t,"post")}f(kDe,"i9");var t5t=Y(()=>{"use strict";xDe(),s(kDe,"postorder")});function TDe(e,t){return tj(e,t,"pre")}f(TDe,"n9");var r5t=Y(()=>{"use strict";xDe(),s(TDe,"preorder")}),i5t=Y(()=>{"use strict";fDe(),Uq()}),n5t=Y(()=>{"use strict";YTt(),mDe(),KTt(),ZTt(),JTt(),e5t(),t5t(),r5t(),i5t(),yDe(),bDe()});function Np(e){e=KIe(e),P_(e);var t=ej(e);z_(t),F_(t,e);for(var r,i;r=aj(t);)i=sj(t,e,r),oj(t,e,r,i)}f(Np,"Od");function F_(e,t){var r=kDe(e,e.nodes());r=r.slice(0,r.length-1),_t(r,function(i){wDe(e,t,i)})}f(F_,"a9");function wDe(e,t,r){var i=e.node(r),n=i.parent;e.edge(r,n).cutvalue=ij(e,t,r)}f(wDe,"net");function ij(e,t,r){var i=e.node(r),n=i.parent,a=!0,o=t.edge(r,n),l=0;return o||(a=!1,o=t.edge(n,r)),l=o.weight,_t(t.nodeEdges(r),function(h){var u=h.v===r,d=u?h.w:h.v;if(d!==n){var p=u===a,g=t.edge(h).weight;if(l+=p?g:-g,EDe(e,r,d)){var m=e.edge(r,d).cutvalue;l+=p?-m:m}}}),l}f(ij,"yde");function z_(e,t){arguments.length<2&&(t=e.nodes()[0]),nj(e,{},1,t)}f(z_,"s9");function nj(e,t,r,i,n){var a=r,o=e.node(i);return t[i]=!0,_t(e.neighbors(i),function(l){Object.prototype.hasOwnProperty.call(t,l)||(r=nj(e,t,r,l,i))}),o.low=a,o.lim=r++,n?o.parent=n:delete o.parent,r}f(nj,"vde");function aj(e){return S_(e.edges(),function(t){return e.edge(t).cutvalue<0})}f(aj,"xde");function sj(e,t,r){var i=r.v,n=r.w;t.hasEdge(i,n)||(i=r.w,n=r.v);var a=e.node(i),o=e.node(n),l=a,h=!1;a.lim>o.lim&&(l=o,h=!0);var u=Nh(t.edges(),function(d){return h===lj(e,e.node(d.v),l)&&h!==lj(e,e.node(d.w),l)});return L_(u,function(d){return zy(t,d)})}f(sj,"bde");function oj(e,t,r,i){var n=r.v,a=r.w;e.removeEdge(n,a),e.setEdge(i.v,i.w,{}),z_(e),F_(e,t),CDe(e,t)}f(oj,"Tde");function CDe(e,t){var r=S_(e.nodes(),function(n){return!t.node(n).parent}),i=TDe(e,r);i=i.slice(1),_t(i,function(n){var a=e.node(n).parent,o=t.edge(n,a),l=!1;o||(o=t.edge(a,n),l=!0),t.node(n).rank=t.node(a).rank+(l?o.minlen:-o.minlen)})}f(CDe,"aet");function EDe(e,t,r){return e.hasEdge(t,r)}f(EDe,"set");function lj(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}f(lj,"gde");var a5t=Y(()=>{"use strict";rn(),n5t(),rd(),gDe(),Jq(),Np.initLowLimValues=z_,Np.initCutValues=F_,Np.calcCutValue=ij,Np.leaveEdge=aj,Np.enterEdge=sj,Np.exchangeEdges=oj,s(Np,"networkSimplex"),s(F_,"initCutValues"),s(wDe,"assignCutValue"),s(ij,"calcCutValue"),s(z_,"initLowLimValues"),s(nj,"dfsAssignLowLim"),s(aj,"leaveEdge"),s(sj,"enterEdge"),s(oj,"exchangeEdges"),s(CDe,"updateRanks"),s(EDe,"isTreeEdge"),s(lj,"isDescendant")});function SDe(e){switch(e.graph().ranker){case"network-simplex":cj(e);break;case"tight-tree":_De(e);break;case"longest-path":ADe(e);break;default:cj(e)}}f(SDe,"o9");function _De(e){P_(e),ej(e)}f(_De,"cet");function cj(e){Np(e)}f(cj,"kde");var ADe,LDe=Y(()=>{"use strict";gDe(),a5t(),Jq(),s(SDe,"rank"),ADe=P_,s(_De,"tightTreeRanker"),s(cj,"networkSimplexRanker")});function RDe(e){var t=of(e,"root",{},"_root"),r=IDe(e),i=Ip(Mh(r))-1,n=2*i+1;e.graph().nestingRoot=t,_t(e.edges(),function(o){e.edge(o).minlen*=n});var a=DDe(e)+1;_t(e.children(),function(o){hj(e,t,n,a,i,r,o)}),e.graph().nodeRankFactor=n}f(RDe,"wde");function hj(e,t,r,i,n,a,o){var l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}var h=Yq(e,"_bt"),u=Yq(e,"_bb"),d=e.node(o);e.setParent(h,o),d.borderTop=h,e.setParent(u,o),d.borderBottom=u,_t(l,function(p){hj(e,t,r,i,n,a,p);var g=e.node(p),m=g.borderTop?g.borderTop:p,y=g.borderBottom?g.borderBottom:p,x=g.borderTop?i:2*i,C=m!==y?1:n-a[o]+1;e.setEdge(h,m,{weight:x,minlen:C,nestingEdge:!0}),e.setEdge(y,u,{weight:x,minlen:C,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,h,{weight:0,minlen:n+a[o]})}f(hj,"Sde");function IDe(e){var t={};function r(i,n){var a=e.children(i);a&&a.length&&_t(a,function(o){r(o,n+1)}),t[i]=n}return f(r,"r"),s(r,"dfs"),_t(e.children(),function(i){r(i,1)}),t}f(IDe,"uet");function DDe(e){return By(e.edges(),function(t,r){return t+e.edge(r).weight},0)}f(DDe,"het");function NDe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,_t(e.edges(),function(r){var i=e.edge(r);i.nestingEdge&&e.removeEdge(r)})}f(NDe,"Ede");var s5t=Y(()=>{"use strict";rn(),rd(),s(RDe,"run"),s(hj,"dfs"),s(IDe,"treeDepths"),s(DDe,"sumWeights"),s(NDe,"cleanup")});function MDe(e,t,r){var i={},n;_t(r,function(a){for(var o=e.parent(a),l,h;o;){if(l=e.parent(o),l?(h=i[l],i[l]=o):(h=n,n=o),h&&h!==o){t.setEdge(h,o);return}o=l}})}f(MDe,"_de");var o5t=Y(()=>{"use strict";rn(),s(MDe,"addSubgraphConstraints")});function ODe(e,t,r){var i=$De(e),n=new co({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(a){return e.node(a)});return _t(e.nodes(),function(a){var o=e.node(a),l=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(n.setNode(a),n.setParent(a,l||i),_t(e[r](a),function(h){var u=h.v===a?h.w:h.v,d=n.edge(u,a),p=ga(d)?0:d.weight;n.setEdge(u,a,{weight:e.edge(h).weight+p})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&n.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),n}f(ODe,"Rde");function $De(e){for(var t;e.hasNode(t=D_("_root")););return t}f($De,"fet");var l5t=Y(()=>{"use strict";rn(),Sc(),s(ODe,"buildLayerGraph"),s($De,"createRootNode")});function BDe(e,t){for(var r=0,i=1;i<t.length;++i)r+=PDe(e,t[i-1],t[i]);return r}f(BDe,"Mde");function PDe(e,t,r){for(var i=BIe(r,Ca(r,function(u,d){return d})),n=tf(Ca(t,function(u){return Py(Ca(e.outEdges(u),function(d){return{pos:i[d.w],weight:e.edge(d).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var o=2*a-1;a-=1;var l=Ca(new Array(o),function(){return 0}),h=0;return _t(n.forEach(function(u){var d=u.pos+a;l[d]+=u.weight;for(var p=0;d>0;)d%2&&(p+=l[d+1]),d=d-1>>1,l[d]+=u.weight;h+=u.weight*p})),h}f(PDe,"pet");var c5t=Y(()=>{"use strict";rn(),s(BDe,"crossCount"),s(PDe,"twoLayerCrossCount")});function FDe(e){var t={},r=Nh(e.nodes(),function(l){return!e.children(l).length}),i=Ip(Ca(r,function(l){return e.node(l).rank})),n=Ca(sf(i+1),function(){return[]});function a(l){if(!Rq(t,l)){t[l]=!0;var h=e.node(l);n[h.rank].push(l),_t(e.successors(l),a)}}f(a,"a"),s(a,"dfs");var o=Py(r,function(l){return e.node(l).rank});return _t(o,a),n}f(FDe,"Ide");var h5t=Y(()=>{"use strict";rn(),s(FDe,"initOrder")});function zDe(e,t){return Ca(t,function(r){var i=e.inEdges(r);if(i.length){var n=By(i,function(a,o){var l=e.edge(o),h=e.node(o.v);return{sum:a.sum+l.weight*h.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:r}})}f(zDe,"Pde");var u5t=Y(()=>{"use strict";rn(),s(zDe,"barycenter")});function qDe(e,t){var r={};_t(e,function(n,a){var o=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};ga(n.barycenter)||(o.barycenter=n.barycenter,o.weight=n.weight)}),_t(t.edges(),function(n){var a=r[n.v],o=r[n.w];!ga(a)&&!ga(o)&&(o.indegree++,a.out.push(r[n.w]))});var i=Nh(r,function(n){return!n.indegree});return jDe(i)}f(qDe,"Fde");function jDe(e){var t=[];function r(a){return function(o){o.merged||(ga(o.barycenter)||ga(a.barycenter)||o.barycenter>=a.barycenter)&&GDe(a,o)}}f(r,"r"),s(r,"handleIn");function i(a){return function(o){o.in.push(a),--o.indegree===0&&e.push(o)}}for(f(i,"i"),s(i,"handleOut");e.length;){var n=e.pop();t.push(n),_t(n.in.reverse(),r(n)),_t(n.out,i(n))}return Ca(Nh(t,function(a){return!a.merged}),function(a){return b3(a,["vs","i","barycenter","weight"])})}f(jDe,"met");function GDe(e,t){var r=0,i=0;e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0}f(GDe,"get");var d5t=Y(()=>{"use strict";rn(),s(qDe,"resolveConflicts"),s(jDe,"doResolveConflicts"),s(GDe,"mergeEntries")});function UDe(e,t){var r=JIe(e,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),i=r.lhs,n=Py(r.rhs,function(d){return-d.i}),a=[],o=0,l=0,h=0;i.sort(VDe(!!t)),h=uj(a,n,h),_t(i,function(d){h+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,l+=d.weight,h=uj(a,n,h)});var u={vs:tf(a)};return l&&(u.barycenter=o/l,u.weight=l),u}f(UDe,"Gde");function uj(e,t,r){for(var i;t.length&&(i=y3(t)).i<=r;)t.pop(),e.push(i.vs),r++;return r}f(uj,"zde");function VDe(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}f(VDe,"yet");var p5t=Y(()=>{"use strict";rn(),rd(),s(UDe,"sort"),s(uj,"consumeUnsortable"),s(VDe,"compareWithBias")});function dj(e,t,r,i){var n=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,h={};o&&(n=Nh(n,function(y){return y!==o&&y!==l}));var u=zDe(e,n);_t(u,function(y){if(e.children(y.v).length){var x=dj(e,y.v,r,i);h[y.v]=x,Object.prototype.hasOwnProperty.call(x,"barycenter")&&HDe(y,x)}});var d=qDe(u,r);WDe(d,h);var p=UDe(d,i);if(o&&(p.vs=tf([o,p.vs,l]),e.predecessors(o).length)){var g=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(p,"barycenter")||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+g.order+m.order)/(p.weight+2),p.weight+=2}return p}f(dj,"c9");function WDe(e,t){_t(e,function(r){r.vs=tf(r.vs.map(function(i){return t[i]?t[i].vs:i}))})}f(WDe,"vet");function HDe(e,t){ga(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}f(HDe,"xet");var g5t=Y(()=>{"use strict";rn(),u5t(),d5t(),p5t(),s(dj,"sortSubgraph"),s(WDe,"expandSubgraphs"),s(HDe,"mergeBarycenters")});function YDe(e){var t=Xq(e),r=pj(e,sf(1,t+1),"inEdges"),i=pj(e,sf(t-1,-1,-1),"outEdges"),n=FDe(e);gj(e,n);for(var a=Number.POSITIVE_INFINITY,o,l=0,h=0;h<4;++l,++h){XDe(l%2?r:i,l%4>=2),n=x3(e);var u=BDe(e,n);u<a&&(h=0,o=K8e(n),a=u)}gj(e,o)}f(YDe,"Hde");function pj(e,t,r){return Ca(t,function(i){return ODe(e,i,r)})}f(pj,"qde");function XDe(e,t){var r=new co;_t(e,function(i){var n=i.graph().root,a=dj(i,n,r,t);_t(a.vs,function(o,l){i.node(o).order=l}),MDe(i,r,a.vs)})}f(XDe,"bet");function gj(e,t){_t(t,function(r){_t(r,function(i,n){e.node(i).order=n})})}f(gj,"Ude");var f5t=Y(()=>{"use strict";rn(),Sc(),rd(),o5t(),l5t(),c5t(),h5t(),g5t(),s(YDe,"order"),s(pj,"buildLayerGraphs"),s(XDe,"sweepLayerGraphs"),s(gj,"assignOrder")});function KDe(e){var t=QDe(e);_t(e.graph().dummyChains,function(r){for(var i=e.node(r),n=i.edgeObj,a=ZDe(e,t,n.v,n.w),o=a.path,l=a.lca,h=0,u=o[h],d=!0;r!==n.w;){if(i=e.node(r),d){for(;(u=o[h])!==l&&e.node(u).maxRank<i.rank;)h++;u===l&&(d=!1)}if(!d){for(;h<o.length-1&&e.node(u=o[h+1]).minRank<=i.rank;)h++;u=o[h]}e.setParent(r,u),r=e.successors(r)[0]}})}f(KDe,"jde");function ZDe(e,t,r,i){var n=[],a=[],o=Math.min(t[r].low,t[i].low),l=Math.max(t[r].lim,t[i].lim),h,u;h=r;do h=e.parent(h),n.push(h);while(h&&(t[h].low>o||l>t[h].lim));for(u=h,h=i;(h=e.parent(h))!==u;)a.push(h);return{path:n.concat(a.reverse()),lca:u}}f(ZDe,"Tet");function QDe(e){var t={},r=0;function i(n){var a=r;_t(e.children(n),i),t[n]={low:a,lim:r++}}return f(i,"i"),s(i,"dfs"),_t(e.children(),i),t}f(QDe,"Cet");var m5t=Y(()=>{"use strict";rn(),s(KDe,"parentDummyChains"),s(ZDe,"findPath"),s(QDe,"postorder")});function JDe(e,t){var r={};function i(n,a){var o=0,l=0,h=n.length,u=y3(a);return _t(a,function(d,p){var g=tNe(e,d),m=g?e.node(g).order:h;(g||d===u)&&(_t(a.slice(l,p+1),function(y){_t(e.predecessors(y),function(x){var C=e.node(x),w=C.order;(w<o||m<w)&&!(C.dummy&&e.node(y).dummy)&&fj(r,x,y)})}),l=p+1,o=m)}),a}return f(i,"i"),s(i,"visitLayer"),By(t,i),r}f(JDe,"ket");function eNe(e,t){var r={};function i(a,o,l,h,u){var d;_t(sf(o,l),function(p){d=a[p],e.node(d).dummy&&_t(e.predecessors(d),function(g){var m=e.node(g);m.dummy&&(m.order<h||m.order>u)&&fj(r,g,d)})})}f(i,"i"),s(i,"scan");function n(a,o){var l=-1,h,u=0;return _t(o,function(d,p){if(e.node(d).dummy==="border"){var g=e.predecessors(d);g.length&&(h=e.node(g[0]).order,i(o,u,p,l,h),u=p,l=h)}i(o,u,o.length,h,a.length)}),o}return f(n,"n"),s(n,"visitLayer"),By(t,n),r}f(eNe,"wet");function tNe(e,t){if(e.node(t).dummy)return S_(e.predecessors(t),function(r){return e.node(r).dummy})}f(tNe,"Eet");function fj(e,t,r){if(t>r){var i=t;t=r,r=i}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var n=e[t];Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}f(fj,"Kde");function rNe(e,t,r){if(t>r){var i=t;t=r,r=i}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}f(rNe,"Aet");function iNe(e,t,r,i){var n={},a={},o={};return _t(t,function(l){_t(l,function(h,u){n[h]=h,a[h]=h,o[h]=u})}),_t(t,function(l){var h=-1;_t(l,function(u){var d=i(u);if(d.length){d=Py(d,function(x){return o[x]});for(var p=(d.length-1)/2,g=Math.floor(p),m=Math.ceil(p);g<=m;++g){var y=d[g];a[u]===u&&h<o[y]&&!rNe(r,u,y)&&(a[y]=u,a[u]=n[u]=n[y],h=o[y])}}})}),{root:n,align:a}}f(iNe,"_et");function nNe(e,t,r,i,n){var a={},o=aNe(e,t,r,n),l=n?"borderLeft":"borderRight";function h(p,g){for(var m=o.nodes(),y=m.pop(),x={};y;)x[y]?p(y):(x[y]=!0,m.push(y),m=m.concat(g(y))),y=m.pop()}f(h,"u"),s(h,"iterate");function u(p){a[p]=o.inEdges(p).reduce(function(g,m){return Math.max(g,a[m.v]+o.edge(m))},0)}f(u,"h"),s(u,"pass1");function d(p){var g=o.outEdges(p).reduce(function(y,x){return Math.min(y,a[x.w]-o.edge(x))},Number.POSITIVE_INFINITY),m=e.node(p);g!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(a[p]=Math.max(a[p],g))}return f(d,"d"),s(d,"pass2"),h(u,o.predecessors.bind(o)),h(d,o.successors.bind(o)),_t(i,function(p){a[p]=a[r[p]]}),a}f(nNe,"Det");function aNe(e,t,r,i){var n=new co,a=e.graph(),o=hNe(a.nodesep,a.edgesep,i);return _t(t,function(l){var h;_t(l,function(u){var d=r[u];if(n.setNode(d),h){var p=r[h],g=n.edge(p,d);n.setEdge(p,d,Math.max(o(e,u,h),g||0))}h=u})}),n}f(aNe,"Ret");function sNe(e,t){return L_(Mh(t),function(r){var i=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;return tRe(r,function(a,o){var l=uNe(e,o)/2;i=Math.max(a+l,i),n=Math.min(a-l,n)}),i-n})}f(sNe,"Let");function oNe(e,t){var r=Mh(t),i=$y(r),n=Ip(r);_t(["u","d"],function(a){_t(["l","r"],function(o){var l=a+o,h=e[l],u;if(h!==t){var d=Mh(h);u=o==="l"?i-$y(d):n-Ip(d),u&&(e[l]=v3(h,function(p){return p+u}))}})})}f(oNe,"Met");function lNe(e,t){return v3(e.ul,function(r,i){if(t)return e[t.toLowerCase()][i];var n=Py(Ca(e,i));return(n[1]+n[2])/2})}f(lNe,"Net");function cNe(e){var t=x3(e),r=A_(JDe(e,t),eNe(e,t)),i={},n;_t(["u","d"],function(o){n=o==="u"?t:Mh(t).reverse(),_t(["l","r"],function(l){l==="r"&&(n=Ca(n,function(p){return Mh(p).reverse()}));var h=(o==="u"?e.predecessors:e.successors).bind(e),u=iNe(e,n,r,h),d=nNe(e,n,u.root,u.align,l==="r");l==="r"&&(d=v3(d,function(p){return-p})),i[o+l]=d})});var a=sNe(e,i);return oNe(i,a),lNe(i,e.graph().align)}f(cNe,"Zde");function hNe(e,t,r){return function(i,n,a){var o=i.node(n),l=i.node(a),h=0,u;if(h+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":u=-o.width/2;break;case"r":u=o.width/2;break}if(u&&(h+=r?u:-u),u=0,h+=(o.dummy?t:e)/2,h+=(l.dummy?t:e)/2,h+=l.width/2,Object.prototype.hasOwnProperty.call(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":u=l.width/2;break;case"r":u=-l.width/2;break}return u&&(h+=r?u:-u),u=0,h}}f(hNe,"Iet");function uNe(e,t){return e.node(t).width}f(uNe,"Oet");var y5t=Y(()=>{"use strict";rn(),Sc(),rd(),s(JDe,"findType1Conflicts"),s(eNe,"findType2Conflicts"),s(tNe,"findOtherInnerSegmentNode"),s(fj,"addConflict"),s(rNe,"hasConflict"),s(iNe,"verticalAlignment"),s(nNe,"horizontalCompaction"),s(aNe,"buildBlockGraph"),s(sNe,"findSmallestWidthAlignment"),s(oNe,"alignCoordinates"),s(lNe,"balance"),s(cNe,"positionX"),s(hNe,"sep"),s(uNe,"width")});function dNe(e){e=Wq(e),pNe(e),iRe(cNe(e),function(t,r){e.node(r).x=t})}f(dNe,"Jde");function pNe(e){var t=x3(e),r=e.graph().ranksep,i=0;_t(t,function(n){var a=Ip(Ca(n,function(o){return e.node(o).height}));_t(n,function(o){e.node(o).y=i+a/2}),i+=a+r})}f(pNe,"Pet");var v5t=Y(()=>{"use strict";rn(),rd(),y5t(),s(dNe,"position"),s(pNe,"positionY")});function mj(e,t){var r=t&&t.debugTiming?eDe:tDe;r("layout",()=>{var i=r(" buildLayoutGraph",()=>mNe(e));r(" runLayout",()=>gNe(i,r)),r(" updateInputGraph",()=>fNe(e,i))})}f(mj,"Mb");function gNe(e,t){t(" makeSpaceForEdgeLabels",()=>yNe(e)),t(" removeSelfEdges",()=>SNe(e)),t(" acyclic",()=>WIe(e)),t(" nestingGraph.run",()=>RDe(e)),t(" rank",()=>SDe(Wq(e))),t(" injectEdgeLabelProxies",()=>vNe(e)),t(" removeEmptyRanks",()=>QIe(e)),t(" nestingGraph.cleanup",()=>NDe(e)),t(" normalizeRanks",()=>ZIe(e)),t(" assignRankMinMax",()=>bNe(e)),t(" removeEdgeLabelProxies",()=>xNe(e)),t(" normalize.run",()=>oDe(e)),t(" parentDummyChains",()=>KDe(e)),t(" addBorderSegments",()=>rDe(e)),t(" order",()=>YDe(e)),t(" insertSelfEdges",()=>_Ne(e)),t(" adjustCoordinateSystem",()=>iDe(e)),t(" position",()=>dNe(e)),t(" positionSelfEdges",()=>ANe(e)),t(" removeBorderNodes",()=>ENe(e)),t(" normalize.undo",()=>cDe(e)),t(" fixupEdgeLabelCoords",()=>wNe(e)),t(" undoCoordinateSystem",()=>nDe(e)),t(" translateGraph",()=>kNe(e)),t(" assignNodeIntersects",()=>TNe(e)),t(" reversePoints",()=>CNe(e)),t(" acyclic.undo",()=>YIe(e))}f(gNe,"Bet");function fNe(e,t){_t(e.nodes(),function(r){var i=e.node(r),n=t.node(r);i&&(i.x=n.x,i.y=n.y,t.children(r).length&&(i.width=n.width,i.height=n.height))}),_t(e.edges(),function(r){var i=e.edge(r),n=t.edge(r);i.points=n.points,Object.prototype.hasOwnProperty.call(n,"x")&&(i.x=n.x,i.y=n.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}f(fNe,"Fet");function mNe(e){var t=new co({multigraph:!0,compound:!0}),r=j_(e.graph());return t.setGraph(A_({},RNe,q_(r,LNe),b3(r,INe))),_t(e.nodes(),function(i){var n=j_(e.node(i));t.setNode(i,CLe(q_(n,DNe),NNe)),t.setParent(i,e.parent(i))}),_t(e.edges(),function(i){var n=j_(e.edge(i));t.setEdge(i,A_({},ONe,q_(n,MNe),b3(n,$Ne)))}),t}f(mNe,"Yet");function yNe(e){var t=e.graph();t.ranksep/=2,_t(e.edges(),function(r){var i=e.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}f(yNe,"jet");function vNe(e){_t(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var i=e.node(t.v),n=e.node(t.w),a={rank:(n.rank-i.rank)/2+i.rank,e:t};of(e,"edge-proxy",a,"_ep")}})}f(vNe,"Xet");function bNe(e){var t=0;_t(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=Ip(t,i.maxRank))}),e.graph().maxRank=t}f(bNe,"Ket");function xNe(e){_t(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}f(xNe,"Zet");function kNe(e){var t=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,n=0,a=e.graph(),o=a.marginx||0,l=a.marginy||0;function h(u){var d=u.x,p=u.y,g=u.width,m=u.height;t=Math.min(t,d-g/2),r=Math.max(r,d+g/2),i=Math.min(i,p-m/2),n=Math.max(n,p+m/2)}f(h,"u"),s(h,"getExtremes"),_t(e.nodes(),function(u){h(e.node(u))}),_t(e.edges(),function(u){var d=e.edge(u);Object.prototype.hasOwnProperty.call(d,"x")&&h(d)}),t-=o,i-=l,_t(e.nodes(),function(u){var d=e.node(u);d.x-=t,d.y-=i}),_t(e.edges(),function(u){var d=e.edge(u);_t(d.points,function(p){p.x-=t,p.y-=i}),Object.prototype.hasOwnProperty.call(d,"x")&&(d.x-=t),Object.prototype.hasOwnProperty.call(d,"y")&&(d.y-=i)}),a.width=r-t+o,a.height=n-i+l}f(kNe,"Qet");function TNe(e){_t(e.edges(),function(t){var r=e.edge(t),i=e.node(t.v),n=e.node(t.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=n,o=i),r.points.unshift(Hq(i,a)),r.points.push(Hq(n,o))})}f(TNe,"Jet");function wNe(e){_t(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}f(wNe,"ett");function CNe(e){_t(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}f(CNe,"ttt");function ENe(e){_t(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),i=e.node(r.borderTop),n=e.node(r.borderBottom),a=e.node(y3(r.borderLeft)),o=e.node(y3(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(n.y-i.y),r.x=a.x+r.width/2,r.y=i.y+r.height/2}}),_t(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}f(ENe,"rtt");function SNe(e){_t(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}
vendor: 9,393 bytes, lines 571-574
571),e.removeEdge(t)}})}f(SNe,"itt");function _Ne(e){var t=x3(e);_t(t,function(r){var i=0;_t(r,function(n,a){var o=e.node(n);o.order=a+i,_t(o.selfEdges,function(l){of(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:a+ ++i,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}f(_Ne,"ntt");function ANe(e){_t(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var i=e.node(r.e.v),n=i.x+i.width/2,a=i.y,o=r.x-n,l=i.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:n+2*o/3,y:a-l},{x:n+5*o/6,y:a-l},{x:n+o,y:a},{x:n+5*o/6,y:a+l},{x:n+2*o/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}f(ANe,"att");function q_(e,t){return v3(b3(e,t),Number)}f(q_,"u9");function j_(e){var t={};return _t(e,function(r,i){t[i.toLowerCase()]=r}),t}f(j_,"h9");var LNe,RNe,INe,DNe,NNe,MNe,ONe,$Ne,b5t=Y(()=>{"use strict";rn(),Sc(),WTt(),HTt(),XIe(),hDe(),LDe(),s5t(),f5t(),m5t(),v5t(),rd(),s(mj,"layout"),s(gNe,"runLayout"),s(fNe,"updateInputGraph"),LNe=["nodesep","edgesep","ranksep","marginx","marginy"],RNe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},INe=["acyclicer","ranker","rankdir","align"],DNe=["width","height"],NNe={width:0,height:0},MNe=["minlen","weight","width","height","labeloffset"],ONe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$Ne=["labelpos"],s(mNe,"buildLayoutGraph"),s(yNe,"makeSpaceForEdgeLabels"),s(vNe,"injectEdgeLabelProxies"),s(bNe,"assignRankMinMax"),s(xNe,"removeEdgeLabelProxies"),s(kNe,"translateGraph"),s(TNe,"assignNodeIntersects"),s(wNe,"fixupEdgeLabelCoords"),s(CNe,"reversePointsForReversedEdges"),s(ENe,"removeBorderNodes"),s(SNe,"removeSelfEdges"),s(_Ne,"insertSelfEdges"),s(ANe,"positionSelfEdges"),s(q_,"selectNumberAttrs"),s(j_,"canonicalize")}),BNe=Y(()=>{"use strict";XIe(),b5t(),hDe(),LDe()});function _c(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:PNe(e),edges:FNe(e)};return ga(e.graph())||(t.value=W8e(e.graph())),t}f(_c,"Ho");function PNe(e){return Ca(e.nodes(),function(t){var r=e.node(t),i=e.parent(t),n={v:t};return ga(r)||(n.value=r),ga(i)||(n.parent=i),n})}f(PNe,"stt");function FNe(e){return Ca(e.edges(),function(t){var r=e.edge(t),i={v:t.v,w:t.w};return ga(t.name)||(i.name=t.name),ga(r)||(i.value=r),i})}f(FNe,"ott");var zNe=Y(()=>{"use strict";rn(),Uq(),s(_c,"write"),s(PNe,"writeNodes"),s(FNe,"writeEdges")}),fi,Mp,yj,qNe,T3,jNe,vj,bj,GNe,qy,xj,UNe,kj,Tj,VNe,x5t=Y(()=>{"use strict";jt(),Sc(),zNe(),fi=new Map,Mp=new Map,yj=new Map,qNe=s(()=>{Mp.clear(),yj.clear(),fi.clear()},"clear"),T3=s((e,t)=>{let r=Mp.get(t)||[];return ge.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),jNe=s((e,t)=>{let r=Mp.get(t)||[];return ge.info("Descendants of ",t," is ",r),ge.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||T3(e.v,t)||T3(e.w,t)||r.includes(e.w):(ge.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),vj=s((e,t,r,i)=>{ge.warn("Copying children of ",e,"root",i,"data",t.node(e),i);let n=t.children(e)||[];e!==i&&n.push(e),ge.warn("Copying (nodes) clusterId",e,"nodes",n),n.forEach(a=>{if(t.children(a).length>0)vj(a,t,r,i);else{let o=t.node(a);ge.info("cp ",a," to ",i," with parent ",e),r.setNode(a,o),i!==t.parent(a)&&(ge.warn("Setting parent",a,t.parent(a)),r.setParent(a,t.parent(a))),e!==i&&a!==e?(ge.debug("Setting parent",a,e),r.setParent(a,e)):(ge.info("In copy ",e,"root",i,"data",t.node(e),i),ge.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));let l=t.edges(a);ge.debug("Copying Edges",l),l.forEach(h=>{ge.info("Edge",h);let u=t.edge(h.v,h.w,h.name);ge.info("Edge data",u,i);try{jNe(h,i)?(ge.info("Copying as ",h.v,h.w,u,h.name),r.setEdge(h.v,h.w,u,h.name),ge.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):ge.info("Skipping copy of edge ",h.v,"-->",h.w," rootId: ",i," clusterId:",e)}catch(d){ge.error(d)}})}ge.debug("Removing node",a),t.removeNode(a)})},"copy"),bj=s((e,t)=>{let r=t.children(e),i=[...r];for(let n of r)yj.set(n,e),i=[...i,...bj(n,t)];return i},"extractDescendants"),GNe=s((e,t,r)=>{let i=e.edges().filter(l=>l.v===t||l.w===t),n=e.edges().filter(l=>l.v===r||l.w===r),a=i.map(l=>({v:l.v===t?r:l.v,w:l.w===t?t:l.w})),o=n.map(l=>({v:l.v,w:l.w}));return a.filter(l=>o.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),qy=s((e,t,r)=>{let i=t.children(e);if(ge.trace("Searching children of id ",e,i),i.length<1)return e;let n;for(let a of i){let o=qy(a,t,r),l=GNe(t,r,o);if(o)if(l.length>0)n=o;else return o}return n},"findNonClusterChild"),xj=s(e=>!fi.has(e)||!fi.get(e).externalConnections?e:fi.has(e)?fi.get(e).id:e,"getAnchorId"),UNe=s((e,t)=>{if(!e||t>10){ge.debug("Opting out, no graph ");return}else ge.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(ge.warn("Cluster identified",r," Replacement id in edges: ",qy(r,e,r)),Mp.set(r,bj(r,e)),fi.set(r,{id:qy(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let i=e.children(r),n=e.edges();i.length>0?(ge.debug("Cluster identified",r,Mp),n.forEach(a=>{let o=T3(a.v,r),l=T3(a.w,r);o^l&&(ge.warn("Edge: ",a," leaves cluster ",r),ge.warn("Descendants of XXX ",r,": ",Mp.get(r)),fi.get(r).externalConnections=!0)})):ge.debug("Not a cluster ",r,Mp)});for(let r of fi.keys()){let i=fi.get(r).id,n=e.parent(i);n!==r&&fi.has(n)&&!fi.get(n).externalConnections&&(fi.get(r).id=n)}e.edges().forEach(function(r){let i=e.edge(r);ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),ge.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let n=r.v,a=r.w;if(ge.warn("Fix XXX",fi,"ids:",r.v,r.w,"Translating: ",fi.get(r.v)," --- ",fi.get(r.w)),fi.get(r.v)||fi.get(r.w)){if(ge.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),n=xj(r.v),a=xj(r.w),e.removeEdge(r.v,r.w,r.name),n!==r.v){let o=e.parent(n);fi.get(o).externalConnections=!0,i.fromCluster=r.v}if(a!==r.w){let o=e.parent(a);fi.get(o).externalConnections=!0,i.toCluster=r.w}ge.warn("Fix Replacing with XXX",n,a,r.name),e.setEdge(n,a,i,r.name)}}),ge.warn("Adjusted Graph",_c(e)),kj(e,0),ge.trace(fi)},"adjustClustersAndEdges"),kj=s((e,t)=>{var n,a;if(ge.warn("extractor - ",t,_c(e),e.children("D")),t>10){ge.error("Bailing out");return}let r=e.nodes(),i=!1;for(let o of r){let l=e.children(o);i=i||l.length>0}if(!i){ge.debug("Done, no node has children",e.nodes());return}ge.debug("Nodes = ",r,t);for(let o of r)if(ge.debug("Extracting node",o,fi,fi.has(o)&&!fi.get(o).externalConnections,!e.parent(o),e.node(o),e.children("D")," Depth ",t),!fi.has(o))ge.debug("Not a cluster",o,t);else if(!fi.get(o).externalConnections&&e.children(o)&&e.children(o).length>0){ge.warn("Cluster without external connections, without a parent and with children",o,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(n=fi.get(o))==null?void 0:n.clusterData)!=null&&a.dir&&(l=fi.get(o).clusterData.dir,ge.warn("Fixing dir",fi.get(o).clusterData.dir,l));let h=new co({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ge.warn("Old graph before copy",_c(e)),vj(o,e,h,o),e.setNode(o,{clusterNode:!0,id:o,clusterData:fi.get(o).clusterData,label:fi.get(o).label,graph:h}),ge.warn("New graph after copy node: (",o,")",_c(h)),ge.debug("Old graph after copy",_c(e))}else ge.warn("Cluster ** ",o," **not meeting the criteria !externalConnections:",!fi.get(o).externalConnections," no parent: ",!e.parent(o)," children ",e.children(o)&&e.children(o).length>0,e.children("D"),t),ge.debug(fi);r=e.nodes(),ge.warn("New list of nodes",r);for(let o of r){let l=e.node(o);ge.warn(" Now next level",o,l),l!=null&&l.clusterNode&&kj(l.graph,t+1)}},"extractor"),Tj=s((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{let n=e.children(i),a=Tj(e,n);r=[...r,...a]}),r},"sorter"),VNe=s(e=>Tj(e,e.children()),"sortNodesByHierarchy")}),WNe={};Jr(WNe,{render:f(()=>HNe,"render")});var wj,HNe,k5t=Y(()=>{"use strict";BNe(),zNe(),Sc(),TCe(),gr(),x5t(),YF(),BF(),Zwe(),jt(),$S(),vr(),wj=s(async(e,t,r,i,n,a)=>{ge.warn("Graph in recursive render:XAX",_c(t),n);let o=t.graph().rankdir;ge.trace("Dir in recursive render - dir:",o);let l=e.insert("g").attr("class","root");t.nodes()?ge.info("Recursive render XXX",t.nodes()):ge.info("No nodes found for",t),t.edges().length>0&&ge.info("Recursive edges",t.edge(t.edges()[0]));let h=l.insert("g").attr("class","clusters"),u=l.insert("g").attr("class","edgePaths"),d=l.insert("g").attr("class","edgeLabels"),p=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(y){let x=t.node(y);if(n!==void 0){let C=JSON.parse(JSON.stringify(n.clusterData));ge.trace(`Setting data for parent cluster XXX 572 Node.id = `,y,` 573 data=`,C.height,` 574Parent cluster`,n.height),t.setNode(n.id,C),t.parent(y)||(ge.trace("Setting parent",y,n.id),t.setParent(y,n.id,C))}if(ge.info("(Insert) Node XXX"+y+": "+JSON.stringify(t.node(y))),x==null?void 0:x.clusterNode){ge.info("Cluster identified XBX",y,x.width,t.node(y));let{ranksep:C,nodesep:w}=t.graph();x.graph.setGraph(_r(Tt({},x.graph.graph()),{ranksep:C+25,nodesep:w}));let _=await wj(p,x.graph,r,i,t.node(y),a),S=_.elem;kr(x,S),x.diff=_.diff||0,ge.info("New compound node after recursive render XAX",y,"width",x.width,"height",x.height),wCe(S,x)}else t.children(y).length>0?(ge.trace("Cluster - the non recursive path XBX",y,x.id,x,x.width,"Graph:",t),ge.trace(qy(x.id,t)),fi.set(
574x.id,{id:qy(x.id,t),node:x})):(ge.trace("Node - the non recursive path XAX",y,p,t.node(y),o),await PS(p,t.node(y),{config:a,dir:o}))})),await s(async()=>{let y=t.edges().map(async function(x){let C=t.edge(x.v,x.w,x.name);ge.info("Edge "+x.v+" -> "+x.w+": "+JSON.stringify(x)),ge.info("Edge "+x.v+" -> "+x.w+": ",x," ",JSON.stringify(t.edge(x))),ge.info("Fix",fi,"ids:",x.v,x.w,"Translating: ",fi.get(x.v),fi.get(x.w)),await jF(d,C)});await Promise.all(y)},"processEdges")(),ge.info("Graph before layout:",JSON.stringify(_c(t))),ge.info("############################################# XXX"),ge.info("### Layout ### XXX"),ge.info("############################################# XXX"),mj(t),ge.info("Graph after layout:",JSON.stringify(_c(t)));let g=0,{subGraphTitleTotalMargin:m}=Ty(a);return await Promise.all(VNe(t).map(async function(y){var C;let x=t.node(y);if(ge.info("Position XBX => "+y+": ("+x.x,","+x.y,") width: ",x.width," height: ",x.height),x==null?void 0:x.clusterNode)x.y+=m,ge.info("A tainted cluster node XBX1",y,x.id,x.width,x.height,x.x,x.y,t.parent(y)),fi.get(x.id).node=x,FS(x);else if(t.children(y).length>0){ge.info("A pure cluster node XBX1",y,x.id,x.x,x.y,x.width,x.height,t.parent(y)),x.height+=m,t.node(x.parentId);let w=(x==null?void 0:x.padding)/2||0,_=((C=x==null?void 0:x.labelBBox)==null?void 0:C.height)||0,S=_-w||0;ge.debug("OffsetY",S,"labelHeight",_,"halfPadding",w),await BS(h,x),fi.get(x.id).node=x}else{let w=t.node(x.parentId);x.y+=m/2,ge.info("A regular node XBX1 - using the padding",x.id,"parent",x.parentId,x.width,x.height,x.x,x.y,"offsetY",x.offsetY,"parent",w,w==null?void 0:w.offsetY,x),FS(x)}}
574)),t.edges().forEach(function(y){let x=t.edge(y);ge.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(x),x),x.points.forEach(S=>S.y+=m/2);let C=t.node(y.v);var w=t.node(y.w);let _=WF(u,x,fi,r,C,w,i);GF(x,_)}),t.nodes().forEach(function(y){let x=t.node(y);ge.info(y,x.type,x.diff),x.isGroup&&(g=x.diff)}),ge.warn("Returning from recursive render XAX",l,g),{elem:l,diff:g}},"recursiveRender"),HNe=s(async(e,t)=>{var a,o,l,h,u,d;let r=new co({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((l=(o=e.config)==null?void 0:o.flowchart)==null?void 0:l.nodeSpacing)||e.nodeSpacing,ranksep:((h=e.config)==null?void 0:h.rankSpacing)||((d=(u=e.config)==null?void 0:u.flowchart)==null?void 0:d.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),i=t.select("g");HF(i,e.markers,e.type,e.diagramId),CCe(),Wwe(),$we(),qNe(),e.nodes.forEach(p=>{r.setNode(p.id,Tt({},p)),p.parentId&&r.setParent(p.id,p.parentId)}),ge.debug("Edges:",e.edges),e.edges.forEac
vendor: 4,395 bytes, lines 574-577
574h(p=>{if(p.start===p.end){let g=p.start,m=g+"---"+g+"---1",y=g+"---"+g+"---2",x=r.node(g);r.setNode(m,{domId:m,id:m,parentId:x.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(m,x.parentId),r.setNode(y,{domId:y,id:y,parentId:x.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(y,x.parentId);let C=structuredClone(p),w=structuredClone(p),_=structuredClone(p);C.label="",C.arrowTypeEnd="none",C.endLabelLeft="",C.endLabelRight="",C.startLabelLeft="",C.id=g+"-cyclic-special-1",w.startLabelRight="",w.startLabelLeft="",w.endLabelLeft="",w.endLabelRight="",w.arrowTypeStart="none",w.arrowTypeEnd="none",w.id=g+"-cyclic-special-mid",_.label="",_.startLabelRight="",_.startLabelLeft="",_.arrowTypeStart="none",x.isGroup&&(C.fromCluster=g,_.toCluster=g),_.id=g+"-cyclic-special-2",_.arrowTypeStart="none",r.setEdge(g,m,C,g+"-cyclic-special-0"),r.setEdge(m,y,w,g+"-cyclic-special-1"),r.setEdge(y,g,_,g+"-cyc<lic-special-2")}else r.setEdge(p.start,p.end,Tt({},p),p.id)}),ge.warn("Graph at first:",JSON.stringify(_c(r))),UNe(r),ge.warn("Graph after XAX:",JSON.stringify(_c(r)));let n=Ue();await wj(i,r,e.type,e.diagramId,void 0,n)},"render")});function G_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}f(G_,"qO");function YNe(e){if(Array.isArray(e))return e}f(YNe,"htt");function XNe(e){if(Array.isArray(e))return G_(e)}f(XNe,"dtt");function id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}f(id,"Kd");function KNe(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ej(i.key),i)}}f(KNe,"ftt");function nd(e,t,r){return t&&KNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}f(nd,"Zd");function ho(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=U_(e))||t){r&&(e=r);var i=0,n=s(function(){},"F");return{s:n,n:s(function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},"n"),e:s(function(h){throw h},"e"),f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 575In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,l=!1;return{s:s(function(){r=r.call(e)},"s"),n:s(function(){var h=r.next();return o=h.done,h},"n"),e:s(function(h){l=!0,a=h},"e"),f:s(function(){try{o||r.return==null||r.return()}finally{if(l)throw a}},"f")}}f(ho,"Fs");function Cj(e,t,r){return(t=Ej(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}f(Cj,"q0e");function ZNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}f(ZNe,"ptt");function QNe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,l=[],h=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;h=!1}else for(;!(h=(i=a.call(r)).done)&&(l.push(i.value),l.length!==t);h=!0);}catch(d){u=!0,n=d}finally{try{if(!h&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return l}}f(QNe,"mtt");function JNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 576In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}f(JNe,"gtt");function eMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 577In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}f(eMe,"ytt");function Ea(e,t){return YNe(e)||QNe(e,t)||U_(e,t)||JNe()}f(Ea,"Dn");function w3(e){return XNe(e)||ZNe(e)||U_(e)||eMe()}f(w3,"N3");function tMe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}f(tMe,"vtt");function Ej(e){var t=tMe(e,"string");return typeof t=="symbol"?t:t+""}f(Ej,"U0e");function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}f(Ba,"Wn");function U_(e,t){if(e){if(typeof e=="string")return G_(e,t);var r={}.toString.call(e).slice(8,-1);
vendor: 53,853 bytes, line 577
577return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G_(e,t):void 0}}f(U_,"uP");function jy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}f(jy,"n2");function Gy(){if(c$e)return TG;c$e=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return f(e,"e"),s(e,"isObject"),TG=e,TG}f(Gy,"a2");function rMe(){if(h$e)return wG;h$e=1;var e=typeof P3=="object"&&P3&&P3.Object===Object&&P3;return wG=e,wG}f(rMe,"Gtt");function C3(){if(u$e)return CG;u$e=1;var e=rMe(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return CG=r,CG}f(C3,"j3");function iMe(){if(d$e)return EG;d$e=1;var e=C3(),t=s(function(){return e.Date.now()},"now");return EG=t,EG}f(iMe,"Vtt");function nMe(){if(p$e)return SG;p$e=1;var e=/\s/;function t(r){for(var i=r.length;i--&&e.test(r.charAt(i)););return i}return f(t,"t"),s(t,"trimmedEndIndex"),SG=t,SG}f(nMe,"Wtt");function aMe(){if(g$e)return _G;g$e=1;var e=nMe(),t=/^\s+/;function r(i){return i&&i.slice(0,e(i)+1).replace(t,"")}return f(r,"r"),s(r,"baseTrim"),_G=r,_G}f(aMe,"qtt");function V_(){if(f$e)return AG;f$e=1;var e=C3(),t=e.Symbol;return AG=t,AG}f(V_,"fP");function sMe(){if(m$e)return LG;m$e=1;var e=V_(),t=Object.prototype,r=t.hasOwnProperty,i=t.toString,n=e?e.toStringTag:void 0;function a(o){var l=r.call(o,n),h=o[n];try{o[n]=void 0;var u=!0}catch(p){}var d=i.call(o);return u&&(l?o[n]=h:delete o[n]),d}return f(a,"a"),s(a,"getRawTag"),LG=a,LG}f(sMe,"Utt");function oMe(){if(y$e)return RG;y$e=1;var e=Object.prototype,t=e.toString;function r(i){return t.call(i)}return f(r,"r"),s(r,"objectToString"),RG=r,RG}f(oMe,"Htt");function Sj(){if(v$e)return IG;v$e=1;var e=V_(),t=sMe(),r=oMe(),i="[object Null]",n="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?n:i:a&&a in Object(l)?t(l):r(l)}return f(o,"s"),s(o,"baseGetTag"),IG=o,IG}f(Sj,"eme");function lMe(){if(b$e)return DG;b$e=1;function e(t){return t!=null&&typeof t=="object"}return f(e,"e"),s(e,"isObjectLike"),DG=e,DG}f(lMe,"Ytt");function Uy(){if(x$e)return NG;x$e=1;var e=Sj(),t=lMe(),r="[object Symbol]";function i(n){return typeof n=="symbol"||t(n)&&e(n)==r}return f(i,"i"),s(i,"isSymbol"),NG=i,NG}f(Uy,"s2");function cMe(){if(k$e)return MG;k$e=1;var e=aMe(),t=Gy(),r=Uy(),i=NaN,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function h(u){if(typeof u=="number")return u;if(r(u))return i;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=a.test(u);return p||o.test(u)?l(u.slice(2),p?2:8):n.test(u)?i:+u}return f(h,"u"),s(h,"toNumber"),MG=h,MG}f(cMe,"jtt");function hMe(){if(T$e)return OG;T$e=1;var e=Gy(),t=iMe(),r=cMe(),i="Expected a function",n=Math.max,a=Math.min;function o(l,h,u){var d,p,g,m,y,x,C=0,w=!1,_=!1,S=!0;if(typeof l!="function")throw new TypeError(i);h=r(h)||0,e(u)&&(w=!!u.leading,_="maxWait"in u,g=_?n(r(u.maxWait)||0,h):g,S="trailing"in u?!!u.trailing:S);function R(j){var D=d,P=p;return d=p=void 0,C=j,m=l.apply(P,D),m}f(R,"w"),s(R,"invokeFunc");function b(j){return C=j,y=setTimeout(E,h),w?R(j):m}f(b,"C"),s(b,"leadingEdge");function v(j){var D=j-x,P=j-C,F=h-D;return _?a(F,g-P):F}f(v,"k"),s(v,"remainingWait");function k(j){var D=j-x,P=j-C;return x===void 0||D>=h||D<0||_&&P>=g}f(k,"E"),s(k,"shouldInvoke");function E(){var j=t();if(k(j))return A(j);y=setTimeout(E,v(j))}f(E,"A"),s(E,"timerExpired");function A(j){return y=void 0,S&&d?R(j):(d=p=void 0,m)}f(A,"N"),s(A,"trailingEdge");function I(){y!==void 0&&clearTimeout(y),C=0,d=x=p=y=void 0}f(I,"P"),s(I,"cancel");function $(){return y===void 0?m:A(t())}f($,"I"),s($,"flush");function O(){var j=t(),D=k(j);if(d=arguments,p=this,x=j,D){if(y===void 0)return b(x);if(_)return clearTimeout(y),y=setTimeout(E,h),R(x)}return y===void 0&&(y=setTimeout(E,h)),m}return f(O,"D"),s(O,"debounced"),O.cancel=I,O.flush=$,O}return f(o,"s"),s(o,"debounce"),OG=o,OG}f(hMe,"Xtt");function uMe(e,t,r,i,n){var a=n*Math.PI/180,o=Math.cos(a)*(e-r)-Math.sin(a)*(t-i)+r,l=Math.sin(a)*(e-r)+Math.cos(a)*(t-i)+i;return{x:o,y:l}}f(uMe,"ert");function dMe(e,t,r){if(r===0)return e;var i=(t.x1+t.x2)/2,n=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,l=uMe(e.x,e.y,i,n,r),h=_$e(l.x,l.y,i,n,a,o);return{x:h.x,y:h.y}}f(dMe,"rrt");function pMe(){return P$e||(P$e=1,(function(e,t){(function(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C;n=Math.floor,p=Math.min,i=s(function(w,_){return w<_?-1:w>_?1:0},"defaultCmp"),d=s(function(w,_,S,R,b){var v;if(S==null&&(S=0),b==null&&(b=i),S<0)throw new Error("lo must be non-negative");for(R==null&&(R=w.length);S<R;)v=n((S+R)/2),b(_,w[v])<0?R=v:S=v+1;return[].splice.apply(w,[S,S-S].concat(_)),_},"insort"),l=s(function(w,_,S){return S==null&&(S=i),w.push(_),x(w,0,w.length-1,S)},"heappush"),o=s(function(w,_){var S,R;return _==null&&(_=i),S=w.pop(),w.length?(R=w[0],w[0]=S,C(w,0,_)):R=S,R},"heappop"),u=s(function(w,_,S){var R;return S==null&&(S=i),R=w[0],w[0]=_,C(w,0,S),R},"heapreplace"),h=s(function(w,_,S){var R;return S==null&&(S=i),w.length&&S(w[0],_)<0&&(R=[w[0],_],_=R[0],w[0]=R[1],C(w,0,S)),_},"heappushpop"),a=s(function(w,_){var S,R,b,v,k,E;for(_==null&&(_=i),v=(function(){E=[];for(var A=0,I=n(w.length/2);0<=I?A<I:A>I;0<=I?A++:A--)E.push(A);return E}).apply(this).reverse(),k=[],R=0,b=v.length;R<b;R++)S=v[R],k.push(C(w,S,_));return k},"heapify"),y=s(function(w,_,S){var R;if(S==null&&(S=i),R=w.indexOf(_),R!==-1)return x(w,0,R,S),C(w,R,S)},"updateItem"),g=s(function(w,_,S){var R,b,v,k,E;if(S==null&&(S=i),b=w.slice(0,_),!b.length)return b;for(a(b,S),E=w.slice(_),v=0,k=E.length;v<k;v++)R=E[v],h(b,R,S);return b.sort(S).reverse()},"nlargest"),m=s(function(w,_,S){var R,b,v,k,E,A,I,$,O;if(S==null&&(S=i),_*10<=w.length){if(v=w.slice(0,_).sort(S),!v.length)return v;for(b=v[v.length-1],I=w.slice(_),k=0,A=I.length;k<A;k++)R=I[k],S(R,b)<0&&(d(v,R,0,null,S),v.pop(),b=v[v.length-1]);return v}for(a(w,S),O=[],E=0,$=p(_,w.length);0<=$?E<$:E>$;0<=$?++E:--E)O.push(o(w,S));return O},"nsmallest"),x=s(function(w,_,S,R){var b,v,k;for(R==null&&(R=i),b=w[S];S>_;){if(k=S-1>>1,v=w[k],R(b,v)<0){w[S]=v,S=k;continue}break}return w[S]=b},"_siftdown"),C=s(function(w,_,S){var R,b,v,k,E;for(S==null&&(S=i),b=w.length,E=_,v=w[_],R=2*_+1;R<b;)k=R+1,k<b&&!(S(w[R],w[k])<0)&&(R=k),w[_]=w[R],_=R,R=2*_+1;return w[_]=v,x(w,E,_,S)},"_siftup"),r=(function(){w.push=l,w.pop=o,w.replace=u,w.pushpop=h,w.heapify=a,w.updateItem=y,w.nlargest=g,w.nsmallest=m;function w(_){this.cmp=_!=null?_:i,this.nodes=[]}return f(w,"x"),s(w,"Heap"),w.prototype.push=function(_){return l(this.nodes,_,this.cmp)},w.prototype.pop=function(){return o(this.nodes,this.cmp)},w.prototype.peek=function(){return this.nodes[0]},w.prototype.contains=function(_){return this.nodes.indexOf(_)!==-1},w.prototype.replace=function(_){return u(this.nodes,_,this.cmp)},w.prototype.pushpop=function(_){return h(this.nodes,_,this.cmp)},w.prototype.heapify=function(){return a(this.nodes,this.cmp)},w.prototype.updateItem=function(_){return y(this.nodes,_,this.cmp)},w.prototype.clear=function(){return this.nodes=[]},w.prototype.empty=function(){return this.nodes.length===0},w.prototype.size=function(){return this.nodes.length},w.prototype.clone=function(){var _;return _=new w,_.nodes=this.nodes.slice(0),_},w.prototype.toArray=function(){return this.nodes.slice(0)},w.prototype.insert=w.prototype.push,w.prototype.top=w.prototype.peek,w.prototype.front=w.prototype.peek,w.prototype.has=w.prototype.contains,w.prototype.copy=w.prototype.clone,w})(),(function(w,_){return e.exports=_()})(this,function(){return r})}).call(B$e)})(u7)),u7.exports}f(pMe,"frt");function gMe(){return z$e||(z$e=1,F$e=pMe()),F$e}f(gMe,"prt");function fMe(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var r=s(function(k,E){return{x:k.x+E.x,y:k.y+E.y}},"add"),i=s(function(k,E){return{x:k.x-E.x,y:k.y-E.y}},"sub"),n=s(function(k,E){return{x:k.x*E,y:k.y*E}},"scale"),a=s(function(k,E){return k.x*E.y-k.y*E.x},"cross"),o=s(function(k){var E=uBe(k.x,k.y);return E===0?{x:0,y:0}:{x:k.x/E,y:k.y/E}},"normalize"),l=s(function(k){for(var E=0,A=0;A<k.length;A++){var I=k[A],$=k[(A+1)%k.length];E+=I.x*$.y-$.x*I.y}return E/2},"signedArea"),h=s(function(k,E,A,I){var $=i(E,k),O=i(I,A),j=a($,O);if(Math.abs(j)<1e-9)return r(k,n($,.5));var D=a(i(A,k),O)/j;return r(k,n($,D))},"intersectLines"),u=e.map(function(k){return{x:k.x,y:k.y}});l(u)<0&&u.reverse();for(var d=u.length,p=[],g=0;g<d;g++){var m=u[g],y=u[(g+1)%d],x=i(y,m),C=o({x:x.y,y:-x.x});p.push(C)}for(var w=p.map(function(k,E){var A=r(u[E],n(k,t)),I=r(u[(E+1)%d],n(k,t));return{p1:A,p2:I}}),_=[],S=0;S<d;S++){var R=w[(S-1+d)%d],b=w[S],v=h(R.p1,R.p2,b.p1,b.p2);_.push(v)}return _}f(fMe,"zrt");function mMe(e,t,r,i,n,a){var o=xBe(e,t,r,i,n),l=fMe(o,a),h=js();return l.forEach(function(u){return KG(h,u.x,u.y)}),h}f(mMe,"Grt");function W_(e,t){function r(p){for(var g=[],m=0;m<p.length;m++){var y=p[m],x=p[(m+1)%p.length],C={x:x.x-y.x,y:x.y-y.y},w={x:-C.y,y:C.x},_=Math.sqrt(w.x*w.x+w.y*w.y);g.push({x:w.x/_,y:w.y/_})}return g}f(r,"r"),s(r,"getAxes");function i(p,g){var m=1/0,y=-1/0,x=ho(p),C;try{for(x.s();!(C=x.n()).done;){var w=C.value,_=w.x*g.x+w.y*g.y;m=Math.min(m,_),y=Math.max(y,_)}}catch(S){x.e(S)}finally{x.f()}return{min:m,max:y}}f(i,"i"),s(i,"project");function n(p,g){return!(p.max<g.min||g.max<p.min)}f(n,"n"),s(n,"overlaps");var a=[].concat(w3(r(e)),w3(r(t))),o=ho(a),l;try{for(o.s();!(l=o.n()).done;){var h=l.value,u=i(e,h),d=i(t,h);if(!n(u,d))return!1}}catch(p){o.e(p)}finally{o.f()}return!0}f(W_,"N9");function E3(e,t,r,i,n,a){var o;return Zn(e)?o=e:o=bf[e]||bf.euclidean,t===0&&Zn(e)?o(n,a):o(t,r,i,n,a)}f(E3,"Z3");function S3(){if(pPe)return AU;pPe=1;var e=Array.isArray;return AU=e,AU}f(S3,"Q3");function yMe(){if(gPe)return LU;gPe=1;var e=S3(),t=Uy(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function n(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:i.test(a)||!r.test(a)||o!=null&&a in Object(o)}return f(n,"n"),s(n,"isKey"),LU=n,LU}f(yMe,"Wit");function vMe(){if(fPe)return RU;fPe=1;var e=Sj(),t=Gy(),r="[object AsyncFunction]",i="[object Function]",n="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!t(l))return!1;var h=e(l);return h==i||h==n||h==r||h==a}return f(o,"s"),s(o,"isFunction"),RU=o,RU}f(vMe,"qit");function bMe(){if(mPe)return IU;mPe=1;var e=C3(),t=e["__core-js_shared__"];return IU=t,IU}f(bMe,"Uit");function xMe(){if(yPe)return DU;yPe=1;var e=bMe(),t=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!t&&t in i}return f(r,"r"),s(r,"isMasked"),DU=r,DU}f(xMe,"Hit");function kMe(){if(vPe)return NU;vPe=1;var e=Function.prototype,t=e.toString;function r(i){if(i!=null){try{return t.call(i)}catch(n){}try{return i+""}catch(n){}}return""}return f(r,"r"),s(r,"toSource"),NU=r,NU}f(kMe,"Yit");function TMe(){if(bPe)return MU;bPe=1;var e=vMe(),t=xMe(),r=Gy(),i=kMe(),n=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,h=o.toString,u=l.hasOwnProperty,d=RegExp("^"+h.call(u).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(g){if(!r(g)||t(g))return!1;var m=e(g)?d:a;return m.test(i(g))}return f(p,"f"),s(p,"baseIsNative"),MU=p,MU}f(TMe,"jit");function wMe(){if(xPe)return OU;xPe=1;function e(t,r){return t==null?void 0:t[r]}return f(e,"e"),s(e,"getValue"),OU=e,OU}f(wMe,"Xit");function H_(){if(kPe)return $U;kPe=1;var e=TMe(),t=wMe();function r(i,n){var a=t(i,n);return e(a)?a:void 0}return f(r,"r"),s(r,"getNative"),$U=r,$U}f(H_,"CP");function _3(){if(TPe)return BU;TPe=1;var e=H_(),t=e(Object,"create");return BU=t,BU}f(_3,"J3");function CMe(){if(wPe)return PU;wPe=1;var e=_3();function t(){this.__data__=e?e(null):{},this.size=0}return f(t,"t"),s(t,"hashClear"),PU=t,PU}f(CMe,"Kit");function EMe(){if(CPe)return FU;CPe=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return f(e,"e"),s(e,"hashDelete"),FU=e,FU}f(EMe,"Zit");function SMe(){if(EPe)return zU;EPe=1;var e=_3(),t="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function n(a){var o=this.__data__;if(e){var l=o[a];return l===t?void 0:l}return i.call(o,a)?o[a]:void 0}return f(n,"n"),s(n,"hashGet"),zU=n,zU}f(SMe,"Qit");function _Me(){if(SPe)return qU;SPe=1;var e=_3(),t=Object.prototype,r=t.hasOwnProperty;function i(n){var a=this.__data__;return e?a[n]!==void 0:r.call(a,n)}return f(i,"i"),s(i,"hashHas"),qU=i,qU}f(_Me,"Jit");function AMe(){if(_Pe)return jU;_Pe=1;var e=_3(),t="__lodash_hash_undefined__";function r(i,n){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&n===void 0?t:n,this}return f(r,"r"),s(r,"hashSet"),jU=r,jU}f(AMe,"ent");function LMe(){if(APe)return GU;APe=1;var e=CMe(),t=EMe(),r=SMe(),i=_Me(),n=AMe();function a(o){var l=-1,h=o==null?0:o.length;for(this.clear();++l<h;){var u=o[l];this.set(u[0],u[1])}}return f(a,"a"),s(a,"Hash"),a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=i,a.prototype.set=n,GU=a,GU}f(LMe,"tnt");function RMe(){if(LPe)return UU;LPe=1;function e(){this.__data__=[],this.size=0}return f(e,"e"),s(e,"listCacheClear"),UU=e,UU}f(RMe,"rnt");function _j(){if(RPe)return VU;RPe=1;function e(t,r){return t===r||t!==t&&r!==r}return f(e,"e"),s(e,"eq"),VU=e,VU}f(_j,"Sme");function A3(){if(IPe)return WU;IPe=1;var e=_j();function t(r,i){for(var n=r.length;n--;)if(e(r[n][0],i))return n;return-1}return f(t,"t"),s(t,"assocIndexOf"),WU=t,WU}f(A3,"eE");function IMe(){if(DPe)return HU;DPe=1;var e=A3(),t=Array.prototype,r=t.splice;function i(n){var a=this.__data__,o=e(a,n);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():r.call(a,o,1),--this.size,!0}return f(i,"i"),s(i,"listCacheDelete"),HU=i,HU}f(IMe,"int");function DMe(){if(NPe)return YU;NPe=1;var e=A3();function t(r){var i=this.__data__,n=e(i,r);return n<0?void 0:i[n][1]}return f(t,"t"),s(t,"listCacheGet"),YU=t,YU}f(DMe,"nnt");function NMe(){if(MPe)return XU;MPe=1;var e=A3();function t(r){return e(this.__data__,r)>-1}return f(t,"t"),s(t,"listCacheHas"),XU=t,XU}f(NMe,"ant");function MMe(){if(OPe)return KU;OPe=1;var e=A3();function t(r,i){var n=this.__data__,a=e(n,r);return a<0?(++this.size,n.push([r,i])):n[a][1]=i,this}return f(t,"t"),s(t,"listCacheSet"),KU=t,KU}f(MMe,"snt");function OMe(){if($Pe)return ZU;$Pe=1;var e=RMe(),t=IMe(),r=DMe(),i=NMe(),n=MMe();function a(o){var l=-1,h=o==null?0:o.length;for(this.clear();++l<h;){var u=o[l];this.set(u[0],u[1])}}return f(a,"a"),s(a,"ListCache"),a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=i,a.prototype.set=n,ZU=a,ZU}f(OMe,"ont");function $Me(){if(BPe)return QU;BPe=1;var e=H_(),t=C3(),r=e(t,"Map");return QU=r,QU}f($Me,"lnt");function BMe(){if(PPe)return JU;PPe=1;var e=LMe(),t=OMe(),r=$Me();function i(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return f(i,"i"),s(i,"mapCacheClear"),JU=i,JU}f(BMe,"cnt");function PMe(){if(FPe)return eV;FPe=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return f(e,"e"),s(e,"isKeyable"),eV=e,eV}f(PMe,"unt");function L3(){if(zPe)return tV;zPe=1;var e=PMe();function t(r,i){var n=r.__data__;return e(i)?n[typeof i=="string"?"string":"hash"]:n.map}return f(t,"t"),s(t,"getMapData"),tV=t,tV}f(L3,"tE");function FMe(){if(qPe)return rV;qPe=1;var e=L3();function t(r){var i=e(this,r).delete(r);return this.size-=i?1:0,i}return f(t,"t"),s(t,"mapCacheDelete"),rV=t,rV}f(FMe,"hnt");function zMe(){if(jPe)return iV;jPe=1;var e=L3();function t(r){return e(this,r).get(r)}return f(t,"t"),s(t,"mapCacheGet"),iV=t,iV}f(zMe,"dnt");function qMe(){if(GPe)return nV;GPe=1;var e=L3();function t(r){return e(this,r).has(r)}return f(t,"t"),s(t,"mapCacheHas"),nV=t,nV}f(qMe,"fnt");function jMe(){if(UPe)return aV;UPe=1;var e=L3();function t(r,i){var n=e(this,r),a=n.size;return n.set(r,i),this.size+=n.size==a?0:1,this}return f(t,"t"),s(t,"mapCacheSet"),aV=t,aV}f(jMe,"pnt");function GMe(){if(VPe)return sV;VPe=1;var e=BMe(),t=FMe(),r=zMe(),i=qMe(),n=jMe();function a(o){var l=-1,h=o==null?0:o.length;for(this.clear();++l<h;){var u=o[l];this.set(u[0],u[1])}}return f(a,"a"),s(a,"MapCache"),a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=i,a.prototype.set=n,sV=a,sV}f(GMe,"mnt");function UMe(){if(WPe)return oV;WPe=1;var e=GMe(),t="Expected a function";function r(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(t);var a=s(function(){var o=arguments,l=n?n.apply(this,o):o[0],h=a.cache;if(h.has(l))return h.get(l);var u=i.apply(this,o);return a.cache=h.set(l,u)||h,u},"memoized");return a.cache=new(r.Cache||e),a}return f(r,"r"),s(r,"memoize"),r.Cache=e,oV=r,oV}f(UMe,"gnt");function VMe(){if(HPe)return lV;HPe=1;var e=UMe(),t=500;function r(i){var n=e(i,function(o){return a.size===t&&a.clear(),o}),a=n.cache;return n}return f(r,"r"),s(r,"memoizeCapped"),lV=r,lV}f(VMe,"ynt");function Aj(){if(YPe)return cV;YPe=1;var e=VMe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,i=e(function(n){var a=[];return n.charCodeAt(0)===46&&a.push(""),n.replace(t,function(o,l,h,u){a.push(h?u.replace(r,"$1"):l||o)}),a});return cV=i,cV}f(Aj,"Eme");function Lj(){if(XPe)return hV;XPe=1;function e(t,r){for(var i=-1,n=t==null?0:t.length,a=Array(n);++i<n;)a[i]=r(t[i],i,t);return a}return f(e,"e"),s(e,"arrayMap"),hV=e,hV}f(Lj,"Ame");function WMe(){if(KPe)return uV;KPe=1;var e=V_(),t=Lj(),r=S3(),i=Uy(),n=e?e.prototype:void 0,a=n?n.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return t(l,o)+"";if(i(l))return a?a.call(l):"";var h=l+"";return h=="0"&&1/l==-1/0?"-0":h}return f(o,"s"),s(o,"baseToString"),uV=o,uV}f(WMe,"vnt");function Rj(){if(ZPe)return dV;ZPe=1;var e=WMe();function t(r){return r==null?"":e(r)}return f(t,"t"),s(t,"toString"),dV=t,dV}f(Rj,"_me");function Ij(){if(QPe)return pV;QPe=1;var e=S3(),t=yMe(),r=Aj(),i=Rj();function n(a,o){return e(a)?a:t(a,o)?[a]:r(i(a))}return f(n,"n"),s(n,"castPath"),pV=n,pV}f(Ij,"Dme");function Y_(){if(JPe)return gV;JPe=1;var e=Uy();function t(r){if(typeof r=="string"||e(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}return f(t,"t"),s(t,"toKey"),gV=t,gV}f(Y_,"kP");function HMe(){if(eFe)return fV;eFe=1;var e=Ij(),t=Y_();function r(i,n){n=e(n,i);for(var a=0,o=n.length;i!=null&&a<o;)i=i[t(n[a++])];return a&&a==o?i:void 0}return f(r,"r"),s(r,"baseGet"),fV=r,fV}f(HMe,"xnt");function YMe(){if(tFe)return mV;tFe=1;var e=HMe();function t(r,i,n){var a=r==null?void 0:e(r,i);return a===void 0?n:a}return f(t,"t"),s(t,"get"),mV=t,mV}f(YMe,"bnt");function XMe(){if(nFe)return yV;nFe=1;var e=H_(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch(i){}})();return yV=t,yV}f(XMe,"knt");function KMe(){if(aFe)return vV;aFe=1;var e=XMe();function t(r,i,n){i=="__proto__"&&e?e(r,i,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[i]=n}return f(t,"t"),s(t,"baseAssignValue"),vV=t,vV}f(KMe,"wnt");function ZMe(){if(sFe)return bV;sFe=1;var e=KMe(),t=_j(),r=Object.prototype,i=r.hasOwnProperty;function n(a,o,l){var h=a[o];(!(i.call(a,o)&&t(h,l))||l===void 0&&!(o in a))&&e(a,o,l)}return f(n,"n"),s(n,"assignValue"),bV=n,bV}f(ZMe,"Snt");function QMe(){if(oFe)return xV;oFe=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(i,n){var a=typeof i;return n=n!=null?n:e,!!n&&(a=="number"||a!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<n}return f(r,"r"),s(r,"isIndex"),xV=r,xV}f(QMe,"Ent");function JMe(){if(lFe)return kV;lFe=1;var e=ZMe(),t=Ij(),r=QMe(),i=Gy(),n=Y_();function a(o,l,h,u){if(!i(o))return o;l=t(l,o);for(var d=-1,p=l.length,g=p-1,m=o;m!=null&&++d<p;){var y=n(l[d]),x=h;if(y==="__proto__"||y==="constructor"||y==="prototype")return o;if(d!=g){var C=m[y];x=u?u(C,y,m):void 0,x===void 0&&(x=i(C)?C:r(l[d+1])?[]:{})}e(m,y,x),m=m[y]}return o}return f(a,"a"),s(a,"baseSet"),kV=a,kV}f(JMe,"Ant");function eOe(){if(cFe)return TV;cFe=1;var e=JMe();function t(r,i,n){return r==null?r:e(r,i,n)}return f(t,"t"),s(t,"set"),TV=t,TV}f(eOe,"_nt");function tOe(){if(dFe)return wV;dFe=1;function e(t,r){var i=-1,n=t.length;for(r||(r=Array(n));++i<n;)r[i]=t[i];return r}return f(e,"e"),s(e,"copyArray"),wV=e,wV}f(tOe,"Lnt");function rOe(){if(pFe)return CV;pFe=1;var e=Lj(),t=tOe(),r=S3(),i=Uy(),n=Aj(),a=Y_(),o=Rj();function l(h){return r(h)?e(h,a):i(h)?[h]:t(n(o(h)))}return f(l,"l"),s(l,"toPath"),CV=l,CV}f(rOe,"Mnt");function X_(e,t,r,i){for(var n=[],a=new gf,o=e.cy(),l=o.hasCompoundNodes(),h=0;h<e.length;h++){var u=e[h];r?n.push(u):l&&i(n,a,u)}for(;n.length>0;){var d=n.shift();t(d),a.add(d.id()),l&&i(n,a,d)}return e}f(X_,"SP");function Dj(e,t,r){if(r.isParent())for(var i=r._private.children,n=0;n<i.length;n++){var a=i[n];t.has(a.id())||e.push(a)}}f(Dj,"Lme");function Nj(e,t,r){if(r.isChild()){var i=r._private.parent;t.has(i.id())||e.push(i)}}f(Nj,"Mme");function iOe(e,t,r){Nj(e,t,r),Dj(e,t,r)}f(iOe,"Qnt");function K_(e){return function(t){var r=this;if(t===void 0&&(t=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var i=0,n=r[0],a=n._private.edges,o=0;o<a.length;o++){var l=a[o];!t&&l.isLoop()||(i+=e(n,l))}return i}else return}}f(K_,"MO");function lf(e,t){return function(r){for(var i,n=this.nodes(),a=0;a<n.length;a++){var o=n[a],l=o[e](r);l!==void 0&&(i===void 0||t(l,i))&&(i=l)}return i}}f(lf,"e1");function Vy(){return!1}f(Vy,"Ob");function R3(){return!0}f(R3,"g3");function I3(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JFe,t=arguments.length>1?arguments[1]:void 0,r=0;r<zV.length;r++){var i=zV[r];this[i]=e[i]||FV[i]}this.context=t||this.context,this.listeners=[],this.emitting=0}f(I3,"iE");function Mj(e,t,r){var i=r._private,n=i.styleCache=i.styleCache||[],a;return(a=n[e])!=null||(a=n[e]=t(r)),a}f(Mj,"Yme");function D3(e,t){return e=Bp(e),s(function(r){return Mj(e,t,r)},"cachedStyleFunction")}f(D3,"nE");function N3(e,t){e=Bp(e);var r=s(function(i){return t.call(i)},"selfFn");return s(function(){var i=this[0];if(i)return Mj(e,r,i)},"cachedPrototypeStyleFunction")}f(N3,"aE");function Z_(e,t){var r=e._private,i=r.data.parent?e.parents():null;if(i)for(var n=0;n<i.length;n++){var a=i[n];if(!t(a))return!1}return!0}f(Z_,"IO");function Q_(e){var t=e.ok,r=e.edgeOkViaNode||e.ok,i=e.parentOk||e.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var a=this[0],o=n.hasCompoundNodes();if(a){var l=a._private;if(!t(a))return!1;if(a.isNode())return!o||Z_(a,i);var h=l.source,u=l.target;return r(h)&&(!o||Z_(h,r))&&(h===u||r(u)&&(!o||Z_(u,r)))}}}f(Q_,"EP");function Oj(e){return function(){var t=arguments,r=[];if(t.length===2){var i=t[0],n=t[1];this.on(e.event,i,n)}else if(t.length===1&&Zn(t[0])){var a=t[0];this.on(e.event,a)}else if(t.length===0||t.length===1&&cn(t[0])){for(var o=t.length===1?t[0]:null,l=0;l<this.length;l++){var h=this[l],u=!e.ableField||h._private[e.ableField],d=h._private[e.field]!=e.value;if(e.overrideAble){var p=e.overrideAble(h);if(p!==void 0&&(u=p,!p))return this}u&&(h._private[e.field]=e.value,d&&r.push(h))}var g=this.spawn(r);g.updateStyle(),g.emit(e.event),o&&g.emit(o)}return this}}f(Oj,"s0e");function cf(e){vd[e.field]=function(){var t=this[0];if(t){if(e.overrideField){var r=e.overrideField(t);if(r!==void 0)return r}return t._private[e.field]}},vd[e.on]=Oj({event:e.on,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!0}),vd[e.off]=Oj({event:e.off,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!1})}f(cf,"b1");function $j(e){return s(function(t){for(var r=[],i=0;i<this.length;i++){var n=this[i],a=n._private[e.attr];a&&r.push(a)}return this.spawn(r,!0).filter(t)},"sourceImpl")}f($j,"u0e");function Bj(e){return s(function(t){var r=[],i=this._private.cy,n=e||{};Mr(t)&&(t=i.$(t));for(var a=0;a<t.length;a++)for(var o=t[a]._private.edges,l=0;l<o.length;l++){var h=o[l],u=h._private.data,d=this.hasElementWithId(u.source)&&t.hasElementWithId(u.target),p=t.hasElementWithId(u.source)&&this.hasElementWithId(u.target),g=d||p;g&&((n.thisIsSrc||n.thisIsTgt)&&(n.thisIsSrc&&!d||n.thisIsTgt&&!p)||r.push(h))}return this.spawn(r,!0)},"edgesWithImpl")}f(Bj,"h0e");function Pj(e){var t={codirected:!1};return e=qr({},t,e),s(function(r){for(var i=[],n=this.edges(),a=e,o=0;o<n.length;o++)for(var l=n[o],h=l._private,u=h.source,d=u._private.data.id,p=h.data.target,g=u._private.edges,m=0;m<g.length;m++){var y=g[m],x=y._private.data,C=x.target,w=x.source,_=C===p&&w===d,S=d===C&&p===w;(a.codirected&&_||!a.codirected&&(_||S))&&i.push(y)}return this.spawn(i,!0).filter(r)},"parallelEdgesImpl")}f(Pj,"d0e");function nOe(e,t,r,i){var n=4,a=.001,o=1e-7,l=10,h=11,u=1/(h-1),d=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var p=0;p<4;++p)if(typeof arguments[p]!="number"||isNaN(arguments[p])||!isFinite(arguments[p]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var g=d?new Float32Array(h):new Array(h);function m(I,$){return 1-3*$+3*I}f(m,"m"),s(m,"A");function y(I,$){return 3*$-6*I}f(y,"g"),s(y,"B");function x(I){return 3*I}f(x,"y"),s(x,"C");function C(I,$,O){return((m($,O)*I+y($,O))*I+x($))*I}f(C,"v"),s(C,"calcBezier");function w(I,$,O){return 3*m($,O)*I*I+2*y($,O)*I+x($)}f(w,"x"),s(w,"getSlope");function _(I,$){for(var O=0;O<n;++O){var j=w($,e,r);if(j===0)return $;var D=C($,e,r)-I;$-=D/j}return $}f(_,"b"),s(_,"newtonRaphsonIterate");function S(){for(var I=0;I<h;++I)g[I]=C(I*u,e,r)}f(S,"T"),s(S,"calcSampleValues");function R(I,$,O){var j,D,P=0;do D=$+(O-$)/2,j=C(D,e,r)-I,j>0?O=D:$=D;while(Math.abs(j)>o&&++P<l);return D}f(R,"w"),s(R,"binarySubdivide");function b(I){for(var $=0,O=1,j=h-1;O!==j&&g[O]<=I;++O)$+=u;--O;var D=(I-g[O])/(g[O+1]-g[O]),P=$+D*u,F=w(P,e,r);return F>=a?_(I,P):F===0?P:R(I,$,$+u)}f(b,"C"),s(b,"getTForX");var v=!1;function k(){v=!0,(e!==t||r!==i)&&S()}f(k,"E"),s(k,"precompute");var E=s(function(I){return v||k(),e===t&&r===i?I:I===0?0:I===1?1:C(b(I),t,i)},"f");E.getControlPoints=function(){return[{x:e,y:t},{x:r,y:i}]};var A="generateBezier("+[e,t,r,i]+")";return E.toString=function(){return A},E}f(nOe,"_at");function Fj(e,t,r,i,n){if(i===1||t===r)return r;var a=n(t,r,i);return e==null||((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max))),a}f(Fj,"f0e");function zj(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}f(zj,"p0e");function hf(e,t,r,i,n){var a=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var o=zj(e,n),l=zj(t,n);if(ir(o)&&ir(l))return Fj(a,o,l,r,i);if(cn(o)&&cn(l)){for(var h=[],u=0;u<l.length;u++){var d=o[u],p=l[u];if(d!=null&&p!=null){var g=Fj(a,d,p,r,i);h.push(g)}else h.push(p)}return h}}f(hf,"t1");function aOe(e,t,r,i){var n=!i,a=e._private,o=t._private,l=o.easing,h=o.startTime,u=i?e:e.cy(),d=u.style();if(!o.easingImpl)if(l==null)o.easingImpl=lk.linear;else{var p;if(Mr(l)){var g=d.parse("transition-timing-function",l);p=g.value}else p=l;var m,y;Mr(p)?(m=p,y=[]):(m=p[1],y=p.slice(2).map(function(V){return+V})),y.length>0?(m==="spring"&&y.push(o.duration),o.easingImpl=lk[m].apply(null,y)):o.easingImpl=lk[m]}var x=o.easingImpl,C;if(o.duration===0?C=1:C=(r-h)/o.duration,o.applying&&(C=o.progress),C<0?C=0:C>1&&(C=1),o.delay==null){var w=o.startPosition,_=o.position;if(_&&n&&!e.locked()){var S={};Wy(w.x,_.x)&&(S.x=hf(w.x,_.x,C,x)),Wy(w.y,_.y)&&(S.y=hf(w.y,_.y,C,x)),e.position(S)}var R=o.startPan,b=o.pan,v=a.pan,k=b!=null&&i;k&&(Wy(R.x,b.x)&&(v.x=hf(R.x,b.x,C,x)),Wy(R.y,b.y)&&(v.y=hf(R.y,b.y,C,x)),e.emit("pan"));var E=o.startZoom,A=o.zoom,I=A!=null&&i;I&&(Wy(E,A)&&(a.zoom=e2(a.minZoom,hf(E,A,C,x),a.maxZoom)),e.emit("zoom")),(k||I)&&e.emit("viewport");var $=o.style;if($&&$.length>0&&n){for(var O=0;O<$.length;O++){var j=$[O],D=j.name,P=j,F=o.startStyle[D],U=d.properties[F.name],z=hf(F,P,C,x,U);d.overrideBypass(e,D,z)}e.emit("style")}}return o.progress=C,C}f(aOe,"Rat");function Wy(e,t){return e==null||t==null?!1:ir(e)&&ir(t)?!0:!!(e&&t)}f(Wy,"Pb");function sOe(e,t,r,i){var n=t._private;n.started=!0,n.startTime=r-n.progress*n.duration}f(sOe,"Lat");function qj(e,t){var r=t._private.aniEles,i=[];function n(d,p){var g=d._private,m=g.animation.current,y=g.animation.queue,x=!1;if(m.length===0){var C=y.shift();C&&m.push(C)}for(var w=s(function(b){for(var v=b.length-1;v>=0;v--){var k=b[v];k()}b.splice(0,b.length)},"callbacks"),_=m.length-1;_>=0;_--){var S=m[_],R=S._private;if(R.stopped){m.splice(_,1),R.hooked=!1,R.playing=!1,R.started=!1,w(R.frames);continue}!R.playing&&!R.applying||(R.playing&&R.applying&&(R.applying=!1),R.started||sOe(d,S,e),aOe(d,S,e,p),R.applying&&(R.applying=!1),w(R.frames),R.step!=null&&R.step(e),S.completed()&&(m.splice(_,1),R.hooked=!1,R.playing=!1,R.started=!1,w(R.completes)),x=!0)}return!p&&m.length===0&&y.length===0&&i.push(d),x}f(n,"n"),s(n,"stepOne");for(var a=!1,o=0;o<r.length;o++){var l=r[o],h=n(l);a=a||h}var u=n(t,!0);(a||u)&&(r.length>0?t.notify("draw",r):t.notify("draw")),r.unmerge(i),t.emit("step")}f(qj,"m0e");function jj(e){this.options=qr({},vze,bze,e)}f(jj,"Xme");function Gj(e){this.options=qr({},xze,e)}f(Gj,"Kme");function Uj(e){this.options=qr({},kze,e)}f(Uj,"Zme");function M3(e){this.options=qr({},Tze,e),this.options.layout=this;var t=this.options.eles.nodes(),r=this.options.eles.edges(),i=r.filter(function(n){var a=n.source().data("id"),o=n.target().data("id"),l=t.some(function(u){return u.data("id")===a}),h=t.some(function(u){return u.data("id")===o});return!l||!h});this.options.eles=this.options.eles.not(i)}f(M3,"lE");function Vj(e){this.options=qr({},$ze,e)}f(Vj,"tge");function J_(e){this.options=qr({},Bze,e)}f(J_,"DP");function Wj(e){this.options=qr({},Pze,e)}f(Wj,"rge");function Hj(e){this.options=qr({},Fze,e)}f(Hj,"ige");function Yj(e){this.options=e,this.notifications=0}f(Yj,"nge");function Xj(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}f(Xj,"oge");function e7(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return i===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Hze(e,t,r,i,n),{cx:aW,cy:sW,radius:Af,startX:Gze,startY:Uze,stopX:oW,stopY:lW,startAngle:Dc.ang+Math.PI/2*Sf,endAngle:ll.ang-Math.PI/2*Sf,counterClockwise:O7})}f(e7,"LP");function Kj(e){var t=[];if(e!=null){for(var r=0;r<e.length;r+=2){var i=e[r],n=e[r+1];t.push({x:i,y:n})}return t}}f(Kj,"lge");function oOe(e,t,r){for(var i=s(function(h,u,d,p){return Za(h,u,d,p)},"qbezierAt$1"),n=t._private,a=n.rstyle.bezierPts,o=0;o<e.bezierProjPcts.length;o++){var l=e.bezierProjPcts[o];a.push({x:i(r[0],r[2],r[4],l),y:i(r[1],r[3],r[5],l)})}}f(oOe,"dst");function lOe(e,t){for(var r=0;r<t.length;r++){var i=t[r];e.lineTo(i.x,i.y)}}f(lOe,"Vst");function cOe(e,t,r){for(var i,n=0;n<t.length;n++){var a=t[n];n===0&&(i=a),e.lineTo(a.x,a.y)}e.quadraticCurveTo(r.x,r.y,i.x,i.y)}f(cOe,"Wst");function Zj(e,t,r){e.beginPath&&e.beginPath();for(var i=t,n=0;n<i.length;n++){var a=i[n];e.lineTo(a.x,a.y)}var o=r,l=r[0];e.moveTo(l.x,l.y);for(var n=1;n<o.length;n++){var a=o[n];e.lineTo(a.x,a.y)}e.closePath&&e.closePath()}f(Zj,"N0e");function hOe(e,t,r,i,n){e.beginPath&&e.beginPath(),e.arc(r,i,n,0,Math.PI*2,!1);var a=t,o=a[0];e.moveTo(o.x,o.y);for(var l=0;l<a.length;l++){var h=a[l];e.lineTo(h.x,h.y)}e.closePath&&e.closePath()}f(hOe,"qst");function uOe(e,t,r,i){e.arc(t,r,i,0,Math.PI*2,!1)}f(uOe,"Ust");function dOe(e,t,r,i,n){var a=Math.min(i,n),o=a/2,l=t+i/2,h=r+n/2;e.beginPath(),e.arc(l,h,o,0,Math.PI*2),e.closePath()}f(dOe,"Zst");function Qj(e,t,r,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,i/2,n/2);e.beginPath(),e.moveTo(t+o,r),e.lineTo(t+i-o,r),e.quadraticCurveTo(t+i,r,t+i,r+o),e.lineTo(t+i,r+n-o),e.quadraticCurveTo(t+i,r+n,t+i-o,r+n),e.lineTo(t+o,r+n),e.quadraticCurveTo(t,r+n,t,r+n-o),e.lineTo(t,r+o),e.quadraticCurveTo(t,r,t+o,r),e.closePath()}f(Qj,"I0e");function Jj(e,t,r){var i=e.createShader(t);if(e.shaderSource(i,r),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(i));return i}f(Jj,"O0e");function pOe(e,t,r){var i=Jj(e,e.VERTEX_SHADER,t),n=Jj(e,e.FRAGMENT_SHADER,r),a=e.createProgram();if(e.attachShader(a,i),e.attachShader(a,n),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw new Error("Could not initialize shaders");return a}f(pOe,"Jst");function gOe(e,t,r){r===void 0&&(r=t);var i=e.makeOffscreenCanvas(t,r),n=i.context=i.getContext("2d");return i.clear=function(){return n.clearRect(0,0,i.width,i.height)},i.clear(),i}f(gOe,"eot");function t7(e){var t=e.pixelRatio,r=e.cy.zoom(),i=e.cy.pan();return{zoom:r*t,pan:{x:i.x*t,y:i.y*t}}}f(t7,"IP");function fOe(e){var t=e.pixelRatio,r=e.cy.zoom();return r*t}f(fOe,"tot");function mOe(e,t,r,i,n){var a=i*r+t.x,o=n*r+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}f(mOe,"rot");function yOe(e){return e.pstyle("background-fill").value!=="solid"||e.pstyle("background-image").strValue!=="none"?!1:e.pstyle("border-width").value===0||e.pstyle("border-opacity").value===0?!0:e.pstyle("border-style").value==="solid"}f(yOe,"iot");function vOe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}f(vOe,"not");function Op(e,t,r){var i=e[0]/255,n=e[1]/255,a=e[2]/255,o=t,l=r||new Array(4);return l[0]=i*o,l[1]=n*o,l[2]=a*o,l[3]=o,l}f(Op,"Hp");function uf(e,t){var r=t||new Array(4);return r[0]=(e>>0&255)/255,r[1]=(e>>8&255)/255,r[2]=(e>>16&255)/255,r[3]=(e>>24&255)/255,r}f(uf,"n1");function bOe(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}f(bOe,"aot");function xOe(e,t){var r=e.createTexture();return r.buffer=function(i){e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,i),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},r.deleteTexture=function(){e.deleteTexture(r)},r}f(xOe,"sot");function eG(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}f(eG,"Tge");function tG(e,t,r){switch(t){case e.FLOAT:return new Float32Array(r);case e.INT:return new Int32Array(r)}}f(tG,"Cge");function kOe(e,t,r,i,n,a){switch(t){case e.FLOAT:return new Float32Array(r.buffer,a*i,n);case e.INT:return new Int32Array(r.buffer,a*i,n)}}f(kOe,"oot");function TOe(e,t,r,i){var n=eG(e,t),a=Ea(n,2),o=a[0],l=a[1],h=tG(e,l,i),u=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,h,e.STATIC_DRAW),l===e.FLOAT?e.vertexAttribPointer(r,o,l,!1,0,0):l===e.INT&&e.vertexAttribIPointer(r,o,l,0,0),e.enableVertexAttribArray(r),e.bindBuffer(e.ARRAY_BUFFER,null),u}f(TOe,"lot");function Ac(e,t,r,i){var n=eG(e,r),a=Ea(n,3),o=a[0],l=a[1],h=a[2],u=tG(e,l,t*o),d=o*h,p=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,p),e.bufferData(e.ARRAY_BUFFER,t*d,e.DYNAMIC_DRAW),e.enableVertexAttribArray(i),l===e.FLOAT?e.vertexAttribPointer(i,o,l,!1,d,0):l===e.INT&&e.vertexAttribIPointer(i,o,l,d,0),e.vertexAttribDivisor(i,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var g=new Array(t),m=0;m<t;m++)g[m]=kOe(e,l,u,d,o,m);return p.dataArray=u,p.stride=d,p.size=o,p.getView=function(y){return g[y]},p.setPoint=function(y,x,C){var w=g[y];w[0]=x,w[1]=C},p.bufferSubData=function(y){e.bindBuffer(e.ARRAY_BUFFER,p),y?e.bufferSubData(e.ARRAY_BUFFER,0,u,0,y*o):e.bufferSubData(e.ARRAY_BUFFER,0,u)},p}f(Ac,"Oc");function wOe(e,t,r){for(var i=9,n=new Float32Array(t*i),a=new Array(t),o=0;o<t;o++){var l=o*i*4;a[o]=new Float32Array(n.buffer,l,i)}var h=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,h),e.bufferData(e.ARRAY_BUFFER,n.byteLength,e.DYNAMIC_DRAW);for(var u=0;u<3;u++){var d=r+u;e.enableVertexAttribArray(d),e.vertexAttribPointer(d,3,e.FLOAT,!1,36,u*12),e.vertexAttribDivisor(d,1)}return e.bindBuffer(e.ARRAY_BUFFER,null),h.getMatrixView=function(p){return a[p]},h.setData=function(p,g){a[g].set(p,0)},h.bufferSubData=function(){e.bindBuffer(e.ARRAY_BUFFER,h),e.bufferSubData(e.ARRAY_BUFFER,0,n)},h}f(wOe,"cot");function COe(e){var t=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,t);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),e.bindFramebuffer(e.FRAMEBUFFER,null),t.setFramebufferAttachmentSizes=function(i,n){e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,i,n,0,e.RGBA,e.UNSIGNED_BYTE,null)},t}f(COe,"uot");function r7(){var e=new LW(9);return LW!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}f(r7,"FO");function rG(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}f(rG,"B0e");function EOe(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],d=t[7],p=t[8],g=r[0],m=r[1],y=r[2],x=r[3],C=r[4],w=r[5],_=r[6],S=r[7],R=r[8];return e[0]=g*i+m*o+y*u,e[1]=g*n+m*l+y*d,e[2]=g*a+m*h+y*p,e[3]=x*i+C*o+w*u,e[4]=x*n+C*l+w*d,e[5]=x*a+C*h+w*p,e[6]=_*i+S*o+R*u,e[7]=_*n+S*l+R*d,e[8]=_*a+S*h+R*p,e}f(EOe,"hot");function O3(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],d=t[7],p=t[8],g=r[0],m=r[1];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=l,e[5]=h,e[6]=g*i+m*o+u,e[7]=g*n+m*l+d,e[8]=g*a+m*h+p,e}f(O3,"M3");function iG(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],d=t[7],p=t[8],g=Math.sin(r),m=Math.cos(r);return e[0]=m*i+g*o,e[1]=m*n+g*l,e[2]=m*a+g*h,e[3]=m*o-g*i,e[4]=m*l-g*n,e[5]=m*h-g*a,e[6]=u,e[7]=d,e[8]=p,e}f(iG,"F0e");function i7(e,t,r){var i=r[0],n=r[1];return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=n*t[3],e[4]=n*t[4],e[5]=n*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}f(i7,"sP");function SOe(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}f(SOe,"dot");function _Oe(e,t){return e.intersection?e.intersection(t):new Set(w3(e).filter(function(r){return t.has(r)}))}f(_Oe,"mot");function AOe(e){var t=e.cy.container(),r=t&&t.style&&t.style.backgroundColor||"white";return bG(r)}f(AOe,"kot");function nG(e,t){var r=e._private.rscratch;return uo(r,"labelWrapCachedLines",t)||[]}f(nG,"wge");function LOe(e){{var t=e.render;e.render=function(a){a=a||{};var o=e.cy;e.webgl&&(o.zoom()>kW?(ROe(e),t.call(e,a)):(IOe(e),sG(e,a,y2.SCREEN)))}}{var r=e.matchCanvasSize;e.matchCanvasSize=function(a){r.call(e,a),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(a,o,l,h){return BOe(e,a,o)};{var i=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){i.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var n=e.notify;e.notify=function(a,o){n.call(e,a,o),a==="viewport"||a==="bounds"?e.pickingFrameBuffer.needsDraw=!0:a==="background"&&e.drawing.invalidate(o,{type:"node-body"})}}}f(LOe,"wot");function ROe(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}f(ROe,"Sot");function IOe(e){var t=s(function(r){r.save(),r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,e.canvasWidth,e.canvasHeight),r.restore()},"clear");t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}f(IOe,"Eot");function DOe(e){var t=e.canvasWidth,r=e.canvasHeight,i=t7(e),n=i.pan,a=i.zoom,o=r7();O3(o,o,[n.x,n.y]),i7(o,o,[a,a]);var l=r7();SOe(l,t,r);var h=r7();return EOe(h,l,o),h}f(DOe,"Aot");function aG(e,t){var r=e.canvasWidth,i=e.canvasHeight,n=t7(e),a=n.pan,o=n.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r,i),t.translate(a.x,a.y),t.scale(o,o)}f(aG,"Sge");function NOe(e,t){e.drawSelectionRectangle(t,function(r){return aG(e,r)})}f(NOe,"_ot");function MOe(e){var t=e.data.contexts[e.NODE];t.save(),aG(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}f(MOe,"Dot");function OOe(e){var t=s(function(i,n,a){for(var o=i.atlasManager.getAtlasCollection(n),l=e.data.contexts[e.NODE],h=o.atlases,u=0;u<h.length;u++){var d=h[u],p=d.canvas;if(p){var g=p.width,m=p.height,y=g*u,x=p.height*a,C=.4;l.save(),l.scale(C,C),l.drawImage(p,y,x),l.strokeStyle="black",l.rect(y,x,g,m),l.stroke(),l.restore()}}},"draw"),r=0;t(e.drawing,"node",r++),t(e.drawing,"label",r++)}f(OOe,"Rot");function $Oe(e,t,r,i,n){var a,o,l,h,u=t7(e),d=u.pan,p=u.zoom;{var g=mOe(e,d,p,t,r),m=Ea(g,2),y=m[0],x=m[1],C=6;a=y-C/2,o=x-C/2,l=C,h=C}if(l===0||h===0)return[];var w=e.data.contexts[e.WEBGL];w.bindFramebuffer(w.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(w.viewport(0,0,w.canvas.width,w.canvas.height),sG(e,null,y2.PICKING),e.pickingFrameBuffer.needsDraw=!1);var _=l*h,S=new Uint8Array(_*4);w.readPixels(a,o,l,h,w.RGBA,w.UNSIGNED_BYTE,S),w.bindFramebuffer(w.FRAMEBUFFER,null);for(var R=new Set,b=0;b<_;b++){var v=S.slice(b*4,b*4+4),k=bOe(v)-1;k>=0&&R.add(k)}return R}f($Oe,"Lot");function BOe(e,t,r){var i=$Oe(e,t,r),n=e.getCachedZSortedEles(),a,o,l=ho(i),h;try{for(l.s();!(h=l.n()).done;){var u=h.value,d=n[u];if(!a&&d.isNode()&&(a=d),!o&&d.isEdge()&&(o=d),a&&o)break}}catch(p){l.e(p)}finally{l.f()}return[a,o].filter(Boolean)}f(BOe,"Mot");function n7(e,t,r){var i=e.drawing;t+=1,r.isNode()?(i.drawNode(r,t,"node-underlay"),i.drawNode(r,t,"node-body"),i.drawTexture(r,t,"label"),i.drawNode(r,t,"node-overlay")):(i.drawEdgeLine(r,t),i.drawEdgeArrow(r,t,"source"),i.drawEdgeArrow(r,t,"target"),i.drawTexture(r,t,"label"),i.drawTexture(r,t,"edge-source-label"),i.drawTexture(r,t,"edge-target-label"))}f(n7,"WO");function sG(e,t,r){var i;e.webglDebug&&(i=performance.now());var n=e.drawing,a=0;if(r.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&NOe(e,t),e.data.canvasNeedsRedraw[e.NODE]||r.picking){var o=e.data.contexts[e.WEBGL];r.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var l=DOe(e),h=e.getCachedZSortedEles();if(a=h.length,n.startFrame(l,r),r.screen){for(var u=0;u<h.nondrag.length;u++)n7(e,u,h.nondrag[u]);for(var d=0;d<h.drag.length;d++)n7(e,d,h.drag[d])}else if(r.picking)for(var p=0;p<h.length;p++)n7(e,p,h[p]);n.endFrame(),r.screen&&e.webglDebugShowAtlases&&(MOe(e),OOe(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var g=performance.now(),m=!1,y=Math.ceil(g-i),x=n.getDebugInfo(),C=["".concat(a," elements"),"".concat(x.totalInstances," instances"),"".concat(x.batchCount," batches"),"".concat(x.totalAtlases," atlases"),"".concat(x.wrappedCount," wrapped textures"),"".concat(x.simpleCount," simple shapes")].join(", ");if(m)console.log("WebGL (".concat(r.name,") - time ").concat(y,"ms, ").concat(C));else{console.log("WebGL (".concat(r.name,") - frame time ").concat(y,"ms")),console.log("Totals:"),console.log(" ".concat(C)),console.log("Texture Atlases Used:");var w=x.atlasInfo,_=ho(w),S;try{for(_.s();!(S=_.n()).done;){var R=S.value;console.log(" ".concat(R.type,": ").concat(R.keyCount," keys, ").concat(R.atlasCount," atlases"))}}catch(b){_.e(b)}finally{_.f()}console.log("")}}e.data.gc&&(console.log("Garbage Collect!"),e.data.gc=!1,n.gc())}f(sG,"Ege");function POe(e,t){for(var r=atob(e),i=new ArrayBuffer(r.length),n=new Uint8Array(i),a=0;a<r.length;a++)n[a]=r.charCodeAt(a);return new Blob([i],{type:t})}f(POe,"Not");function oG(e){var t=e.indexOf(",");return e.substr(t+1)}f(oG,"W0e");function lG(e,t,r){var i=s(function(){return t.toDataURL(r,e.quality)},"getB64Uri");switch(e.output){case"blob-promise":return new kf(function(n,a){try{t.toBlob(function(o){o!=null?n(o):a(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,e.quality)}catch(o){a(o)}});case"blob":return POe(oG(i()),r);case"base64":return oG(i());default:return i()}}f(lG,"_ge");function cG(e){var t=this,r=t.cy.window(),i=r.document;e.webgl&&(mi.CANVAS_LAYERS=t.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),t.data={canvases:new Array(mi.CANVAS_LAYERS),contexts:new Array(mi.CANVAS_LAYERS),canvasNeedsRedraw:new Array(mi.CANVAS_LAYERS),bufferCanvases:new Array(mi.BUFFER_COUNT),bufferContexts:new Array(mi.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";t.data.canvasContainer=i.createElement("div");var o=t.data.canvasContainer.style;t.data.canvasContainer.style[n]=a,o.position="relative",o.zIndex="0",o.overflow="hidden";var l=e.cy.container();l.appendChild(t.data.canvasContainer),l.style[n]=a;var h={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};KOe()&&(h["-ms-touch-action"]="none",h["touch-action"]="none");for(var u=0;u<mi.CANVAS_LAYERS;u++){var d=t.data.canvases[u]=i.createElement("canvas"),p=mi.CANVAS_TYPES[u];t.data.contexts[u]=d.getContext(p),t.data.contexts[u]||Gn("Could not create canvas of type "+p),Object.keys(h).forEach(function(se){d.style[se]=h[se]}),d.style.position="absolute",d.setAttribute("data-id","layer"+u),d.style.zIndex=String(mi.CANVAS_LAYERS-u),t.data.canvasContainer.appendChild(d),t.data.canvasNeedsRedraw[u]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[mi.NODE].setAttribute("data-id","layer"+mi.NODE+"-node"),t.data.canvases[mi.SELECT_BOX].setAttribute("data-id","layer"+mi.SELECT_BOX+"-selectbox"),t.data.canvases[mi.DRAG].setAttribute("data-id","layer"+mi.DRAG+"-drag"),t.data.canvases[mi.WEBGL]&&t.data.canvases[mi.WEBGL].setAttribute("data-id","layer"+mi.WEBGL+"-webgl");for(var u=0;u<mi.BUFFER_COUNT;u++)t.data.bufferCanvases[u]=i.createElement("canvas"),t.data.bufferContexts[u]=t.data.bufferCanvases[u].getContext("2d"),t.data.bufferCanvases[u].style.position="absolute",t.data.bufferCanvases[u].setAttribute("data-id","buffer"+u),t.data.bufferCanvases[u].style.zIndex=String(-u-1),t.data.bufferCanvases[u].style.visibility="hidden";t.pathsEnabled=!0;var g=js(),m=s(function(se){return{x:(se.x1+se.x2)/2,y:(se.y1+se.y2)/2}},"getBoxCenter"),y=s(function(se){return{x:-se.w/2,y:-se.h/2}},"getCenterOffset"),x=s(function(se){var le=se[0]._private,ue=le.oldBackgroundTimestamp===le.backgroundTimestamp;return!ue},"backgroundTimestampHasChanged"),C=s(function(se){return se[0]._private.nodeKey},"getStyleKey"),w=s(function(se){return se[0]._private.labelStyleKey},"getLabelKey"),_=s(function(se){return se[0]._private.sourceLabelStyleKey},"getSourceLabelKey"),S=s(function(se){return se[0]._private.targetLabelStyleKey},"getTargetLabelKey"),R=s(function(se,le,ue,de,we){return t.drawElement(se,le,ue,!1,!1,we)},"drawElement"),b=s(function(se,le,ue,de,we){return t.drawElementText(se,le,ue,de,"main",we)},"drawLabel"),v=s(function(se,le,ue,de,we){return t.drawElementText(se,le,ue,de,"source",we)},"drawSourceLabel"),k=s(function(se,le,ue,de,we){return t.drawElementText(se,le,ue,de,"target",we)},"drawTargetLabel"),E=s(function(se){return se.boundingBox(),se[0]._private.bodyBounds},"getElementBox"),A=s(function(se){return se.boundingBox(),se[0]._private.labelBounds.main||g},"getLabelBox"),I=s(function(se){return se.boundingBox(),se[0]._private.labelBounds.source||g},"getSourceLabelBox"),$=s(function(se){return se.boundingBox(),se[0]._private.labelBounds.target||g},"getTargetLabelBox"),O=s(function(se,le){return le},"isLabelVisibleAtScale"),j=s(function(se){return m(E(se))},"getElementRotationPoint"),D=s(function(se,le,ue){var de=se?se+"-":"";return{x:le.x+ue.pstyle(de+"text-margin-x").pfValue,y:le.y+ue.pstyle(de+"text-margin-y").pfValue}},"addTextMargin"),P=s(function(se,le,ue){var de=se[0]._private.rscratch;return{x:de[le],y:de[ue]}},"getRsPt"),F=s(function(se){return D("",P(se,"labelX","labelY"),se)},"getLabelRotationPoint"),U=s(function(se){return D("source",P(se,"sourceLabelX","sourceLabelY"),se)},"getSourceLabelRotationPoint"),z=s(function(se){return D("target",P(se,"targetLabelX","targetLabelY"),se)},"getTargetLabelRotationPoint"),V=s(function(se){return y(E(se))},"getElementRotationOffset"),W=s(function(se){return y(I(se))},"getSourceLabelRotationOffset"),X=s(function(se){return y($(se))},"getTargetLabelRotationOffset"),J=s(function(se){var le=A(se),ue=y(A(se));if(se.isNode()){switch(se.pstyle("text-halign").value){case"left":ue.x=-le.w-(le.leftPad||0);break;case"right":ue.x=-(le.rightPad||0);break}switch(se.pstyle("text-valign").value){case"top":ue.y=-le.h-(le.topPad||0);break;case"bottom":ue.y=-(le.botPad||0);break}}return ue},"getLabelRotationOffset"),H=t.data.eleTxrCache=new f2(t,{getKey:C,doesEleInvalidateKey:x,drawElement:R,getBoundingBox:E,getRotationPoint:j,getRotationOffset:V,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),te=t.data.lblTxrCache=new f2(t,{getKey:w,drawElement:b,getBoundingBox:A,getRotationPoint:F,getRotationOffset:J,isVisible:O}),ie=t.data.slbTxrCache=new f2(t,{getKey:_,drawElement:v,getBoundingBox:I,getRotationPoint:U,getRotationOffset:W,isVisible:O}),oe=t.data.tlbTxrCache=new f2(t,{getKey:S,drawElement:k,getBoundingBox:$,getRotationPoint:z,getRotationOffset:X,isVisible:O}),he=t.data.lyrTxrCache=new CW(t);t.onUpdateEleCalcs(s(function(se,le){H.invalidateElements(le),te.invalidateElements(le),ie.invalidateElements(le),oe.invalidateElements(le),he.invalidateElements(le);for(var ue=0;ue<le.length;ue++){var de=le[ue]._private;de.oldBackgroundTimestamp=de.backgroundTimestamp}},"invalidateTextureCaches"));var pe=s(function(se){for(var le=0;le<se.length;le++)he.enqueueElementRefinement(se[le].ele)},"refineInLayers");H.onDequeue(pe),te.onDequeue(pe),ie.onDequeue(pe),oe.onDequeue(pe),e.webgl&&t.initWebgl(e,{getStyleKey:C,getLabelKey:w,getSourceLabelKey:_,getTargetLabelKey:S,drawElement:R,drawLabel:b,drawSourceLabel:v,drawTargetLabel:k,getElementBox:E,getLabelBox:A,getSourceLabelBox:I,getTargetLabelBox:$,getElementRotationPoint:j,getElementRotationOffset:V,getLabelRotationPoint:F,getSourceLabelRotationPoint:U,getTargetLabelRotationPoint:z,getLabelRotationOffset:J,getSourceLabelRotationOffset:W,getTargetLabelRotationOffset:X})}f(cG,"Rge");function hG(e,t,r){var i=r,n=s(function(k){Yi("Can not register `"+t+"` for `"+e+"` since `"+k+"` already exists in the prototype and can not be overridden")},"overrideErr");if(e==="core"){if(h2.prototype[t])return n(t);h2.prototype[t]=r}else if(e==="collection"){if(os.prototype[t])return n(t);os.prototype[t]=r}else if(e==="layout"){for(var a=s(function(k){this.options=k,r.call(this,k),Mi(this._private)||(this._private={}),this._private.cy=k.cy,this._private.listeners=[],this.createEmitter()},"Layout"),o=a.prototype=Object.create(r.prototype),l=[],h=0;h<l.length;h++){var u=l[h];o[u]=o[u]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var d=r.prototype.stop;o.stop=function(){var k=this.options;if(k&&k.animate){var E=this.animations;if(E)for(var A=0;A<E.length;A++)E[A].stop()}return d?d.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var p=s(function(k){return k._private.cy},"getCy"),g={addEventFields:s(function(k,E){E.layout=k,E.cy=p(k),E.target=k},"addEventFields"),bubble:s(function(){return!0},"bubble"),parent:s(function(k){return p(k)},"parent")};qr(o,{createEmitter:s(function(){return this._private.emitter=new I3(g,this),this},"createEmitter"),emitter:s(function(){return this._private.emitter},"emitter"),on:s(function(k,E){return this.emitter().on(k,E),this},"on"),one:s(function(k,E){return this.emitter().one(k,E),this},"one"),once:s(function(k,E){return this.emitter().one(k,E),this},"once"),removeListener:s(function(k,E){return this.emitter().removeListener(k,E),this},"removeListener"),removeAllListeners:s(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),emit:s(function(k,E){return this.emitter().emit(k,E),this},"emit")}),Xi.eventAliasesOn(o),i=a}else if(e==="renderer"&&t!=="null"&&t!=="base"){var m=uG("renderer","base"),y=m.prototype,x=r,C=r.prototype,w=s(function(){m.apply(this,arguments),x.apply(this,arguments)},"Renderer"),_=w.prototype;for(var S in y){var R=y[S],b=C[S]!=null;if(b)return n(S);_[S]=R}for(var v in C)_[v]=C[v];y.clientFunctions.forEach(function(k){_[k]=_[k]||function(){Gn("Renderer does not implement `renderer."+k+"()` on its prototype")}}),i=w}else if(e==="__proto__"||e==="constructor"||e==="prototype")return Gn(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return xG({map:BW,keys:[e,t],value:i})}f(hG,"Nge");function uG(e,t){return kG({map:BW,keys:[e,t]})}f(uG,"Ige");function FOe(e,t,r,i,n){return xG({map:PW,keys:[e,t,r,i],value:n})}f(FOe,"Fot");function zOe(e,t,r,i){return kG({map:PW,keys:[e,t,r,i]})}f(zOe,"$ot");var Pa,dG,qOe,pG,jOe,GOe,Hy,Mr,Zn,cn,Mi,UOe,ir,VOe,$3,Oo,Yy,gG,a7,fG,WOe,ad,HOe,YOe,XOe,KOe,df,s7,B3,mG,yG,sd,Fa,ZOe,QOe,JOe,e$e,t$e,r$e,vG,i$e,qr,n$e,a$e,s$e,o$e,bG,l$e,xG,kG,P3,TG,c$e,wG,h$e,CG,u$e,EG,d$e,SG,p$e,_G,g$e,AG,f$e,LG,m$e,RG,y$e,IG,v$e,DG,b$e,NG,x$e,MG,k$e,OG,T$e,w$e,Xy,o7,$G,C$e,F3,Oh,$p,BG,pf,PG,Ky,Zy,E$e,od,z3,FG,Bp,zG,S$e,_$e,qG,A$e,L$e,l7,jG,q3,GG,c7,Gn,UG,Yi,R$e,Lc,I$e,VG,D$e,WG,as,ld,h7,N$e,uo,$h,M$e,Bh,O$e,$$e,gf,j3,HG,Qy,u7,B$e,P$e,F$e,z$e,q$e,Jy,j$e,G$e,U$e,V$e,W$e,H$e,Y$e,X$e,K$e,Z$e,Q$e,d7,J$e,YG,eBe,G3,XG,ff,tBe,rBe,iBe,nBe,aBe,U3,p7,g7,Pp,Fp,sBe,Za,mf,oBe,e2,js,lBe,cBe,hBe,KG,V3,W3,ZG,f7,cd,QG,JG,uBe,eU,dBe,pBe,gBe,fBe,mBe,yBe,po,Ph,vBe,H3,Y3,bBe,zp,t2,m7,hd,xBe,r2,kBe,X3,Gs,tU,y7,ud,rU,v7,TBe,b7,wBe,CBe,iU,yf,nU,vf,EBe,x
vendor: 4,464 bytes, line 577
5777,SBe,_Be,ABe,LBe,aU,RBe,IBe,DBe,NBe,MBe,OBe,$Be,sU,BBe,PBe,oU,lU,cU,FBe,zBe,i2,bf,qBe,k7,K3,T7,hU,uU,jBe,GBe,UBe,dU,pU,VBe,WBe,HBe,YBe,XBe,gU,KBe,ZBe,QBe,JBe,fU,xf,w7,C7,mU,ePe,tPe,rPe,iPe,nPe,aPe,yU,sPe,vU,oPe,lPe,cPe,Z3,hPe,Q3,uPe,bU,xU,kU,TU,Bl,wU,CU,EU,SU,_U,kf,E7,qp,dPe,AU,pPe,LU,gPe,RU,fPe,IU,mPe,DU,yPe,NU,vPe,MU,bPe,OU,xPe,$U,kPe,BU,TPe,PU,wPe,FU,CPe,zU,EPe,qU,SPe,jU,_Pe,GU,APe,UU,LPe,VU,RPe,WU,IPe,HU,DPe,YU,NPe,XU,MPe,KU,OPe,ZU,$Pe,QU,BPe,JU,PPe,eV,FPe,tV,zPe,rV,qPe,iV,jPe,nV,GPe,aV,UPe,sV,VPe,oV,WPe,lV,HPe,cV,YPe,hV,XPe,uV,KPe,dV,ZPe,pV,QPe,gV,JPe,fV,eFe,mV,tFe,rFe,iFe,yV,nFe,vV,aFe,bV,sFe,xV,oFe,kV,lFe,TV,cFe,hFe,uFe,wV,dFe,CV,pFe,gFe,fFe,mFe,yFe,Xi,vFe,J3,Oi,nn,mr,S7,bFe,xFe,kFe,Tf,dd,_7,TFe,wFe,CFe,EFe,SFe,EV,_Fe,AFe,A7,LFe,ta,_n,RFe,IFe,DFe,pd,gd,fd,sl,wf,ek,NFe,MFe,tk,Rc,OFe,SV,_V,$Fe,n2,jp,ol,Pl,md,a2,rk,L7,AV,LV,BFe,PFe,RV,IV,DV,s2,NV,MV,FFe,ik,nk,OV,zFe,qFe,jFe,GFe,UFe,VFe,WFe,HFe,YFe,$V,XFe,KFe,ZFe,BV,PV,QFe,FV,zV,JFe,yd,qV,jV,eze,tze,ak,GV,UV,qi,rze,VV,sk,ize,nze,ok,ss,Cf,aze,sze,oze,lze,vd,Cs,WV,HV,YV,os,pn,cze,hze,gn,lk,uze,dze,ck,XV,R7,hk,pze,gze,I7,uk,Qa,o2,fze,l2,D7,Ic,dk,N7,Sa,pk,Ja,Es,mze,yze,Gp,c2,h2,gk,vze,bze,Ef,KV,xze,kze,ZV,Tze,wze,Cze,QV,T5t,Eze,JV,Sze,_ze,Aze,eW,Lze,Rze,fk,Ize,Dze,Nze,Mze,Oze,tW,rW,$ze,Bze,Pze,Fze,zze,iW,nW,M7,Up,mk,aW,sW,Dc,ll,qze,jze,Sf,O7,bd,_f,Af,Fh,u2,$7,Gze,Uze,oW,lW,Vze,cW,Wze,Hze,d2,Yze,Ss,p2,B7,Nc,hW,uW,Xze,dW,pW,gW,yk,vk,fW,mW,Lf,zh,g2,yW,Kze,vW,Rf,P7,bW,Zze,xW,bk,xk,F7,kW,Qze,Jze,eqe,tqe,rqe,iqe,nqe,aqe,sqe,oqe,lqe,cqe,hqe,If,uqe,f2,za,dqe,m2,kk,pqe,gqe,fqe,mqe,yqe,vqe,bqe,xqe,TW,kqe,wW,Tqe,CW,ls,EW,wqe,SW,Cqe,Mc,Eqe,Sqe,_qe,Aqe,Lqe,z7,qh,_W,q7,Vp,xd,AW,Us,Rqe,Tk,LW,Iqe,Dqe,Nqe,Mqe,Oqe,$qe,Bqe,Pqe,y2,wk,j7,RW,IW,G7,Df,Ck,v2,b2,Fqe,DW,U7,V7,kd,NW,MW,W7,H7,OW,Nf,x2,$W,zqe,mi,qqe,jqe,Gqe,BW,PW,Y7,Ek,Wp,Uqe,Oc,Vqe=Y(()=>{"use strict";for(s(G_,"_arrayLikeToArray"),s(YNe,"_arrayWithHoles"),s(XNe,"_arrayWithoutHoles"),s(id,"_classCallCheck"),s(KNe,"_defineProperties"),s(nd,"_createClass"),s(ho,"_createForOfIteratorHelper"),s(Cj,"_defineProperty$1"),s(ZNe,"_iterableToArray"),s(QNe,"_iterableToArrayLimit"),s(JNe,"_nonIterableRest"),s(eMe,"_nonIterableSpread"),s(Ea,"_slicedToArray"),s(w3,"_toConsumableArray"),s(tMe,"_toPrimitive"),s(Ej,"_toPropertyKey"),s(Ba,"_typeof"),s(U_,"_unsupportedIterableToArray"),Pa=typeof window>"u"?null:window,dG=Pa?Pa.navigator:null,Pa&&Pa.document,qOe=Ba(""),pG=Ba({}),jOe=Ba(function(){}),GOe=typeof HTMLElement>"u"?"undefined":Ba(HTMLElement),Hy=s(function(e){return e&&e.instanceString&&Zn(e.instanceString)?e.instanceString():null},"instanceStr"),Mr=s(function(e){return e!=null&&Ba(e)==qOe},"string"),Zn=s(function(e){return e!=null&&Ba(e)===jOe},"fn"),cn=s(function(e){return!Oo(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},"array"),Mi=s(function(e){return e!=null&&Ba(e)===pG&&!cn(e)&&e.constructor===Object},"plainObject"),UOe=s(function(e){return e!=null&&Ba(e)===pG},"object"),ir=s(function(e){return e!=null&&Ba(e)===Ba(1)&&!isNaN(e)},"number"),VOe=s(function(e){return ir(e)&&Math.floor(e)===e},"integer"),$3=s(function(e){if(GOe!=="undefined")return e!=null&&e instanceof HTMLElement},"htmlElement"),Oo=s(function(e){return Yy(e)||gG(e)},"elementOrCollection"),Yy=s(function(e){return Hy(e)==="collection"&&e._private.single},"element"),gG=s(function(e){return Hy(e)==="collection"&&!e._private.single},"collection"),a7=s(function(e){return Hy(e)==="core"},"core"),fG=s(function(e){return Hy(e)==="stylesheet"},"stylesheet"),WOe=s(function(e){return Hy(e)==="event"},"event"),ad=s(function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},"emptyString"),HOe=s(function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},"domElement"),YOe=s(function(e){return Mi(e)&&ir(e.x1)&&ir(e.x2)&&ir(e.y1)&&ir(e.y2)},"boundingBox"),XOe=s(function(e){return UOe(e)&&Zn(e.then)},"promise"),KOe=s(function(){return dG&&dG.userAgent.match(/msie|trident|edge/i)},"ms"),df=s(function(e,t){t||(t=s(function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);return i.join("$")},"keyFn"));var r=s(function(){var i=this,n=arguments,a,o=t.apply(i,n),l=r.cache;return(a=l[o])||(a=l[o]=e.apply(i,n)),a},"memoizedFn");return r.cache={},r},"memoize"),s7=df(function(e){return e.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}),B3=df(function(e){return e.replace(/(-\w)/g,function(t){return t[1].toUpperCase()})}
vendor: 4,893 bytes, line 577
577),mG=df(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),yG=s(function(e){return ad(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},"capitalize"),sd=s(function(e,t){return e.slice(-1*t.length)===t},"endsWith"),Fa="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",ZOe="rgb[a]?\\(("+Fa+"[%]?)\\s*,\\s*("+Fa+"[%]?)\\s*,\\s*("+Fa+"[%]?)(?:\\s*,\\s*("+Fa+"))?\\)",QOe="rgb[a]?\\((?:"+Fa+"[%]?)\\s*,\\s*(?:"+Fa+"[%]?)\\s*,\\s*(?:"+Fa+"[%]?)(?:\\s*,\\s*(?:"+Fa+"))?\\)",JOe="hsl[a]?\\(("+Fa+")\\s*,\\s*("+Fa+"[%])\\s*,\\s*("+Fa+"[%])(?:\\s*,\\s*("+Fa+"))?\\)",e$e="hsl[a]?\\((?:"+Fa+")\\s*,\\s*(?:"+Fa+"[%])\\s*,\\s*(?:"+Fa+"[%])(?:\\s*,\\s*(?:"+Fa+"))?\\)",t$e="\\#[0-9a-fA-F]{3}",r$e="\\#[0-9a-fA-F]{6}",vG=s(function(e,t){return e<t?-1:e>t?1:0},"ascending"),i$e=s(function(e,t){return-1*vG(e,t)},"descending"),qr=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,r=1;r<t.length;r++){var i=t[r];if(i!=null)for(var n=Object.keys(i),a=0;a<n.length;a++){var o=n[a];e[o]=i[o]}}return e},n$e=s(function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var t=e.length===4,r,i,n,a=16;return t?(r=parseInt(e[1]+e[1],a),i=parseInt(e[2]+e[2],a),n=parseInt(e[3]+e[3],a)):(r=parseInt(e[1]+e[2],a),i=parseInt(e[3]+e[4],a),n=parseInt(e[5]+e[6],a)),[r,i,n]}},"hex2tuple"),a$e=s(function(e){var t,r,i,n,a,o,l,h;function u(m,y,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?m+(y-m)*6*x:x<1/2?y:x<2/3?m+(y-m)*(2/3-x)*6:m}f(u,"d"),s(u,"hue2rgb");var d=new RegExp("^"+JOe+"$").exec(e);if(d){if(r=parseInt(d[1]),r<0?r=(360- -1*r%360)%360:r>360&&(r=r%360),r/=360,i=parseFloat(d[2]),i<0||i>100||(i=i/100,n=parseFloat(d[3]),n<0||n>100)||(n=n/100,a=d[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(i===0)o=l=h=Math.round(n*255);else{var p=n<.5?n*(1+i):n+i-n*i,g=2*n-p;o=Math.round(255*u(g,p,r+1/3)),l=Math.round(255*u(g,p,r)),h=Math.round(255*u(g,p,r-1/3))}t=[o,l,h,a]}return t},"hsl2tuple"),s$e=s(function(e){var t,r=new RegExp("^"+ZOe+"$").exec(e);if(r){t=[];for(var i=[],n=1;n<=3;n++){var a=r[n];if(a[a.length-1]==="%"&&(i[n]=!0),a=parseFloat(a),i[n]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=i[1]||i[2]||i[3],l=i[1]&&i[2]&&i[3];if(o&&!l)return;var h=r[4];if(h!==void 0){if(h=parseFloat(h),h<0||h>1)return;t.push(h)}}return t},"rgb2tuple"),o$e=s(function(e){return l$e[e.toLowerCase()]},"colorname2tuple"),bG=s(function(e){return(cn(e)?e:null)||o$e(e)||n$e(e)||s$e(e)||a$e(e)},"color2tuple"),l$e={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 10,637 bytes, line 577
577ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},xG=s(function(e){for(var t=e.map,r=e.keys,i=r.length,n=0;n<i;n++){var a=r[n];if(Mi(a))throw Error("Tried to set map with object key");n<r.length-1?(t[a]==null&&(t[a]={}),t=t[a]):t[a]=e.value}},"setMap"),kG=s(function(e){for(var t=e.map,r=e.keys,i=r.length,n=0;n<i;n++){var a=r[n];if(Mi(a))throw Error("Tried to get map with object key");if(t=t[a],t==null)return t}return t},"getMap"),P3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s(jy,"getDefaultExportFromCjs"),s(Gy,"requireIsObject"),s(rMe,"require_freeGlobal"),s(C3,"require_root"),s(iMe,"requireNow"),s(nMe,"require_trimmedEndIndex"),s(aMe,"require_baseTrim"),s(V_,"require_Symbol"),s(sMe,"require_getRawTag"),s(oMe,"require_objectToString"),s(Sj,"require_baseGetTag"),s(lMe,"requireIsObjectLike"),s(Uy,"requireIsSymbol"),s(cMe,"requireToNumber"),s(hMe,"requireDebounce"),w$e=hMe(),Xy=jy(w$e),o7=Pa?Pa.performance:null,$G=o7&&o7.now?function(){return o7.now()}:function(){return Date.now()},C$e=(function(){if(Pa){if(Pa.requestAnimationFrame)return function(e){Pa.requestAnimationFrame(e)};if(Pa.mozRequestAnimationFrame)return function(e){Pa.mozRequestAnimationFrame(e)};if(Pa.webkitRequestAnimationFrame)return function(e){Pa.webkitRequestAnimationFrame(e)};if(Pa.msRequestAnimationFrame)return function(e){Pa.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e($G())},1e3/60)}})(),F3=s(function(e){return C$e(e)},"requestAnimationFrame"),Oh=$G,$p=9261,BG=65599,pf=5381,PG=s(function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$p,r=t,i;i=e.next(),!i.done;)r=r*BG+i.value|0;return r},"hashIterableInts"),Ky=s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$p;return t*BG+e|0},"hashInt"),Zy=s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pf;return(t<<5)+t+e|0},"hashIntAlt"),E$e=s(function(e,t){return e*2097152+t},"combineHashes"),od=s(function(e){return e[0]*2097152+e[1]},"combineHashesArray"),z3=s(function(e,t){return[Ky(e[0],t[0]),Zy(e[1],t[1])]},"hashArrays"),FG=s(function(e,t){var r={value:0,done:!1},i=0,n=e.length,a={next:s(function(){return i<n?r.value=e[i++]:r.done=!0,r},"next")};return PG(a,t)},"hashIntsArray"),Bp=s(function(e,t){var r={value:0,done:!1},i=0,n=e.length,a={next:s(function(){return i<n?r.value=e.charCodeAt(i++):r.done=!0,r},"next")};return PG(a,t)},"hashString"),zG=s(function(){return S$e(arguments)},"hashStrings"),S$e=s(function(e){for(var t,r=0;r<e.length;r++){var i=e[r];r===0?t=Bp(i):t=Bp(i,t)}return t},"hashStringsArray"),s(uMe,"rotatePoint"),_$e=s(function(e,t,r,i,n,a){return{x:(e-r)*n+r,y:(t-i)*a+i}},"movePointByBoxAspect"),s(dMe,"rotatePosAndSkewByBox"),qG=!0,A$e=console.warn!=null,L$e=console.trace!=null,l7=Number.MAX_SAFE_INTEGER||9007199254740991,jG=s(function(){return!0},"trueify"),q3=s(function(){return!1},"falsify"),GG=s(function(){return 0},"zeroify"),c7=s(function(){},"noop"),Gn=s(function(e){throw new Error(e)},"error"),UG=s(function(e){if(e!==void 0)qG=!!e;else return qG},"warnings"),Yi=s(function(e){UG()&&(A$e?console.warn(e):(console.log(e),L$e&&console.trace()))},"warn"),R$e=s(function(e){return qr({},e)},"clone"),Lc=s(function(e){return e==null?e:cn(e)?e.slice():Mi(e)?R$e(e):e},"copy"),I$e=s(function(e){return e.slice()},"copyArray"),VG=s(function(e,t){for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t},"uuid"),D$e={},WG=s(function(){return D$e},"staticEmptyObject"),as=s(function(e){var t=Object.keys(e);return function(r){for(var i={},n=0;n<t.length;n++){var a=t[n],o=r==null?void 0:r[a];i[a]=o===void 0?e[a]:o}return i}},"defaults"),ld=s(function(e,t,r){for(var i=e.length-1;i>=0;i--)e[i]===t&&e.splice(i,1)},"removeFromArray"),h7=s(function(e){e.splice(0,e.length)},"clearArray"),N$e=s(function(e,t){for(var r=0;r<t.length;r++){var i=t[r];e.push(i)}},"push"),uo=s(function(e,t,r){return r&&(t=mG(r,t)),e[t]},"getPrefixedProperty"),$h=s(function(e,t,r,i){r&&(t=mG(r,t)),e[t]=i},"setPrefixedProperty"),M$e=(function(){function e(){id(this,e),this._obj={}}return f(e,"e"),s(e,"ObjectMap"),nd(e,[{key:"set",value:s(function(t,r){return this._obj[t]=r,this},"set")},{key:"delete",value:s(function(t){return this._obj[t]=void 0,this},"_delete")},{key:"clear",value:s(function(){this._obj={}},"clear")},{key:"has",value:s(function(t){return this._obj[t]!==void 0},"has")},{key:"get",value:s(function(t){return this._obj[t]},"get")}])})(),Bh=typeof Map<"u"?Map:M$e,O$e="undefined",$$e=(function(){function e(t){if(id(this,e),this._obj=Object.create(null),this.size=0,t!=null){var r;t.instanceString!=null&&t.instanceString()===this.instanceString()?r=t.toArray():r=t;for(var i=0;i<r.length;i++)this.add(r[i])}}return f(e,"e"),s(e,"ObjectSet"),nd(e,[{key:"instanceString",value:s(function(){return"set"},"instanceString")},{key:"add",value:s(function(t){var r=this._obj;r[t]!==1&&(r[t]=1,this.size++)},"add")},{key:"delete",value:s(function(t){var r=this._obj;r[t]===1&&(r[t]=0,this.size--)},"_delete")},{key:"clear",value:s(function(){this._obj=Object.create(null)},"clear")},{key:"has",value:s(function(t){return this._obj[t]===1},"has")},{key:"toArray",value:s(function(){var t=this;return Object.keys(this._obj).filter(function(r){return t.has(r)})},"toArray")},{key:"forEach",value:s(function(t,r){return this.toArray().forEach(t,r)},"forEach")}])})(),gf=(typeof Set>"u"?"undefined":Ba(Set))!==O$e?Set:$$e,j3=s(function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!a7(e)){Gn("An element must have a core reference and parameters set");return}var i=t.group;if(i==null&&(t.data&&t.data.source!=null&&t.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){Gn("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var n=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?i==="edges":!!t.pannable,active:!1,classes:new gf,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(n.position.x==null&&(n.position.x=0),n.position.y==null&&(n.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),l=e.zoom();n.position={x:(a.x-o.x)/l,y:(a.y-o.y)/l}}var h=[];cn(t.classes)?h=t.classes:Mr(t.classes)&&(h=t.classes.split(/\s+/));for(var u=0,d=h.length;u<d;u++){var p=h[u];!p||p===""||n.classes.add(p)}this.createEmitter(),(r===void 0||r)&&this.restore();var g=t.style||t.css;g&&(Yi("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(g))},"Element"),HG=s(function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},s(function(t,r,i){var n;Mi(t)&&!Oo(t)&&(n=t,t=n.roots||n.root,r=n.visit,i=n.directed),i=arguments.length===2&&!Zn(r)?r:i,r=Zn(r)?r:function(){};for(var a=this._private.cy,o=t=Mr(t)?this.filter(t):t,l=[],h=[],u={},d={},p={},g=0,m,y=this.byGroup(),x=y.nodes,C=y.edges,w=0;w<o.length;w++){var _=o[w],S=_.id();_.isNode()&&(l.unshift(_),e.bfs&&(p[S]=!0,h.push(_)),d[S]=0)}for(var R=s(function(){var I=e.bfs?l.shift():l.pop(),$=I.id();if(e.dfs){if(p[$])return 0;p[$]=!0,h.push(I)}var O=d[$],j=u[$],D=j!=null?j.source():null,P=j!=null?j.target():null,F=j==null?void 0:I.same(D)?P[0]:D[0],U;if(U=r(I,j,F,g++,O),U===!0)return m=I,1;if(U===!1)return 1;for(var z=I.connectedEdges().filter(function(H){return(!i||H.source().same(I))&&C.has(H)}),V=0;V<z.length;V++){var W=z[V],X=W.connectedNodes().filter(function(H){return!H.same(I)&&x.has(H)}),J=X.id();X.length!==0&&!p[J]&&(X=X[0],l.push(X),e.bfs&&(p[J]=!0,h.push(X)),u[J]=W,d[J]=d[$]+1)}},"_loop"),b;l.length!==0&&(b=R(),!(b!==0&&b===1)););for(var v=a.collection(),k=0;k<h.length;k++){var E=h[k],A=u[E.id()];A!=null&&v.push(A),v.push(E)}return{path:a.collection(v),found:a.collection(m)}},"searchFn")},"defineSearch"),Qy={breadthFirstSearch:HG({bfs:!0}),depthFirstSearch:HG({dfs:!0})},Qy.bfs=Qy.breadthFirstSearch,Qy.dfs=Qy.depthFirstSearch,u7={exports:{}},B$e=u7.exports,s(pMe,"requireHeap$1"),s(gMe,"requireHeap"),q$e=gMe(),Jy=jy(q$e),j$e=as({root:null,weight:s(function(e){return 1},"weight"),directed:!1}),G$e={dijkstra:s(function(e){if(!Mi(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var r=j$e(e),i=r.root,n=r.weight,a=r.directed,o=this,l=n,h=Mr(i)?this.filter(i)[0]:i[0],u={},d={},p={},g=this.byGroup(),m=g.nodes,y=g.edges;y.unmergeBy(function(D){return D.isLoop()});for(var x=s(function(D){return u[D.id()]},"getDist"),C=s(function(D,P){u[D.id()]=P,w.updateItem(D)},"setDist"),w=new Jy(function(D,P){return x(D)-x(P)}),_=0;_<m.length;_++){var S=m[_];u[S.id()]=S.same(h)?0:1/0,w.push(S)}for(var R=s(function(D,P){for(var F=(a?D.edgesTo(P):D.edgesWith(P)).intersect(y),U=1/0,z,V=0;V<F.length;V++){var W=F[V],X=l(W);(X<U||!z)&&(U=X,z=W)}return{edge:z,dist:U}},"distBetween");w.size()>0;){var b=w.pop(),v=x(b),k=b.id();if(p[k]=v,v!==1/0)for(var E=b.neighborhood().intersect(m),A=0;A<E.length;A++){var I=E[A],$=I.id(),O=R(b,I),j=v+O.dist;j<x(I)&&(C(I,j),d[$]={node:b,edge:O.edge})}}
vendor: 24,026 bytes, line 577
577return{distanceTo:s(function(D){var P=Mr(D)?m.filter(D)[0]:D[0];return p[P.id()]},"distanceTo"),pathTo:s(function(D){var P=Mr(D)?m.filter(D)[0]:D[0],F=[],U=P,z=U.id();if(P.length>0)for(F.unshift(P);d[z];){var V=d[z];F.unshift(V.edge),F.unshift(V.node),U=V.node,z=U.id()}return o.spawn(F)},"pathTo")}},"dijkstra")},U$e={kruskal:s(function(e){e=e||function(_){return 1};for(var t=this.byGroup(),r=t.nodes,i=t.edges,n=r.length,a=new Array(n),o=r,l=s(function(_){for(var S=0;S<a.length;S++){var R=a[S];if(R.has(_))return S}},"findSetIndex"),h=0;h<n;h++)a[h]=this.spawn(r[h]);for(var u=i.sort(function(_,S){return e(_)-e(S)}),d=0;d<u.length;d++){var p=u[d],g=p.source()[0],m=p.target()[0],y=l(g),x=l(m),C=a[y],w=a[x];y!==x&&(o.merge(p),C.merge(w),a.splice(x,1))}return o},"kruskal")},V$e=as({root:null,goal:null,weight:s(function(e){return 1},"weight"),heuristic:s(function(e){return 0},"heuristic"),directed:!1}),W$e={aStar:s(function(e){var t=this.cy(),r=V$e(e),i=r.root,n=r.goal,a=r.heuristic,o=r.directed,l=r.weight;i=t.collection(i)[0],n=t.collection(n)[0];var h=i.id(),u=n.id(),d={},p={},g={},m=new Jy(function(V,W){return p[V.id()]-p[W.id()]}),y=new gf,x={},C={},w=s(function(V,W){m.push(V),y.add(W)},"addToOpenSet"),_,S,R=s(function(){_=m.pop(),S=_.id(),y.delete(S)},"popFromOpenSet"),b=s(function(V){return y.has(V)},"isInOpenSet");w(i,h),d[h]=0,p[h]=a(i);for(var v=0;m.size()>0;){if(R(),v++,S===u){for(var k=[],E=n,A=u,I=C[A];k.unshift(E),I!=null&&k.unshift(I),E=x[A],E!=null;)A=E.id(),I=C[A];return{found:!0,distance:d[S],path:this.spawn(k),steps:v}}g[S]=!0;for(var $=_._private.edges,O=0;O<$.length;O++){var j=$[O];if(this.hasElementWithId(j.id())&&!(o&&j.data("source")!==S)){var D=j.source(),P=j.target(),F=D.id()!==S?D:P,U=F.id();if(this.hasElementWithId(U)&&!g[U]){var z=d[S]+l(j);if(!b(U)){d[U]=z,p[U]=z+a(F),w(F,U),x[U]=_,C[U]=j;continue}z<d[U]&&(d[U]=z,p[U]=z+a(F),x[U]=_,C[U]=j)}}}}return{found:!1,distance:void 0,path:void 0,steps:v}},"aStar")},H$e=as({weight:s(function(e){return 1},"weight"),directed:!1}),Y$e={floydWarshall:s(function(e){for(var t=this.cy(),r=H$e(e),i=r.weight,n=r.directed,a=i,o=this.byGroup(),l=o.nodes,h=o.edges,u=l.length,d=u*u,p=s(function(X){return l.indexOf(X)},"indexOf"),g=s(function(X){return l[X]},"atIndex"),m=new Array(d),y=0;y<d;y++){var x=y%u,C=(y-x)/u;C===x?m[y]=0:m[y]=1/0}for(var w=new Array(d),_=new Array(d),S=0;S<h.length;S++){var R=h[S],b=R.source()[0],v=R.target()[0];if(b!==v){var k=p(b),E=p(v),A=k*u+E,I=a(R);if(m[A]>I&&(m[A]=I,w[A]=E,_[A]=R),!n){var $=E*u+k;!n&&m[$]>I&&(m[$]=I,w[$]=k,_[$]=R)}}}for(var O=0;O<u;O++)for(var j=0;j<u;j++)for(var D=j*u+O,P=0;P<u;P++){var F=j*u+P,U=O*u+P;m[D]+m[U]<m[F]&&(m[F]=m[D]+m[U],w[F]=w[D])}var z=s(function(X){return(Mr(X)?t.filter(X):X)[0]},"getArgEle"),V=s(function(X){return p(z(X))},"indexOfArgEle"),W={distance:s(function(X,J){var H=V(X),te=V(J);return m[H*u+te]},"distance"),path:s(function(X,J){var H=V(X),te=V(J),ie=g(H);if(H===te)return ie.collection();if(w[H*u+te]==null)return t.collection();var oe=t.collection(),he=H,pe;for(oe.merge(ie);H!==te;)he=H,H=w[H*u+te],pe=_[he*u+H],oe.merge(pe),oe.merge(g(H));return oe},"path")};return W},"floydWarshall")},X$e=as({weight:s(function(e){return 1},"weight"),directed:!1,root:null}),K$e={bellmanFord:s(function(e){var t=this,r=X$e(e),i=r.weight,n=r.directed,a=r.root,o=i,l=this,h=this.cy(),u=this.byGroup(),d=u.edges,p=u.nodes,g=p.length,m=new Bh,y=!1,x=[];a=h.collection(a)[0],d.unmergeBy(function(be){return be.isLoop()});for(var C=d.length,w=s(function(be){var qe=m.get(be.id());return qe||(qe={},m.set(be.id(),qe)),qe},"getInfo"),_=s(function(be){return(Mr(be)?h.$(be):be)[0]},"getNodeFromTo"),S=s(function(be){return w(_(be)).dist},"distanceTo"),R=s(function(be){for(var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a,Ie=_(be),Be=[],ke=Ie;;){if(ke==null)return t.spawn();var Qe=w(ke),Pe=Qe.edge,ht=Qe.pred;if(Be.unshift(ke[0]),ke.same(qe)&&Be.length>0)break;Pe!=null&&Be.unshift(Pe),ke=ht}return l.spawn(Be)},"pathTo"),b=0;b<g;b++){var v=p[b],k=w(v);v.same(a)?k.dist=0:k.dist=1/0,k.pred=null,k.edge=null}for(var E=!1,A=s(function(be,qe,Ie,Be,ke,Qe){var Pe=Be.dist+Qe;Pe<ke.dist&&!Ie.same(Be.edge)&&(ke.dist=Pe,ke.pred=be,ke.edge=Ie,E=!0)},"checkForEdgeReplacement"),I=1;I<g;I++){E=!1;for(var $=0;$<C;$++){var O=d[$],j=O.source(),D=O.target(),P=o(O),F=w(j),U=w(D);A(j,D,O,F,U,P),n||A(D,j,O,U,F,P)}if(!E)break}if(E)for(var z=[],V=0;V<C;V++){var W=d[V],X=W.source(),J=W.target(),H=o(W),te=w(X).dist,ie=w(J).dist;if(te+H<ie||!n&&ie+H<te)if(y||(Yi("Graph contains a negative weight cycle for Bellman-Ford"),y=!0),e.findNegativeWeightCycles!==!1){var oe=[];te+H<ie&&oe.push(X),!n&&ie+H<te&&oe.push(J);for(var he=oe.length,pe=0;pe<he;pe++){var se=oe[pe],le=[se];le.push(w(se).edge);for(var ue=w(se).pred;le.indexOf(ue)===-1;)le.push(ue),le.push(w(ue).edge),ue=w(ue).pred;le=le.slice(le.indexOf(ue));for(var de=le[0].id(),we=0,De=2;De<le.length;De+=2)le[De].id()<de&&(de=le[De].id(),we=De);le=le.slice(we).concat(le.slice(0,we)),le.push(le[0]);var Ge=le.map(function(be){return be.id()}).join(",");z.indexOf(Ge)===-1&&(x.push(l.spawn(le)),z.push(Ge))}}else break}return{distanceTo:S,pathTo:R,hasNegativeWeightCycle:y,negativeWeightCycles:x}},"bellmanFord")},Z$e=Math.sqrt(2),Q$e=s(function(e,t,r){r.length===0&&Gn("Karger-Stein must be run on a connected (sub)graph");for(var i=r[e],n=i[1],a=i[2],o=t[n],l=t[a],h=r,u=h.length-1;u>=0;u--){var d=h[u],p=d[1],g=d[2];(t[p]===o&&t[g]===l||t[p]===l&&t[g]===o)&&h.splice(u,1)}for(var m=0;m<h.length;m++){var y=h[m];y[1]===l?(h[m]=y.slice(),h[m][1]=o):y[2]===l&&(h[m]=y.slice(),h[m][2]=o)}for(var x=0;x<t.length;x++)t[x]===l&&(t[x]=o);return h},"collapse"),d7=s(function(e,t,r,i){for(;r>i;){var n=Math.floor(Math.random()*t.length);t=Q$e(n,e,t),r--}return t},"contractUntil"),J$e={kargerStein:s(function(){var e=this,t=this.byGroup(),r=t.nodes,i=t.edges;i.unmergeBy(function(U){return U.isLoop()});var n=r.length,a=i.length,o=Math.ceil(Math.pow(Math.log(n)/Math.LN2,2)),l=Math.floor(n/Z$e);if(n<2){Gn("At least 2 nodes are required for Karger-Stein algorithm");return}for(var h=[],u=0;u<a;u++){var d=i[u];h.push([u,r.indexOf(d.source()),r.indexOf(d.target())])}for(var p=1/0,g=[],m=new Array(n),y=new Array(n),x=new Array(n),C=s(function(U,z){for(var V=0;V<n;V++)z[V]=U[V]},"copyNodesMap"),w=0;w<=o;w++){for(var _=0;_<n;_++)y[_]=_;var S=d7(y,h.slice(),n,l),R=S.slice();C(y,x);var b=d7(y,S,l,2),v=d7(x,R,l,2);b.length<=v.length&&b.length<p?(p=b.length,g=b,C(y,m)):v.length<=b.length&&v.length<p&&(p=v.length,g=v,C(x,m))}for(var k=this.spawn(g.map(function(U){return i[U[0]]})),E=this.spawn(),A=this.spawn(),I=m[0],$=0;$<m.length;$++){var O=m[$],j=r[$];O===I?E.merge(j):A.merge(j)}var D=s(function(U){var z=e.spawn();return U.forEach(function(V){z.merge(V),V.connectedEdges().forEach(function(W){e.contains(W)&&!k.contains(W)&&z.merge(W)})}),z},"constructComponent"),P=[D(E),D(A)],F={cut:k,components:P,partition1:E,partition2:A};return F},"kargerStein")},eBe=s(function(e){return{x:e.x,y:e.y}},"copyPosition"),G3=s(function(e,t,r){return{x:e.x*t+r.x,y:e.y*t+r.y}},"modelToRenderedPosition"),XG=s(function(e,t,r){return{x:(e.x-r.x)/t,y:(e.y-r.y)/t}},"renderedToModelPosition"),ff=s(function(e){return{x:e[0],y:e[1]}},"array2point"),tBe=s(function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,n=t;n<r;n++){var a=e[n];isFinite(a)&&(i=Math.min(a,i))}return i},"min"),rBe=s(function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,n=t;n<r;n++){var a=e[n];isFinite(a)&&(i=Math.max(a,i))}return i},"max"),iBe=s(function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,n=0,a=t;a<r;a++){var o=e[a];isFinite(o)&&(i+=o,n++)}return i/n},"mean"),nBe=s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(t,r):(r<e.length&&e.splice(r,e.length-r),t>0&&e.splice(0,t));for(var o=0,l=e.length-1;l>=0;l--){var h=e[l];a?isFinite(h)||(e[l]=-1/0,o++):e.splice(l,1)}n&&e.sort(function(p,g){return p-g});var u=e.length,d=Math.floor(u/2);return u%2!==0?e[d+1+o]:(e[d-1+o]+e[d+o])/2},"median"),aBe=s(function(e){return Math.PI*e/180},"deg2rad"),U3=s(function(e,t){return Math.atan2(t,e)-Math.PI/2},"getAngleFromDisp"),p7=Math.log2||function(e){return Math.log(e)/Math.log(2)},g7=s(function(e){return e>0?1:e<0?-1:0},"signum"),Pp=s(function(e,t){return Math.sqrt(Fp(e,t))},"dist"),Fp=s(function(e,t){var r=t.x-e.x,i=t.y-e.y;return r*r+i*i},"sqdist"),sBe=s(function(e){for(var t=e.length,r=0,i=0;i<t;i++)r+=e[i];for(var n=0;n<t;n++)e[n]=e[n]/r;return e},"inPlaceSumNormalize"),Za=s(function(e,t,r,i){return(1-i)*(1-i)*e+2*(1-i)*i*t+i*i*r},"qbezierAt"),mf=s(function(e,t,r,i){return{x:Za(e.x,t.x,r.x,i),y:Za(e.y,t.y,r.y,i)}},"qbezierPtAt"),oBe=s(function(e,t,r,i){var n={x:t.x-e.x,y:t.y-e.y},a=Pp(e,t),o={x:n.x/a,y:n.y/a};return r=r!=null?r:0,i=i!=null?i:r*a,{x:e.x+o.x*i,y:e.y+o.y*i}},"lineAt"),e2=s(function(e,t,r){return Math.max(e,Math.min(r,t))},"bound"),js=s(function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},"makeBoundingBox"),lBe=s(function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},"copyBoundingBox"),cBe=s(function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},"clearBoundingBox"),hBe=s(function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},"updateBoundingBox"),KG=s(function(e,t,r){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r),e.y2=Math.max(e.y2,r),e.h=e.y2-e.y1},"expandBoundingBoxByPoint"),V3=s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBox"),W3=s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],r,i,n,a;if(t.length===1)r=i=n=a=t[0];else if(t.length===2)r=n=t[0],a=i=t[1];else if(t.length===4){var o=Ea(t,4);r=o[0],i=o[1],n=o[2],a=o[3]}return e.x1-=a,e.x2+=i,e.y1-=r,e.y2+=n,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBoxSides"),ZG=s(function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},"assignBoundingBox"),f7=s(function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2<t.x1||t.x2<e.x1||e.y2<t.y1||t.y2<e.y1||e.y1>t.y2||t.y1>e.y2)},"boundingBoxesIntersect"),cd=s(function(e,t,r){return e.x1<=t&&t<=e.x2&&e.y1<=r&&r<=e.y2},"inBoundingBox"),QG=s(function(e,t){return cd(e,t.x,t.y)},"pointInBoundingBox"),JG=s(function(e,t){return cd(e,t.x1,t.y1)&&cd(e,t.x2,t.y2)},"boundingBoxInBoundingBox"),uBe=(YG=Math.hypot)!==null&&YG!==void 0?YG:function(e,t){return Math.sqrt(e*e+t*t)},s(fMe,"inflatePolygon"),s(mMe,"miterBox"),eU=s(function(e,t,r,i,n,a,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",h=l==="auto"?ud(n,a):l,u=n/2,d=a/2;h=Math.min(h,u,d);var p=h!==u,g=h!==d,m;if(p){var y=r-u+h-o,x=i-d-o,C=r+u-h+o,w=x;if(m=hd(e,t,r,i,y,x,C,w,!1),m.length>0)return m}if(g){var _=r+u+o,S=i-d+h-o,R=_,b=i+d-h+o;if(m=hd(e,t,r,i,_,S,R,b,!1),m.length>0)return m}if(p){var v=r-u+h-o,k=i+d+o,E=r+u-h+o,A=k;if(m=hd(e,t,r,i,v,k,E,A,!1),m.length>0)return m}if(g){var I=r-u-o,$=i-d+h-o,O=I,j=i+d-h+o;if(m=hd(e,t,r,i,I,$,O,j,!1),m.length>0)return m}var D;{var P=r-u+h,F=i-d+h;if(D=t2(e,t,r,i,P,F,h+o),D.length>0&&D[0]<=P&&D[1]<=F)return[D[0],D[1]]}{var U=r+u-h,z=i-d+h;if(D=t2(e,t,r,i,U,z,h+o),D.length>0&&D[0]>=U&&D[1]<=z)return[D[0],D[1]]}{var V=r+u-h,W=i+d-h;if(D=t2(e,t,r,i,V,W,h+o),D.length>0&&D[0]>=V&&D[1]>=W)return[D[0],D[1]]}{var X=r-u+h,J=i+d-h;if(D=t2(e,t,r,i,X,J,h+o),D.length>0&&D[0]<=X&&D[1]>=J)return[D[0],D[1]]}return[]},"roundRectangleIntersectLine"),dBe=s(function(e,t,r,i,n,a,o){var l=o,h=Math.min(r,n),u=Math.max(r,n),d=Math.min(i,a),p=Math.max(i,a);return h-l<=e&&e<=u+l&&d-l<=t&&t<=p+l},"inLineVicinity"),pBe=s(function(e,t,r,i,n,a,o,l,h){var u={x1:Math.min(r,o,n)-h,x2:Math.max(r,o,n)+h,y1:Math.min(i,l,a)-h,y2:Math.max(i,l,a)+h};return!(e<u.x1||e>u.x2||t<u.y1||t>u.y2)},"inBezierVicinity"),gBe=s(function(e,t,r,i){r-=i;var n=t*t-4*e*r;if(n<0)return[];var a=Math.sqrt(n),o=2*e,l=(-t+a)/o,h=(-t-a)/o;return[l,h]},"solveQuadratic"),fBe=s(function(e,t,r,i,n){var a=1e-5;e===0&&(e=a),t/=e,r/=e,i/=e;var o,l,h,u,d,p,g,m;if(l=(3*r-t*t)/9,h=-(27*i)+t*(9*r-2*(t*t)),h/=54,o=l*l*l+h*h,n[1]=0,g=t/3,o>0){d=h+Math.sqrt(o),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),p=h-Math.sqrt(o),p=p<0?-Math.pow(-p,1/3):Math.pow(p,1/3),n[0]=-g+d+p,g+=(d+p)/2,n[4]=n[2]=-g,g=Math.sqrt(3)*(-p+d)/2,n[3]=g,n[5]=-g;return}if(n[5]=n[3]=0,o===0){m=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),n[0]=-g+2*m,n[4]=n[2]=-(m+g);return}l=-l,u=l*l*l,u=Math.acos(h/Math.sqrt(u)),m=2*Math.sqrt(l),n[0]=-g+m*Math.cos(u/3),n[2]=-g+m*Math.cos((u+2*Math.PI)/3),n[4]=-g+m*Math.cos((u+4*Math.PI)/3)},"solveCubic"),mBe=s(function(e,t,r,i,n,a,o,l){var h=1*r*r-4*r*n+2*r*o+4*n*n-4*n*o+o*o+i*i-4*i*a+2*i*l+4*a*a-4*a*l+l*l,u=9*r*n-3*r*r-3*r*o-6*n*n+3*n*o+9*i*a-3*i*i-3*i*l-6*a*a+3*a*l,d=3*r*r-6*r*n+r*o-r*e+2*n*n+2*n*e-o*e+3*i*i-6*i*a+i*l-i*t+2*a*a+2*a*t-l*t,p=1*r*n-r*r+r*e-n*e+i*a-i*i+i*t-a*t,g=[];fBe(h,u,d,p,g);for(var m=1e-7,y=[],x=0;x<6;x+=2)Math.abs(g[x+1])<m&&g[x]>=0&&g[x]<=1&&y.push(g[x]);y.push(1),y.push(0);for(var C=-1,w,_,S,R=0;R<y.length;R++)w=Math.pow(1-y[R],2)*r+2*(1-y[R])*y[R]*n+y[R]*y[R]*o,_=Math.pow(1-y[R],2)*i+2*(1-y[R])*y[R]*a+y[R]*y[R]*l,S=Math.pow(w-e,2)+Math.pow(_-t,2),C>=0?S<C&&(C=S):C=S;return C},"sqdistToQuadraticBezier"),yBe=s(function(e,t,r,i,n,a){var o=[e-r,t-i],l=[n-r,a-i],h=l[0]*l[0]+l[1]*l[1],u=o[0]*o[0]+o[1]*o[1],d=o[0]*l[0]+o[1]*l[1],p=d*d/h;return d<0?u:p>h?(e-n)*(e-n)+(t-a)*(t-a):u-p},"sqdistToFiniteLine"),po=s(function(e,t,r){for(var i,n,a,o,l,h=0,u=0;u<r.length/2;u++)if(i=r[u*2],n=r[u*2+1],u+1<r.length/2?(a=r[(u+1)*2],o=r[(u+1)*2+1]):(a=r[(u+1-r.length/2)*2],o=r[(u+1-r.length/2)*2+1]),!(i==e&&a==e))if(i>=e&&e>=a||i<=e&&e<=a)l=(e-i)/(a-i)*(o-n)+n,l>t&&h++;else continue;return h%2!==0},"pointInsidePolygonPoints"),Ph=s(function(e,t,r,i,n,a,o,l,h){var u=new Array(r.length),d;l[0]!=null?(d=Math.atan(l[1]/l[0]),l[0]<0?d=d+Math.PI/2:d=-d-Math.PI/2):d=l;for(var p=Math.cos(-d),g=Math.sin(-d),m=0;m<u.length/2;m++)u[m*2]=a/2*(r[m*2]*p-r[m*2+1]*g),u[m*2+1]=o/2*(r[m*2+1]*p+r[m*2]*g),u[m*2]+=i,u[m*2+1]+=n;var y;if(h>0){var x=Y3(u,-h);y=H3(x)}else y=u;return po(e,t,y)},"pointInsidePolygon"),vBe=s(function(e,t,r,i,n,a,o,l){for(var h=new Array(r.length*2),u=0;u<l.length;u++){var d=l[u];h[u*4+0]=d.startX,h[u*4+1]=d.startY,h[u*4+2]=d.stopX,h[u*4+3]=d.stopY;var p=Math.pow(d.cx-e,2)+Math.pow(d.cy-t,2);if(p<=Math.pow(d.radius,2))return!0}return po(e,t,h)},"pointInsideRoundPolygon"),H3=s(function(e){for(var t=new Array(e.length/2),r,i,n,a,o,l,h,u,d=0;d<e.length/4;d++){r=e[d*4],i=e[d*4+1],n=e[d*4+2],a=e[d*4+3],d<e.length/4-1?(o=e[(d+1)*4],l=e[(d+1)*4+1],h=e[(d+1)*4+2],u=e[(d+1)*4+3]):(o=e[0],l=e[1],h=e[2],u=e[3]);var p=hd(r,i,n,a,o,l,h,u,!0);t[d*2]=p[0],t[d*2+1]=p[1]}return t},"joinLines"),Y3=s(function(e,t){for(var r=new Array(e.length*2),i,n,a,o,l=0;l<e.length/2;l++){i=e[l*2],n=e[l*2+1],l<e.length/2-1?(a=e[(l+1)*2],o=e[(l+1)*2+1]):(a=e[0],o=e[1]);var h=o-n,u=-(a-i),d=Math.sqrt(h*h+u*u),p=h/d,g=u/d;r[l*4]=i+p*t,r[l*4+1]=n+g*t,r[l*4+2]=a+p*t,r[l*4+3]=o+g*t}return r},"expandPolygon"),bBe=s(function(e,t,r,i,n,a){var o=r-e,l=i-t;o/=n,l/=a;var h=Math.sqrt(o*o+l*l),u=h-1;if(u<0)return[];var d=u/h;return[(r-e)*d+e,(i-t)*d+t]},"intersectLineEllipse"),zp=s(function(e,t,r,i,n,a,o){return e-=n,t-=a,e/=r/2+o,t/=i/2+o,e*e+t*t<=1},"checkInEllipse"),t2=s(function(e,t,r,i,n,a,o){var l=[r-e,i-t],h=[e-n,t-a],u=l[0]*l[0]+l[1]*l[1],d=2*(h[0]*l[0]+h[1]*l[1]),p=h[0]*h[0]+h[1]*h[1]-o*o,g=d*d-4*u*p;if(g<0)return[];var m=(-d+Math.sqrt(g))/(2*u),y=(-d-Math.sqrt(g))/(2*u),x=Math.min(m,y),C=Math.max(m,y),w=[];if(x>=0&&x<=1&&w.push(x),C>=0&&C<=1&&w.push(C),w.length===0)return[];var _=w[0]*l[0]+e,S=w[0]*l[1]+t;if(w.length>1){if(w[0]==w[1])return[_,S];var R=w[1]*l[0]+e,b=w[1]*l[1]+t;return[_,S,R,b]}else return[_,S]},"intersectLineCircle"),m7=s(function(e,t,r){return t<=e&&e<=r||r<=e&&e<=t?e:e<=t&&t<=r||r<=t&&t<=e?t:r},"midOfThree"),hd=s(function(e,t,r,i,n,a,o,l,h){var u=e-n,d=r-e,p=o-n,g=t-a,m=i-t,y=l-a,x=p*g-y*u,C=d*g-m*u,w=y*d-p*m;if(w!==0){var _=x/w,S=C/w,R=.001,b=0-R,v=1+R;return b<=_&&_<=v&&b<=S&&S<=v?[e+_*d,t+_*m]:h?[e+_*d,t+_*m]:[]}else return x===0||C===0?m7(e,r,o)===o?[o,l]:m7(e,r,n)===n?[n,a]:m7(n,o,r)===r?[r,i]:[]:[]},"finiteLinesIntersect"),xBe=s(function(e,t,r,i,n){var a=[],o=i/2,l=n/2,h=t,u=r;a.push({x:h+o*e[0],y:u+l*e[1]});for(var d=1;d<e.length/2;d++)a.push({x:h+o*e[d*2],y:u+l*e[d*2+1]});return a},"transformPoints"),r2=s(function(e,t,r,i,n,a,o,l){var h=[],u,d=new Array(r.length),p=!0;a==null&&(p=!1);var g;if(p){for(var m=0;m<d.length/2;m++)d[m*2]=r[m*2]*a+i,d[m*2+1]=r[m*2+1]*o+n;if(l>0){var y=Y3(d,-l);g=H3(y)}else g=d}else g=r;for(var x,C,w,_,S=0;S<g.length/2;S++)x=g[S*2],C=g[S*2+1],S<g.length/2-1?(w=g[(S+1)*2],_=g[(S+1)*2+1]):(w=g[0],_=g[1]),u=hd(e,t,i,n,x,C,w,_),u.length!==0&&h.push(u[0],u[1]);return h},"polygonIntersectLine"),kBe=s(function(e,t,r,i,n,a,o,l,h){var u=[],d,p=new Array(r.length*2);h.forEach(function(w,_){_===0?(p[p.length-2]=w.startX,p[p.length-1]=w.startY):(p[_*4-2]=w.startX,p[_*4-1]=w.startY),p[_*4]=w.stopX,p[_*4+1]=w.stopY,d=t2(e,t,i,n,w.cx,w.cy,w.radius),d.length!==0&&u.push(d[0],d[1])});for(var g=0;g<p.length/4;g++)d=hd(e,t,i,n,p[g*4],p[g*4+1],p[g*4+2],p[g*4+3],!1),d.length!==0&&u.push(d[0],d[1]);if(u.length>2){for(var m=[u[0],u[1]],y=Math.pow(m[0]-e,2)+Math.pow(m[1]-t,2),x=1;x<u.length/2;x++){var C=Math.pow(u[x*2]-e,2)+Math.pow(u[x*2+1]-t,2);C<=y&&(m[0]=u[x*2],m[1]=u[x*2+1],y=C)}return m}return u},"roundPolygonIntersectLine"),X3=s(function(e,t,r){var i=[e[0]-t[0],e[1]-t[1]],n=Math.sqrt(i[0]*i[0]+i[1]*i[1]),a=(n-r)/n;return a<0&&(a=1e-5),[t[0]+a*i[0],t[1]+a*i[1]]},"shortenIntersection"),Gs=s(function(e,t){var r=y7(e,t);return r=tU(r),r},"generateUnitNgonPointsFitToSquare"),tU=s(function(e){for(var t,r,i=e.length/2,n=1/0,a=1/0,o=-1/0,l=-1/0,h=0;h<i;h++)t=e[2*h],r=e[2*h+1],n=Math.min(n,t),o=Math.max(o,t),a=Math.min(a,r),l=Math.max(l,r);for(var u=2/(o-n),d=2/(l-a),p=0;p<i;p++)t=e[2*p]=e[2*p]*u,r=e[2*p+1]=e[2*p+1]*d,n=Math.min(n,t),o=Math.max(o,t),a=Math.min(a,r),l=Math.max(l,r);if(a<-1)for(var g=0;g<i;g++)r=e[2*g+1]=e[2*g+1]+(-1-a);return e},"fitPolygonToSquare"),y7=s(function(e,t){var r=1/e*2*Math.PI,i=e%2===0?Math.PI/2+r/2:Math.PI/2;i+=t;for(var n=new Array(e*2),a,o=0;o<e;o++)a=o*r+i,n[2*o]=Math.cos(a),n[2*o+1]=Math.sin(-a);return n},"generateUnitNgonPoints"),ud=s(function(e,t){return Math.min(e/4,t/4,8)},"getRoundRectangleRadius"),rU=s(function(e,t){return Math.min(e/10,t/10,8)},"getRoundPolygonRadius"),v7=s(function(){return 8},"getCutRectangleCornerLength"),TBe=s(function(e,t,r){return[e-2*t+r,2*(t-e),e]},"bezierPtsToQuadCoeff"),b7=s(function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},"getBarrelCurveConstants"),s(W_,"satPolygonIntersection"),wBe=as({dampingFactor:.8,precision:1e-6,iterations:200,weight:s(function(e){return 1},"weight")}),CBe={pageRank:s(function(e){for(var t=wBe(e),r=t.dampingFactor,i=t.precision,n=t.iterations,a=t.weight,o=this._private.cy,l=this.byGroup(),h=l.nodes,u=l.edges,d=h.length,p=d*d,g=u.length,m=new Array(p),y=new Array(d),x=(1-r)/d,C=0;C<d;C++){for(var w=0;w<d;w++){var _=C*d+w;m[_]=0}y[C]=0}for(var S=0;S<g;S++){var R=u[S],b=R.data("source"),v=R.data("target");if(b!==v){var k=h.indexOfId(b),E=h.indexOfId(v),A=a(R),I=E*d+k;m[I]+=A,y[k]+=A}}for(var $=1/d+x,O=0;O<d;O++)if(y[O]===0)for(var j=0;j<d;j++){var D=j*d+O;m[D]=$}else for(var P=0;P<d;P++){var F=P*d+O;m[F]=m[F]/y[O]+x}for(var U=new Array(d),z=new Array(d),V,W=0;W<d;W++)U[W]=1;for(var X=0;X<n;X++){for(var J=0;J<d;J++)z[J]=0;for(var H=0;H<d;H++)for(var te=0;te<d;te++){var ie=H*d+te;z[H]+=m[ie]*U[te]}sBe(z),V=U,U=z,z=V;for(var oe=0,he=0;he<d;he++){var pe=V[he]-U[he];oe+=pe*pe}if(oe<i)break}var se={rank:s(function(le){return le=o.collection(le)[0],U[h.indexOf(le)]},"rank")};return se},"pageRank")},iU=as({root:null,weight:s(function(e){return 1},"weight"),directed:!1,alpha:0}),yf={degreeCentralityNormalized:s(function(e){e=iU(e);var t=this.cy(),r=this.nodes(),i=r.length;if(e.directed){for(var n={},a={},o=0,l=0,h=0;h<i;h++){var u=r[h],d=u.id();e.root=u;var p=this.degreeCentrality(e);o<p.indegree&&(o=p.indegree),l<p.outdegree&&(l=p.outdegree),n[d]=p.indegree,a[d]=p.outdegree}return{indegree:s(function(w){return o==0?0:(Mr(w)&&(w=t.filter(w)),n[w.id()]/o)},"indegree"),outdegree:s(function(w){return l===0?0:(Mr(w)&&(w=t.filter(w)),a[w.id()]/l)},"outdegree")}}else{for(var g={},m=0,y=0;y<i;y++){var x=r[y];e.root=x;var C=this.degreeCentrality(e);m<C.degree&&(m=C.degree),g[x.id()]=C.degree}return{degree:s(function(w){return m===0?0:(Mr(w)&&(w=t.filter(w)),g[w.id()]/m)},"degree")}}},"degreeCentralityNormalized"),degreeCentrality:s(function(e){e=iU(e);var t=this.cy(),r=this,i=e,n=i.root,a=i.weight,o=i.directed,l=i.alpha;if(n=t.collection(n)[0],o){for(var h=n.connectedEdges(),u=h.filter(function(b){return b.target().same(n)&&r.has(b)}),d=h.filter(function(b){return b.source().same(n)&&r.has(b)}),p=u.length,g=d.length,m=0,y=0,x=0;x<u.length;x++)m+=a(u[x]);for(var C=0;C<d.length;C++)y+=a(d[C]);return{indegree:Math.pow(p,1-l)*Math.pow(m,l),outdegree:Math.pow(g,1-l)*Math.pow(y,l)}}else{for(var w=n.connectedEdges().intersection(r),_=w.length,S=0,R=0;R<w.length;R++)S+=a(w[R]);return{degree:Math.pow(_,1-l)*Math.pow(S,l)}}},"degreeCentrality")},yf.dc=yf.degreeCentrality,yf.dcn=yf.degreeCentralityNormalised=yf.degreeCentralityNormalized,nU=as({harmonic:!0,weight:s(function(){return 1},"weight"),directed:!1,root:null}),vf={closenessCentralityNormalized:s(function(e){for(var t=nU(e),r=t.harmonic,i=t.weight,n=t.directed,a=this.cy(),o={},l=0,h=this.nodes(),u=this.floydWarshall({weight:i,directed:n}),d=0;d<h.length;d++){for(var p=0,g=h[d],m=0;m<h.length;m++)if(d!==m){var y=u.distance(g,h[m]);r?p+=1/y:p+=y}r||(p=1/p),l<p&&(l=p),o[g.id()]=p}return{closeness:s(function(x){return l==0?0:(Mr(x)?x=a.filter(x)[0].id():x=x.id(),o[x]/l)},"closeness")}},"closenessCentralityNormalized"),closenessCentrality:s(function(e){var t=nU(e),r=t.root,i=t.weight,n=t.directed,a=t.harmonic;r=this.filter(r)[0];for(var o=this.dijkstra({root:r,weight:i,directed:n}),l=0,h=this.nodes(),u=0;u<h.length;u++){var d=h[u];if(!d.same(r)){var p=o.distanceTo(d);a?l+=1/p:l+=p}}return a?l:1/l},"closenessCentrality")},vf.cc=vf.closenessCentrality,vf.ccn=vf.closenessCentralityNormalised=vf.closenessCentralityNormalized,EBe=as({weight:null,directed:!1}),x7={betweennessCentrality:s(function(e){for(var t=EBe(e),r=t.directed,i=t.weight,n=i!=null,a=this.cy(),o=this.nodes(),l={},h={},u=0,d={set:s(function(w,_){h[w]=_,_>u&&(u=_)},"set"),get:s(function(w){return h[w]},"get")},p=0;p<o.length;p++){var g=o[p],m=g.id();r?l[m]=g.outgoers().nodes():l[m]=g.openNeighborhood().nodes(),d.set(m,0)}for(var y=s(function(){for(var w=o[x].id(),_=[],S={},R={},b={},v=new Jy(function(J,H){return b[J]-b[H]}),k=0;k<o.length;k++){var E=o[k].id();S[E]=[],R[E]=0,b[E]=1/0}for(R[w]=1,b[w]=0,v.push(w);!v.empty();){var A=v.pop();if(_.push(A),n)for(var I=0;I<l[A].length;I++){var $=l[A][I],O=a.getElementById(A),j=void 0;O.edgesTo($).length>0?j=O.edgesTo($)[0]:j=$.edgesTo(O)[0];var D=i(j);$=$.id(),b[$]>b[A]+D&&(b[$]=b[A]+D,v.nodes.indexOf($)<0?v.push($):v.updateItem($),R[$]=0,S[$]=[]),b[$]==b[A]+D&&(R[$]=R[$]+R[A],S[$].push(A))}else for(var P=0;P<l[A].length;P++){var F=l[A][P].id();
vendor: 7,345 bytes, line 577
577b[F]==1/0&&(v.push(F),b[F]=b[A]+1),b[F]==b[A]+1&&(R[F]=R[F]+R[A],S[F].push(A))}}for(var U={},z=0;z<o.length;z++)U[o[z].id()]=0;for(;_.length>0;){for(var V=_.pop(),W=0;W<S[V].length;W++){var X=S[V][W];U[X]=U[X]+R[X]/R[V]*(1+U[V])}V!=o[x].id()&&d.set(V,d.get(V)+U[V])}},"_loop"),x=0;x<o.length;x++)y();var C={betweenness:s(function(w){var _=a.collection(w).id();return d.get(_)},"betweenness"),betweennessNormalized:s(function(w){if(u==0)return 0;var _=a.collection(w).id();return d.get(_)/u},"betweennessNormalized")};return C.betweennessNormalised=C.betweennessNormalized,C},"betweennessCentrality")},x7.bc=x7.betweennessCentrality,SBe=as({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),_Be=s(function(e){return SBe(e)},"setOptions"),ABe=s(function(e,t){for(var r=0,i=0;i<t.length;i++)r+=t[i](e);return r},"getSimilarity"),LBe=s(function(e,t,r){for(var i=0;i<t;i++)e[i*t+i]=r},"addLoops"),aU=s(function(e,t){for(var r,i=0;i<t;i++){r=0;for(var n=0;n<t;n++)r+=e[n*t+i];for(var a=0;a<t;a++)e[a*t+i]=e[a*t+i]/r}},"normalize"),RBe=s(function(e,t,r){for(var i=new Array(r*r),n=0;n<r;n++){for(var a=0;a<r;a++)i[n*r+a]=0;for(var o=0;o<r;o++)for(var l=0;l<r;l++)i[n*r+l]+=e[n*r+o]*t[o*r+l]}return i},"mmult"),IBe=s(function(e,t,r){for(var i=e.slice(0),n=1;n<r;n++)e=RBe(e,i,t);return e},"expand"),DBe=s(function(e,t,r){for(var i=new Array(t*t),n=0;n<t*t;n++)i[n]=Math.pow(e[n],r);return aU(i,t),i},"inflate"),NBe=s(function(e,t,r,i){for(var n=0;n<r;n++){var a=Math.round(e[n]*Math.pow(10,i))/Math.pow(10,i),o=Math.round(t[n]*Math.pow(10,i))/Math.pow(10,i);if(a!==o)return!1}return!0},"hasConverged"),MBe=s(function(e,t,r,i){for(var n=[],a=0;a<t;a++){for(var o=[],l=0;l<t;l++)Math.round(e[a*t+l]*1e3)/1e3>0&&o.push(r[l]);o.length!==0&&n.push(i.collection(o))}return n},"assign"),OBe=s(function(e,t){for(var r=0;r<e.length;r++)if(!t[r]||e[r].id()!==t[r].id())return!1;return!0},"isDuplicate"),$Be=s(function(e){for(var t=0;t<e.length;t++)for(var r=0;r<e.length;r++)t!=r&&OBe(e[t],e[r])&&e.splice(r,1);return e},"removeDuplicates"),sU=s(function(e){for(var t=this.nodes(),r=this.edges(),i=this.cy(),n=_Be(e),a={},o=0;o<t.length;o++)a[t[o].id()]=o;for(var l=t.length,h=l*l,u=new Array(h),d,p=0;p<h;p++)u[p]=0;for(var g=0;g<r.length;g++){var m=r[g],y=a[m.source().id()],x=a[m.target().id()],C=ABe(m,n.attributes);u[y*l+x]+=C,u[x*l+y]+=C}LBe(u,l,n.multFactor),aU(u,l);for(var w=!0,_=0;w&&_<n.maxIterations;)w=!1,d=IBe(u,l,n.expandFactor),u=DBe(d,l,n.inflateFactor),NBe(u,d,h,4)||(w=!0),_++;var S=MBe(u,l,t,i);return S=$Be(S),S},"markovClustering"),BBe={markovClustering:sU,mcl:sU},PBe=s(function(e){return e},"identity"),oU=s(function(e,t){return Math.abs(t-e)},"absDiff"),lU=s(function(e,t,r){return e+oU(t,r)},"addAbsDiff"),cU=s(function(e,t,r){return e+Math.pow(r-t,2)},"addSquaredDiff"),FBe=s(function(e){return Math.sqrt(e)},"sqrt"),zBe=s(function(e,t,r){return Math.max(e,oU(t,r))},"maxAbsDiff"),i2=s(function(e,t,r,i,n){for(var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:PBe,o=i,l,h,u=0;u<e;u++)l=t(u),h=r(u),o=n(o,l,h);return a(o)},"getDistance"),bf={euclidean:s(function(e,t,r){return e>=2?i2(e,t,r,0,cU,FBe):i2(e,t,r,0,lU)},"euclidean"),squaredEuclidean:s(function(e,t,r){return i2(e,t,r,0,cU)},"squaredEuclidean"),manhattan:s(function(e,t,r){return i2(e,t,r,0,lU)},"manhattan"),max:s(function(e,t,r){return i2(e,t,r,-1/0,zBe)},"max")},bf["squared-euclidean"]=bf.squaredEuclidean,bf.squaredeuclidean=bf.squaredEuclidean,s(E3,"clusteringDistance"),qBe=as({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),k7=s(function(e){return qBe(e)},"setOptions"),K3=s(function(e,t,r,i,n){var a=n!=="kMedoids",o=a?function(d){return r[d]}:function(d){return i[d](r)},l=s(function(d){return i[d](t)},"getQ"),h=r,u=t;return E3(e,i.length,o,l,h,u)},"getDist"),T7=s(function(e,t,r){for(var i=r.length,n=new Array(i),a=new Array(i),o=new Array(t),l=null,h=0;h<i;h++)n[h]=e.min(r[h]).value,a[h]=e.max(r[h]).value;for(var u=0;u<t;u++){l=[];for(var d=0;d<i;d++)l[d]=Math.random()*(a[d]-n[d])+n[d];o[u]=l}return o},"randomCentroids"),hU=s(function(e,t,r,i,n){for(var a=1/0,o=0,l=0;l<t.length;l++){var h=K3(r,e,t[l],i,n);h<a&&(a=h,o=l)}return o},"classify"),uU=s(function(e,t,r){for(var i=[],n=null,a=0;a<t.length;a++)n=t[a],r[n.id()]===e&&i.push(n);return i},"buildCluster"),jBe=s(function(e,t,r){return Math.abs(t-e)<=r},"haveValuesConverged"),GBe=s(function(e,t,r){for(var i=0;i<e.length;i++)for(var n=0;n<e[i].length;n++){var a=Math.abs(e[i][n]-t[i][n]);if(a>r)return!1}return!0},"haveMatricesConverged"),UBe=s(function(e,t,r){for(var i=0;i<r;i++)if(e===t[i])return!0;return!1},"seenBefore"),dU=s(function(e,t){var r=new Array(t);if(e.length<50)for(var i=0;i<t;i++){for(var n=e[Math.floor(Math.random()*e.length)];UBe(n,r,i);)n=e[Math.floor(Math.random()*e.length)];r[i]=n}else for(var a=0;a<t;a++)r[a]=e[Math.floor(Math.random()*e.length)];return r},"randomMedoids"),pU=s(function(e,t,r){for(var i=0,n=0;n<t.length;n++)i+=K3("manhattan",t[n],e,r,"kMedoids");return i},"findCost"),VBe=s(function(e){var t=this.cy(),r=this.nodes(),i=null,n=k7(e),a=new Array(n.k),o={},l;n.testMode?typeof n.testCentroids=="number"?(n.testCentroids,l=T7(r,n.k,n.attributes)):Ba(n.testCentroids)==="object"?l=n.testCentroids:l=T7(r,n.k,n.attributes):l=T7(r,n.k,n.attributes);for(var h=!0,u=0;h&&u<n.maxIterations;){for(var d=0;d<r.length;d++)i=r[d],o[i.id()]=hU(i,l,n.distance,n.attributes,"kMeans");h=!1;for(var p=0;p<n.k;p++){var g=uU(p,r,o);if(g.length!==0){for(var m=n.attributes.length,y=l[p],x=new Array(m),C=new Array(m),w=0;w<m;w++){C[w]=0;for(var _=0;_<g.length;_++)i=g[_],C[w]+=n.attributes[w](i);x[w]=C[w]/g.length,jBe(x[w],y[w],n.sensitivityThreshold)||(h=!0)}l[p]=x,a[p]=t.collection(g)}}u++}return a},"kMeans"),WBe=s(function(e){var t=this.cy(),r=this.nodes(),i=null,n=k7(e),a=new Array(n.k),o,l={},h,u=new Array(n.k);n.testMode?typeof n.testCentroids=="number"||(Ba(n.testCentroids)==="object"?o=n.testCentroids:o=dU(r,n.k)):o=dU(r,n.k);for(var d=!0,p=0;d&&p<n.maxIterations;){for(var g=0;g<r.length;g++)i=r[g],l[i.id()]=hU(i,o,n.distance,n.attributes,"kMedoids");d=!1;for(var m=0;m<o.length;m++){var y=uU(m,r,l);if(y.length!==0){u[m]=pU(o[m],y,n.attributes);for(var x=0;x<y.length;x++)h=pU(y[x],y,n.attributes),h<u[m]&&(u[m]=h,o[m]=y[x],d=!0);a[m]=t.collection(y)}}p++}return a},"kMedoids"),HBe=s(function(e,t,r,i,n){for(var a,o,l=0;l<t.length;l++)for(var h=0;h<e.length;h++)i[l][h]=Math.pow(r[l][h],n.m);for(var u=0;u<e.length;u++)for(var d=0;d<n.attributes.length;d++){a=0,o=0;for(var p=0;p<t.length;p++)a+=i[p][u]*n.attributes[d](t[p]),o+=i[p][u];e[u][d]=a/o}},"updateCentroids"),YBe=s(function(e,t,r,i,n){for(var a=0;a<e.length;a++)t[a]=e[a].slice();for(var o,l,h,u=2/(n.m-1),d=0;d<r.length;d++)for(var p=0;p<i.length;p++){o=0;for(var g=0;g<r.length;g++)l=K3(n.distance,i[p],r[d],n.attributes,"cmeans"),h=K3(n.distance,i[p],r[g],n.attributes,"cmeans"),o+=Math.pow(l/h,u);e[p][d]=1/o}},"updateMembership"),XBe=s(function(e,t,r,i){for(var n=new Array(r.k),a=0;a<n.length;a++)n[a]=[];for(var o,l,h=0;h<t.length;h++){o=-1/0,l=-1;for(var u=0;u<t[0].length;u++)t[h][u]>o&&(o=t[h][u],l=u);n[l].push(e[h])}for(var d=0;d<n.length;d++)n[d]=i.collection(n[d]);return n},"assign"),gU=s(function(e){var t=this.cy(),r=this.nodes(),i=k7(e),n,a,o,l,h;
vendor: 10,211 bytes, line 577
577l=new Array(r.length);for(var u=0;u<r.length;u++)l[u]=new Array(i.k);o=new Array(r.length);for(var d=0;d<r.length;d++)o[d]=new Array(i.k);for(var p=0;p<r.length;p++){for(var g=0,m=0;m<i.k;m++)o[p][m]=Math.random(),g+=o[p][m];for(var y=0;y<i.k;y++)o[p][y]=o[p][y]/g}a=new Array(i.k);for(var x=0;x<i.k;x++)a[x]=new Array(i.attributes.length);h=new Array(r.length);for(var C=0;C<r.length;C++)h[C]=new Array(i.k);for(var w=!0,_=0;w&&_<i.maxIterations;)w=!1,HBe(a,r,o,h,i),YBe(o,l,a,r,i),GBe(o,l,i.sensitivityThreshold)||(w=!0),_++;return n=XBe(r,o,i,t),{clusters:n,degreeOfMembership:o}},"fuzzyCMeans"),KBe={kMeans:VBe,kMedoids:WBe,fuzzyCMeans:gU,fcm:gU},ZBe=as({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),QBe={single:"min",complete:"max"},JBe=s(function(e){var t=ZBe(e),r=QBe[t.linkage];return r!=null&&(t.linkage=r),t},"setOptions"),fU=s(function(e,t,r,i,n){for(var a=0,o=1/0,l,h=n.attributes,u=s(function(k,E){return E3(n.distance,h.length,function(A){return h[A](k)},function(A){return h[A](E)},k,E)},"getDist"),d=0;d<e.length;d++){var p=e[d].key,g=r[p][i[p]];g<o&&(a=p,o=g)}if(n.mode==="threshold"&&o>=n.threshold||n.mode==="dendrogram"&&e.length===1)return!1;var m=t[a],y=t[i[a]],x;n.mode==="dendrogram"?x={left:m,right:y,key:m.key}:x={value:m.value.concat(y.value),key:m.key},e[m.index]=x,e.splice(y.index,1),t[m.key]=x;for(var C=0;C<e.length;C++){var w=e[C];m.key===w.key?l=1/0:n.linkage==="min"?(l=r[m.key][w.key],r[m.key][w.key]>r[y.key][w.key]&&(l=r[y.key][w.key])):n.linkage==="max"?(l=r[m.key][w.key],r[m.key][w.key]<r[y.key][w.key]&&(l=r[y.key][w.key])):n.linkage==="mean"?l=(r[m.key][w.key]*m.size+r[y.key][w.key]*y.size)/(m.size+y.size):n.mode==="dendrogram"?l=u(w.value,m.value):l=u(w.value[0],m.value[0]),r[m.key][w.key]=r[w.key][m.key]=l}for(var _=0;_<e.length;_++){var S=e[_].key;if(i[S]===m.key||i[S]===y.key){for(var R=S,b=0;b<e.length;b++){var v=e[b].key;r[S][v]<r[S][R]&&(R=v)}i[S]=R}e[_].index=_}return m.key=y.key=m.index=y.index=null,!0},"mergeClosest"),xf=s(function(e,t,r){e&&(e.value?t.push(e.value):(e.left&&xf(e.left,t),e.right&&xf(e.right,t)))},"getAllChildren"),w7=s(function(e,t){if(!e)return"";if(e.left&&e.right){var r=w7(e.left,t),i=w7(e.right,t),n=t.add({group:"nodes",data:{id:r+","+i}});return t.add({group:"edges",data:{source:r,target:n.id()}}),t.add({group:"edges",data:{source:i,target:n.id()}}),n.id()}else if(e.value)return e.value.id()},"buildDendrogram"),C7=s(function(e,t,r){if(!e)return[];var i=[],n=[],a=[];return t===0?(e.left&&xf(e.left,i),e.right&&xf(e.right,n),a=i.concat(n),[r.collection(a)]):t===1?e.value?[r.collection(e.value)]:(e.left&&xf(e.left,i),e.right&&xf(e.right,n),[r.collection(i),r.collection(n)]):e.value?[r.collection(e.value)]:(e.left&&(i=C7(e.left,t-1,r)),e.right&&(n=C7(e.right,t-1,r)),i.concat(n))},"buildClustersFromTree"),mU=s(function(e){for(var t=this.cy(),r=this.nodes(),i=JBe(e),n=i.attributes,a=s(function(w,_){return E3(i.distance,n.length,function(S){return n[S](w)},function(S){return n[S](_)},w,_)},"getDist"),o=[],l=[],h=[],u=[],d=0;d<r.length;d++){var p={value:i.mode==="dendrogram"?r[d]:[r[d]],key:d,index:d};o[d]=p,u[d]=p,l[d]=[],h[d]=0}for(var g=0;g<o.length;g++)for(var m=0;m<=g;m++){var y=void 0;i.mode==="dendrogram"?y=g===m?1/0:a(o[g].value,o[m].value):y=g===m?1/0:a(o[g].value[0],o[m].value[0]),l[g][m]=y,l[m][g]=y,y<l[g][h[g]]&&(h[g]=m)}for(var x=fU(o,u,l,h,i);x;)x=fU(o,u,l,h,i);var C;return i.mode==="dendrogram"?(C=C7(o[0],i.dendrogramDepth,t),i.addDendrogram&&w7(o[0],t)):(C=new Array(o.length),o.forEach(function(w,_){w.key=w.index=null,C[_]=t.collection(w.value)})),C},"hierarchicalClustering"),ePe={hierarchicalClustering:mU,hca:mU},tPe=as({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),rPe=s(function(e){var t=e.damping,r=e.preference;.5<=t&&t<1||Gn("Damping must range on [0.5, 1). Got: ".concat(t));var i=["median","mean","min","max"];return i.some(function(n){return n===r})||ir(r)||Gn("Preference must be one of [".concat(i.map(function(n){return"'".concat(n,"'")}).join(", "),"] or a number. Got: ").concat(r)),tPe(e)},"setOptions"),iPe=s(function(e,t,r,i){var n=s(function(a,o){return i[o](a)},"attr");return-E3(e,i.length,function(a){return n(t,a)},function(a){return n(r,a)},t,r)},"getSimilarity"),nPe=s(function(e,t){var r=null;return t==="median"?r=nBe(e):t==="mean"?r=iBe(e):t==="min"?r=tBe(e):t==="max"?r=rBe(e):r=t,r},"getPreference"),aPe=s(function(e,t,r){for(var i=[],n=0;n<e;n++)t[n*e+n]+r[n*e+n]>0&&i.push(n);return i},"findExemplars"),yU=s(function(e,t,r){for(var i=[],n=0;n<e;n++){for(var a=-1,o=-1/0,l=0;l<r.length;l++){var h=r[l];t[n*e+h]>o&&(a=h,o=t[n*e+h])}a>0&&i.push(a)}for(var u=0;u<r.length;u++)i[r[u]]=r[u];return i},"assignClusters"),sPe=s(function(e,t,r){for(var i=yU(e,t,r),n=0;n<r.length;n++){for(var a=[],o=0;o<i.length;o++)i[o]===r[n]&&a.push(o);for(var l=-1,h=-1/0,u=0;u<a.length;u++){for(var d=0,p=0;p<a.length;p++)d+=t[a[p]*e+a[u]];d>h&&(l=u,h=d)}r[n]=a[l]}return i=yU(e,t,r),i},"assign"),vU=s(function(e){for(var t=this.cy(),r=this.nodes(),i=rPe(e),n={},a=0;a<r.length;a++)n[r[a].id()]=a;var o,l,h,u,d,p;o=r.length,l=o*o,h=new Array(l);for(var g=0;g<l;g++)h[g]=-1/0;for(var m=0;m<o;m++)for(var y=0;y<o;y++)m!==y&&(h[m*o+y]=iPe(i.distance,r[m],r[y],i.attributes));u=nPe(h,i.preference);for(var x=0;x<o;x++)h[x*o+x]=u;d=new Array(l);for(var C=0;C<l;C++)d[C]=0;p=new Array(l);for(var w=0;w<l;w++)p[w]=0;for(var _=new Array(o),S=new Array(o),R=new Array(o),b=0;b<o;b++)_[b]=0,S[b]=0,R[b]=0;for(var v=new Array(o*i.minIterations),k=0;k<v.length;k++)v[k]=0;var E;for(E=0;E<i.maxIterations;E++){for(var A=0;A<o;A++){for(var I=-1/0,$=-1/0,O=-1,j=0,D=0;D<o;D++)_[D]=d[A*o+D],j=p[A*o+D]+h[A*o+D],j>=I?($=I,I=j,O=D):j>$&&($=j);for(var P=0;P<o;P++)d[A*o+P]=(1-i.damping)*(h[A*o+P]-I)+i.damping*_[P];d[A*o+O]=(1-i.damping)*(h[A*o+O]-$)+i.damping*_[O]}for(var F=0;F<o;F++){for(var U=0,z=0;z<o;z++)_[z]=p[z*o+F],S[z]=Math.max(0,d[z*o+F]),U+=S[z];U-=S[F],S[F]=d[F*o+F],U+=S[F];for(var V=0;V<o;V++)p[V*o+F]=(1-i.damping)*Math.min(0,U-S[V])+i.damping*_[V];p[F*o+F]=(1-i.damping)*(U-S[F])+i.damping*_[F]}for(var W=0,X=0;X<o;X++){var J=p[X*o+X]+d[X*o+X]>0?1:0;v[E%i.minIterations*o+X]=J,W+=J}if(W>0&&(E>=i.minIterations-1||E==i.maxIterations-1)){for(var H=0,te=0;te<o;te++){R[te]=0;for(var ie=0;ie<i.minIterations;ie++)R[te]+=v[ie*o+te];(R[te]===0||R[te]===i.minIterations)&&H++}if(H===o)break}}for(var oe=aPe(o,d,p),he=sPe(o,h,oe),pe={},se=0;se<oe.length;se++)pe[oe[se]]=[];for(var le=0;le<r.length;le++){var ue=n[r[le].id()],de=he[ue];de!=null&&pe[de].push(r[le])}for(var we=new Array(oe.length),De=0;De<oe.length;De++)we[De]=t.collection(pe[oe[De]]);return we},"affinityPropagation"),oPe={affinityPropagation:vU,ap:vU},lPe=as({root:void 0,directed:!1}),cPe={hierholzer:s(function(e){if(!Mi(e)){var t=arguments;e={root:t[0],directed:t[1]}}var r=lPe(e),i=r.root,n=r.directed,a=this,o=!1,l,h,u;i&&(u=Mr(i)?this.filter(i)[0].id():i[0].id());var d={},p={};n?a.forEach(function(w){var _=w.id();if(w.isNode()){var S=w.indegree(!0),R=w.outdegree(!0),b=S-R,v=R-S;b==1?l?o=!0:l=_:v==1?h?o=!0:h=_:(v>1||b>1)&&(o=!0),d[_]=[],w.outgoers().forEach(function(k){k.isEdge()&&d[_].push(k.id())})}else p[_]=[void 0,w.target().id()]}):a.forEach(function(w){var _=w.id();if(w.isNode()){var S=w.degree(!0);S%2&&(l?h?o=!0:h=_:l=_),d[_]=[],w.connectedEdges().forEach(function(R){return d[_].push(R.id())})}else p[_]=[w.source().id(),w.target().id()]});var g={found:!1,trail:void 0};if(o)return g;if(h&&l)if(n){if(u&&h!=u)return g;u=h}else{if(u&&h!=u&&l!=u)return g;u||(u=h)}else u||(u=a[0].id());var m=s(function(w){for(var _=w,S=[w],R,b,v;d[_].length;)R=d[_].shift(),b=p[R][0],v=p[R][1],_!=v?(d[v]=d[v].filter(function(k){return k!=R}),_=v):!n&&_!=b&&(d[b]=d[b].filter(function(k){return k!=R}),_=b),S.unshift(R),S.unshift(_);return S},"walk"),y=[],x=[];for(x=m(u);x.length!=1;)d[x[0]].length==0?(y.unshift(a.getElementById(x.shift())),y.unshift(a.getElementById(x.shift()))):x=m(x.shift()).concat(x);y.unshift(a.getElementById(x.shift()));for(var C in d)if(d[C].length)return g;return g.found=!0,g.trail=this.spawn(y,!0),g},"hierholzer")},Z3=s(function(){var e=this,t={},r=0,i=0,n=[],a=[],o={},l=s(function(d,p){for(var g=a.length-1,m=[],y=e.spawn();a[g].x!=d||a[g].y!=p;)m.push(a.pop().edge),g--;m.push(a.pop().edge),m.forEach(function(x){var C=x.connectedNodes().intersection(e);y.merge(x),C.forEach(function(w){var _=w.id(),S=w.connectedEdges().intersection(e);y.merge(w),t[_].cutVertex?y.merge(S.filter(function(R){return R.isLoop()})):y.merge(S)})}),n.push(y)},"buildComponent"),h=s(function(d,p,g){d===g&&(i+=1),t[p]={id:r,low:r++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)n.push(e.spawn(e.getElementById(p)));else{var y,x,C,w;m.forEach(function(_){y=_.source().id(),x=_.target().id(),C=y===p?x:y,C!==g&&(w=_.id(),o[w]||(o[w]=!0,a.push({x:p,y:C,edge:_})),C in t?t[p].low=Math.min(t[p].low,t[C].id):(h(d,C,p),t[p].low=Math.min(t[p].low,t[C].low),t[p].id<=t[C].low&&(t[p].cutVertex=!0,l(p,C))))})}},"biconnectedSearch");e.forEach(function(d){if(d.isNode()){var p=d.id();p in t||(i=0,h(p,p),t[p].cutVertex=i>1)}});var u=Object.keys(t).filter(function(d){return t[d].cutVertex}).map(function(d){return e.getElementById(d)});return{cut:e.spawn(u),components:n}},"hopcroftTarjanBiconnected"),hPe={hopcroftTarjanBiconnected:Z3,htbc:Z3,htb:Z3,hopcroftTarjanBiconnectedComponents:Z3},Q3=s(function(){var e=this,t={},r=0,i=[],n=[],a=e.spawn(e),o=s(function(l){n.push(l),t[l]={index:r,low:r++,explored:!1};var h=e.getElementById(l).connectedEdges().intersection(e);if(h.forEach(function(m){var y=m.target().id();y!==l&&(y in t||o(y),t[y].explored||(t[l].low=Math.min(t[l].low,t[y].low)))}),t[l].index===t[l].low){for(var u=e.spawn();;){var d=n.pop();if(u.merge(e.getElementById(d)),t[d].low=t[l].index,t[d].explored=!0,d===l)break}var p=u.edgesWith(u),g=u.merge(p);i.push(g),a=a.difference(g)}},"stronglyConnectedSearch");return e.forEach(function(l){if(l.isNode()){var h=l.id();h in t||o(h)}}),{cut:a,components:i}},"tarjanStronglyConnected"),uPe={tarjanStronglyConnected:Q3,tsc:Q3,tscc:Q3,tarjanStronglyConnectedComponents:Q3},bU={}
vendor: 9,205 bytes, line 577
577,[Qy,G$e,U$e,W$e,Y$e,K$e,J$e,CBe,yf,vf,x7,BBe,KBe,ePe,oPe,cPe,hPe,uPe].forEach(function(e){qr(bU,e)}),xU=0,kU=1,TU=2,Bl=s(function(e){if(!(this instanceof Bl))return new Bl(e);this.id="Thenable/1.0.7",this.state=xU,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))},"api"),Bl.prototype={fulfill:s(function(e){return wU(this,kU,"fulfillValue",e)},"fulfill"),reject:s(function(e){return wU(this,TU,"rejectReason",e)},"reject"),then:s(function(e,t){var r=this,i=new Bl;return r.onFulfilled.push(SU(e,i,"fulfill")),r.onRejected.push(SU(t,i,"reject")),CU(r),i.proxy},"then")},wU=s(function(e,t,r,i){return e.state===xU&&(e.state=t,e[r]=i,CU(e)),e},"deliver"),CU=s(function(e){e.state===kU?EU(e,"onFulfilled",e.fulfillValue):e.state===TU&&EU(e,"onRejected",e.rejectReason)},"execute"),EU=s(function(e,t,r){if(e[t].length!==0){var i=e[t];e[t]=[];var n=s(function(){for(var a=0;a<i.length;a++)i[a](r)},"func");typeof setImmediate=="function"?setImmediate(n):setTimeout(n,0)}},"execute_handlers"),SU=s(function(e,t,r){return function(i){if(typeof e!="function")t[r].call(t,i);else{var n;try{n=e(i)}catch(a){t.reject(a);return}_U(t,n)}}},"resolver"),_U=s(function(e,t){if(e===t||e.proxy===t){e.reject(new TypeError("cannot resolve promise with itself"));return}var r;if(Ba(t)==="object"&&t!==null||typeof t=="function")try{r=t.then}catch(n){e.reject(n);return}if(typeof r=="function"){var i=!1;try{r.call(t,function(n){i||(i=!0,n===t?e.reject(new TypeError("circular thenable chain")):_U(e,n))},function(n){i||(i=!0,e.reject(n))})}catch(n){i||e.reject(n)}return}e.fulfill(t)},"resolve"),Bl.all=function(e){return new Bl(function(t,r){for(var i=new Array(e.length),n=0,a=s(function(l,h){i[l]=h,n++,n===e.length&&t(i)},"fulfill"),o=0;o<e.length;o++)(function(l){var h=e[l],u=h!=null&&h.then!=null;if(u)h.then(function(p){a(l,p)},function(p){r(p)});else{var d=h;a(l,d)}})(o)})},Bl.resolve=function(e){return new Bl(function(t,r){t(e)})},Bl.reject=function(e){return new Bl(function(t,r){r(e)})},kf=typeof Promise<"u"?Promise:Bl,E7=s(function(e,t,r){var i=a7(e),n=!i,a=this._private=qr({duration:1e3},t,r);if(a.target=e,a.style=a.style||a.css,a.started=!1,a.playing=!1,a.hooked=!1,a.applying=!1,a.progress=0,a.completes=[],a.frames=[],a.complete&&Zn(a.complete)&&a.completes.push(a.complete),n){var o=e.position();a.startPosition=a.startPosition||{x:o.x,y:o.y},a.startStyle=a.startStyle||e.cy().style().getAnimationStartStyle(e,a.style)}if(i){var l=e.pan();a.startPan={x:l.x,y:l.y},a.startZoom=e.zoom()}this.length=1,this[0]=this},"Animation"),qp=E7.prototype,qr(qp,{instanceString:s(function(){return"animation"},"instanceString"),hook:s(function(){var e=this._private;if(!e.hooked){var t,r=e.target._private.animation;e.queue?t=r.queue:t=r.current,t.push(this),Oo(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},"hook"),play:s(function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},"play"),playing:s(function(){return this._private.playing},"playing"),apply:s(function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},"apply"),applying:s(function(){return this._private.applying},"applying"),pause:s(function(){var e=this._private;return e.playing=!1,e.started=!1,this},"pause"),stop:s(function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},"stop"),rewind:s(function(){return this.progress(0)},"rewind"),fastforward:s(function(){return this.progress(1)},"fastforward"),time:s(function(e){var t=this._private;return e===void 0?t.progress*t.duration:this.progress(e/t.duration)},"time"),progress:s(function(e){var t=this._private,r=t.playing;return e===void 0?t.progress:(r&&this.pause(),t.progress=e,t.started=!1,r&&this.play(),this)},"progress"),completed:s(function(){return this._private.progress===1},"completed"),reverse:s(function(){var e=this._private,t=e.playing;t&&this.pause(),e.progress=1-e.progress,e.started=!1;var r=s(function(l,h){var u=e[l];u!=null&&(e[l]=e[h],e[h]=u)},"swap");if(r("zoom","startZoom"),r("pan","startPan"),r("position","startPosition"),e.style)for(var i=0;i<e.style.length;i++){var n=e.style[i],a=n.name,o=e.startStyle[a];e.startStyle[a]=n,e.style[i]=o}return t&&this.play(),this},"reverse"),promise:s(function(e){var t=this._private,r;switch(e){case"frame":r=t.frames;break;default:case"complete":case"completed":r=t.completes}return new kf(function(i,n){r.push(function(){i()})})},"promise")}),qp.complete=qp.completed,qp.run=qp.play,qp.running=qp.playing,dPe={animated:s(function(){return s(function(){var e=this,t=e.length!==void 0,r=t?e:[e],i=this._private.cy||this;if(!i.styleEnabled())return!1;var n=r[0];if(n)return n._private.animation.current.length>0},"animatedImpl")},"animated"),clearQueue:s(function(){return s(function(){var e=this,t=e.length!==void 0,r=t?e:[e],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var n=0;n<r.length;n++){var a=r[n];a._private.animation.queue=[]}return this},"clearQueueImpl")},"clearQueue"),delay:s(function(){return s(function(e,t){var r=this._private.cy||this;return r.styleEnabled()?this.animate({delay:e,duration:e,complete:t}):this},"delayImpl")},"delay"),delayAnimation:s(function(){return s(function(e,t){var r=this._private.cy||this;return r.styleEnabled()?this.animation({delay:e,duration:e,complete:t}):this},"delayAnimationImpl")},"delayAnimation"),animation:s(function(){return s(function(e,t){var r=this,i=r.length!==void 0,n=i?r:[r],a=this._private.cy||this,o=!i,l=!o;if(!a.styleEnabled())return this;var h=a.style();e=qr({},e,t);var u=Object.keys(e).length===0;if(u)return new E7(n[0],e);switch(e.duration===void 0&&(e.duration=400),e.duration){case"slow":e.duration=600;break;case"fast":e.duration=200;break}if(l&&(e.style=h.getPropsList(e.style||e.css),e.css=void 0),l&&e.renderedPosition!=null){var d=e.renderedPosition,p=a.pan(),g=a.zoom();e.position=XG(d,g,p)}if(o&&e.panBy!=null){var m=e.panBy,y=a.pan();e.pan={x:y.x+m.x,y:y.y+m.y}}var x=e.center||e.centre;if(o&&x!=null){var C=a.getCenterPan(x.eles,e.zoom);C!=null&&(e.pan=C)}if(o&&e.fit!=null){var w=e.fit,_=a.getFitViewport(w.eles||w.boundingBox,w.padding);_!=null&&(e.pan=_.pan,e.zoom=_.zoom)}if(o&&Mi(e.zoom)){var S=a.getZoomedViewport(e.zoom);S!=null?(S.zoomed&&(e.zoom=S.zoom),S.panned&&(e.pan=S.pan)):e.zoom=null}return new E7(n[0],e)},"animationImpl")},"animation"),animate:s(function(){return s(function(e,t){var r=this,i=r.length!==void 0,n=i?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;t&&(e=qr({},e,t));for(var o=0;o<n.length;o++){var l=n[o],h=l.animated()&&(e.queue===void 0||e.queue),u=l.animation(e,h?{queue:!0}:void 0);u.play()}return this},"animateImpl")},"animate"),stop:s(function(){return s(function(e,t){var r=this,i=r.length!==void 0,n=i?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var o=0;o<n.length;o++){for(var l=n[o],h=l._private,u=h.animation.current,d=0;d<u.length;d++){var p=u[d],g=p._private;t&&(g.duration=0)}e&&(h.animation.queue=[]),t||(h.animation.current=[])}return a.notify("draw"),this},"stopImpl")},"stop")},s(S3,"requireIsArray"),s(yMe,"require_isKey"),s(vMe,"requireIsFunction"),s(bMe,"require_coreJsData"),s(xMe,"require_isMasked"),s(kMe,"require_toSource"),s(TMe,"require_baseIsNative"),s(wMe,"require_getValue"),s(H_,"require_getNative"),s(_3,"require_nativeCreate"),s(CMe,"require_hashClear"),s(EMe,"require_hashDelete"),s(SMe,"require_hashGet"),s(_Me,"require_hashHas"),s(AMe,"require_hashSet"),s(LMe,"require_Hash"),s(RMe,"require_listCacheClear"),s(_j,"requireEq"),s(A3,"require_assocIndexOf"),s(IMe,"require_listCacheDelete"),s(DMe,"require_listCacheGet"),s(NMe,"require_listCacheHas"),s(MMe,"require_listCacheSet"),s(OMe,"require_ListCache"),s($Me,"require_Map"),s(BMe,"require_mapCacheClear"),s(PMe,"require_isKeyable"),s(L3,"require_getMapData"),s(FMe,"require_mapCacheDelete"),s(zMe,"require_mapCacheGet"),s(qMe,"require_mapCacheHas"),s(jMe,"require_mapCacheSet"),s(GMe,"require_MapCache"),s(UMe,"requireMemoize"),s(VMe,"require_memoizeCapped"),s(Aj,"require_stringToPath"),s(Lj,"require_arrayMap"),s(WMe,"require_baseToString"),s(Rj,"requireToString"),s(Ij,"require_castPath"),s(Y_,"require_toKey"),s(HMe,"require_baseGet"),s(YMe,"requireGet"),rFe=YMe(),iFe=jy(rFe),s(XMe,"require_defineProperty"),s(KMe,"require_baseAssignValue"),s(ZMe,"require_assignValue"),s(QMe,"require_isIndex"),s(JMe,"require_baseSet"),s(eOe,"requireSet"),hFe=eOe(),uFe=jy(hFe),s(tOe,"require_copyArray"),s(rOe,"requireToPath"),gFe=rOe(),fFe=jy(gFe),mFe={data:s(function(e){var t={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:s(function(r){},"beforeGet"),beforeSet:s(function(r,i){},"beforeSet"),onSet:s(function(r){},"onSet"),canSet:s(function(r){return!0},"canSet")};return e=qr({},t,e),s(function(r,i){var n=e,a=this,o=a.length!==void 0,l=o?a:[a],h=o?a[0]:a;if(Mr(r)){var u=r.indexOf(".")!==-1,d=u&&fFe(r);
vendor: 12,695 bytes, line 577
577if(n.allowGetting&&i===void 0){var p;return h&&(n.beforeGet(h),d&&h._private[n.field][r]===void 0?p=iFe(h._private[n.field],d):p=h._private[n.field][r]),p}else if(n.allowSetting&&i!==void 0){var g=!n.immutableKeys[r];if(g){var m=Cj({},r,i);n.beforeSet(a,m);for(var y=0,x=l.length;y<x;y++){var C=l[y];n.canSet(C)&&(d&&h._private[n.field][r]===void 0?uFe(C._private[n.field],d,i):C._private[n.field][r]=i)}n.updateStyle&&a.updateStyle(),n.onSet(a),n.settingTriggersEvent&&a[n.triggerFnName](n.settingEvent)}}}else if(n.allowSetting&&Mi(r)){var w=r,_,S,R=Object.keys(w);n.beforeSet(a,w);for(var b=0;b<R.length;b++){_=R[b],S=w[_];var v=!n.immutableKeys[_];if(v)for(var k=0;k<l.length;k++){var E=l[k];n.canSet(E)&&(E._private[n.field][_]=S)}}n.updateStyle&&a.updateStyle(),n.onSet(a),n.settingTriggersEvent&&a[n.triggerFnName](n.settingEvent)}else if(n.allowBinding&&Zn(r)){var A=r;a.on(n.bindingEvent,A)}else if(n.allowGetting&&r===void 0){var I;return h&&(n.beforeGet(h),I=h._private[n.field]),I}return a},"dataImpl")},"data"),removeData:s(function(e){var t={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=qr({},t,e),s(function(r){var i=e,n=this,a=n.length!==void 0,o=a?n:[n];if(Mr(r)){for(var l=r.split(/\s+/),h=l.length,u=0;u<h;u++){var d=l[u];if(!ad(d)){var p=!i.immutableKeys[d];if(p)for(var g=0,m=o.length;g<m;g++)o[g]._private[i.field][d]=void 0}}i.triggerEvent&&n[i.triggerFnName](i.event)}else if(r===void 0){for(var y=0,x=o.length;y<x;y++)for(var C=o[y]._private[i.field],w=Object.keys(C),_=0;_<w.length;_++){var S=w[_],R=!i.immutableKeys[S];R&&(C[S]=void 0)}i.triggerEvent&&n[i.triggerFnName](i.event)}return n},"removeDataImpl")},"removeData")},yFe={eventAliasesOn:s(function(e){var t=e;t.addListener=t.listen=t.bind=t.on,t.unlisten=t.unbind=t.off=t.removeListener,t.trigger=t.emit,t.pon=t.promiseOn=function(r,i){var n=this,a=Array.prototype.slice.call(arguments,0);return new kf(function(o,l){var h=s(function(p){n.off.apply(n,d),o(p)},"callback"),u=a.concat([h]),d=u.concat([]);n.on.apply(n,u)})}},"eventAliasesOn")},Xi={},[dPe,mFe,yFe].forEach(function(e){qr(Xi,e)}),vFe={animate:Xi.animate(),animation:Xi.animation(),animated:Xi.animated(),clearQueue:Xi.clearQueue(),delay:Xi.delay(),delayAnimation:Xi.delayAnimation(),stop:Xi.stop()},J3={classes:s(function(e){var t=this;if(e===void 0){var r=[];return t[0]._private.classes.forEach(function(m){return r.push(m)}),r}else cn(e)||(e=(e||"").match(/\S+/g)||[]);for(var i=[],n=new gf(e),a=0;a<t.length;a++){for(var o=t[a],l=o._private,h=l.classes,u=!1,d=0;d<e.length;d++){var p=e[d],g=h.has(p);if(!g){u=!0;break}}u||(u=h.size!==e.length),u&&(l.classes=n,i.push(o))}return i.length>0&&this.spawn(i).updateStyle().emit("class"),t},"classes"),addClass:s(function(e){return this.toggleClass(e,!0)},"addClass"),hasClass:s(function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},"hasClass"),toggleClass:s(function(e,t){cn(e)||(e=e.match(/\S+/g)||[]);for(var r=this,i=t===void 0,n=[],a=0,o=r.length;a<o;a++)for(var l=r[a],h=l._private.classes,u=!1,d=0;d<e.length;d++){var p=e[d],g=h.has(p),m=!1;t||i&&!g?(h.add(p),m=!0):(!t||i&&g)&&(h.delete(p),m=!0),!u&&m&&(n.push(l),u=!0)}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},"toggleClass"),removeClass:s(function(e){return this.toggleClass(e,!1)},"removeClass"),flashClass:s(function(e,t){var r=this;if(t==null)t=250;else if(t===0)return r;return r.addClass(e),setTimeout(function(){r.removeClass(e)},t),r},"flashClass")},J3.className=J3.classNames=J3.classes,Oi={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Fa,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"},Oi.variable="(?:[\\w-.]|(?:\\\\"+Oi.metaChar+"))+",Oi.className="(?:[\\w-]|(?:\\\\"+Oi.metaChar+"))+",Oi.value=Oi.string+"|"+Oi.number,Oi.id=Oi.variable,(function(){var e,t,r;for(e=Oi.comparatorOp.split("|"),r=0;r<e.length;r++)t=e[r],Oi.comparatorOp+="|@"+t;for(e=Oi.comparatorOp.split("|"),r=0;r<e.length;r++)t=e[r],!(t.indexOf("!")>=0)&&t!=="="&&(Oi.comparatorOp+="|\\!"+t)})(),nn=s(function(){return{checks:[]}},"newQuery"),mr={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},S7=[{selector:":selected",matches:s(function(e){return e.selected()},"matches")},{selector:":unselected",matches:s(function(e){return!e.selected()},"matches")},{selector:":selectable",matches:s(function(e){return e.selectable()},"matches")},{selector:":unselectable",matches:s(function(e){return!e.selectable()},"matches")},{selector:":locked",matches:s(function(e){return e.locked()},"matches")},{selector:":unlocked",matches:s(function(e){return!e.locked()},"matches")},{selector:":visible",matches:s(function(e){return e.visible()},"matches")},{selector:":hidden",matches:s(function(e){return!e.visible()},"matches")},{selector:":transparent",matches:s(function(e){return e.transparent()},"matches")},{selector:":grabbed",matches:s(function(e){return e.grabbed()},"matches")},{selector:":free",matches:s(function(e){return!e.grabbed()},"matches")},{selector:":removed",matches:s(function(e){return e.removed()},"matches")},{selector:":inside",matches:s(function(e){return!e.removed()},"matches")},{selector:":grabbable",matches:s(function(e){return e.grabbable()},"matches")},{selector:":ungrabbable",matches:s(function(e){return!e.grabbable()},"matches")},{selector:":animated",matches:s(function(e){return e.animated()},"matches")},{selector:":unanimated",matches:s(function(e){return!e.animated()},"matches")},{selector:":parent",matches:s(function(e){return e.isParent()},"matches")},{selector:":childless",matches:s(function(e){return e.isChildless()},"matches")},{selector:":child",matches:s(function(e){return e.isChild()},"matches")},{selector:":orphan",matches:s(function(e){return e.isOrphan()},"matches")},{selector:":nonorphan",matches:s(function(e){return e.isChild()},"matches")},{selector:":compound",matches:s(function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()},"matches")},{selector:":loop",matches:s(function(e){return e.isLoop()},"matches")},{selector:":simple",matches:s(function(e){return e.isSimple()},"matches")},{selector:":active",matches:s(function(e){return e.active()},"matches")},{selector:":inactive",matches:s(function(e){return!e.active()},"matches")},{selector:":backgrounding",matches:s(function(e){return e.backgrounding()},"matches")},{selector:":nonbackgrounding",matches:s(function(e){return!e.backgrounding()},"matches")}].sort(function(e,t){return i$e(e.selector,t.selector)}),bFe=(function(){for(var e={},t,r=0;r<S7.length;r++)t=S7[r],e[t.selector]=t.matches;return e})(),xFe=s(function(e,t){return bFe[e](t)},"stateSelectorMatches"),kFe="("+S7.map(function(e){return e.selector}).join("|")+")",Tf=s(function(e){return e.replace(new RegExp("\\\\("+Oi.metaChar+")","g"),function(t,r){return r})},"cleanMetaChars"),dd=s(function(e,t,r){e[e.length-1]=r},"replaceLastQuery"),_7=[{name:"group",query:!0,regex:"("+Oi.group+")",populate:s(function(e,t,r){var i=Ea(r,1),n=i[0];t.checks.push({type:mr.GROUP,value:n==="*"?n:n+"s"})},"populate")},{name:"state",query:!0,regex:kFe,populate:s(function(e,t,r){var i=Ea(r,1),n=i[0];t.checks.push({type:mr.STATE,value:n})},"populate")},{name:"id",query:!0,regex:"\\#("+Oi.id+")",populate:s(function(e,t,r){var i=Ea(r,1),n=i[0];t.checks.push({type:mr.ID,value:Tf(n)})},"populate")},{name:"className",query:!0,regex:"\\.("+Oi.className+")",populate:s(function(e,t,r){var i=Ea(r,1),n=i[0];t.checks.push({type:mr.CLASS,value:Tf(n)})},"populate")},{name:"dataExists",query:!0,regex:"\\[\\s*("+Oi.variable+")\\s*\\]",populate:s(function(e,t,r){var i=Ea(r,1),n=i[0];t.checks.push({type:mr.DATA_EXIST,field:Tf(n)})},"populate")},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Oi.variable+")\\s*("+Oi.comparatorOp+")\\s*("+Oi.value+")\\s*\\]",populate:s(function(e,t,r){var i=Ea(r,3),n=i[0],a=i[1],o=i[2],l=new RegExp("^"+Oi.string+"$").exec(o)!=null;l?o=o.substring(1,o.length-1):o=parseFloat(o),t.checks.push({type:mr.DATA_COMPARE,field:Tf(n),operator:a,value:o})},"populate")},{name:"dataBool",query:!0,regex:"\\[\\s*("+Oi.boolOp+")\\s*("+Oi.variable+")\\s*\\]",populate:s(function(e,t,r){var i=Ea(r,2),n=i[0],a=i[1];t.checks.push({type:mr.DATA_BOOL,field:Tf(a),operator:n})},"populate")},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Oi.meta+")\\s*("+Oi.comparatorOp+")\\s*("+Oi.number+")\\s*\\]\\]",populate:s(function(e,t,r){var i=Ea(r,3),n=i[0],a=i[1],o=i[2];t.checks.push({type:mr.META_COMPARE,field:Tf(n),operator:a,value:parseFloat(o)})},"populate")},{name:"nextQuery",separator:!0,regex:Oi.separator,populate:s(function(e,t){var r=e.currentSubject,i=e.edgeCount,n=e.compoundCount,a=e[e.length-1];r!=null&&(a.subject=r,e.currentSubject=null),a.edgeCount=i,a.compoundCount=n,e.edgeCount=0,e.compoundCount=0;var o=e[e.length++]=nn();return o},"populate")},{name:"directedEdge",separator:!0,regex:Oi.directedEdge,populate:s(function(e,t){if(e.currentSubject==null){var r=nn(),i=t,n=nn();return r.checks.push({type:mr.DIRECTED_EDGE,source:i,target:n}),dd(e,t,r),e.edgeCount++,n}else{var a=nn(),o=t,l=nn();return a.checks.push({type:mr.NODE_SOURCE,source:o,target:l}),dd(e,t,a),e.edgeCount++,l}},"populate")},{name:"undirectedEdge",separator:!0,regex:Oi.undirectedEdge,populate:s(function(e,t){if(e.currentSubject==null){var r=nn(),i=t,n=nn();return r.checks.push({type:mr.UNDIRECTED_EDGE,nodes:[i,n]}),dd(e,t,r),e.edgeCount++,n}else{var a=nn(),o=t,l=nn();return a.checks.push({type:mr.NODE_NEIGHBOR,node:o,neighbor:l}),dd(e,t,a),l}},"populate")},{name:"child",separator:!0,regex:Oi.child,populate:s(function(e,t){if(e.currentSubject==null){var r=nn(),i=nn(),n=e[e.length-1];return r.checks.push({type:mr.CHILD,parent:n,child:i}),dd(e,t,r),e.compoundCount++,i}else if(e.currentSubject===t){var a=nn(),o=e[e.length-1],l=nn(),h=nn(),u=nn(),d=nn();return a.checks.push({type:mr.COMPOUND_SPLIT,left:o,right:l,subject:h}),h.checks=t.checks,t.checks=[{type:mr.TRUE}],d.checks.push({type:mr.TRUE}),l.checks.push({type:mr.PARENT,parent:d,child:u}),dd(e,o,a),e.currentSubject=h,e.compoundCount++,u}else{var p=nn(),g=nn(),m=[{type:mr.PARENT,parent:p,child:g}];return p.checks=t.checks,t.checks=m,e.compoundCount++,g}},"populate")},{name:"descendant",separator:!0,regex:Oi.descendant,populate:s(function(e,t){if(e.currentSubject==null){var r=nn(),i=nn(),n=e[e.length-1];return r.checks.push({type:mr.DESCENDANT,ancestor:n,descendant:i}),dd(e,t,r),e.compoundCount++,i}else if(e.currentSubject===t){var a=nn(),o=e[e.length-1],l=nn(),h=nn(),u=nn(),d=nn();return a.checks.push({type:mr.COMPOUND_SPLIT,left:o,right:l,subject:h}),h.checks=t.checks,t.checks=[{type:mr.TRUE}],d.checks.push({type:mr.TRUE}),l.checks.push({type:mr.ANCESTOR,ancestor:d,descendant:u}),dd(e,o,a),e.currentSubject=h,e.compoundCount++,u}else{var p=nn(),g=nn(),m=[{type:mr.ANCESTOR,ancestor:p,descendant:g}];return p.checks=t.checks,t.checks=m,e.compoundCount++,g}},"populate")},{name:"subject",modifier:!0,regex:Oi.subject,populate:s(function(e,t){if(e.currentSubject!=null&&e.currentSubject!==t)return Yi("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=t;var r=e[e.length-1],i=r.checks[0],n=i==null?null:i.type;n===mr.DIRECTED_EDGE?i.type=mr.NODE_TARGET:n===mr.UNDIRECTED_EDGE&&(i.type=mr.NODE_NEIGHBOR,i.node=i.nodes[1],i.neighbor=i.nodes[0],i.nodes=null)},"populate")}],_7.forEach(function(e){return e.regexObj=new RegExp("^"+e.regex)}),TFe=s(function(e){for(var t,r,i,n=0;n<_7.length;n++){var a=_7[n],o=a.name,l=e.match(a.regexObj);if(l!=null){r=l,t=a,i=o;var h=l[0];e=e.substring(h.length);break}}return{expr:t,match:r,name:i,remaining:e}},"consumeExpr"),wFe=s(function(e){var t=e.match(/^\s+/);if(t){var r=t[0];e=e.substring(r.length)}return e},"consumeWhitespace"),CFe=s(function(e){var t=this,r=t.inputText=e,i=t[0]=nn();for(t.length=1,r=wFe(r);;){var n=TFe(r);if(n.expr==null)return Yi("The selector `"+e+"`is invalid"),!1;var a=n.match.slice(1),o=n.expr.populate(t,i,a);if(o===!1)return!1;if(o!=null&&(i=o),r=n.remaining,r.match(/^\s*$/))break}var l=t[t.length-1];t.currentSubject!=null&&(l.subject=t.currentSubject),l.edgeCount=t.edgeCount,l.compoundCount=t.compoundCount;for(var h=0;h<t.length;h++){var u=t[h];if(u.compoundCount>0&&u.edgeCount>
vendor: 8,935 bytes, line 577
5770)return Yi("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return Yi("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&Yi("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},"parse"),EFe=s(function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=s(function(h){return h!=null?h:""},"clean"),t=s(function(h){return Mr(h)?'"'+h+'"':e(h)},"cleanVal"),r=s(function(h){return" "+h+" "},"space"),i=s(function(h,u){var d=h.type,p=h.value;switch(d){case mr.GROUP:{var g=e(p);return g.substring(0,g.length-1)}case mr.DATA_COMPARE:{var m=h.field,y=h.operator;return"["+m+r(e(y))+t(p)+"]"}case mr.DATA_BOOL:{var x=h.operator,C=h.field;return"["+e(x)+C+"]"}case mr.DATA_EXIST:{var w=h.field;return"["+w+"]"}case mr.META_COMPARE:{var _=h.operator,S=h.field;return"[["+S+r(e(_))+t(p)+"]]"}case mr.STATE:return p;case mr.ID:return"#"+p;case mr.CLASS:return"."+p;case mr.PARENT:case mr.CHILD:return n(h.parent,u)+r(">")+n(h.child,u);case mr.ANCESTOR:case mr.DESCENDANT:return n(h.ancestor,u)+" "+n(h.descendant,u);case mr.COMPOUND_SPLIT:{var R=n(h.left,u),b=n(h.subject,u),v=n(h.right,u);return R+(R.length>0?" ":"")+b+v}case mr.TRUE:return""}},"checkToString"),n=s(function(h,u){return h.checks.reduce(function(d,p,g){return d+(u===h&&g===0?"$":"")+i(p,u)},"")},"queryToString"),a="",o=0;o<this.length;o++){var l=this[o];a+=n(l,l.subject),this.length>1&&o<this.length-1&&(a+=", ")}return this.toStringCache=a,a},"toString"),SFe={parse:CFe,toString:EFe},EV=s(function(e,t,r){var i,n=Mr(e),a=ir(e),o=Mr(r),l,h,u=!1,d=!1,p=!1;switch(t.indexOf("!")>=0&&(t=t.replace("!",""),d=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),u=!0),(n||o||u)&&(l=!n&&!a?"":""+e,h=""+r),u&&(e=l=l.toLowerCase(),r=h=h.toLowerCase()),t){case"*=":i=l.indexOf(h)>=0;break;case"$=":i=l.indexOf(h,l.length-h.length)>=0;break;case"^=":i=l.indexOf(h)===0;break;case"=":i=e===r;break;case">":p=!0,i=e>r;break;case">=":p=!0,i=e>=r;break;case"<":p=!0,i=e<r;break;case"<=":p=!0,i=e<=r;break;default:i=!1;break}return d&&(e!=null||!p)&&(i=!i),i},"valCmp"),_Fe=s(function(e,t){switch(t){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},"boolCmp"),AFe=s(function(e){return e!==void 0},"existCmp"),A7=s(function(e,t){return e.data(t)},"data"),LFe=s(function(e,t){return e[t]()},"meta"),ta=[],_n=s(function(e,t){return e.checks.every(function(r){return ta[r.type](r,t)})},"matches"),ta[mr.GROUP]=function(e,t){var r=e.value;return r==="*"||r===t.group()},ta[mr.STATE]=function(e,t){var r=e.value;return xFe(r,t)},ta[mr.ID]=function(e,t){var r=e.value;return t.id()===r},ta[mr.CLASS]=function(e,t){var r=e.value;return t.hasClass(r)},ta[mr.META_COMPARE]=function(e,t){var r=e.field,i=e.operator,n=e.value;return EV(LFe(t,r),i,n)},ta[mr.DATA_COMPARE]=function(e,t){var r=e.field,i=e.operator,n=e.value;return EV(A7(t,r),i,n)},ta[mr.DATA_BOOL]=function(e,t){var r=e.field,i=e.operator;return _Fe(A7(t,r),i)},ta[mr.DATA_EXIST]=function(e,t){var r=e.field;return e.operator,AFe(A7(t,r))},ta[mr.UNDIRECTED_EDGE]=function(e,t){var r=e.nodes[0],i=e.nodes[1],n=t.source(),a=t.target();return _n(r,n)&&_n(i,a)||_n(i,n)&&_n(r,a)},ta[mr.NODE_NEIGHBOR]=function(e,t){return _n(e.node,t)&&t.neighborhood().some(function(r){return r.isNode()&&_n(e.neighbor,r)})},ta[mr.DIRECTED_EDGE]=function(e,t){return _n(e.source,t.source())&&_n(e.target,t.target())},ta[mr.NODE_SOURCE]=function(e,t){return _n(e.source,t)&&t.outgoers().some(function(r){return r.isNode()&&_n(e.target,r)})},ta[mr.NODE_TARGET]=function(e,t){return _n(e.target,t)&&t.incomers().some(function(r){return r.isNode()&&_n(e.source,r)})},ta[mr.CHILD]=function(e,t){return _n(e.child,t)&&_n(e.parent,t.parent())},ta[mr.PARENT]=function(e,t){return _n(e.parent,t)&&t.children().some(function(r){return _n(e.child,r)})},ta[mr.DESCENDANT]=function(e,t){return _n(e.descendant,t)&&t.ancestors().some(function(r){return _n(e.ancestor,r)})},ta[mr.ANCESTOR]=function(e,t){return _n(e.ancestor,t)&&t.descendants().some(function(r){return _n(e.descendant,r)})},ta[mr.COMPOUND_SPLIT]=function(e,t){return _n(e.subject,t)&&_n(e.left,t)&&_n(e.right,t)},ta[mr.TRUE]=function(){return!0},ta[mr.COLLECTION]=function(e,t){var r=e.value;return r.has(t)},ta[mr.FILTER]=function(e,t){var r=e.value;return r(t)},RFe=s(function(e){var t=this;if(t.length===1&&t[0].checks.length===1&&t[0].checks[0].type===mr.ID)return e.getElementById(t[0].checks[0].value).collection();var r=s(function(i){for(var n=0;n<t.length;n++){var a=t[n];if(_n(a,i))return!0}return!1},"selectorFunction");return t.text()==null&&(r=s(function(){return!0},"selectorFunction")),e.filter(r)},"filter"),IFe=s(function(e){for(var t=this,r=0;r<t.length;r++){var i=t[r];if(_n(i,e))return!0}return!1},"matches"),DFe={matches:IFe,filter:RFe},pd=s(function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||Mr(e)&&e.match(/^\s*$/)||(Oo(e)?this.addQuery({checks:[{type:mr.COLLECTION,value:e.collection()}]}):Zn(e)?this.addQuery({checks:[{type:mr.FILTER,value:e}]}):Mr(e)?this.parse(e)||(this.invalid=!0):Gn("A selector must be created from a string; found "))},"Selector"),gd=pd.prototype,[SFe,DFe].forEach(function(e){return qr(gd,e)}),gd.text=function(){return this.inputText},gd.size=function(){return this.length},gd.eq=function(e){return this[e]},gd.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()},gd.addQuery=function(e){this[this.length++]=e},gd.selector=gd.toString,fd={allAre:s(function(e){var t=new pd(e);return this.every(function(r){return t.matches(r)})},"allAre"),is:s(function(e){var t=new pd(e);return this.some(function(r){return t.matches(r)})},"is"),some:s(function(e,t){for(var r=0;r<this.length;r++){var i=t?e.apply(t,[this[r],r,this]):e(this[r],r,this);if(i)return!0}return!1},"some"),every:s(function(e,t){for(var r=0;r<this.length;r++){var i=t?e.apply(t,[this[r],r,this]):e(this[r],r,this);if(!i)return!1}return!0},"every"),same:s(function(e){if(this===e)return!0;e=this.cy().collection(e);var t=this.length,r=e.length;return t!==r?!1:t===1?this[0]===e[0]:this.every(function(i){return e.hasElementWithId(i.id())})},"same"),anySame:s(function(e){return e=this.cy().collection(e),this.some(function(t){return e.hasElementWithId(t.id())})},"anySame"),allAreNeighbors:s(function(e){e=this.cy().collection(e);var t=this.neighborhood();return e.every(function(r){return t.hasElementWithId(r.id())})},"allAreNeighbors"),contains:s(function(e){e=this.cy().collection(e);var t=this;return e.every(function(r){return t.hasElementWithId(r.id())})},"contains")},fd.allAreNeighbours=fd.allAreNeighbors,fd.has=fd.contains,fd.equal=fd.equals=fd.same,sl=s(function(e,t){return s(function(r,i,n,a){var o=r,l=this,h;if(o==null?h="":Oo(o)&&o.length===1&&(h=o.id()),l.length===1&&h){var u=l[0]._private,d=u.traversalCache=u.traversalCache||{},p=d[t]=d[t]||[],g=Bp(h),m=p[g];return m||(p[g]=e.call(l,r,i,n,a))}else return e.call(l,r,i,n,a)},"traversalCache")},"cache"),wf={parent:s(function(e){var t=[];if(this.length===1){var r=this[0]._private.parent;if(r)return r}for(var i=0;i<this.length;i++){var n=this[i],a=n._private.parent;a&&t.push(a)}return this.spawn(t,!0).filter(e)},"parent"),parents:s(function(e){for(var t=[],r=this.parent();r.nonempty();){for(var i=0;i<r.length;i++){var n=r[i];t.push(n)}r=r.parent()}return this.spawn(t,!0).filter(e)},"parents"),commonAncestors:s(function(e){for(var t,r=0;r<this.length;r++){var i=this[r],n=i.parents();t=t||n,t=t.intersect(n)}return t.filter(e)},"commonAncestors"),orphans:s(function(e){return this.stdFilter(function(t){return t.isOrphan()}).filter(e)},"orphans"),nonorphans:s(function(e){return this.stdFilter(function(t){return t.isChild()}).filter(e)},"nonorphans"),children:sl(function(e){for(var t=[],r=0;r<this.length;r++)for(var i=this[r],n=i._private.children,a=0;a<n.length;a++)t.push(n[a]);return this.spawn(t,!0).filter(e)},"children"),siblings:s(function(e){return this.parent().children().not(this).filter(e)},"siblings"),isParent:s(function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},"isParent"),isChildless:s(function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},"isChildless"),isChild:s(function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},"isChild"),isOrphan:s(function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},"isOrphan"),descendants:s(function(e){var t=[];function r(i){for(var n=0;n<i.length;n++){var a=i[n];t.push(a),a.children().nonempty()&&r(a.children())}}return f(r,"i"),s(r,"add"),r(this.children()),this.spawn(t,!0).filter(e)}
vendor: 6,417 bytes, line 577
577,"descendants")},s(X_,"forEachCompound"),s(Dj,"addChildren"),wf.forEachDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return X_(this,e,t,Dj)},s(Nj,"addParent"),wf.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return X_(this,e,t,Nj)},s(iOe,"addParentAndChildren"),wf.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return X_(this,e,t,iOe)},wf.ancestors=wf.parents,ek=NFe={data:Xi.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Xi.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Xi.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Xi.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Xi.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Xi.removeData({field:"rscratch",triggerEvent:!1}),id:s(function(){var e=this[0];if(e)return e._private.data.id},"id")},ek.attr=ek.data,ek.removeAttr=ek.removeData,MFe=NFe,tk={},s(K_,"defineDegreeFunction"),qr(tk,{degree:K_(function(e,t){return t.source().same(t.target())?2:1}),indegree:K_(function(e,t){return t.target().same(e)?1:0}),outdegree:K_(function(e,t){return t.source().same(e)?1:0})}),s(lf,"defineDegreeBoundsFunction"),qr(tk,{minDegree:lf("degree",function(e,t){return e<t}),maxDegree:lf("degree",function(e,t){return e>t}),minIndegree:lf("indegree",function(e,t){return e<t}),maxIndegree:lf("indegree",function(e,t){return e>t}),minOutdegree:lf("outdegree",function(e,t){return e<t}),maxOutdegree:lf("outdegree",function(e,t){return e>t})}),qr(tk,{totalDegree:s(function(e){for(var t=0,r=this.nodes(),i=0;i<r.length;i++)t+=r[i].degree(e);return t},"totalDegree")}),SV=s(function(e,t,r){for(var i=0;i<e.length;i++){var n=e[i];if(!n.locked()){var a=n._private.position,o={x:t.x!=null?t.x-a.x:0,y:t.y!=null?t.y-a.y:0};n.isParent()&&!(o.x===0&&o.y===0)&&n.children().shift(o,r),n.dirtyBoundingBoxCache()}}},"beforePositionSet"),_V={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:s(function(e){e.updateCompoundBounds()},"beforeGet"),beforeSet:s(function(e,t){SV(e,t,!1)},"beforeSet"),onSet:s(function(e){e.dirtyCompoundBoundsCache()},"onSet"),canSet:s(function(e){return!e.locked()},"canSet")},Rc=OFe={position:Xi.data(_V),silentPosition:Xi.data(qr({},_V,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:s(function(e,t){SV(e,t,!0)},"beforeSet"),onSet:s(function(e){e.dirtyCompoundBoundsCache()},"onSet")})),positions:s(function(e,t){if(Mi(e))t?this.silentPosition(e):this.position(e);else if(Zn(e)){var r=e,i=this.cy();i.startBatch();for(var n=0;n<this.length;n++){var a=this[n],o=void 0;(o=r(a,n))&&(t?a.silentPosition(o):a.position(o))}i.endBatch()}return this},"positions"),silentPositions:s(function(e){return this.positions(e,!0)},"silentPositions"),shift:s(function(e,t,r){var i;if(Mi(e)?(i={x:ir(e.x)?e.x:0,y:ir(e.y)?e.y:0},r=t):Mr(e)&&ir(t)&&(i={x:0,y:0},i[e]=t),i!=null){var n=this.cy();n.startBatch();for(var a=0;a<this.length;a++){var o=this[a];if(!(n.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this))){var l=o.position(),h={x:l.x+i.x,y:l.y+i.y};r?o.silentPosition(h):o.position(h)}}n.endBatch()}return this},"shift"),silentShift:s(function(e,t){return Mi(e)?this.shift(e,!0):Mr(e)&&ir(t)&&this.shift(e,t,!0),this},"silentShift"),renderedPosition:s(function(e,t){var r=this[0],i=this.cy(),n=i.zoom(),a=i.pan(),o=Mi(e)?e:void 0,l=o!==void 0||t!==void 0&&Mr(e);if(r&&r.isNode())if(l)for(var h=0;h<this.length;h++){var u=this[h];t!==void 0?u.position(e,(t-a[e])/n):o!==void 0&&u.position(XG(o,n,a))}else{var d=r.position();return o=G3(d,n,a),e===void 0?o:o[e]}else if(!l)return;return this},"renderedPosition"),relativePosition:s(function(e,t){var r=this[0],i=this.cy(),n=Mi(e)?e:void 0,a=n!==void 0||t!==void 0&&Mr(e),o=i.hasCompoundNodes();if(r&&r.isNode())if(a)for(var l=0;l<this.length;l++){var h=this[l],u=o?h.parent():null,d=u&&u.length>0,p=d;d&&(u=u[0]);var g=p?u.position():{x:0,y:0};t!==void 0?h.position(e,t+g[e]):n!==void 0&&h.position({x:n.x+g.x,y:n.y+g.y})}else{var m=r.position(),y=o?r.parent():null,x=y&&y.length>0,C=x;x&&(y=y[0]);var w=C?y.position():{x:0,y:0};return n={x:m.x-w.x,y:m.y-w.y},e===void 0?n:n[e]}else if(!a)return;return this},"relativePosition")},Rc.modelPosition=Rc.point=Rc.position,Rc.modelPositions=Rc.points=Rc.positions,Rc.renderedPoint=Rc.renderedPosition,Rc.relativePoint=Rc.relativePosition,$Fe=OFe,n2=jp={},jp.renderedBoundingBox=function(e){var t=this.boundingBox(e),r=this.cy(),i=r.zoom(),n=r.pan(),a=t.x1*i+n.x,o=t.x2*i+n.x,l=t.y1*i+n.y,h=t.y2*i+n.y;return{x1:a,x2:o,y1:l,y2:h,w:o-a,h:h-l}},jp.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var i=r._private;i.compoundBoundsClean=!1,i.bbCache=null,e||r.emitAndNotify("bounds")}}),this)},jp.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function r(o){if(!o.isParent())return;var l=o._private,h=o.children(),u=o.pstyle("compound-sizing-wrt-labels").value==="include",d={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},p=h.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),g=l.position;(p.w===0||p.h===0)&&(p={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},p.x1=g.x-p.w/2,p.x2=g.x+p.w/2,p.y1=g.y-p.h/2,p.y2=g.y+p.h/2);function m(A,I,$){var O=0,j=0,D=I+$;return A>0&&D>
vendor: 7,855 bytes, line 577
5770&&(O=I/D*A,j=$/D*A),{biasDiff:O,biasComplementDiff:j}}f(m,"m"),s(m,"computeBiasValues");function y(A,I,$,O){if($.units==="%")switch(O){case"width":return A>0?$.pfValue*A:0;case"height":return I>0?$.pfValue*I:0;case"average":return A>0&&I>0?$.pfValue*(A+I)/2:0;case"min":return A>0&&I>0?A>I?$.pfValue*I:$.pfValue*A:0;case"max":return A>0&&I>0?A>I?$.pfValue*A:$.pfValue*I:0;default:return 0}else return $.units==="px"?$.pfValue:0}f(y,"g"),s(y,"computePaddingValues");var x=d.width.left.value;d.width.left.units==="px"&&d.width.val>0&&(x=x*100/d.width.val);var C=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(C=C*100/d.width.val);var w=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(w=w*100/d.height.val);var _=d.height.bottom.value;d.height.bottom.units==="px"&&d.height.val>0&&(_=_*100/d.height.val);var S=m(d.width.val-p.w,x,C),R=S.biasDiff,b=S.biasComplementDiff,v=m(d.height.val-p.h,w,_),k=v.biasDiff,E=v.biasComplementDiff;l.autoPadding=y(p.w,p.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),l.autoWidth=Math.max(p.w,d.width.val),g.x=(-R+p.x1+p.x2+b)/2,l.autoHeight=Math.max(p.h,d.height.val),g.y=(-k+p.y1+p.y2+E)/2}f(r,"r"),s(r,"update");for(var i=0;i<this.length;i++){var n=this[i],a=n._private;(!a.compoundBoundsClean||e)&&(r(n),t.batching()||(a.compoundBoundsClean=!0))}return this},ol=s(function(e){return e===1/0||e===-1/0?0:e},"noninf"),Pl=s(function(e,t,r,i,n){i-t===0||n-r===0||t==null||r==null||i==null||n==null||(e.x1=t<e.x1?t:e.x1,e.x2=i>e.x2?i:e.x2,e.y1=r<e.y1?r:e.y1,e.y2=n>e.y2?n:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},"updateBounds"),md=s(function(e,t){return t==null?e:Pl(e,t.x1,t.y1,t.x2,t.y2)},"updateBoundsFromBox"),a2=s(function(e,t,r){return uo(e,t,r)},"prefixedProperty"),rk=s(function(e,t,r){if(!t.cy().headless()){var i=t._private,n=i.rstyle,a=n.arrowWidth/2,o=t.pstyle(r+"-arrow-shape").value,l,h;if(o!=="none"){r==="source"?(l=n.srcX,h=n.srcY):r==="target"?(l=n.tgtX,h=n.tgtY):(l=n.midX,h=n.midY);var u=i.arrowBounds=i.arrowBounds||{},d=u[r]=u[r]||{};d.x1=l-a,d.y1=h-a,d.x2=l+a,d.y2=h+a,d.w=d.x2-d.x1,d.h=d.y2-d.y1,V3(d,1),Pl(e,d.x1,d.y1,d.x2,d.y2)}}},"updateBoundsFromArrow"),L7=s(function(e,t,r){if(!t.cy().headless()){var i;r?i=r+"-":i="";var n=t._private,a=n.rstyle,o=t.pstyle(i+"label").strValue;if(o){var l=t.pstyle("text-halign"),h=t.pstyle("text-valign"),u=a2(a,"labelWidth",r),d=a2(a,"labelHeight",r),p=a2(a,"labelX",r),g=a2(a,"labelY",r),m=t.pstyle(i+"text-margin-x").pfValue,y=t.pstyle(i+"text-margin-y").pfValue,x=t.isEdge(),C=t.pstyle(i+"text-rotation"),w=t.pstyle("text-outline-width").pfValue,_=t.pstyle("text-border-width").pfValue,S=_/2,R=t.pstyle("text-background-padding").pfValue,b=2,v=d,k=u,E=k/2,A=v/2,I,$,O,j;if(x)I=p-E,$=p+E,O=g-A,j=g+A;else{switch(l.value){case"left":I=p-k,$=p;break;case"center":I=p-E,$=p+E;break;case"right":I=p,$=p+k;break}switch(h.value){case"top":O=g-v,j=g;break;case"center":O=g-A,j=g+A;break;case"bottom":O=g,j=g+v;break}}var D=m-Math.max(w,S)-R-b,P=m+Math.max(w,S)+R+b,F=y-Math.max(w,S)-R-b,U=y+Math.max(w,S)+R+b;I+=D,$+=P,O+=F,j+=U;var z=r||"main",V=n.labelBounds,W=V[z]=V[z]||{};W.x1=I,W.y1=O,W.x2=$,W.y2=j,W.w=$-I,W.h=j-O,W.leftPad=D,W.rightPad=P,W.topPad=F,W.botPad=U;var X=x&&C.strValue==="autorotate",J=C.pfValue!=null&&C.pfValue!==0;if(X||J){var H=X?a2(n.rstyle,"labelAngle",r):C.pfValue,te=Math.cos(H),ie=Math.sin(H),oe=(I+$)/2,he=(O+j)/2;if(!x){switch(l.value){case"left":oe=$;break;case"right":oe=I;break}switch(h.value){case"top":he=j;break;case"bottom":he=O;break}}var pe=s(function(Ge,be){return Ge=Ge-oe,be=be-he,{x:Ge*te-be*ie+oe,y:Ge*ie+be*te+he}},"rotate"),se=pe(I,O),le=pe(I,j),ue=pe($,O),de=pe($,j);I=Math.min(se.x,le.x,ue.x,de.x),$=Math.max(se.x,le.x,ue.x,de.x),O=Math.min(se.y,le.y,ue.y,de.y),j=Math.max(se.y,le.y,ue.y,de.y)}var we=z+"Rot",De=V[we]=V[we]||{};De.x1=I,De.y1=O,De.x2=$,De.y2=j,De.w=$-I,De.h=j-O,Pl(e,I,O,$,j),Pl(n.labelBounds.all,I,O,$,j)}return e}},"updateBoundsFromLabel"),AV=s(function(e,t){if(!t.cy().headless()){var r=t.pstyle("outline-opacity").value,i=t.pstyle("outline-width").value,n=t.pstyle("outline-offset").value,a=i+n;LV(e,t,r,a,"outside",a/2)}},"updateBoundsFromOutline"),LV=s(function(e,t,r,i,n,a){if(!(r===0||i<=0||n==="inside")){var o=t.cy(),l=t.pstyle("shape").value,h=o.renderer().nodeShapes[l],u=t.position(),d=u.x,p=u.y,g=t.width(),m=t.height();if(h.hasMiterBounds){n==="center"&&(i/=2);var y=h.miterBounds(d,p,g,m,i);md(e,y)}else a!=null&&a>0&&W3(e,[a,a,a,a])}},"updateBoundsFromMiter"),BFe=s(function(e,t){if(!t.cy().headless()){var r=t.pstyle("border-opacity").value,i=t.pstyle("border-width").pfValue,n=t.pstyle("border-position").value;LV(e,t,r,i,n)}},"updateBoundsFromMiterBorder"),PFe=s(function(e,t){var r=e._private.cy,i=r.styleEnabled(),n=r.headless(),a=js(),o=e._private,l=e.isNode(),h=e.isEdge(),u,d,p,g,m,y,x=o.rstyle,C=l&&i?e.pstyle("bounds-expansion").pfValue:[0],w=s(function(De){return De.pstyle("display").value!=="none"},"isDisplayed"),_=!i||w(e)&&(!h||w(e.source())&&w(e.target()));if(_){var S=0,R=0;i&&t.includeOverlays&&(S=e.pstyle("overlay-opacity").value,S!==0&&(R=e.pstyle("overlay-padding").value));var b=0,v=0;i&&t.includeUnderlays&&(b=e.pstyle("underlay-opacity").value,b!==0&&(v=e.pstyle("underlay-padding").value));var k=Math.max(R,v),E=0,A=0;if(i&&(E=e.pstyle("width").pfValue,A=E/2),l&&t.includeNodes){var I=e.position();m=I.x,y=I.y;var $=e.outerWidth(),O=$/2,j=e.outerHeight(),D=j/2;u=m-O,d=m+O,p=y-D,g=y+D,Pl(a,u,p,d,g),i&&AV(a,e),i&&t.includeOutlines&&!n&&AV(a,e),i&&BFe(a,e)}else if(h&&t.includeEdges)if(i&&!n){var P=e.pstyle("curve-style").strValue;if(u=Math.min(x.srcX,x.midX,x.tgtX),d=Math.max(x.srcX,x.midX,x.tgtX),p=Math.min(x.srcY,x.midY,x.tgtY),g=Math.max(x.srcY,x.midY,x.tgtY),u-=A,d+=A,p-=A,g+=A,Pl(a,u,p,d,g),P==="haystack"){var F=x.haystackPts;if(F&&F.length===2){if(u=F[0].x,p=F[0].y,d=F[1].x,g=F[1].y,u>d){var U=u;u=d,d=U}if(p>g){var z=p;p=g,g=z}Pl(a,u-A,p-A,d+A,g+A)}}else if(P==="bezier"||P==="unbundled-bezier"||sd(P,"segments")||sd(P,"taxi")){var V;switch(P){case"bezier":case"unbundled-bezier":V=x.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":V=x.linePts;break}if(V!=null)for(var W=0;W<V.length;W++){var X=V[W];u=X.x-A,d=X.x+A,p=X.y-A,g=X.y+A,Pl(a,u,p,d,g)}}}else{var J=e.source(),H=J.position(),te=e.target(),ie=te.position();if(u=H.x,d=ie.x,p=H.y,g=ie.y,u>d){var oe=u;u=d,d=oe}if(p>g){var he=p;p=g,g=he}u-=A,d+=A,p-=A,g+=A,Pl(a,u,p,d,g)}if(i&&t.includeEdges&&h&&(rk(a,e,"mid-source"),rk(a,e,"mid-target"),rk(a,e,"source"),rk(a,e,"target")),i){var pe=e.pstyle("ghost").value==="yes";if(pe){var se=e.pstyle("ghost-offset-x").pfValue,le=e.pstyle("ghost-offset-y").pfValue;Pl(a,a.x1+se,a.y1+le,a.x2+se,a.y2+le)}}var ue=o.bodyBounds=o.bodyBounds||{};ZG(ue,a),W3(ue,C),V3(ue,1),i&&(u=a.x1,d=a.x2,p=a.y1,g=a.y2,Pl(a,u-k,p-k,d+k,g+k));var de=o.overlayBounds=o.overlayBounds||{};ZG(de,a),W3(de,C),V3(de,1);var we=o.labelBounds=o.labelBounds||{};we.all!=null?cBe(we.all):we.all=js(),i&&t.includeLabels&&(t.includeMainLabels&&L7(a,e,null),h&&(t.includeSourceLabels&&L7(a,e,"source"),t.includeTargetLabels&&L7(a,e,"target")))}return a.x1=ol(a.x1),a.y1=ol(a.y1),a.x2=ol(a.x2),a.y2=ol(a.y2),a.w=ol(a.x2-a.x1),a.h=ol(a.y2-a.y1),a.w>0&&a.h>0&&_&&(W3(a,C),V3(a,1)),a},"boundingBoxImpl"),RV=s(function(e){var t=0,r=s(function(n){return(n?1:0)<<t++},"tf"),i=0;return i+=r(e.incudeNodes),i+=r(e.includeEdges),i+=r(e.includeLabels),i+=r(e.includeMainLabels),i+=r(e.includeSourceLabels),i+=r(e.includeTargetLabels),i+=r(e.includeOverlays),i+=r(e.includeOutlines),i},"getKey"),IV=s(function(e){var t=s(function(a){return Math.round(a)},"r");if(e.isEdge()){var r=e.source().position(),i=e.target().position();return FG([t(r.x),t(r.y),t(i.x),t(i.y)])}else{var n=e.position();return FG([t(n.x),t(n.y)])}},"getBoundingBoxPosKey"),DV=s(function(e,t){var r=e._private,i,n=e.isEdge(),a=t==null?NV:RV(t),o=a===NV;
vendor: 1,106 bytes, line 577
577if(r.bbCache==null?(i=PFe(e,s2),r.bbCache=i,r.bbCachePosKey=IV(e)):i=r.bbCache,!o){var l=e.isNode();i=js(),(t.includeNodes&&l||t.includeEdges&&!l)&&(t.includeOverlays?md(i,r.overlayBounds):md(i,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!n||t.includeSourceLabels&&t.includeTargetLabels)?md(i,r.labelBounds.all):(t.includeMainLabels&&md(i,r.labelBounds.mainRot),t.includeSourceLabels&&md(i,r.labelBounds.sourceRot),t.includeTargetLabels&&md(i,r.labelBounds.targetRot))),i.w=i.x2-i.x1,i.h=i.y2-i.y1}return i},"cachedBoundingBoxImpl"),s2={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},NV=RV(s2),MV=as(s2),jp.boundingBox=function(e){var t,r=e===void 0||e.useCache===void 0||e.useCache===!0,i=df(function(d){var p=d._private;return p.bbCache==null||p.styleDirty||p.bbCachePosKey!==IV(d)},function(d){return d.id()});if(r&&this.length===1&&!i(this[0]))e===void 0?e=s2:e=MV(e),t=DV(this[0],e);else{t=js(),e=e||s2;var n=MV(e),a=this,o=a.cy(),l=o.styleEnabled();
vendor: 4,560 bytes, line 577
577this.edges().forEach(i),this.nodes().forEach(i),l&&this.recalculateRenderedStyle(r),this.updateCompoundBounds(!r);for(var h=0;h<a.length;h++){var u=a[h];i(u)&&u.dirtyBoundingBoxCache(),md(t,DV(u,n))}}return t.x1=ol(t.x1),t.y1=ol(t.y1),t.x2=ol(t.x2),t.y2=ol(t.y2),t.w=ol(t.x2-t.x1),t.h=ol(t.y2-t.y1),t},jp.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},jp.boundingBoxAt=function(e){var t=this.nodes(),r=this.cy(),i=r.hasCompoundNodes(),n=r.collection();if(i&&(n=t.filter(function(u){return u.isParent()}),t=t.not(n)),Mi(e)){var a=e;e=s(function(){return a},"fn")}var o=s(function(u,d){return u._private.bbAtOldPos=e(u,d)},"storeOldPos"),l=s(function(u){return u._private.bbAtOldPos},"getOldPos");r.startBatch(),t.forEach(o).silentPositions(e),i&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var h=lBe(this.boundingBox({useCache:!1}));return t.silentPositions(l),i&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),h},n2.boundingbox=n2.bb=n2.boundingBox,n2.renderedBoundingbox=n2.renderedBoundingBox,FFe=jp,ik=nk={},OV=s(function(e){e.uppercaseName=yG(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=yG(e.outerName),ik[e.name]=s(function(){var t=this[0],r=t._private,i=r.cy,n=i._private.styleEnabled;if(t)if(n){if(t.isParent())return t.updateCompoundBounds(),r[e.autoName]||0;var a=t.pstyle(e.name);return a.strValue==="label"?(t.recalculateRenderedStyle(),r.rstyle[e.labelName]||0):a.pfValue}else return 1},"dimImpl"),ik["outer"+e.uppercaseName]=s(function(){var t=this[0],r=t._private,i=r.cy,n=i._private.styleEnabled;if(t)if(n){var a=t[e.name](),o=t.pstyle("border-position").value,l;o==="center"?l=t.pstyle("border-width").pfValue:o==="outside"?l=2*t.pstyle("border-width").pfValue:l=0;var h=2*t.padding();return a+l+h}else return 1},"outerDimImpl"),ik["rendered"+e.uppercaseName]=s(function(){var t=this[0];if(t){var r=t[e.name]();return r*this.cy().zoom()}},"renderedDimImpl"),ik["rendered"+e.uppercaseOuterName]=s(function(){var t=this[0];if(t){var r=t[e.outerName]();return r*this.cy().zoom()}},"renderedOuterDimImpl")},"defineDimFns"),OV({name:"width"}),OV({name:"height"}),nk.padding=function(){var e=this[0],t=e._private;return e.isParent()?(e.updateCompoundBounds(),t.autoPadding!==void 0?t.autoPadding:e.pstyle("padding").pfValue):e.pstyle("padding").pfValue},nk.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()},nk.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()},zFe=nk,qFe=s(function(e,t){if(e.isEdge()&&e.takesUpSpace())return t(e)},"ifEdge"),jFe=s(function(e,t){if(e.isEdge()&&e.takesUpSpace()){var r=e.cy();return G3(t(e),r.zoom(),r.pan())}},"ifEdgeRenderedPosition"),GFe=s(function(e,t){if(e.isEdge()&&e.takesUpSpace()){var r=e.cy(),i=r.pan(),n=r.zoom();return t(e).map(function(a){return G3(a,n,i)})}},"ifEdgeRenderedPositions"),UFe=s(function(e){return e.renderer().getControlPoints(e)},"controlPoints"),VFe=s(function(e){return e.renderer().getSegmentPoints(e)},"segmentPoints"),WFe=s(function(e){return e.renderer().getSourceEndpoint(e)},"sourceEndpoint"),HFe=s(function(e){return e.renderer().getTargetEndpoint(e)},"targetEndpoint"),YFe=s(function(e){return e.renderer().getEdgeMidpoint(e)},"midpoint"),$V={controlPoints:{get:UFe,mult:!0},segmentPoints:{get:VFe,mult:!0},sourceEndpoint:{get:WFe},targetEndpoint:{get:HFe},midpoint:{get:YFe}},XFe=s(function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},"renderedName"),KFe=Object.keys($V).reduce(function(e,t){var r=$V[t],i=XFe(t);return e[t]=function(){return qFe(this,r.get)},r.mult?e[i]=function(){return GFe(this,r.get)}:e[i]=function(){return jFe(this,r.get)},e},{}),ZFe=qr({},$Fe,FFe,zFe,KFe),BV=s(function(e,t){this.recycle(e,t)},"Event"),s(Vy,"returnFalse"),s(R3,"returnTrue"),BV.prototype={instanceString:s(function(){return"event"},"instanceString"),recycle:s(function(e,t){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Vy,e!=null&&e.preventDefault?(this.t
vendor: 5,449 bytes, line 577
577ype=e.type,this.isDefaultPrevented=e.defaultPrevented?R3:Vy):e!=null&&e.type?t=e:this.type=e,t!=null&&(this.originalEvent=t.originalEvent,this.type=t.type!=null?t.type:this.type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var r=this.position,i=this.cy.zoom(),n=this.cy.pan();this.renderedPosition={x:r.x*i+n.x,y:r.y*i+n.y}}this.timeStamp=e&&e.timeStamp||Date.now()},"recycle"),preventDefault:s(function(){this.isDefaultPrevented=R3;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},"preventDefault"),stopPropagation:s(function(){this.isPropagationStopped=R3;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},"stopPropagation"),stopImmediatePropagation:s(function(){this.isImmediatePropagationStopped=R3,this.stopPropagation()},"stopImmediatePropagation"),isDefaultPrevented:Vy,isPropagationStopped:Vy,isImmediatePropagationStopped:Vy},PV=/^([^.]+)(\.(?:[^.]+))?$/,QFe=".*",FV={qualifierCompare:s(function(e,t){return e===t},"qualifierCompare"),eventMatches:s(function(){return!0},"eventMatches"),addEventFields:s(function(){},"addEventFields"),callbackContext:s(function(e){return e},"callbackContext"),beforeEmit:s(function(){},"beforeEmit"),afterEmit:s(function(){},"afterEmit"),bubble:s(function(){return!1},"bubble"),parent:s(function(){return null},"parent"),context:null},zV=Object.keys(FV),JFe={},s(I3,"Emitter"),yd=I3.prototype,qV=s(function(e,t,r,i,n,a,o){Zn(i)&&(n=i,i=null),o&&(a==null?a=o:a=qr({},a,o));for(var l=cn(r)?r:r.split(/\s+/),h=0;h<l.length;h++){var u=l[h];if(!ad(u)){var d=u.match(PV);if(d){var p=d[1],g=d[2]?d[2]:null,m=t(e,u,p,g,i,n,a);if(m===!1)break}}}},"forEachEvent"),jV=s(function(e,t){return e.addEventFields(e.context,t),new BV(t.type,t)},"makeEventObj"),eze=s(function(e,t,r){if(WOe(r)){t(e,r);return}else if(Mi(r)){t(e,jV(e,r));return}for(var i=cn(r)?r:r.split(/\s+/),n=0;n<i.length;n++){var a=i[n];if(!ad(a)){var o=a.match(PV);if(o){var l=o[1],h=o[2]?o[2]:null,u=jV(e,{type:l,namespace:h,target:e.context});t(e,u)}}}},"forEachEventObj"),yd.on=yd.addListener=function(e,t,r,i,n){return qV(this,function(a,o,l,h,u,d,p){Zn(d)&&a.listeners.push({event:o,callback:d,type:l,namespace:h,qualifier:u,conf:p})},e,t,r,i,n),this},yd.one=function(e,t,r,i){return this.on(e,t,r,i,{one:!0})},yd.removeListener=yd.off=function(e,t,r,i){var n=this;this.emitting!==0&&(this.listeners=I$e(this.listeners));for(var a=this.listeners,o=s(function(h){var u=a[h];qV(n,function(d,p,g,m,y,x){if((u.type===g||e==="*")&&(!m&&u.namespace!==".*"||u.namespace===m)&&(!y||d.qualifierCompare(u.qualifier,y))&&(!x||u.callback===x))return a.splice(h,1),!1},e,t,r,i)},"_loop"),l=a.length-1;l>=0;l--)o(l);return this},yd.removeAllListeners=function(){return this.removeListener("*")},yd.emit=yd.trigger=function(e,t,r){var i=this.listeners,n=i.length;return this.emitting++,cn(t)||(t=[t]),eze(this,function(a,o){r!=null&&(i=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],n=i.length);for(var l=s(function(){var u=i[h];if(u.type===o.type&&(!u.namespace||u.namespace===o.namespace||u.namespace===QFe)&&a.eventMatches(a.context,u,o)){var d=[o];t!=null&&N$e(d,t),a.beforeEmit(a.context,u,o),u.conf&&u.conf.one&&(a.listeners=a.listeners.filter(function(m){return m!==u}));var p=a.callbackContext(a.context,u,o),g=u.callback.apply(p,d);a.afterEmit(a.context,u,o),g===!1&&(o.stopPropagation(),o.preventDefault())}},"_loop2"),h=0;h<n;h++)l();a.bubble(a.context)&&!o.isPropagationStopped()&&a.parent(a.context).emit(o,t)},e),this.emitting--,this},tze={qualifierCompare:s(function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},"qualifierCompare"),eventMatches:s(function(e,t,r){var i=t.qualifier;return i!=null?e!==r.target&&Yy(r.target)&&i.matches(r.target):!0},"eventMatches"),addEventFields:s(function(e,t){t.cy=e.cy(),t.target=e},"addEventFields"),callbackContext:s(function(e,t,r){return t.qualifier!=null?r.target:e},"callbackContext"),beforeEmit:s(function(e,t){t.conf&&t.conf.once&&t.conf.onceCollection.removeListener(t.event,t.qualifier,t.callback)},"beforeEmit"),bubble:s(function(){return!0},"bubble"),parent:s(function(e){return e.isChild()?e.parent():e.cy()},"parent")},ak=s(function(e){return Mr(e)?new pd(e):e},"argSelector"),GV={createEmitter:s(function(){for(var e=0;e<this.length;e++){var t=this[e],r=t._private;r.emitter||(r.emitter=new I3(tze,t))}return this},"createEmitter"),emitter:s(function(){return this._private.emitter},"emitter"),on:s(function(e,t,r){for(var i=ak(t),n=0;n<this.length;n++){var a=this[n];a.emitter().on(e,i,r)}return this},"on"),removeListener:s(function(e,t,r){for(var i=ak(t),n=0;n<this.length;n++){var a=this[n];a.emitter().removeListener(e,i,r)}return this},"removeListener"),removeAllListeners:s(function(){for(var e=0;e<this.length;e++){var t=this[e];t.emitter().removeAllListeners()}return this},"removeAllListeners"),one:s(function(e,t,r){for(var i=ak(t),n=0;n<this.length;n++){var a=this[n];a.emitter().one(e,i,r)}return this},"one"),once:s(function(e,t,r){for(var i=ak(t),n=0;n<this.length;n++){var a=this[n];a.emitter().on(e,i,r,{once:!0,onceCollection:this})}},"once"),emit:s(function(e,t){for(var r=0;r<this.length;r++){var i=this[r];i.emitter().emit(e,t)}return this},"emit"),emitAndNotify:s(function(e,t){if(this.length!==0)return this.cy().notify(e,this),this.emit
vendor: 36,753 bytes, line 577
577(e,t),this},"emitAndNotify")},Xi.eventAliasesOn(GV),UV={nodes:s(function(e){return this.filter(function(t){return t.isNode()}).filter(e)},"nodes"),edges:s(function(e){return this.filter(function(t){return t.isEdge()}).filter(e)},"edges"),byGroup:s(function(){for(var e=this.spawn(),t=this.spawn(),r=0;r<this.length;r++){var i=this[r];i.isNode()?e.push(i):t.push(i)}return{nodes:e,edges:t}},"byGroup"),filter:s(function(e,t){if(e===void 0)return this;if(Mr(e)||Oo(e))return new pd(e).filter(this);if(Zn(e)){for(var r=this.spawn(),i=this,n=0;n<i.length;n++){var a=i[n],o=t?e.apply(t,[a,n,i]):e(a,n,i);o&&r.push(a)}return r}return this.spawn()},"filter"),not:s(function(e){if(e){Mr(e)&&(e=this.filter(e));for(var t=this.spawn(),r=0;r<this.length;r++){var i=this[r],n=e.has(i);n||t.push(i)}return t}else return this},"not"),absoluteComplement:s(function(){var e=this.cy();return e.mutableElements().not(this)},"absoluteComplement"),intersect:s(function(e){if(Mr(e)){var t=e;return this.filter(t)}for(var r=this.spawn(),i=this,n=e,a=this.length<e.length,o=a?i:n,l=a?n:i,h=0;h<o.length;h++){var u=o[h];l.has(u)&&r.push(u)}return r},"intersect"),xor:s(function(e){var t=this._private.cy;Mr(e)&&(e=t.$(e));var r=this.spawn(),i=this,n=e,a=s(function(o,l){for(var h=0;h<o.length;h++){var u=o[h],d=u._private.data.id,p=l.hasElementWithId(d);p||r.push(u)}},"add");return a(i,n),a(n,i),r},"xor"),diff:s(function(e){var t=this._private.cy;Mr(e)&&(e=t.$(e));var r=this.spawn(),i=this.spawn(),n=this.spawn(),a=this,o=e,l=s(function(h,u,d){for(var p=0;p<h.length;p++){var g=h[p],m=g._private.data.id,y=u.hasElementWithId(m);y?n.merge(g):d.push(g)}},"add");return l(a,o,r),l(o,a,i),{left:r,right:i,both:n}},"diff"),add:s(function(e){var t=this._private.cy;if(!e)return this;if(Mr(e)){var r=e;e=t.mutableElements().filter(r)}for(var i=this.spawnSelf(),n=0;n<e.length;n++){var a=e[n],o=!this.has(a);o&&i.push(a)}return i},"add"),merge:s(function(e){var t=this._private,r=t.cy;if(!e)return this;if(e&&Mr(e)){var i=e;e=r.mutableElements().filter(i)}for(var n=t.map,a=0;a<e.length;a++){var o=e[a],l=o._private.data.id,h=!n.has(l);if(h){var u=this.length++;this[u]=o,n.set(l,{ele:o,index:u})}}return this},"merge"),unmergeAt:s(function(e){var t=this[e],r=t.id(),i=this._private,n=i.map;this[e]=void 0,n.delete(r);var a=e===this.length-1;if(this.length>1&&!a){var o=this.length-1,l=this[o],h=l._private.data.id;this[o]=void 0,this[e]=l,n.set(h,{ele:l,index:e})}return this.length--,this},"unmergeAt"),unmergeOne:s(function(e){e=e[0];var t=this._private,r=e._private.data.id,i=t.map,n=i.get(r);if(!n)return this;var a=n.index;return this.unmergeAt(a),this},"unmergeOne"),unmerge:s(function(e){var t=this._private.cy;if(!e)return this;if(e&&Mr(e)){var r=e;e=t.mutableElements().filter(r)}for(var i=0;i<e.length;i++)this.unmergeOne(e[i]);return this},"unmerge"),unmergeBy:s(function(e){for(var t=this.length-1;t>=0;t--){var r=this[t];e(r)&&this.unmergeAt(t)}return this},"unmergeBy"),map:s(function(e,t){for(var r=[],i=this,n=0;n<i.length;n++){var a=i[n],o=t?e.apply(t,[a,n,i]):e(a,n,i);r.push(o)}return r},"map"),reduce:s(function(e,t){for(var r=t,i=this,n=0;n<i.length;n++)r=e(r,i[n],n,i);return r},"reduce"),max:s(function(e,t){for(var r=-1/0,i,n=this,a=0;a<n.length;a++){var o=n[a],l=t?e.apply(t,[o,a,n]):e(o,a,n);l>r&&(r=l,i=o)}return{value:r,ele:i}},"max"),min:s(function(e,t){for(var r=1/0,i,n=this,a=0;a<n.length;a++){var o=n[a],l=t?e.apply(t,[o,a,n]):e(o,a,n);l<r&&(r=l,i=o)}return{value:r,ele:i}},"min")},qi=UV,qi.u=qi["|"]=qi["+"]=qi.union=qi.or=qi.add,qi["\\"]=qi["!"]=qi["-"]=qi.difference=qi.relativeComplement=qi.subtract=qi.not,qi.n=qi["&"]=qi["."]=qi.and=qi.intersection=qi.intersect,qi["^"]=qi["(+)"]=qi["(-)"]=qi.symmetricDifference=qi.symdiff=qi.xor,qi.fnFilter=qi.filterFn=qi.stdFilter=qi.filter,qi.complement=qi.abscomp=qi.absoluteComplement,rze={isNode:s(function(){return this.group()==="nodes"},"isNode"),isEdge:s(function(){return this.group()==="edges"},"isEdge"),isLoop:s(function(){return this.isEdge()&&this.source()[0]===this.target()[0]},"isLoop"),isSimple:s(function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},"isSimple"),group:s(function(){var e=this[0];if(e)return e._private.group},"group")},VV=s(function(e,t){var r=e.cy(),i=r.hasCompoundNodes();function n(u){var d=u.pstyle("z-compound-depth");return d.value==="auto"?i?u.zDepth():0:d.value==="bottom"?-1:d.value==="top"?l7:0}f(n,"a"),s(n,"getDepth");var a=n(e)-n(t);if(a!==0)return a;function o(u){var d=u.pstyle("z-index-compare");return d.value==="auto"&&u.isNode()?1:0}f(o,"l"),s(o,"getEleDepth");var l=o(e)-o(t);if(l!==0)return l;var h=e.pstyle("z-index").value-t.pstyle("z-index").value;return h!==0?h:e.poolIndex()-t.poolIndex()},"zIndexSort"),sk={forEach:s(function(e,t){if(Zn(e))for(var r=this.length,i=0;i<r;i++){var n=this[i],a=t?e.apply(t,[n,i,this]):e(n,i,this);if(a===!1)break}return this},"forEach"),toArray:s(function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t]);return e},"toArray"),slice:s(function(e,t){var r=[],i=this.length;t==null&&(t=i),e==null&&(e=0),e<0&&(e=i+e),t<0&&(t=i+t);for(var n=e;n>=0&&n<t&&n<i;n++)r.push(this[n]);return this.spawn(r)},"slice"),size:s(function(){return this.length},"size"),eq:s(function(e){return this[e]||this.spawn()},"eq"),first:s(function(){return this[0]||this.spawn()},"first"),last:s(function(){return this[this.length-1]||this.spawn()},"last"),empty:s(function(){return this.length===0},"empty"),nonempty:s(function(){return!this.empty()},"nonempty"),sort:s(function(e){if(!Zn(e))return this;var t=this.toArray().sort(e);return this.spawn(t)},"sort"),sortByZIndex:s(function(){return this.sort(VV)},"sortByZIndex"),zDepth:s(function(){var e=this[0];if(e){var t=e._private,r=t.group;if(r==="nodes"){var i=t.data.parent?e.parents().size():0;return e.isParent()?i:l7-1}else{var n=t.source,a=t.target,o=n.zDepth(),l=a.zDepth();return Math.max(o,l,0)}}},"zDepth")},sk.each=sk.forEach,ize=s(function(){var e="undefined",t=(typeof Symbol>"u"?"undefined":Ba(Symbol))!=e&&Ba(Symbol.iterator)!=e;t&&(sk[Symbol.iterator]=function(){var r=this,i={value:void 0,done:!1},n=0,a=this.length;return Cj({next:s(function(){return n<a?i.value=r[n++]:(i.value=void 0,i.done=!0),i},"next")},Symbol.iterator,function(){return this})})},"defineSymbolIterator"),ize(),nze=as({nodeDimensionsIncludeLabels:!1}),ok={layoutDimensions:s(function(e){e=nze(e);var t;if(!this.takesUpSpace())t={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var r=this.boundingBox();t={w:r.w,h:r.h}}else t={w:this.outerWidth(),h:this.outerHeight()};return(t.w===0||t.h===0)&&(t.w=t.h=1),t},"layoutDimensions"),layoutPositions:s(function(e,t,r){var i=this.nodes().filter(function(R){return!R.isParent()}),n=this.cy(),a=t.eles,o=s(function(R){return R.id()},"getMemoizeKey"),l=df(r,o);e.emit({type:"layoutstart",layout:e}),e.animations=[];var h=s(function(R,b,v){var k={x:b.x1+b.w/2,y:b.y1+b.h/2},E={x:(v.x-k.x)*R,y:(v.y-k.y)*R};return{x:k.x+E.x,y:k.y+E.y}},"calculateSpacing"),u=t.spacingFactor&&t.spacingFactor!==1,d=s(function(){if(!u)return null;for(var R=js(),b=0;b<i.length;b++){var v=i[b],k=l(v,b);KG(R,k.x,k.y)}return R},"spacingBb"),p=d(),g=df(function(R,b){var v=l(R,b);if(u){var k=Math.abs(t.spacingFactor);v=h(k,p,v)}return t.transform!=null&&(v=t.transform(R,v)),v},o);if(t.animate){for(var m=0;m<i.length;m++){var y=i[m],x=g(y,m),C=t.animateFilter==null||t.animateFilter(y,m);if(C){var w=y.animation({position:x,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(w)}else y.position(x)}if(t.fit){var _=n.animation({fit:{boundingBox:a.boundingBoxAt(g),padding:t.padding},duration:t.animationDuration,easing:t.animationEasing});e.animations.push(_)}else if(t.zoom!==void 0&&t.pan!==void 0){var S=n.animation({zoom:t.zoom,pan:t.pan,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(S)}e.animations.forEach(function(R){return R.play()}),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),kf.all(e.animations.map(function(R){return R.promise()})).then(function(){e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e})})}else i.positions(g),t.fit&&n.fit(t.eles,t.padding),t.zoom!=null&&n.zoom(t.zoom),t.pan&&n.pan(t.pan),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e});return this},"layoutPositions"),layout:s(function(e){var t=this.cy();return t.makeLayout(qr({},e,{eles:this}))},"layout")},ok.createLayout=ok.makeLayout=ok.layout,s(Mj,"styleCache"),s(D3,"cacheStyleFunction"),s(N3,"cachePrototypeStyleFunction"),ss={recalculateRenderedStyle:s(function(e){var t=this.cy(),r=t.renderer(),i=t.styleEnabled();return r&&i&&r.recalculateRenderedStyle(this,e),this},"recalculateRenderedStyle"),dirtyStyleCache:s(function(){var e=this.cy(),t=s(function(i){return i._private.styleCache=null},"dirty");if(e.hasCompoundNodes()){var r;r=this.spawnSelf().merge(this.descendants()).merge(this.parents()),r.merge(r.connectedEdges()),r.forEach(t)}else this.forEach(function(i){t(i),i.connectedEdges().forEach(t)});return this},"dirtyStyleCache"),updateStyle:s(function(e){var t=this._private.cy;if(!t.styleEnabled())return this;if(t.batching()){var r=t._private.batchStyleEles;return r.merge(this),this}var i=t.hasCompoundNodes(),n=this;e=!!(e||e===void 0),i&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var a=n;return e?a.emitAndNotify("style"):a.emit("style"),n.forEach(function(o){return o._private.styleDirty=!0}),this},"updateStyle"),cleanStyle:s(function(){var e=this.cy();if(e.styleEnabled())for(var t=0;t<this.length;t++){var r=this[t];r._private.styleDirty&&(r._private.styleDirty=!1,e.style().apply(r))}},"cleanStyle"),parsedStyle:s(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this[0],i=r.cy();if(i.styleEnabled()&&r){r._private.styleDirty&&(r._private.styleDirty=!1,i.style().apply(r));var n=r._private.style[e];return n!=null?n:t?i.style().getDefaultProperty(e):null}},"parsedStyle"),numericStyle:s(function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var r=t.pstyle(e);return r.pfValue!==void 0?r.pfValue:r.value}},"numericStyle"),numericStyleUnits:s(function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},"numericStyleUnits"),renderedStyle:s(function(e){var t=this.cy();if(!t.styleEnabled())return this;var r=this[0];if(r)return t.style().getRenderedStyle(r,e)},"renderedStyle"),style:s(function(e,t){var r=this.cy();if(!r.styleEnabled())return this;var i=!1,n=r.style();if(Mi(e)){var a=e;n.applyBypass(this,a,i),this.emitAndNotify("style")}else if(Mr(e))if(t===void 0){var o=this[0];return o?n.getStylePropertyValue(o,e):void 0}else n.applyBypass(this,e,t,i),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?n.getRawStyle(l):void 0}return this},"style"),removeStyle:s(function(e){var t=this.cy();if(!t.styleEnabled())return this;var r=!1,i=t.style(),n=this;if(e===void 0)for(var a=0;a<n.length;a++){var o=n[a];i.removeAllBypasses(o,r)}else{e=e.split(/\s+/);for(var l=0;l<n.length;l++){var h=n[l];i.removeBypasses(h,e,r)}}return this.emitAndNotify("style"),this},"removeStyle"),show:s(function(){return this.css("display","element"),this},"show"),hide:s(function(){return this.css("display","none"),this},"hide"),effectiveOpacity:s(function(){var e=this.cy();if(!e.styleEnabled())return 1;var t=e.hasCompoundNodes(),r=this[0];if(r){var i=r._private,n=r.pstyle("opacity").value;if(!t)return n;var a=i.data.parent?r.parents():null;if(a)for(var o=0;o<a.length;o++){var l=a[o],h=l.pstyle("opacity").value;n=h*n}return n}},"effectiveOpacity"),transparent:s(function(){var e=this.cy();if(!e.styleEnabled())return!1;var t=this[0],r=t.cy().hasCompoundNodes();if(t)return r?t.effectiveOpacity()===0:t.pstyle("opacity").value===0},"transparent"),backgrounding:s(function(){var e=this.cy();if(!e.styleEnabled())return!1;var t=this[0];return!!t._private.backgrounding},"backgrounding")},s(Z_,"checkCompound"),s(Q_,"defineDerivedStateFunction"),Cf=D3("eleTakesUpSpace",function(e){return e.pstyle("display").value==="element"&&e.width()!==0&&(e.isNode()?e.height()!==0:!0)}),ss.takesUpSpace=N3("takesUpSpace",Q_({ok:Cf})),aze=D3("eleInteractive",function(e){return e.pstyle("events").value==="yes"&&e.pstyle("visibility").value==="visible"&&Cf(e)}),sze=D3("parentInteractive",function(e){return e.pstyle("visibility").value==="visible"&&Cf(e)}),ss.interactive=N3("interactive",Q_({ok:aze,parentOk:sze,edgeOkViaNode:Cf})),ss.noninteractive=function(){var e=this[0];if(e)return!e.interactive()},oze=D3("eleVisible",function(e){return e.pstyle("visibility").value==="visible"&&e.pstyle("opacity").pfValue!==0&&Cf(e)}),lze=Cf,ss.visible=N3("visible",Q_({ok:oze,edgeOkViaNode:lze})),ss.hidden=function(){var e=this[0];if(e)return!e.visible()},ss.isBundledBezier=N3("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),ss.bypass=ss.css=ss.style,ss.renderedCss=ss.renderedStyle,ss.removeBypass=ss.removeCss=ss.removeStyle,ss.pstyle=ss.parsedStyle,vd={},s(Oj,"defineSwitchFunction"),s(cf,"defineSwitchSet"),cf({field:"locked",overrideField:s(function(e){return e.cy().autolock()?!0:void 0},"overrideField"),on:"lock",off:"unlock"}),cf({field:"grabbable",overrideField:s(function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},"overrideField"),on:"grabify",off:"ungrabify"}),cf({field:"selected",ableField:"selectable",overrideAble:s(function(e){return e.cy().autounselectify()?!1:void 0},"overrideAble"),on:"select",off:"unselect"}),cf({field:"selectable",overrideField:s(function(e){return e.cy().autounselectify()?!1:void 0},"overrideField"),on:"selectify",off:"unselectify"}),vd.deselect=vd.unselect,vd.grabbed=function(){var e=this[0];if(e)return e._private.grabbed},cf({field:"active",on:"activate",off:"unactivate"}),cf({field:"pannable",on:"panify",off:"unpanify"}),vd.inactive=function(){var e=this[0];if(e)return!e._private.active},Cs={},WV=s(function(e){return s(function(t){for(var r=this,i=[],n=0;n<r.length;n++){var a=r[n];if(a.isNode()){for(var o=!1,l=a.connectedEdges(),h=0;h<l.length;h++){var u=l[h],d=u.source(),p=u.target();if(e.noIncomingEdges&&p===a&&d!==a||e.noOutgoingEdges&&d===a&&p!==a){o=!0;break}}o||i.push(a)}}return this.spawn(i,!0).filter(t)},"dagExtremityImpl")},"defineDagExtremity"),HV=s(function(e){return function(t){for(var r=this,i=[],n=0;n<r.length;n++){var a=r[n];if(a.isNode())for(var o=a.connectedEdges(),l=0;l<o.length;l++){var h=o[l],u=h.source(),d=h.target();e.outgoing&&u===a?(i.push(h),i.push(d)):e.incoming&&d===a&&(i.push(h),i.push(u))}}return this.spawn(i,!0).filter(t)}},"defineDagOneHop"),YV=s(function(e){return function(t){for(var r=this,i=[],n={};;){var a=e.outgoing?r.outgoers():r.incomers();if(a.length===0)break;for(var o=!1,l=0;l<a.length;l++){var h=a[l],u=h.id();n[u]||(n[u]=!0,i.push(h),o=!0)}if(!o)break;r=a}return this.spawn(i,!0).filter(t)}},"defineDagAllHops"),Cs.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null},qr(Cs,{roots:WV({noIncomingEdges:!0}),leaves:WV({noOutgoingEdges:!0}),outgoers:sl(HV({outgoing:!0}),"outgoers"),successors:YV({outgoing:!0}),incomers:sl(HV({incoming:!0}),"incomers"),predecessors:YV({})}),qr(Cs,{neighborhood:sl(function(e){for(var t=[],r=this.nodes(),i=0;i<r.length;i++)for(var n=r[i],a=n.connectedEdges(),o=0;o<a.length;o++){var l=a[o],h=l.source(),u=l.target(),d=n===h?u:h;d.length>0&&t.push(d[0]),t.push(l[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:s(function(e){return this.neighborhood().add(this).filter(e)},"closedNeighborhood"),openNeighborhood:s(function(e){return this.neighborhood(e)},"openNeighborhood")}),Cs.neighbourhood=Cs.neighborhood,Cs.closedNeighbourhood=Cs.closedNeighborhood,Cs.openNeighbourhood=Cs.openNeighborhood,qr(Cs,{source:sl(s(function(e){var t=this[0],r;return t&&(r=t._private.source||t.cy().collection()),r&&e?r.filter(e):r},"sourceImpl"),"source"),target:sl(s(function(e){var t=this[0],r;return t&&(r=t._private.target||t.cy().collection()),r&&e?r.filter(e):r},"targetImpl"),"target"),sources:$j({attr:"source"}),targets:$j({attr:"target"})}),s($j,"defineSourceFunction"),qr(Cs,{edgesWith:sl(Bj(),"edgesWith"),edgesTo:sl(Bj({thisIsSrc:!0}),"edgesTo")}),s(Bj,"defineEdgesWithFunction"),qr(Cs,{connectedEdges:sl(function(e){for(var t=[],r=this,i=0;i<r.length;i++){var n=r[i];if(n.isNode())for(var a=n._private.edges,o=0;o<a.length;o++){var l=a[o];t.push(l)}}return this.spawn(t,!0).filter(e)},"connectedEdges"),connectedNodes:sl(function(e){for(var t=[],r=this,i=0;i<r.length;i++){var n=r[i];n.isEdge()&&(t.push(n.source()[0]),t.push(n.target()[0]))}return this.spawn(t,!0).filter(e)},"connectedNodes"),parallelEdges:sl(Pj(),"parallelEdges"),codirectedEdges:sl(Pj({codirected:!0}),"codirectedEdges")}),s(Pj,"defineParallelEdgesFunction"),qr(Cs,{components:s(function(e){var t=this,r=t.cy(),i=r.collection(),n=e==null?t.nodes():e.nodes(),a=[];e!=null&&n.empty()&&(n=e.sources());var o=s(function(h,u){i.merge(h),n.unmerge(h),u.merge(h)},"visitInComponent");if(n.empty())return t.spawn();var l=s(function(){var h=r.collection();a.push(h);var u=n[0];o(u,h),t.bfs({directed:!1,roots:u,visit:s(function(d){return o(d,h)},"visit")}),h.forEach(function(d){d.connectedEdges().forEach(function(p){t.has(p)&&h.has(p.source())&&h.has(p.target())&&h.merge(p)})})},"_loop");do l();while(n.length>0);return a},"components"),component:s(function(){var e=this[0];return e.cy().mutableElements().components(e)[0]},"component")}),Cs.componentsOf=Cs.components,os=s(function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Gn("A collection must have a reference to the core");return}var n=new Bh,a=!1;if(!t)t=[];else if(t.length>0&&Mi(t[0])&&!Yy(t[0])){a=!0;for(var o=[],l=new gf,h=0,u=t.length;h<u;h++){var d=t[h];d.data==null&&(d.data={});var p=d.data;if(p.id==null)p.id=VG();else if(e.hasElementWithId(p.id)||l.has(p.id))continue;var g=new j3(e,d,!1);o.push(g),l.add(p.id)}t=o}this.length=0;for(var m=0,y=t.length;m<y;m++){var x=t[m][0];if(x!=null){var C=x._private.data.id;(!r||!n.has(C))&&(r&&n.set(C,{index:this.length,ele:x}),this[this.length]=x,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(w){this.lazyMap=w},rebuildMap:s(function(){for(var w=this.lazyMap=new Bh,_=this.eles,S=0;S<_.length;S++){var R=_[S];w.set(R.id(),{index:S,ele:R})}},"rebuildMap")},r&&(this._private.map=n),a&&!i&&this.restore()},"Collection"),pn=j3.prototype=os.prototype=Object.create(Array.prototype),pn.instanceString=function(){return"collection"},pn.spawn=function(e,t){return new os(this.cy(),e,t)},pn.spawnSelf=function(){return this.spawn(this)},pn.cy=function(){return this._private.cy},pn.renderer=function(){return this._private.cy.renderer()},pn.element=function(){return this[0]},pn.collection=function(){return gG(this)?this:new os(this._private.cy,[this])},pn.unique=function(){return new os(this._private.cy,this,!0)},pn.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)},pn.getElementById=function(e){e=""+e;var t=this._private.cy,r=this._private.map.get(e);return r?r.ele:new os(t)},pn.$id=pn.getElementById,pn.poolIndex=function(){var e=this._private.cy,t=e._private.elements,r=this[0]._private.data.id;return t._private.map.get(r).index},pn.indexOf=function(e){var t=e[0]._private.data.id;return this._private.map.get(t).index},pn.indexOfId=function(e){return e=""+e,this._private.map.get(e).index},pn.json=function(e){var t=this.element(),r=this.cy();if(t==null&&e)return this;if(t!=null){var i=t._private;if(Mi(e)){if(r.startBatch(),e.data){t.data(e.data);var n=i.data;if(t.isEdge()){var a=!1,o={},l=e.data.source,h=e.data.target;l!=null&&l!=n.source&&(o.source=""+l,a=!0),h!=null&&h!=n.target&&(o.target=""+h,a=!0),a&&(t=t.move(o))}else{var u="parent"in e.data,d=e.data.parent;u&&(d!=null||n.parent!=null)&&d!=n.parent&&(d===void 0&&(d=null),d!=null&&(d=""+d),t=t.move({parent:d}))}}e.position&&t.position(e.position);var p=s(function(y,x,C){var w=e[y];w!=null&&w!==i[y]&&(w?t[x]():t[C]())},"checkSwitch");return p("removed","remove","restore"),p("selected","select","unselect"),p("selectable","selectify","unselectify"),p("locked","lock","unlock"),p("grabbable","grabify","ungrabify"),p("pannable","panify","unpanify"),e.classes!=null&&t.classes(e.classes),r.endBatch(),this}else if(e===void 0){var g={data:Lc(i.data),position:Lc(i.position),group:i.group,removed:i.removed,selected:i.selected,selectable:i.selectable,locked:i.locked,grabbable:i.grabbable,pannable:i.pannable,classes:null};g.classes="";var m=0;return i.classes.forEach(function(y){return g.classes+=m++===0?y:" "+y}),g}}},pn.jsons=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t],i=r.json();e.push(i)}return e},pn.clone=function(){for(var e=this.cy(),t=[],r=0;r<this.length;r++){var i=this[r],n=i.json(),a=new j3(e,n,!1);t.push(a)}return new os(e,t)},pn.copy=pn.clone,pn.restore=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,i=r.cy(),n=i._private,a=[],o=[],l,h=0,u=r.length;h<u;h++){var d=r[h];t&&!d.removed()||(d.isNode()?a.push(d):o.push(d))}l=a.concat(o);var p,g=s(function(){l.splice(p,1),p--},"removeFromElements");for(p=0;p<l.length;p++){var m=l[p],y=m._private,x=y.data;if(m.clearTraversalCache(),!(!t&&!y.removed)){if(x.id===void 0)x.id=VG();else if(ir(x.id))x.id=""+x.id;else if(ad(x.id)||!Mr(x.id)){Gn("Can not create element with invalid string ID `"+x.id+"`"),g();continue}else if(i.hasElementWithId(x.id)){Gn("Can not create second element with ID `"+x.id+"`"),g();continue}}var C=x.id;if(m.isNode()){var w=y.position;w.x==null&&(w.x=0),w.y==null&&(w.y=0)}if(m.isEdge()){for(var _=m,S=["source","target"],R=S.length,b=!1,v=0;v<R;v++){var k=S[v],E=x[k];ir(E)&&(E=x[k]=""+x[k]),E==null||E===""?(Gn("Can not create edge `"+C+"` with unspecified "+k),b=!0):i.hasElementWithId(E)||(Gn("Can not create edge `"+C+"` with nonexistant "+k+" `"+E+"`"),b=!0)}if(b){g();continue}var A=i.getElementById(x.source),I=i.getElementById(x.target);A.same(I)?A._private.edges.push(_):(A._private.edges.push(_),I._private.edges.push(_)),_._private.source=A,_._private.target=I}y.map=new Bh,y.map.set(C,{ele:m,index:0}),y.removed=!1,t&&i.addToPool(m)}for(var $=0;$<a.length;$++){var O=a[$],j=O._private.data;ir(j.parent)&&(j.parent=""+j.parent);var D=j.parent,P=D!=null;if(P||O._private.parent){var F=O._private.parent?i.collection().merge(O._private.parent):i.getElementById(D);if(F.empty())j.parent=void 0;else if(F[0].removed())Yi("Node added with missing parent, reference to parent removed"),j.parent=void 0,O._private.parent=null;else{for(var U=!1,z=F;!z.empty();){if(O.same(z)){U=!0,j.parent=void 0;break}z=z.parent()}U||(F[0]._private.children.push(O),O._private.parent=F[0],n.hasCompoundNodes=!0)}}}if(l.length>0){for(var V=l.length===r.length?r:new os(i,l),W=0;W<V.length;W++){var X=V[W];X.isNode()||(X.parallelEdges().clearTraversalCache(),X.source().clearTraversalCache(),X.target().clearTraversalCache())}var J;n.hasCompoundNodes?J=i.collection().merge(V).merge(V.connectedNodes()).merge(V.parent()):J=V,J.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(e),e?V.emitAndNotify("add"):t&&V.emit("add")}return r},pn.removed=function(){var e=this[0];return e&&e._private.removed},pn.inside=function(){var e=this[0];return e&&!e._private.removed},pn.remove=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,i=[],n={},a=r._private.cy;function o(D){for(var P=D._private.edges,F=0;F<P.length;F++)h(P[F])}f(o,"s"),s(o,"addConnectedEdges");function l(D){for(var P=D._private.children,F=0;F<P.length;F++)h(P[F])}f(l,"l"),s(l,"addChildren");function h(D){var P=n[D.id()];t&&D.removed()||P||(n[D.id()]=!0,D.isNode()?(i.push(D),o(D),l(D)):i.unshift(D))}f(h,"u"),s(h,"add");for(var u=0,d=r.length;u<d;u++){var p=r[u];h(p)}function g(D,P){var F=D._private.edges;ld(F,P),D.clearTraversalCache()}f(g,"p"),s(g,"removeEdgeRef");function m(D){D.clearTraversalCache()}f(m,"m"),s(m,"removeParallelRef");var y=[];y.ids={};function x(D,P){P=P[0],D=D[0];var F=D._private.children,U=D.id();ld(F,P),P._private.parent=null,y.ids[U]||(y.ids[U]=!0,y.push(D))}f(x,"y"),s(x,"removeChildRef"),r.dirtyCompoundBoundsCache(),t&&a.removeFromPool(i);for(var C=0;C<i.length;C++){var w=i[C];if(w.isEdge()){var _=w.source()[0],S=w.target()[0];g(_,w),g(S,w);for(var R=w.parallelEdges(),b=0;b<R.length;b++){var v=R[b];m(v),v.isBundledBezier()&&v.dirtyBoundingBoxCache()}}else{var k=w.parent();k.length!==0&&x(k,w)}t&&(w._private.removed=!0)}var E=a._private.elements;a._private.hasCompoundNodes=!1;for(var A=0;A<E.length;A++){var I=E[A];if(I.isParent()){a._private.hasCompoundNodes=!0;break}}var $=new os(this.cy(),i);$.size()>0&&(e?$.emitAndNotify("remove"):t&&$.emit("remove"));for(var O=0;O<y.length;O++){var j=y[O];(!t||!j.removed())&&j.updateStyle()}return $},pn.move=function(e){var t=this._private.cy,r=this,i=!1,n=!1,a=s(function(m){return m==null?m:""+m},"toString");if(e.source!==void 0||e.target!==void 0){var o=a(e.source),l=a(e.target),h=o!=null&&t.hasElementWithId(o),u=l!=null&&t.hasElementWithId(l);(h||u)&&(t.batch(function(){r.remove(i,n),r.emitAndNotify("moveout");for(var m=0;m<r.length;m++){var y=r[m],x=y._private.data;y.isEdge()&&(h&&(x.source=o),u&&(x.target=l))}r.restore(i,n)}),r.emitAndNotify("move"))}else if(e.parent!==void 0){var d=a(e.parent),p=d===null||t.hasElementWithId(d);if(p){var g=d===null?void 0:d;t.batch(function(){var m=r.remove(i,n);m.emitAndNotify("moveout");for(var y=0;y<r.length;y++){var x=r[y],C=x._private.data;x.isNode()&&(C.parent=g)}m.restore(i,n)}),r.emitAndNotify("move")}}return this},[bU,vFe,J3,fd,wf,MFe,tk,ZFe,GV,UV,rze,sk,ok,ss,vd,Cs].forEach(function(e){qr(pn,e)}),cze={add:s(function(e){var t,r=this;if(Oo(e)){var i=e;if(i._private.cy===r)t=i.restore();else{for(var n=[],a=0;a<i.length;a++){var o=i[a];n.push(o.json())}t=new os(r,n)}}else if(cn(e)){var l=e;t=new os(r,l)}else if(Mi(e)&&(cn(e.nodes)||cn(e.edges))){for(var h=e,u=[],d=["nodes","edges"],p=0,g=d.length;p<g;p++){var m=d[p],y=h[m];if(cn(y))for(var x=0,C=y.length;x<C;x++){var w=qr({group:m},y[x]);u.push(w)}}t=new os(r,u)}else{var _=e;t=new j3(r,_).collection()}return t},"add"),remove:s(function(e){if(!Oo(e)&&Mr(e)){var t=e;e=this.$(t)}return e.remove()},"remove")},s(nOe,"generateCubicBezier"),hze=(function(){function e(i){return-i.tension*i.x-i.friction*i.v}f(e,"e"),s(e,"springAccelerationForState");function t(i,n,a){var o={x:i.x+a.dx*n,v:i.v+a.dv*n,tension:i.tension,friction:i.friction};return{dx:o.v,dv:e(o)}}f(t,"t"),s(t,"springEvaluateStateWithDerivative");function r(i,n){var a={dx:i.v,dv:e(i)},o=t(i,n*.5,a),l=t(i,n*.5,o),h=t(i,n,l),u=1/6*(a.dx+2*(o.dx+l.dx)+h.dx),d=1/6*(a.dv+2*(o.dv+l.dv)+h.dv);return i.x=i.x+u*n,i.v=i.v+d*n,i}return f(r,"r"),s(r,"springIntegrateState"),s(f(function i(n,a,o){var l={x:-1,v:0,tension:null,friction:null},h=[0],u=0,d=1/1e4,p=16/1e3,g,m,y;for(n=parseFloat(n)||500,a=parseFloat(a)||20,o=o||null,l.tension=n,l.friction=a,g=o!==null,g?(u=i(n,a),m=u/o*p):m=p;y=r(y||l,m),h.push(1+y.x),u+=16,Math.abs(y.x)>d&&Math.abs(y.v)>d;);return g?function(x){return h[x*(h.length-1)|0]}:u},"i"),"springRK4Factory")})(),gn=s(function(e,t,r,i){var n=nOe(e,t,r,i);return function(a,o,l){return a+(o-a)*n(l)}},"cubicBezier"),lk={linear:s(function(e,t,r){return e+(t-e)*r},"linear"),ease:gn(.25,.1,.25,1),"ease-in":gn(.42,0,1,1),"ease-out":gn(0,0,.58,1),"ease-in-out":gn(.42,0,.58,1),"ease-in-sine":gn(.47,0,.745,.715),"ease-out-sine":gn(.39,.575,.565,1),"ease-in-out-sine":gn(.445,.05,.55,.95),"ease-in-quad":gn(.55,.085,.68,.53),"ease-out-quad":gn(.25,.46,.45,.94),"ease-in-out-quad":gn(.455,.03,.515,.955),"ease-in-cubic":gn(.55,.055,.675,.19),"ease-out-cubic":gn(.215,.61,.355,1),"ease-in-out-cubic":gn(.645,.045,.355,1),"ease-in-quart":gn(.895,.03,.685,.22),"ease-out-quart":gn(.165,.84,.44,1),"ease-in-out-quart":gn(.77,0,.175,1),"ease-in-quint":gn(.755,.05,.855,.06),"ease-out-quint":gn(.23,1,.32,1),"ease-in-out-quint":gn(.86,0,.07,1),"ease-in-expo":gn(.95,.05,.795,.035),"ease-out-expo":gn(.19,1,.22,1),"ease-in-out-expo":gn(1,0,0,1),"ease-in-circ":gn(.6,.04,.98,.335),"ease-out-circ":gn(.075,.82,.165,1),"ease-in-out-circ":gn(.785,.135,.15,.86),spring:s(function(e,t,r){if(r===0)return lk.linear;var i=hze(e,t,r);return function(n,a,o){return n+(a-n)*i(o)}},"spring"),"cubic-bezier":gn},s(Fj,"getEasedValue"),s(zj,"getValue"),s(hf,"ease"),s(aOe,"step$1"),s(Wy,"valid"),s(sOe,"startAnimation"),s(qj,"stepAll"),uze={animate:Xi.animate(),animation:Xi.animation(),animated:Xi.animated(),clearQueue:Xi.clearQueue(),delay:Xi.delay(),delayAnimation:Xi.delayAnimation(),stop:Xi.stop(),addToAnimationPool:s(function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},"addToAnimationPool"),stopAnimationLoop:s(function(){this._private.animationsRunning=!1},"stopAnimationLoop"),startAnimationLoop:s(function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&F3(s(function(i){qj(i,e),t()},"animationStep"))}f(t,"r"),s(t,"headlessStep");var r=e.renderer();r&&r.beforeRender?r.beforeRender(s(function(i,n){qj(n,e)},"rendererAnimationStep"),r.beforeRenderPriorities.animations):t()},"startAnimationLoop")},dze={qualifierCompare:s(function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},"qualifierCompare"),eventMatches:s(function(e,t,r){var i=t.qualifier;return i!=null?e!==r.target&&Yy(r.target)&&i.matches(r.target):!0},"eventMatches"),addEventFields:s(function(e,t){t.cy=e,t.target=e},"addEventFields"),callbackContext:s(function(e,t,r){return t.qualifier!=null?r.target:e},"callbackContext")},ck=s(function(e){return Mr(e)?new pd(e):e},"argSelector"),XV={createEmitter:s(function(){var e=this._private;return e.emitter||(e.emitter=new I3(dze,this)),this},"createEmitter"),emitter:s(function(){return this._private.emitter},"emitter"),on:s(function(e,t,r){return this.emitter().on(e,ck(t),r),this},"on"),removeListener:s(function(e,t,r){return this.emitter().removeListener(e,ck(t),r),this},"removeListener"),removeAllListeners:s(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),one:s(function(e,t,r){return this.emitter().one(e,ck(t),r),this},"one"),once:s(function(e,t,r){return this.emitter().one(e,ck(t),r),this},"once"),emit:s(function(e,t){return this.emitter().emit(e,t),this},"emit"),emitAndNotify:s(function(e,t){return this.emit(e),this.notify(e,t),this},"emitAndNotify")},Xi.eventAliasesOn(XV),R7={png:s(function(e){var t=this._private.renderer;return e=e||{},t.png(e)},"png"),jpg:s(function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)},"jpg")},R7.jpeg=R7.jpg,hk={layout:s(function(e){var t=this;if(e==null){Gn("Layout options must be specified to make a layout");return}if(e.name==null){Gn("A `name` must be specified to make a layout");return}var r=e.name,i=t.extension("layout",r);if(i==null){Gn("No such layout `"+r+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var n;Mr(e.eles)?n=t.$(e.eles):n=e.eles!=null?e.eles:t.$();var a=new i(qr({},e,{cy:t,eles:n}));return a},"layout")},hk.createLayout=hk.makeLayout=hk.layout,pze={notify:s(function(e,t){var r=this._private;if(this.batching()){r.batchNotifications=r.batchNotifications||{};var i=r.batchNotifications[e]=r.batchNotifications[e]||this.collection();t!=null&&i.merge(t);return}if(r.notificationsEnabled){var n=this.renderer();this.destroyed()||!n||n.notify(e,t)}},"notify"),notifications:s(function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},"notifications"),noNotifications:s(function(e){this.notifications(!1),e(),this.notifications(!0)},"noNotifications"),batching:s(function(){return this._private.batchCount>0},"batching"),startBatch:s(function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},"startBatch"),endBatch:s(function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(r){var i=e.batchNotifications[r];i.empty()?t.notify(r):t.notify(r,i)})}return this},"endBatch"),batch:s(function(e){return this.startBatch(),e(),this.endBatch(),this},"batch"),batchData:s(function(e){var t=this;return this.batch(function(){for(var r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],a=e[n],o=t.getElementById(n);o.data(a)}})},"batchData")},gze=as({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),I7={renderTo:s(function(e,t,r,i){var n=this._private.renderer;return n.renderTo(e,t,r,i),this},"renderTo"),renderer:s(function(){return this._private.renderer},"renderer"),forceRender:s(function(){return this.notify("draw"),this},"forceRender"),resize:s(function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},"resize"),initRenderer:s(function(e){var t=this,r=t.extension("renderer",e.name);if(r==null){Gn("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&Yi("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var i=gze(e);i.cy=t,t._private.renderer=new r(i),this.notify("init")},"initRenderer"),destroyRenderer:s(function(){var e=this;e.notify("destroy");var t=e.container();if(t)for(t._cyreg=null;t.childNodes.length>0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(r){var i=r._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},"destroyRenderer"),onRender:s(function(e){return this.on("render",e)},"onRender"),offRender:s(function(e){return this.off("render",e)},"offRender")},I7.invalidateDimensions=I7.resize,uk={collection:s(function(e,t){return Mr(e)?this.$(e):Oo(e)?e.collection():cn(e)?(t||(t={}),new os(this,e,t.unique,t.removed)):new os(this)},"collection"),nodes:s(function(e){var t=this.$(function(r){return r.isNode()});return e?t.filter(e):t},"nodes"),edges:s(function(e){var t=this.$(function(r){return r.isEdge()});return e?t.filter(e):t},"edges"),$:s(function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},"$"),mutableElements:s(function(){return this._private.elements},"mutableElements")},uk.elements=uk.filter=uk.$,Qa={},o2="t",fze="f",Qa.apply=function(e){for(var t=this,r=t._private,i=r.cy,n=i.collection(),a=0;a<e.length;a++){var o=e[a],l=t.getContextMeta(o);if(!l.empty){var h=t.getContextStyle(l),u=t.applyContextStyle(l,h,o);o._private.appliedInitStyle?t.updateTransitions(o,u.diffProps):o._private.appliedInitStyle=!0;var d=t.updateStyleHints(o);d&&n.push(o)}}return n},Qa.getPropertiesDiff=function(e,t){var r=this,i=r._private.propDiffs=r._private.propDiffs||{},n=e+"-"+t,a=i[n];if(a)return a;for(var o=[],l={},h=0;h<r.length;h++){var u=r[h],d=e[h]===o2,p=t[h]===o2,g=d!==p,m=u.mappedProperties.length>0;if(g||p&&m){var y=void 0;g&&m||g?y=u.properties:m&&(y=u.mappedProperties);for(var x=0;x<y.length;x++){for(var C=y[x],w=C.name,_=!1,S=h+1;S<r.length;S++){var R=r[S],b=t[S]===o2;if(b&&(_=R.properties[C.name]!=null,_))break}!l[w]&&!_&&(l[w]=!0,o.push(w))}}}return i[n]=o,o},Qa.getContextMeta=function(e){for(var t=this,r="",i,n=e._private.styleCxtKey||"",a=0;a<t.length;a++){var o=t[a],l=o.selector&&o.selector.matches(e);l?r+=o2:r+=fze}return i=t.getPropertiesDiff(n,r),e._private.styleCxtKey=r,{key:r,diffPropNames:i,empty:i.length===0}},Qa.getContextStyle=function(e){var t=e.key,r=this,i=this._private.contextStyles=this._private.contextStyles||{};if(i[t])return i[t];for(var n={_private:{key:t}},a=0;a<r.length;a++){var o=r[a],l=t[a]===o2;if(l)for(var h=0;h<o.properties.length;h++){var u=o.properties[h];n[u.name]=u}}return i[t]=n,n},Qa.applyContextStyle=function(e,t,r){for(var i=this,n=e.diffPropNames,a={},o=i.types,l=0;l<n.length;l++){var h=n[l],u=t[h],d=r.pstyle(h);
vendor: 4,753 bytes, line 577
577if(!u)if(d)d.bypass?u={name:h,deleteBypassed:!0}:u={name:h,delete:!0};else continue;if(d!==u){if(u.mapped===o.fn&&d!=null&&d.mapping!=null&&d.mapping.value===u.value){var p=d.mapping,g=p.fnValue=u.value(r);if(g===p.prevFnValue)continue}var m=a[h]={prev:d};i.applyParsedProperty(r,u),m.next=r.pstyle(h),m.next&&m.next.bypass&&(m.next=m.next.bypassed)}}return{diffProps:a}},Qa.updateStyleHints=function(e){var t=e._private,r=this,i=r.propertyGroupNames,n=r.propertyGroupKeys,a=s(function(ue,de,we){return r.getPropertiesHash(ue,de,we)},"propHash"),o=t.styleKey;if(e.removed())return!1;var l=t.group==="nodes",h=e._private.style;i=Object.keys(h);for(var u=0;u<n.length;u++){var d=n[u];t.styleKeys[d]=[$p,pf]}for(var p=s(function(ue,de){return t.styleKeys[de][0]=Ky(ue,t.styleKeys[de][0])},"updateGrKey1"),g=s(function(ue,de){return t.styleKeys[de][1]=Zy(ue,t.styleKeys[de][1])},"updateGrKey2"),m=s(function(ue,de){p(ue,de),g(ue,de)},"updateGrKey"),y=s(function(ue,de){for(var we=0;we<ue.length;we++){var De=ue.charCodeAt(we);p(De,de),g(De,de)}},"updateGrKeyWStr"),x=2e9,C=s(function(ue){return-128<ue&&ue<128&&Math.floor(ue)!==ue?x-(ue*1024|0):ue},"cleanNum"),w=0;w<i.length;w++){var _=i[w],S=h[_];if(S!=null){var R=this.properties[_],b=R.type,v=R.groupKey,k=void 0;R.hashOverride!=null?k=R.hashOverride(e,S):S.pfValue!=null&&(k=S.pfValue);var E=R.enums==null?S.value:null,A=k!=null,I=E!=null,$=A||I,O=S.units;if(b.number&&$&&!b.multiple){var j=A?k:E;m(C(j),v),!A&&O!=null&&y(O,v)}else y(S.strValue,v)}}for(var D=[$p,pf],P=0;P<n.length;P++){var F=n[P],U=t.styleKeys[F];D[0]=Ky(U[0],D[0]),D[1]=Zy(U[1],D[1])}t.styleKey=E$e(D[0],D[1]);var z=t.styleKeys;t.labelDimsKey=od(z.labelDimensions);var V=a(e,["label"],z.labelDimensions);if(t.labelKey=od(V),t.labelStyleKey=od(z3(z.commonLabel,V)),!l){var W=a(e,["source-label"],z.labelDimensions);t.sourceLabelKey=od(W),t.sourceLabelStyleKey=od(z3(z.commonLabel,W));var X=a(e,["target-label"],z.labelDimensions);t.targetLabelKey=od(X),t.targetLabelStyleKey=od(z3(z.commonLabel,X))}if(l){var J=t.styleKeys,H=J.nodeBody,te=J.nodeBorder,ie=J.nodeOutline,oe=J.backgroundImage,he=J.compound,pe=J.pie,se=J.stripe,le=[H,te,ie,oe,he,pe,se].filter(function(ue){return ue!=null}).reduce(z3,[$p,pf]);t.nodeKey=od(le),t.hasPie=pe!=null&&pe[0]!==$p&&pe[1]!==pf,t.hasStripe=se!=null&&se[0]!==$p&&se[1]!==pf}return o!==t.styleKey},Qa.clearStyleHints=function(e){var t=e._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null,t.hasStripe=null},Qa.applyParsedProperty=function(e,t){var r=this,i=t,n=e._private.style,a,o=r.types,l=r.properties[i.name].type,h=i.bypass,u=n[i.name],d=u&&u.bypass,p=e._private,g="mapping",m=s(function(J){return J==null?null:J.pfValue!=null?J.pfValue:J.value},"getVal"),y=s(function(){var J=m(u),H=m(i);r.checkTriggers(e,i.name,J,H)},"checkTriggers");if(t.name==="curve-style"&&e.isEdge()&&(t.value!=="bezier"&&e.isLoop()||t.value==="haystack"&&(e.source().isParent()||e.target().isParent()))&&(i=t=this.parse(t.name,"bezier",h)),i.delete)return n[i.name]=void 0,y(),!0;if(i.deleteBypassed)return u?u.bypass?(u.bypassed=void 0,y(),!0):!1:(y(),!0);if(i.deleteBypass)return u?u.bypass?(n[i.name]=u.bypassed,y(),!0):!1:(y(),!0);var x=s(function(){Yi("Do not assign mappings to elements without corresponding data (i.e. ele `"+e.id()+"` has no mapping for property `"+i.name+"` with data field `"+i.field+"`); try a `["+i.field+"]` selector to limit scope to elements with `"+i.field+"` defined")},"printMappingErr");switch(i.mapped){case o.mapData:{for(var C=i.field.split("."),w=p.data,_=0;_<C.length&&w;_++){var S=C[_];w=w[S]}if(w==null)return x(),!1;var R;if(ir(w)){var b=i.fieldMax-i.fieldMin;b===0?R=0:R=(w-i.fieldMin)/b}else return Yi("Do not use continuous mappers without specifying numeric data (i.e. `"+i.field+": "+w+"` for `"+e.id()+"` is non-numeric)"),!1;if(R<0?R=0:R>1&&(R=1),l.color){var v=i.valueMin[0],k=i.valueMax[0],E=i.valueMin[1],A=i.valueMax[1],I=i.valueMin[2],$=i.valueMax[2],O=i.valueMin[3]==null?1:i.valueMin[3],j=i.valueMax[3]==null?1:i.valueMax[3],D=[Math.round(v+(k-v)*R),Math.round(E+(A-E)*R),Math.round(I+($-I)*R),Math.round(O+(j-O)*R)];a={bypass:i.bypass,name:i.name,value:D,strValue:"rgb("+D[0]+", "+D[1]+", "+D[2]+")"}}else if(l.number){var P=i.valueMin+(i.valueMax-i.valueMin)*R;a=this.parse(i.name,P,i.bypass,g)}else return!1;if(!a)return x(),!1;a.mapping=i,i=a;break}case o.data:{for(var F=i.field.split("."),U=p.data,z=0;z<F.length&&U;z++){var V=F[z];U=U[V]}if(U!=null&&(a=this.parse(i.name,U,i.bypass,g)),!a)return x(),!1;a.mapping=i,i=a;break}case o.fn:{var W=i.value,X=i.fnValue!=null?i.fnValue:W(e);
vendor: 2,504 bytes, line 577
577if(i.prevFnValue=X,X==null)return Yi("Custom function mappers may not return null (i.e. `"+i.name+"` for ele `"+e.id()+"` is null)"),!1;if(a=this.parse(i.name,X,i.bypass,g),!a)return Yi("Custom function mappers may not return invalid values for the property type (i.e. `"+i.name+"` for ele `"+e.id()+"` is invalid)"),!1;a.mapping=Lc(i),i=a;break}case void 0:break;default:return!1}return h?(d?i.bypassed=u.bypassed:i.bypassed=u,n[i.name]=i):d?u.bypassed=i:n[i.name]=i,y(),!0},Qa.cleanElements=function(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(this.clearStyleHints(i),i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),!t)i._private.style={};else for(var n=i._private.style,a=Object.keys(n),o=0;o<a.length;o++){var l=a[o],h=n[l];h!=null&&(h.bypass?h.bypassed=null:n[l]=null)}}},Qa.update=function(){var e=this._private.cy,t=e.mutableElements();t.updateStyle()},Qa.updateTransitions=function(e,t){var r=this,i=e._private,n=e.pstyle("transition-property").value,a=e.pstyle("transition-duration").pfValue,o=e.pstyle("transition-delay").pfValue;if(n.length>0&&a>0){for(var l={},h=!1,u=0;u<n.length;u++){var d=n[u],p=e.pstyle(d),g=t[d];if(g){var m=g.prev,y=m,x=g.next!=null?g.next:p,C=!1,w=void 0,_=1e-6;y&&(ir(y.pfValue)&&ir(x.pfValue)?(C=x.pfValue-y.pfValue,w=y.pfValue+_*C):ir(y.value)&&ir(x.value)?(C=x.value-y.value,w=y.value+_*C):cn(y.value)&&cn(x.value)&&(C=y.value[0]!==x.value[0]||y.value[1]!==x.value[1]||y.value[2]!==x.value[2],w=y.strValue),C&&(l[d]=x.strValue,this.applyBypass(e,d,w),h=!0))}}if(!h)return;i.transitioning=!0,new kf(function(S){o>0?e.delayAnimation(o).play().promise().then(S):S()}).then(function(){return e.animation({style:l,duration:a,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(e,n),e.emitAndNotify("style"),i.transitioning=!1})}else i.transitioning&&(this.removeBypasses(e,n),e.emitAndNotify("style"),i.transitioning=!1)},Qa.checkTrigger=function(e,t,r,i,n,a){var o=this.properties[t],l=n(o);e.removed()||l!=null&&l(r,i,e)&&a(o)},Qa.checkZOrderTrigger=function(e,t,r,i){var n=this;this.checkTrigger(e,t,r,i,function(a){return a.triggersZOrder},function(){n._private.cy.notify("zorder",e)})},Qa.checkBoundsTrigger=function(e,t,r,i){this.checkTrigger(e,t,r,i,function(n){return n.triggersBounds},function(n){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},Qa.checkConnectedEdgesBoundsTrigger=function(e,t,r,i){this.checkTrigger(e,t,r,i,function(n){return n.triggersBoundsOfConnectedEdges}
vendor: 5,202 bytes, line 577
577,function(n){e.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})},Qa.checkParallelEdgesBoundsTrigger=function(e,t,r,i){this.checkTrigger(e,t,r,i,function(n){return n.triggersBoundsOfParallelEdges},function(n){e.parallelEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})},Qa.checkTriggers=function(e,t,r,i){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,r,i),this.checkBoundsTrigger(e,t,r,i),this.checkConnectedEdgesBoundsTrigger(e,t,r,i),this.checkParallelEdgesBoundsTrigger(e,t,r,i)},l2={},l2.applyBypass=function(e,t,r,i){var n=this,a=[],o=!0;if(t==="*"||t==="**"){if(r!==void 0)for(var l=0;l<n.properties.length;l++){var h=n.properties[l],u=h.name,d=this.parse(u,r,!0);d&&a.push(d)}}else if(Mr(t)){var p=this.parse(t,r,!0);p&&a.push(p)}else if(Mi(t)){var g=t;i=r;for(var m=Object.keys(g),y=0;y<m.length;y++){var x=m[y],C=g[x];if(C===void 0&&(C=g[B3(x)]),C!==void 0){var w=this.parse(x,C,!0);w&&a.push(w)}}}else return!1;if(a.length===0)return!1;for(var _=!1,S=0;S<e.length;S++){for(var R=e[S],b={},v=void 0,k=0;k<a.length;k++){var E=a[k];if(i){var A=R.pstyle(E.name);v=b[E.name]={prev:A}}_=this.applyParsedProperty(R,Lc(E))||_,i&&(v.next=R.pstyle(E.name))}_&&this.updateStyleHints(R),i&&this.updateTransitions(R,b,o)}return _},l2.overrideBypass=function(e,t,r){t=s7(t);for(var i=0;i<e.length;i++){var n=e[i],a=n._private.style[t],o=this.properties[t].type,l=o.color,h=o.mutiple,u=a?a.pfValue!=null?a.pfValue:a.value:null;!a||!a.bypass?this.applyBypass(n,t,r):(a.value=r,a.pfValue!=null&&(a.pfValue=r),l?a.strValue="rgb("+r.join(",")+")":h?a.strValue=r.join(" "):a.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,t,u,r)}},l2.removeAllBypasses=function(e,t){return this.removeBypasses(e,this.propertyNames,t)},l2.removeBypasses=function(e,t,r){for(var i=!0,n=0;n<e.length;n++){for(var a=e[n],o={},l=0;l<t.length;l++){var h=t[l],u=this.properties[h],d=a.pstyle(u.name);if(!(!d||!d.bypass)){var p="",g=this.parse(h,p,!0),m=o[u.name]={prev:d};this.applyParsedProperty(a,g),m.next=a.pstyle(u.name)}}this.updateStyleHints(a),r&&this.updateTransitions(a,o,i)}},D7={},D7.getEmSizeInPixels=function(){var e=this.containerCss("font-size");return e!=null?parseFloat(e):1},D7.containerCss=function(e){var t=this._private.cy,r=t.container(),i=t.window();if(i&&r&&i.getComputedStyle)return i.getComputedStyle(r).getPropertyValue(e)},Ic={},Ic.getRenderedStyle=function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)},Ic.getRawStyle=function(e,t){var r=this;if(e=e[0],e){for(var i={},n=0;n<r.properties.length;n++){var a=r.properties[n],o=r.getStylePropertyValue(e,a.name,t);o!=null&&(i[a.name]=o,i[B3(a.name)]=o)}return i}},Ic.getIndexedStyle=function(e,t,r,i){var n=e.pstyle(t)[r][i];return n!=null?n:e.cy().style().getDefaultProperty(t)[r][0]},Ic.getStylePropertyValue=function(e,t,r){var i=this;if(e=e[0],e){var n=i.properties[t];n.alias&&(n=n.pointsTo);var a=n.type,o=e.pstyle(n.name);if(o){var l=o.value,h=o.units,u=o.strValue;if(r&&a.number&&l!=null&&ir(l)){var d=e.cy().zoom(),p=s(function(x){return x*d},"getRenderedValue"),g=s(function(x,C){return p(x)+C},"getValueStringWithUnits"),m=cn(l),y=m?h.every(function(x){return x!=null}):h!=null;return y?m?l.map(function(x,C){return g(x,h[C])}).join(" "):g(l,h):m?l.map(function(x){return Mr(x)?x:""+p(x)}).join(" "):""+p(l)}else if(u!=null)return u}return null}},Ic.getAnimationStartStyle=function(e,t){for(var r={},i=0;i<t.length;i++){var n=t[i],a=n.name,o=e.pstyle(a);o!==void 0&&(Mi(o)?o=this.parse(a,o.strValue):o=this.parse(a,o)),o&&(r[a]=o)}return r},Ic.getPropsList=function(e){var t=this,r=[],i=e,n=t.properties;if(i)for(var a=Object.keys(i),o=0;o<a.length;o++){var l=a[o],h=i[l],u=n[l]||n[s7(l)],d=this.parse(u.name,h);d&&r.push(d)}return r},Ic.getNonDefaultPropertiesHash=function(e,t,r){var i=r.slice(),n,a,o,l,h,u;for(h=0;h<t.length;h++)if(n=t[h],a=e.pstyle(n,!1),a!=null)if(a.pfValue!=null)i[0]=Ky(l,i[0]),i[1]=Zy(l,i[1]);else for(o=a.strValue,u=0;u<o.length;u++)l=o.charCodeAt(u),i[0]=Ky(l,i[0]),i[1]=Zy(l,i[1]);return i},Ic.getPropertiesHash=Ic.getNonDefaultPropertiesHash,dk={},dk.appendFromJson=function(e){for(var t=this,r=0;r<e.length;r++){var i=e[r],n=i.selector,a=i.style||i.css,o=Object.keys(a);t.selector(n);for(var l=0;l<o.length;l++){var h=o[l],u=a[h];t.css(h,u)}}return t},dk.fromJson=function(e){var t=this;return t.resetToDefault(),t.appendFromJson(e),t},dk.json=function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var r=this[t],i=r.selector,n=r.properties,a={},o=0;o<n.length;o++){var l=n[o];a[l.name]=l.strValue}e.push({selector:i?i.toString():"core",style:a})}return e},N7={},N7.appendFromString=function(e){var t=this,r=this,i=""+e,n,a,o;i=i.replace(/[/][*](\s|.)+?[*][/]/g,"");function l(){i.length>n.length?i=i.substr(n.length):i=""}f(l,"l"),s(l,"removeSelAndBlockFromRemaining");function h(){a.length>o.length?a=a.substr(o.length):a=""}for(f(h,"u"),s(h,"removePropAndValFromRem");;){var u=i.match(/^\s*$/);if(u)break;var d=i.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Yi("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+i);break}n=d[0];var p=d[1];if(p!=="core"){var g=new pd(p);
vendor: 17,429 bytes, line 577
577if(g.invalid){Yi("Skipping parsing of block: Invalid selector found in string stylesheet: "+p),l();continue}}var m=d[2],y=!1;a=m;for(var x=[];;){var C=a.match(/^\s*$/);if(C)break;var w=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!w){Yi("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+m),y=!0;break}o=w[0];var _=w[1],S=w[2],R=t.properties[_];if(!R){Yi("Skipping property: Invalid property name in: "+o),h();continue}var b=r.parse(_,S);if(!b){Yi("Skipping property: Invalid property definition in: "+o),h();continue}x.push({name:_,val:S}),h()}if(y){l();break}r.selector(p);for(var v=0;v<x.length;v++){var k=x[v];r.css(k.name,k.val)}l()}return r},N7.fromString=function(e){var t=this;return t.resetToDefault(),t.appendFromString(e),t},Sa={},(function(){var e=Fa,t=QOe,r=e$e,i=t$e,n=r$e,a=s(function(le){return"^"+le+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},"data"),o=s(function(le){var ue=e+"|\\w+|"+t+"|"+r+"|"+i+"|"+n;return"^"+le+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+e+")\\s*\\,\\s*("+e+")\\s*,\\s*("+ue+")\\s*\\,\\s*("+ue+")\\)$"},"mapData"),l=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];Sa.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},boxSelection:{enums:["contain","overlap","none"]},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle","circle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:a("data")},layoutData:{mapping:!0,regex:a("layoutData")},scratch:{mapping:!0,regex:a("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:l,singleRegexMatchValue:!0},urls:{regexes:l,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:s(function(le,ue){switch(le.length){case 2:return ue[0]!=="deg"&&ue[0]!=="rad"&&ue[1]!=="deg"&&ue[1]!=="rad";case 1:return Mr(le[0])||ue[0]==="deg"||ue[0]==="rad";default:return!1}},"validate")},easing:{regexes:["^(spring)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:s(function(le){var ue=le.length;return ue===1||ue===2||ue===4},"validate")}};var h={zeroNonZero:s(function(le,ue){return(le==null||ue==null)&&le!==ue||le==0&&ue!=0?!0:le!=0&&ue==0},"zeroNonZero"),any:s(function(le,ue){return le!=ue},"any"),emptyNonEmpty:s(function(le,ue){var de=ad(le),we=ad(ue);return de&&!we||!de&&we},"emptyNonEmpty")},u=Sa.types,d=[{name:"label",type:u.text,triggersBounds:h.any,triggersZOrder:h.emptyNonEmpty},{name:"text-rotation",type:u.textRotation,triggersBounds:h.any},{name:"text-margin-x",type:u.bidirectionalSize,triggersBounds:h.any},{name:"text-margin-y",type:u.bidirectionalSize,triggersBounds:h.any}],p=[{name:"source-label",type:u.text,triggersBounds:h.any},{name:"source-text-rotation",type:u.textRotation,triggersBounds:h.any},{name:"source-text-margin-x",type:u.bidirectionalSize,triggersBounds:h.any},{name:"source-text-margin-y",type:u.bidirectionalSize,triggersBounds:h.any},{name:"source-text-offset",type:u.size,triggersBounds:h.any}],g=[{name:"target-label",type:u.text,triggersBounds:h.any},{name:"target-text-rotation",type:u.textRotation,triggersBounds:h.any},{name:"target-text-margin-x",type:u.bidirectionalSize,triggersBounds:h.any},{name:"target-text-margin-y",type:u.bidirectionalSize,triggersBounds:h.any},{name:"target-text-offset",type:u.size,triggersBounds:h.any}],m=[{name:"font-family",type:u.fontFamily,triggersBounds:h.any},{name:"font-style",type:u.fontStyle,triggersBounds:h.any},{name:"font-weight",type:u.fontWeight,triggersBounds:h.any},{name:"font-size",type:u.size,triggersBounds:h.any},{name:"text-transform",type:u.textTransform,triggersBounds:h.any},{name:"text-wrap",type:u.textWrap,triggersBounds:h.any},{name:"text-overflow-wrap",type:u.textOverflowWrap,triggersBounds:h.any},{name:"text-max-width",type:u.size,triggersBounds:h.any},{name:"text-outline-width",type:u.size,triggersBounds:h.any},{name:"line-height",type:u.positiveNumber,triggersBounds:h.any}],y=[{name:"text-valign",type:u.valign,triggersBounds:h.any},{name:"text-halign",type:u.halign,triggersBounds:h.any},{name:"color",type:u.color},{name:"text-outline-color",type:u.color},{name:"text-outline-opacity",type:u.zeroOneNumber},{name:"text-background-color",type:u.color},{name:"text-background-opacity",type:u.zeroOneNumber},{name:"text-background-padding",type:u.size,triggersBounds:h.any},{name:"text-border-opacity",type:u.zeroOneNumber},{name:"text-border-color",type:u.color},{name:"text-border-width",type:u.size,triggersBounds:h.any},{name:"text-border-style",type:u.borderStyle,triggersBounds:h.any},{name:"text-background-shape",type:u.textBackgroundShape,triggersBounds:h.any},{name:"text-justification",type:u.justification},{name:"box-select-labels",type:u.bool,triggersBounds:h.any}],x=[{name:"events",type:u.bool,triggersZOrder:h.any},{name:"text-events",type:u.bool,triggersZOrder:h.any},{name:"box-selection",type:u.boxSelection,triggersZOrder:h.any}],C=[{name:"display",type:u.display,triggersZOrder:h.any,triggersBounds:h.any,triggersBoundsOfConnectedEdges:h.any,triggersBoundsOfParallelEdges:s(function(le,ue,de){return le===ue?!1:de.pstyle("curve-style").value==="bezier"},"triggersBoundsOfParallelEdges")},{name:"visibility",type:u.visibility,triggersZOrder:h.any},{name:"opacity",type:u.zeroOneNumber,triggersZOrder:h.zeroNonZero},{name:"text-opacity",type:u.zeroOneNumber},{name:"min-zoomed-font-size",type:u.size},{name:"z-compound-depth",type:u.zCompoundDepth,triggersZOrder:h.any},{name:"z-index-compare",type:u.zIndexCompare,triggersZOrder:h.any},{name:"z-index",type:u.number,triggersZOrder:h.any}],w=[{name:"overlay-padding",type:u.size,triggersBounds:h.any},{name:"overlay-color",type:u.color},{name:"overlay-opacity",type:u.zeroOneNumber,triggersBounds:h.zeroNonZero},{name:"overlay-shape",type:u.overlayShape,triggersBounds:h.any},{name:"overlay-corner-radius",type:u.cornerRadius}],_=[{name:"underlay-padding",type:u.size,triggersBounds:h.any},{name:"underlay-color",type:u.color},{name:"underlay-opacity",type:u.zeroOneNumber,triggersBounds:h.zeroNonZero},{name:"underlay-shape",type:u.overlayShape,triggersBounds:h.any},{name:"underlay-corner-radius",type:u.cornerRadius}],S=[{name:"transition-property",type:u.propList},{name:"transition-duration",type:u.time},{name:"transition-delay",type:u.time},{name:"transition-timing-function",type:u.easing}],R=s(function(le,ue){return ue.value==="label"?-le.poolIndex():ue.pfValue},"nodeSizeHashOverride"),b=[{name:"height",type:u.nodeSize,triggersBounds:h.any,hashOverride:R},{name:"width",type:u.nodeSize,triggersBounds:h.any,hashOverride:R},{name:"shape",type:u.nodeShape,triggersBounds:h.any},{name:"shape-polygon-points",type:u.polygonPointList,triggersBounds:h.any},{name:"corner-radius",type:u.cornerRadius},{name:"background-color",type:u.color},{name:"background-fill",type:u.fill},{name:"background-opacity",type:u.zeroOneNumber},{name:"background-blacken",type:u.nOneOneNumber},{name:"background-gradient-stop-colors",type:u.colors},{name:"background-gradient-stop-positions",type:u.percentages},{name:"background-gradient-direction",type:u.gradientDirection},{name:"padding",type:u.sizeMaybePercent,triggersBounds:h.any},{name:"padding-relative-to",type:u.paddingRelativeTo,triggersBounds:h.any},{name:"bounds-expansion",type:u.boundsExpansion,triggersBounds:h.any}],v=[{name:"border-color",type:u.color},{name:"border-opacity",type:u.zeroOneNumber},{name:"border-width",type:u.size,triggersBounds:h.any},{name:"border-style",type:u.borderStyle},{name:"border-cap",type:u.lineCap},{name:"border-join",type:u.lineJoin},{name:"border-dash-pattern",type:u.numbers},{name:"border-dash-offset",type:u.number},{name:"border-position",type:u.linePosition}],k=[{name:"outline-color",type:u.color},{name:"outline-opacity",type:u.zeroOneNumber},{name:"outline-width",type:u.size,triggersBounds:h.any},{name:"outline-style",type:u.borderStyle},{name:"outline-offset",type:u.size,triggersBounds:h.any}],E=[{name:"background-image",type:u.urls},{name:"background-image-crossorigin",type:u.bgCrossOrigin},{name:"background-image-opacity",type:u.zeroOneNumbers},{name:"background-image-containment",type:u.bgContainment},{name:"background-image-smoothing",type:u.bools},{name:"background-position-x",type:u.bgPos},{name:"background-position-y",type:u.bgPos},{name:"background-width-relative-to",type:u.bgRelativeTo},{name:"background-height-relative-to",type:u.bgRelativeTo},{name:"background-repeat",type:u.bgRepeat},{name:"background-fit",type:u.bgFit},{name:"background-clip",type:u.bgClip},{name:"background-width",type:u.bgWH},{name:"background-height",type:u.bgWH},{name:"background-offset-x",type:u.bgPos},{name:"background-offset-y",type:u.bgPos}],A=[{name:"position",type:u.position,triggersBounds:h.any},{name:"compound-sizing-wrt-labels",type:u.compoundIncludeLabels,triggersBounds:h.any},{name:"min-width",type:u.size,triggersBounds:h.any},{name:"min-width-bias-left",type:u.sizeMaybePercent,triggersBounds:h.any},{name:"min-width-bias-right",type:u.sizeMaybePercent,triggersBounds:h.any},{name:"min-height",type:u.size,triggersBounds:h.any},{name:"min-height-bias-top",type:u.sizeMaybePercent,triggersBounds:h.any},{name:"min-height-bias-bottom",type:u.sizeMaybePercent,triggersBounds:h.any}],I=[{name:"line-style",type:u.lineStyle},{name:"line-color",type:u.color},{name:"line-fill",type:u.fill},{name:"line-cap",type:u.lineCap},{name:"line-opacity",type:u.zeroOneNumber},{name:"line-dash-pattern",type:u.numbers},{name:"line-dash-offset",type:u.number},{name:"line-outline-width",type:u.size},{name:"line-outline-color",type:u.color},{name:"line-gradient-stop-colors",type:u.colors},{name:"line-gradient-stop-positions",type:u.percentages},{name:"curve-style",type:u.curveStyle,triggersBounds:h.any,triggersBoundsOfParallelEdges:s(function(le,ue){return le===ue?!1:le==="bezier"||ue==="bezier"},"triggersBoundsOfParallelEdges")},{name:"haystack-radius",type:u.zeroOneNumber,triggersBounds:h.any},{name:"source-endpoint",type:u.edgeEndpoint,triggersBounds:h.any},{name:"target-endpoint",type:u.edgeEndpoint,triggersBounds:h.any},{name:"control-point-step-size",type:u.size,triggersBounds:h.any},{name:"control-point-distances",type:u.bidirectionalSizes,triggersBounds:h.any},{name:"control-point-weights",type:u.numbers,triggersBounds:h.any},{name:"segment-distances",type:u.bidirectionalSizes,triggersBounds:h.any},{name:"segment-weights",type:u.numbers,triggersBounds:h.any},{name:"segment-radii",type:u.numbers,triggersBounds:h.any},{name:"radius-type",type:u.radiusType,triggersBounds:h.any},{name:"taxi-turn",type:u.bidirectionalSizeMaybePercent,triggersBounds:h.any},{name:"taxi-turn-min-distance",type:u.size,triggersBounds:h.any},{name:"taxi-direction",type:u.axisDirection,triggersBounds:h.any},{name:"taxi-radius",type:u.number,triggersBounds:h.any},{name:"edge-distances",type:u.edgeDistances,triggersBounds:h.any},{name:"arrow-scale",type:u.positiveNumber,triggersBounds:h.any},{name:"loop-direction",type:u.angle,triggersBounds:h.any},{name:"loop-sweep",type:u.angle,triggersBounds:h.any},{name:"source-distance-from-node",type:u.size,triggersBounds:h.any},{name:"target-distance-from-node",type:u.size,triggersBounds:h.any}],$=[{name:"ghost",type:u.bool,triggersBounds:h.any},{name:"ghost-offset-x",type:u.bidirectionalSize,triggersBounds:h.any},{name:"ghost-offset-y",type:u.bidirectionalSize,triggersBounds:h.any},{name:"ghost-opacity",type:u.zeroOneNumber}],O=[{name:"selection-box-color",type:u.color},{name:"selection-box-opacity",type:u.zeroOneNumber},{name:"selection-box-border-color",type:u.color},{name:"selection-box-border-width",type:u.size},{name:"active-bg-color",type:u.color},{name:"active-bg-opacity",type:u.zeroOneNumber},{name:"active-bg-size",type:u.size},{name:"outside-texture-bg-color",type:u.color},{name:"outside-texture-bg-opacity",type:u.zeroOneNumber}],j=[];Sa.pieBackgroundN=16,j.push({name:"pie-size",type:u.sizeMaybePercent}),j.push({name:"pie-hole",type:u.sizeMaybePercent}),j.push({name:"pie-start-angle",type:u.angle});for(var D=1;D<=Sa.pieBackgroundN;D++)j.push({name:"pie-"+D+"-background-color",type:u.color}),j.push({name:"pie-"+D+"-background-size",type:u.percent}),j.push({name:"pie-"+D+"-background-opacity",type:u.zeroOneNumber});var P=[];
vendor: 5,716 bytes, line 577
577Sa.stripeBackgroundN=16,P.push({name:"stripe-size",type:u.sizeMaybePercent}),P.push({name:"stripe-direction",type:u.axisDirectionPrimary});for(var F=1;F<=Sa.stripeBackgroundN;F++)P.push({name:"stripe-"+F+"-background-color",type:u.color}),P.push({name:"stripe-"+F+"-background-size",type:u.percent}),P.push({name:"stripe-"+F+"-background-opacity",type:u.zeroOneNumber});var U=[],z=Sa.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:u.arrowShape,triggersBounds:h.any},{name:"arrow-color",type:u.color},{name:"arrow-fill",type:u.arrowFill},{name:"arrow-width",type:u.arrowWidth}].forEach(function(le){z.forEach(function(ue){var de=ue+"-"+le.name,we=le.type,De=le.triggersBounds;U.push({name:de,type:we,triggersBounds:De})})},{});var V=Sa.properties=[].concat(x,S,C,w,_,$,y,m,d,p,g,b,v,k,E,j,P,A,I,U,O),W=Sa.propertyGroups={behavior:x,transition:S,visibility:C,overlay:w,underlay:_,ghost:$,commonLabel:y,labelDimensions:m,mainLabel:d,sourceLabel:p,targetLabel:g,nodeBody:b,nodeBorder:v,nodeOutline:k,backgroundImage:E,pie:j,stripe:P,compound:A,edgeLine:I,edgeArrow:U,core:O},X=Sa.propertyGroupNames={},J=Sa.propertyGroupKeys=Object.keys(W);J.forEach(function(le){X[le]=W[le].map(function(ue){return ue.name}),W[le].forEach(function(ue){return ue.groupKey=le})});var H=Sa.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Sa.propertyNames=V.map(function(le){return le.name});for(var te=0;te<V.length;te++){var ie=V[te];V[ie.name]=ie}for(var oe=0;oe<H.length;oe++){var he=H[oe],pe=V[he.pointsTo],se={name:he.name,alias:!0,pointsTo:pe};V.push(se),V[he.name]=se}})(),Sa.getDefaultProperty=function(e){return this.getDefaultProperties()[e]},Sa.getDefaultProperties=function(){var e=this._private;if(e.defaultProperties!=null)return e.defaultProperties;for(var t=qr({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","box-selection":"contain","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}
577-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(h,u){for(var d=1;d<=Sa.pieBackgroundN;d++){var p=u.name.replace("{{i}}",d),g=u.value;h[p]=g}return h},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(h,u){for(var d=1;d<=Sa.stripeBackgroundN;d++){var p=u.name.replace("{{i}}",d),g=u.value;h[p]=g}return h},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(h,u){return Sa.arrowPrefixes.forEach(function(d){var p=d+"-"+u.name,g=u.value;h[p]=g}),h},{})),r={},i=0;i<this.properties.length;i++){var n=this.properties[i];if(!n.pointsTo){var a=n.name,o=t[a],l=this.parse(a,o);r[a]=l}}return e.defaultProperties=r,e.defaultProperties},Sa.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length},pk={},pk.parse=function(e,t,r,i){var n=this;if(Zn(t))return n.parseImplWarn(e,t,r,i);var a=i==="mapping"||i===!0||i===!1||i==null?"dontcare":i,o=r?"t":"f",l=""+t,h=zG(e,l,o,a),u=n.propCache=n.propCache||[],d;return(d=u[h])||(d=u[h]=n.parseImplWarn(e,t,r,i)),(r||i==="mapping")&&(d=Lc(d),d&&(d.value=Lc(d.value))),d},pk.parseImplWarn=function(e,t,r,i){var n=this.parseImpl(e,t,r,i);return!n&&t!=null&&Yi("The style property `".concat(e,": ").concat(t,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&t==="label"&&Yi("The style value of `label` is deprecated for `"+n.name+"`"),n},pk.parseImpl=function(e,t,r,i){var n=this;e=s7(e);var a=n.properties[e],o=t,l=n.types;if(!a||t===void 0)return null;a.alias&&(a=a.pointsTo,e=a.name);var h=Mr(t);h&&(t=t.trim());var u=a.type;if(!u)return null;if(r&&(t===""||t===null))return{name:e,value:t,bypass:!0,deleteBypass:!0};if(Zn(t))return{name:e,value:t,strValue:"fn",mapped:l.fn,bypass:r};var d,p;if(!(!h||i||t.length<7||t[1]!=="a")){if(t.length>=7&&t[0]==="d"&&(d=new RegExp(l.data.regex).exec(t))){if(r)return!1;var g=l.data;return{name:e,value:d,strValue:""+t,mapped:g,field:d[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(p=new RegExp(l.mapData.regex).exec(t))){if(r||u.multiple)return!1;var m=l.mapData;if(!(u.color||u.number))return!1;var y=this.parse(e,p[4]);if(!y||y.mapped)return!1;var x=this.parse(e,p[5]);if(!x||x.mapped)return!1;if(y.pfValue===x.pfValue||y.strValue===x.strValue)return Yi("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+y.strValue+"`"),this.parse(e,y.strValue);if(u.color){var C=y.value,w=x.value,_=C[0]===w[0]&&C[1]===w[1]&&C[2]===w[2]&&(C[3]===w[3]||(C[3]==null||C[3]===1)&&(w[3]==null||w[3]===1));if(_)return!1}return{name:e,value:p,strValue:""+t,mapped:m,field:p[1],fieldMin:parseFloat(p[2]),fieldMax:parseFloat(p[3]),valueMin:y.value,valueMax:x.value,bypass:r}}}if(u.multiple&&i!=="multiple"){var S;if(h?S=t.split(/\s+/):cn(t)?S=t:S=[t],u.evenMultiple&&S.length%2!==0)return null;for(var R=[],b=[],v=[],k="",E=!1,A=0;A<S.length;A++){var I=n.parse(e,S[A],r,"multiple");E=E||Mr(I.value),R.push(I.value),v.push(I.pfValue!=null?I.pfValue:I.value),b.push(I.units),k+=(A>0?" ":"")+I.strValue}return u.validate&&!u.validate(R,b)?null:u.singleEnum&&E?R.length===1&&Mr(R[0])?{name:e,value:R[0],strValue:R[0],bypass:r}:null:{name:e,value:R,pfValue:v,strValue:k,bypass:r,units:b}}var $=s(function(){for(var pe=0;pe<u.enums.length;pe++){var se=u.enums[pe];if(se===t)return{name:e,value:t,strValue:""+t,bypass:r}}return null},"checkEnums");if(u.number){var O,j="px";if(u.units&&(O=u.units),u.implicitUnits&&(j=u.implicitUnits),!u.unitless)if(h){var D="px|em"+(u.allowPercent?"|\\%":"");O&&(D=O);var P=t.match("^("+Fa+")("+D+")?$");P&&(t=P[1],O=P[2]||j)}else(!O||u.implicitUnits)&&(O=j);if(t=parseFloat(t),isNaN(t)&&u.enums===void 0)return null;if(isNaN(t)&&u.enums!==void 0)return t=o,$();if(u.integer&&!VOe(t)||u.min!==void 0&&(t<u.min||u.strictMin&&t===u.min)||u.max!==void 0&&(t>u.max||u.strictMax&&t===u.max))return null;var F={name:e,value:t,strValue:""+t+(O||""),units:O,bypass:r};return u.unitless||O!=="px"&&O!=="em"?F.pfValue=t:F.pfValue=O==="px"||!O?t:this.getEmSizeInPixels()*t,(O==="ms"||O==="s")&&(F.pfValue=O==="ms"?t:1e3*t),(O==="deg"||O==="rad")&&(F.pfValue=O==="rad"?t:aBe(t)),O==="%"&&(F.pfValue=t/100),F}else if(u.propList){var U=[],z=""+t;if(z!=="none"){for(var V=z.split(/\s*,\s*|\s+/),W=0;W<V.length;W++){var X=V[W].trim();n.properties[X]?U.push(X):Yi("`"+X+"` is not a valid property name")}if(U.length===0)return null}return{name:e,value:U,strValue:U.length===0?"none":U.join(" "),bypass:r}}else if(u.color){var J=bG(t);return J?{name:e,value:J,pfValue:J,strValue:"rgb("+J[0]+","+J[1]+","+J[2]+")",bypass:r}:null}else if(u.regex||u.regexes){if(u.enums){var H=$();if(H)return H}for(var te=u.regexes?u.regexes:[u.regex],ie=0;ie<te.length;ie++){var oe=new RegExp(te[ie]),he=oe.exec(t);if(he)return{name:e,value:u.singleRegexMatchValue?he[1]:he,strValue:""+t,bypass:r}}return null}else return u.string?{name:e,value:""+t,strValue:""+t,bypass:r}:u.enums?$():null},Ja=s(function(e){if(!(this instanceof Ja))return new Ja(e);if(!a7(e)){Gn("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},"Style"),Es=Ja.prototype,Es.instanceString=function(){return"style"},Es.clear=function(){for(var e=this._private,t=e.cy,r=t.elements(),i=0;i<this.length;i++)this[i]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var a=n[0]._private;a.styleDirty=!0,a.appliedInitStyle=!1}),this},Es.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Es.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)},Es.selector=function(e){var t=e==="core"?null:new pd(e),r=this.length++;return this[r]={selector:t,properties:[],mappedProperties:[],index:r},this},Es.css=function(){var e=this,t=arguments;if(t.length===1)for(var r=t[0],i=0;i<e.properties.length;i++){var n=e.properties[i],a=r[n.name];a===void 0&&(a=r[B3(n.name)]),a!==void 0&&this.cssRule(n.name,a)}else t.length===2&&this.cssRule(t[0],t[1]);return this},Es.style=Es.css,Es.cssRule=function(e,t){var r=this.parse(e,t);if(r){var i=this.length-1;this[i].properties.push(r),this[i].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.name.match(/stripe-(\d+)-background-size/)&&r.value&&(this._private.hasStripe=!0),r.mapped&&this[i].mappedProperties.push(r);var n=!this[i].selector;n&&(this._private.coreStyle[r.name]=r)}return this},Es.append=function(e){return fG(e)?e.appendToStyle(this):cn(e)?this.appendFromJson(e):Mr(e)&&this.appendFromString(e),this},Ja.fromJson=function(e,t){var r=new Ja(e);return r.fromJson(t),r},Ja.fromString=function(e,t){return new Ja(e).fromString(t)}
vendor: 21,216 bytes, line 577
577,[Qa,l2,D7,Ic,dk,N7,Sa,pk].forEach(function(e){qr(Es,e)}),Ja.types=Es.types,Ja.properties=Es.properties,Ja.propertyGroups=Es.propertyGroups,Ja.propertyGroupNames=Es.propertyGroupNames,Ja.propertyGroupKeys=Es.propertyGroupKeys,mze={style:s(function(e){if(e){var t=this.setStyle(e);t.update()}return this._private.style},"style"),setStyle:s(function(e){var t=this._private;return fG(e)?t.style=e.generateStyle(this):cn(e)?t.style=Ja.fromJson(this,e):Mr(e)?t.style=Ja.fromString(this,e):t.style=Ja(this),t.style},"setStyle"),updateStyle:s(function(){this.mutableElements().updateStyle()},"updateStyle")},yze="single",Gp={autolock:s(function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},"autolock"),autoungrabify:s(function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},"autoungrabify"),autounselectify:s(function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},"autounselectify"),selectionType:s(function(e){var t=this._private;if(t.selectionType==null&&(t.selectionType=yze),e!==void 0)(e==="additive"||e==="single")&&(t.selectionType=e);else return t.selectionType;return this},"selectionType"),panningEnabled:s(function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},"panningEnabled"),userPanningEnabled:s(function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},"userPanningEnabled"),zoomingEnabled:s(function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},"zoomingEnabled"),userZoomingEnabled:s(function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},"userZoomingEnabled"),boxSelectionEnabled:s(function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},"boxSelectionEnabled"),pan:s(function(){var e=arguments,t=this._private.pan,r,i,n,a,o;switch(e.length){case 0:return t;case 1:if(Mr(e[0]))return r=e[0],t[r];if(Mi(e[0])){if(!this._private.panningEnabled)return this;n=e[0],a=n.x,o=n.y,ir(a)&&(t.x=a),ir(o)&&(t.y=o),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;r=e[0],i=e[1],(r==="x"||r==="y")&&ir(i)&&(t[r]=i),this.emit("pan viewport");break}return this.notify("viewport"),this},"pan"),panBy:s(function(e,t){var r=arguments,i=this._private.pan,n,a,o,l,h;if(!this._private.panningEnabled)return this;switch(r.length){case 1:Mi(e)&&(o=r[0],l=o.x,h=o.y,ir(l)&&(i.x+=l),ir(h)&&(i.y+=h),this.emit("pan viewport"));break;case 2:n=e,a=t,(n==="x"||n==="y")&&ir(a)&&(i[n]+=a),this.emit("pan viewport");break}return this.notify("viewport"),this},"panBy"),gc:s(function(){this.notify("gc")},"gc"),fit:s(function(e,t){var r=this.getFitViewport(e,t);if(r){var i=this._private;i.zoom=r.zoom,i.pan=r.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},"fit"),getFitViewport:s(function(e,t){if(ir(e)&&t===void 0&&(t=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var r;if(Mr(e)){var i=e;e=this.$(i)}else if(YOe(e)){var n=e;r={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2},r.w=r.x2-r.x1,r.h=r.y2-r.y1}else Oo(e)||(e=this.mutableElements());if(!(Oo(e)&&e.empty())){r=r||e.boundingBox();var a=this.width(),o=this.height(),l;if(t=ir(t)?t:0,!isNaN(a)&&!isNaN(o)&&a>0&&o>0&&!isNaN(r.w)&&!isNaN(r.h)&&r.w>0&&r.h>0){l=Math.min((a-2*t)/r.w,(o-2*t)/r.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l<this._private.minZoom?this._private.minZoom:l;var h={x:(a-l*(r.x1+r.x2))/2,y:(o-l*(r.y1+r.y2))/2};return{zoom:l,pan:h}}}}},"getFitViewport"),zoomRange:s(function(e,t){var r=this._private;if(t==null){var i=e;e=i.min,t=i.max}return ir(e)&&ir(t)&&e<=t?(r.minZoom=e,r.maxZoom=t):ir(e)&&t===void 0&&e<=r.maxZoom?r.minZoom=e:ir(t)&&e===void 0&&t>=r.minZoom&&(r.maxZoom=t),this},"zoomRange"),minZoom:s(function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},"minZoom"),maxZoom:s(function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},"maxZoom"),getZoomedViewport:s(function(e){var t=this._private,r=t.pan,i=t.zoom,n,a,o=!1;if(t.zoomingEnabled||(o=!0),ir(e)?a=e:Mi(e)&&(a=e.level,e.position!=null?n=G3(e.position,i,r):e.renderedPosition!=null&&(n=e.renderedPosition),n!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=a<t.minZoom?t.minZoom:a,o||!ir(a)||a===i||n!=null&&(!ir(n.x)||!ir(n.y)))return null;if(n!=null){var l=r,h=i,u=a,d={x:-u/h*(n.x-l.x)+n.x,y:-u/h*(n.y-l.y)+n.y};return{zoomed:!0,panned:!0,zoom:u,pan:d}}else return{zoomed:!0,panned:!1,zoom:a,pan:r}},"getZoomedViewport"),zoom:s(function(e){if(e===void 0)return this._private.zoom;var t=this.getZoomedViewport(e),r=this._private;return t==null||!t.zoomed?this:(r.zoom=t.zoom,t.panned&&(r.pan.x=t.pan.x,r.pan.y=t.pan.y),this.emit("zoom"+(t.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},"zoom"),viewport:s(function(e){var t=this._private,r=!0,i=!0,n=[],a=!1,o=!1;if(!e)return this;if(ir(e.zoom)||(r=!1),Mi(e.pan)||(i=!1),!r&&!i)return this;if(r){var l=e.zoom;l<t.minZoom||l>t.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=l,n.push("zoom"))}if(i&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var h=e.pan;ir(h.x)&&(t.pan.x=h.x,o=!1),ir(h.y)&&(t.pan.y=h.y,o=!1),o||n.push("pan")}return n.length>0&&(n.push("viewport"),this.emit(n.join(" ")),this.notify("viewport")),this},"viewport"),center:s(function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},"center"),getCenterPan:s(function(e,t){if(this._private.panningEnabled){if(Mr(e)){var r=e;e=this.mutableElements().filter(r)}else Oo(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),n=this.width(),a=this.height();t=t===void 0?this._private.zoom:t;var o={x:(n-t*(i.x1+i.x2))/2,y:(a-t*(i.y1+i.y2))/2};return o}}},"getCenterPan"),reset:s(function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},"reset"),invalidateSize:s(function(){this._private.sizeCache=null},"invalidateSize"),size:s(function(){var e=this._private,t=e.container,r=this;return e.sizeCache=e.sizeCache||(t?(function(){var i=r.window().getComputedStyle(t),n=s(function(a){return parseFloat(i.getPropertyValue(a))},"val");return{width:t.clientWidth-n("padding-left")-n("padding-right"),height:t.clientHeight-n("padding-top")-n("padding-bottom")}})():{width:1,height:1})},"size"),width:s(function(){return this.size().width},"width"),height:s(function(){return this.size().height},"height"),extent:s(function(){var e=this._private.pan,t=this._private.zoom,r=this.renderedExtent(),i={x1:(r.x1-e.x)/t,x2:(r.x2-e.x)/t,y1:(r.y1-e.y)/t,y2:(r.y2-e.y)/t};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},"extent"),renderedExtent:s(function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},"renderedExtent"),multiClickDebounceTime:s(function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this},"multiClickDebounceTime")},Gp.centre=Gp.center,Gp.autolockNodes=Gp.autolock,Gp.autoungrabifyNodes=Gp.autoungrabify,c2={data:Xi.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Xi.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Xi.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Xi.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})},c2.attr=c2.data,c2.removeAttr=c2.removeData,h2=s(function(e){var t=this;e=qr({},e);var r=e.container;r&&!$3(r)&&$3(r[0])&&(r=r[0]);var i=r?r._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var n=i.readies=i.readies||[];r&&(r._cyreg=i),i.cy=t;var a=Pa!==void 0&&r!==void 0&&!e.headless,o=e;o.layout=qr({name:a?"grid":"null"},o.layout),o.renderer=qr({name:a?"canvas":"null"},o.renderer);var l=s(function(g,m,y){return m!==void 0?m:y!==void 0?y:g},"defVal"),h=this._private={container:r,ready:!1,options:o,elements:new os(this),listeners:[],aniEles:new os(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:ir(o.zoom)?o.zoom:1,pan:{x:Mi(o.pan)&&ir(o.pan.x)?o.pan.x:0,y:Mi(o.pan)&&ir(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=s(function(g,m){var y=g.some(XOe);if(y)return kf.all(g).then(m);m(g)},"loadExtData");h.styleEnabled&&t.setStyle([]);var d=qr({},o,o.renderer);t.initRenderer(d);var p=s(function(g,m,y){t.notifications(!1);var x=t.mutableElements();x.length>0&&x.remove(),g!=null&&(Mi(g)||cn(g))&&t.add(g),t.one("layoutready",function(w){t.notifications(!0),t.emit(w),t.one("load",m),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",y),t.emit("done")});var C=qr({},t._private.options.layout);C.eles=t.elements(),t.layout(C).run()},"setElesAndLayout");u([o.style,o.elements],function(g){var m=g[0],y=g[1];h.styleEnabled&&t.style().append(m),p(y,function(){t.startAnimationLoop(),h.ready=!0,Zn(o.ready)&&t.on("ready",o.ready);for(var x=0;x<n.length;x++){var C=n[x];t.on("ready",C)}i&&(i.readies=[]),t.emit("ready")},o.done)})},"Core"),gk=h2.prototype,qr(gk,{instanceString:s(function(){return"core"},"instanceString"),isReady:s(function(){return this._private.ready},"isReady"),destroyed:s(function(){return this._private.destroyed},"destroyed"),ready:s(function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},"ready"),destroy:s(function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},"destroy"),hasElementWithId:s(function(e){return this._private.elements.hasElementWithId(e)},"hasElementWithId"),getElementById:s(function(e){return this._private.elements.getElementById(e)},"getElementById"),hasCompoundNodes:s(function(){return this._private.hasCompoundNodes},"hasCompoundNodes"),headless:s(function(){return this._private.renderer.isHeadless()},"headless"),styleEnabled:s(function(){return this._private.styleEnabled},"styleEnabled"),addToPool:s(function(e){return this._private.elements.merge(e),this},"addToPool"),removeFromPool:s(function(e){return this._private.elements.unmerge(e),this},"removeFromPool"),container:s(function(){return this._private.container||null},"container"),window:s(function(){var e=this._private.container;if(e==null)return Pa;var t=this._private.container.ownerDocument;return t===void 0||t==null?Pa:t.defaultView||Pa},"window"),mount:s(function(e){if(e!=null){var t=this,r=t._private,i=r.options;return!$3(e)&&$3(e[0])&&(e=e[0]),t.stopAnimationLoop(),t.destroyRenderer(),r.container=e,r.styleEnabled=!0,t.invalidateSize(),t.initRenderer(qr({},i,i.renderer,{name:i.renderer.name==="null"?"canvas":i.renderer.name})),t.startAnimationLoop(),t.style(i.style),t.emit("mount"),t}},"mount"),unmount:s(function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},"unmount"),options:s(function(){return Lc(this._private.options)},"options"),json:s(function(e){var t=this,r=t._private,i=t.mutableElements(),n=s(function(_){return t.getElementById(_.id())},"getFreshRef");if(Mi(e)){if(t.startBatch(),e.elements){var a={},o=s(function(_,S){for(var R=[],b=[],v=0;v<_.length;v++){var k=_[v];if(!k.data.id){Yi("cy.json() cannot handle elements without an ID attribute");continue}var E=""+k.data.id,A=t.getElementById(E);a[E]=!0,A.length!==0?b.push({ele:A,json:k}):(S&&(k.group=S),R.push(k))}t.add(R);for(var I=0;I<b.length;I++){var $=b[I],O=$.ele,j=$.json;O.json(j)}},"updateEles");if(cn(e.elements))o(e.elements);else for(var l=["nodes","edges"],h=0;h<l.length;h++){var u=l[h],d=e.elements[u];cn(d)&&o(d,u)}var p=t.collection();i.filter(function(_){return!a[_.id()]}).forEach(function(_){_.isParent()?p.merge(_):_.remove()}),p.forEach(function(_){return _.children().move({parent:null})}),p.forEach(function(_){return n(_).remove()})}e.style&&t.style(e.style),e.zoom!=null&&e.zoom!==r.zoom&&t.zoom(e.zoom),e.pan&&(e.pan.x!==r.pan.x||e.pan.y!==r.pan.y)&&t.pan(e.pan),e.data&&t.data(e.data);for(var g=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],m=0;m<g.length;m++){var y=g[m];e[y]!=null&&t[y](e[y])}return t.endBatch(),this}else{var x=!!e,C={};x?C.elements=this.elements().map(function(_){return _.json()}):(C.elements={},i.forEach(function(_){var S=_.group();C.elements[S]||(C.elements[S]=[]),C.elements[S].push(_.json())})),this._private.styleEnabled&&(C.style=t.style().json()),C.data=Lc(t.data());var w=r.options;return C.zoomingEnabled=r.zoomingEnabled,C.userZoomingEnabled=r.userZoomingEnabled,C.zoom=r.zoom,C.minZoom=r.minZoom,C.maxZoom=r.maxZoom,C.panningEnabled=r.panningEnabled,C.userPanningEnabled=r.userPanningEnabled,C.pan=Lc(r.pan),C.boxSelectionEnabled=r.boxSelectionEnabled,C.renderer=Lc(w.renderer),C.hideEdgesOnViewport=w.hideEdgesOnViewport,C.textureOnViewport=w.textureOnViewport,C.wheelSensitivity=w.wheelSensitivity,C.motionBlur=w.motionBlur,C.multiClickDebounceTime=w.multiClickDebounceTime,C}},"json")}),gk.$id=gk.getElementById,[cze,uze,XV,R7,hk,pze,I7,uk,mze,Gp,c2].forEach(function(e){qr(gk,e)}),vze={fit:!0,directed:!1,direction:"downward",padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},bze={maximal:!1,acyclic:!1},Ef=s(function(e){return e.scratch("breadthfirst")},"getInfo"),KV=s(function(e,t){return e.scratch("breadthfirst",t)},"setInfo"),s(jj,"BreadthFirstLayout"),jj.prototype.run=function(){var e=this.options,t=e.cy,r=e.eles,i=r.nodes().filter(function(Be){return Be.isChildless()}),n=r,a=e.directed,o=e.acyclic||e.maximal||e.maximalAdjustments>0,l=!!e.boundingBox,h=js(l?e.boundingBox:structuredClone(t.extent())),u;if(Oo(e.roots))u=e.roots;else if(cn(e.roots)){for(var d=[],p=0;p<e.roots.length;p++){var g=e.roots[p],m=t.getElementById(g);d.push(m)}u=t.collection(d)}else if(Mr(e.roots))u=t.$(e.roots);else if(a)u=i.roots();else{var y=r.components();u=t.collection();for(var x=s(function(){var Be=y[C],ke=Be.maxDegree(!1),Qe=Be.filter(function(Pe){return Pe.degree(!1)===ke});u=u.add(Qe)},"_loop"),C=0;C<y.length;C++)x()}var w=[],_={},S=s(function(Be,ke){w[ke]==null&&(w[ke]=[]);var Qe=w[ke].length;w[ke].push(Be),KV(Be,{index:Qe,depth:ke})},"addToDepth"),R=s(function(Be,ke){var Qe=Ef(Be),Pe=Qe.depth,ht=Qe.index;w[Pe][ht]=null,Be.isChildless()&&S(Be,ke)},"changeDepth");n.bfs({roots:u,directed:e.directed,visit:s(function(Be,ke,Qe,Pe,ht){var Xe=Be[0],dt=Xe.id();Xe.isChildless()&&S(Xe,ht),_[dt]=!0},"visit")});for(var b=[],v=0;v<i.length;v++){var k=i[v];_[k.id()]||b.push(k)}var E=s(function(Be){for(var ke=w[Be],Qe=0;Qe<ke.length;Qe++){var Pe=ke[Qe];if(Pe==null){ke.splice(Qe,1),Qe--;continue}KV(Pe,{depth:Be,index:Qe})}},"assignDepthsAt"),A=s(function(Be,ke){for(var Qe=Ef(Be),Pe=Be.incomers().filter(function(lt){return lt.isNode()&&r.has(lt)}),ht=-1,Xe=Be.id(),dt=0;dt<Pe.length;dt++){var at=Pe[dt],kt=Ef(at);ht=Math.max(ht,kt.depth)}if(Qe.depth<=ht){if(!e.acyclic&&ke[Xe])return null;var Le=ht+1;return R(Be,Le),ke[Xe]=Le,!0}return!1},"adjustMaximally");if(a&&o){var I=[],$={},O=s(function(Be){return I.push(Be)},"enqueue"),j=s(function(){return I.shift()},"dequeue");for(i.forEach(function(Be){return I.push(Be)});I.length>0;){var D=j(),P=A(D,$);if(P)D.outgoers().filter(function(Be){return Be.isNode()&&r.has(Be)}).forEach(O);else if(P===null){Yi("Detected double maximal shift for node `"+D.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var F=0;if(e.avoidOverlap)for(var U=0;U<i.length;U++){var z=i[U],V=z.layoutDimensions(e),W=V.w,X=V.h;F=Math.max(F,W,X)}var J={},H=s(function(Be){if(J[Be.id()])return J[Be.id()];for(var ke=Ef(Be).depth,Qe=Be.neighborhood(),Pe=0,ht=0,Xe=0;Xe<Qe.length;Xe++){var dt=Qe[Xe];if(!(dt.isEdge()||dt.isParent()||!i.has(dt))){var at=Ef(dt);if(at!=null){var kt=at.index,Le=at.depth;if(!(kt==null||Le==null)){var lt=w[Le].length;Le<ke&&(Pe+=kt/lt,ht++)}}}}return ht=Math.max(1,ht),Pe=Pe/ht,ht===0&&(Pe=0),J[Be.id()]=Pe,Pe},"getWeightedPercent"),te=s(function(Be,ke){var Qe=H(Be),Pe=H(ke),ht=Qe-Pe;return ht===0?vG(Be.id(),ke.id()):ht},"sortFn");e.depthSort!==void 0&&(te=e.depthSort);for(var ie=w.length,oe=0;oe<ie;oe++)w[oe].sort(te),E(oe);for(var he=[],pe=0;pe<b.length;pe++)he.push(b[pe]);var se=s(function(){for(var Be=0;Be<ie;Be++)E(Be)},"assignDepths");he.length&&(w.unshift(he),ie=w.length,se());for(var le=0,ue=0;ue<ie;ue++)le=Math.max(w[ue].length,le);var de={x:h.x1+h.w/2,y:h.y1+h.h/2},we=i.reduce(function(Be,ke){return(function(Qe){return{w:Be.w===-1?Qe.w:(Be.w+Qe.w)/2,h:Be.h===-1?Qe.h:(Be.h+Qe.h)/2}})(ke.boundingBox({includeLabels:e.nodeDimensionsIncludeLabels}))},{w:-1,h:-1}),De=Math.max(ie===1?0:l?(h.h-e.padding*2-we.h)/(ie-1):(h.h-e.padding*2-we.h)/(ie+1),F),Ge=w.reduce(function(Be,ke){return Math.max(Be,ke.length)},0),be=s(function(Be){var ke=Ef(Be),Qe=ke.depth,Pe=ke.index;if(e.circle){var ht=Math.min(h.w/2/ie,h.h/2/ie);ht=Math.max(ht,F);var Xe=ht*Qe+ht-(ie>0&&w[0].length<=3?ht/2:0),dt=2*Math.PI/w[Qe].length*Pe;return Qe===0&&w[0].length===1&&(Xe=1),{x:de.x+Xe*Math.cos(dt),y:de.y+Xe*Math.sin(dt)}}else{var at=w[Qe].length,kt=Math.max(at===1?0:l?(h.w-e.padding*2-we.w)/((e.grid?Ge:at)-1):(h.w-e.padding*2-we.w)/((e.grid?Ge:at)+1),F),Le={x:de.x+(Pe+1-(at+1)/2)*kt,y:de.y+(Qe+1-(ie+1)/2)*De};return Le}},"getPositionTopBottom"),qe={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(qe).indexOf(e.direction)===-1&&Gn("Invalid direction '".concat(e.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(qe).join(", ")));var Ie=s(function(Be){return dMe(be(Be),h,qe[e.direction])},"getPosition");return r.nodes().layoutPositions(this,e,Ie),this},xze={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},s(Gj,"CircleLayout"),Gj.prototype.run=function(){var e=this.options,t=e,r=e.cy,i=t.eles,n=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,a=i.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));for(var o=js(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l={x:o.x1+o.w/2,y:o.y1+o.h/2},h=t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep,u=h/Math.max(1,a.length-1),d,p=0,g=0;g<a.length;g++){var m=a[g],y=m.layoutDimensions(t),x=y.w,C=y.h;p=Math.max(p,x,C)}if(ir(t.radius)?d=t.radius:a.length<=1?d=0:d=Math.min(o.h,o.w)/2-p,a.length>1&&t.avoidOverlap){p*=1.75;var w=Math.cos(u)-Math.cos(0),_=Math.sin(u)-Math.sin(0),S=Math.sqrt(p*p/(w*w+_*_));d=Math.max(S,d)}var R=s(function(b,v){var k=t.startAngle+v*u*(n?1:-1),E=d*Math.cos(k),A=d*Math.sin(k),I={x:l.x+E,y:l.y+A};return I},"getPos");return i.nodes().layoutPositions(this,t,R),this},kze={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:s(function(e){return e.degree()},"concentric"),levelWidth:s(function(e){return e.maxDegree()/4},"levelWidth"),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},s(Uj,"ConcentricLayout"),Uj.prototype.run=function(){for(var e=this.options,t=e,r=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,i=e.cy,n=t.eles,a=n.nodes().not(":parent"),o=js(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),l={x:o.x1+o.w/2,y:o.y1+o.h/2},h=[],u=0,d=0;d<a.length;d++){var p=a[d],g=void 0;g=t.concentric(p),h.push({value:g,node:p}
vendor: 4,797 bytes, line 577
577),p._private.scratch.concentric=g}a.updateStyle();for(var m=0;m<a.length;m++){var y=a[m],x=y.layoutDimensions(t);u=Math.max(u,x.w,x.h)}h.sort(function(De,Ge){return Ge.value-De.value});for(var C=t.levelWidth(a),w=[[]],_=w[0],S=0;S<h.length;S++){var R=h[S];if(_.length>0){var b=Math.abs(_[0].value-R.value);b>=C&&(_=[],w.push(_))}_.push(R)}var v=u+t.minNodeSpacing;if(!t.avoidOverlap){var k=w.length>0&&w[0].length>1,E=Math.min(o.w,o.h)/2-v,A=E/(w.length+k?1:0);v=Math.min(v,A)}for(var I=0,$=0;$<w.length;$++){var O=w[$],j=t.sweep===void 0?2*Math.PI-2*Math.PI/O.length:t.sweep,D=O.dTheta=j/Math.max(1,O.length-1);if(O.length>1&&t.avoidOverlap){var P=Math.cos(D)-Math.cos(0),F=Math.sin(D)-Math.sin(0),U=Math.sqrt(v*v/(P*P+F*F));I=Math.max(U,I)}O.r=I,I+=v}if(t.equidistant){for(var z=0,V=0,W=0;W<w.length;W++){var X=w[W],J=X.r-V;z=Math.max(z,J)}V=0;for(var H=0;H<w.length;H++){var te=w[H];H===0&&(V=te.r),te.r=V,V+=z}}for(var ie={},oe=0;oe<w.length;oe++)for(var he=w[oe],pe=he.dTheta,se=he.r,le=0;le<he.length;le++){var ue=he[le],de=t.startAngle+(r?1:-1)*pe*le,we={x:l.x+se*Math.cos(de),y:l.y+se*Math.sin(de)};ie[ue.node.id()]=we}return n.nodes().layoutPositions(this,t,function(De){var Ge=De.id();return ie[Ge]}),this},Tze={ready:s(function(){},"ready"),stop:s(function(){},"stop"),animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:s(function(e){return 2048},"nodeRepulsion"),nodeOverlap:4,idealEdgeLength:s(function(e){return 32},"idealEdgeLength"),edgeElasticity:s(function(e){return 32},"edgeElasticity"),nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1},s(M3,"CoseLayout"),M3.prototype.run=function(){var e=this.options,t=e.cy,r=this;r.stopped=!1,(e.animate===!0||e.animate===!1)&&r.emit({type:"layoutstart",layout:r}),e.debug===!0?ZV=!0:ZV=!1;var i=wze(t,r,e);ZV&&T5t(i),e.randomize&&Eze(i);var n=Oh(),a=s(function(){Sze(i,t,e),e.fit===!0&&t.fit(e.padding)},"refresh"),o=s(function(p){return!(r.stopped||p>=e.numIter||(_ze(i,e),i.temperature=i.temperature*e.coolingFactor,i.temperature<e.minTemp))},"mainLoop"),l=s(function(){if(e.animate===!0||e.animate===!1)a(),r.one("layoutstop",e.stop),r.emit({type:"layoutstop",layout:r});else{var p=e.eles.nodes(),g=JV(i,e,p);p.layoutPositions(r,e,g)}},"done"),h=0,u=!0;if(e.animate===!0){var d=s(function(){for(var p=0;u&&p<e.refresh;)u=o(h),h++,p++;if(!u)rW(i,e),l();else{var g=Oh();g-n>=e.animationThreshold&&a(),F3(d)}},"frame");d()}else{for(;u;)u=o(h),h++;rW(i,e),l()}return this},M3.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},M3.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},wze=s(function(e,t,r){for(var i=r.eles.edges(),n=r.eles.nodes(),a=js(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:n.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:r.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},l=r.eles.components(),h={},u=0;u<l.length;u++)for(var d=l[u],p=0;p<d.length;p++){var g=d[p];h[g.id()]=u}for(var u=0;u<o.nodeSize;u++){var m=n[u],y=m.layoutDimensions(r),x={};x.isLocked=m.locked(),x.id=m.data("id"),x.parentId=m.data("parent"),x.cmptId=h[m.id()],x.children=[],x.positionX=m.position("x"),x.positionY=m.position("y"),x.offsetX=0,x.offsetY=0,x.height=y.w,x.width=y.h,x.maxX=x.positionX+x.width/2,x.minX=x.positionX-x.width/2,x.maxY=x.positionY+x.height/2,x.minY=x.positionY-x.height/2,x.padLeft=parseFloat(m.style("padding")),x.padRight=parseFloat(m.style("padding")),x.padTop=parseFloat(m.style("padding")),x.padBottom=parseFloat(m.style("padding")),x.nodeRepulsion=Zn(r.nodeRepulsion)?r.nodeRepulsion(m):r.nodeRepulsion,o.layoutNodes.push(x),o.idToIndex[x.id]=u}for(var C=[],w=0,_=-1,S=[],u=0;u<o.nodeSize;u++){var m=o.layoutNodes[u],R=m.parentId;R!=null?o.layoutNodes[o.idToIndex[R]].children.push(m.id):(C[++_]=m.id,S.push(m.id))}for(o.graphSet.push(S);w<=_;){var b=C[w++],v=o.idToIndex[b],g=o.layoutNodes[v],k=g.children;if(k.length>0){o.graphSet.push(k);for(var u=0;u<k.length;u++)C[++_]=k[u]}}for(var u=0;u<o.graphSet.length;u++)for(var E=o.graphSet[u],p=0;p<E.length;p++){var A=o.idToIndex[E[p]];o.indexToGraph[A]=u}for(var u=0;u<o.edgeSize;u++){var I=i[u],$={};$.id=I.data("id"),$.sourceId=I.data("source"),$.targetId=I.data("target");var O=Zn(r.idealEdgeLength)?r.idealEdgeLength(I):r.idealEdgeLength,j=Zn(r.edgeElasticity)?r.edgeElasticity(I):r.edgeElasticity,D=o.idToIndex[$.sourceId],P=o.idToIndex[$.targetId],F=o.indexToGraph[D],U=o.indexToGraph[P];
vendor: 1,405 bytes, line 577
577if(F!=U){for(var z=Cze($.sourceId,$.targetId,o),V=o.graphSet[z],W=0,x=o.layoutNodes[D];V.indexOf(x.id)===-1;)x=o.layoutNodes[o.idToIndex[x.parentId]],W++;for(x=o.layoutNodes[P];V.indexOf(x.id)===-1;)x=o.layoutNodes[o.idToIndex[x.parentId]],W++;O*=W*r.nestingFactor}$.idealLength=O,$.elasticity=j,o.layoutEdges.push($)}return o},"createLayoutInfo"),Cze=s(function(e,t,r){var i=QV(e,t,0,r);return 2>i.count?0:i.graph},"findLCA"),QV=s(function(e,t,r,i){var n=i.graphSet[r];if(-1<n.indexOf(e)&&-1<n.indexOf(t))return{count:2,graph:r};for(var a=0,o=0;o<n.length;o++){var l=n[o],h=i.idToIndex[l],u=i.layoutNodes[h].children;if(u.length!==0){var d=i.indexToGraph[i.idToIndex[u[0]]],p=QV(e,t,d,i);if(p.count!==0)if(p.count===1){if(a++,a===2)break}else return p}}return{count:a,graph:r}},"findLCA_aux"),Eze=s(function(e,t){for(var r=e.clientWidth,i=e.clientHeight,n=0;n<e.nodeSize;n++){var a=e.layoutNodes[n];a.children.length===0&&!a.isLocked&&(a.positionX=Math.random()*r,a.positionY=Math.random()*i)}},"randomizePositions"),JV=s(function(e,t,r){var i=e.boundingBox,n={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return t.boundingBox&&(r.forEach(function(a){var o=e.layoutNodes[e.idToIndex[a.data("id")]];n.x1=Math.min(n.x1,o.positionX),n.x2=Math.max(n.x2,o.positionX),n.y1=Math.min(n.y1,o.positionY),n.y2=Math.max(n.y2,o.positionY)}),n.w=n.x2-n.x1,n.h=n.y2-n.y1),function(a,o){var l=e.layoutNodes[e.idToIndex[a.data("id")]];
vendor: 4,659 bytes, line 577
577if(t.boundingBox){var h=n.w===0?.5:(l.positionX-n.x1)/n.w,u=n.h===0?.5:(l.positionY-n.y1)/n.h;return{x:i.x1+h*i.w,y:i.y1+u*i.h}}else return{x:l.positionX,y:l.positionY}}},"getScaleInBoundsFn"),Sze=s(function(e,t,r){var i=r.layout,n=r.eles.nodes(),a=JV(e,r,n);n.positions(a),e.ready!==!0&&(e.ready=!0,i.one("layoutready",r.ready),i.emit({type:"layoutready",layout:this}))},"refreshPositions"),_ze=s(function(e,t,r){Aze(e,t),Ize(e),Dze(e,t),Nze(e),Mze(e)},"step"),Aze=s(function(e,t){for(var r=0;r<e.graphSet.length;r++)for(var i=e.graphSet[r],n=i.length,a=0;a<n;a++)for(var o=e.layoutNodes[e.idToIndex[i[a]]],l=a+1;l<n;l++){var h=e.layoutNodes[e.idToIndex[i[l]]];Lze(o,h,e,t)}},"calculateNodeForces"),eW=s(function(e){return-1+2*e*Math.random()},"randomDistance"),Lze=s(function(e,t,r,i){var n=e.cmptId,a=t.cmptId;if(!(n!==a&&!r.isCompound)){var o=t.positionX-e.positionX,l=t.positionY-e.positionY,h=1;o===0&&l===0&&(o=eW(h),l=eW(h));var u=Rze(e,t,o,l);if(u>0)var C=i.nodeOverlap*u,x=Math.sqrt(o*o+l*l),w=C*o/x,_=C*l/x;else var d=fk(e,o,l),p=fk(t,-1*o,-1*l),g=p.x-d.x,m=p.y-d.y,y=g*g+m*m,x=Math.sqrt(y),C=(e.nodeRepulsion+t.nodeRepulsion)/y,w=C*g/x,_=C*m/x;e.isLocked||(e.offsetX-=w,e.offsetY-=_),t.isLocked||(t.offsetX+=w,t.offsetY+=_)}},"nodeRepulsion"),Rze=s(function(e,t,r,i){if(r>0)var n=e.maxX-t.minX;else var n=t.maxX-e.minX;if(i>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return n>=0&&a>=0?Math.sqrt(n*n+a*a):0},"nodesOverlap"),fk=s(function(e,t,r){var i=e.positionX,n=e.positionY,a=e.height||1,o=e.width||1,l=r/t,h=a/o,u={};return t===0&&0<r||t===0&&0>r?(u.x=i,u.y=n+a/2,u):0<t&&-1*h<=l&&l<=h?(u.x=i+o/2,u.y=n+o*r/2/t,u):0>t&&-1*h<=l&&l<=h?(u.x=i-o/2,u.y=n-o*r/2/t,u):0<r&&(l<=-1*h||l>=h)?(u.x=i+a*t/2/r,u.y=n+a/2,u):(0>r&&(l<=-1*h||l>=h)&&(u.x=i-a*t/2/r,u.y=n-a/2),u)},"findClippingPoint"),Ize=s(function(e,t){for(var r=0;r<e.edgeSize;r++){var i=e.layoutEdges[r],n=e.idToIndex[i.sourceId],a=e.layoutNodes[n],o=e.idToIndex[i.targetId],l=e.layoutNodes[o],h=l.positionX-a.positionX,u=l.positionY-a.positionY;if(!(h===0&&u===0)){var d=fk(a,h,u),p=fk(l,-1*h,-1*u),g=p.x-d.x,m=p.y-d.y,y=Math.sqrt(g*g+m*m),x=Math.pow(i.idealLength-y,2)/i.elasticity;if(y!==0)var C=x*g/y,w=x*m/y;else var C=0,w=0;a.isLocked||(a.offsetX+=C,a.offsetY+=w),l.isLocked||(l.offsetX-=C,l.offsetY-=w)}}},"calculateEdgeForces"),Dze=s(function(e,t){if(t.gravity!==0)for(var r=1,i=0;i<e.graphSet.length;i++){var n=e.graphSet[i],a=n.length;if(i===0)var h=e.clientHeight/2,u=e.clientWidth/2;else var o=e.layoutNodes[e.idToIndex[n[0]]],l=e.layoutNodes[e.idToIndex[o.parentId]],h=l.positionX,u=l.positionY;for(var d=0;d<a;d++){var p=e.layoutNodes[e.idToIndex[n[d]]];if(!p.isLocked){var g=h-p.positionX,m=u-p.positionY,y=Math.sqrt(g*g+m*m);if(y>r){var x=t.gravity*g/y,C=t.gravity*m/y;p.offsetX+=x,p.offsetY+=C}}}}},"calculateGravityForces"),Nze=s(function(e,t){var r=[],i=0,n=-1;for(r.push.apply(r,e.graphSet[0]),n+=e.graphSet[0].length;i<=n;){var a=r[i++],o=e.idToIndex[a],l=e.layoutNodes[o],h=l.children;if(0<h.length&&!l.isLocked){for(var u=l.offsetX,d=l.offsetY,p=0;p<h.length;p++){var g=e.layoutNodes[e.idToIndex[h[p]]];g.offsetX+=u,g.offsetY+=d,r[++n]=h[p]}l.offsetX=0,l.offsetY=0}}},"propagateForces"),Mze=s(function(e,t){for(var r=0;r<e.nodeSize;r++){var i=e.layoutNodes[r];0<i.children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0)}for(var r=0;r<e.nodeSize;r++){var i=e.layoutNodes[r];if(!(0<i.children.length||i.isLocked)){var n=Oze(i.offsetX,i.offsetY,e.temperature);i.positionX+=n.x,i.positionY+=n.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,tW(i,e)}}for(var r=0;r<e.nodeSize;r++){var i=e.layoutNodes[r];0<i.children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},"updatePositions"),Oze=s(function(e,t,r){var i=Math.sqrt(e*e+t*t);if(i>r)var n={x:r*e/i,y:r*t/i};else var n={x:e,y:t};return n},"limitForce"),tW=s(function(e,t){var r=e.parentId;if(r!=null){var i=t.layoutNodes[t.idToIndex[r]],n=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,n=!0),(i.minX==null||e.minX-i.padLeft<i.minX)&&(i.minX=e.minX-i.padLeft,n=!0),(i.maxY==null||e.maxY+i.padBottom>i.maxY)&&(i.maxY=e.maxY+i.padBottom,n=!0),(i.minY==null||e.minY-i.padTop<i.minY)&&(i.minY=e.minY-i.padTop,n=!0),n)return tW(i,t)}},"updateAncestryBoundaries"),rW=s(function(e,t){for(var r=e.layoutNodes,i=[],n=0;n<r.length;n++){var a=r[n],o=a.cmptId,l=i[o]=i[o]||[];l.push(a)}for(var h=0,n=0;n<i.length;n++){var u=i[n];if(u){u.x1=1/0,u.x2=-1/0,u.y1=1/0,u.y2=-1/0;for(var d=0;d<u.length;d++){var p=u[d];
vendor: 4,190 bytes, line 577
577u.x1=Math.min(u.x1,p.positionX-p.width/2),u.x2=Math.max(u.x2,p.positionX+p.width/2),u.y1=Math.min(u.y1,p.positionY-p.height/2),u.y2=Math.max(u.y2,p.positionY+p.height/2)}u.w=u.x2-u.x1,u.h=u.y2-u.y1,h+=u.w*u.h}}i.sort(function(w,_){return _.w*_.h-w.w*w.h});for(var g=0,m=0,y=0,x=0,C=Math.sqrt(h)*e.clientWidth/e.clientHeight,n=0;n<i.length;n++){var u=i[n];if(u){for(var d=0;d<u.length;d++){var p=u[d];p.isLocked||(p.positionX+=g-u.x1,p.positionY+=m-u.y1)}g+=u.w+t.componentSpacing,y+=u.w+t.componentSpacing,x=Math.max(x,u.h),y>C&&(m+=x+t.componentSpacing,g=0,y=0,x=0)}}},"separateComponents"),$ze={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:s(function(e){},"position"),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},s(Vj,"GridLayout"),Vj.prototype.run=function(){var e=this.options,t=e,r=e.cy,i=t.eles,n=i.nodes().not(":parent");t.sort&&(n=n.sort(t.sort));var a=js(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)i.nodes().layoutPositions(this,t,function(H){return{x:a.x1,y:a.y1}});else{var o=n.size(),l=Math.sqrt(o*a.h/a.w),h=Math.round(l),u=Math.round(a.w/a.h*l),d=s(function(H){if(H==null)return Math.min(h,u);var te=Math.min(h,u);te==h?h=H:u=H},"small"),p=s(function(H){if(H==null)return Math.max(h,u);var te=Math.max(h,u);te==h?h=H:u=H},"large"),g=t.rows,m=t.cols!=null?t.cols:t.columns;if(g!=null&&m!=null)h=g,u=m;else if(g!=null&&m==null)h=g,u=Math.ceil(o/h);else if(g==null&&m!=null)u=m,h=Math.ceil(o/u);else if(u*h>o){var y=d(),x=p();(y-1)*x>=o?d(y-1):(x-1)*y>=o&&p(x-1)}else for(;u*h<o;){var C=d(),w=p();(w+1)*C>=o?p(w+1):d(C+1)}var _=a.w/u,S=a.h/h;if(t.condense&&(_=0,S=0),t.avoidOverlap)for(var R=0;R<n.length;R++){var b=n[R],v=b._private.position;(v.x==null||v.y==null)&&(v.x=0,v.y=0);var k=b.layoutDimensions(t),E=t.avoidOverlapPadding,A=k.w+E,I=k.h+E;_=Math.max(_,A),S=Math.max(S,I)}for(var $={},O=s(function(H,te){return!!$["c-"+H+"-"+te]},"used"),j=s(function(H,te){$["c-"+H+"-"+te]=!0},"use"),D=0,P=0,F=s(function(){P++,P>=u&&(P=0,D++)},"moveToNextCell"),U={},z=0;z<n.length;z++){var V=n[z],W=t.position(V);if(W&&(W.row!==void 0||W.col!==void 0)){var X={row:W.row,col:W.col};if(X.col===void 0)for(X.col=0;O(X.row,X.col);)X.col++;else if(X.row===void 0)for(X.row=0;O(X.row,X.col);)X.row++;U[V.id()]=X,j(X.row,X.col)}}var J=s(function(H,te){var ie,oe;if(H.locked()||H.isParent())return!1;var he=U[H.id()];if(he)ie=he.col*_+_/2+a.x1,oe=he.row*S+S/2+a.y1;else{for(;O(D,P);)F();ie=P*_+_/2+a.x1,oe=D*S+S/2+a.y1,j(D,P),F()}return{x:ie,y:oe}},"getPos");n.layoutPositions(this,t,J)}return this},Bze={ready:s(function(){},"ready"),stop:s(function(){},"stop")},s(J_,"NullLayout"),J_.prototype.run=function(){var e=this.options,t=e.eles,r=this;return e.cy,r.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",e.ready),r.emit("layoutready"),r.one("layoutstop",e.stop),r.emit("layoutstop"),this},J_.prototype.stop=function(){return this},Pze={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},s(Wj,"PresetLayout"),Wj.prototype.run=function(){var e=this.options,t=e.eles,r=t.nodes(),i=Zn(e.positions);function n(a){if(e.positions==null)return eBe(a.position());if(i)return e.positions(a);var o=e.positions[a._private.data.id];return o!=null?o:null}return f(n,"n"),s(n,"getPosition"),r.layoutPositions(this,e,function(a,o){var l=n(a);return a.locked()||l==null?!1:l}),this},Fze={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:s(function(e,t){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:s(function(e,t){return t},"transform")},s(Hj,"RandomLayout"),Hj.prototype.run=function(){var e=this.options,t=e.cy,r=e.eles,i=js(e.boundingBox?e.boun
vendor: 13,058 bytes, line 577
577dingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),n=s(function(a,o){return{x:i.x1+Math.round(Math.random()*i.w),y:i.y1+Math.round(Math.random()*i.h)}},"getPos");return r.nodes().layoutPositions(this,e,n),this},zze=[{name:"breadthfirst",impl:jj},{name:"circle",impl:Gj},{name:"concentric",impl:Uj},{name:"cose",impl:M3},{name:"grid",impl:Vj},{name:"null",impl:J_},{name:"preset",impl:Wj},{name:"random",impl:Hj}],s(Yj,"NullRenderer"),iW=s(function(){},"noop"),nW=s(function(){throw new Error("A headless instance can not render images")},"throwImgErr"),Yj.prototype={recalculateRenderedStyle:iW,notify:s(function(){this.notifications++},"notify"),init:iW,isHeadless:s(function(){return!0},"isHeadless"),png:nW,jpg:nW},M7={},M7.arrowShapeWidth=.3,M7.registerArrowShapes=function(){var e=this.arrowShapes={},t=this,r=s(function(h,u,d,p,g,m,y){var x=g.x-d/2-y,C=g.x+d/2+y,w=g.y-d/2-y,_=g.y+d/2+y,S=x<=h&&h<=C&&w<=u&&u<=_;return S},"bbCollide"),i=s(function(h,u,d,p,g){var m=h*Math.cos(p)-u*Math.sin(p),y=h*Math.sin(p)+u*Math.cos(p),x=m*d,C=y*d,w=x+g.x,_=C+g.y;return{x:w,y:_}},"transform"),n=s(function(h,u,d,p){for(var g=[],m=0;m<h.length;m+=2){var y=h[m],x=h[m+1];g.push(i(y,x,u,d,p))}return g},"transformPoints"),a=s(function(h){for(var u=[],d=0;d<h.length;d++){var p=h[d];u.push(p.x,p.y)}return u},"pointsToArr"),o=s(function(h){return h.pstyle("width").pfValue*h.pstyle("arrow-scale").pfValue*2},"standardGap"),l=s(function(h,u){Mr(u)&&(u=e[u]),e[h]=qr({name:h,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:s(function(d,p,g,m,y,x){var C=a(n(this.points,g+2*x,m,y)),w=po(d,p,C);return w},"collide"),roughCollide:r,draw:s(function(d,p,g,m){var y=n(this.points,p,g,m);t.arrowShapeImpl("polygon")(d,y)},"draw"),spacing:s(function(d){return 0},"spacing"),gap:o},u)},"defineArrowShape");l("none",{collide:q3,roughCollide:q3,draw:c7,spacing:GG,gap:GG}),l("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),l("arrow","triangle"),l("triangle-backcurve",{points:e.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:s(function(h,u,d,p,g){var m=n(this.points,u,d,p),y=this.controlPoint,x=i(y[0],y[1],u,d,p);t.arrowShapeImpl(this.name)(h,m,x)},"draw"),gap:s(function(h){return o(h)*.8},"gap")}),l("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:s(function(h,u,d,p,g,m,y){var x=a(n(this.points,d+2*y,p,g)),C=a(n(this.pointsTee,d+2*y,p,g)),w=po(h,u,x)||po(h,u,C);return w},"collide"),draw:s(function(h,u,d,p,g){var m=n(this.points,u,d,p),y=n(this.pointsTee,u,d,p);t.arrowShapeImpl(this.name)(h,m,y)},"draw")}),l("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:s(function(h,u,d,p,g,m,y){var x=g,C=Math.pow(x.x-h,2)+Math.pow(x.y-u,2)<=Math.pow((d+2*y)*this.radius,2),w=a(n(this.points,d+2*y,p,g));return po(h,u,w)||C},"collide"),draw:s(function(h,u,d,p,g){var m=n(this.pointsTr,u,d,p);t.arrowShapeImpl(this.name)(h,m,p.x,p.y,this.radius*u)},"draw"),spacing:s(function(h){return t.getArrowWidth(h.pstyle("width").pfValue,h.pstyle("arrow-scale").value)*this.radius},"spacing")}),l("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:s(function(h,u){var d=this.baseCrossLinePts.slice(),p=u/h,g=3,m=5;return d[g]=d[g]-p,d[m]=d[m]-p,d},"crossLinePts"),collide:s(function(h,u,d,p,g,m,y){var x=a(n(this.points,d+2*y,p,g)),C=a(n(this.crossLinePts(d,m),d+2*y,p,g)),w=po(h,u,x)||po(h,u,C);return w},"collide"),draw:s(function(h,u,d,p,g){var m=n(this.points,u,d,p),y=n(this.crossLinePts(u,g),u,d,p);t.arrowShapeImpl(this.name)(h,m,y)},"draw")}),l("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:s(function(h){return o(h)*.525},"gap")}),l("circle",{radius:.15,collide:s(function(h,u,d,p,g,m,y){var x=g,C=Math.pow(x.x-h,2)+Math.pow(x.y-u,2)<=Math.pow((d+2*y)*this.radius,2);return C},"collide"),draw:s(function(h,u,d,p,g){t.arrowShapeImpl(this.name)(h,p.x,p.y,this.radius*u)},"draw"),spacing:s(function(h){return t.getArrowWidth(h.pstyle("width").pfValue,h.pstyle("arrow-scale").value)*this.radius},"spacing")}),l("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:s(function(h){return 1},"spacing"),gap:s(function(h){return 1},"gap")}),l("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),l("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:s(function(h){return h.pstyle("width").pfValue*h.pstyle("arrow-scale").value},"gap")}),l("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:s(function(h){return .95*h.pstyle("width").pfValue*h.pstyle("arrow-scale").value},"gap")})},Up={},Up.projectIntoViewport=function(e,t){var r=this.cy,i=this.findContainerClientCoords(),n=i[0],a=i[1],o=i[4],l=r.pan(),h=r.zoom(),u=((e-n)/o-l.x)/h,d=((t-a)/o-l.y)/h;return[u,d]},Up.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var e=this.container,t=e.getBoundingClientRect(),r=this.cy.window().getComputedStyle(e),i=s(function(C){return parseFloat(r.getPropertyValue(C))},"styleValue"),n={left:i("padding-left"),right:i("padding-right"),top:i("padding-top"),bottom:i("padding-bottom")},a={left:i("border-left-width"),right:i("border-right-width"),top:i("border-top-width"),bottom:i("border-bottom-width")},o=e.clientWidth,l=e.clientHeight,h=n.left+n.right,u=n.top+n.bottom,d=a.left+a.right,p=t.width/(o+d),g=o-h,m=l-u,y=t.left+n.left+a.left,x=t.top+n.top+a.top;return this.containerBB=[y,x,g,m,p]},Up.invalidateContainerClientCoordsCache=function(){this.containerBB=null},Up.findNearestElement=function(e,t,r,i){return this.findNearestElements(e,t,r,i)[0]},Up.findNearestElements=function(e,t,r,i){var n=this,a=this,o=a.getCachedZSortedEles(),l=[],h=a.cy.zoom(),u=a.cy.hasCompoundNodes(),d=(i?24:8)/h,p=(i?8:2)/h,g=(i?8:2)/h,m=1/0,y,x;r&&(o=o.interactive);function C(k,E){if(k.isNode()){if(x)return;x=k,l.push(k)}if(k.isEdge()&&(E==null||E<m))if(y){if(y.pstyle("z-compound-depth").value===k.pstyle("z-compound-depth").value&&y.pstyle("z-compound-depth").value===k.pstyle("z-compound-depth").value){for(var A=0;A<l.length;A++)if(l[A].isEdge()){l[A]=k,y=k,m=E!=null?E:m;break}}}else l.push(k),y=k,m=E!=null?E:m}f(C,"v"),s(C,"addEle");function w(k){var E=k.outerWidth()+2*p,A=k.outerHeight()+2*p,I=E/2,$=A/2,O=k.position(),j=k.pstyle("corner-radius").value==="auto"?"auto":k.pstyle("corner-radius").pfValue,D=k._private.rscratch;if(O.x-I<=e&&e<=O.x+I&&O.y-$<=t&&t<=O.y+$){var P=a.nodeShapes[n.getNodeShape(k)];if(P.checkPoint(e,t,0,E,A,O.x,O.y,j,D))return C(k,0),!0}}f(w,"x"),s(w,"checkNode");function _(k){var E=k._private,A=E.rscratch,I=k.pstyle("width").pfValue,$=k.pstyle("arrow-scale").value,O=I/2+d,j=O*O,D=O*2,P=E.source,F=E.target,U;if(A.edgeType==="segments"||A.edgeType==="straight"||A.edgeType==="haystack"){for(var z=A.allpts,V=0;V+3<z.length;V+=2)if(dBe(e,t,z[V],z[V+1],z[V+2],z[V+3],D)&&j>(U=yBe(e,t,z[V],z[V+1],z[V+2],z[V+3])))return C(k,U),!0}else if(A.edgeType==="bezier"||A.edgeType==="multibezier"||A.edgeType==="self"||A.edgeType==="compound"){for(var z=A.allpts,V=0;V+5<A.allpts.length;V+=4)if(pBe(e,t,z[V],z[V+1],z[V+2],z[V+3],z[V+4],z[V+5],D)&&j>(U=mBe(e,t,z[V],z[V+1],z[V+2],z[V+3],z[V+4],z[V+5])))return C(k,U),!0}for(var P=P||E.source,F=F||E.target,W=n.getArrowWidth(I,$),X=[{name:"source",x:A.arrowStartX,y:A.arrowStartY,angle:A.srcArrowAngle},{name:"target",x:A.arrowEndX,y:A.arrowEndY,angle:A.tgtArrowAngle},{name:"mid-source",x:A.midX,y:A.midY,angle:A.midsrcArrowAngle},{name:"mid-target",x:A.midX,y:A.midY,angle:A.midtgtArrowAngle}],V=0;V<X.length;V++){var J=X[V],H=a.arrowShapes[k.pstyle(J.name+"-arrow-shape").value],te=k.pstyle("width").pfValue;if(H.roughCollide(e,t,W,J.angle,{x:J.x,y:J.y},te,d)&&H.collide(e,t,W,J.angle,{x:J.x,y:J.y},te,d))return C(k),!0}u&&l.length>0&&(w(P),w(F))}f(_,"b"),s(_,"checkEdge");function S(k,E,A){return uo(k,E,A)}f(S,"T"),s(S,"preprop");function R(k,E){var A=k._private,I=g,$;E?$=E+"-":$="",k.boundingBox();var O=A.labelBounds[E||"main"],j=k.pstyle($+"label").value,D=k.pstyle("text-events").strValue==="yes";if(!(!D||!j)){var P=S(A.rscratch,"labelX",E),F=S(A.rscratch,"labelY",E),U=S(A.rscratch,"labelAngle",E),z=k.pstyle($+"text-margin-x").pfValue,V=k.pstyle($+"text-margin-y").pfValue,W=O.x1-I-z,X=O.x2+I-z,J=O.y1-I-V,H=O.y2+I-V;if(U){var te=Math.cos(U),ie=Math.sin(U),oe=s(function(de,we){return de=de-P,we=we-F,{x:de*te-we*ie+P,y:de*ie+we*te+F}},"rotate"),he=oe(W,J),pe=oe(W,H),se=oe(X,J),le=oe(X,H),ue=[he.x+z,he.y+V,se.x+z,se.y+V,le.x+z,le.y+V,pe.x+z,pe.y+V];if(po(e,t,ue))return C(k),!0}else if(cd(O,e,t))return C(k),!0}}f(R,"w"),s(R,"checkLabel");for(var b=o.length-1;b>=0;b--){var v=o[b];v.isNode()?w(v)||R(v):_(v)||R(v)||R(v,"source")||R(v,"target")}return l},Up.getAllInBox=function(e,t,r,i){var n=this.getCachedZSortedEles().interactive,a=this.cy.zoom(),o=2/a,l=[],h=Math.min(e,r),u=Math.max(e,r),d=Math.min(t,i),p=Math.max(t,i);e=h,r=u,t=d,i=p;var g=js({x1:e,y1:t,x2:r,y2:i}),m=[{x:g.x1,y:g.y1},{x:g.x2,y:g.y1},{x:g.x2,y:g.y2},{x:g.x1,y:g.y2}],y=[[m[0],m[1]],[m[1],m[2]],[m[2],m[3]],[m[3],m[0]]];function x(we,De,Ge){return uo(we,De,Ge)}f(x,"y"),s(x,"preprop");function C(we,De){var Ge=we._private,be=o,qe="";we.boundingBox();var Ie=Ge.labelBounds.main;if(!Ie)return null;var Be=x(Ge.rscratch,"labelX",De),ke=x(Ge.rscratch,"labelY",De),Qe=x(Ge.rscratch,"labelAngle",De),Pe=we.pstyle(qe+"text-margin-x").pfValue,ht=we.pstyle(qe+"text-margin-y").pfValue,Xe=Ie.x1-be-Pe,dt=Ie.x2+be-Pe,at=Ie.y1-be-ht,kt=Ie.y2+be-ht;if(Qe){var Le=Math.cos(Qe),lt=Math.sin(Qe),ve=s(function(tt,Q){return tt=tt-Be,Q=Q-ke,{x:tt*Le-Q*lt+Be,y:tt*lt+Q*Le+ke}},"rotate");return[ve(Xe,at),ve(dt,at),ve(dt,kt),ve(Xe,kt)]}else return[{x:Xe,y:at},{x:dt,y:at},{x:dt,y:kt},{x:Xe,y:kt}]}f(C,"v"),s(C,"getRotatedLabelBox");function w(we,De,Ge,be){function qe(Ie,Be,ke){return(ke.y-Ie.y)*(Be.x-Ie.x)>(Be.y-Ie.y)*(ke.x-Ie.x)}return f(qe,"Ee"),s(qe,"ccw"),qe(we,Ge,be)!==qe(De,Ge,be)&&qe(we,De,Ge)!==qe(we,De,be)}f(w,"x"),s(w,"doLinesIntersect");for(var _=0;_<n.length;_++){var S=n[_];if(S.isNode()){var R=S,b=R.pstyle("text-events").strValue==="yes",v=R.pstyle("box-selection").strValue,k=R.pstyle("box-select-labels").strValue==="yes";if(v==="none")continue;var E=(v==="overlap"||k)&&b,A=R.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:E});if(v==="contain"){var I=!1;if(k&&b){var $=C(R);$&&W_($,m)&&(l.push(R),I=!0)}!I&&JG(g,A)&&l.push(R)}else if(v==="overlap"&&f7(g,A)){var O=R.boundingBox({includeNodes:!0,includeEdges:!0,includeLabels:!1,includeMainLabels:!1,includeSourceLabels:!1,includeTargetLabels:!1}),j=[{x:O.x1,y:O.y1},{x:O.x2,y:O.y1},{x:O.x2,y:O.y2},{x:O.x1,y:O.y2}];if(W_(j,m))l.push(R);else{var D=C(R);D&&W_(D,m)&&l.push(R)}}}else{var P=S,F=P._private,U=F.rscratch,z=P.pstyle("box-selection").strValue;if(z==="none")continue;if(z==="contain"){if(U.startX!=null&&U.startY!=null&&!cd(g,U.startX,U.startY)||U.endX!=null&&U.endY!=null&&!cd(g,U.endX,U.endY))continue;if(U.edgeType==="bezier"||U.edgeType==="multibezier"||U.edgeType==="self"||U.edgeType==="compound"||U.edgeType==="segments"||U.edgeType==="haystack"){for(var V=F.rstyle.bezierPts||F.rstyle.linePts||F.rstyle.haystackPts,W=!0,X=0;X<V.length;X++)if(!QG(g,V[X])){W=!1;break}W&&l.push(P)}else U.edgeType==="straight"&&l.push(P)}else if(z==="overlap"){var J=!1;if(U.startX!=null&&U.startY!=null&&U.endX!=null&&U.endY!=null&&(cd(g,U.startX,U.startY)||cd(g,U.endX,U.endY)))l.push(P),J=!0;else if(!J&&U.edgeType==="haystack"){for(var H=F.rstyle.haystackPts,te=0;te<H.length;te++)if(QG(g,H[te])){l.push(P),J=!0;break}}if(!J){var ie=F.rstyle.bezierPts||F.rstyle.linePts||F.rstyle.haystackPts;if((!ie||ie.length<2)&&U.edgeType==="straight"&&U.startX!=null&&U.startY!=null&&U.endX!=null&&U.endY!=null&&(ie=[{x:U.startX,y:U.startY},{x:U.endX,y:U.endY}]),!ie||ie.length<2)continue;for(var oe=0;oe<ie.length-1;oe++){for(var he=ie[oe],pe=ie[oe+1],se=0;se<y.length;se++){var le=Ea(y[se],2),ue=le[0],de=le[1];if(w(he,pe,ue,de)){l.push(P),J=!0;break}}if(J)break}}}}}return l},mk={},mk.calculateArrowAngles=function(e){var t=e._private.rscratch,r=t.edgeType==="haystack",i=t.edgeType==="bezier",n=t.edgeType==="multibezier",a=t.edgeType==="segments",o=t.edgeType==="compound",l=t.edgeType==="self",h,u,d,p,g,m,w,_;if(r?(d=t.haystackPts[0],p=t.haystackPts[1],g=t.haystackPts[2],m=t.haystackPts[3]):(d=t.arrowStartX,p=t.arrowStartY,g=t.arrowEndX,m=t.arrowEndY),w=t.midX,_=t.midY,a)h=d-t.segpts[0],u=p-t.segpts[1];else if(n||o||l||i){var y=t.allpts,x=Za(y[0],y[2],y[4],.1),C=Za(y[1],y[3],y[5],.1);h=d-x,u=p-C}else h=d-w,u=p-_;t.srcArrowAngle=U3(h,u);var w=t.midX,_=t.midY;if(r&&(w=(d+g)/2,_=(p+m)/2),h=g-d,u=m-p,a){var y=t.allpts;if(y.length/2%2===0){var S=y.length/2,R=S-2;h=y[S]-y[R],u=y[S+1]-y[R+1]}else if(t.isRound)h=t.midVector[1],u=-t.midVector[0];else{var S=y.length/2-1,R=S-2;h=y[S]-y[R],u=y[S+1]-y[R+1]}}else if(n||o||l){var y=t.allpts,b=t.ctrlpts,v,k,E,A;if(b.length/2%2===0){var I=y.length/2-1,$=I+2,O=$+2;v=Za(y[I],y[$],y[O],0),k=Za(y[I+1],y[$+1],y[O+1],0),E=Za(y[I],y[$],y[O],1e-4),A=Za(y[I+1],y[$+1],y[O+1],1e-4)}else{var $=y.length/2-1,I=$-2,O=$+2;v=Za(y[I],y[$],y[O],.4999),k=Za(y[I+1],y[$+1],y[O+1],.4999),E=Za(y[I],y[$],y[O],.5),A=Za(y[I+1],y[$+1],y[O+1],.5)}h=E-v,u=A-k}
vendor: 10,387 bytes, line 577
577if(t.midtgtArrowAngle=U3(h,u),t.midDispX=h,t.midDispY=u,h*=-1,u*=-1,a){var y=t.allpts;if(y.length/2%2!==0&&!t.isRound){var S=y.length/2-1,j=S+2;h=-(y[j]-y[S]),u=-(y[j+1]-y[S+1])}}if(t.midsrcArrowAngle=U3(h,u),a)h=g-t.segpts[t.segpts.length-2],u=m-t.segpts[t.segpts.length-1];else if(n||o||l||i){var y=t.allpts,D=y.length,x=Za(y[D-6],y[D-4],y[D-2],.9),C=Za(y[D-5],y[D-3],y[D-1],.9);h=g-x,u=m-C}else h=g-w,u=m-_;t.tgtArrowAngle=U3(h,u)},mk.getArrowWidth=mk.getArrowHeight=function(e,t){var r=this.arrowWidthCache=this.arrowWidthCache||{},i=r[e+", "+t];return i||(i=Math.max(Math.pow(e*13.37,.9),29)*t,r[e+", "+t]=i,i)},Dc={},ll={},cW=s(function(e,t,r){r.x=t.x-e.x,r.y=t.y-e.y,r.len=Math.sqrt(r.x*r.x+r.y*r.y),r.nx=r.x/r.len,r.ny=r.y/r.len,r.ang=Math.atan2(r.ny,r.nx)},"asVec"),Wze=s(function(e,t){t.x=e.x*-1,t.y=e.y*-1,t.nx=e.nx*-1,t.ny=e.ny*-1,t.ang=e.ang>0?-(Math.PI-e.ang):Math.PI+e.ang},"invertVec"),Hze=s(function(e,t,r,i,n){if(e!==Vze?cW(t,e,Dc):Wze(ll,Dc),cW(t,r,ll),qze=Dc.nx*ll.ny-Dc.ny*ll.nx,jze=Dc.nx*ll.nx-Dc.ny*-ll.ny,bd=Math.asin(Math.max(-1,Math.min(1,qze))),Math.abs(bd)<1e-6){aW=t.x,sW=t.y,Af=u2=0;return}Sf=1,O7=!1,jze<0?bd<0?bd=Math.PI+bd:(bd=Math.PI-bd,Sf=-1,O7=!0):bd>0&&(Sf=-1,O7=!0),t.radius!==void 0?u2=t.radius:u2=i,_f=bd/2,$7=Math.min(Dc.len/2,ll.len/2),n?(Fh=Math.abs(Math.cos(_f)*u2/Math.sin(_f)),Fh>$7?(Fh=$7,Af=Math.abs(Fh*Math.sin(_f)/Math.cos(_f))):Af=u2):(Fh=Math.min($7,u2),Af=Math.abs(Fh*Math.sin(_f)/Math.cos(_f))),oW=t.x+ll.nx*Fh,lW=t.y+ll.ny*Fh,aW=oW-ll.ny*Af*Sf,sW=lW+ll.nx*Af*Sf,Gze=t.x+Dc.nx*Fh,Uze=t.y+Dc.ny*Fh,Vze=t},"calcCornerArc"),s(Xj,"drawPreparedRoundCorner"),s(e7,"getRoundCorner"),d2=.01,Yze=Math.sqrt(2*d2),Ss={},Ss.findMidptPtsEtc=function(e,t){var r=t.posPts,i=t.intersectionPts,n=t.vectorNormInverse,a,o=e.pstyle("source-endpoint"),l=e.pstyle("target-endpoint"),h=o.units!=null&&l.units!=null,u=s(function(R,b,v,k){var E=k-b,A=v-R,I=Math.sqrt(A*A+E*E);return{x:-E/I,y:A/I}},"recalcVectorNormInverse"),d=e.pstyle("edge-distances").value;switch(d){case"node-position":a=r;break;case"intersection":a=i;break;case"endpoints":{if(h){var p=this.manualEndptToPx(e.source()[0],o),g=Ea(p,2),m=g[0],y=g[1],x=this.manualEndptToPx(e.target()[0],l),C=Ea(x,2),w=C[0],_=C[1],S={x1:m,y1:y,x2:w,y2:_};n=u(m,y,w,_),a=S}else Yi("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=i;break}}return{midptPts:a,vectorNormInverse:n}},Ss.findHaystackPoints=function(e){for(var t=0;t<e.length;t++){var r=e[t],i=r._private,n=i.rscratch;if(!n.haystack){var a=Math.random()*2*Math.PI;n.source={x:Math.cos(a),y:Math.sin(a)},a=Math.random()*2*Math.PI,n.target={x:Math.cos(a),y:Math.sin(a)}}var o=i.source,l=i.target,h=o.position(),u=l.position(),d=o.width(),p=l.width(),g=o.height(),m=l.height(),y=r.pstyle("haystack-radius").value,x=y/2;n.haystackPts=n.allpts=[n.source.x*d*x+h.x,n.source.y*g*x+h.y,n.target.x*p*x+u.x,n.target.y*m*x+u.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}},Ss.findSegmentsPoints=function(e,t){var r=e._private.rscratch,i=e.pstyle("segment-weights"),n=e.pstyle("segment-distances"),a=e.pstyle("segment-radii"),o=e.pstyle("radius-type"),l=Math.min(i.pfValue.length,n.pfValue.length),h=a.pfValue[a.pfValue.length-1],u=o.pfValue[o.pfValue.length-1];r.edgeType="segments",r.segpts=[],r.radii=[],r.isArcRadius=[];for(var d=0;d<l;d++){var p=i.pfValue[d],g=n.pfValue[d],m=1-p,y=p,x=this.findMidptPtsEtc(e,t),C=x.midptPts,w=x.vectorNormInverse,_={x:C.x1*m+C.x2*y,y:C.y1*m+C.y2*y};r.segpts.push(_.x+w.x*g,_.y+w.y*g),r.radii.push(a.pfValue[d]!==void 0?a.pfValue[d]:h),r.isArcRadius.push((o.pfValue[d]!==void 0?o.pfValue[d]:u)==="arc-radius")}},Ss.findLoopPoints=function(e,t,r,i){var n=e._private.rscratch,a=t.dirCounts,o=t.srcPos,l=e.pstyle("control-point-distances"),h=l?l.pfValue[0]:void 0,u=e.pstyle("loop-direction").pfValue,d=e.pstyle("loop-sweep").pfValue,p=e.pstyle("control-point-step-size").pfValue;n.edgeType="self";var g=r,m=p;i&&(g=0,m=h);var y=u-Math.PI/2,x=y-d/2,C=y+d/2,w=u+"_"+d;g=a[w]===void 0?a[w]=0:++a[w],n.ctrlpts=[o.x+Math.cos(x)*1.4*m*(g/3+1),o.y+Math.sin(x)*1.4*m*(g/3+1),o.x+Math.cos(C)*1.4*m*(g/3+1),o.y+Math.sin(C)*1.4*m*(g/3+1)]},Ss.findCompoundLoopPoints=function(e,t,r,i){var n=e._private.rscratch;n.edgeType="compound";var a=t.srcPos,o=t.tgtPos,l=t.srcW,h=t.srcH,u=t.tgtW,d=t.tgtH,p=e.pstyle("control-point-step-size").pfValue,g=e.pstyle("control-point-distances"),m=g?g.pfValue[0]:void 0,y=r,x=p;i&&(y=0,x=m);var C=50,w={x:a.x-l/2,y:a.y-h/2},_={x:o.x-u/2,y:o.y-d/2},S={x:Math.min(w.x,_.x),y:Math.min(w.y,_.y)},R=.5,b=Math.max(R,Math.log(l*d2)),v=Math.max(R,Math.log(u*d2));n.ctrlpts=[S.x,S.y-(1+Math.pow(C,1.12)/100)*x*(y/3+1)*b,S.x-(1+Math.pow(C,1.12)/100)*x*(y/3+1)*v,S.y]},Ss.findStraightEdgePoints=function(e){e._private.rscratch.edgeType="straight"},Ss.findBezierPoints=function(e,t,r,i,n){var a=e._private.rscratch,o=e.pstyle("control-point-step-size").pfValue,l=e.pstyle("control-point-distances"),h=e.pstyle("control-point-weights"),u=l&&h?Math.min(l.value.length,h.value.length):1,d=l?l.pfValue[0]:void 0,p=h.value[0],g=i;a.edgeType=g?"multibezier":"bezier",a.ctrlpts=[];for(var m=0;m<u;m++){var y=(.5-t.eles.length/2+r)*o*(n?-1:1),x=void 0,C=g7(y);g&&(d=l?l.pfValue[m]:o,p=h.value[m]),i?x=d:x=d!==void 0?C*d:void 0;var w=x!==void 0?x:y,_=1-p,S=p,R=this.findMidptPtsEtc(e,t),b=R.midptPts,v=R.vectorNormInverse,k={x:b.x1*_+b.x2*S,y:b.y1*_+b.y2*S};a.ctrlpts.push(k.x+v.x*w,k.y+v.y*w)}},Ss.findTaxiPoints=function(e,t){var r=e._private.rscratch;r.edgeType="segments";var i="vertical",n="horizontal",a="leftward",o="rightward",l="downward",h="upward",u="auto",d=t.posPts,p=t.srcW,g=t.srcH,m=t.tgtW,y=t.tgtH,x=e.pstyle("edge-distances").value,C=x!=="node-position",w=e.pstyle("taxi-direction").value,_=w,S=e.pstyle("taxi-turn"),R=S.units==="%",b=S.pfValue,v=b<0,k=e.pstyle("taxi-turn-min-distance").pfValue,E=C?(p+m)/2:0,A=C?(g+y)/2:0,I=d.x2-d.x1,$=d.y2-d.y1,O=s(function(Q,xe){return Q>0?Math.max(Q-xe,0):Math.min(Q+xe,0)},"subDWH"),j=O(I,E),D=O($,A),P=!1;_===u?w=Math.abs(j)>Math.abs(D)?n:i:_===h||_===l?(w=i,P=!0):(_===a||_===o)&&(w=n,P=!0);var F=w===i,U=F?D:j,z=F?$:I,V=g7(z),W=!1;!(P&&(R||v))&&(_===l&&z<0||_===h&&z>0||_===a&&z>0||_===o&&z<0)&&(V*=-1,U=V*Math.abs(U),W=!0);var X;if(R){var J=b<0?1+b:b;X=J*U}else{var H=b<0?U:0;X=H+b*V}var te=s(function(Q){return Math.abs(Q)<k||Math.abs(Q)>=Math.abs(U)},"getIsTooClose"),ie=te(X),oe=te(Math.abs(U)-Math.abs(X)),he=ie||oe;if(he&&!W)if(F){var pe=Math.abs(z)<=g/2,se=Math.abs(I)<=m/2;if(pe){var le=(d.x1+d.x2)/2,ue=d.y1,de=d.y2;r.segpts=[le,ue,le,de]}else if(se){var we=(d.y1+d.y2)/2,De=d.x1,Ge=d.x2;r.segpts=[De,we,Ge,we]}else r.segpts=[d.x1,d.y2]}else{var be=Math.abs(z)<=p/2,qe=Math.abs($)<=y/2;if(be){var Ie=(d.y1+d.y2)/2,Be=d.x1,ke=d.x2;r.segpts=[Be,Ie,ke,Ie]}else if(qe){var Qe=(d.x1+d.x2)/2,Pe=d.y1,ht=d.y2;r.segpts=[Qe,Pe,Qe,ht]}else r.segpts=[d.x2,d.y1]}else if(F){var Xe=d.y1+X+(C?g/2*V:0),dt=d.x1,at=d.x2;r.segpts=[dt,Xe,at,Xe]}else{var kt=d.x1+X+(C?p/2*V:0),Le=d.y1,lt=d.y2;r.segpts=[kt,Le,kt,lt]}if(r.isRound){var ve=e.pstyle("taxi-radius").value,tt=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ve),r.isArcRadius=new Array(r.segpts.length/2).fill(tt)}},Ss.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var i=t.srcPos,n=t.tgtPos,a=t.srcW,o=t.srcH,l=t.tgtW,h=t.tgtH,u=t.srcShape,d=t.tgtShape,p=t.srcCornerRadius,g=t.tgtCornerRadius,m=t.srcRs,y=t.tgtRs,x=!ir(r.startX)||!ir(r.startY),C=!ir(r.arrowStartX)||!ir(r.arrowStartY),w=!ir(r.endX)||!ir(r.endY),_=!ir(r.arrowEndX)||!ir(r.arrowEndY),S=3,R=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,b=S*R,v=Pp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),k=v<b,E=Pp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),A=E<b,I=!1;if(x||C||k){I=!0;var $={x:r.ctrlpts[0]-i.x,y:r.ctrlpts[1]-i.y},O=Math.sqrt($.x*$.x+$.y*$.y),j={x:$.x/O,y:$.y/O},D=Math.max(a,o),P={x:r.ctrlpts[0]+j.x*2*D,y:r.ctrlpts[1]+j.y*2*D},F=u.intersectLine(i.x,i.y,a,o,P.x,P.y,0,p,m);k?(r.ctrlpts[0]=r.ctrlpts[0]+j.x*(b-v),r.ctrlpts[1]=r.ctrlpts[1]+j.y*(b-v)):(r.ctrlpts[0]=F[0]+j.x*b,r.ctrlpts[1]=F[1]+j.y*b)}if(w||_||A){I=!0;var U={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},z=Math.sqrt(U.x*U.x+U.y*U.y),V={x:U.x/z,y:U.y/z},W=Math.max(a,o),X={x:r.ctrlpts[0]+V.x*2*W,y:r.ctrlpts[1]+V.y*2*W},J=d.intersectLine(n.x,n.y,l,h,X.x,X.y,0,g,y);A?(r.ctrlpts[0]=r.ctrlpts[0]+V.x*(b-E),r.ctrlpts[1]=r.ctrlpts[1]+V.y*(b-E)):(r.ctrlpts[0]=J[0]+V.x*b,r.ctrlpts[1]=J[1]+V.y*b)}I&&this.findEndpoints(e)}},Ss.storeAllpts=function(e){var t=e._private.rscratch;if(t.edgeType==="multibezier"||t.edgeType==="bezier"||t.edgeType==="self"||t.edgeType==="compound"){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var r=0;r+1<t.ctrlpts.length;r+=2)t.allpts.push(t.ctrlpts[r],t.ctrlpts[r+1]),r+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[r]+t.ctrlpts[r+2])/2,(t.ctrlpts[r+1]+t.ctrlpts[r+3])/2);t.allpts.push(t.endX,t.endY);var i,n;t.ctrlpts.length/2%2===0?(i=t.allpts.length/2-1,t.midX=t.allpts[i],t.midY=t.allpts[i+1]):(i=t.allpts.length/2-3,n=.5,t.midX=Za(t.allpts[i],t.allpts[i+2],t.allpts[i+4],n),t.midY=Za(t.allpts[i+1],t.allpts[i+3],t.allpts[i+5],n))}else if(t.edgeType==="straight")t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if(t.edgeType==="segments"){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var a=2;a+3<t.allpts.length;a+=2){var o=t.radii[a/2-1],l=t.isArcRadius[a/2-1];t.roundCorners.push(e7({x:t.allpts[a-2],y:t.allpts[a-1]},{x:t.allpts[a],y:t.allpts[a+1],radius:o},{x:t.allpts[a+2],y:t.allpts[a+3]},o,l))}}if(t.segpts.length%4===0){var h=t.segpts.length/2,u=h-2;t.midX=(t.segpts[u]+t.segpts[h])/2,t.midY=(t.segpts[u+1]+t.segpts[h+1])/2}else{var d=t.segpts.length/2-1;if(!t.isRound)t.midX=t.segpts[d],t.midY=t.segpts[d+1];else{var p={x:t.segpts[d],y:t.segpts[d+1]},g=t.roundCorners[d/2];if(g.radius===0){var m={x:t.segpts[d+2],y:t.segpts[d+3]};
vendor: 23,201 bytes, lines 577-580
577t.midX=p.x,t.midY=p.y,t.midVector=[p.y-m.y,m.x-p.x]}else{var y=[p.x-g.cx,p.y-g.cy],x=g.radius/Math.sqrt(Math.pow(y[0],2)+Math.pow(y[1],2));y=y.map(function(C){return C*x}),t.midX=g.cx+y[0],t.midY=g.cy+y[1],t.midVector=y}}}}},Ss.checkForInvalidEdgeWarning=function(e){var t=e[0]._private.rscratch;t.nodesOverlap||ir(t.startX)&&ir(t.startY)&&ir(t.endX)&&ir(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,Yi("Edge `"+e.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Ss.findEdgeControlPoints=function(e){var t=this;if(!(!e||e.length===0)){for(var r=this,i=r.cy,n=i.hasCompoundNodes(),a=new Bh,o=s(function(E,A){return[].concat(w3(E),[A?1:0]).join("-")},"getKey"),l=[],h=[],u=0;u<e.length;u++){var d=e[u],p=d._private,g=d.pstyle("curve-style").value;if(!(d.removed()||!d.takesUpSpace())){if(g==="haystack"){h.push(d);continue}var m=g==="unbundled-bezier"||sd(g,"segments")||g==="straight"||g==="straight-triangle"||sd(g,"taxi"),y=g==="unbundled-bezier"||g==="bezier",x=p.source,C=p.target,w=x.poolIndex(),_=C.poolIndex(),S=[w,_].sort(),R=o(S,m),b=a.get(R);b==null&&(b={eles:[]},l.push({pairId:S,edgeIsUnbundled:m}),a.set(R,b)),b.eles.push(d),m&&(b.hasUnbundled=!0),y&&(b.hasBezier=!0)}}for(var v=s(function(){var E=l[k],A=E.pairId,I=E.edgeIsUnbundled,$=o(A,I),O=a.get($),j;if(!O.hasUnbundled){var D=O.eles[0].parallelEdges().filter(function(ve){return ve.isBundledBezier()});h7(O.eles),D.forEach(function(ve){return O.eles.push(ve)}),O.eles.sort(function(ve,tt){return ve.poolIndex()-tt.poolIndex()})}var P=O.eles[0],F=P.source(),U=P.target();if(F.poolIndex()>U.poolIndex()){var z=F;F=U,U=z}var V=O.srcPos=F.position(),W=O.tgtPos=U.position(),X=O.srcW=F.outerWidth(),J=O.srcH=F.outerHeight(),H=O.tgtW=U.outerWidth(),te=O.tgtH=U.outerHeight(),ie=O.srcShape=r.nodeShapes[t.getNodeShape(F)],oe=O.tgtShape=r.nodeShapes[t.getNodeShape(U)],he=O.srcCornerRadius=F.pstyle("corner-radius").value==="auto"?"auto":F.pstyle("corner-radius").pfValue,pe=O.tgtCornerRadius=U.pstyle("corner-radius").value==="auto"?"auto":U.pstyle("corner-radius").pfValue,se=O.tgtRs=U._private.rscratch,le=O.srcRs=F._private.rscratch;O.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ue=0;ue<O.eles.length;ue++){var de=O.eles[ue],we=de[0]._private.rscratch,De=de.pstyle("curve-style").value,Ge=De==="unbundled-bezier"||sd(De,"segments")||sd(De,"taxi"),be=!F.same(de.source());if(!O.calculatedIntersection&&F!==U&&(O.hasBezier||O.hasUnbundled)){O.calculatedIntersection=!0;var qe=ie.intersectLine(V.x,V.y,X,J,W.x,W.y,0,he,le),Ie=O.srcIntn=qe,Be=oe.intersectLine(W.x,W.y,H,te,V.x,V.y,0,pe,se),ke=O.tgtIntn=Be,Qe=O.intersectionPts={x1:qe[0],x2:Be[0],y1:qe[1],y2:Be[1]},Pe=O.posPts={x1:V.x,x2:W.x,y1:V.y,y2:W.y},ht=Be[1]-qe[1],Xe=Be[0]-qe[0],dt=Math.sqrt(Xe*Xe+ht*ht);ir(dt)&&dt>=Yze||(dt=Math.sqrt(Math.max(Xe*Xe,d2)+Math.max(ht*ht,d2)));var at=O.vector={x:Xe,y:ht},kt=O.vectorNorm={x:at.x/dt,y:at.y/dt},Le={x:-kt.y,y:kt.x};O.nodesOverlap=!ir(dt)||oe.checkPoint(qe[0],qe[1],0,H,te,W.x,W.y,pe,se)||ie.checkPoint(Be[0],Be[1],0,X,J,V.x,V.y,he,le),O.vectorNormInverse=Le,j={nodesOverlap:O.nodesOverlap,dirCounts:O.dirCounts,calculatedIntersection:!0,hasBezier:O.hasBezier,hasUnbundled:O.hasUnbundled,eles:O.eles,srcPos:W,srcRs:se,tgtPos:V,tgtRs:le,srcW:H,srcH:te,tgtW:X,tgtH:J,srcIntn:ke,tgtIntn:Ie,srcShape:oe,tgtShape:ie,posPts:{x1:Pe.x2,y1:Pe.y2,x2:Pe.x1,y2:Pe.y1},intersectionPts:{x1:Qe.x2,y1:Qe.y2,x2:Qe.x1,y2:Qe.y1},vector:{x:-at.x,y:-at.y},vectorNorm:{x:-kt.x,y:-kt.y},vectorNormInverse:{x:-Le.x,y:-Le.y}}}var lt=be?j:O;we.nodesOverlap=lt.nodesOverlap,we.srcIntn=lt.srcIntn,we.tgtIntn=lt.tgtIntn,we.isRound=De.startsWith("round"),n&&(F.isParent()||F.isChild()||U.isParent()||U.isChild())&&(F.parents().anySame(U)||U.parents().anySame(F)||F.same(U)&&F.isParent())?t.findCompoundLoopPoints(de,lt,ue,Ge):F===U?t.findLoopPoints(de,lt,ue,Ge):De.endsWith("segments")?t.findSegmentsPoints(de,lt):De.endsWith("taxi")?t.findTaxiPoints(de,lt):De==="straight"||!Ge&&O.eles.length%2===1&&ue===Math.floor(O.eles.length/2)?t.findStraightEdgePoints(de):t.findBezierPoints(de,lt,ue,Ge,be),t.findEndpoints(de),t.tryToCorrectInvalidPoints(de,lt),t.checkForInvalidEdgeWarning(de),t.storeAllpts(de),t.storeEdgeProjections(de),t.calculateArrowAngles(de),t.recalculateEdgeLabelProjections(de),t.calculateLabelAngles(de)}},"_loop"),k=0;k<l.length;k++)v();this.findHaystackPoints(h)}},s(Kj,"getPts"),Ss.getSegmentPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var r=t.edgeType;if(r==="segments")return Kj(t.segpts)},Ss.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var r=t.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return Kj(t.ctrlpts)},Ss.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}},p2={},p2.manualEndptToPx=function(e,t){var r=this,i=e.position(),n=e.outerWidth(),a=e.outerHeight(),o=e._private.rscratch;if(t.value.length===2){var l=[t.pfValue[0],t.pfValue[1]];return t.units[0]==="%"&&(l[0]=l[0]*n),t.units[1]==="%"&&(l[1]=l[1]*a),l[0]+=i.x,l[1]+=i.y,l}else{var h=t.pfValue[0];h=-Math.PI/2+h;var u=2*Math.max(n,a),d=[i.x+Math.cos(h)*u,i.y+Math.sin(h)*u];return r.nodeShapes[this.getNodeShape(e)].intersectLine(i.x,i.y,n,a,d[0],d[1],0,e.pstyle("corner-radius").value==="auto"?"auto":e.pstyle("corner-radius").pfValue,o)}},p2.findEndpoints=function(e){var t,r,i,n,a=this,o,l=e.source()[0],h=e.target()[0],u=l.position(),d=h.position(),p=e.pstyle("target-arrow-shape").value,g=e.pstyle("source-arrow-shape").value,m=e.pstyle("target-distance-from-node").pfValue,y=e.pstyle("source-distance-from-node").pfValue,x=l._private.rscratch,C=h._private.rscratch,w=e.pstyle("curve-style").value,_=e._private.rscratch,S=_.edgeType,R=sd(w,"taxi"),b=S==="self"||S==="compound",v=S==="bezier"||S==="multibezier"||b,k=S!=="bezier",E=S==="straight"||S==="segments",A=S==="segments",I=v||k||E,$=b||R,O=e.pstyle("source-endpoint"),j=$?"outside-to-node":O.value,D=l.pstyle("corner-radius").value==="auto"?"auto":l.pstyle("corner-radius").pfValue,P=e.pstyle("target-endpoint"),F=$?"outside-to-node":P.value,U=h.pstyle("corner-radius").value==="auto"?"auto":h.pstyle("corner-radius").pfValue;_.srcManEndpt=O,_.tgtManEndpt=P;var z,V,W,X,J=(t=(P==null||(r=P.pfValue)===null||r===void 0?void 0:r.length)===2?P.pfValue:null)!==null&&t!==void 0?t:[0,0],H=(i=(O==null||(n=O.pfValue)===null||n===void 0?void 0:n.length)===2?O.pfValue:null)!==null&&i!==void 0?i:[0,0];if(v){var te=[_.ctrlpts[0],_.ctrlpts[1]],ie=k?[_.ctrlpts[_.ctrlpts.length-2],_.ctrlpts[_.ctrlpts.length-1]]:te;z=ie,V=te}else if(E){var oe=A?_.segpts.slice(0,2):[d.x+J[0],d.y+J[1]],he=A?_.segpts.slice(_.segpts.length-2):[u.x+H[0],u.y+H[1]];z=he,V=oe}if(F==="inside-to-node")o=[d.x,d.y];else if(P.units)o=this.manualEndptToPx(h,P);else if(F==="outside-to-line")o=_.tgtIntn;else if(F==="outside-to-node"||F==="outside-to-node-or-label"?W=z:(F==="outside-to-line"||F==="outside-to-line-or-label")&&(W=[u.x,u.y]),o=a.nodeShapes[this.getNodeShape(h)].intersectLine(d.x,d.y,h.outerWidth(),h.outerHeight(),W[0],W[1],0,U,C),F==="outside-to-node-or-label"||F==="outside-to-line-or-label"){var pe=h._private.rscratch,se=pe.labelWidth,le=pe.labelHeight,ue=pe.labelX,de=pe.labelY,we=se/2,De=le/2,Ge=h.pstyle("text-valign").value;Ge==="top"?de-=De:Ge==="bottom"&&(de+=De);var be=h.pstyle("text-halign").value;be==="left"?ue-=we:be==="right"&&(ue+=we);var qe=r2(W[0],W[1],[ue-we,de-De,ue+we,de-De,ue+we,de+De,ue-we,de+De],d.x,d.y);if(qe.length>0){var Ie=u,Be=Fp(Ie,ff(o)),ke=Fp(Ie,ff(qe)),Qe=Be;if(ke<Be&&(o=qe,Qe=ke),qe.length>2){var Pe=Fp(Ie,{x:qe[2],y:qe[3]});Pe<Qe&&(o=[qe[2],qe[3]])}}}var ht=X3(o,z,a.arrowShapes[p].spacing(e)+m),Xe=X3(o,z,a.arrowShapes[p].gap(e)+m);if(_.endX=Xe[0],_.endY=Xe[1],_.arrowEndX=ht[0],_.arrowEndY=ht[1],j==="inside-to-node")o=[u.x,u.y];else if(O.units)o=this.manualEndptToPx(l,O);else if(j==="outside-to-line")o=_.srcIntn;else if(j==="outside-to-node"||j==="outside-to-node-or-label"?X=V:(j==="outside-to-line"||j==="outside-to-line-or-label")&&(X=[d.x,d.y]),o=a.nodeShapes[this.getNodeShape(l)].intersectLine(u.x,u.y,l.outerWidth(),l.outerHeight(),X[0],X[1],0,D,x),j==="outside-to-node-or-label"||j==="outside-to-line-or-label"){var dt=l._private.rscratch,at=dt.labelWidth,kt=dt.labelHeight,Le=dt.labelX,lt=dt.labelY,ve=at/2,tt=kt/2,Q=l.pstyle("text-valign").value;Q==="top"?lt-=tt:Q==="bottom"&&(lt+=tt);var xe=l.pstyle("text-halign").value;xe==="left"?Le-=ve:xe==="right"&&(Le+=ve);var ae=r2(X[0],X[1],[Le-ve,lt-tt,Le+ve,lt-tt,Le+ve,lt+tt,Le-ve,lt+tt],u.x,u.y);if(ae.length>0){var _e=d,Se=Fp(_e,ff(o)),Je=Fp(_e,ff(ae)),Re=Se;if(Je<Se&&(o=[ae[0],ae[1]],Re=Je),ae.length>2){var et=Fp(_e,{x:ae[2],y:ae[3]});et<Re&&(o=[ae[2],ae[3]])}}}var ze=X3(o,V,a.arrowShapes[g].spacing(e)+y),Ke=X3(o,V,a.arrowShapes[g].gap(e)+y);_.startX=Ke[0],_.startY=Ke[1],_.arrowStartX=ze[0],_.arrowStartY=ze[1],I&&(!ir(_.startX)||!ir(_.startY)||!ir(_.endX)||!ir(_.endY)?_.badLine=!0:_.badLine=!1)},p2.getSourceEndpoint=function(e){var t=e[0]._private.rscratch;return(this.recalculateRenderedStyle(e),t.edgeType)==="haystack"?{x:t.haystackPts[0],y:t.haystackPts[1]}:{x:t.arrowStartX,y:t.arrowStartY}},p2.getTargetEndpoint=function(e){var t=e[0]._private.rscratch;return(this.recalculateRenderedStyle(e),t.edgeType)==="haystack"?{x:t.haystackPts[2],y:t.haystackPts[3]}:{x:t.arrowEndX,y:t.arrowEndY}},B7={},s(oOe,"pushBezierPts"),B7.storeEdgeProjections=function(e){var t=e._private,r=t.rscratch,i=r.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,i==="multibezier"||i==="bezier"||i==="self"||i==="compound"){t.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)oOe(this,e,r.allpts.slice(n,n+6))}else if(i==="segments")for(var a=t.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)a.push({x:r.allpts[n],y:r.allpts[n+1]});else if(i==="haystack"){var o=r.haystackPts;t.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth},B7.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)},Nc={},Nc.recalculateNodeLabelProjection=function(e){var t=e.pstyle("label").strValue;if(!ad(t)){var r,i,n=e._private,a=e.width(),o=e.height(),l=e.padding(),h=e.position(),u=e.pstyle("text-halign").strValue,d=e.pstyle("text-valign").strValue,p=n.rscratch,g=n.rstyle;switch(u){case"left":r=h.x-a/2-l;break;case"right":r=h.x+a/2+l;break;default:r=h.x}switch(d){case"top":i=h.y-o/2-l;break;case"bottom":i=h.y+o/2+l;break;default:i=h.y}p.labelX=r,p.labelY=i,g.labelX=r,g.labelY=i,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}},hW=s(function(e,t){var r=Math.atan(t/e);return e===0&&r<0&&(r=r*-1),r},"lineAngleFromDelta"),uW=s(function(e,t){var r=t.x-e.x,i=t.y-e.y;return hW(r,i)},"lineAngle"),Xze=s(function(e,t,r,i){var n=e2(0,i-.001,1),a=e2(0,i+.001,1),o=mf(e,t,r,n),l=mf(e,t,r,a);return uW(o,l)},"bezierAngle"),Nc.recalculateEdgeLabelProjections=function(e){var t,r=e._private,i=r.rscratch,n=this,a={mid:e.pstyle("label").strValue,source:e.pstyle("source-label").strValue,target:e.pstyle("target-label").strValue};if(a.mid||a.source||a.target){t={x:i.midX,y:i.midY};var o=s(function(d,p,g){$h(r.rscratch,d,p,g),$h(r.rstyle,d,p,g)},"setRs");o("labelX",null,t.x),o("labelY",null,t.y);var l=hW(i.midDispX,i.midDispY);o("labelAutoAngle",null,l);var h=s(function(){if(h.cache)return h.cache;for(var d=[],p=0;p+5<i.allpts.length;p+=4){var g={x:i.allpts[p],y:i.allpts[p+1]},m={x:i.allpts[p+2],y:i.allpts[p+3]},y={x:i.allpts[p+4],y:i.allpts[p+5]};d.push({p0:g,p1:m,p2:y,startDist:0,length:0,segments:[]})}var x=r.rstyle.bezierPts,C=n.bezierProjPcts.length;function w(v,k,E,A,I){var $=Pp(k,E),O=v.segments[v.segments.length-1],j={p0:k,p1:E,t0:A,t1:I,startDist:O?O.startDist+O.length:0,length:$};v.segments.push(j),v.length+=$}f(w,"b"),s(w,"addSegment");for(var _=0;_<d.length;_++){var S=d[_],R=d[_-1];R&&(S.startDist=R.startDist+R.length),w(S,S.p0,x[_*C],0,n.bezierProjPcts[0]);for(var b=0;b<C-1;b++)w(S,x[_*C+b],x[_*C+b+1],n.bezierProjPcts[b],n.bezierProjPcts[b+1]);w(S,x[_*C+C-1],S.p2,n.bezierProjPcts[C-1],1)}return h.cache=d},"createControlPointInfo"),u=s(function(d){var p,g=d==="source";if(a[d]){var m=e.pstyle(d+"-text-offset").pfValue;switch(i.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var y=h(),x,C=0,w=0,_=0;_<y.length;_++){for(var S=y[g?_:y.length-1-_],R=0;R<S.segments.length;R++){var b=S.segments[g?R:S.segments.length-1-R],v=_===y.length-1&&R===S.segments.length-1;if(C=w,w+=b.length,w>=m||v){x={cp:S,segment:b};break}}if(x)break}var k=x.cp,E=x.segment,A=(m-C)/E.length,I=E.t1-E.t0,$=g?E.t0+I*A:E.t1-I*A;$=e2(0,$,1),t=mf(k.p0,k.p1,k.p2,$),p=Xze(k.p0,k.p1,k.p2,$);break}case"straight":case"segments":case"haystack":{for(var O=0,j,D,P,F,U=i.allpts.length,z=0;z+3<U&&(g?(P={x:i.allpts[z],y:i.allpts[z+1]},F={x:i.allpts[z+2],y:i.allpts[z+3]}):(P={x:i.allpts[U-2-z],y:i.allpts[U-1-z]},F={x:i.allpts[U-4-z],y:i.allpts[U-3-z]}),j=Pp(P,F),D=O,O+=j,!(O>=m));z+=2);var V=m-D,W=V/j;W=e2(0,W,1),t=oBe(P,F,W),p=uW(P,F);break}}o("labelX",d,t.x),o("labelY",d,t.y),o("labelAutoAngle",d,p)}},"calculateEndProjection");u("source"),u("target"),this.applyLabelDimensions(e)}},Nc.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Nc.applyPrefixedLabelDimensions=function(e,t){var r=e._private,i=this.getLabelText(e,t),n=Bp(i,e._private.labelDimsKey);if(uo(r.rscratch,"prefixedLabelDimsKey",t)!==n){$h(r.rscratch,"prefixedLabelDimsKey",t,n);var a=this.calculateLabelDimensions(e,i),o=e.pstyle("line-height").pfValue,l=e.pstyle("text-wrap").strValue,h=uo(r.rscratch,"labelWrapCachedLines",t)||[],u=l!=="wrap"?1:Math.max(h.length,1),d=a.height/u,p=d*o,g=a.width,m=a.height+(u-1)*(o-1)*d;$h(r.rstyle,"labelWidth",t,g),$h(r.rscratch,"labelWidth",t,g),$h(r.rstyle,"labelHeight",t,m),$h(r.rscratch,"labelHeight",t,m),$h(r.rscratch,"labelLineHeight",t,p)}},Nc.getLabelText=function(e,t){var r=e._private,i=t?t+"-":"",n=e.pstyle(i+"label").strValue,a=e.pstyle("text-transform").value,o=s(function(J,H){return H?($h(r.rscratch,J,t,H),H):uo(r.rscratch,J,t)},"rscratch");if(!n)return"";a=="none"||(a=="uppercase"?n=n.toUpperCase():a=="lowercase"&&(n=n.toLowerCase()));var l=e.pstyle("text-wrap").value;if(l==="wrap"){var h=o("labelKey");if(h!=null&&o("labelWrapKey")===h)return o("labelWrapCachedText");for(var u="\u200B",d=n.split(` 578`),p=e.pstyle("text-max-width").pfValue,g=e.pstyle("text-overflow-wrap").value,m=g==="anywhere",y=[],x=/[\s\u200b]+|$/g,C=0;C<d.length;C++){var w=d[C],_=this.calculateLabelDimensions(e,w),S=_.width;if(m){var R=w.split("").join(u);w=R}if(S>p){var b=w.matchAll(x),v="",k=0,E=ho(b),A;try{for(E.s();!(A=E.n()).done;){var I=A.value,$=I[0],O=w.substring(k,I.index);k=I.index+$.length;var j=v.length===0?O:v+O+$,D=this.calculateLabelDimensions(e,j),P=D.width;P<=p?v+=O+$:(v&&y.push(v),v=O+$)}}catch(J){E.e(J)}finally{E.f()}v.match(/^[\s\u200b]+$/)||y.push(v)}else y.push(w)}o("labelWrapCachedLines",y),n=o("labelWrapCachedText",y.join(` 579`)),o("labelWrapKey",h)}else if(l==="ellipsis"){var F=e.pstyle("text-max-width").pfValue,U="",z="\u2026",V=!1;if(this.calculateLabelDimensions(e,n).width<F)return n;for(var W=0;W<n.length;W++){var X=this.calculateLabelDimensions(e,U+n[W]+z).width;if(X>F)break;U+=n[W],W===n.length-1&&(V=!0)}return V||(U+=z),U}return n},Nc.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t},Nc.calculateLabelDimensions=function(e,t){var r=this,i=r.cy.window(),n=i.document,a=0,o=e.pstyle("font-style").strValue,l=e.pstyle("font-size").pfValue,h=e.pstyle("font-family").strValue,u=e.pstyle("font-weight").strValue,d=this.labelCalcCanvas,p=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=n.createElement("canvas"),p=this.labelCalcCanvasContext=d.getContext("2d");var g=d.style;g.position="absolute",g.left="-9999px",g.top="-9999px",g.zIndex="-1",g.visibility="hidden",g.pointerEvents="none"}p.font="".concat(o," ").concat(u," ").concat(l,"px ").concat(h);for(var m=0,y=0,x=t.split(` 580`),C=0;C<x.length;C++){var w=x[C],_=p.measureText(w),S=Math.ceil(_.width),R=l;m=Math.max(S,m),y+=R}return m+=a,y+=a,{width:m,height:y}},Nc.calculateLabelAngle=function(e,t){var r=e._private,i=r.rscratch,n=e.isEdge(),a=t?t+"-":"",o=e.pstyle(a+"text-rotation"),l=o.strValue;return l==="none"?0:n&&l==="autorotate"?i.labelAutoAngle:l==="autorotate"?0:o.pfValue},Nc.calculateLabelAngles=function(e){var t=this,r=e.isEdge(),i=e._private,n=i.rscratch;n.labelAngle=t.calculateLabelAngle(e),r&&(n.sourceLabelAngle=t.calculateLabelAngle(e,"source"),n.targetLabelAngle=t.calculateLabelAngle(e,"target"))},dW={},pW=28,gW=!1,dW.getNodeShape=function(e){var t=this,r=e.pstyle("shape").value;if(r==="cutrectangle"&&(e.width()<pW||e.height()<pW))return gW||(Yi("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),gW=!0),"rectangle";if(e.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var i=e.pstyle("shape-polygon-points").value;return t.nodeShapes.makePolygon(i).name}return r},yk={},yk.registerCalculationListeners=function(){var e=this.cy,t=e.collection(),r=this,i=s(function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(a),o)for(var l=0;l<a.length;l++){var h=a[l],u=h._private,d=u.rstyle;d.clean=!1,d.cleanConnected=!1}},"enqueue");r.binder(e).on("bounds.* dirty.*",s(function(a){var o=a.target;i(o)},"onDirtyBounds")).on("style.* background.*",s(function(a){var o=a.target;i(o,!1)},"onDirtyStyle"));var n=s(function(a){if(a){var o=r.onUpdateEleCalcsFns;t.cleanStyle();for(var l=0;l<t.length;l++){var h=t[l],u=h._private.rstyle;h.isNode()&&!u.cleanConnected&&(i(h.connectedEdges()),u.cleanConnected=!0)}if(o)for(var d=0;d<o.length;d++){var p=o[d];p(a,t)}r.recalculateRenderedStyle(t),t=e.collection()}},"updateEleCalcs");r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)},yk.onUpdateEleCalcs=function(e){var t=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];t.push(e)},yk.recalculateRenderedStyle=function(e,t){var r=s(function(S){return S._private.rstyle.cleanConnected},"isCleanConnected");if(e.length!==0){var i=[],n=[];if(!this.destroyed){t===void 0&&(t=!0);for(var a=0;a<e.length;a++){var o=e[a],l=o._private,h=l.rstyle;o.isEdge()&&(!r(o.source())||!r(o.target()))&&(h.clean=!1),o.isEdge()&&o.isBundledBezier()&&o.parallelEdges().some(function(S){return!S._private.rstyle.clean&&S.isBundledBezier()})&&(h.clean=!1),!(t&&h.clean||o.removed())&&o.pstyle("display").value!=="none"&&(l.group==="nodes"?n.push(o):i.push(o),h.clean=!0)}for(var u=0;u<n.length;u++){var d=n[u],p=d._private,g=p.rstyle,m=d.position();this.recalculateNodeLabelProjection(d),g.nodeX=m.x,g.nodeY=m.y,g.nodeW=d.pstyle("width").pfValue,g.nodeH=d.pstyle("height").pfValue}this.recalculateEdgeProjections(i);for(var y=0;y<i.length;y++){var x=i[y],C=x._private,w=C.rstyle,_=C.rscratch;w.srcX=_.arrowStartX,w.srcY=_.arrowStartY,w.tgtX=_.arrowEndX,w.tgtY=_.arrowEndY,w.midX=_.midX,w.midY=_.midY,w.labelAngle=_.labelAngle,w.sourceLabelAngle=_.sourceLabelAngle,w.targetLabelAngle=_.targetLabelAngle}}}},vk={},vk.updateCachedGrabbedEles=function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],r=0;r<e.length;r++){var i=e[r],n=i._private.rscratch;i.grabbed()&&!i.isParent()?t.push(i):n.inDragLayer?e.drag.push(i):e.nondrag.push(i)}for(var r=0;r<t.length;r++){var i=t[r];e.drag.push(i)}}},vk.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},vk.getCachedZSortedEles=function(e){if(e||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(VV),t.interactive=t.filter(function(r){return r.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t},fW={},[Up,mk,Ss,p2,B7,Nc,dW,yk,vk].forEach(function(e){qr(fW,e)}),mW={},mW.getCachedImage=function(e,t,r){var i=this,n=i.imageCache=i.imageCache||{},a=n[e];if(a)return a.image.complete||a.image.addEventListener("load",r),a.image;a=n[e]=n[e]||{};var o=a.image=new Image;o.addEventListener("load",r),o.addEventListener("error",function(){o.error=!0});var l="data:",h=e.substring(0,l.length).toLowerCase()===l;return h||(t=t==="null"?null:t,o.crossOrigin=t),o.src=e,o},Lf={},Lf.registerBinding=function(e,t,r,i){var n=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var a=[],o=0;o<e.length;o++){var l=e[o];if(l!==void 0){var h=this.binder(l);a.push(h.on.apply(h,n))}}return a}var h=this.binder(e);return h.on.apply(h,n)},Lf.binder=function(e){var t=this,r=t.cy.window(),i=e===r||e===r.document||e===r.document.body||HOe(e);if(t.supportsPassiveEvents==null){var n=!1;try{var a=Object.defineProperty({},"passive",{get:s(function(){return n=!0,!0},"get")});r.addEventListener("test",null,a)}catch(l){}t.supportsPassiveEvents=n}var o=s(function(l,h,u){var d=Array.prototype.slice.call(arguments);return i&&t.supportsPassiveEvents&&(d[2]={capture:u!=null?u:!1,passive:!1,once:!1}),t.bindings.push({target:e,args:d}),(e.addEventListener||e.on).apply(e,d),this},"on");return{on:o,addEventListener:o,addListener:o,bind:o}},Lf.nodeIsDraggable=function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()},Lf.nodeIsGrabbable=function(e){return this.nodeIsDraggable(e)&&e.interactive()},Lf.load=function(){var e=this,t=e.cy.window(),r=s(function(Q){return Q.selected()},"isSelected"),i=s(function(Q){var xe=Q.getRootNode();if(xe&&xe.nodeType===11&&xe.host!==void 0)return xe},"getShadowRoot"),n=s(function(Q,xe,ae,_e){Q==null&&(Q=e.cy);for(var Se=0;Se<xe.length;Se++){var Je=xe[Se];Q.emit({originalEvent:ae,type:Je,position:_e})}},"triggerEvents"),a=s(function(Q){return Q.shiftKey||Q.metaKey||Q.ctrlKey},"isMultSelKeyDown"),o=s(function(Q,xe){var ae=!0;if(e.cy.hasCompoundNodes()&&Q&&Q.pannable())for(var _e=0;xe&&_e<xe.length;_e++){var Q=xe[_e];if(Q.isNode()&&Q.isParent()&&!Q.pannable()){ae=!1;break}}else ae=!0;return ae},"allowPanningPassthrough"),l=s(function(Q){Q[0]._private.grabbed=!0},"setGrabbed"),h=s(function(Q){Q[0]._private.grabbed=!1},"setFreed"),u=s(function(Q){Q[0]._private.rscratch.inDragLayer=!0},"setInDragLayer"),d=s(function(Q){Q[0]._private.rscratch.inDragLayer=!1},"setOutDragLayer"),p=s(function(Q){Q[0]._private.rscratch.isGrabTarget=!0},"setGrabTarget"),g=s(function(Q){Q[0]._private.rscratch.isGrabTarget=!1},"removeGrabTarget"),m=s(function(Q,xe){var ae=xe.addToList,_e=ae.has(Q);!_e&&Q.grabbable()&&!Q.locked()&&(ae.merge(Q),l(Q))},"addToDragList"),y=s(function(Q,xe){if(Q.cy().hasCompoundNodes()&&!(xe.inDragLayer==null&&xe.addToList==null)){var ae=Q.descendants();
vendor: 32,348 bytes, line 580
580xe.inDragLayer&&(ae.forEach(u),ae.connectedEdges().forEach(u)),xe.addToList&&m(ae,xe)}},"addDescendantsToDrag"),x=s(function(Q,xe){xe=xe||{};var ae=Q.cy().hasCompoundNodes();xe.inDragLayer&&(Q.forEach(u),Q.neighborhood().stdFilter(function(_e){return!ae||_e.isEdge()}).forEach(u)),xe.addToList&&Q.forEach(function(_e){m(_e,xe)}),y(Q,xe),_(Q,{inDragLayer:xe.inDragLayer}),e.updateCachedGrabbedEles()},"addNodesToDrag"),C=x,w=s(function(Q){Q&&(e.getCachedZSortedEles().forEach(function(xe){h(xe),d(xe),g(xe)}),e.updateCachedGrabbedEles())},"freeDraggedElements"),_=s(function(Q,xe){if(!(xe.inDragLayer==null&&xe.addToList==null)&&Q.cy().hasCompoundNodes()){var ae=Q.ancestors().orphans();if(!ae.same(Q)){var _e=ae.descendants().spawnSelf().merge(ae).unmerge(Q).unmerge(Q.descendants()),Se=_e.connectedEdges();xe.inDragLayer&&(Se.forEach(u),_e.forEach(u)),xe.addToList&&_e.forEach(function(Je){m(Je,xe)})}}},"updateAncestorsInDragLayer"),S=s(function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},"blurActiveDomElement"),R=typeof MutationObserver<"u",b=typeof ResizeObserver<"u";R?(e.removeObserver=new MutationObserver(function(Q){for(var xe=0;xe<Q.length;xe++){var ae=Q[xe],_e=ae.removedNodes;if(_e)for(var Se=0;Se<_e.length;Se++){var Je=_e[Se];if(Je===e.container){e.destroy();break}}}}),e.container.parentNode&&e.removeObserver.observe(e.container.parentNode,{childList:!0})):e.registerBinding(e.container,"DOMNodeRemoved",function(Q){e.destroy()});var v=Xy(function(){e.cy.resize()},100);R&&(e.styleObserver=new MutationObserver(v),e.styleObserver.observe(e.container,{attributes:!0})),e.registerBinding(t,"resize",v),b&&(e.resizeObserver=new ResizeObserver(v),e.resizeObserver.observe(e.container));var k=s(function(Q,xe){for(;Q!=null;)xe(Q),Q=Q.parentNode},"forEachUp"),E=s(function(){e.invalidateContainerClientCoordsCache()},"invalidateCoords");k(e.container,function(Q){e.registerBinding(Q,"transitionend",E),e.registerBinding(Q,"animationend",E),e.registerBinding(Q,"scroll",E)}),e.registerBinding(e.container,"contextmenu",function(Q){Q.preventDefault()});var A=s(function(){return e.selection[4]!==0},"inBoxSelection"),I=s(function(Q){for(var xe=e.findContainerClientCoords(),ae=xe[0],_e=xe[1],Se=xe[2],Je=xe[3],Re=Q.touches?Q.touches:[Q],et=!1,ze=0;ze<Re.length;ze++){var Ke=Re[ze];if(ae<=Ke.clientX&&Ke.clientX<=ae+Se&&_e<=Ke.clientY&&Ke.clientY<=_e+Je){et=!0;break}}if(!et)return!1;for(var We=e.container,nt=Q.target,Te=nt.parentNode,bt=!1;Te;){if(Te===We){bt=!0;break}Te=Te.parentNode}return!!bt},"eventInContainer");e.registerBinding(e.container,"mousedown",s(function(Q){if(I(Q)&&!(e.hoverData.which===1&&Q.which!==1)){Q.preventDefault(),S(),e.hoverData.capture=!0,e.hoverData.which=Q.which;var xe=e.cy,ae=[Q.clientX,Q.clientY],_e=e.projectIntoViewport(ae[0],ae[1]),Se=e.selection,Je=e.findNearestElements(_e[0],_e[1],!0,!1),Re=Je[0],et=e.dragData.possibleDragElements;e.hoverData.mdownPos=_e,e.hoverData.mdownGPos=ae;var ze=s(function(bt){return{originalEvent:Q,type:bt,position:{x:_e[0],y:_e[1]}}},"makeEvent"),Ke=s(function(){e.hoverData.tapholdCancelled=!1,clearTimeout(e.hoverData.tapholdTimeout),e.hoverData.tapholdTimeout=setTimeout(function(){if(!e.hoverData.tapholdCancelled){var bt=e.hoverData.down;bt?bt.emit(ze("taphold")):xe.emit(ze("taphold"))}},e.tapholdDuration)},"checkForTaphold");if(Q.which==3){e.hoverData.cxtStarted=!0;var We={originalEvent:Q,type:"cxttapstart",position:{x:_e[0],y:_e[1]}};Re?(Re.activate(),Re.emit(We),e.hoverData.down=Re):xe.emit(We),e.hoverData.downTime=new Date().getTime(),e.hoverData.cxtDragged=!1}else if(Q.which==1){Re&&Re.activate();{if(Re!=null&&e.nodeIsGrabbable(Re)){var nt=s(function(bt){bt.emit(ze("grab"))},"triggerGrab");if(p(Re),!Re.selected())et=e.dragData.possibleDragElements=xe.collection(),C(Re,{addToList:et}),Re.emit(ze("grabon")).emit(ze("grab"));else{et=e.dragData.possibleDragElements=xe.collection();var Te=xe.$(function(bt){return bt.isNode()&&bt.selected()&&e.nodeIsGrabbable(bt)});x(Te,{addToList:et}),Re.emit(ze("grabon")),Te.forEach(nt)}e.redrawHint("eles",!0),e.redrawHint("drag",!0)}e.hoverData.down=Re,e.hoverData.downs=Je,e.hoverData.downTime=new Date().getTime()}n(Re,["mousedown","tapstart","vmousedown"],Q,{x:_e[0],y:_e[1]}),Re==null?(Se[4]=1,e.data.bgActivePosistion={x:_e[0],y:_e[1]},e.redrawHint("select",!0),e.redraw()):Re.pannable()&&(Se[4]=1),Ke()}Se[0]=Se[2]=_e[0],Se[1]=Se[3]=_e[1]}},"mousedownHandler"),!1);var $=i(e.container);e.registerBinding([t,$],"mousemove",s(function(Q){var xe=e.hoverData.capture;if(!(!xe&&!I(Q))){var ae=!1,_e=e.cy,Se=_e.zoom(),Je=[Q.clientX,Q.clientY],Re=e.projectIntoViewport(Je[0],Je[1]),et=e.hoverData.mdownPos,ze=e.hoverData.mdownGPos,Ke=e.selection,We=null;!e.hoverData.draggingEles&&!e.hoverData.dragging&&!e.hoverData.selecting&&(We=e.findNearestElement(Re[0],Re[1],!0,!1));var nt=e.hoverData.last,Te=e.hoverData.down,bt=[Re[0]-Ke[2],Re[1]-Ke[3]],Ae=e.dragData.possibleDragElements,ft;if(ze){var Nt=Je[0]-ze[0],Wt=Nt*Nt,Ht=Je[1]-ze[1],Ft=Ht*Ht,Qt=Wt+Ft;e.hoverData.isOverThresholdDrag=ft=Qt>=e.desktopTapThreshold2}var Dt=a(Q);ft&&(e.hoverData.tapholdCancelled=!0);var Mt=s(function(){var li=e.hoverData.dragDelta=e.hoverData.dragDelta||[];li.length===0?(li.push(bt[0]),li.push(bt[1])):(li[0]+=bt[0],li[1]+=bt[1])},"updateDragDelta");ae=!0,n(We,["mousemove","vmousemove","tapdrag"],Q,{x:Re[0],y:Re[1]});var $t=s(function(li){return{originalEvent:Q,type:li,position:{x:Re[0],y:Re[1]}}},"makeEvent"),At=s(function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||_e.emit($t("boxstart")),Ke[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()},"goIntoBoxMode");if(e.hoverData.which===3){if(ft){var Kt=$t("cxtdrag");Te?Te.emit(Kt):_e.emit(Kt),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||We!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit($t("cxtdragout")),e.hoverData.cxtOver=We,We&&We.emit($t("cxtdragover")))}}else if(e.hoverData.dragging){if(ae=!0,_e.panningEnabled()&&_e.userPanningEnabled()){var rr;if(e.hoverData.justStartedPan){var ei=e.hoverData.mdownPos;rr={x:(Re[0]-ei[0])*Se,y:(Re[1]-ei[1])*Se},e.hoverData.justStartedPan=!1}else rr={x:bt[0]*Se,y:bt[1]*Se};_e.panBy(rr),_e.emit($t("dragpan")),e.hoverData.dragged=!0}Re=e.projectIntoViewport(Q.clientX,Q.clientY)}else if(Ke[4]==1&&(Te==null||Te.pannable())){if(ft){if(!e.hoverData.dragging&&_e.boxSelectionEnabled()&&(Dt||!_e.panningEnabled()||!_e.userPanningEnabled()))At();else if(!e.hoverData.selecting&&_e.panningEnabled()&&_e.userPanningEnabled()){var qt=o(Te,e.hoverData.downs);qt&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,Ke[4]=0,e.data.bgActivePosistion=ff(et),e.redrawHint("select",!0),e.redraw())}Te&&Te.pannable()&&Te.active()&&Te.unactivate()}}else{if(Te&&Te.pannable()&&Te.active()&&Te.unactivate(),(!Te||!Te.grabbed())&&We!=nt&&(nt&&n(nt,["mouseout","tapdragout"],Q,{x:Re[0],y:Re[1]}),We&&n(We,["mouseover","tapdragover"],Q,{x:Re[0],y:Re[1]}),e.hoverData.last=We),Te)if(ft){if(_e.boxSelectionEnabled()&&Dt)Te&&Te.grabbed()&&(w(Ae),Te.emit($t("freeon")),Ae.emit($t("free")),e.dragData.didDrag&&(Te.emit($t("dragfreeon")),Ae.emit($t("dragfree")))),At();else if(Te&&Te.grabbed()&&e.nodeIsDraggable(Te)){var Qr=!e.dragData.didDrag;Qr&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||x(Ae,{inDragLayer:!0});var or={x:0,y:0};if(ir(bt[0])&&ir(bt[1])&&(or.x+=bt[0],or.y+=bt[1],Qr)){var Ar=e.hoverData.dragDelta;Ar&&ir(Ar[0])&&ir(Ar[1])&&(or.x+=Ar[0],or.y+=Ar[1])}e.hoverData.draggingEles=!0,Ae.silentShift(or).emit($t("position")).emit($t("drag")),e.redrawHint("drag",!0),e.redraw()}}else Mt();ae=!0}if(Ke[2]=Re[0],Ke[3]=Re[1],ae)return Q.stopPropagation&&Q.stopPropagation(),Q.preventDefault&&Q.preventDefault(),!1}},"mousemoveHandler"),!1);var O,j,D;e.registerBinding(t,"mouseup",s(function(Q){if(!(e.hoverData.which===1&&Q.which!==1&&e.hoverData.capture)){var xe=e.hoverData.capture;if(xe){e.hoverData.capture=!1;var ae=e.cy,_e=e.projectIntoViewport(Q.clientX,Q.clientY),Se=e.selection,Je=e.findNearestElement(_e[0],_e[1],!0,!1),Re=e.dragData.possibleDragElements,et=e.hoverData.down,ze=a(Q);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,et&&et.unactivate();var Ke=s(function(ft){return{originalEvent:Q,type:ft,position:{x:_e[0],y:_e[1]}}},"makeEvent");if(e.hoverData.which===3){var We=Ke("cxttapend");if(et?et.emit(We):ae.emit(We),!e.hoverData.cxtDragged){var nt=Ke("cxttap");et?et.emit(nt):ae.emit(nt)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(n(Je,["mouseup","tapend","vmouseup"],Q,{x:_e[0],y:_e[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(n(et,["click","tap","vclick"],Q,{x:_e[0],y:_e[1]}),j=!1,Q.timeStamp-D<=ae.multiClickDebounceTime()?(O&&clearTimeout(O),j=!0,D=null,n(et,["dblclick","dbltap","vdblclick"],Q,{x:_e[0],y:_e[1]})):(O=setTimeout(function(){j||n(et,["oneclick","onetap","voneclick"],Q,{x:_e[0],y:_e[1]})},ae.multiClickDebounceTime()),D=Q.timeStamp)),et==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(Q)&&(ae.$(r).unselect(["tapunselect"]),Re.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=Re=ae.collection()),Je==et&&!e.dragData.didDrag&&!e.hoverData.selecting&&Je!=null&&Je._private.selectable&&(e.hoverData.dragging||(ae.selectionType()==="additive"||ze?Je.selected()?Je.unselect(["tapunselect"]):Je.select(["tapselect"]):ze||(ae.$(r).unmerge(Je).unselect(["tapunselect"]),Je.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var Te=ae.collection(e.getAllInBox(Se[0],Se[1],Se[2],Se[3]));e.redrawHint("select",!0),Te.length>0&&e.redrawHint("eles",!0),ae.emit(Ke("boxend"));var bt=s(function(ft){return ft.selectable()&&!ft.selected()},"eleWouldBeSelected");ae.selectionType()==="additive"||ze||ae.$(r).unmerge(Te).unselect(),Te.emit(Ke("box")).stdFilter(bt).select().emit(Ke("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!Se[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var Ae=et&&et.grabbed();w(Re),Ae&&(et.emit(Ke("freeon")),Re.emit(Ke("free")),e.dragData.didDrag&&(et.emit(Ke("dragfreeon")),Re.emit(Ke("dragfree"))))}}Se[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}}},"mouseupHandler"),!1);var P=[],F=4,U,z=1e5,V=s(function(Q,xe){for(var ae=0;ae<Q.length;ae++)if(Q[ae]%xe!==0)return!1;return!0},"allAreDivisibleBy"),W=s(function(Q){for(var xe=Math.abs(Q[0]),ae=1;ae<Q.length;ae++)if(Math.abs(Q[ae])!==xe)return!1;return!0},"allAreSameMagnitude"),X=s(function(Q){var xe=!1,ae=Q.deltaY;if(ae==null&&(Q.wheelDeltaY!=null?ae=Q.wheelDeltaY/4:Q.wheelDelta!=null&&(ae=Q.wheelDelta/4)),ae!==0){if(U==null)if(P.length>=F){var _e=P;if(U=V(_e,5),!U){var Se=Math.abs(_e[0]);U=W(_e)&&Se>5}if(U)for(var Je=0;Je<_e.length;Je++)z=Math.min(Math.abs(_e[Je]),z)}else P.push(ae),xe=!0;else U&&(z=Math.min(Math.abs(ae),z));if(!e.scrollingPage){var Re=e.cy,et=Re.zoom(),ze=Re.pan(),Ke=e.projectIntoViewport(Q.clientX,Q.clientY),We=[Ke[0]*et+ze.x,Ke[1]*et+ze.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||A()){Q.preventDefault();return}if(Re.panningEnabled()&&Re.userPanningEnabled()&&Re.zoomingEnabled()&&Re.userZoomingEnabled()){Q.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var nt;xe&&Math.abs(ae)>5&&(ae=g7(ae)*5),nt=ae/-250,U&&(nt/=z,nt*=3),nt=nt*e.wheelSensitivity;var Te=Q.deltaMode===1;Te&&(nt*=33);var bt=Re.zoom()*Math.pow(10,nt);Q.type==="gesturechange"&&(bt=e.gestureStartZoom*Q.scale),Re.zoom({level:bt,renderedPosition:{x:We[0],y:We[1]}}),Re.emit({type:Q.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:Q,position:{x:Ke[0],y:Ke[1]}})}}}},"wheelHandler");e.registerBinding(e.container,"wheel",X,!0),e.registerBinding(t,"scroll",s(function(Q){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},"scrollHandler"),!0),e.registerBinding(e.container,"gesturestart",s(function(Q){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||Q.preventDefault()},"gestureStartHandler"),!0),e.registerBinding(e.container,"gesturechange",function(Q){e.hasTouchStarted||X(Q)},!0),e.registerBinding(e.container,"mouseout",s(function(Q){var xe=e.projectIntoViewport(Q.clientX,Q.clientY);e.cy.emit({originalEvent:Q,type:"mouseout",position:{x:xe[0],y:xe[1]}})},"mouseOutHandler"),!1),e.registerBinding(e.container,"mouseover",s(function(Q){var xe=e.projectIntoViewport(Q.clientX,Q.clientY);e.cy.emit({originalEvent:Q,type:"mouseover",position:{x:xe[0],y:xe[1]}})},"mouseOverHandler"),!1);var J,H,te,ie,oe,he,pe,se,le,ue,de,we,De,Ge=s(function(Q,xe,ae,_e){return Math.sqrt((ae-Q)*(ae-Q)+(_e-xe)*(_e-xe))},"distance"),be=s(function(Q,xe,ae,_e){return(ae-Q)*(ae-Q)+(_e-xe)*(_e-xe)},"distanceSq"),qe;e.registerBinding(e.container,"touchstart",qe=s(function(Q){if(e.hasTouchStarted=!0,!!I(Q)){S(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var xe=e.cy,ae=e.touchData.now,_e=e.touchData.earlier;if(Q.touches[0]){var Se=e.projectIntoViewport(Q.touches[0].clientX,Q.touches[0].clientY);ae[0]=Se[0],ae[1]=Se[1]}if(Q.touches[1]){var Se=e.projectIntoViewport(Q.touches[1].clientX,Q.touches[1].clientY);ae[2]=Se[0],ae[3]=Se[1]}if(Q.touches[2]){var Se=e.projectIntoViewport(Q.touches[2].clientX,Q.touches[2].clientY);ae[4]=Se[0],ae[5]=Se[1]}var Je=s(function(Qt){return{originalEvent:Q,type:Qt,position:{x:ae[0],y:ae[1]}}},"makeEvent");if(Q.touches[1]){e.touchData.singleTouchMoved=!0,w(e.dragData.touchDragEles);var Re=e.findContainerClientCoords();le=Re[0],ue=Re[1],de=Re[2],we=Re[3],J=Q.touches[0].clientX-le,H=Q.touches[0].clientY-ue,te=Q.touches[1].clientX-le,ie=Q.touches[1].clientY-ue,De=0<=J&&J<=de&&0<=te&&te<=de&&0<=H&&H<=we&&0<=ie&&ie<=we;var et=xe.pan(),ze=xe.zoom();oe=Ge(J,H,te,ie),he=be(J,H,te,ie),pe=[(J+te)/2,(H+ie)/2],se=[(pe[0]-et.x)/ze,(pe[1]-et.y)/ze];var Ke=200,We=Ke*Ke;if(he<We&&!Q.touches[2]){var nt=e.findNearestElement(ae[0],ae[1],!0,!0),Te=e.findNearestElement(ae[2],ae[3],!0,!0);nt&&nt.isNode()?(nt.activate().emit(Je("cxttapstart")),e.touchData.start=nt):Te&&Te.isNode()?(Te.activate().emit(Je("cxttapstart")),e.touchData.start=Te):xe.emit(Je("cxttapstart")),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(Q.touches[2])xe.boxSelectionEnabled()&&Q.preventDefault();else if(!Q.touches[1]&&Q.touches[0]){var bt=e.findNearestElements(ae[0],ae[1],!0,!0),Ae=bt[0];if(Ae!=null&&(Ae.activate(),e.touchData.start=Ae,e.touchData.starts=bt,e.nodeIsGrabbable(Ae))){var ft=e.dragData.touchDragEles=xe.collection(),Nt=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),Ae.selected()?(Nt=xe.$(function(Qt){return Qt.selected()&&e.nodeIsGrabbable(Qt)}),x(Nt,{addToList:ft})):C(Ae,{addToList:ft}),p(Ae),Ae.emit(Je("grabon")),Nt?Nt.forEach(function(Qt){Qt.emit(Je("grab"))}):Ae.emit(Je("grab"))}n(Ae,["touchstart","tapstart","vmousedown"],Q,{x:ae[0],y:ae[1]}),Ae==null&&(e.data.bgActivePosistion={x:Se[0],y:Se[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&n(e.touchData.start,["taphold"],Q,{x:ae[0],y:ae[1]})},e.tapholdDuration)}if(Q.touches.length>=1){for(var Wt=e.touchData.startPosition=[null,null,null,null,null,null],Ht=0;Ht<ae.length;Ht++)Wt[Ht]=_e[Ht]=ae[Ht];var Ft=Q.touches[0];e.touchData.startGPosition=[Ft.clientX,Ft.clientY]}}},"touchstartHandler"),!1);var Ie;e.registerBinding(t,"touchmove",Ie=s(function(Q){var xe=e.touchData.capture;if(!(!xe&&!I(Q))){var ae=e.selection,_e=e.cy,Se=e.touchData.now,Je=e.touchData.earlier,Re=_e.zoom();if(Q.touches[0]){var et=e.projectIntoViewport(Q.touches[0].clientX,Q.touches[0].clientY);Se[0]=et[0],Se[1]=et[1]}if(Q.touches[1]){var et=e.projectIntoViewport(Q.touches[1].clientX,Q.touches[1].clientY);Se[2]=et[0],Se[3]=et[1]}if(Q.touches[2]){var et=e.projectIntoViewport(Q.touches[2].clientX,Q.touches[2].clientY);Se[4]=et[0],Se[5]=et[1]}var ze=s(function(kl){return{originalEvent:Q,type:kl,position:{x:Se[0],y:Se[1]}}},"makeEvent"),Ke=e.touchData.startGPosition,We;if(xe&&Q.touches[0]&&Ke){for(var nt=[],Te=0;Te<Se.length;Te++)nt[Te]=Se[Te]-Je[Te];var bt=Q.touches[0].clientX-Ke[0],Ae=bt*bt,ft=Q.touches[0].clientY-Ke[1],Nt=ft*ft,Wt=Ae+Nt;We=Wt>=e.touchTapThreshold2}if(xe&&e.touchData.cxt){Q.preventDefault();var Ht=Q.touches[0].clientX-le,Ft=Q.touches[0].clientY-ue,Qt=Q.touches[1].clientX-le,Dt=Q.touches[1].clientY-ue,Mt=be(Ht,Ft,Qt,Dt),$t=Mt/he,At=150,Kt=At*At,rr=1.5,ei=rr*rr;if($t>=ei||Mt>=Kt){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var qt=ze("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(qt),e.touchData.start=null):_e.emit(qt)}}if(xe&&e.touchData.cxt){var qt=ze("cxtdrag");e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(qt):_e.emit(qt),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var Qr=e.findNearestElement(Se[0],Se[1],!0,!0);(!e.touchData.cxtOver||Qr!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(ze("cxtdragout")),e.touchData.cxtOver=Qr,Qr&&Qr.emit(ze("cxtdragover")))}else if(xe&&Q.touches[2]&&_e.boxSelectionEnabled())Q.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||_e.emit(ze("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,ae[4]=1,!ae||ae.length===0||ae[0]===void 0?(ae[0]=(Se[0]+Se[2]+Se[4])/3,ae[1]=(Se[1]+Se[3]+Se[5])/3,ae[2]=(Se[0]+Se[2]+Se[4])/3+1,ae[3]=(Se[1]+Se[3]+Se[5])/3+1):(ae[2]=(Se[0]+Se[2]+Se[4])/3,ae[3]=(Se[1]+Se[3]+Se[5])/3),e.redrawHint("select",!0),e.redraw();else if(xe&&Q.touches[1]&&!e.touchData.didSelect&&_e.zoomingEnabled()&&_e.panningEnabled()&&_e.userZoomingEnabled()&&_e.userPanningEnabled()){Q.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var or=e.dragData.touchDragEles;if(or){e.redrawHint("drag",!0);for(var Ar=0;Ar<or.length;Ar++){var li=or[Ar]._private;li.grabbed=!1,li.rscratch.inDragLayer=!1}}var ki=e.touchData.start,Ht=Q.touches[0].clientX-le,Ft=Q.touches[0].clientY-ue,Qt=Q.touches[1].clientX-le,Dt=Q.touches[1].clientY-ue,$e=Ge(Ht,Ft,Qt,Dt),zt=$e/oe;if(De){var Rt=Ht-J,Or=Ft-H,ni=Qt-te,Wr=Dt-ie,Ti=(Rt+ni)/2,_i=(Or+Wr)/2,Ai=_e.zoom(),aa=Ai*zt,yi=_e.pan(),hn=se[0]*Ai+yi.x,Ct=se[1]*Ai+yi.y,Zt={x:-aa/Ai*(hn-yi.x-Ti)+hn,y:-aa/Ai*(Ct-yi.y-_i)+Ct};if(ki&&ki.active()){var or=e.dragData.touchDragEles;w(or),e.redrawHint("drag",!0),e.redrawHint("eles",!0),ki.unactivate().emit(ze("freeon")),or.emit(ze("free")),e.dragData.didDrag&&(ki.emit(ze("dragfreeon")),or.emit(ze("dragfree")))}_e.viewport({zoom:aa,pan:Zt,cancelOnFailedZoom:!0}),_e.emit(ze("pinchzoom")),oe=$e,J=Ht,H=Ft,te=Qt,ie=Dt,e.pinching=!0}if(Q.touches[0]){var et=e.projectIntoViewport(Q.touches[0].clientX,Q.touches[0].clientY);Se[0]=et[0],Se[1]=et[1]}if(Q.touches[1]){var et=e.projectIntoViewport(Q.touches[1].clientX,Q.touches[1].clientY);Se[2]=et[0],Se[3]=et[1]}if(Q.touches[2]){var et=e.projectIntoViewport(Q.touches[2].clientX,Q.touches[2].clientY);Se[4]=et[0],Se[5]=et[1]}}else if(Q.touches[0]&&!e.touchData.didSelect){var St=e.touchData.start,$r=e.touchData.last,Qr;if(!e.hoverData.draggingEles&&!e.swipePanning&&(Qr=e.findNearestElement(Se[0],Se[1],!0,!0)),xe&&St!=null&&Q.preventDefault(),xe&&St!=null&&e.nodeIsDraggable(St))if(We){var or=e.dragData.touchDragEles,Me=!e.dragData.didDrag;Me&&x(or,{inDragLayer:!0}),e.dragData.didDrag=!0;var Qi={x:0,y:0};if(ir(nt[0])&&ir(nt[1])&&(Qi.x+=nt[0],Qi.y+=nt[1],Me)){e.redrawHint("eles",!0);var Fe=e.touchData.dragDelta;Fe&&ir(Fe[0])&&ir(Fe[1])&&(Qi.x+=Fe[0],Qi.y+=Fe[1])}e.hoverData.draggingEles=!0,or.silentShift(Qi).emit(ze("position")).emit(ze("drag")),e.redrawHint("drag",!0),e.touchData.startPosition[0]==Je[0]&&e.touchData.startPosition[1]==Je[1]&&e.redrawHint("eles",!0),e.redraw()}else{var Fe=e.touchData.dragDelta=e.touchData.dragDelta||[];Fe.length===0?(Fe.push(nt[0]),Fe.push(nt[1])):(Fe[0]+=nt[0],Fe[1]+=nt[1])}if(n(St||Qr,["touchmove","tapdrag","vmousemove"],Q,{x:Se[0],y:Se[1]}),(!St||!St.grabbed())&&Qr!=$r&&($r&&$r.emit(ze("tapdragout")),Qr&&Qr.emit(ze("tapdragover"))),e.touchData.last=Qr,xe)for(var Ar=0;Ar<Se.length;Ar++)Se[Ar]&&e.touchData.startPosition[Ar]&&We&&(e.touchData.singleTouchMoved=!0);if(xe&&(St==null||St.pannable())&&_e.panningEnabled()&&_e.userPanningEnabled()){var Ji=o(St,e.touchData.starts);Ji&&(Q.preventDefault(),e.data.bgActivePosistion||(e.data.bgActivePosistion=ff(e.touchData.startPosition)),e.swipePanning?(_e.panBy({x:nt[0]*Re,y:nt[1]*Re}),_e.emit(ze("dragpan"))):We&&(e.swipePanning=!0,_e.panBy({x:bt*Re,y:ft*Re}),_e.emit(ze("dragpan")),St&&(St.unactivate(),e.redrawHint("select",!0),e.touchData.start=null)));var et=e.projectIntoViewport(Q.touches[0].clientX,Q.touches[0].clientY);Se[0]=et[0],Se[1]=et[1]}}for(var Te=0;Te<Se.length;Te++)Je[Te]=Se[Te];xe&&Q.touches.length>0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},"touchmoveHandler"),!1);var Be;e.registerBinding(t,"touchcancel",Be=s(function(Q){var xe=e.touchData.start;e.touchData.capture=!1,xe&&xe.unactivate()},"touchcancelHandler"));var ke,Qe,Pe,ht;if(e.registerBinding(t,"touchend",ke=s(function(Q){var xe=e.touchData.start,ae=e.touchData.capture;if(ae)Q.touches.length===0&&(e.touchData.capture=!1),Q.preventDefault();else return;var _e=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var Se=e.cy,Je=Se.zoom(),Re=e.touchData.now,et=e.touchData.earlier;if(Q.touches[0]){var ze=e.projectIntoViewport(Q.touches[0].clientX,Q.touches[0].clientY);Re[0]=ze[0],Re[1]=ze[1]}if(Q.touches[1]){var ze=e.projectIntoViewport(Q.touches[1].clientX,Q.touches[1].clientY);Re[2]=ze[0],Re[3]=ze[1]}if(Q.touches[2]){var ze=e.projectIntoViewport(Q.touches[2].clientX,Q.touches[2].clientY);Re[4]=ze[0],Re[5]=ze[1]}var Ke=s(function(At){return{originalEvent:Q,type:At,position:{x:Re[0],y:Re[1]}}},"makeEvent");xe&&xe.unactivate();var We;if(e.touchData.cxt){if(We=Ke("cxttapend"),xe?xe.emit(We):Se.emit(We),!e.touchData.cxtDragged){var nt=Ke("cxttap");xe?xe.emit(nt):Se.emit(nt)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!Q.touches[2]&&Se.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var Te=Se.collection(e.getAllInBox(_e[0],_e[1],_e[2],_e[3]));_e[0]=void 0,_e[1]=void 0,_e[2]=void 0,_e[3]=void 0,_e[4]=0,e.redrawHint("select",!0),Se.emit(Ke("boxend"));var bt=s(function(At){return At.selectable()&&!At.selected()},"eleWouldBeSelected");Te.emit(Ke("box")).stdFilter(bt).select().emit(Ke("boxselect")),Te.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(xe==null||xe.unactivate(),Q.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!Q.touches[1]&&!Q.touches[0]&&!Q.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Ae=e.dragData.touchDragEles;if(xe!=null){var ft=xe._private.grabbed;w(Ae),e.redrawHint("drag",!0),e.redrawHint("eles",!0),ft&&(xe.emit(Ke("freeon")),Ae.emit(Ke("free")),e.dragData.didDrag&&(xe.emit(Ke("dragfreeon")),Ae.emit(Ke("dragfree")))),n(xe,["touchend","tapend","vmouseup","tapdragout"],Q,{x:Re[0],y:Re[1]}),xe.unactivate(),e.touchData.start=null}else{var Nt=e.findNearestElement(Re[0],Re[1],!0,!0);n(Nt,["touchend","tapend","vmouseup","tapdragout"],Q,{x:Re[0],y:Re[1]})}var Wt=e.touchData.startPosition[0]-Re[0],Ht=Wt*Wt,Ft=e.touchData.startPosition[1]-Re[1],Qt=Ft*Ft,Dt=Ht+Qt,Mt=Dt*Je*Je;e.touchData.singleTouchMoved||(xe||Se.$(":selected").unselect(["tapunselect"]),n(xe,["tap","vclick"],Q,{x:Re[0],y:Re[1]}),Qe=!1,Q.timeStamp-ht<=Se.multiClickDebounceTime()?(Pe&&clearTimeout(Pe),Qe=!0,ht=null,n(xe,["dbltap","vdblclick"],Q,{x:Re[0],y:Re[1]})):(Pe=setTimeout(function(){Qe||n(xe,["onetap","voneclick"],Q,{x:Re[0],y:Re[1]})},Se.multiClickDebounceTime()),ht=Q.timeStamp)),xe!=null&&!e.dragData.didDrag&&xe._private.selectable&&Mt<e.touchTapThreshold2&&!e.pinching&&(Se.selectionType()==="single"?(Se.$(r).unmerge(xe).unselect(["tapunselect"]),xe.select(["tapselect"])):xe.selected()?xe.unselect(["tapunselect"]):xe.select(["tapselect"]),e.redrawHint("eles",!0)),e.touchData.singleTouchMoved=!0}for(var $t=0;$t<Re.length;$t++)et[$t]=Re[$t];e.dragData.didDrag=!1,Q.touches.length===0&&(e.touchData.dragDelta=[],e.touchData.startPosition=[null,null,null,null,null,null],e.touchData.startGPosition=null,e.touchData.didSelect=!1),Q.touches.length<2&&(Q.touches.length===1&&(e.touchData.startGPosition=[Q.touches[0].clientX,Q.touches[0].clientY]),e.pinching=!1,e.redrawHint("eles",!0),e.redraw())},"touchendHandler"),!1),typeof TouchEvent>"u"){var Xe=[],dt=s(function(Q){return{clientX:Q.clientX,clientY:Q.clientY,force:1,identifier:Q.pointerId,pageX:Q.pageX,pageY:Q.pageY,radiusX:Q.width/2,radiusY:Q.height/2,screenX:Q.screenX,screenY:Q.screenY,target:Q.target}},"makeTouch"),at=s(function(Q){return{event:Q,touch:dt(Q)}},"makePointer"),kt=s(function(Q){Xe.push(at(Q))},"addPointer"),Le=s(function(Q){for(var xe=0;xe<Xe.length;xe++){var ae=Xe[xe];if(ae.event.pointerId===Q.pointerId){Xe.splice(xe,1);return}}},"removePointer"),lt=s(function(Q){var xe=Xe.filter(function(ae){return ae.event.pointerId===Q.pointerId})[0];xe.event=Q,xe.touch=dt(Q)},"updatePointer"),ve=s(function(Q){Q.touches=Xe.map(function(xe){return xe.touch})},"addTouchesToEvent"),tt=s(function(Q){return Q.pointerType==="mouse"||Q.pointerType===4},"pointerIsMouse");e.registerBinding(e.container,"pointerdown",function(Q){tt(Q)||(Q.preventDefault(),kt(Q),ve(Q),qe(Q))}),e.registerBinding(e.container,"pointerup",function(Q){tt(Q)||(Le(Q),ve(Q),ke(Q))}),e.registerBinding(e.container,"pointercancel",function(Q){tt(Q)||(Le(Q),ve(Q),Be(Q))}),e.registerBinding(e.container,"pointermove",function(Q){tt(Q)||(Q.preventDefault(),lt(Q),ve(Q),Ie(Q))})}},zh={},zh.generatePolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:s(function(r,i,n,a,o,l){this.renderer.nodeShapeImpl("polygon",r,i,n,a,o,this.points)},"draw"),intersectLine:s(function(r,i,n,a,o,l,h,u){return r2(o,l,this.points,r,i,n/2,a/2,h)},"intersectLine"),checkPoint:s(function(r,i,n,a,o,l,h,u){return Ph(r,i,this.points,l,h,a,o,[0,-1],n)},"checkPoint"),hasMiterBounds:e!=="rectangle",miterBounds:s(function(r,i,n,a,o,l){return mMe(this.points,r,i,n,a,o)},"miterBounds")}},zh.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:s(function(e,t,r,i,n,a){this.renderer.nodeShapeImpl(this.name,e,t,r,i,n)},"draw"),intersectLine:s(function(e,t,r,i,n,a,o,l){return bBe(n,a,e,t,r/2+o,i/2+o)},"intersectLine"),checkPoint:s(function(e,t,r,i,n,a,o,l){return zp(e,t,i,n,a,o,r)},"checkPoint")}},zh.generateRoundPolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:s(function(r,i,n,a,o,l,h){if(l[h]!==void 0&&l[h+"-cx"]===r&&l[h+"-cy"]===i)return l[h];l[h]=new Array(t.length/2),l[h+"-cx"]=r,l[h+"-cy"]=i;var u=n/2,d=a/2;o=o==="auto"?rU(n,a):o;for(var p=new Array(t.length/2),g=0;g<t.length/2;g++)p[g]={x:r+u*t[g*2],y:i+d*t[g*2+1]};var m,y,x,C,w=p.length;for(y=p[w-1],m=0;m<w;m++)x=p[m%w],C=p[(m+1)%w],l[h][m]=e7(y,x,C,o),y=x,x=C;return l[h]},"getOrCreateCorners"),draw:s(function(r,i,n,a,o,l,h){this.renderer.nodeShapeImpl("round-polygon",r,i,n,a,o,this.points,this.getOrCreateCorners(i,n,a,o,l,h,"drawCorners"))},"draw"),intersectLine:s(function(r,i,n,a,o,l,h,u,d){return kBe(o,l,this.points,r,i,n,a,h,this.getOrCreateCorners(r,i,n,a,u,d,"corners"))},"intersectLine"),checkPoint:s(function(r,i,n,a,o,l,h,u,d){return vBe(r,i,this.points,l,h,a,o,this.getOrCreateCorners(l,h,a,o,u,d,"corners"))},"checkPoint")}},zh.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Gs(4,0),draw:s(function(e,t,r,i,n,a){this.renderer.nodeShapeImpl(this.name,e,t,r,i,n,this.points,a)},"draw"),intersectLine:s(function(e,t,r,i,n,a,o,l){return eU(n,a,e,t,r,i,o,l)},"intersectLine"),checkPoint:s(function(e,t,r,i,n,a,o,l){var h=i/2,u=n/2;l=l==="auto"?ud(i,n):l,l=Math.min(h,u,l);var d=l*2;return!!(Ph(e,t,this.points,a,o,i,n-d,[0,-1],r)||Ph(e,t,this.points,a,o,i-d,n,[0,-1],r)||zp(e,t,d,d,a-h+l,o-u+l,r)||zp(e,t,d,d,a+h-l,o-u+l,r)||zp(e,t,d,d,a+h-l,o+u-l,r)||zp(e,t,d,d,a-h+l,o+u-l,r))},"checkPoint")}},zh.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:v7(),points:Gs(4,0),draw:s(function(e,t,r,i,n,a){this.renderer.nodeShapeImpl(this.name,e,t,r,i,n,null,a)},"draw"),generateCutTrianglePts:s(function(e,t,r,i,n){var a=n==="auto"?this.cornerLength:n,o=t/2,l=e/2,h=r-l,u=r+l,d=i-o,p=i+o;return{topLeft:[h,d+a,h+a,d,h+a,d+a],topRight:[u-a,d,u,d+a,u-a,d+a],bottomRight:[u,p-a,u-a,p,u-a,p-a],bottomLeft:[h+a,p,h,p-a,h+a,p-a]}},"generateCutTrianglePts"),intersectLine:s(function(e,t,r,i,n,a,o,l){var h=this.generateCutTrianglePts(r+2*o,i+2*o,e,t,l),u=[].concat.apply([],[h.topLeft.splice(0,4),h.topRight.splice(0,4),h.bottomRight.splice(0,4),h.bottomLeft.splice(0,4)]);return r2(n,a,u,e,t)},"intersectLine"),checkPoint:s(function(e,t,r,i,n,a,o,l){var h=l==="auto"?this.cornerLength:l;if(Ph(e,t,this.points,a,o,i,n-2*h,[0,-1],r)||Ph(e,t,this.points,a,o,i-2*h,n,[0,-1],r))return!0;var u=this.generateCutTrianglePts(i,n,a,o);return po(e,t,u.topLeft)||po(e,t,u.topRight)||po(e,t,u.bottomRight)||po(e,t,u.bottomLeft)},"checkPoint")}},zh.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Gs(4,0),draw:s(function(e,t,r,i,n,a){this.renderer.nodeShapeImpl(this.name,e,t,r,i,n)},"draw"),intersectLine:s(function(e,t,r,i,n,a,o,l){var h=.15,u=.5,d=.85,p=this.generateBarrelBezierPts(r+2*o,i+2*o,e,t),g=s(function(y){var x=mf({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},h),C=mf({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},u),w=mf({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},d);return[y[0],y[1],x.x,x.y,C.x,C.y,w.x,w.y,y[4],y[5]]},"approximateBarrelCurvePts"),m=[].concat(g(p.topLeft),g(p.topRight),g(p.bottomRight),g(p.bottomLeft));return r2(n,a,m,e,t)},"intersectLine"),generateBarrelBezierPts:s(function(e,t,r,i){var n=t/2,a=e/2,o=r-a,l=r+a,h=i-n,u=i+n,d=b7(e,t),p=d.heightOffset,g=d.widthOffset,m=d.ctrlPtOffsetPct*e,y={topLeft:[o,h+p,o+m,h,o+g,h],topRight:[l-g,h,l-m,h,l,h+p],bottomRight:[l,u-p,l-m,u,l-g,u],bottomLeft:[o+g,u,o+m,u,o,u-p]};return y.topLeft.isTop=!0,y.topRight.isTop=!0,y.bottomLeft.isBottom=!0,y.bottomRight.isBottom=!0,y},"generateBarrelBezierPts"),checkPoint:s(function(e,t,r,i,n,a,o,l){var h=b7(i,n),u=h.heightOffset,d=h.widthOffset;if(Ph(e,t,this.points,a,o,i,n-2*u,[0,-1],r)||Ph(e,t,this.points,a,o,i-2*d,n,[0,-1],r))return!0;for(var p=this.generateBarrelBezierPts(i,n,a,o),g=s(function(v,k,E){var A=E[4],I=E[2],$=E[0],O=E[5],j=E[1],D=Math.min(A,$),P=Math.max(A,$),F=Math.min(O,j),U=Math.max(O,j);if(D<=v&&v<=P&&F<=k&&k<=U){var z=TBe(A,I,$),V=gBe(z[0],z[1],z[2],v),W=V.filter(function(X){return 0<=X&&X<=1});if(W.length>0)return W[0]}return null},"getCurveT"),m=Object.keys(p),y=0;y<m.length;y++){var x=m[y],C=p[x],w=g(e,t,C);if(w!=null){var _=C[5],S=C[3],R=C[1],b=Za(_,S,R,w);if(C.isTop&&b<=t||C.isBottom&&t<=b)return!0}}return!1},"checkPoint")}},zh.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Gs(4,0),draw:s(function(e,t,r,i,n,a){this.renderer.nodeShapeImpl(this.name,e,t,r,i,n,this.points,a)},"draw"),intersectLine:s(function(e,t,r,i,n,a,o,l){var h=e-(r/2+o),u=t-(i/2+o),d=u,p=e+(r/2+o),g=hd(n,a,e,t,h,u,p,d,!1);return g.length>
vendor: 4,386 bytes, line 580
5800?g:eU(n,a,e,t,r,i,o,l)},"intersectLine"),checkPoint:s(function(e,t,r,i,n,a,o,l){l=l==="auto"?ud(i,n):l;var h=2*l;if(Ph(e,t,this.points,a,o,i,n-h,[0,-1],r)||Ph(e,t,this.points,a,o,i-h,n,[0,-1],r))return!0;var u=i/2+2*r,d=n/2+2*r,p=[a-u,o-d,a-u,o,a+u,o,a+u,o-d];return!!(po(e,t,p)||zp(e,t,h,h,a+i/2-l,o+n/2-l,r)||zp(e,t,h,h,a-i/2+l,o+n/2-l,r))},"checkPoint")}},zh.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Gs(3,0)),this.generateRoundPolygon("round-triangle",Gs(3,0)),this.generatePolygon("rectangle",Gs(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Gs(5,0)),this.generateRoundPolygon("round-pentagon",Gs(5,0)),this.generatePolygon("hexagon",Gs(6,0)),this.generateRoundPolygon("round-hexagon",Gs(6,0)),this.generatePolygon("heptagon",Gs(7,0)),this.generateRoundPolygon("round-heptagon",Gs(7,0)),this.generatePolygon("octagon",Gs(8,0)),this.generateRoundPolygon("round-octagon",Gs(8,0));var i=new Array(20);{var n=y7(5,0),a=y7(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var l=0;l<a.length/2;l++)a[l*2]*=o,a[l*2+1]*=o;for(var l=0;l<20/4;l++)i[l*4]=n[l*2],i[l*4+1]=n[l*2+1],i[l*4+2]=a[l*2],i[l*4+3]=a[l*2+1]}i=tU(i),this.generatePolygon("star",i),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var h=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",h),this.generateRoundPolygon("round-tag",h)}e.makePolygon=function(u){var d=u.join("$"),p="polygon-"+d,g;return(g=this[p])?g:t.generatePolygon(p,u)}},g2={},g2.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},g2.redraw=function(e){e=e||WG();var t=this;t.averageRedrawTime===void 0&&(t.averageRedrawTime=0),t.lastRedrawTime===void 0&&(t.lastRedrawTime=0),t.lastDrawTime===void 0&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=e},g2.beforeRender=function(e,t){if(!this.destroyed){t==null&&Gn("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:e,priority:t}),r.sort(function(i,n){return n.priority-i.priority})}},yW=s(function(e,t,r){for(var i=e.beforeRenderCallbacks,n=0;n<i.length;n++)i[n].fn(t,r)},"beforeRenderCallbacks"),g2.startRenderLoop=function(){var e=this,t=e.cy;if(!e.renderLoopStarted){e.renderLoopStarted=!0;var r=s(function(i){if(!e.destroyed){if(!t.batching())if(e.requestedFrame&&!e.skipFrame){yW(e,!0,i);var n=Oh();e.render(e.renderOptions);var a=e.lastDrawTime=Oh();e.averageRedrawTime===void 0&&(e.averageRedrawTime=a-n),e.redrawCount===void 0&&(e.redrawCount=0),e.redrawCount++,e.redrawTotalTime===void 0&&(e.redrawTotalTime=0);var o=a-n;e.redrawTotalTime+=o,e.lastRedrawTime=o,e.averageRedrawTime=e.averageRedrawTime/2+o/2,e.requestedFrame=!1}else yW(e,!1,i);e.skipFrame=!1,F3(r)}},"renderFn");F3(r)}},Kze=s(function(e){this.init(e)},"BaseRenderer"),vW=Kze,Rf=vW.prototype,Rf.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],Rf.init=function(e){var t=this;t.options=e,t.cy=e.cy;var r=t.container=e.cy.container(),i=t.cy.window();if(i){var n=i.document,a=n.head,o="__________cytoscape_stylesheet",l="__________cytoscape_container",h=n.getElementById(o)!=null;if(r.className.indexOf(l)<0&&(r.className=(r.className||"")+" "+l),!h){var u=n.createElement("style");u.id=o,u.textContent="."+l+" { position: relative; }",a.insertBefore(u,a.children[0])}var d=i.getComputedStyle(r),p=d.getPropertyValue("position");p==="static"&&Yi("A Cytoscape container has style position:static and so can not use UI extensions properly")}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,
vendor: 1,359 bytes, line 580
580null,null,null,null,null]},t.redraws=0,t.showFps=e.showFps,t.debug=e.debug,t.webgl=e.webgl,t.hideEdgesOnViewport=e.hideEdgesOnViewport,t.textureOnViewport=e.textureOnViewport,t.wheelSensitivity=e.wheelSensitivity,t.motionBlurEnabled=e.motionBlur,t.forcedPixelRatio=ir(e.pixelRatio)?e.pixelRatio:null,t.motionBlur=e.motionBlur,t.motionBlurOpacity=e.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=e.desktopTapThreshold,t.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,t.touchTapThreshold=e.touchTapThreshold,t.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()},Rf.notify=function(e,t){var r=this,i=r.cy;if(!this.destroyed){if(e==="init"){r.load();return}if(e==="destroy"){r.destroy();return}(e==="add"||e==="remove"||e==="move"&&i.hasCompoundNodes()||e==="load"||e==="zorder"||e==="mount")&&r.invalidateCachedZSortedEles(),e==="viewport"&&r.redrawHint("select",!0),e==="gc"&&r.redrawHint("gc",!0),(e==="load"||e==="resize"||e==="mount")&&(r.invali
vendor: 10,322 bytes, line 580
580dateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},Rf.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var r=e.bindings[t],i=r,n=i.target;(n.off||n.removeEventListener).apply(n,i.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch(a){}},Rf.isHeadless=function(){return!1},[M7,fW,mW,Lf,zh,g2].forEach(function(e){qr(Rf,e)}),P7=1e3/60,bW={setupDequeueing:s(function(e){return s(function(){var t=this,r=this.renderer;if(!t.dequeueingSetup){t.dequeueingSetup=!0;var i=Xy(function(){r.redrawHint("eles",!0),r.redrawHint("drag",!0),r.redraw()},e.deqRedrawThreshold),n=s(function(o,l){var h=Oh(),u=r.averageRedrawTime,d=r.lastRedrawTime,p=[],g=r.cy.extent(),m=r.getPixelRatio();for(o||r.flushRenderedStyleQueue();;){var y=Oh(),x=y-h,C=y-l;if(d<P7){var w=P7-(o?u:0);if(C>=e.deqFastCost*w)break}else if(o){if(x>=e.deqCost*d||x>=e.deqAvgCost*u)break}else if(C>=e.deqNoDrawCost*P7)break;var _=e.deq(t,m,g);if(_.length>0)for(var S=0;S<_.length;S++)p.push(_[S]);else break}p.length>0&&(e.onDeqd(t,p),!o&&e.shouldRedraw(t,p,m,g)&&i())},"dequeue"),a=e.priority||c7;r.beforeRender(n,a(t))}},"setupDequeueingImpl")},"setupDequeueing")},Zze=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q3;id(this,e),this.idsByKey=new Bh,this.keyForId=new Bh,this.cachesByLvl=new Bh,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=r}return f(e,"e"),s(e,"ElementTextureCacheLookup"),nd(e,[{key:"getIdsFor",value:s(function(t){t==null&&Gn("Can not get id list for null key");var r=this.idsByKey,i=this.idsByKey.get(t);return i||(i=new gf,r.set(t,i)),i},"getIdsFor")},{key:"addIdForKey",value:s(function(t,r){t!=null&&this.getIdsFor(t).add(r)},"addIdForKey")},{key:"deleteIdForKey",value:s(function(t,r){t!=null&&this.getIdsFor(t).delete(r)},"deleteIdForKey")},{key:"getNumberOfIdsForKey",value:s(function(t){return t==null?0:this.getIdsFor(t).size},"getNumberOfIdsForKey")},{key:"updateKeyMappingFor",value:s(function(t){var r=t.id(),i=this.keyForId.get(r),n=this.getKey(t);this.deleteIdForKey(i,r),this.addIdForKey(n,r),this.keyForId.set(r,n)},"updateKeyMappingFor")},{key:"deleteKeyMappingFor",value:s(function(t){var r=t.id(),i=this.keyForId.get(r);this.deleteIdForKey(i,r),this.keyForId.delete(r)},"deleteKeyMappingFor")},{key:"keyHasChangedFor",value:s(function(t){var r=t.id(),i=this.keyForId.get(r),n=this.getKey(t);return i!==n},"keyHasChangedFor")},{key:"isInvalid",value:s(function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)},"isInvalid")},{key:"getCachesAt",value:s(function(t){var r=this.cachesByLvl,i=this.lvls,n=r.get(t);return n||(n=new Bh,r.set(t,n),i.push(t)),n},"getCachesAt")},{key:"getCache",value:s(function(t,r){return this.getCachesAt(r).get(t)},"getCache")},{key:"get",value:s(function(t,r){var i=this.getKey(t),n=this.getCache(i,r);return n!=null&&this.updateKeyMappingFor(t),n},"get")},{key:"getForCachedKey",value:s(function(t,r){var i=this.keyForId.get(t.id()),n=this.getCache(i,r);return n},"getForCachedKey")},{key:"hasCache",value:s(function(t,r){return this.getCachesAt(r).has(t)},"hasCache")},{key:"has",value:s(function(t,r){var i=this.getKey(t);return this.hasCache(i,r)},"has")},{key:"setCache",value:s(function(t,r,i){i.key=t,this.getCachesAt(r).set(t,i)},"setCache")},{key:"set",value:s(function(t,r,i){var n=this.getKey(t);this.setCache(n,r,i),this.updateKeyMappingFor(t)},"set")},{key:"deleteCache",value:s(function(t,r){this.getCachesAt(r).delete(t)},"deleteCache")},{key:"delete",value:s(function(t,r){var i=this.getKey(t);this.deleteCache(i,r)},"_delete")},{key:"invalidateKey",value:s(function(t){var r=this;this.lvls.forEach(function(i){return r.deleteCache(t,i)})},"invalidateKey")},{key:"invalidate",value:s(function(t){var r=t.id(),i=this.keyForId.get(r);this.deleteKeyMappingFor(t);var n=this.doesEleInvalidateKey(t);return n&&this.invalidateKey(i),n||this.getNumberOfIdsForKey(i)===0},"invalidate")}])})(),xW=25,bk=50,xk=-4,F7=3,kW=7.99,Qze=8,Jze=1024,eqe=1024,tqe=1024,rqe=.2,iqe=.8,nqe=10,aqe=.15,sqe=.1,oqe=.9,lqe=.9,cqe=100,hqe=1,If={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},uqe=as({getKey:null,doesEleInvalidateKey:q3,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:jG,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),f2=s(function(e,t){var r=this;r.renderer=e,r.onDequeues=[];var i=uqe(t);qr(r,i),r.lookup=new Zze(i.getKey,i.doesEleInvalidateKey),r.setupDequeueing()},"ElementTextureCache"),za=f2.prototype,za.reasons=If,za.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},za.getRetiredTextureQueue=function(e){var t=this,r=t.eleImgCaches.retired=t.eleImgCaches.retired||{},i=r[e]=r[e]||[];return i},za.getElementQueue=function(){var e=this,t=e.eleCacheQueue=e.eleCacheQueue||new Jy(function(r,i){return i.reqs-r.reqs});return t},za.getElementKeyToQueue=function(){var e=this,t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t},za.getElement=function(e,t,r,i,n){var a=this,o=this.renderer,l=o.cy.zoom(),h=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(i==null&&(i=Math.ceil(p7(l*r))),i<xk)i=xk;else if(l>=kW||i>F7)return null;var u=Math.pow(2,i),d=t.h*u,p=t.w*u,g=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,g))return null;var m=h.get(e,i);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var y;if(d<=xW?y=xW:d<=bk?y=bk:y=Math.ceil(d/bk)*bk,d>tqe||p>eqe)return null;var x=a.getTextureQueue(y),C=x[x.length-2],w=s(function(){return a.recycleTexture(y,p)||a.addTexture(y,p)},"addNewTxr");C||(C=x[x.length-1]),C||(C=w()),C.width-C.usedWidth<p&&(C=w());for(var _=s(function(P){return P&&P.scaledLabelShown===g},"scalableFrom"),S=n&&n===If.dequeue,R=n&&n===If.highQuality,b=n&&n===If.downscale,v,k=i+1;k<=F7;k++){var E=h.get(e,k);if(E){v=E;break}}var A=v&&v.level===i+1?v:null,I=s(function(){C.context.drawImage(A.texture.canvas,A.x,0,A.width,A.height,C.usedWidth,0,p,d)},"downscale");if(C.context.setTransform(1,0,0,1,0,0),C.context.clearRect(C.usedWidth,0,p,y),_(A))I();else if(_(v))if(R){for(var $=v.level;$>i;$--)A=a.getElement(e,t,r,$,If.downscale);I()}else return a.queueElement(e,v.level-1),v;else{var O;if(!S&&!R&&!b)for(var j=i-1;j>=xk;j--){var D=h.get(e,j);if(D){O=D;break}}if(_(O))return a.queueElement(e,i),O;C.context.translate(C.usedWidth,0),C.context.scale(u,u),this.drawElement(C.context,e,t,g,!1),C.context.scale(1/u,1/u),C.context.translate(-C.usedWidth,0)}return m={x:C.usedWidth,texture:C,level:i,scale:u,width:p,height:d,scaledLabelShown:g},C.usedWidth+=Math.ceil(p+Qze),C.eleCaches.push(m),h.set(e,i,m),a.checkTextureFullness(C),m},za.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])},za.invalidateElement=function(e){var t=this,r=t.lookup,i=[],n=r.isInvalid(e);if(n){for(var a=xk;a<=F7;a++){var o=r.getForCachedKey(e,a);o&&i.push(o)}var l=r.invalidate(e);if(l)for(var h=0;h<i.length;h++){var u=i[h],d=u.texture;d.invalidatedWidth+=u.width,u.invalidated=!0,t.checkTextureUtility(d)}t.removeFromQueue(e)}},za.checkTextureUtility=function(e){e.invalidatedWidth>=rqe*e.width&&this.retireTexture(e)},za.checkTextureFullness=function(e){var t=this,r=t.getTextureQueue(e.height);e.usedWidth/e.width>iqe&&e.fullnessChecks>=nqe?ld(r,e):e.fullnessChecks++},za.retireTexture=function(e){var t=this,r=e.height,i=t.getTextureQueue(r),n=this.lookup;ld(i,e),e.retired=!0;for(var a=e.eleCaches,o=0;o<a.length;o++){var l=a[o];n.deleteCache(l.key,l.level)}h7(a);var h=t.getRetiredTextureQueue(r);h.push(e)},za.addTexture=function(e,t){var r=this,i=r.getTextureQueue(e),n={};return i.push(n),n.eleCaches=[],n.height=e,n.width=Math.max(Jze,t),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},za.recycleTexture=function(e,t){for(var r=this,i=r.getTextureQueue(e),n=r.getRetiredTextureQueue(e),a=0;a<n.length;a++){var o=n[a];if(o.width>=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,h7(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),ld(n,o),i.push(o),o}},za.queueElement=function(e,t){var r=this,i=r.getElementQueue(),n=r.getElementKeyToQueue(),a=this.getKey(e),o=n[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,i.updateItem(o);else{var l={eles:e.spawn().merge(e),level:t,reqs:1,key:a};i.push(l),n[a]=l}},za.dequeue=function(e){for(var t=this,r=t.getElementQueue(),i=t.getElementKeyToQueue(),n=[],a=t.lookup,o=0;o<hqe&&r.size()>0;o++){var l=r.pop(),h=l.key,u=l.eles[0],d=a.hasCache(u,l.level);if(i[h]=null,!d){n.push(l);var p=t.getBoundingBox(u);t.getElement(u,p,e,l.level,If.dequeue)}}return n},za.removeFromQueue=function(e){var t=this,r=t.getElementQueue(),i=t.getElementKeyToQueue(),n=this.getKey(e),a=i[n];a!=null&&(a.eles.length===1?(a.reqs=l7,r.updateItem(a),r.pop(),i[n]=null):a.eles.unmerge(e))},za.onDequeue=function(e){this.onDequeues.push(e)},za.offDequeue=function(e){ld(this.onDequeues,e)},za.setupDequeueing=bW.setupDequeueing({deqRedrawThreshold:cqe,deqCost:aqe,deqAvgCost:sqe,deqNoDrawCost:oqe,deqFastCost:lqe,deq:s(function(e,t,r){return e.dequeue(t,r)},"deq"),onDeqd:s(function(e,t){for(var r=0;r<e.onDequeues.length;r++){var i=e.onDequeues[r];i(t)}},"onDeqd"),shouldRedraw:s(function(e,t,r,i){for(var n=0;n<t.length;n++)for(var a=t[n].eles,o=0;o<a.length;o++){var l=a[o].boundingBox();if(f7(l,i))return!0}return!1},"shouldRedraw"),priority:s(function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq},"priority")}),dqe=1,m2=-4,kk=2,pqe=3.99,gqe=50,fqe=50,mqe=.15,yqe=.1,vqe=.9,bqe=.9,xqe=1,TW=250,kqe=4e3*4e3,wW=32767,Tqe=!0,CW=s(function(e){var t=this,r=t.renderer=e,i=r.cy;t.layersByLevel={},t.firstGet=!0,t.lastInvalidationTime=Oh()-2*TW,t.skipping=!1,t.eleTxrDeqs=i.
vendor: 5,409 bytes, line 580
580collection(),t.scheduleElementRefinement=Xy(function(){t.refineElementTextures(t.eleTxrDeqs),t.eleTxrDeqs.unmerge(t.eleTxrDeqs)},fqe),r.beforeRender(function(a,o){o-t.lastInvalidationTime<=TW?t.skipping=!0:t.skipping=!1},r.beforeRenderPriorities.lyrTxrSkip);var n=s(function(a,o){return o.reqs-a.reqs},"qSort");t.layersQueue=new Jy(n),t.setupDequeueing()},"LayeredTextureCache"),ls=CW.prototype,EW=0,wqe=Math.pow(2,53)-1,ls.makeLayer=function(e,t){var r=Math.pow(2,t),i=Math.ceil(e.w*r),n=Math.ceil(e.h*r),a=this.renderer.makeOffscreenCanvas(i,n),o={id:EW=++EW%wqe,bb:e,level:t,width:i,height:n,canvas:a,context:a.getContext("2d"),eles:[],elesQueue:[],reqs:0},l=o.context,h=-o.bb.x1,u=-o.bb.y1;return l.scale(r,r),l.translate(h,u),o},ls.getLayers=function(e,t,r){var i=this,n=i.renderer,a=n.cy,o=a.zoom(),l=i.firstGet;if(i.firstGet=!1,r==null){if(r=Math.ceil(p7(o*t)),r<m2)r=m2;else if(o>=pqe||r>kk)return null}i.validateLayersElesOrdering(r,e);var h=i.layersByLevel,u=Math.pow(2,r),d=h[r]=h[r]||[],p,g=i.levelIsComplete(r,e),m,y=s(function(){var A=s(function(j){if(i.validateLayersElesOrdering(j,e),i.levelIsComplete(j,e))return m=h[j],!0},"canUseAsTmpLvl"),I=s(function(j){if(!m)for(var D=r+j;m2<=D&&D<=kk&&!A(D);D+=j);},"checkLvls");I(1),I(-1);for(var $=d.length-1;$>=0;$--){var O=d[$];O.invalid&&ld(d,O)}},"checkTempLevels");if(!g)y();else return d;var x=s(function(){if(!p){p=js();for(var A=0;A<e.length;A++)hBe(p,e[A].boundingBox())}return p},"getBb"),C=s(function(A){A=A||{};var I=A.after;x();var $=Math.ceil(p.w*u),O=Math.ceil(p.h*u);if($>wW||O>wW)return null;var j=$*O;if(j>kqe)return null;var D=i.makeLayer(p,r);if(I!=null){var P=d.indexOf(I)+1;d.splice(P,0,D)}else(A.insert===void 0||A.insert)&&d.unshift(D);return D},"makeLayer");if(i.skipping&&!l)return null;for(var w=null,_=e.length/dqe,S=!l,R=0;R<e.length;R++){var b=e[R],v=b._private.rscratch,k=v.imgLayerCaches=v.imgLayerCaches||{},E=k[r];if(E){w=E;continue}if((!w||w.eles.length>=_||!JG(w.bb,b.boundingBox()))&&(w=C({insert:!0,after:w}),!w))return null;m||S?i.queueLayer(w,b):i.drawEleInLayer(w,b,r,t),w.eles.push(b),k[r]=w}return m||(S?null:d)},ls.getEleLevelForLayerLevel=function(e,t){return e},ls.drawEleInLayer=function(e,t,r,i){var n=this,a=this.renderer,o=e.context,l=t.boundingBox();l.w===0||l.h===0||!t.visible()||(r=n.getEleLevelForLayerLevel(r,i),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,r,Tqe),a.setImgSmoothing(o,!0))},ls.levelIsComplete=function(e,t){var r=this,i=r.layersByLevel[e];if(!i||i.length===0)return!1;for(var n=0,a=0;a<i.length;a++){var o=i[a];if(o.reqs>0||o.invalid)return!1;n+=o.eles.length}return n===t.length},ls.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(r)for(var i=0;i<r.length;i++){for(var n=r[i],a=-1,o=0;o<t.length;o++)if(n.eles[0]===t[o]){a=o;break}if(a<0){this.invalidateLayer(n);continue}for(var l=a,o=0;o<n.eles.length;o++)if(n.eles[o]!==t[l+o]){this.invalidateLayer(n);break}}},ls.updateElementsInLayers=function(e,t){for(var r=this,i=Yy(e[0]),n=0;n<e.length;n++)for(var a=i?null:e[n],o=i?e[n]:e[n].ele,l=o._private.rscratch,h=l.imgLayerCaches=l.imgLayerCaches||{},u=m2;u<=kk;u++){var d=h[u];d&&(a&&r.getEleLevelForLayerLevel(d.level)!==a.level||t(d,o,a))}},ls.haveLayers=function(){for(var e=this,t=!1,r=m2;r<=kk;r++){var i=e.layersByLevel[r];if(i&&i.length>0){t=!0;break}}return t},ls.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=Oh(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,s(function(r,i,n){t.invalidateLayer(r)},"invalAssocLayers")))},ls.invalidateLayer=function(e){if(this.lastInvalidationTime=Oh(),!e.invalid){var t=e.level,r=e.eles,i=this.layersByLevel[t];ld(i,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var n=0;n<r.length;n++){var a=r[n]._private.rscratch.imgLayerCaches;a&&(a[t]=null)}}},ls.refineElementTextures=function(e){var t=this;t.updateElementsInLayers(e,s(function(r,i,n){var a=r.replacement;if(a||(a=r.replacement=t.makeLayer(r.bb,r.level),a.replaces=r,a.eles=r.eles),!a.reqs)for(var o=0;o<a.eles.length;o++)t.queueLayer(a,a.eles[o])},"refineEachEle"))},ls.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()},ls.queueLayer=function(e,t){var r=this,i=r.layersQueue,n=e.elesQueue,a=n.hasId=n.hasId||{};if(!e.replacement){if(t){if(a[t.id()])return;n.push(t),a[t.id()]=!0}e.reqs?(e.reqs++,i.updateItem(e)):(e.reqs=1,i.push(e))}},ls.dequeue=function(e){for(var t=this,r=t.layersQueue,i=[],n=0;n<xqe&&r.size()!==0;){var a=r.peek();if(a.replacement){r.pop();continue}if(a.replaces&&a!==a.replaces.replacement){r.pop();continue}if(a.invalid){r.pop();continue}var o=a.elesQueue.shift();o&&(t.drawEleInLayer(a,o,a.level,e),n++),i.length===0&&i.push(!0),a.elesQueue.length===0&&(r.pop(),a.reqs=0,a.replaces&&t.applyLayerReplacement(a),t.requestRedraw())}return i},ls.applyLayerReplacement=function(e){var t=this,r=t.layersByLevel[e.level],i=e.replaces,n=r.indexOf(i);if(!(n<0||i.invalid)){r[n]=e;for(var a=0;a<e.eles.length;a++){var o=e.eles[a]._private,l=o.imgLayerCaches=o.imgLayerCaches||{};l&&(l[e.level]=e)}t.requestRedraw()}},ls.requestRedraw=Xy(function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()},100),ls.setupDequeueing=bW.setupDequeueing({deqRedrawThreshold:gqe,deqCost:mqe,deqAvgCost:yqe,deqNoDrawCost:vqe,deqFastCost:bqe,deq:s(function(e,t){return e.dequeue(t)}
vendor: 33,347 bytes, line 580
580,"deq"),onDeqd:c7,shouldRedraw:jG,priority:s(function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq},"priority")}),SW={},s(lOe,"polygon"),s(cOe,"triangleBackcurve"),s(Zj,"triangleTee"),s(hOe,"circleTriangle"),s(uOe,"circle$1"),SW.arrowShapeImpl=function(e){return(Cqe||(Cqe={polygon:lOe,"triangle-backcurve":cOe,"triangle-tee":Zj,"circle-triangle":hOe,"triangle-cross":Zj,circle:uOe}))[e]},Mc={},Mc.drawElement=function(e,t,r,i,n,a){var o=this;t.isNode()?o.drawNode(e,t,r,i,n,a):o.drawEdge(e,t,r,i,n,a)},Mc.drawElementOverlay=function(e,t){var r=this;t.isNode()?r.drawNodeOverlay(e,t):r.drawEdgeOverlay(e,t)},Mc.drawElementUnderlay=function(e,t){var r=this;t.isNode()?r.drawNodeUnderlay(e,t):r.drawEdgeUnderlay(e,t)},Mc.drawCachedElementPortion=function(e,t,r,i,n,a,o,l){var h=this,u=r.getBoundingBox(t);if(!(u.w===0||u.h===0)){var d=r.getElement(t,u,i,n,a);if(d!=null){var p=l(h,t);if(p===0)return;var g=o(h,t),m=u.x1,y=u.y1,x=u.w,C=u.h,w,_,S,R,b;if(g!==0){var v=r.getRotationPoint(t);S=v.x,R=v.y,e.translate(S,R),e.rotate(g),b=h.getImgSmoothing(e),b||h.setImgSmoothing(e,!0);var k=r.getRotationOffset(t);w=k.x,_=k.y}else w=m,_=y;var E;p!==1&&(E=e.globalAlpha,e.globalAlpha=E*p),e.drawImage(d.texture.canvas,d.x,0,d.width,d.height,w,_,x,C),p!==1&&(e.globalAlpha=E),g!==0&&(e.rotate(-g),e.translate(-S,-R),b||h.setImgSmoothing(e,!1))}else r.drawElement(e,t)}},Eqe=s(function(){return 0},"getZeroRotation"),Sqe=s(function(e,t){return e.getTextAngle(t,null)},"getLabelRotation"),_qe=s(function(e,t){return e.getTextAngle(t,"source")},"getSourceLabelRotation"),Aqe=s(function(e,t){return e.getTextAngle(t,"target")},"getTargetLabelRotation"),Lqe=s(function(e,t){return t.effectiveOpacity()},"getOpacity"),z7=s(function(e,t){return t.pstyle("text-opacity").pfValue*t.effectiveOpacity()},"getTextOpacity"),Mc.drawCachedElement=function(e,t,r,i,n,a){var o=this,l=o.data,h=l.eleTxrCache,u=l.lblTxrCache,d=l.slbTxrCache,p=l.tlbTxrCache,g=t.boundingBox(),m=a===!0?h.reasons.highQuality:null;if(!(g.w===0||g.h===0||!t.visible())&&(!i||f7(g,i))){var y=t.isEdge(),x=t.element()._private.rscratch.badLine;o.drawElementUnderlay(e,t),o.drawCachedElementPortion(e,t,h,r,n,m,Eqe,Lqe),(!y||!x)&&o.drawCachedElementPortion(e,t,u,r,n,m,Sqe,z7),y&&!x&&(o.drawCachedElementPortion(e,t,d,r,n,m,_qe,z7),o.drawCachedElementPortion(e,t,p,r,n,m,Aqe,z7)),o.drawElementOverlay(e,t)}},Mc.drawElements=function(e,t){for(var r=this,i=0;i<t.length;i++){var n=t[i];r.drawElement(e,n)}},Mc.drawCachedElements=function(e,t,r,i){for(var n=this,a=0;a<t.length;a++){var o=t[a];n.drawCachedElement(e,o,r,i)}},Mc.drawCachedNodes=function(e,t,r,i){for(var n=this,a=0;a<t.length;a++){var o=t[a];o.isNode()&&n.drawCachedElement(e,o,r,i)}},Mc.drawLayeredElements=function(e,t,r,i){var n=this,a=n.data.lyrTxrCache.getLayers(t,r);if(a)for(var o=0;o<a.length;o++){var l=a[o],h=l.bb;h.w===0||h.h===0||e.drawImage(l.canvas,h.x1,h.y1,h.w,h.h)}else n.drawCachedElements(e,t,r,i)},qh={},qh.drawEdge=function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,l=t._private.rscratch;if(!(a&&!t.visible())&&!(l.badLine||l.allpts==null||isNaN(l.allpts[0]))){var h;r&&(h=r,e.translate(-h.x1,-h.y1));var u=a?t.pstyle("opacity").value:1,d=a?t.pstyle("line-opacity").value:1,p=t.pstyle("curve-style").value,g=t.pstyle("line-style").value,m=t.pstyle("width").pfValue,y=t.pstyle("line-cap").value,x=t.pstyle("line-outline-width").value,C=t.pstyle("line-outline-color").value,w=u*d,_=u*d,S=s(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w;p==="straight-triangle"?(o.eleStrokeStyle(e,t,D),o.drawEdgeTrianglePath(t,e,l.allpts)):(e.lineWidth=m,e.lineCap=y,o.eleStrokeStyle(e,t,D),o.drawEdgePath(t,e,l.allpts,g),e.lineCap="butt")},"drawLine"),R=s(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w;if(e.lineWidth=m+x,e.lineCap=y,x>0)o.colorStrokeStyle(e,C[0],C[1],C[2],D);else{e.lineCap="butt";return}p==="straight-triangle"?o.drawEdgeTrianglePath(t,e,l.allpts):(o.drawEdgePath(t,e,l.allpts,g),e.lineCap="butt")},"drawLineOutline"),b=s(function(){n&&o.drawEdgeOverlay(e,t)},"drawOverlay"),v=s(function(){n&&o.drawEdgeUnderlay(e,t)},"drawUnderlay"),k=s(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_;o.drawArrowheads(e,t,D)},"drawArrows"),E=s(function(){o.drawElementText(e,t,null,i)},"drawText");e.lineJoin="round";var A=t.pstyle("ghost").value==="yes";if(A){var I=t.pstyle("ghost-offset-x").pfValue,$=t.pstyle("ghost-offset-y").pfValue,O=t.pstyle("ghost-opacity").value,j=w*O;e.translate(I,$),S(j),k(j),e.translate(-I,-$)}else R();v(),S(),k(),b(),E(),r&&e.translate(h.x1,h.y1)}},_W=s(function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,r){if(r.visible()){var i=r.pstyle("".concat(e,"-opacity")).value;if(i!==0){var n=this,a=n.usePaths(),o=r._private.rscratch,l=r.pstyle("".concat(e,"-padding")).pfValue,h=2*l,u=r.pstyle("".concat(e,"-color")).value;t.lineWidth=h,o.edgeType==="self"&&!a?t.lineCap="butt":t.lineCap="round",n.colorStrokeStyle(t,u[0],u[1],u[2],i),n.drawEdgePath(r,t,o.allpts,"solid")}}}},"drawEdgeOverlayUnderlay"),qh.drawEdgeOverlay=_W("overlay"),qh.drawEdgeUnderlay=_W("underlay"),qh.drawEdgePath=function(e,t,r,i){var n=e._private.rscratch,a=t,o,l=!1,h=this.usePaths(),u=e.pstyle("line-dash-pattern").pfValue,d=e.pstyle("line-dash-offset").pfValue;if(h){var p=r.join("$"),g=n.pathCacheKey&&n.pathCacheKey===p;g?(o=t=n.pathCache,l=!0):(o=t=new Path2D,n.pathCacheKey=p,n.pathCache=o)}if(a.setLineDash)switch(i){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=d;break;case"solid":a.setLineDash([]);break}if(!l&&!n.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var m=2;m+3<r.length;m+=4)t.quadraticCurveTo(r[m],r[m+1],r[m+2],r[m+3]);break;case"straight":case"haystack":for(var y=2;y+1<r.length;y+=2)t.lineTo(r[y],r[y+1]);break;case"segments":if(n.isRound){var x=ho(n.roundCorners),C;try{for(x.s();!(C=x.n()).done;){var w=C.value;Xj(t,w)}}catch(S){x.e(S)}finally{x.f()}t.lineTo(r[r.length-2],r[r.length-1])}else for(var _=2;_+1<r.length;_+=2)t.lineTo(r[_],r[_+1]);break}t=a,h?t.stroke(o):t.stroke(),t.setLineDash&&t.setLineDash([])},qh.drawEdgeTrianglePath=function(e,t,r){t.fillStyle=t.strokeStyle;for(var i=e.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var a=[r[n+2]-r[n],r[n+3]-r[n+1]],o=Math.sqrt(a[0]*a[0]+a[1]*a[1]),l=[a[1]/o,-a[0]/o],h=[l[0]*i/2,l[1]*i/2];t.beginPath(),t.moveTo(r[n]-h[0],r[n+1]-h[1]),t.lineTo(r[n]+h[0],r[n+1]+h[1]),t.lineTo(r[n+2],r[n+3]),t.closePath(),t.fill()}},qh.drawArrowheads=function(e,t,r){var i=t._private.rscratch,n=i.edgeType==="haystack";n||this.drawArrowhead(e,t,"source",i.arrowStartX,i.arrowStartY,i.srcArrowAngle,r),this.drawArrowhead(e,t,"mid-target",i.midX,i.midY,i.midtgtArrowAngle,r),this.drawArrowhead(e,t,"mid-source",i.midX,i.midY,i.midsrcArrowAngle,r),n||this.drawArrowhead(e,t,"target",i.arrowEndX,i.arrowEndY,i.tgtArrowAngle,r)},qh.drawArrowhead=function(e,t,r,i,n,a,o){if(!(isNaN(i)||i==null||isNaN(n)||n==null||isNaN(a)||a==null)){var l=this,h=t.pstyle(r+"-arrow-shape").value;if(h!=="none"){var u=t.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",d=t.pstyle(r+"-arrow-fill").value,p=t.pstyle("width").pfValue,g=t.pstyle(r+"-arrow-width"),m=g.value==="match-line"?p:g.pfValue;g.units==="%"&&(m*=p);var y=t.pstyle("opacity").value;o===void 0&&(o=y);var x=e.globalCompositeOperation;(o!==1||d==="hollow")&&(e.globalCompositeOperation="destination-out",l.colorFillStyle(e,255,255,255,1),l.colorStrokeStyle(e,255,255,255,1),l.drawArrowShape(t,e,u,p,h,m,i,n,a),e.globalCompositeOperation=x);var C=t.pstyle(r+"-arrow-color").value;l.colorFillStyle(e,C[0],C[1],C[2],o),l.colorStrokeStyle(e,C[0],C[1],C[2],o),l.drawArrowShape(t,e,d,p,h,m,i,n,a)}}},qh.drawArrowShape=function(e,t,r,i,n,a,o,l,h){var u=this,d=this.usePaths()&&n!=="triangle-cross",p=!1,g,m=t,y={x:o,y:l},x=e.pstyle("arrow-scale").value,C=this.getArrowWidth(i,x),w=u.arrowShapes[n];if(d){var _=u.arrowPathCache=u.arrowPathCache||[],S=Bp(n),R=_[S];R!=null?(g=t=R,p=!0):(g=t=new Path2D,_[S]=g)}p||(t.beginPath&&t.beginPath(),d?w.draw(t,1,0,{x:0,y:0},1):w.draw(t,C,h,y,i),t.closePath&&t.closePath()),t=m,d&&(t.translate(o,l),t.rotate(h),t.scale(C,C)),(r==="filled"||r==="both")&&(d?t.fill(g):t.fill()),(r==="hollow"||r==="both")&&(t.lineWidth=a/(d?C:1),t.lineJoin="miter",d?t.stroke(g):t.stroke()),d&&(t.scale(1/C,1/C),t.rotate(-h),t.translate(-o,-l))},q7={},q7.safeDrawImage=function(e,t,r,i,n,a,o,l,h,u){if(!(n<=0||a<=0||h<=0||u<=0))try{e.drawImage(t,r,i,n,a,o,l,h,u)}catch(d){Yi(d)}},q7.drawInscribedImage=function(e,t,r,i,n){var a=this,o=r.position(),l=o.x,h=o.y,u=r.cy().style(),d=u.getIndexedStyle.bind(u),p=d(r,"background-fit","value",i),g=d(r,"background-repeat","value",i),m=r.width(),y=r.height(),x=r.padding()*2,C=m+(d(r,"background-width-relative-to","value",i)==="inner"?0:x),w=y+(d(r,"background-height-relative-to","value",i)==="inner"?0:x),_=r._private.rscratch,S=d(r,"background-clip","value",i),R=S==="node",b=d(r,"background-image-opacity","value",i)*n,v=d(r,"background-image-smoothing","value",i),k=r.pstyle("corner-radius").value;k!=="auto"&&(k=r.pstyle("corner-radius").pfValue);var E=t.width||t.cachedW,A=t.height||t.cachedH;(E==null||A==null)&&(document.body.appendChild(t),E=t.cachedW=t.width||t.offsetWidth,A=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var I=E,$=A;if(d(r,"background-width","value",i)!=="auto"&&(d(r,"background-width","units",i)==="%"?I=d(r,"background-width","pfValue",i)*C:I=d(r,"background-width","pfValue",i)),d(r,"background-height","value",i)!=="auto"&&(d(r,"background-height","units",i)==="%"?$=d(r,"background-height","pfValue",i)*w:$=d(r,"background-height","pfValue",i)),!(I===0||$===0)){if(p==="contain"){var O=Math.min(C/I,w/$);I*=O,$*=O}else if(p==="cover"){var O=Math.max(C/I,w/$);I*=O,$*=O}var j=l-C/2,D=d(r,"background-position-x","units",i),P=d(r,"background-position-x","pfValue",i);D==="%"?j+=(C-I)*P:j+=P;var F=d(r,"background-offset-x","units",i),U=d(r,"background-offset-x","pfValue",i);F==="%"?j+=(C-I)*U:j+=U;var z=h-w/2,V=d(r,"background-position-y","units",i),W=d(r,"background-position-y","pfValue",i);V==="%"?z+=(w-$)*W:z+=W;var X=d(r,"background-offset-y","units",i),J=d(r,"background-offset-y","pfValue",i);X==="%"?z+=(w-$)*J:z+=J,_.pathCache&&(j-=l,z-=h,l=0,h=0);var H=e.globalAlpha;e.globalAlpha=b;var te=a.getImgSmoothing(e),ie=!1;if(v==="no"&&te?(a.setImgSmoothing(e,!1),ie=!0):v==="yes"&&!te&&(a.setImgSmoothing(e,!0),ie=!0),g==="no-repeat")R&&(e.save(),_.pathCache?e.clip(_.pathCache):(a.nodeShapes[a.getNodeShape(r)].draw(e,l,h,C,w,k,_),e.clip())),a.safeDrawImage(e,t,0,0,E,A,j,z,I,$),R&&e.restore();else{var oe=e.createPattern(t,g);e.fillStyle=oe,a.nodeShapes[a.getNodeShape(r)].draw(e,l,h,C,w,k,_),e.translate(j,z),e.fill(),e.translate(-j,-z)}e.globalAlpha=H,ie&&a.setImgSmoothing(e,te)}},Vp={},Vp.eleTextBiggerThanMin=function(e,t){if(!t){var r=e.cy().zoom(),i=this.getPixelRatio(),n=Math.ceil(p7(r*i));t=Math.pow(2,n)}var a=e.pstyle("font-size").pfValue*t,o=e.pstyle("min-zoomed-font-size").pfValue;return!(a<o)},Vp.drawElementText=function(e,t,r,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(i==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(i===!1)return;if(t.isNode()){var l=t.pstyle("label");if(!l||!l.value)return;var h=o.getLabelJustification(t);e.textAlign=h,e.textBaseline="bottom"}else{var u=t.element()._private.rscratch.badLine,d=t.pstyle("label"),p=t.pstyle("source-label"),g=t.pstyle("target-label");if(u||(!d||!d.value)&&(!p||!p.value)&&(!g||!g.value))return;e.textAlign="center",e.textBaseline="bottom"}var m=!r,y;r&&(y=r,e.translate(-y.x1,-y.y1)),n==null?(o.drawText(e,t,null,m,a),t.isEdge()&&(o.drawText(e,t,"source",m,a),o.drawText(e,t,"target",m,a))):o.drawText(e,t,n,m,a),r&&e.translate(y.x1,y.y1)},Vp.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(t=this.fontCaches[r],t.context===e)return t;return t={context:e},this.fontCaches.push(t),t},Vp.setupTextStyle=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=t.pstyle("font-style").strValue,n=t.pstyle("font-size").pfValue+"px",a=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,l=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,h=t.pstyle("text-outline-opacity").value*l,u=t.pstyle("color").value,d=t.pstyle("text-outline-color").value;e.font=i+" "+o+" "+n+" "+a,e.lineJoin="round",this.colorFillStyle(e,u[0],u[1],u[2],l),this.colorStrokeStyle(e,d[0],d[1],d[2],h)},s(dOe,"circle"),s(Qj,"roundRect"),Vp.getTextAngle=function(e,t){var r,i=e._private,n=i.rscratch,a=t?t+"-":"",o=e.pstyle(a+"text-rotation");if(o.strValue==="autorotate"){var l=uo(n,"labelAngle",t);r=e.isEdge()?l:0}else o.strValue==="none"?r=0:r=o.pfValue;return r},Vp.drawText=function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private,o=a.rscratch,l=n?t.effectiveOpacity():1;if(!(n&&(l===0||t.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var h=uo(o,"labelX",r),u=uo(o,"labelY",r),d,p,g=this.getLabelText(t,r);if(g!=null&&g!==""&&!isNaN(h)&&!isNaN(u)){this.setupTextStyle(e,t,n);var m=r?r+"-":"",y=uo(o,"labelWidth",r),x=uo(o,"labelHeight",r),C=t.pstyle(m+"text-margin-x").pfValue,w=t.pstyle(m+"text-margin-y").pfValue,_=t.isEdge(),S=t.pstyle("text-halign").value,R=t.pstyle("text-valign").value;_&&(S="center",R="center"),h+=C,u+=w;var b;switch(i?b=this.getTextAngle(t,r):b=0,b!==0&&(d=h,p=u,e.translate(d,p),e.rotate(b),h=0,u=0),R){case"top":break;case"center":u+=x/2;break;case"bottom":u+=x;break}var v=t.pstyle("text-background-opacity").value,k=t.pstyle("text-border-opacity").value,E=t.pstyle("text-border-width").pfValue,A=t.pstyle("text-background-padding").pfValue,I=t.pstyle("text-background-shape").strValue,$=I==="round-rectangle"||I==="roundrectangle",O=I==="circle",j=2;if(v>0||E>0&&k>0){var D=e.fillStyle,P=e.strokeStyle,F=e.lineWidth,U=t.pstyle("text-background-color").value,z=t.pstyle("text-border-color").value,V=t.pstyle("text-border-style").value,W=v>0,X=E>0&&k>0,J=h-A;switch(S){case"left":J-=y;break;case"center":J-=y/2;break}var H=u-x-A,te=y+2*A,ie=x+2*A;if(W&&(e.fillStyle="rgba(".concat(U[0],",").concat(U[1],",").concat(U[2],",").concat(v*l,")")),X&&(e.strokeStyle="rgba(".concat(z[0],",").concat(z[1],",").concat(z[2],",").concat(k*l,")"),e.lineWidth=E,e.setLineDash))switch(V){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=E/4,e.setLineDash([]);break;default:e.setLineDash([]);break}if($?(e.beginPath(),Qj(e,J,H,te,ie,j)):O?(e.beginPath(),dOe(e,J,H,te,ie)):(e.beginPath(),e.rect(J,H,te,ie)),W&&e.fill(),X&&e.stroke(),X&&V==="double"){var oe=E/2;e.beginPath(),$?Qj(e,J+oe,H+oe,te-2*oe,ie-2*oe,j):e.rect(J+oe,H+oe,te-2*oe,ie-2*oe),e.stroke()}e.fillStyle=D,e.strokeStyle=P,e.lineWidth=F,e.setLineDash&&e.setLineDash([])}var he=2*t.pstyle("text-outline-width").pfValue;if(he>0&&(e.lineWidth=he),t.pstyle("text-wrap").value==="wrap"){var pe=uo(o,"labelWrapCachedLines",r),se=uo(o,"labelLineHeight",r),le=y/2,ue=this.getLabelJustification(t);switch(ue==="auto"||(S==="left"?ue==="left"?h+=-y:ue==="center"&&(h+=-le):S==="center"?ue==="left"?h+=-le:ue==="right"&&(h+=le):S==="right"&&(ue==="center"?h+=le:ue==="right"&&(h+=y))),R){case"top":u-=(pe.length-1)*se;break;case"center":case"bottom":u-=(pe.length-1)*se;break}for(var de=0;de<pe.length;de++)he>0&&e.strokeText(pe[de],h,u),e.fillText(pe[de],h,u),u+=se}else he>0&&e.strokeText(g,h,u),e.fillText(g,h,u);b!==0&&(e.rotate(-b),e.translate(-d,-p))}}},xd={},xd.drawNode=function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,l,h,u=t._private,d=u.rscratch,p=t.position();if(!(!ir(p.x)||!ir(p.y))&&!(a&&!t.visible())){var g=a?t.effectiveOpacity():1,m=o.usePaths(),y,x=!1,C=t.padding();l=t.width()+2*C,h=t.height()+2*C;var w;r&&(w=r,e.translate(-w.x1,-w.y1));for(var _=t.pstyle("background-image"),S=_.value,R=new Array(S.length),b=new Array(S.length),v=0,k=0;k<S.length;k++){var E=S[k],A=R[k]=E!=null&&E!=="none";if(A){var I=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",k);v++,b[k]=o.getCachedImage(E,I,function(){u.backgroundTimestamp=Date.now(),t.emitAndNotify("background")})}}var $=t.pstyle("background-blacken").value,O=t.pstyle("border-width").pfValue,j=t.pstyle("background-opacity").value*g,D=t.pstyle("border-color").value,P=t.pstyle("border-style").value,F=t.pstyle("border-join").value,U=t.pstyle("border-cap").value,z=t.pstyle("border-position").value,V=t.pstyle("border-dash-pattern").pfValue,W=t.pstyle("border-dash-offset").pfValue,X=t.pstyle("border-opacity").value*g,J=t.pstyle("outline-width").pfValue,H=t.pstyle("outline-color").value,te=t.pstyle("outline-style").value,ie=t.pstyle("outline-opacity").value*g,oe=t.pstyle("outline-offset").value,he=t.pstyle("corner-radius").value;he!=="auto"&&(he=t.pstyle("corner-radius").pfValue);var pe=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j;o.eleFillStyle(e,t,ve)},"setupShapeColor"),se=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.colorStrokeStyle(e,D[0],D[1],D[2],ve)},"setupBorderColor"),le=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ie;o.colorStrokeStyle(e,H[0],H[1],H[2],ve)},"setupOutlineColor"),ue=s(function(ve,tt,Q,xe){var ae=o.nodePathCache=o.nodePathCache||[],_e=zG(Q==="polygon"?Q+","+xe.join(","):Q,""+tt,""+ve,""+he),Se=ae[_e],Je,Re=!1;return Se!=null?(Je=Se,Re=!0,d.pathCache=Je):(Je=new Path2D,ae[_e]=d.pathCache=Je),{path:Je,cacheHit:Re}},"getPath"),de=t.pstyle("shape").strValue,we=t.pstyle("shape-polygon-points").pfValue;if(m){e.translate(p.x,p.y);var De=ue(l,h,de,we);y=De.path,x=De.cacheHit}var Ge=s(function(){if(!x){var ve=p;m&&(ve={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(y||e,ve.x,ve.y,l,h,he,d)}m?e.fill(y):e.fill()},"drawShape"),be=s(function(){for(var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Q=u.backgrounding,xe=0,ae=0;ae<b.length;ae++){var _e=t.cy().style().getIndexedStyle(t,"background-image-containment","value",ae);if(tt&&_e==="over"||!tt&&_e==="inside"){xe++;continue}R[ae]&&b[ae].complete&&!b[ae].error&&(xe++,o.drawInscribedImage(e,b[ae],t,ae,ve))}u.backgrounding=xe!==v,Q!==u.backgrounding&&t.updateStyle(!1)},"drawImages"),qe=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;o.hasPie(t)&&(o.drawPie(e,t,tt),ve&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,p.x,p.y,l,h,he,d)))},"drawPie"),Ie=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;o.hasStripe(t)&&(e.save(),m?e.clip(d.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,p.x,p.y,l,h,he,d),e.clip()),o.drawStripe(e,t,tt),e.restore(),ve&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,p.x,p.y,l,h,he,d)))},"drawStripe"),Be=s(function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,tt=($>0?$:-$)*ve,Q=$>0?0:255;$!==0&&(o.colorFillStyle(e,Q,Q,Q,tt),m?e.fill(y):e.fill())},"darken"),ke=s(function(){if(O>0){if(e.lineWidth=O,e.lineCap=U,e.lineJoin=F,e.setLineDash)switch(P){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(V),e.lineDashOffset=W;break;case"solid":case"double":e.setLineDash([]);break}if(z!=="center"){if(e.save(),e.lineWidth*=2,z==="inside")m?e.clip(y):e.clip();else{var ve=new Path2D;ve.rect(-l/2-O,-h/2-O,l+2*O,h+2*O),ve.addPath(y),e.clip(ve,"evenodd")}m?e.stroke(y):e.stroke(),e.restore()}else m?e.stroke(y):e.stroke();if(P==="double"){e.lineWidth=O/3;var tt=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",m?e.stroke(y):e.stroke(),e.globalCompositeOperation=tt}e.setLineDash&&e.setLineDash([])}},"drawBorder"),Qe=s(function(){if(J>0){if(e.lineWidth=J,e.lineCap="butt",e.setLineDash)switch(te){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var ve=p;m&&(ve={x:0,y:0});var tt=o.getNodeShape(t),Q=O;z==="inside"&&(Q=0),z==="outside"&&(Q*=2);var xe=(l+Q+(J+oe))/l,ae=(h+Q+(J+oe))/h,_e=l*xe,Se=h*ae,Je=o.nodeShapes[tt].points,Re;if(m){var et=ue(_e,Se,tt,Je);Re=et.path}if(tt==="ellipse")o.drawEllipsePath(Re||e,ve.x,ve.y,_e,Se);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(tt)){var ze=0,Ke=0,We=0;tt==="round-diamond"?ze=(Q+oe+J)*1.4:tt==="round-heptagon"?(ze=(Q+oe+J)*1.075,We=-(Q/2+oe+J)/35):tt==="round-hexagon"?ze=(Q+oe+J)*1.12:tt==="round-pentagon"?(ze=(Q+oe+J)*1.13,We=-(Q/2+oe+J)/15):tt==="round-tag"?(ze=(Q+oe+J)*1.12,Ke=(Q/2+J+oe)*.07):tt==="round-triangle"&&(ze=(Q+oe+J)*(Math.PI/2),We=-(Q+oe/2+J)/Math.PI),ze!==0&&(xe=(l+ze)/l,_e=l*xe,["round-hexagon","round-tag"].includes(tt)||(ae=(h+ze)/h,Se=h*ae)),he=he==="auto"?rU(_e,Se):he;for(var nt=_e/2,Te=Se/2,bt=he+(Q+J+oe)/2,Ae=new Array(Je.length/2),ft=new Array(Je.length/2),Nt=0;Nt<Je.length/2;Nt++)Ae[Nt]={x:ve.x+Ke+nt*Je[Nt*2],y:ve.y+We+Te*Je[Nt*2+1]};var Wt,Ht,Ft,Qt,Dt=Ae.length;for(Ht=Ae[Dt-1],Wt=0;Wt<Dt;Wt++)Ft=Ae[Wt%Dt],Qt=Ae[(Wt+1)%Dt],ft[Wt]=e7(Ht,Ft,Qt,bt),Ht=Ft,Ft=Qt;o.drawRoundPolygonPath(Re||e,ve.x+Ke,ve.y+We,l*xe,h*ae,Je,ft)}else if(["roundrectangle","round-rectangle"].includes(tt))he=he==="auto"?ud(_e,Se):he,o.drawRoundRectanglePath(Re||e,ve.x,ve.y,_e,Se,he+(Q+J+oe)/2);else if(["cutrectangle","cut-rectangle"].includes(tt))he=he==="auto"?v7():he,o.drawCutRectanglePath(Re||e,ve.x,ve.y,_e,Se,null,he+(Q+J+oe)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(tt))he=he==="auto"?ud(_e,Se):he,o.drawBottomRoundRectanglePath(Re||e,ve.x,ve.y,_e,Se,he+(Q+J+oe)/2);else if(tt==="barrel")o.drawBarrelPath(Re||e,ve.x,ve.y,_e,Se);else if(tt.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(tt)){var Mt=(Q+J+oe)/l;Je=H3(Y3(Je,Mt)),o.drawPolygonPath(Re||e,ve.x,ve.y,l,h,Je)}else{var $t=(Q+J+oe)/l;Je=H3(Y3(Je,-$t)),o.drawPolygonPath(Re||e,ve.x,ve.y,l,h,Je)}if(m?e.stroke(Re):e.stroke(),te==="double"){e.lineWidth=Q/3;var At=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",m?e.stroke(Re):e.stroke(),e.globalCompositeOperation=At}e.setLineDash&&e.setLineDash([])}},"drawOutline"),Pe=s(function(){n&&o.drawNodeOverlay(e,t,p,l,h)},"drawOverlay"),ht=s(function(){n&&o.drawNodeUnderlay(e,t,p,l,h)},"drawUnderlay"),Xe=s(function(){o.drawElementText(e,t,null,i)},"drawText"),dt=t.pstyle("ghost").value==="yes";if(dt){var at=t.pstyle("ghost-offset-x").pfValue,kt=t.pstyle("ghost-offset-y").pfValue,Le=t.pstyle("ghost-opacity").value,lt=Le*g;e.translate(at,kt),le(),Qe(),pe(Le*j),Ge(),be(lt,!0),se(Le*X),ke(),qe($!==0||O!==0),Ie($!==0||O!==0),be(lt,!1),Be(lt),e.translate(-at,-kt)}m&&e.translate(-p.x,-p.y),ht(),m&&e.translate(p.x,p.y),le(),Qe(),pe(),Ge(),be(g,!0),se(),ke(),qe($!==0||O!==0),Ie($!==0||O!==0),be(g,!1),Be(),m&&e.translate(-p.x,-p.y),Xe(),Pe(),r&&e.translate(w.x1,w.y1)}},AW=s(function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,r,i,n,a){var o=this;if(r.visible()){var l=r.pstyle("".concat(e,"-padding")).pfValue,h=r.pstyle("".concat(e,"-opacity")).value,u=r.pstyle("".concat(e,"-color")).value,d=r.pstyle("".concat(e,"-shape")).value,p=r.pstyle("".concat(e,"-corner-radius")).value;if(h>0){if(i=i||r.position(),n==null||a==null){var g=r.padding();n=r.width()+2*g,a=r.height()+2*g}o.colorFillStyle(t,u[0],u[1],u[2],h),o.nodeShapes[d].draw(t,i.x,i.y,n+l*2,a+l*2,p),t.fill()}}}},"drawNodeOverlayUnderlay"),xd.drawNodeOverlay=AW("overlay"),xd.drawNodeUnderlay=AW("underlay"),xd.hasPie=function(e){return e=e[0],e._private.hasPie},xd.hasStripe=function(e){return e=e[0],e._private.hasStripe},xd.drawPie=function(e,t,r,i){t=t[0],i=i||t.position();var n=t.cy().style(),a=t.pstyle("pie-size"),o=t.pstyle("pie-hole"),l=t.pstyle("pie-start-angle").pfValue,h=i.x,u=i.y,d=t.width(),p=t.height(),g=Math.min(d,p)/2,m,y=0,x=this.usePaths();if(x&&(h=0,u=0),a.units==="%"?g=g*a.pfValue:a.pfValue!==void 0&&(g=a.pfValue/2),o.units==="%"?m=g*o.pfValue:o.pfValue!==void 0&&(m=o.pfValue/2),!(m>=g))for(var C=1;C<=n.pieBackgroundN;C++){var w=t.pstyle("pie-"+C+"-background-size").value,_=t.pstyle("pie-"+C+"-background-color").value,S=t.pstyle("pie-"+C+"-background-opacity").value*r,R=w/100;R+y>1&&(R=1-y);var b=1.5*Math.PI+2*Math.PI*y;b+=l;var v=2*Math.PI*R,k=b+v;w===0||y>=1||y+R>1||(m===0?(e.beginPath(),e.moveTo(h,u),e.arc(h,u,g,b,k),e.closePath()):(e.beginPath(),e.arc(h,u,g,b,k),e.arc(h,u,m,k,b,!0),e.closePath()),this.colorFillStyle(e,_[0],_[1],_[2],S),e.fill(),y+=R)}},xd.drawStripe=function(e,t,r,i){t=t[0],i=i||t.position();var n=t.cy().style(),a=i.x,o=i.y,l=t.width(),h=t.height(),u=0,d=this.usePaths();e.save();var p=t.pstyle("stripe-direction").value,g=t.pstyle("stripe-size");switch(p){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var m=l,y=h;g.units==="%"?(m=m*g.pfValue,y=y*g.pfValue):g.pfValue!==void 0&&(m=g.pfValue,y=g.pfValue),d&&(a=0,o=0),o-=m/2,a-=y/2;for(var x=1;x<=n.stripeBackgroundN;x++){var C=t.pstyle("stripe-"+x+"-background-size").value,w=t.pstyle("stripe-"+x+"-background-color").value,_=t.pstyle("stripe-"+x+"-background-opacity").value*r,S=C/100;S+u>1&&(S=1-u),!(C===0||u>=1||u+S>1)&&(e.beginPath(),e.rect(a,o+y*u,m,y*S),e.closePath(),this.colorFillStyle(e,w[0],w[1],w[2],_),e.fill(),u+=S)}e.restore()},Us={},Rqe=100,Us.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r},Us.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],r=!0,i,n=0;n<t.length;n++)if(i=t[n],i.context===e){r=!1;break}return r&&(i={context:e},t.push(i)),i},Us.createGradientStyleFor=function(e,t,r,i,n){var a,o=this.usePaths(),l=r.pstyle(t+"-gradient-stop-colors").value,h=r.pstyle(t+"-gradient-stop-positions").pfValue;if(i==="radial-gradient")if(r.isEdge()){var u=r.sourceEndpoint(),d=r.targetEndpoint(),p=r.midpoint(),g=Pp(u,p),m=Pp(d,p);a=e.createRadialGradient(p.x,p.y,0,p.x,p.y,Math.max(g,m))}else{var y=o?{x:0,y:0}:r.position(),x=r.paddedWidth(),C=r.paddedHeight();a=e.createRadialGradient(y.x,y.y,0,y.x,y.y,Math.max(x,C))}else if(r.isEdge()){var w=r.sourceEndpoint(),_=r.targetEndpoint();a=e.createLinearGradient(w.x,w.y,_.x,_.y)}else{var S=o?{x:0,y:0}:r.position(),R=r.paddedWidth(),b=r.paddedHeight(),v=R/2,k=b/2,E=r.pstyle("background-gradient-direction").value;switch(E){case"to-bottom":a=e.createLinearGradient(S.x,S.y-k,S.x,S.y+k);break;case"to-top":a=e.createLinearGradient(S.x,S.y+k,S.x,S.y-k);break;case"to-left":a=e.createLinearGradient(S.x+v,S.y,S.x-v,S.y);break;case"to-right":a=e.createLinearGradient(S.x-v,S.y,S.x+v,S.y);break;case"to-bottom-right":case"to-right-bottom":a=e.createLinearGradient(S.x-v,S.y-k,S.x+v,S.y+k);break;case"to-top-right":case"to-right-top":a=e.createLinearGradient(S.x-v,S.y+k,S.x+v,S.y-k);break;case"to-bottom-left":case"to-left-bottom":a=e.createLinearGradient(S.x+v,S.y-k,S.x-v,S.y+k);break;case"to-top-left":case"to-left-top":a=e.createLinearGradient(S.x+v,S.y+k,S.x-v,S.y-k);break}}if(!a)return null;for(var A=h.length===l.length,I=l.length,$=0;$<I;$++)a.addColorStop(A?h[$]:$/(I-1),"rgba("+l[$][0]+","+l[$][1]+","+l[$][2]+","+n+")");return a},Us.gradientFillStyle=function(e,t,r,i){var n=this.createGradientStyleFor(e,"background",t,r,i);if(!n)return null;e.fillStyle=n},Us.colorFillStyle=function(e,t,r,i,n){e.fillStyle="rgba("+t+","+r+","+i+","+n+")"},Us.eleFillStyle=function(e,t,r){var i=t.pstyle("background-fill").value;if(i==="linear-gradient"||i==="radial-gradient")this.gradientFillStyle(e,t,i,r);else{var n=t.pstyle("background-color").value;this.colorFillStyle(e,n[0],n[1],n[2],r)}},Us.gradientStrokeStyle=function(e,t,r,i){var n=this.createGradientStyleFor(e,"line",t,r,i);if(!n)return null;e.strokeStyle=n},Us.colorStrokeStyle=function(e,t,r,i,n){e.strokeStyle="rgba("+t+","+r+","+i+","+n+")"},Us.eleStrokeStyle=function(e,t,r){var i=t.pstyle("line-fill").value;if(i==="linear-gradient"||i==="radial-gradient")this.gradientStrokeStyle(e,t,i,r);else{var n=t.pstyle("line-color").value;this.colorStrokeStyle(e,n[0],n[1],n[2],r)}},Us.matchCanvasSize=function(e){var t=this,r=t.data,i=t.findContainerClientCoords(),n=i[2],a=i[3],o=t.getPixelRatio(),l=t.motionBlurPxRatio;(e===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]||e===t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG])&&(o=l);var h=n*o,u=a*o,d;if(!(h===t.canvasWidth&&u===t.canvasHeight)){t.fontCaches=null;var p=r.canvasContainer;p.style.width=n+"px",p.style.height=a+"px";for(var g=0;g<t.CANVAS_LAYERS;g++)d=r.canvases[g],d.width=h,d.height=u,d.style.width=n+"px",d.style.height=a+"px";for(var g=0;g<t.BUFFER_COUNT;g++)d=r.bufferCanvases[g],d.width=h,d.height=u,d.style.width=n+"px",d.style.height=a+"px";t.textureMult=1,o<=1&&(d=r.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,d.width=h*t.textureMult,d.height=u*t.textureMult),t.canvasWidth=h,t.canvasHeight=u,t.pixelRatio=o}},Us.renderTo=function(e,t,r,i){this.render({forcedContext:e,forcedZoom:t,forcedPan:r,drawAllLayers:!0,forcedPxRatio:i})},Us.clearCanvas=function(){var e=this,t=e.data;function r(i){i.clearRect(0,0,e.canvasWidth,e.canvasHeight)}f(r,"r"),s(r,"clear"),r(t.contexts[e.NODE]),r(t.contexts[e.DRAG])},Us.render=function(e){var t=this;e=e||WG();var r=t.cy,i=e.forcedContext,n=e.drawAllLayers,a=e.drawOnlyNodeLayer,o=e.forcedZoom,l=e.forcedPan,h=e.forcedPxRatio===void 0?this.getPixelRatio():e.forcedPxRatio,u=t.data,d=u.canvasNeedsRedraw,p=t.textureOnViewport&&!i&&(t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming),g=e.motionBlur!==void 0?e.motionBlur:t.motionBlur,m=t.motionBlurPxRatio,y=r.hasCompoundNodes(),x=t.hoverData.draggingEles,C=!!(t.hoverData.selecting||t.touchData.selecting);g=g&&!i&&t.motionBlurEnabled&&!C;var w=g;i||(t.prevPxRatio!==h&&(t.invalidateContainerClientCoordsCache(),t.matchCanvasSize(t.container),t.redrawHint("eles",!0),t.redrawHint("drag",!0)),t.prevPxRatio=h),!i&&t.motionBlurTimeout&&clearTimeout(t.motionBlurTimeout),g&&(t.mbFrames==null&&(t.mbFrames=0),t.mbFrames++,t.mbFrames<3&&(w=!1),t.mbFrames>t.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!p&&(d[t.NODE]=!0,d[t.SELECT_BOX]=!0);var _=r.style(),S=r.zoom(),R=o!==void 0?o:S,b=r.pan(),v={x:b.x,y:b.y},k={zoom:S,pan:{x:b.x,y:b.y}},E=t.prevViewport,A=E===void 0||k.zoom!==E.zoom||k.pan.x!==E.pan.x||k.pan.y!==E.pan.y;!A&&!(x&&!y)&&(t.motionBlurPxRatio=1),l&&(v=l),R*=h,v.x*=h,v.y*=h;var I=t.getCachedZSortedEles();function $(se,le,ue,de,we){var De=se.globalCompositeOperation;se.globalCompositeOperation="destination-out",t.colorFillStyle(se,255,255,255,t.motionBlurTransparency),se.fillRect(le,ue,de,we),se.globalCompositeOperation=De}f($,"I"),s($,"mbclear");function O(se,le){var ue,de,we,De;!t.clearingMotionBlur&&(se===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||se===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(ue={x:b.x*m,y:b.y*m},de=S*m,we=t.canvasWidth*m,De=t.canvasHeight*m):(ue=v,de=R,we=t.canvasWidth,De=t.canvasHeight),se.setTransform(1,0,0,1,0,0),le==="motionBlur"?$(se,0,0,we,De):!i&&(le===void 0||le)&&se.clearRect(0,0,we,De),n||(se.translate(ue.x,ue.y),se.scale(de,de)),l&&se.translate(l.x,l.y),o&&se.scale(o,o)}if(f(O,"D"),s(O,"setContextTransform"),p||(t.textureDrawLastFrame=!1),p){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=r.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var j=t.data.bufferContexts[t.TEXTURE_BUFFER];j.setTransform(1,0,0,1,0,0),j.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:j,drawOnlyNodeLayer:!0,forcedPxRatio:h*t.textureMult});var k=t.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:t.canvasWidth,height:t.canvasHeight};k.mpan={x:(0-k.pan.x)/k.zoom,y:(0-k.pan.y)/k.zoom}}d[t.DRAG]=!1,d[t.NODE]=!1;var D=u.contexts[t.NODE],P=t.textureCache.texture,k=t.textureCache.viewport;D.setTransform(1,0,0,1,0,0),g?$(D,0,0,k.width,k.height):D.clearRect(0,0,k.width,k.height);var F=_.core("outside-texture-bg-color").value,U=_.core("outside-texture-bg-opacity").value;t.colorFillStyle(D,F[0],F[1],F[2],U),D.fillRect(0,0,k.width,k.height);var S=r.zoom();O(D,!1),D.clearRect(k.mpan.x,k.mpan.y,k.width/k.zoom/h,k.height/k.zoom/h),D.drawImage(P,k.mpan.x,k.mpan.y,k.width/k.zoom/h,k.height/k.zoom/h)}else t.textureOnViewport&&!i&&(t.textureCache=null);var z=r.extent(),V=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),W=t.hideEdgesOnViewport&&V,X=[];
vendor: 16,716 bytes, lines 580-616
580if(X[t.NODE]=!d[t.NODE]&&g&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,X[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),X[t.DRAG]=!d[t.DRAG]&&g&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,X[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),d[t.NODE]||n||a||X[t.NODE]){var J=g&&!X[t.NODE]&&m!==1,D=i||(J?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]),H=g&&!J?"motionBlur":void 0;O(D,H),W?t.drawCachedNodes(D,I.nondrag,h,z):t.drawLayeredElements(D,I.nondrag,h,z),t.debug&&t.drawDebugPoints(D,I.nondrag),!n&&!g&&(d[t.NODE]=!1)}if(!a&&(d[t.DRAG]||n||X[t.DRAG])){var J=g&&!X[t.DRAG]&&m!==1,D=i||(J?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);O(D,g&&!J?"motionBlur":void 0),W?t.drawCachedNodes(D,I.drag,h,z):t.drawCachedElements(D,I.drag,h,z),t.debug&&t.drawDebugPoints(D,I.drag),!n&&!g&&(d[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,O),g&&m!==1){var te=u.contexts[t.NODE],ie=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],oe=u.contexts[t.DRAG],he=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],pe=s(function(se,le,ue){se.setTransform(1,0,0,1,0,0),ue||!w?se.clearRect(0,0,t.canvasWidth,t.canvasHeight):$(se,0,0,t.canvasWidth,t.canvasHeight);var de=m;se.drawImage(le,0,0,t.canvasWidth*de,t.canvasHeight*de,0,0,t.canvasWidth,t.canvasHeight)},"drawMotionBlur");(d[t.NODE]||X[t.NODE])&&(pe(te,ie,X[t.NODE]),d[t.NODE]=!1),(d[t.DRAG]||X[t.DRAG])&&(pe(oe,he,X[t.DRAG]),d[t.DRAG]=!1)}t.prevViewport=k,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),g&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!p,t.mbFrames=0,d[t.NODE]=!0,d[t.DRAG]=!0,t.redraw()},Rqe)),i||r.emit("render")},Us.drawSelectionRectangle=function(e,t){var r=this,i=r.cy,n=r.data,a=i.style(),o=e.drawOnlyNodeLayer,l=e.drawAllLayers,h=n.canvasNeedsRedraw,u=e.forcedContext;if(r.showFps||!o&&h[r.SELECT_BOX]&&!l){var d=u||n.contexts[r.SELECT_BOX];if(t(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var p=r.cy.zoom(),g=a.core("selection-box-border-width").value/p;d.lineWidth=g,d.fillStyle="rgba("+a.core("selection-box-color").value[0]+","+a.core("selection-box-color").value[1]+","+a.core("selection-box-color").value[2]+","+a.core("selection-box-opacity").value+")",d.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),g>0&&(d.strokeStyle="rgba("+a.core("selection-box-border-color").value[0]+","+a.core("selection-box-border-color").value[1]+","+a.core("selection-box-border-color").value[2]+","+a.core("selection-box-opacity").value+")",d.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(n.bgActivePosistion&&!r.hoverData.selecting){var p=r.cy.zoom(),m=n.bgActivePosistion;d.fillStyle="rgba("+a.core("active-bg-color").value[0]+","+a.core("active-bg-color").value[1]+","+a.core("active-bg-color").value[2]+","+a.core("active-bg-opacity").value+")",d.beginPath(),d.arc(m.x,m.y,a.core("active-bg-size").pfValue/p,0,2*Math.PI),d.fill()}var y=r.lastRedrawTime;if(r.showFps&&y){y=Math.round(y);var x=Math.round(1e3/y),C="1 frame = "+y+" ms = "+x+" fps";if(d.setTransform(1,0,0,1,0,0),d.fillStyle="rgba(255, 0, 0, 0.75)",d.strokeStyle="rgba(255, 0, 0, 0.75)",d.font="30px Arial",!Tk){var w=d.measureText(C);Tk=w.actualBoundingBoxAscent}d.fillText(C,0,Tk);var _=60;d.strokeRect(0,Tk+10,250,20),d.fillRect(0,Tk+10,250*Math.min(x/_,1),20)}l||(h[r.SELECT_BOX]=!1)}},s(Jj,"compileShader"),s(pOe,"createProgram"),s(gOe,"createTextureCanvas"),s(t7,"getEffectivePanZoom"),s(fOe,"getEffectiveZoom"),s(mOe,"modelToRenderedPosition"),s(yOe,"isSimpleShape"),s(vOe,"arrayEqual"),s(Op,"toWebGLColor"),s(uf,"indexToVec4"),s(bOe,"vec4ToIndex"),s(xOe,"createTexture"),s(eG,"getTypeInfo"),s(tG,"createTypedArray"),s(kOe,"createTypedArrayView"),s(TOe,"createBufferStaticDraw"),s(Ac,"createBufferDynamicDraw"),s(wOe,"create3x3MatrixBufferDynamicDraw"),s(COe,"createPickingFrameBuffer"),LW=typeof Float32Array<"u"?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),s(r7,"create"),s(rG,"identity"),s(EOe,"multiply"),s(O3,"translate"),s(iG,"rotate"),s(i7,"scale"),s(SOe,"projection"),Iqe=(function(){function e(t,r,i,n){id(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=r,this.texRows=i,this.texHeight=Math.floor(r/i),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=n(t,r,r),this.scratch=n(t,r,this.texHeight,"scratch")}return f(e,"e"),s(e,"Atlas"),nd(e,[{key:"lock",value:s(function(){this.locked=!0},"lock")},{key:"getKeys",value:s(function(){return new Set(this.keyToLocation.keys())},"getKeys")},{key:"getScale",value:s(function(t){var r=t.w,i=t.h,n=this.texHeight,a=this.texSize,o=n/i,l=r*o,h=i*o;return l>a&&(o=a/r,l=r*o,h=i*o),{scale:o,texW:l,texH:h}},"getScale")},{key:"draw",value:s(function(t,r,i){var n=this;if(this.locked)throw new Error("can't draw, atlas is locked");var a=this.texSize,o=this.texRows,l=this.texHeight,h=this.getScale(r),u=h.scale,d=h.texW,p=h.texH,g=s(function(w,_){if(i&&_){var S=_.context,R=w.x,b=w.row,v=R,k=l*b;S.save(),S.translate(v,k),S.scale(u,u),i(S,r),S.restore()}},"drawAt"),m=[null,null],y=s(function(){g(n.freePointer,n.canvas),m[0]={x:n.freePointer.x,y:n.freePointer.row*l,w:d,h:p},m[1]={x:n.freePointer.x+d,y:n.freePointer.row*l,w:0,h:p},n.freePointer.x+=d,n.freePointer.x==a&&(n.freePointer.x=0,n.freePointer.row++)},"drawNormal"),x=s(function(){var w=n.scratch,_=n.canvas;w.clear(),g({x:0,row:0},w);var S=a-n.freePointer.x,R=d-S,b=l;{var v=n.freePointer.x,k=n.freePointer.row*l,E=S;_.context.drawImage(w,0,0,E,b,v,k,E,b),m[0]={x:v,y:k,w:E,h:p}}{var A=S,I=(n.freePointer.row+1)*l,$=R;_&&_.context.drawImage(w,A,0,$,b,0,I,$,b),m[1]={x:0,y:I,w:$,h:p}}n.freePointer.x=R,n.freePointer.row++},"drawWrapped"),C=s(function(){n.freePointer.x=0,n.freePointer.row++},"moveToStartOfNextRow");if(this.freePointer.x+d<=a)y();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===a?(C(),y()):this.enableWrapping?x():(C(),y())}return this.keyToLocation.set(t,m),this.needsBuffer=!0,m},"draw")},{key:"getOffsets",value:s(function(t){return this.keyToLocation.get(t)},"getOffsets")},{key:"isEmpty",value:s(function(){return this.freePointer.x===0&&this.freePointer.row===0},"isEmpty")},{key:"canFit",value:s(function(t){if(this.locked)return!1;var r=this.texSize,i=this.texRows,n=this.getScale(t),a=n.texW;return this.freePointer.x+a>r?this.freePointer.row<i-1:!0},"canFit")},{key:"bufferIfNeeded",value:s(function(t){this.texture||(this.texture=xOe(t,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))},"bufferIfNeeded")},{key:"dispose",value:s(function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0},"dispose")}])})(),Dqe=(function(){function e(t,r,i,n){id(this,e),this.r=t,this.texSize=r,this.texRows=i,this.createTextureCanvas=n,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set}return f(e,"e"),s(e,"AtlasCollection"),nd(e,[{key:"getKeys",value:s(function(){return new Set(this.styleKeyToAtlas.keys())},"getKeys")},{key:"_createAtlas",value:s(function(){var t=this.r,r=this.texSize,i=this.texRows,n=this.createTextureCanvas;return new Iqe(t,r,i,n)},"_createAtlas")},{key:"_getScratchCanvas",value:s(function(){if(!this.scratch){var t=this.r,r=this.texSize,i=this.texRows,n=this.createTextureCanvas,a=Math.floor(r/i);this.scratch=n(t,r,a,"scratch")}return this.scratch},"_getScratchCanvas")},{key:"draw",value:s(function(t,r,i){var n=this.styleKeyToAtlas.get(t);return n||(n=this.atlases[this.atlases.length-1],(!n||!n.canFit(r))&&(n&&n.lock(),n=this._createAtlas(),this.atlases.push(n)),n.draw(t,r,i),this.styleKeyToAtlas.set(t,n)),n},"draw")},{key:"getAtlas",value:s(function(t){return this.styleKeyToAtlas.get(t)},"getAtlas")},{key:"hasAtlas",value:s(function(t){return this.styleKeyToAtlas.has(t)},"hasAtlas")},{key:"markKeyForGC",value:s(function(t){this.markedKeys.add(t)},"markKeyForGC")},{key:"gc",value:s(function(){var t=this,r=this.markedKeys;if(r.size===0){console.log("nothing to garbage collect");return}var i=[],n=new Map,a=null,o=ho(this.atlases),l;try{var h=s(function(){var u=l.value,d=u.getKeys(),p=_Oe(r,d);if(p.size===0)return i.push(u),d.forEach(function(S){return n.set(S,u)}),1;a||(a=t._createAtlas(),i.push(a));var g=ho(d),m;try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!p.has(y)){var x=u.getOffsets(y),C=Ea(x,2),w=C[0],_=C[1];a.canFit({w:w.w+_.w,h:w.h})||(a.lock(),a=t._createAtlas(),i.push(a)),u.canvas&&(t._copyTextureToNewAtlas(y,u,a),n.set(y,a))}}}catch(S){g.e(S)}finally{g.f()}u.dispose()},"_loop");for(o.s();!(l=o.n()).done;)h()}catch(u){o.e(u)}finally{o.f()}this.atlases=i,this.styleKeyToAtlas=n,this.markedKeys=new Set},"gc")},{key:"_copyTextureToNewAtlas",value:s(function(t,r,i){var n=r.getOffsets(t),a=Ea(n,2),o=a[0],l=a[1];if(l.w===0)i.draw(t,o,function(p){p.drawImage(r.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h)});else{var h=this._getScratchCanvas();h.clear(),h.context.drawImage(r.canvas,o.x,o.y,o.w,o.h,0,0,o.w,o.h),h.context.drawImage(r.canvas,l.x,l.y,l.w,l.h,o.w,0,l.w,l.h);var u=o.w+l.w,d=o.h;i.draw(t,{w:u,h:d},function(p){p.drawImage(h,0,0,u,d,0,0,u,d)})}},"_copyTextureToNewAtlas")},{key:"getCounts",value:s(function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}},"getCounts")}])})(),s(_Oe,"intersection"),Nqe=(function(){function e(t,r){id(this,e),this.r=t,this.globalOptions=r,this.atlasSize=r.webglTexSize,this.maxAtlasesPerBatch=r.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map}return f(e,"e"),s(e,"AtlasManager"),nd(e,[{key:"getAtlasSize",value:s(function(){return this.atlasSize},"getAtlasSize")},{key:"addAtlasCollection",value:s(function(t,r){var i=this.globalOptions,n=i.webglTexSize,a=i.createTextureCanvas,o=r.texRows,l=this._cacheScratchCanvas(a),h=new Dqe(this.r,n,o,l);this.collections.set(t,h)},"addAtlasCollection")},{key:"addRenderType",value:s(function(t,r){var i=r.collection;if(!this.collections.has(i))throw new Error("invalid atlas collection name '".concat(i,"'"));var n=this.collections.get(i),a=qr({type:t,atlasCollection:n},r);this.renderTypes.set(t,a)},"addRenderType")},{key:"getRenderTypeOpts",value:s(function(t){return this.renderTypes.get(t)},"getRenderTypeOpts")},{key:"getAtlasCollection",value:s(function(t){return this.collections.get(t)},"getAtlasCollection")},{key:"_cacheScratchCanvas",value:s(function(t){var r=-1,i=-1,n=null;return function(a,o,l,h){return h?((!n||o!=r||l!=i)&&(r=o,i=l,n=t(a,o,l)),n):t(a,o,l)}},"_cacheScratchCanvas")},{key:"_key",value:s(function(t,r){return"".concat(t,"-").concat(r)},"_key")},{key:"invalidate",value:s(function(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.forceRedraw,a=n===void 0?!1:n,o=i.filterEle,l=o===void 0?function(){return!0}:o,h=i.filterType,u=h===void 0?function(){return!0}:h,d=!1,p=!1,g=ho(t),m;try{for(g.s();!(m=g.n()).done;){var y=m.value;if(l(y)){var x=ho(this.renderTypes.values()),C;try{var w=s(function(){var _=C.value,S=_.type;if(u(S)){var R=r.collections.get(_.collection),b=_.getKey(y),v=Array.isArray(b)?b:[b];if(a)v.forEach(function(I){return R.markKeyForGC(I)}),p=!0;else{var k=_.getID?_.getID(y):y.id(),E=r._key(S,k),A=r.typeAndIdToKey.get(E);A!==void 0&&!vOe(v,A)&&(d=!0,r.typeAndIdToKey.delete(E),A.forEach(function(I){return R.markKeyForGC(I)}))}}},"_loop2");for(x.s();!(C=x.n()).done;)w()}catch(_){x.e(_)}finally{x.f()}}}}catch(_){g.e(_)}finally{g.f()}return p&&(this.gc(),d=!1),d},"invalidate")},{key:"gc",value:s(function(){var t=ho(this.collections.values()),r;try{for(t.s();!(r=t.n()).done;){var i=r.value;i.gc()}}catch(n){t.e(n)}finally{t.f()}},"gc")},{key:"getOrCreateAtlas",value:s(function(t,r,i,n){var a=this.renderTypes.get(r),o=this.collections.get(a.collection),l=!1,h=o.draw(n,i,function(p){a.drawClipped?(p.save(),p.beginPath(),p.rect(0,0,i.w,i.h),p.clip(),a.drawElement(p,t,i,!0,!0),p.restore()):a.drawElement(p,t,i,!0,!0),l=!0});if(l){var u=a.getID?a.getID(t):t.id(),d=this._key(r,u);this.typeAndIdToKey.has(d)?this.typeAndIdToKey.get(d).push(n):this.typeAndIdToKey.set(d,[n])}return h},"getOrCreateAtlas")},{key:"getAtlasInfo",value:s(function(t,r){var i=this,n=this.renderTypes.get(r),a=n.getKey(t),o=Array.isArray(a)?a:[a];return o.map(function(l){var h=n.getBoundingBox(t,l),u=i.getOrCreateAtlas(t,r,h,l),d=u.getOffsets(l),p=Ea(d,2),g=p[0],m=p[1];return{atlas:u,tex:g,tex1:g,tex2:m,bb:h}})},"getAtlasInfo")},{key:"getDebugInfo",value:s(function(){var t=[],r=ho(this.collections),i;try{for(r.s();!(i=r.n()).done;){var n=Ea(i.value,2),a=n[0],o=n[1],l=o.getCounts(),h=l.keyCount,u=l.atlasCount;t.push({type:a,keyCount:h,atlasCount:u})}}catch(d){r.e(d)}finally{r.f()}return t},"getDebugInfo")}])})(),Mqe=(function(){function e(t){id(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return f(e,"e"),s(e,"AtlasBatchManager"),nd(e,[{key:"getMaxAtlasesPerBatch",value:s(function(){return this.maxAtlasesPerBatch},"getMaxAtlasesPerBatch")},{key:"getAtlasSize",value:s(function(){return this.atlasSize},"getAtlasSize")},{key:"getIndexArray",value:s(function(){return Array.from({length:this.maxAtlasesPerBatch},function(t,r){return r})},"getIndexArray")},{key:"startBatch",value:s(function(){this.batchAtlases=[]},"startBatch")},{key:"getAtlasCount",value:s(function(){return this.batchAtlases.length},"getAtlasCount")},{key:"getAtlases",value:s(function(){return this.batchAtlases},"getAtlases")},{key:"canAddToCurrentBatch",value:s(function(t){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(t):!0},"canAddToCurrentBatch")},{key:"getAtlasIndexForBatch",value:s(function(t){var r=this.batchAtlases.indexOf(t);if(r<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(t),r=this.batchAtlases.length-1}return r},"getAtlasIndexForBatch")}])})(),Oqe=` 581 float circleSD(vec2 p, float r) { 582 return distance(vec2(0), p) - r; // signed distance 583 } 584`,$qe=` 585 float rectangleSD(vec2 p, vec2 b) { 586 vec2 d = abs(p)-b; 587 return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); 588 } 589`,Bqe=` 590 float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { 591 cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; 592 cr.x = (p.y > 0.0) ? cr.x : cr.y; 593 vec2 q = abs(p) - b + cr.x; 594 return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; 595 } 596`,Pqe=` 597 float ellipseSD(vec2 p, vec2 ab) { 598 p = abs( p ); // symmetry 599 600 // find root with Newton solver 601 vec2 q = ab*(p-ab); 602 float w = (q.x<q.y)? 1.570796327 : 0.0; 603 for( int i=0; i<5; i++ ) { 604 vec2 cs = vec2(cos(w),sin(w)); 605 vec2 u = ab*vec2( cs.x,cs.y); 606 vec2 v = ab*vec2(-cs.y,cs.x); 607 w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v)); 608 } 609 610 // compute final point and distance 611 float d = length(p-ab*vec2(cos(w),sin(w))); 612 613 // return signed distance 614 return (dot(p/ab,p/ab)>1.0) ? d : -d; 615 } 616`,y2={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},wk={IGNORE:1,USE_BB:2},j7=0,RW=1,IW=2,G7=3,Df=4,Ck=5,v2=6,b2=7,Fqe=(function(){function e(t,r,i){id(this,e),this.r=t,this.gl=r,this.maxInstances=i.webglBatchSize,this.atlasSize=i.webglTexSize,this.bgColor=i.bgColor,this.debug=i.webglDebug,this.batchDebugInfo=[],i.enableWrapping=!0,i.createTextureCanvas=gOe,this.atlasManager=new Nqe(t,i),this.batchManager=new Mqe(i),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(y2.SCREEN),this.pickingProgram=this._createShaderProgram(y2.PICKING),this.vao=this._createVAO()}return f(e,"e"),s(e,"ElementDrawingWebGL"),nd(e,[{key:"addAtlasCollection",value:s(function(t,r){this.atlasManager.addAtlasCollection(t,r)},"addAtlasCollection")},{key:"addTextureAtlasRenderType",value:s(function(t,r){this.atlasManager.addRenderType(t,r)},"addTextureAtlasRenderType")},{key:"addSimpleShapeRenderType",value:s(function(t,r){this.simpleShapeOptions.set(t,r)},"addSimpleShapeRenderType")},{key:"invalidate",value:s(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.type,n=this.atlasManager;return i?n.invalidate(t,{filterType:s(function(a){return a===i},"filterType"),forceRedraw:!0}):n.invalidate(t)},"invalidate")},{key:"gc",value:s(function(){this.atlasManager.gc()},"gc")}
616,{key:"_createShaderProgram",value:s(function(t){var r=this.gl,i=`#version 300 es 617 precision highp float; 618 619 uniform mat3 uPanZoomMatrix; 620 uniform int uAtlasSize; 621 622 // instanced 623 in vec2 aPosition; // a vertex from the unit square 624 625 in mat3 aTransform; // used to transform verticies, eg into a bounding box 626 in int aVertType; // the type of thing we are rendering 627 628 // the z-index that is output when using picking mode 629 in vec4 aIndex; 630 631 // For textures 632 in int aAtlasId; // which shader unit/atlas to use 633 in vec4 aTex; // x/y/w/h of texture in atlas 634 635 // for edges 636 in vec4 aPointAPointB; 637 in vec4 aPointCPointD; 638 in vec2 aLineWidth; // also used for node border width 639 640 // simple shapes 641 in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] 642 in vec4 aColor; // also used for edges 643 in vec4 aBorderColor; // aLineWidth is used for border width 644 645 // output values passed to the fragment shader 646 out vec2 vTexCoord; 647 out vec4 vColor; 648 out vec2 vPosition; 649 // flat values are not interpolated 650 flat out int vAtlasId; 651 flat out int vVertType; 652 flat out vec2 vTopRight; 653 flat out vec2 vBotLeft; 654 flat out vec4 vCornerRadius; 655 flat out vec4 vBorderColor; 656 flat out vec2 vBorderWidth; 657 flat out vec4 vIndex; 658 659 void main(void) { 660 int vid = gl_VertexID; 661 vec2 position = aPosition; // TODO make this a vec3, simplifies some code below 662 663 if(aVertType == `.concat(j7,`) { 664 float texX = aTex.x; // texture coordinates 665 float texY = aTex.y; 666 float texW = aTex.z; 667 float texH = aTex.w; 668 669 if(vid == 1 || vid == 2 || vid == 4) { 670 texX += texW; 671 } 672 if(vid == 2 || vid == 4 || vid == 5) { 673 texY += texH; 674 } 675 676 float d = float(uAtlasSize); 677 vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 678 679 gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); 680 } 681 else if(aVertType == `).concat(Df," || aVertType == ").concat(b2,` 682 || aVertType == `).concat(Ck," || aVertType == ").concat(v2,`) { // simple shapes 683 684 // the bounding box is needed by the fragment shader 685 vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat 686 vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat 687 vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated 688 689 // calculations are done in the fragment shader, just pass these along 690 vColor = aColor; 691 vCornerRadius = aCornerRadius; 692 vBorderColor = aBorderColor; 693 vBorderWidth = aLineWidth; 694 695 gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); 696 } 697 else if(aVertType == `).concat(RW,`) { 698 vec2 source = aPointAPointB.xy; 699 vec2 target = aPointAPointB.zw; 700 701 // adjust the geometry so that the line is centered on the edge 702 position.y = position.y - 0.5; 703 704 // stretch the unit square into a long skinny rectangle 705 vec2 xBasis = target - source; 706 vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); 707 vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; 708 709 gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); 710 vColor = aColor; 711 } 712 else if(aVertType == `).concat(IW,`) { 713 vec2 pointA = aPointAPointB.xy; 714 vec2 pointB = aPointAPointB.zw; 715 vec2 pointC = aPointCPointD.xy; 716 vec2 pointD = aPointCPointD.zw; 717 718 // adjust the geometry so that the line is centered on the edge 719 position.y = position.y - 0.5; 720 721 vec2 p0, p1, p2, pos; 722 if(position.x == 0.0) { // The left side of the unit square 723 p0 = pointA; 724 p1 = pointB; 725 p2 = pointC; 726 pos = position; 727 } else { // The right side of the unit square, use same approach but flip the geometry upside down 728 p0 = pointD; 729 p1 = pointC; 730 p2 = pointB; 731 pos = vec2(0.0, -position.y); 732 } 733 734 vec2 p01 = p1 - p0; 735 vec2 p12 = p2 - p1; 736 vec2 p21 = p1 - p2; 737 738 // Find the normal vector. 739 vec2 tangent = normalize(normalize(p12) + normalize(p01)); 740 vec2 normal = vec2(-tangent.y, tangent.x); 741 742 // Find the vector perpendicular to p0 -> p1. 743 vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); 744 745 // Determine the bend direction. 746 float sigma = sign(dot(p01 + p21, normal));
747 float width = aLineWidth[0]; 748 749 if(sign(pos.y) == -sigma) { 750 // This is an intersecting vertex. Adjust the position so that there's no overlap. 751 vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); 752 gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); 753 } else { 754 // This is a non-intersecting vertex. Treat it like a mitre join. 755 vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); 756 gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); 757 } 758 759 vColor = aColor; 760 } 761 else if(aVertType == `).concat(G7,` && vid < 3) { 762 // massage the first triangle into an edge arrow 763 if(vid == 0) 764 position = vec2(-0.15, -0.3); 765 if(vid == 1) 766 position = vec2( 0.0, 0.0); 767 if(vid == 2) 768 position = vec2( 0.15, -0.3); 769 770 gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); 771 vColor = aColor; 772 } 773 else { 774 gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space 775 } 776 777 vAtlasId = aAtlasId; 778 vVertType = aVertType; 779 vIndex = aIndex; 780 } 781 `),n=this.batchManager.getIndexArray(),a=`#version 300 es 782 precision highp float; 783 784 // declare texture unit for each texture atlas in the batch 785 `.concat(n.map(function(h){return"uniform sampler2D uTexture".concat(h,";")}).join(` 786 `),` 787 788 uniform vec4 uBGColor; 789 uniform float uZoom; 790 791 in vec2 vTexCoord; 792 in vec4 vColor; 793 in vec2 vPosition; // model coordinates 794 795 flat in int vAtlasId; 796 flat in vec4 vIndex; 797 flat in int vVertType; 798 flat in vec2 vTopRight; 799 flat in vec2 vBotLeft; 800 flat in vec4 vCornerRadius; 801 flat in vec4 vBorderColor; 802 flat in vec2 vBorderWidth; 803 804 out vec4 outColor; 805 806 `).concat(Oqe,` 807 `).concat($qe,` 808 `).concat(Bqe,` 809 `).concat(Pqe,` 810 811 vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha 812 return vec4( 813 top.rgb + (bot.rgb * (1.0 - top.a)), 814 top.a + (bot.a * (1.0 - top.a)) 815 ); 816 } 817 818 vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance 819 // scale to the zoom level so that borders don't look blurry when zoomed in 820 // note 1.5 is an aribitrary value chosen because it looks good 821 return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); 822 } 823 824 void main(void) { 825 if(vVertType == `).concat(j7,`) { 826 // look up the texel from the texture unit 827 `).concat(n.map(function(h){return"if(vAtlasId == ".concat(h,") outColor = texture(uTexture").concat(h,", vTexCoord);")}).join(` 828 else `),` 829 } 830 else if(vVertType == `).concat(G7,`) { 831 // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; 832 outColor = blend(vColor, uBGColor); 833 outColor.a = 1.0; // make opaque, masks out line under arrow 834 } 835 else if(vVertType == `).concat(Df,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border 836 outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done 837 } 838 else if(vVertType == `).concat(Df," || vVertType == ").concat(b2,` 839 || vVertType == `).concat(Ck," || vVertType == ").concat(v2,`) { // use SDF 840 841 float outerBorder = vBorderWidth[0]; 842 float innerBorder = vBorderWidth[1]; 843 float borderPadding = outerBorder * 2.0; 844 float w = vTopRight.x - vBotLeft.x - borderPadding; 845 float h = vTopRight.y - vBotLeft.y - borderPadding; 846 vec2 b = vec2(w/2.0, h/2.0); // half width, half height 847 vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center 848 849 float d; // signed distance 850 if(vVertType == `).concat(Df,`) { 851 d = rectangleSD(p, b); 852 } else if(vVertType == `).concat(b2,` && w == h) {
853 d = circleSD(p, b.x); // faster than ellipse 854 } else if(vVertType == `).concat(b2,`) { 855 d = ellipseSD(p, b); 856 } else { 857 d = roundRectangleSD(p, b, vCornerRadius.wzyx); 858 } 859 860 // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling 861 // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box 862 if(d > 0.0) { 863 if(d > outerBorder) { 864 discard; 865 } else { 866 outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); 867 } 868 } else { 869 if(d > innerBorder) { 870 vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; 871 vec4 innerBorderColor = blend(vBorderColor, vColor); 872 outColor = distInterp(innerBorderColor, outerColor, d); 873 } 874 else { 875 vec4 outerColor; 876 if(innerBorder == 0.0 && outerBorder == 0.0) { 877 outerColor = vec4(0); 878 } else if(innerBorder == 0.0) { 879 outerColor = vBorderColor; 880 } else { 881 outerColor = blend(vBorderColor, vColor); 882 } 883 outColor = distInterp(vColor, outerColor, d - innerBorder); 884 } 885 } 886 } 887 else { 888 outColor = vColor; 889 } 890 891 `).concat(t.picking?`if(outColor.a == 0.0) discard; 892 else outColor = vIndex;`:"",` 893 } 894 `),o=pOe(r,i,a);o.aPosition=r.getAttribLocation(o,"aPosition"),o.aIndex=r.getAttribLocation(o,"aIndex"),o.aVertType=r.getAttribLocation(o,"aVertType"),o.aTransform=r.getAttribLocation(o,"aTransform"),o.aAtlasId=r.getAttribLocation(o,"aAtlasId"),o.aTex=r.getAttribLocation(o,"aTex"),o.aPointAPointB=r.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=r.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=r.getAttribLocation(o,"aLineWidth"),o.aColor=r.getAttribLocation(o,"aColor"),o.aCornerRadius=r.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=r.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=r.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=r.getUniformLocation(o,"uAtlasSize"),o.uBGColor=r.getUniformLocation(o,"uBGColor"),o.uZoom=r.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var l=0;l<this.batchManager.getMaxAtlasesPerBatch();l++)o.uTextures.push(r.getUniformLocation(o,"uTexture".concat(l)));return o},"_createShaderProgram")},{key:"_createVAO",value:s(function(){var t=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=t.length/2;var r=this.maxInstances,i=this.gl,n=this.program,a=i.createVertexArray();return i.bindVertexArray(a),TOe(i,"vec2",n.aPosition,t),this.transformBuffer=wOe(i,r,n.aTransform),this.indexBuffer=Ac(i,r,"vec4",n.aIndex),this.vertTypeBuffer=Ac(i,r,"int",n.aVertType),this.atlasIdBuffer=Ac(i,r,"int",n.aAtlasId),this.texBuffer=Ac(i,r,"vec4",n.aTex),this.pointAPointBBuffer=Ac(i,r,"vec4",n.aPointAPointB),this.pointCPointDBuffer=Ac(i,r,"vec4",n.aPointCPointD),this.lineWidthBuffer=Ac(i,r,"vec2",n.aLineWidth),this.colorBuffer=Ac(i,r,"vec4",n.aColor),this.cornerRadiusBuffer=Ac(i,r,"vec4",n.aCornerRadius),this.borderColorBuffer=Ac(i,r,"vec4",n.aBorderColor),i.bindVertexArray(null),a},"_createVAO")},{key:"buffers",get:s(function(){var t=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(r){return sd(r,"Buffer")}).map(function(r){return t[r]})),this._buffers},"get")},{key:"startFrame",value:s(function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y2.SCREEN;this.panZoomMatrix=t,this.renderTarget=r,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},"startFrame")},{key:"startBatch",value:s(function(){this.instanceCount=0,this.batchManager.startBatch()},"startBatch")},{key:"endFrame",value:s(function(){this.endBatch()},"endFrame")},{key:"_isVisible",value:s(function(t,r){return t.visible()?r&&r.isVisible?r.isVisible(t):!0:!1},"_isVisible")},{key:"drawTexture",value:s(function(t,r,i){var n=this.atlasManager,a=this.batchManager,o=n.getRenderTypeOpts(i);if(this._isVisible(t,o)&&!(t.isEdge()&&!this._isValidEdge(t))){if
vendor: 4,537 bytes, line 894
894(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(t);if(l===wk.IGNORE)return;if(l==wk.USE_BB){this.drawPickingRectangle(t,r,i);return}}var h=n.getAtlasInfo(t,i),u=ho(h),d;try{for(u.s();!(d=u.n()).done;){var p=d.value,g=p.atlas,m=p.tex1,y=p.tex2;a.canAddToCurrentBatch(g)||this.endBatch();for(var x=a.getAtlasIndexForBatch(g),C=0,w=[[m,!0],[y,!1]];C<w.length;C++){var _=Ea(w[C],2),S=_[0],R=_[1];if(S.w!=0){var b=this.instanceCount;this.vertTypeBuffer.getView(b)[0]=j7;var v=this.indexBuffer.getView(b);uf(r,v);var k=this.atlasIdBuffer.getView(b);k[0]=x;var E=this.texBuffer.getView(b);E[0]=S.x,E[1]=S.y,E[2]=S.w,E[3]=S.h;var A=this.transformBuffer.getMatrixView(b);this.setTransformMatrix(t,A,o,p,R),this.instanceCount++,R||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(I){u.e(I)}finally{u.f()}}},"drawTexture")},{key:"setTransformMatrix",value:s(function(t,r,i,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(i.shapeProps&&i.shapeProps.padding&&(o=t.pstyle(i.shapeProps.padding).pfValue),n){var l=n.bb,h=n.tex1,u=n.tex2,d=h.w/(h.w+u.w);a||(d=1-d);var p=this._getAdjustedBB(l,o,a,d);this._applyTransformMatrix(r,p,i,t)}else{var g=i.getBoundingBox(t),m=this._getAdjustedBB(g,o,!0,1);this._applyTransformMatrix(r,m,i,t)}},"setTransformMatrix")},{key:"_applyTransformMatrix",value:s(function(t,r,i,n){var a,o;rG(t);var l=i.getRotation?i.getRotation(n):0;if(l!==0){var h=i.getRotationPoint(n),u=h.x,d=h.y;O3(t,t,[u,d]),iG(t,t,l);var p=i.getRotationOffset(n);a=p.x+(r.xOffset||0),o=p.y+(r.yOffset||0)}else a=r.x1,o=r.y1;O3(t,t,[a,o]),i7(t,t,[r.w,r.h])},"_applyTransformMatrix")},{key:"_getAdjustedBB",value:s(function(t,r,i,n){var a=t.x1,o=t.y1,l=t.w,h=t.h,u=t.yOffset;r&&(a-=r,o-=r,l+=2*r,h+=2*r);var d=0,p=l*n;return i&&n<1?l=p:!i&&n<1&&(d=l-p,a+=d,l=p),{x1:a,y1:o,w:l,h,xOffset:d,yOffset:u}},"_getAdjustedBB")},{key:"drawPickingRectangle",value:s(function(t,r,i){var n=this.atlasManager.getRenderTypeOpts(i),a=this.instanceCount;this.vertTypeBuffer.getView(a)[0]=Df;var o=this.indexBuffer.getView(a);uf(r,o);var l=this.colorBuffer.getView(a);Op([0,0,0],1,l);var h=this.transformBuffer.getMatrixView(a);this.setTransformMatrix(t,h,n),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()},"drawPickingRectangle")},{key:"drawNode",value:s(function(t,r,i){var n=this.simpleShapeOptions.get(i);if(this._isVisible(t,n)){var a=n.shapeProps,o=this._getVertTypeForShape(t,a.shape);if(o===void 0||n.isSimple&&!n.isSimple(t)){this.drawTexture(t,r,i);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===Ck||o===v2){var h=n.getBoundingBox(t),u=this._getCornerRadius(t,a.radius,h),d=this.cornerRadiusBuffer.getView(l);d[0]=u,d[1]=u,d[2]=u,d[3]=u,o===v2&&(d[0]=0,d[2]=0)}var p=this.indexBuffer.getView(l);uf(r,p);var g=t.pstyle(a.color).value,m=t.pstyle(a.opacity).value,y=this.colorBuffer.getView(l);Op(g,m,y);var x=this.lineWidthBuffer.getView(l);if(x[0]=0,x[1]=0,a.border){var C=t.pstyle("border-width").value;if(C>0){var w=t.pstyle("border-color").value,_=t.pstyle("border-opacity").value,S=this.borderColorBuffer.getView(l);Op(w,_,S);var R=t.pstyle("border-position").value;if(R==="inside")x[0]=0,x[1]=-C;else if(R==="outside")x[0]=C,x[1]=0;else{var b=C/2;x[0]=b,x[1]=-b}}}var v=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(t,v,n),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},"drawNode")},{key:"_getVertTypeForShape",value:s(function(t,r){var i=t.pstyle(r).value;switch(i){case"rectangle":return Df;case"ellipse":return b2;case"roundrectangle":case"round-rectangle":return Ck;case"bottom-round-rectangle":return v2;default:return}},"_getVertTypeForShape")},{key:"_getCornerRadius",value:s(function(t,r,i){var n=i.w,a=i.h;if(t.pstyle(r).value==="auto")return ud(n,a);var o=t.pstyle(r).pfValue,l=n/2,h=a/2;return Math.min(o,h,l)},"_getCornerRadius")},{key:"drawEdgeArrow",value:s(function(t,r,i){if(t.visible()){var n=t._private.rscratch,a,o,l;if(i==="source"?(a=n.arrowStartX,o=n.arrowStartY,l=n.srcArrowAngle):(a=n.arrowEndX,o=n.arrowEndY,l=n.tgtArrowAngle),!(isNaN(a)||a==null||isNaN(o)||o==null||isNaN(l)||l==null)){var h=t.pstyle(i+"-arrow-shape").value;if(h!=="none"){var u=t.pstyle(i+"-arrow-color").value,d=t.pstyle("opacity").value,p=t.pstyle("line-opacity").value,g=d*p,m=t.pstyle("width").pfValue,y=t.pstyle("arrow-scale").value,x=this.r.getArrowWidth(m,y),C=this.instanceCount,w=this.transformBuffer.getMatrixView(C);
vendor: 7,123 bytes, line 894
894rG(w),O3(w,w,[a,o]),i7(w,w,[x,x]),iG(w,w,l),this.vertTypeBuffer.getView(C)[0]=G7;var _=this.indexBuffer.getView(C);uf(r,_);var S=this.colorBuffer.getView(C);Op(u,g,S),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},"drawEdgeArrow")},{key:"drawEdgeLine",value:s(function(t,r){if(t.visible()){var i=this._getEdgePoints(t);if(i){var n=t.pstyle("opacity").value,a=t.pstyle("line-opacity").value,o=t.pstyle("width").pfValue,l=t.pstyle("line-color").value,h=n*a;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var u=this.instanceCount;this.vertTypeBuffer.getView(u)[0]=RW;var d=this.indexBuffer.getView(u);uf(r,d);var p=this.colorBuffer.getView(u);Op(l,h,p);var g=this.lineWidthBuffer.getView(u);g[0]=o;var m=this.pointAPointBBuffer.getView(u);m[0]=i[0],m[1]=i[1],m[2]=i[2],m[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var y=0;y<i.length-2;y+=2){var x=this.instanceCount;this.vertTypeBuffer.getView(x)[0]=IW;var C=this.indexBuffer.getView(x);uf(r,C);var w=this.colorBuffer.getView(x);Op(l,h,w);var _=this.lineWidthBuffer.getView(x);_[0]=o;var S=i[y-2],R=i[y-1],b=i[y],v=i[y+1],k=i[y+2],E=i[y+3],A=i[y+4],I=i[y+5];y==0&&(S=2*b-k+.001,R=2*v-E+.001),y==i.length-4&&(A=2*k-b+.001,I=2*E-v+.001);var $=this.pointAPointBBuffer.getView(x);$[0]=S,$[1]=R,$[2]=b,$[3]=v;var O=this.pointCPointDBuffer.getView(x);O[0]=k,O[1]=E,O[2]=A,O[3]=I,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},"drawEdgeLine")},{key:"_isValidEdge",value:s(function(t){var r=t._private.rscratch;return!(r.badLine||r.allpts==null||isNaN(r.allpts[0]))},"_isValidEdge")},{key:"_getEdgePoints",value:s(function(t){var r=t._private.rscratch;if(this._isValidEdge(t)){var i=r.allpts;if(i.length==4)return i;var n=this._getNumSegments(t);return this._getCurveSegmentPoints(i,n)}},"_getEdgePoints")},{key:"_getNumSegments",value:s(function(t){var r=15;return Math.min(Math.max(r,5),this.maxInstances)},"_getNumSegments")},{key:"_getCurveSegmentPoints",value:s(function(t,r){if(t.length==4)return t;for(var i=Array((r+1)*2),n=0;n<=r;n++)if(n==0)i[0]=t[0],i[1]=t[1];else if(n==r)i[n*2]=t[t.length-2],i[n*2+1]=t[t.length-1];else{var a=n/r;this._setCurvePoint(t,a,i,n*2)}return i},"_getCurveSegmentPoints")},{key:"_setCurvePoint",value:s(function(t,r,i,n){if(t.length<=2)i[n]=t[0],i[n+1]=t[1];else{for(var a=Array(t.length-2),o=0;o<a.length;o+=2){var l=(1-r)*t[o]+r*t[o+2],h=(1-r)*t[o+1]+r*t[o+3];a[o]=l,a[o+1]=h}return this._setCurvePoint(a,r,i,n)}},"_setCurvePoint")},{key:"endBatch",value:s(function(){var t=this.gl,r=this.vao,i=this.vertexCount,n=this.instanceCount;if(n!==0){var a=this.renderTarget.picking?this.pickingProgram:this.program;t.useProgram(a),t.bindVertexArray(r);var o=ho(this.buffers),l;try{for(o.s();!(l=o.n()).done;){var h=l.value;h.bufferSubData(n)}}catch(m){o.e(m)}finally{o.f()}for(var u=this.batchManager.getAtlases(),d=0;d<u.length;d++)u[d].bufferIfNeeded(t);for(var p=0;p<u.length;p++)t.activeTexture(t.TEXTURE0+p),t.bindTexture(t.TEXTURE_2D,u[p].texture),t.uniform1i(a.uTextures[p],p);t.uniform1f(a.uZoom,fOe(this.r)),t.uniformMatrix3fv(a.uPanZoomMatrix,!1,this.panZoomMatrix),t.uniform1i(a.uAtlasSize,this.batchManager.getAtlasSize());var g=Op(this.bgColor,1);t.uniform4fv(a.uBGColor,g),t.drawArraysInstanced(t.TRIANGLES,0,i,n),t.bindVertexArray(null),t.bindTexture(t.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:n,atlasCount:u.length}),this.startBatch()}},"endBatch")},{key:"getDebugInfo",value:s(function(){var t=this.atlasManager.getDebugInfo(),r=t.reduce(function(a,o){return a+o.atlasCount},0),i=this.batchDebugInfo,n=i.reduce(function(a,o){return a+o.count},0);return{atlasInfo:t,totalAtlases:r,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:i.length,batchInfo:i,totalInstances:n}},"getDebugInfo")}])})(),DW={},DW.initWebgl=function(e,t){var r=this,i=r.data.contexts[r.WEBGL];e.bgColor=AOe(r),e.webglTexSize=Math.min(e.webglTexSize,i.getParameter(i.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS)),r.webglDebug=e.webglDebug,r.webglDebugShowAtlases=e.webglDebugShowAtlases,r.pickingFrameBuffer=COe(i),r.pickingFrameBuffer.needsDraw=!0,r.drawing=new Fqe(r,i,e);var n=s(function(d){return function(p){return r.getTextAngle(p,d)}},"getLabelRotation"),a=s(function(d){return function(p){var g=p.pstyle(d);return g&&g.value}},"isLabelVisible"),o=s(function(d){return function(p){return p.pstyle("".concat(d,"-opacity")).value>0}},"isLayerVisible"),l=s(function(d){var p=d.pstyle("text-events").strValue==="yes";return p?wk.USE_BB:wk.IGNORE},"getTexPickingMode"),h=s(function(d){var p=d.position(),g=p.x,m=p.y,y=d.outerWidth(),x=d.outerHeight();return{w:y,h:x,x1:g-y/2,y1:m-x/2}},"getBBForSimpleShape");r.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:h,isSimple:yOe,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:h,isVisible:o("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:h,isVisible:o("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:l,getKey:U7(t.getLabelKey,null),getBoundingBox:V7(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:n(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:l,getKey:U7(t.getSourceLabelKey,"source"),getBoundingBox:V7(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:n("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:l,getKey:U7(t.getTargetLabelKey,"target"),getBoundingBox:V7(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:n("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a("target-label")});var u=Xy(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(d,p){var g=!1;p&&p.length>
vendor: 18,267 bytes, line 894
8940&&(g|=r.drawing.invalidate(p)),g&&u()}),LOe(r)},s(AOe,"getBGColor"),s(nG,"getLabelLines"),U7=s(function(e,t){return function(r){var i=e(r),n=nG(r,t);return n.length>1?n.map(function(a,o){return"".concat(i,"_").concat(o)}):i}},"getStyleKeysForLabel"),V7=s(function(e,t){return function(r,i){var n=e(r);if(typeof i=="string"){var a=i.indexOf("_");if(a>0){var o=Number(i.substring(a+1)),l=nG(r,t),h=n.h/l.length,u=h*o,d=n.y1+u;return{x1:n.x1,w:n.w,y1:d,h,yOffset:u}}}return n}},"getBoundingBoxForLabel"),s(LOe,"overrideCanvasRendererFunctions"),s(ROe,"clearWebgl"),s(IOe,"clearCanvas"),s(DOe,"createPanZoomMatrix"),s(aG,"setContextTransform"),s(NOe,"drawSelectionRectangle"),s(MOe,"drawAxes"),s(OOe,"drawAtlases"),s($Oe,"getPickingIndexes"),s(BOe,"findNearestElementsWebgl"),s(n7,"drawEle"),s(sG,"renderWebgl"),kd={},kd.drawPolygonPath=function(e,t,r,i,n,a){var o=i/2,l=n/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],r+l*a[1]);for(var h=1;h<a.length/2;h++)e.lineTo(t+o*a[h*2],r+l*a[h*2+1]);e.closePath()},kd.drawRoundPolygonPath=function(e,t,r,i,n,a,o){o.forEach(function(l){return Xj(e,l)}),e.closePath()},kd.drawRoundRectanglePath=function(e,t,r,i,n,a){var o=i/2,l=n/2,h=a==="auto"?ud(i,n):Math.min(a,l,o);e.beginPath&&e.beginPath(),e.moveTo(t,r-l),e.arcTo(t+o,r-l,t+o,r,h),e.arcTo(t+o,r+l,t,r+l,h),e.arcTo(t-o,r+l,t-o,r,h),e.arcTo(t-o,r-l,t,r-l,h),e.lineTo(t,r-l),e.closePath()},kd.drawBottomRoundRectanglePath=function(e,t,r,i,n,a){var o=i/2,l=n/2,h=a==="auto"?ud(i,n):a;e.beginPath&&e.beginPath(),e.moveTo(t,r-l),e.lineTo(t+o,r-l),e.lineTo(t+o,r),e.arcTo(t+o,r+l,t,r+l,h),e.arcTo(t-o,r+l,t-o,r,h),e.lineTo(t-o,r-l),e.lineTo(t,r-l),e.closePath()},kd.drawCutRectanglePath=function(e,t,r,i,n,a,o){var l=i/2,h=n/2,u=o==="auto"?v7():o;e.beginPath&&e.beginPath(),e.moveTo(t-l+u,r-h),e.lineTo(t+l-u,r-h),e.lineTo(t+l,r-h+u),e.lineTo(t+l,r+h-u),e.lineTo(t+l-u,r+h),e.lineTo(t-l+u,r+h),e.lineTo(t-l,r+h-u),e.lineTo(t-l,r-h+u),e.closePath()},kd.drawBarrelPath=function(e,t,r,i,n){var a=i/2,o=n/2,l=t-a,h=t+a,u=r-o,d=r+o,p=b7(i,n),g=p.widthOffset,m=p.heightOffset,y=p.ctrlPtOffsetPct*g;e.beginPath&&e.beginPath(),e.moveTo(l,u+m),e.lineTo(l,d-m),e.quadraticCurveTo(l+y,d,l+g,d),e.lineTo(h-g,d),e.quadraticCurveTo(h-y,d,h,d-m),e.lineTo(h,u+m),e.quadraticCurveTo(h-y,u,h-g,u),e.lineTo(l+g,u),e.quadraticCurveTo(l+y,u,l,u+m),e.closePath()},NW=Math.sin(0),MW=Math.cos(0),W7={},H7={},OW=Math.PI/40,Nf=0*Math.PI;Nf<2*Math.PI;Nf+=OW)W7[Nf]=Math.sin(Nf),H7[Nf]=Math.cos(Nf);kd.drawEllipsePath=function(e,t,r,i,n){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,r,i/2,n/2,0,0,2*Math.PI);else for(var a,o,l=i/2,h=n/2,u=0*Math.PI;u<2*Math.PI;u+=OW)a=t-l*W7[u]*NW+l*H7[u]*MW,o=r+h*H7[u]*NW+h*W7[u]*MW,u===0?e.moveTo(a,o):e.lineTo(a,o);e.closePath()},x2={},x2.createBuffer=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,[r,r.getContext("2d")]},x2.bufferCanvasImage=function(e){var t=this.cy,r=t.mutableElements(),i=r.boundingBox(),n=this.findContainerClientCoords(),a=e.full?Math.ceil(i.w):n[2],o=e.full?Math.ceil(i.h):n[3],l=ir(e.maxWidth)||ir(e.maxHeight),h=this.getPixelRatio(),u=1;if(e.scale!==void 0)a*=e.scale,o*=e.scale,u=e.scale;else if(l){var d=1/0,p=1/0;ir(e.maxWidth)&&(d=u*e.maxWidth/a),ir(e.maxHeight)&&(p=u*e.maxHeight/o),u=Math.min(d,p),a*=u,o*=u}l||(a*=h,o*=h,u*=h);var g=document.createElement("canvas");g.width=a,g.height=o,g.style.width=a+"px",g.style.height=o+"px";var m=g.getContext("2d");if(a>0&&o>0){m.clearRect(0,0,a,o),m.globalCompositeOperation="source-over";var y=this.getCachedZSortedEles();if(e.full)m.translate(-i.x1*u,-i.y1*u),m.scale(u,u),this.drawElements(m,y),m.scale(1/u,1/u),m.translate(i.x1*u,i.y1*u);else{var x=t.pan(),C={x:x.x*u,y:x.y*u};u*=t.zoom(),m.translate(C.x,C.y),m.scale(u,u),this.drawElements(m,y),m.scale(1/u,1/u),m.translate(-C.x,-C.y)}e.bg&&(m.globalCompositeOperation="destination-over",m.fillStyle=e.bg,m.rect(0,0,a,o),m.fill())}return g},s(POe,"b64ToBlob"),s(oG,"b64UriToB64"),s(lG,"output"),x2.png=function(e){return lG(e,this.bufferCanvasImage(e),"image/png")},x2.jpg=function(e){return lG(e,this.bufferCanvasImage(e),"image/jpeg")},$W={},$W.nodeShapeImpl=function(e,t,r,i,n,a,o,l){switch(e){case"ellipse":return this.drawEllipsePath(t,r,i,n,a);case"polygon":return this.drawPolygonPath(t,r,i,n,a,o);case"round-polygon":return this.drawRoundPolygonPath(t,r,i,n,a,o,l);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,r,i,n,a,l);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,r,i,n,a,o,l);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,r,i,n,a,l);case"barrel":return this.drawBarrelPath(t,r,i,n,a)}},zqe=cG,mi=cG.prototype,mi.CANVAS_LAYERS=3,mi.SELECT_BOX=0,mi.DRAG=1,mi.NODE=2,mi.WEBGL=3,mi.CANVAS_TYPES=["2d","2d","2d","webgl2"],mi.BUFFER_COUNT=3,mi.TEXTURE_BUFFER=0,mi.MOTIONBLUR_BUFFER_NODE=1,mi.MOTIONBLUR_BUFFER_DRAG=2,s(cG,"CanvasRenderer"),mi.redrawHint=function(e,t){var r=this;switch(e){case"eles":r.data.canvasNeedsRedraw[mi.NODE]=t;break;case"drag":r.data.canvasNeedsRedraw[mi.DRAG]=t;break;case"select":r.data.canvasNeedsRedraw[mi.SELECT_BOX]=t;break;case"gc":r.data.gc=!0;break}},qqe=typeof Path2D<"u",mi.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e},mi.usePaths=function(){return qqe&&this.pathsEnabled},mi.setImgSmoothing=function(e,t){e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)},mi.getImgSmoothing=function(e){return e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled},mi.makeOffscreenCanvas=function(e,t){var r;if((typeof OffscreenCanvas>"u"?"undefined":Ba(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(e,t);else{var i=this.cy.window(),n=i.document;r=n.createElement("canvas"),r.width=e,r.height=t}return r},[SW,Mc,qh,q7,Vp,xd,Us,DW,kd,x2,$W].forEach(function(e){qr(mi,e)}),jqe=[{name:"null",impl:Yj},{name:"base",impl:vW},{name:"canvas",impl:zqe}],Gqe=[{type:"layout",extensions:zze},{type:"renderer",extensions:jqe}],BW={},PW={},s(hG,"setExtension"),s(uG,"getExtension"),s(FOe,"setModule"),s(zOe,"getModule"),Y7=s(function(){if(arguments.length===2)return uG.apply(null,arguments);if(arguments.length===3)return hG.apply(null,arguments);if(arguments.length===4)return zOe.apply(null,arguments);if(arguments.length===5)return FOe.apply(null,arguments);Gn("Invalid extension access syntax")},"extension"),h2.prototype.extension=Y7,Gqe.forEach(function(e){e.extensions.forEach(function(t){hG(e.type,t.name,t.impl)})}),Ek=s(function(){if(!(this instanceof Ek))return new Ek;this.length=0},"Stylesheet"),Wp=Ek.prototype,Wp.instanceString=function(){return"stylesheet"},Wp.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},Wp.css=function(e,t){var r=this.length-1;if(Mr(e))this[r].properties.push({name:e,value:t});else if(Mi(e))for(var i=e,n=Object.keys(i),a=0;a<n.length;a++){var o=n[a],l=i[o];if(l!=null){var h=Ja.properties[o]||Ja.properties[B3(o)];if(h!=null){var u=h.name,d=l;this[r].properties.push({name:u,value:d})}}}return this},Wp.style=Wp.css,Wp.generateStyle=function(e){var t=new Ja(e);return this.appendToStyle(t)},Wp.appendToStyle=function(e){for(var t=0;t<this.length;t++){var r=this[t],i=r.selector,n=r.properties;e.selector(i);for(var a=0;a<n.length;a++){var o=n[a];e.css(o.name,o.value)}}return e},Uqe="3.33.1",Oc=s(function(e){if(e===void 0&&(e={}),Mi(e))return new h2(e);if(Mr(e))return Y7.apply(Y7,arguments)},"cytoscape"),Oc.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(Oc),e.apply(null,t),this},Oc.warnings=function(e){return UG(e)},Oc.version=Uqe,Oc.stylesheet=Oc.Stylesheet=Ek}),Wqe=Xo((e,t)=>{"use strict";s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i():typeof define=="function"&&define.amd?define([],i):typeof e=="object"?e.layoutBase=i():r.layoutBase=i()}),"webpackUniversalModuleDefinition")(e,function(){return(function(r){var i={};function n(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return f(n,"r"),s(n,"__webpack_require__"),n.m=r,n.c=i,n.i=function(a){return a},n.d=function(a,o,l){n.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},n.n=function(a){var o=a&&a.__esModule?s(function(){return a.default},"getDefault"):s(function(){return a},"getModuleExports");return n.d(o,"a",o),o},n.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},n.p="",n(n.s=26)})([(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"LayoutConstants"),a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(8),l=n(9);function h(d,p,g){a.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=d,this.target=p}f(h,"s"),s(h,"LEdge"),h.prototype=Object.create(a.prototype);for(var u in a)h[u]=a[u];h.prototype.getSource=function(){return this.source},h.prototype.getTarget=function(){return this.target},h.prototype.isInterGraph=function(){return this.isInterGraph},h.prototype.getLength=function(){return this.length},h.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},h.prototype.getBendpoints=function(){return this.bendpoints},h.prototype.getLca=function(){return this.lca},h.prototype.getSourceInLca=function(){return this.sourceInLca},h.prototype.getTargetInLca=function(){return this.targetInLca},h.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},h.prototype.getOtherEndInGraph=function(d,p){for(var g=this.getOtherEnd(d),m=p.getGraphManager().getRoot();;){if(g.getOwner()==p)return g;if(g.getOwner()==m)break;g=g.getOwner().getParent()}return null},h.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=l.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=l.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},h.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=l.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=l.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=h}),(function(r,i,n){"use strict";function a(o){this.vGraphObject=o}f(a,"i"),s(a,"LGraphObject"),r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(10),l=n(13),h=n(0),u=n(16),d=n(4);function p(m,y,x,C){x==null&&C==null&&(C=y),a.call(this,C),m.graphManager!=null&&(m=m.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=C,this.edges=[],this.graphManager=m,x!=null&&y!=null?this.rect=new l(y.x,y.y,x.width,x.height):this.rect=new l}f(p,"h"),s(p,"LNode"),p.prototype=Object.create(a.prototype);for(var g in a)p[g]=a[g];p.prototype.getEdges=function(){return this.edges},p.prototype.getChild=function(){return this.child},p.prototype.getOwner=function(){return this.owner},p.prototype.getWidth=function(){return this.rect.width},p.prototype.setWidth=function(m){this.rect.width=m},p.prototype.getHeight=function(){return this.rect.height},p.prototype.setHeight=function(m){this.rect.height=m},p.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},p.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},p.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},p.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},p.prototype.getRect=function(){return this.rect},p.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},p.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},p.prototype.setRect=function(m,y){this.rect.x=m.x,this.rect.y=m.y,this.rect.width=y.width,this.rect.height=y.height},p.prototype.setCenter=function(m,y){this.rect.x=m-this.rect.width/2,this.rect.y=y-this.rect.height/2},p.prototype.setLocation=function(m,y){this.rect.x=m,this.rect.y=y},p.prototype.moveBy=function(m,y){this.rect.x+=m,this.rect.y+=y},p.prototype.getEdgeListToNode=function(m){var y=[],x,C=this;return C.edges.forEach(function(w){if(w.target==m){if(w.source!=C)throw"Incorrect edge source!";y.push(w)}}),y},p.prototype.getEdgesBetween=function(m){var y=[],x,C=this;return C.edges.forEach(function(w){if(!(w.source==C||w.target==C))throw"Incorrect edge source and/or target";(w.target==m||w.source==m)&&y.push(w)}),y},p.prototype.getNeighborsList=function(){var m=new Set,y=this;return y.edges.forEach(function(x){if(x.source==y)m.add(x.target);else{if(x.target!=y)throw"Incorrect incidency!";m.add(x.source)}}),m},p.prototype.withChildren=function(){var m=new Set,y,x;if(m.add(this),this.child!=null)for(var C=this.child.getNodes(),w=0;w<C.length;w++)y=C[w],x=y.withChildren(),x.forEach(function(_){m.add(_)});return m},p.prototype.getNoOfChildren=function(){var m=0,y;if(this.child==null)m=1;else for(var x=this.child.getNodes(),C=0;C<x.length;C++)y=x[C],m+=y.getNoOfChildren();return m==0&&(m=1),m},p.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},p.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},p.prototype.scatter=function(){var m,y,x=-h.INITIAL_WORLD_BOUNDARY,C=h.INITIAL_WORLD_BOUNDARY;m=h.WORLD_CENTER_X+u.nextDouble()*(C-x)+x;var w=-h.INITIAL_WORLD_BOUNDARY,_=h.INITIAL_WORLD_BOUNDARY;y=h.WORLD_CENTER_Y+u.nextDouble()*(_-w)+w,this.rect.x=m,this.rect.y=y},p.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var m=this.getChild();if(m.updateBounds(!0),this.rect.x=m.getLeft(),this.rect.y=m.getTop(),this.setWidth(m.getRight()-m.getLeft()),this.setHeight(m.getBottom()-m.getTop()),h.NODE_DIMENSIONS_INCLUDE_LABELS){var y=m.getRight()-m.getLeft(),x=m.getBottom()-m.getTop();this.labelWidth>y&&(this.rect.x-=(this.labelWidth-y)/2,this.setWidth(this.labelWidth)),this.labelHeight>x&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-x)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-x),this.setHeight(this.labelHeight))}}},p.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},p.prototype.transform=function(m){var y=this.rect.x;y>h.WORLD_BOUNDARY?y=h.WORLD_BOUNDARY:y<-h.WORLD_BOUNDARY&&(y=-h.WORLD_BOUNDARY);var x=this.rect.y;x>h.WORLD_BOUNDARY?x=h.WORLD_BOUNDARY:x<-h.WORLD_BOUNDARY&&(x=-h.WORLD_BOUNDARY);var C=new d(y,x),w=m.inverseTransformPoint(C);this.setLocation(w.x,w.y)},p.prototype.getLeft=function(){return this.rect.x},p.prototype.getRight=function(){return this.rect.x+this.rect.width},p.prototype.getTop=function(){return this.rect.y},p.prototype.getBottom=function(){return this.rect.y+this.rect.height},p.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=p}),(function(r,i,n){"use strict";function a(o,l){o==null&&l==null?(this.x=0,this.y=0):(this.x=o,this.y=l)}f(a,"i"),s(a,"PointD"),a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(10),l=n(0),h=n(6),u=n(3),d=n(1),p=n(13),g=n(12),m=n(11);function y(C,w,_){a.call(this,_),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=C,w!=null&&w instanceof h?this.graphManager=w:w!=null&&w instanceof Layout&&(this.graphManager=w.graphManager)}f(y,"p"),s(y,"LGraph"),y.prototype=Object.create(a.prototype);for(var x in a)y[x]=a[x];y.prototype.getNodes=function(){return this.nodes},y.prototype.getEdges=function(){return this.edges},y.prototype.getGraphManager=function(){return this.graphManager},y.prototype.getParent=function(){return this.parent},y.prototype.getLeft=function(){return this.left},y.prototype.getRight=function(){return this.right},y.prototype.getTop=function(){return this.top},y.prototype.getBottom=function(){return this.bottom},y.prototype.isConnected=function(){return this.isConnected},y.prototype.add=function(C,w,_){if(w==null&&_==null){var S=C;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(S)>-1)throw"Node already in graph!";return S.owner=this,this.getNodes().push(S),S}else{var R=C;if(!(this.getNodes().indexOf(w)>-1&&this.getNodes().indexOf(_)>-1))throw"Source or target not in graph!";if(!(w.owner==_.owner&&w.owner==this))throw"Both owners must be this graph!";return w.owner!=_.owner?null:(R.source=w,R.target=_,R.isInterGraph=!1,this.getEdges().push(R),w.edges.push(R),_!=w&&_.edges.push(R),R)}},y.prototype.remove=function(C){var w=C;
vendor: 4,231 bytes, line 894
894if(C instanceof u){if(w==null)throw"Node is null!";if(!(w.owner!=null&&w.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var _=w.edges.slice(),S,R=_.length,b=0;b<R;b++)S=_[b],S.isInterGraph?this.graphManager.remove(S):S.source.owner.remove(S);var v=this.nodes.indexOf(w);if(v==-1)throw"Node not in owner node list!";this.nodes.splice(v,1)}else if(C instanceof d){var S=C;if(S==null)throw"Edge is null!";if(!(S.source!=null&&S.target!=null))throw"Source and/or target is null!";if(!(S.source.owner!=null&&S.target.owner!=null&&S.source.owner==this&&S.target.owner==this))throw"Source and/or target owner is invalid!";var k=S.source.edges.indexOf(S),E=S.target.edges.indexOf(S);if(!(k>-1&&E>-1))throw"Source and/or target doesn't know this edge!";S.source.edges.splice(k,1),S.target!=S.source&&S.target.edges.splice(E,1);var v=S.source.owner.getEdges().indexOf(S);if(v==-1)throw"Not in owner's edge list!";S.source.owner.getEdges().splice(v,1)}},y.prototype.updateLeftTop=function(){for(var C=o.MAX_VALUE,w=o.MAX_VALUE,_,S,R,b=this.getNodes(),v=b.length,k=0;k<v;k++){var E=b[k];_=E.getTop(),S=E.getLeft(),C>_&&(C=_),w>S&&(w=S)}return C==o.MAX_VALUE?null:(b[0].getParent().paddingLeft!=null?R=b[0].getParent().paddingLeft:R=this.margin,this.left=w-R,this.top=C-R,new g(this.left,this.top))},y.prototype.updateBounds=function(C){for(var w=o.MAX_VALUE,_=-o.MAX_VALUE,S=o.MAX_VALUE,R=-o.MAX_VALUE,b,v,k,E,A,I=this.nodes,$=I.length,O=0;O<$;O++){var j=I[O];C&&j.child!=null&&j.updateBounds(),b=j.getLeft(),v=j.getRight(),k=j.getTop(),E=j.getBottom(),w>b&&(w=b),_<v&&(_=v),S>k&&(S=k),R<E&&(R=E)}var D=new p(w,S,_-w,R-S);w==o.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),I[0].getParent().paddingLeft!=null?A=I[0].getParent().paddingLeft:A=this.margin,this.left=D.x-A,this.right=D.x+D.width+A,this.top=D.y-A,this.bottom=D.y+D.height+A},y.calculateBounds=function(C){for(var w=o.MAX_VALUE,_=-o.MAX_VALUE,S=o.MAX_VALUE,R=-o.MAX_VALUE,b,v,k,E,A=C.length,I=0;I<A;I++){var $=C[I];b=$.getLeft(),v=$.getRight(),k=$.getTop(),E=$.getBottom(),w>b&&(w=b),_<v&&(_=v),S>k&&(S=k),R<E&&(R=E)}var O=new p(w,S,_-w,R-S);return O},y.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},y.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},y.prototype.calcEstimatedSize=function(){for(var C=0,w=this.nodes,_=w.length,S=0;S<_;S++){var R=w[S];C+=R.calcEstimatedSize()}return C==0?this.estimatedSize=l.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=C/Math.sqrt(this.nodes.length),this.estimatedSize},y.prototype.updateConnected=function(){var C=this;if(this.nodes.length==0){this.isConnected=!0;return}var w=new m,_=new Set,S=this.nodes[0],R,b,v=S.withChildren();for(v.forEach(function(O){w.push(O),_.add(O)});w.length!==0;){S=w.shift(),R=S.getEdges();for(var k=R.length,E=0;E<k;E++){var A=R[E];if(b=A.getOtherEndInGraph(S,this),b!=null&&!_.has(b)){var I=b.withChildren();I.forEach(function(O){w.push(O),_.add(O)})}}}if(this.isConnected=!1,_.size>=this.nodes.length){var $=0;_.forEach(function(O){O.owner==C&&$++}),$==this.nodes.length&&(this.isConnected=!0)}},r.exports=y}),(function(r,i,n){"use strict";var a,o=n(1);function l(h){a=n(5),this.layout=h,this.graphs=[],this.edges=[]}f(l,"a"),s(l,"LGraphManager"),l.prototype.addRoot=function(){var h=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(h,u);return this.setRootGraph(d),this.rootGraph},l.prototype.add=function(h,u,d,p,g){if(d==null&&p==null&&g==null){if(h==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return h.parent=u,u.child=h,h}else{g=d,p=u,d=h;var m=p.getOwner(),y=g.getOwner();if(!(m!=null&&m.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(y!=null&&y.getGraphManager()==this))throw"Target not in this graph mgr!";if(m==y)return d.isInterGraph=!1,m.add(d,p,g);
vendor: 43,456 bytes, line 894
894if(d.isInterGraph=!0,d.source=p,d.target=g,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},l.prototype.remove=function(h){if(h instanceof a){var u=h;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var p,g=d.length,m=0;m<g;m++)p=d[m],u.remove(p);var y=[];y=y.concat(u.getNodes());var x;g=y.length;for(var m=0;m<g;m++)x=y[m],u.remove(x);u==this.rootGraph&&this.setRootGraph(null);var C=this.graphs.indexOf(u);this.graphs.splice(C,1),u.parent=null}else if(h instanceof o){if(p=h,p==null)throw"Edge is null!";if(!p.isInterGraph)throw"Not an inter-graph edge!";if(!(p.source!=null&&p.target!=null))throw"Source and/or target is null!";if(!(p.source.edges.indexOf(p)!=-1&&p.target.edges.indexOf(p)!=-1))throw"Source and/or target doesn't know this edge!";var C=p.source.edges.indexOf(p);if(p.source.edges.splice(C,1),C=p.target.edges.indexOf(p),p.target.edges.splice(C,1),!(p.source.owner!=null&&p.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(p.source.owner.getGraphManager().edges.indexOf(p)==-1)throw"Not in owner graph manager's edge list!";var C=p.source.owner.getGraphManager().edges.indexOf(p);p.source.owner.getGraphManager().edges.splice(C,1)}},l.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},l.prototype.getGraphs=function(){return this.graphs},l.prototype.getAllNodes=function(){if(this.allNodes==null){for(var h=[],u=this.getGraphs(),d=u.length,p=0;p<d;p++)h=h.concat(u[p].getNodes());this.allNodes=h}return this.allNodes},l.prototype.resetAllNodes=function(){this.allNodes=null},l.prototype.resetAllEdges=function(){this.allEdges=null},l.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},l.prototype.getAllEdges=function(){if(this.allEdges==null){for(var h=[],u=this.getGraphs(),d=u.length,p=0;p<u.length;p++)h=h.concat(u[p].getEdges());h=h.concat(this.edges),this.allEdges=h}return this.allEdges},l.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},l.prototype.setAllNodesToApplyGravitation=function(h){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=h},l.prototype.getRoot=function(){return this.rootGraph},l.prototype.setRootGraph=function(h){if(h.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=h,h.parent==null&&(h.parent=this.layout.newNode("Root node"))},l.prototype.getLayout=function(){return this.layout},l.prototype.isOneAncestorOfOther=function(h,u){if(!(h!=null&&u!=null))throw"assert failed";if(h==u)return!0;var d=h.getOwner(),p;do{if(p=d.getParent(),p==null)break;if(p==u)return!0;if(d=p.getOwner(),d==null)break}while(!0);d=u.getOwner();do{if(p=d.getParent(),p==null)break;if(p==h)return!0;if(d=p.getOwner(),d==null)break}while(!0);return!1},l.prototype.calcLowestCommonAncestors=function(){for(var h,u,d,p,g,m=this.getAllEdges(),y=m.length,x=0;x<y;x++){if(h=m[x],u=h.source,d=h.target,h.lca=null,h.sourceInLca=u,h.targetInLca=d,u==d){h.lca=u.getOwner();continue}for(p=u.getOwner();h.lca==null;){for(h.targetInLca=d,g=d.getOwner();h.lca==null;){if(g==p){h.lca=g;break}if(g==this.rootGraph)break;if(h.lca!=null)throw"assert failed";h.targetInLca=g.getParent(),g=h.targetInLca.getOwner()}if(p==this.rootGraph)break;h.lca==null&&(h.sourceInLca=p.getParent(),p=h.sourceInLca.getOwner())}if(h.lca==null)throw"assert failed"}},l.prototype.calcLowestCommonAncestor=function(h,u){if(h==u)return h.getOwner();var d=h.getOwner();do{if(d==null)break;var p=u.getOwner();do{if(p==null)break;if(p==d)return p;p=p.getParent().getOwner()}while(!0);d=d.getParent().getOwner()}while(!0);return d},l.prototype.calcInclusionTreeDepths=function(h,u){h==null&&u==null&&(h=this.rootGraph,u=1);for(var d,p=h.getNodes(),g=p.length,m=0;m<g;m++)d=p[m],d.inclusionTreeDepth=u,d.child!=null&&this.calcInclusionTreeDepths(d.child,u+1)},l.prototype.includesInvalidEdge=function(){for(var h,u=this.edges.length,d=0;d<u;d++)if(h=this.edges[d],this.isOneAncestorOfOther(h.source,h.target))return!0;return!1},r.exports=l}),(function(r,i,n){"use strict";var a=n(0);function o(){}f(o,"n"),s(o,"FDLayoutConstants");for(var l in a)o[l]=a[l];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=o}),(function(r,i,n){"use strict";var a=n(12);function o(){}f(o,"n"),s(o,"IGeometry"),o.calcSeparationAmount=function(l,h,u,d){if(!l.intersects(h))throw"assert failed";var p=new Array(2);this.decideDirectionsForOverlappingNodes(l,h,p),u[0]=Math.min(l.getRight(),h.getRight())-Math.max(l.x,h.x),u[1]=Math.min(l.getBottom(),h.getBottom())-Math.max(l.y,h.y),l.getX()<=h.getX()&&l.getRight()>=h.getRight()?u[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight()):h.getX()<=l.getX()&&h.getRight()>=l.getRight()&&(u[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight())),l.getY()<=h.getY()&&l.getBottom()>=h.getBottom()?u[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom()):h.getY()<=l.getY()&&h.getBottom()>=l.getBottom()&&(u[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom()));var g=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX()&&(g=1);var m=g*u[0],y=u[1]/g;u[0]<y?y=u[0]:m=u[1],u[0]=-1*p[0]*(y/2+d),u[1]=-1*p[1]*(m/2+d)},o.decideDirectionsForOverlappingNodes=function(l,h,u){l.getCenterX()<h.getCenterX()?u[0]=-1:u[0]=1,l.getCenterY()<h.getCenterY()?u[1]=-1:u[1]=1},o.getIntersection2=function(l,h,u){var d=l.getCenterX(),p=l.getCenterY(),g=h.getCenterX(),m=h.getCenterY();if(l.intersects(h))return u[0]=d,u[1]=p,u[2]=g,u[3]=m,!0;var y=l.getX(),x=l.getY(),C=l.getRight(),w=l.getX(),_=l.getBottom(),S=l.getRight(),R=l.getWidthHalf(),b=l.getHeightHalf(),v=h.getX(),k=h.getY(),E=h.getRight(),A=h.getX(),I=h.getBottom(),$=h.getRight(),O=h.getWidthHalf(),j=h.getHeightHalf(),D=!1,P=!1;if(d===g){if(p>m)return u[0]=d,u[1]=x,u[2]=g,u[3]=I,!1;if(p<m)return u[0]=d,u[1]=_,u[2]=g,u[3]=k,!1}else if(p===m){if(d>g)return u[0]=y,u[1]=p,u[2]=E,u[3]=m,!1;if(d<g)return u[0]=C,u[1]=p,u[2]=v,u[3]=m,!1}else{var F=l.height/l.width,U=h.height/h.width,z=(m-p)/(g-d),V=void 0,W=void 0,X=void 0,J=void 0,H=void 0,te=void 0;if(-F===z?d>g?(u[0]=w,u[1]=_,D=!0):(u[0]=C,u[1]=x,D=!0):F===z&&(d>g?(u[0]=y,u[1]=x,D=!0):(u[0]=S,u[1]=_,D=!0)),-U===z?g>d?(u[2]=A,u[3]=I,P=!0):(u[2]=E,u[3]=k,P=!0):U===z&&(g>d?(u[2]=v,u[3]=k,P=!0):(u[2]=$,u[3]=I,P=!0)),D&&P)return!1;if(d>g?p>m?(V=this.getCardinalDirection(F,z,4),W=this.getCardinalDirection(U,z,2)):(V=this.getCardinalDirection(-F,z,3),W=this.getCardinalDirection(-U,z,1)):p>m?(V=this.getCardinalDirection(-F,z,1),W=this.getCardinalDirection(-U,z,3)):(V=this.getCardinalDirection(F,z,2),W=this.getCardinalDirection(U,z,4)),!D)switch(V){case 1:J=x,X=d+-b/z,u[0]=X,u[1]=J;break;case 2:X=S,J=p+R*z,u[0]=X,u[1]=J;break;case 3:J=_,X=d+b/z,u[0]=X,u[1]=J;break;case 4:X=w,J=p+-R*z,u[0]=X,u[1]=J;break}if(!P)switch(W){case 1:te=k,H=g+-j/z,u[2]=H,u[3]=te;break;case 2:H=$,te=m+O*z,u[2]=H,u[3]=te;break;case 3:te=I,H=g+j/z,u[2]=H,u[3]=te;break;case 4:H=A,te=m+-O*z,u[2]=H,u[3]=te;break}}return!1},o.getCardinalDirection=function(l,h,u){return l>h?u:1+u%4},o.getIntersection=function(l,h,u,d){if(d==null)return this.getIntersection2(l,h,u);var p=l.x,g=l.y,m=h.x,y=h.y,x=u.x,C=u.y,w=d.x,_=d.y,S=void 0,R=void 0,b=void 0,v=void 0,k=void 0,E=void 0,A=void 0,I=void 0,$=void 0;return b=y-g,k=p-m,A=m*g-p*y,v=_-C,E=x-w,I=w*C-x*_,$=b*E-v*k,$===0?null:(S=(k*I-E*A)/$,R=(v*A-b*I)/$,new a(S,R))},o.angleOfVector=function(l,h,u,d){var p=void 0;return l!==u?(p=Math.atan((d-h)/(u-l)),u<l?p+=Math.PI:d<h&&(p+=this.TWO_PI)):d<h?p=this.ONE_AND_HALF_PI:p=this.HALF_PI,p},o.doIntersect=function(l,h,u,d){var p=l.x,g=l.y,m=h.x,y=h.y,x=u.x,C=u.y,w=d.x,_=d.y,S=(m-p)*(_-C)-(w-x)*(y-g);if(S===0)return!1;var R=((_-C)*(w-p)+(x-w)*(_-g))/S,b=((g-y)*(w-p)+(m-p)*(_-g))/S;return 0<R&&R<1&&0<b&&b<1},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,r.exports=o}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"IMath"),a.sign=function(o){return o>0?1:o<0?-1:0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},r.exports=a}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"Integer"),a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,i,n){"use strict";var a=(function(){function p(g,m){for(var y=0;y<m.length;y++){var x=m[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return f(p,"h"),s(p,"defineProperties"),function(g,m,y){return m&&p(g.prototype,m),y&&p(g,y),g}})();function o(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=s(function(p){return{value:p,next:null,prev:null}},"nodeFrom"),h=s(function(p,g,m,y){return p!==null?p.next=g:y.head=g,m!==null?m.prev=g:y.tail=g,g.prev=p,g.next=m,y.length++,g},"add"),u=s(function(p,g){var m=p.prev,y=p.next;return m!==null?m.next=y:g.head=y,y!==null?y.prev=m:g.tail=m,p.prev=p.next=null,g.length--,p},"_remove"),d=(function(){function p(g){var m=this;o(this,p),this.length=0,this.head=null,this.tail=null,g==null||g.forEach(function(y){return m.push(y)})}return f(p,"h"),s(p,"LinkedList"),a(p,[{key:"size",value:s(function(){return this.length},"size")},{key:"insertBefore",value:s(function(g,m){return h(m.prev,l(g),m,this)},"insertBefore")},{key:"insertAfter",value:s(function(g,m){return h(m,l(g),m.next,this)},"insertAfter")},{key:"insertNodeBefore",value:s(function(g,m){return h(m.prev,g,m,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:s(function(g,m){return h(m,g,m.next,this)},"insertNodeAfter")},{key:"push",value:s(function(g){return h(this.tail,l(g),null,this)},"push")},{key:"unshift",value:s(function(g){return h(null,l(g),this.head,this)},"unshift")},{key:"remove",value:s(function(g){return u(g,this)},"remove")},{key:"pop",value:s(function(){return u(this.tail,this).value},"pop")},{key:"popNode",value:s(function(){return u(this.tail,this)},"popNode")},{key:"shift",value:s(function(){return u(this.head,this).value},"shift")},{key:"shiftNode",value:s(function(){return u(this.head,this)},"shiftNode")},{key:"get_object_at",value:s(function(g){if(g<=this.length()){for(var m=1,y=this.head;m<g;)y=y.next,m++;return y.value}},"get_object_at")},{key:"set_object_at",value:s(function(g,m){if(g<=this.length()){for(var y=1,x=this.head;y<g;)x=x.next,y++;x.value=m}},"set_object_at")}]),p})();r.exports=d}),(function(r,i,n){"use strict";function a(o,l,h){this.x=null,this.y=null,o==null&&l==null&&h==null?(this.x=0,this.y=0):typeof o=="number"&&typeof l=="number"&&h==null?(this.x=o,this.y=l):o.constructor.name=="Point"&&l==null&&h==null&&(h=o,this.x=h.x,this.y=h.y)}f(a,"i"),s(a,"Point"),a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.getLocation=function(){return new a(this.x,this.y)},a.prototype.setLocation=function(o,l,h){o.constructor.name=="Point"&&l==null&&h==null?(h=o,this.setLocation(h.x,h.y)):typeof o=="number"&&typeof l=="number"&&h==null&&(parseInt(o)==o&&parseInt(l)==l?this.move(o,l):(this.x=Math.floor(o+.5),this.y=Math.floor(l+.5)))},a.prototype.move=function(o,l){this.x=o,this.y=l},a.prototype.translate=function(o,l){this.x+=o,this.y+=l},a.prototype.equals=function(o){if(o.constructor.name=="Point"){var l=o;return this.x==l.x&&this.y==l.y}return this==o},a.prototype.toString=function(){return new a().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=a}),(function(r,i,n){"use strict";function a(o,l,h,u){this.x=0,this.y=0,this.width=0,this.height=0,o!=null&&l!=null&&h!=null&&u!=null&&(this.x=o,this.y=l,this.width=h,this.height=u)}f(a,"i"),s(a,"RectangleD"),a.prototype.getX=function(){return this.x},a.prototype.setX=function(o){this.x=o},a.prototype.getY=function(){return this.y},a.prototype.setY=function(o){this.y=o},a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(o){this.width=o},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(o){this.height=o},a.prototype.getRight=function(){return this.x+this.width},a.prototype.getBottom=function(){return this.y+this.height},a.prototype.intersects=function(o){return!(this.getRight()<o.x||this.getBottom()<o.y||o.getRight()<this.x||o.getBottom()<this.y)},a.prototype.getCenterX=function(){return this.x+this.width/2},a.prototype.getMinX=function(){return this.getX()},a.prototype.getMaxX=function(){return this.getX()+this.width},a.prototype.getCenterY=function(){return this.y+this.height/2},a.prototype.getMinY=function(){return this.getY()},a.prototype.getMaxY=function(){return this.getY()+this.height},a.prototype.getWidthHalf=function(){return this.width/2},a.prototype.getHeightHalf=function(){return this.height/2},r.exports=a}),(function(r,i,n){"use strict";var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};function o(){}f(o,"n"),s(o,"UniqueIDGeneretor"),o.lastID=0,o.createID=function(l){return o.isPrimitive(l)?l:(l.uniqueID!=null||(l.uniqueID=o.getString(),o.lastID++),l.uniqueID)},o.getString=function(l){return l==null&&(l=o.lastID),"Object#"+l},o.isPrimitive=function(l){var h=typeof l>"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},r.exports=o}),(function(r,i,n){"use strict";function a(x){if(Array.isArray(x)){for(var C=0,w=Array(x.length);C<x.length;C++)w[C]=x[C];return w}else return Array.from(x)}f(a,"i"),s(a,"_toConsumableArray");var o=n(0),l=n(6),h=n(3),u=n(1),d=n(5),p=n(4),g=n(17),m=n(27);function y(x){m.call(this),this.layoutQuality=o.QUALITY,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=o.DEFAULT_INCREMENTAL,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new l(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,x!=null&&(this.isRemoteUse=x)}f(y,"p"),s(y,"Layout"),y.RANDOM_SEED=1,y.prototype=Object.create(m.prototype),y.prototype.getGraphManager=function(){return this.graphManager},y.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},y.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},y.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},y.prototype.newGraphManager=function(){var x=new l(this);return this.graphManager=x,x},y.prototype.newGraph=function(x){return new d(null,this.graphManager,x)},y.prototype.newNode=function(x){return new h(this.graphManager,x)},y.prototype.newEdge=function(x){return new u(null,null,x)},y.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},y.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var x;return this.checkLayoutSuccess()?x=!1:x=this.layout(),o.ANIMATE==="during"?!1:(x&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,x)},y.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},y.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var x,C=this.graphManager.getAllEdges(),w=0;w<C.length;w++)x=C[w];for(var _,S=this.graphManager.getRoot().getNodes(),w=0;w<S.length;w++)_=S[w];this.update(this.graphManager.getRoot())}},y.prototype.update=function(x){if(x==null)this.update2();else if(x instanceof h){var C=x;if(C.getChild()!=null)for(var w=C.getChild().getNodes(),_=0;_<w.length;_++)update(w[_]);if(C.vGraphObject!=null){var S=C.vGraphObject;S.update(C)}}else if(x instanceof u){var R=x;if(R.vGraphObject!=null){var b=R.vGraphObject;b.update(R)}}else if(x instanceof d){var v=x;if(v.vGraphObject!=null){var k=v.vGraphObject;k.update(v)}}},y.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=o.QUALITY,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=o.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},y.prototype.transform=function(x){if(x==null)this.transform(new p(0,0));else{var C=new g,w=this.graphManager.getRoot().updateLeftTop();if(w!=null){C.setWorldOrgX(x.x),C.setWorldOrgY(x.y),C.setDeviceOrgX(w.x),C.setDeviceOrgY(w.y);for(var _=this.getAllNodes(),S,R=0;R<_.length;R++)S=_[R],S.transform(C)}}},y.prototype.positionNodesRandomly=function(x){if(x==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var C,w,_=x.getNodes(),S=0;S<_.length;S++)C=_[S],w=C.getChild(),w==null||w.getNodes().length==0?C.scatter():(this.positionNodesRandomly(w),C.updateBounds())},y.prototype.getFlatForest=function(){for(var x=[],C=!0,w=this.graphManager.getRoot().getNodes(),_=!0,S=0;S<w.length;S++)w[S].getChild()!=null&&(_=!1);if(!_)return x;var R=new Set,b=[],v=new Map,k=[];for(k=k.concat(w);k.length>0&&C;){for(b.push(k[0]);b.length>0&&C;){var E=b[0];b.splice(0,1),R.add(E);for(var A=E.getEdges(),S=0;S<A.length;S++){var I=A[S].getOtherEnd(E);if(v.get(E)!=I)if(!R.has(I))b.push(I),v.set(I,E);else{C=!1;break}}}if(!C)x=[];else{var $=[].concat(a(R));x.push($);for(var S=0;S<$.length;S++){var O=$[S],j=k.indexOf(O);j>-1&&k.splice(j,1)}R=new Set,v=new Map}}return x},y.prototype.createDummyNodesForBendpoints=function(x){for(var C=[],w=x.source,_=this.graphManager.calcLowestCommonAncestor(x.source,x.target),S=0;S<x.bendpoints.length;S++){var R=this.newNode(null);R.setRect(new Point(0,0),new Dimension(1,1)),_.add(R);var b=this.newEdge(null);this.graphManager.add(b,w,R),C.add(R),w=R}var b=this.newEdge(null);return this.graphManager.add(b,w,x.target),this.edgeToDummyNodes.set(x,C),x.isInterGraph()?this.graphManager.remove(x):_.remove(x),C},y.prototype.createBendpointsFromDummyNodes=function(){var x=[];x=x.concat(this.graphManager.getAllEdges()),x=[].concat(a(this.edgeToDummyNodes.keys())).concat(x);for(var C=0;C<x.length;C++){var w=x[C];if(w.bendpoints.length>0){for(var _=this.edgeToDummyNodes.get(w),S=0;S<_.length;S++){var R=_[S],b=new p(R.getCenterX(),R.getCenterY()),v=w.bendpoints.get(S);v.x=b.x,v.y=b.y,R.getOwner().remove(R)}this.graphManager.add(w,w.source,w.target)}}},y.transform=function(x,C,w,_){if(w!=null&&_!=null){var S=C;if(x<=50){var R=C/w;S-=(C-R)/50*(50-x)}else{var b=C*_;S+=(b-C)/50*(x-50)}return S}else{var v,k;return x<=50?(v=9*C/500,k=C/10):(v=9*C/50,k=-8*C),v*x+k}},y.findCenterOfTree=function(x){var C=[];C=C.concat(x);var w=[],_=new Map,S=!1,R=null;(C.length==1||C.length==2)&&(S=!0,R=C[0]);for(var b=0;b<C.length;b++){var v=C[b],k=v.getNeighborsList().size;_.set(v,v.getNeighborsList().size),k==1&&w.push(v)}var E=[];for(E=E.concat(w);!S;){var A=[];A=A.concat(E),E=[];for(var b=0;b<C.length;b++){var v=C[b],I=C.indexOf(v);I>=0&&C.splice(I,1);var $=v.getNeighborsList();$.forEach(function(D){if(w.indexOf(D)<0){var P=_.get(D),F=P-1;F==1&&E.push(D),_.set(D,F)}})}w=w.concat(E),(C.length==1||C.length==2)&&(S=!0,R=C[0])}return R},y.prototype.setGraphManager=function(x){this.graphManager=x},r.exports=y}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"RandomSeed"),a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,i,n){"use strict";var a=n(4);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}f(o,"n"),s(o,"Transform"),o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,u=this.lworldExtX;return u!=0&&(h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/u),h},o.prototype.transformY=function(l){var h=0,u=this.lworldExtY;return u!=0&&(h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/u),h},o.prototype.inverseTransformX=function(l){var h=0,u=this.ldeviceExtX;return u!=0&&(h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/u),h},o.prototype.inverseTransformY=function(l){var h=0,u=this.ldeviceExtY;return u!=0&&(h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/u),h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},r.exports=o}),(function(r,i,n){"use strict";function a(m){if(Array.isArray(m)){for(var y=0,x=Array(m.length);y<m.length;y++)x[y]=m[y];return x}else return Array.from(m)}f(a,"i"),s(a,"_toConsumableArray");var o=n(15),l=n(7),h=n(0),u=n(8),d=n(9);function p(){o.call(this),this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*l.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=l.MAX_ITERATIONS}f(p,"h"),s(p,"FDLayout"),p.prototype=Object.create(o.prototype);for(var g in o)p[g]=o[g];p.prototype.initParameters=function(){o.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},p.prototype.calcIdealEdgeLengths=function(){for(var m,y,x,C,w,_,S=this.getGraphManager().getAllEdges(),R=0;R<S.length;R++)m=S[R],m.idealLength=this.idealEdgeLength,m.isInterGraph&&(x=m.getSource(),C=m.getTarget(),w=m.getSourceInLca().getEstimatedSize(),_=m.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(m.idealLength+=w+_-2*h.SIMPLE_NODE_SIZE),y=m.getLca().getInclusionTreeDepth(),m.idealLength+=l.DEFAULT_EDGE_LENGTH*l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(x.getInclusionTreeDepth()+C.getInclusionTreeDepth()-2*y))},p.prototype.initSpringEmbedder=function(){var m=this.getAllNodes().length;this.incremental?(m>l.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(m-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL):(m>l.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(m-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},p.prototype.calcSpringForces=function(){for(var m=this.getAllEdges(),y,x=0;x<m.length;x++)y=m[x],this.calcSpringForce(y,y.idealLength)},p.prototype.calcRepulsionForces=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x,C,w,_,S=this.getAllNodes(),R;if(this.useFRGridVariant)for(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&m&&this.updateGrid(),R=new Set,x=0;x<S.length;x++)w=S[x],this.calculateRepulsionForceOfANode(w,R,m,y),R.add(w);else for(x=0;x<S.length;x++)for(w=S[x],C=x+1;C<S.length;C++)_=S[C],w.getOwner()==_.getOwner()&&this.calcRepulsionForce(w,_)},p.prototype.calcGravitationalForces=function(){for(var m,y=this.getAllNodesToApplyGravitation(),x=0;x<y.length;x++)m=y[x],this.calcGravitationalForce(m)},p.prototype.moveNodes=function(){for(var m=this.getAllNodes(),y,x=0;x<m.length;x++)y=m[x],y.move()},p.prototype.calcSpringForce=function(m,y){var x=m.getSource(),C=m.getTarget(),w,_,S,R;if(this.uniformLeafNodeSizes&&x.getChild()==null&&C.getChild()==null)m.updateLengthSimple();else if(m.updateLength(),m.isOverlapingSourceAndTarget)return;w=m.getLength(),w!=0&&(_=this.springConstant*(w-y),S=_*(m.lengthX/w),R=_*(m.lengthY/w),x.springForceX+=S,x.springForceY+=R,C.springForceX-=S,C.springForceY-=R)},p.prototype.calcRepulsionForce=function(m,y){var x=m.getRect(),C=y.getRect(),w=new Array(2),_=new Array(4),S,R,b,v,k,E,A;if(x.intersects(C)){u.calcSeparationAmount(x,C,w,l.DEFAULT_EDGE_LENGTH/2),E=2*w[0],A=2*w[1];var I=m.noOfChildren*y.noOfChildren/(m.noOfChildren+y.noOfChildren);m.repulsionForceX-=I*E,m.repulsionForceY-=I*A,y.repulsionForceX+=I*E,y.repulsionForceY+=I*A}else this.uniformLeafNodeSizes&&m.getChild()==null&&y.getChild()==null?(S=C.getCenterX()-x.getCenterX(),R=C.getCenterY()-x.getCenterY()):(u.getIntersection(x,C,_),S=_[2]-_[0],R=_[3]-_[1]),Math.abs(S)<l.MIN_REPULSION_DIST&&(S=d.sign(S)*l.MIN_REPULSION_DIST),Math.abs(R)<l.MIN_REPULSION_DIST&&(R=d.sign(R)*l.MIN_REPULSION_DIST),b=S*S+R*R,v=Math.sqrt(b),k=this.repulsionConstant*m.noOfChildren*y.noOfChildren/b,E=k*S/v,A=k*R/v,m.repulsionForceX-=E,m.repulsionForceY-=A,y.repulsionForceX+=E,y.repulsionForceY+=A},p.prototype.calcGravitationalForce=function(m){var y,x,C,w,_,S,R,b;y=m.getOwner(),x=(y.getRight()+y.getLeft())/2,C=(y.getTop()+y.getBottom())/2,w=m.getCenterX()-x,_=m.getCenterY()-C,S=Math.abs(w)+m.getWidth()/2,R=Math.abs(_)+m.getHeight()/2,m.getOwner()==this.graphManager.getRoot()?(b=y.getEstimatedSize()*this.gravityRangeFactor,(S>b||R>b)&&(m.gravitationForceX=-this.gravityConstant*w,m.gravitationForceY=-this.gravityConstant*_)):(b=y.getEstimatedSize()*this.compoundGravityRangeFactor,(S>b||R>b)&&(m.gravitationForceX=-this.gravityConstant*w*this.compoundGravityConstant,m.gravitationForceY=-this.gravityConstant*_*this.compoundGravityConstant))},p.prototype.isConverged=function(){var m,y=!1;return this.totalIterations>this.maxIterations/3&&(y=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),m=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,m||y},p.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},p.prototype.calcNoOfChildrenForAllNodes=function(){for(var m,y=this.graphManager.getAllNodes(),x=0;x<y.length;x++)m=y[x],m.noOfChildren=m.getNoOfChildren()},p.prototype.calcGrid=function(m){var y=0,x=0;y=parseInt(Math.ceil((m.getRight()-m.getLeft())/this.repulsionRange)),x=parseInt(Math.ceil((m.getBottom()-m.getTop())/this.repulsionRange));for(var C=new Array(y),w=0;w<y;w++)C[w]=new Array(x);for(var w=0;w<y;w++)for(var _=0;_<x;_++)C[w][_]=new Array;return C},p.prototype.addNodeToGrid=function(m,y,x){var C=0,w=0,_=0,S=0;C=parseInt(Math.floor((m.getRect().x-y)/this.repulsionRange)),w=parseInt(Math.floor((m.getRect().width+m.getRect().x-y)/this.repulsionRange)),_=parseInt(Math.floor((m.getRect().y-x)/this.repulsionRange)),S=parseInt(Math.floor((m.getRect().height+m.getRect().y-x)/this.repulsionRange));for(var R=C;R<=w;R++)for(var b=_;b<=S;b++)this.grid[R][b].push(m),m.setGridCoordinates(C,w,_,S)},p.prototype.updateGrid=function(){var m,y,x=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),m=0;m<x.length;m++)y=x[m],this.addNodeToGrid(y,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},p.prototype.calculateRepulsionForceOfANode=function(m,y,x,C){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&x||C){var w=new Set;m.surrounding=new Array;for(var _,S=this.grid,R=m.startX-1;R<m.finishX+2;R++)for(var b=m.startY-1;b<m.finishY+2;b++)if(!(R<0||b<0||R>=S.length||b>=S[0].length)){for(var v=0;v<S[R][b].length;v++)if(_=S[R][b][v],!(m.getOwner()!=_.getOwner()||m==_)&&!y.has(_)&&!w.has(_)){var k=Math.abs(m.getCenterX()-_.getCenterX())-(m.getWidth()/2+_.getWidth()/2),E=Math.abs(m.getCenterY()-_.getCenterY())-(m.getHeight()/2+_.getHeight()/2);k<=this.repulsionRange&&E<=this.repulsionRange&&w.add(_)}}m.surrounding=[].concat(a(w))}for(R=0;R<m.surrounding.length;R++)this.calcRepulsionForce(m,m.surrounding[R])},p.prototype.calcRepulsionRange=function(){return 0},r.exports=p}),(function(r,i,n){"use strict";var a=n(1),o=n(7);function l(u,d,p){a.call(this,u,d,p),this.idealLength=o.DEFAULT_EDGE_LENGTH}f(l,"a"),s(l,"FDLayoutEdge"),l.prototype=Object.create(a.prototype);for(var h in a)l[h]=a[h];r.exports=l}),(function(r,i,n){"use strict";var a=n(3);function o(h,u,d,p){a.call(this,h,u,d,p),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}f(o,"n"),s(o,"FDLayoutNode"),o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];o.prototype.setGridCoordinates=function(h,u,d,p){this.startX=h,this.finishX=u,this.startY=d,this.finishY=p},r.exports=o}),(function(r,i,n){"use strict";function a(o,l){this.width=0,this.height=0,o!==null&&l!==null&&(this.height=l,this.width=o)}f(a,"i"),s(a,"DimensionD"),a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(o){this.width=o},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(o){this.height=o},r.exports=a}),(function(r,i,n){"use strict";var a=n(14);function o(){this.map={},this.keys=[]}f(o,"n"),s(o,"HashMap"),o.prototype.put=function(l,h){var u=a.createID(l);this.contains(u)||(this.map[u]=h,this.keys.push(l))},o.prototype.contains=function(l){var h=a.createID(l);return this.map[l]!=null},o.prototype.get=function(l){var h=a.createID(l);return this.map[h]},o.prototype.keySet=function(){return this.keys},r.exports=o}),(function(r,i,n){"use strict";var a=n(14);function o(){this.set={}}f(o,"n"),s(o,"HashSet"),o.prototype.add=function(l){var h=a.createID(l);this.contains(h)||(this.set[h]=l)},o.prototype.remove=function(l){delete this.set[a.createID(l)]},o.prototype.clear=function(){this.set={}},o.prototype.contains=function(l){return this.set[a.createID(l)]==l},o.prototype.isEmpty=function(){return this.size()===0},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAllTo=function(l){for(var h=Object.keys(this.set),u=h.length,d=0;d<u;d++)l.push(this.set[h[d]])},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAll=function(l){for(var h=l.length,u=0;u<h;u++){var d=l[u];this.add(d)}},r.exports=o}),(function(r,i,n){"use strict";var a=(function(){function u(d,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return f(u,"l"),s(u,"defineProperties"),function(d,p,g){return p&&u(d.prototype,p),g&&u(d,g),d}})();function o(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=n(11),h=(function(){function u(d,p){o(this,u),(p!==null||p!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var g=void 0;d instanceof l?g=d.size():g=d.length,this._quicksort(d,0,g-1)}return f(u,"l"),s(u,"Quicksort"),a(u,[{key:"_quicksort",value:s(function(d,p,g){if(p<g){var m=this._partition(d,p,g);this._quicksort(d,p,m),this._quicksort(d,m+1,g)}},"_quicksort")},{key:"_partition",value:s(function(d,p,g){for(var m=this._get(d,p),y=p,x=g;;){for(;this.compareFunction(m,this._get(d,x));)x--;for(;this.compareFunction(this._get(d,y),m);)y++;if(y<x)this._swap(d,y,x),y++,x--;else return x}},"_partition")},{key:"_get",value:s(function(d,p){return d instanceof l?d.get_object_at(p):d[p]},"_get")},{key:"_set",value:s(function(d,p,g){d instanceof l?d.set_object_at(p,g):d[p]=g},"_set")},{key:"_swap",value:s(function(d,p,g){var m=this._get(d,p);this._set(d,p,this._get(d,g)),this._set(d,g,m)},"_swap")},{key:"_defaultCompareFunction",value:s(function(d,p){return p>d},"_defaultCompareFunction")}]),u})();r.exports=h}),(function(r,i,n){"use strict";var a=(function(){function h(u,d){for(var p=0;p<d.length;p++){var g=d[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(u,g.key,g)}}return f(h,"s"),s(h,"defineProperties"),function(u,d,p){return d&&h(u.prototype,d),p&&h(u,p),u}})();function o(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=(function(){function h(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=u,this.sequence2=d,this.match_score=p,this.mismatch_penalty=g,this.gap_penalty=m,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var y=0;y<this.iMax;y++){this.grid[y]=new Array(this.jMax);for(var x=0;x<this.jMax;x++)this.grid[y][x]=0}this.tracebackGrid=new Array(this.iMax);for(var C=0;C<this.iMax;C++){this.tracebackGrid[C]=new Array(this.jMax);for(var w=0;w<this.jMax;w++)this.tracebackGrid[C][w]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return f(h,"s"),s(h,"NeedlemanWunsch"),a(h,[{key:"getScore",value:s(function(){return this.score},"getScore")},{key:"getAlignments",value:s(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:s(function(){for(var u=1;u<this.jMax;u++)this.grid[0][u]=this.grid[0][u-1]+this.gap_penalty,this.tracebackGrid[0][u]=[!1,!1,!0];for(var d=1;d<this.iMax;d++)this.grid[d][0]=this.grid[d-1][0]+this.gap_penalty,this.tracebackGrid[d][0]=[!1,!0,!1];for(var p=1;p<this.iMax;p++)for(var g=1;g<this.jMax;g++){var m=void 0;this.sequence1[p-1]===this.sequence2[g-1]?m=this.grid[p-1][g-1]+this.match_score:m=this.grid[p-1][g-1]+this.mismatch_penalty;var y=this.grid[p-1][g]+this.gap_penalty,x=this.grid[p][g-1]+this.gap_penalty,C=[m,y,x],w=this.arrayAllMaxIndexes(C);this.grid[p][g]=C[w[0]],this.tracebackGrid[p][g]=[w.includes(0),w.includes(1),w.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:s(function(){var u=[];for(u.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});u[0];){var d=u[0],p=this.tracebackGrid[d.pos[0]][d.pos[1]];p[0]&&u.push({pos:[d.pos[0]-1,d.pos[1]-1],seq1:this.sequence1[d.pos[0]-1]+d.seq1,seq2:this.sequence2[d.pos[1]-1]+d.seq2}),p[1]&&u.push({pos:[d.pos[0]-1,d.pos[1]],seq1:this.sequence1[d.pos[0]-1]+d.seq1,seq2:"-"+d.seq2}),p[2]&&u.push({pos:[d.pos[0],d.pos[1]-1],seq1:"-"+d.seq1,seq2:this.sequence2[d.pos[1]-1]+d.seq2}),d.pos[0]===0&&d.pos[1]===0&&this.alignments.push({sequence1:d.seq1,sequence2:d.seq2}),u.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:s(function(u,d){for(var p=[],g=-1;(g=u.indexOf(d,g+1))!==-1;)p.push(g);return p},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:s(function(u){return this.getAllIndexes(u,Math.max.apply(null,u))},"arrayAllMaxIndexes")}]),h})();r.exports=l}),(function(r,i,n){"use strict";var a=s(function(){},"layoutBase");a.FDLayout=n(18),a.FDLayoutConstants=n(7),a.FDLayoutEdge=n(19),a.FDLayoutNode=n(20),a.DimensionD=n(21),a.HashMap=n(22),a.HashSet=n(23),a.IGeometry=n(8),a.IMath=n(9),a.Integer=n(10),a.Point=n(12),a.PointD=n(4),a.RandomSeed=n(16),a.RectangleD=n(13),a.Transform=n(17),a.UniqueIDGeneretor=n(14),a.Quicksort=n(24),a.LinkedList=n(11),a.LGraphObject=n(2),a.LGraph=n(5),a.LEdge=n(1),a.LGraphManager=n(6),a.LNode=n(3),a.Layout=n(15),a.LayoutConstants=n(0),a.NeedlemanWunsch=n(25),r.exports=a}),(function(r,i,n){"use strict";function a(){this.listeners=[]}f(a,"i"),s(a,"Emitter");var o=a.prototype;o.addListener=function(l,h){this.listeners.push({event:l,callback:h})},o.removeListener=function(l,h){for(var u=this.listeners.length;u>=0;u--){var d=this.listeners[u];d.event===l&&d.callback===h&&this.listeners.splice(u,1)}},o.emit=function(l,h){for(var u=0;u<this.listeners.length;u++){var d=this.listeners[u];l===d.event&&d.callback(h)}},r.exports=a})])})}),Hqe=Xo((e,t)=>{"use strict";s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i(Wqe()):typeof define=="function"&&define.amd?define(["layout-base"],i):typeof e=="object"?e.coseBase=i(Wqe()):r.coseBase=i(r.layoutBase)}),"webpackUniversalModuleDefinition")(e,function(r){return(function(i){var n={};function a(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return f(a,"i"),s(a,"__webpack_require__"),a.m=i,a.c=n,a.i=function(o){return o},a.d=function(o,l,h){a.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:h})},a.n=function(o){var l=o&&o.__esModule?s(function(){return o.default},"getDefault"):s(function(){return o},"getModuleExports");return a.d(l,"a",l),l},a.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},a.p="",a(a.s=7)})([(function(i,n){i.exports=r}),(function(i,n,a){"use strict";var o=a(0).FDLayoutConstants;function l(){}f(l,"a"),s(l,"CoSEConstants");for(var h in o)l[h]=o[h];l.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,l.DEFAULT_RADIAL_SEPARATION=o.DEFAULT_EDGE_LENGTH,l.DEFAULT_COMPONENT_SEPERATION=60,l.TILE=!0,l.TILING_PADDING_VERTICAL=10,l.TILING_PADDING_HORIZONTAL=10,l.TREE_REDUCTION_ON_INCREMENTAL=!1,i.exports=l}),(function(i,n,a){"use strict";var o=a(0).FDLayoutEdge;function l(u,d,p){o.call(this,u,d,p)}f(l,"a"),s(l,"CoSEEdge"),l.prototype=Object.create(o.prototype);for(var h in o)l[h]=o[h];i.exports=l}),(function(i,n,a){"use strict";var o=a(0).LGraph;function l(u,d,p){o.call(this,u,d,p)}f(l,"a"),s(l,"CoSEGraph"),l.prototype=Object.create(o.prototype);for(var h in o)l[h]=o[h];i.exports=l}),(function(i,n,a){"use strict";var o=a(0).LGraphManager;function l(u){o.call(this,u)}f(l,"a"),s(l,"CoSEGraphManager"),l.prototype=Object.create(o.prototype);for(var h in o)l[h]=o[h];i.exports=l}),(function(i,n,a){"use strict";var o=a(0).FDLayoutNode,l=a(0).IMath;function h(d,p,g,m){o.call(this,d,p,g,m)}f(h,"s"),s(h,"CoSENode"),h.prototype=Object.create(o.prototype);for(var u in o)h[u]=o[u];h.prototype.move=function(){var d=this.graphManager.getLayout();this.displacementX=d.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=d.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementX=d.coolingFactor*d.maxNodeDisplacement*l.sign(this.displacementX)),Math.abs(this.displacementY)>d.coolingFactor*d.maxNodeDisplacement&&(this.displacementY=d.coolingFactor*d.maxNodeDisplacement*l.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),d.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},h.prototype.propogateDisplacementToChildren=function(d,p){for(var g=this.getChild().getNodes(),m,y=0;y<g.length;y++)m=g[y],m.getChild()==null?(m.moveBy(d,p),m.displacementX+=d,m.displacementY+=p):m.propogateDisplacementToChildren(d,p)},h.prototype.setPred1=function(d){this.pred1=d},h.prototype.getPred1=function(){return pred1},h.prototype.getPred2=function(){return pred2},h.prototype.setNext=function(d){this.next=d},h.prototype.getNext=function(){return next},h.prototype.setProcessed=function(d){this.processed=d},h.prototype.isProcessed=function(){return processed},i.exports=h}),(function(i,n,a){"use strict";var o=a(0).FDLayout,l=a(4),h=a(3),u=a(5),d=a(2),p=a(1),g=a(0).FDLayoutConstants,m=a(0).LayoutConstants,y=a(0).Point,x=a(0).PointD,C=a(0).Layout,w=a(0).Integer,_=a(0).IGeometry,S=a(0).LGraph,R=a(0).Transform;function b(){o.call(this),this.toBeTiled={}}f(b,"T"),s(b,"CoSELayout"),b.prototype=Object.create(o.prototype);for(var v in o)b[v]=o[v];b.prototype.newGraphManager=function(){var k=new l(this);return this.graphManager=k,k},b.prototype.newGraph=function(k){return new h(null,this.graphManager,k)},b.prototype.newNode=function(k){return new u(this.graphManager,k)},b.prototype.newEdge=function(k){return new d(null,null,k)},b.prototype.initParameters=function(){o.prototype.initParameters.call(this,arguments),this.isSubLayout||(p.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=p.DEFAULT_EDGE_LENGTH,this.useSmartIdealE
vendor: 4,298 bytes, line 894
894dgeLengthCalculation=p.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=g.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=g.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=g.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=g.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/g.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=g.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},b.prototype.layout=function(){var k=m.DEFAULT_CREATE_BENDS_AS_NEEDED;return k&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},b.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(p.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var k=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(I){return k.has(I)});this.graphManager.setAllNodesToApplyGravitation(E)}}else{var A=this.getFlatForest();if(A.length>0)this.positionNodesRadially(A);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var k=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(O){return k.has(O)});this.graphManager.setAllNodesToApplyGravitation(E),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},b.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%g.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var k=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function($){return k.has($)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=g.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=g.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var A=!this.isTreeGrowing&&!this.isGrowthFinished,I=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(A,I),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var k=this.graphManager.getAllNodes(),E={},A=0;A<k.length;A++){var I=k[A].rect,$=k[A].id;E[$]={id:$,x:I.getCenterX(),y:I.getCenterY(),w:I.width,h:I.height}}return E},b.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var k=!1;
vendor: 2,925 bytes, line 894
894if(g.ANIMATE==="during")this.emit("layoutstarted");else{for(;!k;)k=this.tick();this.graphManager.updateBounds()}},b.prototype.calculateNodesToApplyGravitationTo=function(){var k=[],E,A=this.graphManager.getGraphs(),I=A.length,$;for($=0;$<I;$++)E=A[$],E.updateConnected(),E.isConnected||(k=k.concat(E.getNodes()));return k},b.prototype.createBendpoints=function(){var k=[];k=k.concat(this.graphManager.getAllEdges());var E=new Set,A;for(A=0;A<k.length;A++){var I=k[A];if(!E.has(I)){var $=I.getSource(),O=I.getTarget();if($==O)I.getBendpoints().push(new x),I.getBendpoints().push(new x),this.createDummyNodesForBendpoints(I),E.add(I);else{var j=[];if(j=j.concat($.getEdgeListToNode(O)),j=j.concat(O.getEdgeListToNode($)),!E.has(j[0])){if(j.length>1){var D;for(D=0;D<j.length;D++){var P=j[D];P.getBendpoints().push(new x),this.createDummyNodesForBendpoints(P)}}j.forEach(function(F){E.add(F)})}}}if(E.size==k.length)break}},b.prototype.positionNodesRadially=function(k){for(var E=new y(0,0),A=Math.ceil(Math.sqrt(k.length)),I=0,$=0,O=0,j=new x(0,0),D=0;D<k.length;D++){D%A==0&&(O=0,$=I,D!=0&&($+=p.DEFAULT_COMPONENT_SEPERATION),I=0);var P=k[D],F=C.findCenterOfTree(P);E.x=O,E.y=$,j=b.radialLayout(P,F,E),j.y>I&&(I=Math.floor(j.y)),O=Math.floor(j.x+p.DEFAULT_COMPONENT_SEPERATION)}this.transform(new x(m.WORLD_CENTER_X-j.x/2,m.WORLD_CENTER_Y-j.y/2))},b.radialLayout=function(k,E,A){var I=Math.max(this.maxDiagonalInTree(k),p.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(E,null,0,359,0,I);var $=S.calculateBounds(k),O=new R;O.setDeviceOrgX($.getMinX()),O.setDeviceOrgY($.getMinY()),O.setWorldOrgX(A.x),O.setWorldOrgY(A.y);for(var j=0;j<k.length;j++){var D=k[j];D.transform(O)}var P=new x($.getMaxX(),$.getMaxY());return O.inverseTransformPoint(P)},b.branchRadialLayout=function(k,E,A,I,$,O){var j=(I-A+1)/2;j<0&&(j+=180);var D=(j+A)%360,P=D*_.TWO_PI/360,F=Math.cos(P),U=$*Math.cos(P),z=$*Math.sin(P);k.setCenter(U,z);var V=[];V=V.concat(k.getEdges());var W=V.length;E!=null&&W--;for(var X=0,J=V.length,H,te=k.getEdgesBetween(E);te.length>1;){var ie=te[0];te.splice(0,1);var oe=V.indexOf(ie);oe>=0&&V.splice(oe,1),J--,W--}E!=null?H=(V.indexOf(te[0])+1)%J:H=0;for(var he=Math.abs(I-A)/W,pe=H;X!=W;pe=++pe%J){var se=V[pe].getOtherEnd(k);if(se!=E){var le=(A+X*he)%360,ue=(le+he)%360;b.branchRadialLayout(se,k,le,ue,$+O,O),X++}}},b.maxDiagonalInTree=function(k){for(var E=w.MIN_VALUE,A=0;A<k.length;A++){var I=k[A],$=I.getDiagonal();$>E&&(E=$)}return E},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var k=this,E={};this.memberGroups={},this.idToDummyNode={};for(var A=[],I=this.graphManager.getAllNodes(),$=0;$<I.length;$++){var O=I[$],j=O.getParent();this.getNodeDegreeWithChildren(O)===0&&(j.id==null||!this.getToBeTiled(j))&&A.push(O)}for(var $=0;$<A.length;$++){var O=A[$],D=O.getParent().id;typeof E[D]>"u"&&(E[D]=[]),E[D]=E[D].concat(O)}
vendor: 8,412 bytes, line 894
894Object.keys(E).forEach(function(P){if(E[P].length>1){var F="DummyCompound_"+P;k.memberGroups[F]=E[P];var U=E[P][0].getParent(),z=new u(k.graphManager);z.id=F,z.paddingLeft=U.paddingLeft||0,z.paddingRight=U.paddingRight||0,z.paddingBottom=U.paddingBottom||0,z.paddingTop=U.paddingTop||0,k.idToDummyNode[F]=z;var V=k.getGraphManager().add(k.newGraph(),z),W=U.getChild();W.add(z);for(var X=0;X<E[P].length;X++){var J=E[P][X];W.remove(J),V.add(J)}}})},b.prototype.clearCompounds=function(){var k={},E={};this.performDFSOnCompounds();for(var A=0;A<this.compoundOrder.length;A++)E[this.compoundOrder[A].id]=this.compoundOrder[A],k[this.compoundOrder[A].id]=[].concat(this.compoundOrder[A].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[A].getChild()),this.compoundOrder[A].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(k,E)},b.prototype.clearZeroDegreeMembers=function(){var k=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(A){var I=k.idToDummyNode[A];E[A]=k.tileNodes(k.memberGroups[A],I.paddingLeft+I.paddingRight),I.rect.width=E[A].width,I.rect.height=E[A].height})},b.prototype.repopulateCompounds=function(){for(var k=this.compoundOrder.length-1;k>=0;k--){var E=this.compoundOrder[k],A=E.id,I=E.paddingLeft,$=E.paddingTop;this.adjustLocations(this.tiledMemberPack[A],E.rect.x,E.rect.y,I,$)}},b.prototype.repopulateZeroDegreeMembers=function(){var k=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(A){var I=k.idToDummyNode[A],$=I.paddingLeft,O=I.paddingTop;k.adjustLocations(E[A],I.rect.x,I.rect.y,$,O)})},b.prototype.getToBeTiled=function(k){var E=k.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var A=k.getChild();if(A==null)return this.toBeTiled[E]=!1,!1;for(var I=A.getNodes(),$=0;$<I.length;$++){var O=I[$];if(this.getNodeDegree(O)>0)return this.toBeTiled[E]=!1,!1;if(O.getChild()==null){this.toBeTiled[O.id]=!1;continue}if(!this.getToBeTiled(O))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},b.prototype.getNodeDegree=function(k){for(var E=k.id,A=k.getEdges(),I=0,$=0;$<A.length;$++){var O=A[$];O.getSource().id!==O.getTarget().id&&(I=I+1)}return I},b.prototype.getNodeDegreeWithChildren=function(k){var E=this.getNodeDegree(k);if(k.getChild()==null)return E;for(var A=k.getChild().getNodes(),I=0;I<A.length;I++){var $=A[I];E+=this.getNodeDegreeWithChildren($)}return E},b.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},b.prototype.fillCompexOrderByDFS=function(k){for(var E=0;E<k.length;E++){var A=k[E];A.getChild()!=null&&this.fillCompexOrderByDFS(A.getChild().getNodes()),this.getToBeTiled(A)&&this.compoundOrder.push(A)}},b.prototype.adjustLocations=function(k,E,A,I,$){E+=I,A+=$;for(var O=E,j=0;j<k.rows.length;j++){var D=k.rows[j];E=O;for(var P=0,F=0;F<D.length;F++){var U=D[F];U.rect.x=E,U.rect.y=A,E+=U.rect.width+k.horizontalPadding,U.rect.height>P&&(P=U.rect.height)}A+=P+k.verticalPadding}},b.prototype.tileCompoundMembers=function(k,E){var A=this;this.tiledMemberPack=[],Object.keys(k).forEach(function(I){var $=E[I];A.tiledMemberPack[I]=A.tileNodes(k[I],$.paddingLeft+$.paddingRight),$.rect.width=A.tiledMemberPack[I].width,$.rect.height=A.tiledMemberPack[I].height})},b.prototype.tileNodes=function(k,E){var A=p.TILING_PADDING_VERTICAL,I=p.TILING_PADDING_HORIZONTAL,$={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:A,horizontalPadding:I};k.sort(function(D,P){return D.rect.width*D.rect.height>P.rect.width*P.rect.height?-1:D.rect.width*D.rect.height<P.rect.width*P.rect.height?1:0});for(var O=0;O<k.length;O++){var j=k[O];$.rows.length==0?this.insertNodeToRow($,j,0,E):this.canAddHorizontal($,j.rect.width,j.rect.height)?this.insertNodeToRow($,j,this.getShortestRowIndex($),E):this.insertNodeToRow($,j,$.rows.length,E),this.shiftToLastRow($)}return $},b.prototype.insertNodeToRow=function(k,E,A,I){var $=I;if(A==k.rows.length){var O=[];k.rows.push(O),k.rowWidth.push($),k.rowHeight.push(0)}var j=k.rowWidth[A]+E.rect.width;k.rows[A].length>0&&(j+=k.horizontalPadding),k.rowWidth[A]=j,k.width<j&&(k.width=j);var D=E.rect.height;A>0&&(D+=k.verticalPadding);var P=0;D>k.rowHeight[A]&&(P=k.rowHeight[A],k.rowHeight[A]=D,P=k.rowHeight[A]-P),k.height+=P,k.rows[A].push(E)},b.prototype.getShortestRowIndex=function(k){for(var E=-1,A=Number.MAX_VALUE,I=0;I<k.rows.length;I++)k.rowWidth[I]<A&&(E=I,A=k.rowWidth[I]);return E},b.prototype.getLongestRowIndex=function(k){for(var E=-1,A=Number.MIN_VALUE,I=0;I<k.rows.length;I++)k.rowWidth[I]>A&&(E=I,A=k.rowWidth[I]);return E},b.prototype.canAddHorizontal=function(k,E,A){var I=this.getShortestRowIndex(k);if(I<0)return!0;var $=k.rowWidth[I];if($+k.horizontalPadding+E<=k.width)return!0;var O=0;k.rowHeight[I]<A&&I>0&&(O=A+k.verticalPadding-k.rowHeight[I]);var j;k.width-$>=E+k.horizontalPadding?j=(k.height+O)/($+E+k.horizontalPadding):j=(k.height+O)/k.width,O=A+k.verticalPadding;var D;return k.width<E?D=(k.height+O)/E:D=(k.height+O)/k.width,D<1&&(D=1/D),j<1&&(j=1/j),j<D},b.prototype.shiftToLastRow=function(k){var E=this.getLongestRowIndex(k),A=k.rowWidth.length-1,I=k.rows[E],$=I[I.length-1],O=$.width+k.horizontalPadding;if(k.width-k.rowWidth[A]>O&&E!=A){I.splice(-1,1),k.rows[A].push($),k.rowWidth[E]=k.rowWidth[E]-O,k.rowWidth[A]=k.rowWidth[A]+O,k.width=k.rowWidth[instance.getLongestRowIndex(k)];for(var j=Number.MIN_VALUE,D=0;D<I.length;D++)I[D].height>j&&(j=I[D].height);E>0&&(j+=k.verticalPadding);var P=k.rowHeight[E]+k.rowHeight[A];k.rowHeight[E]=j,k.rowHeight[A]<$.height+k.verticalPadding&&(k.rowHeight[A]=$.height+k.verticalPadding);var F=k.rowHeight[E]+k.rowHeight[A];k.height+=F-P,this.shiftToLastRow(k)}},b.prototype.tilingPreLayout=function(){p.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},b.prototype.tilingPostLayout=function(){p.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},b.prototype.reduceTrees=function(){for(var k=[],E=!0,A;E;){var I=this.graphManager.getAllNodes(),$=[];E=!1;for(var O=0;O<I.length;O++)A=I[O],A.getEdges().length==1&&!A.getEdges()[0].isInterGraph&&A.getChild()==null&&($.push([A,A.getEdges()[0],A.getOwner()]),E=!0);if(E==!0){for(var j=[],D=0;D<$.length;D++)$[D][0].getEdges().length==1&&(j.push($[D]),$[D][0].getOwner().remove($[D][0]));k.push(j),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=k},b.prototype.growTree=function(k){for(var E=k.length,A=k[E-1],I,$=0;$<A.length;$++)I=A[$],this.findPlaceforPrunedNode(I),I[2].add(I[0]),I[2].add(I[1],I[1].source,I[1].target);k.splice(k.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},b.prototype.findPlaceforPrunedNode=function(k){var E,A,I=k[0];I==k[1].source?A=k[1].target:A=k[1].source;var $=A.startX,O=A.finishX,j=A.startY,D=A.finishY,P=0,F=0,U=0,z=0,V=[P,U,F,z];if(j>0)for(var W=$;W<=O;W++)V[0]+=this.grid[W][j-1].length+this.grid[W][j].length-1;if(O<this.grid.length-1)for(var W=j;W<=D;W++)V[1]+=this.grid[O+1][W].length+this.grid[O][W].length-1;if(D<this.grid[0].length-1)for(var W=$;W<=O;W++)V[2]+=this.grid[W][D+1].length+this.grid[W][D].length-1;if($>0)for(var W=j;W<=D;W++)V[3]+=this.grid[$-1][W].length+this.grid[$][W].length-1;for(var X=w.MAX_VALUE,J,H,te=0;te<V.length;te++)V[te]<X?(X=V[te],J=1,H=te):V[te]==X&&J++;if(J==3&&X==0)V[0]==0&&V[1]==0&&V[2]==0?E=1:V[0]==0&&V[1]==0&&V[3]==0?E=0:V[0]==0&&V[2]==0&&V[3]==0?E=3:V[1]==0&&V[2]==0&&V[3]==0&&(E=2);else if(J==2&&X==0){var ie=Math.floor(Math.random()*2);V[0]==0&&V[1]==0?ie==0?E=0:E=1:V[0]==0&&V[2]==0?ie==0?E=0:E=2:V[0]==0&&V[3]==0?ie==0?E=0:E=3:V[1]==0&&V[2]==0?ie==0?E=1:E=2:V[1]==0&&V[3]==0?ie==0?E=1:E=3:ie==0?E=2:E=3}else if(J==4&&X==0){var ie=Math.floor(Math.random()*4);E=ie}else E=H;E==0?I.setCenter(A.getCenterX(),A.getCenterY()-A.getHeight()/2-g.DEFAULT_EDGE_LENGTH-I.getHeight()/2):E==1?I.setCenter(A.getCenterX()+A.getWidth()/2+g.DEFAULT_EDGE_LENGTH+I.getWidth()/2,A.getCenterY()):E==2?I.setCenter(A.getCenterX(),A.getCenterY()+A.getHeight()/2+g.DEFAULT_EDGE_LENGTH+I.getHeight()/2):I.setCenter(A.getCenterX()-A.getWidth()/2-g.DEFAULT_EDGE_LENGTH-I.getWidth()/2,A.getCenterY())},i.exports=b}),(function(i,n,a){"use strict";var o={};o.layoutBase=a(0),o.CoSEConstants=a(1),o.CoSEEdge=a(2),o.CoSEGraph=a(3),o.CoSEGraphManager=a(4),o.CoSELayout=a(6),o.CoSENode=a(5),i.exports=o})])})}),w5t=Xo((e,t)=>{"use strict";
vendor: 10,278 bytes, line 894
894s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i(Hqe()):typeof define=="function"&&define.amd?define(["cose-base"],i):typeof e=="object"?e.cytoscapeCoseBilkent=i(Hqe()):r.cytoscapeCoseBilkent=i(r.coseBase)}),"webpackUniversalModuleDefinition")(e,function(r){return(function(i){var n={};function a(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return f(a,"i"),s(a,"__webpack_require__"),a.m=i,a.c=n,a.i=function(o){return o},a.d=function(o,l,h){a.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:h})},a.n=function(o){var l=o&&o.__esModule?s(function(){return o.default},"getDefault"):s(function(){return o},"getModuleExports");return a.d(l,"a",l),l},a.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},a.p="",a(a.s=1)})([(function(i,n){i.exports=r}),(function(i,n,a){"use strict";var o=a(0).layoutBase.LayoutConstants,l=a(0).layoutBase.FDLayoutConstants,h=a(0).CoSEConstants,u=a(0).CoSELayout,d=a(0).CoSENode,p=a(0).layoutBase.PointD,g=a(0).layoutBase.DimensionD,m={ready:s(function(){},"ready"),stop:s(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function y(_,S){var R={};for(var b in _)R[b]=_[b];for(var b in S)R[b]=S[b];return R}f(y,"p"),s(y,"extend");function x(_){this.options=y(m,_),C(this.options)}f(x,"m"),s(x,"_CoSELayout");var C=s(function(_){_.nodeRepulsion!=null&&(h.DEFAULT_REPULSION_STRENGTH=l.DEFAULT_REPULSION_STRENGTH=_.nodeRepulsion),_.idealEdgeLength!=null&&(h.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=_.idealEdgeLength),_.edgeElasticity!=null&&(h.DEFAULT_SPRING_STRENGTH=l.DEFAULT_SPRING_STRENGTH=_.edgeElasticity),_.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=_.nestingFactor),_.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=_.gravity),_.numIter!=null&&(h.MAX_ITERATIONS=l.MAX_ITERATIONS=_.numIter),_.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=_.gravityRange),_.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=_.gravityCompound),_.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=_.gravityRangeCompound),_.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=_.initialEnergyOnIncremental),_.quality=="draft"?o.QUALITY=0:_.quality=="proof"?o.QUALITY=2:o.QUALITY=1,h.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=_.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!_.randomize,h.ANIMATE=l.ANIMATE=o.ANIMATE=_.animate,h.TILE=_.tile,h.TILING_PADDING_VERTICAL=typeof _.tilingPaddingVertical=="function"?_.tilingPaddingVertical.call():_.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof _.tilingPaddingHorizontal=="function"?_.tilingPaddingHorizontal.call():_.tilingPaddingHorizontal},"getUserOptions");x.prototype.run=function(){var _,S,R=this.options,b=this.idToLNode={},v=this.layout=new u,k=this;k.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=v.newGraphManager();this.gm=E;var A=this.options.eles.nodes(),I=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(A),v);for(var $=0;$<I.length;$++){var O=I[$],j=this.idToLNode[O.data("source")],D=this.idToLNode[O.data("target")];if(j!==D&&j.getEdgesBetween(D).length==0){var P=E.add(v.newEdge(),j,D);P.id=O.id()}}var F=s(function(z,V){typeof z=="number"&&(z=V);var W=z.data("id"),X=k.idToLNode[W];return{x:X.getRect().getCenterX(),y:X.getRect().getCenterY()}},"getPositions"),U=s(f(function z(){for(var V=s(function(){R.fit&&R.cy.fit(R.eles,R.padding),_||(_=!0,k.cy.one("layoutready",R.ready),k.cy.trigger({type:"layoutready",layout:k}))},"afterReposition"),W=k.options.refresh,X,J=0;J<W&&!X;J++)X=k.stopped||k.layout.tick();if(X){v.checkLayoutSuccess()&&!v.isSubLayout&&v.doPostLayout(),v.tilingPostLayout&&v.tilingPostLayout(),v.isLayoutFinished=!0,k.options.eles.nodes().positions(F),V(),k.cy.one("layoutstop",k.options.stop),k.cy.trigger({type:"layoutstop",layout:k}),S&&cancelAnimationFrame(S),_=!1;return}var H=k.layout.getPositionsData();R.eles.nodes().positions(function(te,ie){if(typeof te=="number"&&(te=ie),!te.isParent()){for(var oe=te.id(),he=H[oe],pe=te;he==null&&(he=H[pe.data("parent")]||H["DummyCompound_"+pe.data("parent")],H[oe]=he,pe=pe.parent()[0],pe!=null););return he!=null?{x:he.x,y:he.y}:{x:te.position("x"),y:te.position("y")}}}),V(),S=requestAnimationFrame(z)},"L"),"iterateAnimated");return v.addListener("layoutstarted",function(){k.options.animate==="during"&&(S=requestAnimationFrame(U))}),v.runLayout(),this.options.animate!=="during"&&(k.options.eles.nodes().not(":parent").layoutPositions(k,k.options,F),_=!1),this},x.prototype.getTopMostNodes=function(_){for(var S={},R=0;R<_.length;R++)S[_[R].id()]=!0;var b=_.filter(function(v,k){typeof v=="number"&&(v=k);for(var E=v.parent()[0];E!=null;){if(S[E.id()])return!1;E=E.parent()[0]}return!0});return b},x.prototype.processChildrenList=function(_,S,R){for(var b=S.length,v=0;v<b;v++){var k=S[v],E=k.children(),A,I=k.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(k.outerWidth()!=null&&k.outerHeight()!=null?A=_.add(new d(R.graphManager,new p(k.position("x")-I.w/2,k.position("y")-I.h/2),new g(parseFloat(I.w),parseFloat(I.h)))):A=_.add(new d(this.graphManager)),A.id=k.data("id"),A.paddingLeft=parseInt(k.css("padding")),A.paddingTop=parseInt(k.css("padding")),A.paddingRight=parseInt(k.css("padding")),A.paddingBottom=parseInt(k.css("padding")),this.options.nodeDimensionsIncludeLabels&&k.isParent()){var $=k.boundingBox({includeLabels:!0,includeNodes:!1}).w,O=k.boundingBox({includeLabels:!0,includeNodes:!1}).h,j=k.css("text-halign");A.labelWidth=$,A.labelHeight=O,A.labelPos=j}if(this.idToLNode[k.data("id")]=A,isNaN(A.rect.x)&&(A.rect.x=0),isNaN(A.rect.y)&&(A.rect.y=0),E!=null&&E.length>0){var D;D=R.getGraphManager().add(R.newGraph(),A),this.processChildrenList(D,E,R)}}},x.prototype.stop=function(){return this.stopped=!0,this};var w=s(function(_){_("layout","cose-bilkent",x)},"register");typeof cytoscape<"u"&&w(cytoscape),i.exports=w})])})});function Yqe(e,t){e.forEach(r=>{var n,a,o;let i={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:(n=r.padding)!=null?n:0};Object.keys(r).forEach(l=>{["id","label","height","width","padding","x","y"].includes(l)||(i[l]=r[l])}),t.add({group:"nodes",data:i,position:{x:(a=r.x)!=null?a:0,y:(o=r.y)!=null?o:0}})})}f(Yqe,"Got");function Xqe(e,t){e.forEach(r=>{let i={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(n=>{["id","start","end"].includes(n)||(i[n]=r[n])}),t.add({group:"edges",data:i})})}f(Xqe,"Vot");function Kqe(e){return new Promise(t=>{let r=Lt("body").append("div").attr("id","cy").attr("style","display:none"),i=Oc({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),Yqe(e.nodes,i),Xqe(e.edges,i),i.nodes().forEach(function(a){a.layoutDimensions=()=>{let o=a.data();return{w:o.width,h:o.height}}});let n={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};i.layout(n).run(),i.ready(a=>{ge.info("Cytoscape ready",a),t(i)})})}f(Kqe,"Bge");function Zqe(e){return e.nodes().map(t=>{let r=t.data(),i=t.position(),n={id:r.id,x:i.x,y:i.y};return Object.keys(r).forEach(a=>{a!=="id"&&(n[a]=r[a])}),n})}f(Zqe,"Fge");function Qqe(e){return e.edges().map(t=>{let r=t.data(),i=t._private.rscratch,n={id:r.id,source:r.source,target:r.target,startX:i.startX,startY:i.startY,midX:i.midX,midY:i.midY,endX:i.endX,endY:i.endY};return Object.keys(r).forEach(a=>{["id","source","target"].includes(a)||(n[a]=r[a])}),n})}f(Qqe,"$ge");var Jqe,C5t=Y(()=>{"use strict";Vqe(),Jqe=_o(w5t(),1),ui(),jt(),Oc.use(Jqe.default),s(Yqe,"addNodes"),s(Xqe,"addEdges"),s(Kqe,"createCytoscapeInstance"),s(Zqe,"extractPositionedNodes"),s(Qqe,"extractPositionedEdges")});async function eje(e,t){ge.debug("Starting cose-bilkent layout algorithm");try{tje(e);let r=await Kqe(e),i=Zqe(r),n=Qqe(r);return ge.debug(`Layout completed: ${i.length} nodes, ${n.length} edges`),{nodes:i,edges:n}}catch(r){throw ge.error("Error in cose-bilkent layout algorithm:",r),r}}f(eje,"Gge");function tje(e){if(!e)throw new Error("Layout data is required");if(!e.config)throw new Error("Configuration is required in layout data");if(!e.rootNode)throw new Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw new Error("Edges array is required in layout data");return!0}f(tje,"Wot");var E5t=Y(()=>{"use strict";jt(),C5t(),s(eje,"executeCoseBilkentLayout"),s(tje,"validateLayoutData")}),rje,S5t=Y(()=>{"use strict";E5t(),rje=s(async(e,t,{insertCluster:r,insertEdge:i,insertEdgeLabel:n,insertMarkers:a,insertNode:o,log:l,positionEdgeLabel:h},{algorithm:u})=>{let d={},p={},g=t.select("g");a(g,e.markers,e.type,e.diagramId);let m=g.insert("g").attr("class","subgraphs"),y=g.insert("g").attr("class","edgePaths"),x=g.insert("g").attr("class","edgeLabels"),C=g.insert("g").attr("class","nodes");l.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async S=>{if(S.isGroup){let R=Tt({},S);p[S.id]=R,d[S.id]=R,await r(m,S)}else{let R=Tt({},S);d[S.id]=R;let b=await o(C,S,{config:e.config,dir:e.direction||"TB"}),v=b.node().getBBox();R.width=v.width,R.height=v.height,R.domId=b,l.debug(`Node ${S.id} dimensions: ${v.width}x${v.height}`)}})),l.debug("Running cose-bilkent layout algorithm");let w=_r(Tt({},e),{nodes:e.nodes.map(S=>{let R=d[S.id];return _r(Tt({},S),{width:R.width,height:R.height})})}),_=await eje(w,e.config);l.debug("Positioning nodes based on layout results"),_.nodes.forEac
894h(S=>{let R=d[S.id];R!=null&&R.domId&&(R.domId.attr("transform",`translate(${S.x}, ${S.y})`),R.x=S.x,R.y=S.y,l.debug(`Positioned node ${R.id} at center (${S.x}, ${S.y})`))}),_.edges.forEach(S=>{let R=e.edges.find(b=>b.id===S.id);R&&(R.points=[{x:S.startX,y:S.startY},{x:S.midX,y:S.midY},{x:S.endX,y:S.endY}])}),l.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async S=>{var k,E;let R=await n(x,S),b=d[(k=S.start)!=null?k:""],v=d[(E=S.end)!=null?E:""];if(b&&v){let A=_.edges.find(I=>I.id===S.id);if(A){l.debug("APA01 positionedEdge",A);let I=Tt({},S),$=i(y,I,p,e.type,b,v,e.diagramId);h(I,$)}else{let I=_r(Tt({},S),{points:[{x:b.x||0,y:b.y||0},{x:v.x||0,y:v.y||0}]}),$=i(y,I,p,e.type,b,v,e.diagramId);h(I,$)}}})),l.debug("Cose-bilkent rendering completed")},"render")}),ije={};Jr(ije,{render:f(()=>nje,"render")});var nje,_5t=Y(()=>{"use strict";S5t(),nje=rje}),k2,FW,aje,Mf,T2,Of=Y(()=>{"use strict";n3t(),jt(),k2={},FW=s(e=>{for(let t of e)k2[t.name]=t},"registerLayoutLoaders"),aje=s(()=>{FW([{name:"dagre",loader:s(async()=>await Promise.resolve().then(()=>(k5t(),WNe)),"loader")},{name:"cose-bilkent",loader:s(async()=>await Promise.resolve().then(()=>(_5t(),ije)),"loader")}])},"registerDefaultLayoutLoaders"),aje(),Mf=s(async(e,t)=>{if(!(e.layoutAlgorithm in k2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let d of e.nodes){let p=d.domId||d.id;d.domId=`${e.diagramId}-${p}`}let r=k2[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:a}=e.config,{useGradient:o,gradientStart:l,gradientStop:h}=a,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),o){let d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,ECe,{algorithm:r.algorithm})},"render"),T2=s((e="",{fallback:t="dagre"}={})=>{if(e in k2)return e;if(t in k2)return ge.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")}),Hp,sje,oje,$f=Y(()=>{"use strict";Bn(),jt(),Hp=s((e,t,r,i)=>{e.attr("class",r);let{width:n,height:a,x:o,y:l}=sje(e,t);Ta(e,a,n,i);let h=oje(o,l,n,a,t);e.attr("viewBox",h),ge.debug(`viewBox configured: ${h} with padding: ${t}`)},"setupViewPortForSVG"),sje=s((e,t)=>{var i;let r=((i=e.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),oje=s((e,t,r,i,n)=>`${e-n} ${t-n} ${r} ${i}`,"createViewBox")}),lje,cje,hje,A5t=Y(()=>{"use strict";vr(),jt(),ky(),Of(),$f(),wr(),lje=s(function(e,t){return t.db.getClasses()},"getClasses"),cje=s(async function(e,t,r,i){var p,g;ge.info("REF0:"),ge.info("Drawing state diagram (v2)",t);let{securityLevel:n,flowchart:a,layout:o}=Ue();i.db.setDiagramId(t),ge.debug("Before getData: ");let l=i.db.getData();ge.debug("Data: ",l);let h=jg(t,n),u=i.db.getDirection();l.type=i.type,l.layoutAlgorithm=T2(o),l.layoutAlgorithm==="dagre"&&o==="elk"&&ge.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."),l.direction=u,l.nodeSpacing=(a==null?void 0:a.nodeSpacing)||50,l.rankSpacing=(a==null?void 0:a.rankSpacing)||50,l.markers=["point","circle","cross"],l.diagramId=t,ge.debug("REF1:",l),await Mf(l,h);let d=(g=(p=l.config.flowchart)==null?void 0:p.diagramPadding)!=null?g:8;ri.insertTitle(h,"flowchartTitleText",(a==null?void 0:a.titleTopMargin)||0,i.db.getDiagramTitle()),Hp(h,d,"flowchart",(a==null?void 0:a.useMaxWidth)||!1)},"draw"),hje={getClasses:lje,draw:cje}}),X7,zW,L5t=Y(()=>{"use strict";X7=(function(){var e=s(function(hn,Ct,Zt,St){for(Zt=Zt||{},St=hn.length;St--;Zt[hn[St]]=Ct);return Zt},"o"),t=[1,4],r=[1,3],i=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],l=[1,14],h=[1,15],u=[1,16],d=[1,23],p=[1,25],g=[1,26],m=[1,27],y=[1,50],x=[1,49],C=[1,29],w=[1,30],_=[1,31],S=[1,32],R=[1,33],b=[1,45],v=[1,47],k=[1,43],E=[1,48],A=[1,44],I=[1,51],$=[1,46],O=[1,52],j=[1,53],D=[1,34],P=[1,35],F=[1,36],U=[1,37],z=[1,38],V=[1,58],W=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],X=[1,62],J=[1,61],H=[1,63],te=[8,9,11,75,77,78],ie=[1,79],oe=[1,92],he=[1,97],pe=[1,96],se=[1,93],le=[1,89],ue=[1,95],de=[1,91],we=[1,98],De=[1,94],Ge=[1,99],be=[1,90],qe=[8,9,10,11,40,75,77,78],Ie=[8,9,10,11,40,46,75,77,78],Be=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ke=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Qe=[44,60,89,102,105,106,109,111,114,115,116],Pe=[1,122],ht=[1,123],Xe=[1,125],dt=[1,124],at=[44,60,62,74,89,102,105,106,109,111,114,115,116],kt=[1,134],Le=[1,148],lt=[1,149],ve=[1,150],tt=[1,151],Q=[1,136],xe=[1,138],ae=[1,142],_e=[1,143],Se=[1,144],Je=[1,145],Re=[1,146],et=[1,147],ze=[1,152],Ke=[1,153],We=[1,132],nt=[1,133],Te=[1,140],bt=[1,135],Ae=[1,139],ft=[1,137],Nt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Wt=[1,155],Ht=[1,157],Ft=[8,9,11],Qt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Dt=[1,177],Mt=[1,173],$t=[1,174],At=[1,178],Kt=[1,175],rr=[1,176],ei=[77,116,119],qt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Qr=[10,106],or=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ar=[1,248],li=[1,246],ki=[1,250],$e=[1,244],zt=[1,245],Rt=[1,247],Or=[1,249],ni=[1,251],Wr=[1,269],Ti=[8,9,11,106],_i=[8,9,10,11,60,84,105,106,109,110,111,112],Ai={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,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOU
894BLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:s(function(hn,Ct,Zt,St,$r,Me,Qi){var Fe=Me.length-1;switch($r){case 2:this.$=[];break;case 3:(!Array.isArray(Me[Fe])||Me[Fe].length>0)&&Me[Fe-1].push(Me[Fe]),this.$=Me[Fe-1];break;case 4:case 183:this.$=Me[Fe];break;case 11:St.setDirection("TB"),this.$="TB";break;case 12:St.setDirection(Me[Fe-1]),this.$=Me[Fe-1];break;case 27:this.$=Me[Fe-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=St.addSubGraph(Me[Fe-6],Me[Fe-1],Me[Fe-4]);break;case 34:this.$=St.addSubGraph(Me[Fe-3],Me[Fe-1],Me[Fe-3]);break;case 35:this.$=St.addSubGraph(void 0,Me[Fe-1],void 0);break;case 37:this.$=Me[Fe].trim(),St.setAccTitle(this.$);break;case 38:case 39:this.$=Me[Fe].trim(),St.setAccDescription(this.$);break;case 43:this.$=Me[Fe-1]+Me[Fe];break;case 44:this.$=Me[Fe];break;case 45:St.addVertex(Me[Fe-1][Me[Fe-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Me[Fe]),St.addLink(Me[Fe-3].stmt,Me[Fe-1],Me[Fe-2]),this.$={stmt:Me[Fe-1],nodes:Me[Fe-1].concat(Me[Fe-3].nodes)};break;case 46:St.addLink(Me[Fe-2].stmt,Me[Fe],Me[Fe-1]),this.$={stmt:Me[Fe],nodes:Me[Fe].concat(Me[Fe-2].nodes)};break;case 47:St.addLink(Me[Fe-3].stmt,Me[Fe-1],Me[Fe-2]),this.$={stmt:Me[Fe-1],nodes:Me[Fe-1].concat(Me[Fe-3].nodes)};break;case 48:this.$={stmt:Me[Fe-1],nodes:Me[Fe-1]};break;case 49:St.addVertex(Me[Fe-1][Me[Fe-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Me[Fe]),this.$={stmt:Me[Fe-1],nodes:Me[Fe-1],shapeData:Me[Fe]};break;case 50:this.$={stmt:Me[Fe],nodes:Me[Fe]};break;case 51:this.$=[Me[Fe]];break;case 52:St.addVertex(Me[Fe-5][Me[Fe-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Me[Fe-4]),this.$=Me[Fe-5].concat(Me[Fe]);break;case 53:this.$=Me[Fe-4].concat(Me[Fe]);break;case 54:this.$=Me[Fe];break;case 55:this.$=Me[Fe-2],St.setClass(Me[Fe-2],Me[Fe]);break;case 56:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"square");break;case 57:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"doublecircle");break;
vendor: 5,735 bytes, line 894
894case 58:this.$=Me[Fe-5],St.addVertex(Me[Fe-5],Me[Fe-2],"circle");break;case 59:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"ellipse");break;case 60:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"stadium");break;case 61:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"subroutine");break;case 62:this.$=Me[Fe-7],St.addVertex(Me[Fe-7],Me[Fe-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Me[Fe-5],Me[Fe-3]]]));break;case 63:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"cylinder");break;case 64:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"round");break;case 65:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"diamond");break;case 66:this.$=Me[Fe-5],St.addVertex(Me[Fe-5],Me[Fe-2],"hexagon");break;case 67:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"odd");break;case 68:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"trapezoid");break;case 69:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"inv_trapezoid");break;case 70:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"lean_right");break;case 71:this.$=Me[Fe-3],St.addVertex(Me[Fe-3],Me[Fe-1],"lean_left");break;case 72:this.$=Me[Fe],St.addVertex(Me[Fe]);break;case 73:Me[Fe-1].text=Me[Fe],this.$=Me[Fe-1];break;case 74:case 75:Me[Fe-2].text=Me[Fe-1],this.$=Me[Fe-2];break;case 76:this.$=Me[Fe];break;case 77:var Ji=St.destructLink(Me[Fe],Me[Fe-2]);this.$={type:Ji.type,stroke:Ji.stroke,length:Ji.length,text:Me[Fe-1]};break;case 78:var Ji=St.destructLink(Me[Fe],Me[Fe-2]);this.$={type:Ji.type,stroke:Ji.stroke,length:Ji.length,text:Me[Fe-1],id:Me[Fe-3]};break;case 79:this.$={text:Me[Fe],type:"text"};break;case 80:this.$={text:Me[Fe-1].text+""+Me[Fe],type:Me[Fe-1].type};break;case 81:this.$={text:Me[Fe],type:"string"};break;case 82:this.$={text:Me[Fe],type:"markdown"};break;case 83:var Ji=St.destructLink(Me[Fe]);this.$={type:Ji.type,stroke:Ji.stroke,length:Ji.length};break;case 84:var Ji=St.destructLink(Me[Fe]);this.$={type:Ji.type,stroke:Ji.stroke,length:Ji.length,id:Me[Fe-1]};break;case 85:this.$=Me[Fe-1];break;case 86:this.$={text:Me[Fe],type:"text"};break;case 87:this.$={text:Me[Fe-1].text+""+Me[Fe],type:Me[Fe-1].type};break;case 88:this.$={text:Me[Fe],type:"string"};break;case 89:case 104:this.$={text:Me[Fe],type:"markdown"};break;case 101:this.$={text:Me[Fe],type:"text"};break;case 102:this.$={text:Me[Fe-1].text+""+Me[Fe],type:Me[Fe-1].type};break;case 103:this.$={text:Me[Fe],type:"text"};break;case 105:this.$=Me[Fe-4],St.addClass(Me[Fe-2],Me[Fe]);break;case 106:this.$=Me[Fe-4],St.setClass(Me[Fe-2],Me[Fe]);break;case 107:case 115:this.$=Me[Fe-1],St.setClickEvent(Me[Fe-1],Me[Fe]);break;case 108:case 116:this.$=Me[Fe-3],St.setClickEvent(Me[Fe-3],Me[Fe-2]),St.setTooltip(Me[Fe-3],Me[Fe]);break;case 109:this.$=Me[Fe-2],St.setClickEvent(Me[Fe-2],Me[Fe-1],Me[Fe]);break;case 110:this.$=Me[Fe-4],St.setClickEvent(Me[Fe-4],Me[Fe-3],Me[Fe-2]),St.setTooltip(Me[Fe-4],Me[Fe]);break;case 111:this.$=Me[Fe-2],St.setLink(Me[Fe-2],Me[Fe]);break;case 112:this.$=Me[Fe-4],St.setLink(Me[Fe-4],Me[Fe-2]),St.setTooltip(Me[Fe-4],Me[Fe]);break;case 113:this.$=Me[Fe-4],St.setLink(Me[Fe-4],Me[Fe-2],Me[Fe]);break;case 114:this.$=Me[Fe-6],St.setLink(Me[Fe-6],Me[Fe-4],Me[Fe]),St.setTooltip(Me[Fe-6],Me[Fe-2]);break;case 117:this.$=Me[Fe-1],St.setLink(Me[Fe-1],Me[Fe]);break;case 118:this.$=Me[Fe-3],St.setLink(Me[Fe-3],Me[Fe-2]),St.setTooltip(Me[Fe-3],Me[Fe]);break;case 119:this.$=Me[Fe-3],St.setLink(Me[Fe-3],Me[Fe-2],Me[Fe]);break;case 120:this.$=Me[Fe-5],St.setLink(Me[Fe-5],Me[Fe-4],Me[Fe]),St.setTooltip(Me[Fe-5],Me[Fe-2]);break;case 121:this.$=Me[Fe-4],St.addVertex(Me[Fe-2],void 0,void 0,Me[Fe]);break;case 122:this.$=Me[Fe-4],St.updateLink([Me[Fe-2]],Me[Fe]);break;case 123:this.$=Me[Fe-4],St.updateLink(Me[Fe-2],Me[Fe]);break;case 124:this.$=Me[Fe-8],St.updateLinkInterpolate([Me[Fe-6]],Me[Fe-2]),St.updateLink([Me[Fe-6]],Me[Fe]);break;case 125:this.$=Me[Fe-8],St.updateLinkInterpolate(Me[Fe-6],Me[Fe-2]),St.updateLink(Me[Fe-6],Me[Fe]);break;case 126:this.$=Me[Fe-6],St.updateLinkInterpolate([Me[Fe-4]],Me[Fe]);break;case 127:this.$=Me[Fe-6],St.updateLinkInterpolate(Me[Fe-4],Me[Fe]);break;case 128:case 130:this.$=[Me[Fe]];break;case 129:case 131:Me[Fe-2].push(Me[Fe]),this.$=Me[Fe-2];break;case 133:this.$=Me[Fe-1]+Me[Fe];break;case 181:this.$=Me[Fe];break;case 182:this.$=Me[Fe-1]+""+Me[Fe];break;case 184:this.$=Me[Fe-1]+""+Me[Fe];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:i},{1:[3]},e(n,a,{5:6}),{4:7,9:t,10:r,12:i},{4:8,9:t,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:l,10:h,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:p,36:g,38:m,42:28,43:39,44:y,45:40,47:41,60:x,84:C,85:w,86:_,87:S,88:R,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j,121:D,122:P,123:F,124:U,125:z},e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),{8:[1,55],9:[1,56],10:V,15:54,18:57},e(W,[2,3]),e(W,[2,4]),e(W,[2,5]),e(W,[2,6]),e(W,[2,7]),e(W,[2,8]),{8:X,9:J,11:H,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:X,9:J,11:H,21:68},{8:X,9:J,11:H,21:69},{8:X,9:J,11:H,21:70},{8:X,9:J,11:H,21:71},{8:X,9:J,11:H,21:72},{8:X,9:J,10:[1,73],11:H,21:74},e(W,[2,36]),{35:[1,75]},{37:[1,76]},e(W,[2,39]),e(te,[2,50],{18:77,39:78,10:V,40:ie}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:oe,44:he,60:pe,80:[1,87],89:se,95:[1,84],97:[1,85],101:86,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be,120:88},e(W,[2,185]),e(W,[2,186]),e(W,[2,187]),e(W,[2,188]),e(W,[2,189]),e(qe,[2,51]),e(qe,[2,54],{46:[1,100]}),e(Ie,[2,72],{113:113,29:[1,101],44:y,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:x,63:[
vendor: 5,553 bytes, line 894
8941,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:b,102:v,105:k,106:E,109:A,111:I,114:$,115:O,116:j}),e(Be,[2,181]),e(Be,[2,142]),e(Be,[2,143]),e(Be,[2,144]),e(Be,[2,145]),e(Be,[2,146]),e(Be,[2,147]),e(Be,[2,148]),e(Be,[2,149]),e(Be,[2,150]),e(Be,[2,151]),e(Be,[2,152]),e(n,[2,12]),e(n,[2,18]),e(n,[2,19]),{9:[1,114]},e(ke,[2,26],{18:115,10:V}),e(W,[2,27]),{42:116,43:39,44:y,45:40,47:41,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},e(W,[2,40]),e(W,[2,41]),e(W,[2,42]),e(Qe,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Pe,81:ht,116:Xe,119:dt},{75:[1,126],77:[1,127]},e(at,[2,83]),e(W,[2,28]),e(W,[2,29]),e(W,[2,30]),e(W,[2,31]),e(W,[2,32]),{10:kt,12:Le,14:lt,27:ve,28:128,32:tt,44:Q,60:xe,75:ae,80:[1,130],81:[1,131],83:141,84:_e,85:Se,86:Je,87:Re,88:et,89:ze,90:Ke,91:129,105:We,109:nt,111:Te,114:bt,115:Ae,116:ft},e(Nt,a,{5:154}),e(W,[2,37]),e(W,[2,38]),e(te,[2,48],{44:Wt}),e(te,[2,49],{18:156,10:V,40:Ht}),e(qe,[2,44]),{44:y,47:158,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},{102:[1,159],103:160,105:[1,161]},{44:y,47:162,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},{44:y,47:163,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},e(Ft,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Ft,[2,115],{120:168,10:[1,167],14:oe,44:he,60:pe,89:se,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be}),e(Ft,[2,117],{10:[1,169]}),e(Qt,[2,183]),e(Qt,[2,170]),e(Qt,[2,171]),e(Qt,[2,172]),e(Qt,[2,173]),e(Qt,[2,174]),e(Qt,[2,175]),e(Qt,[2,176]),e(Qt,[2,177]),e(Qt,[2,178]),e(Qt,[2,179]),e(Qt,[2,180]),{44:y,47:170,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},{30:171,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:179,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:181,50:[1,180],67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:182,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:183,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:184,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{109:[1,185]},{30:186,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:187,65:[1,188],67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:189,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:190,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{30:191,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},e(Be,[2,182]),e(n,[2,20]),e(ke,[2,25]),e(te,[2,46],{39:192,18:193,10:V,40:ie}),e(Qe,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{77:[1,197],79:198,116:Xe,119:dt},e(ei,[2,79]),e(ei,[2,81]),e(ei,[2,82]),e(ei,[2,168]),e(ei,[2,169]),{76:199,79:121,80:Pe,81:ht,116:Xe,119:dt},e(at,[2,84]),{8:X,9:J,10:kt,11:H,12:Le,14:lt,21:201,27:ve,29:[1,200],32:tt,44:Q,60:xe,75:ae,83:141,84:_e,85:Se,86:Je,87:Re,88:et,89:ze,90:Ke,91:202,105:We,109:nt,111:Te,114:bt,115:Ae,116:ft},e(qt,[2,101]),e(qt,[2,103]),e(qt,[2,104]),e(qt,[2,157]),e(qt,[2,158]),e(qt,[2,159]),e(qt,[2,160]),e(qt,[2,161]),e(qt,[2,162]),e(qt,[2,163]),e(qt,[2,164]),e(qt,[2,165]),e(qt,[2,166]),e(qt,[2,167]),e(qt,[2,90]),e(qt,[2,91]),e(qt,[2,92]),e(qt,[2,93]),e(qt,[2,94]),e(qt,[2,95]),e(qt,[2,96]),e(qt,[2,97]),e(qt,[2,98]),e(qt,[2,99]),e(qt,[2,100]),{6:11,7:12,8:o,9:l,10:h,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:p,36:g,38:m,42:28,43:39,44:y,45:40,47:41,60:x,84:C,85:w,86:_,87:S,88:R,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j,121:D,122:P,123:F,124:U,125:z},{10:V,18:204},{44:[1,205]},e(qe,[2,43]),{10:[1,206],44:y,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:113,114:$,115:O,116:j},{10:[1,207]},{10:[1,208],106:[1,209]},e(Qr,[2,128]),{10:[1,210],44:y,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:113,114:$,115:O,116:j},{10:[1,211],44:y,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:113,114:$,115:O,116:j},{80:[1,212]},e(Ft,[2,109],{10:[1,213]}),e(Ft,[2,111],{10:[1,214]}),{80:[1,215]},e(Qt,[2,184]),{80:[1,216],98:[1,217]},e(qe,[2,55],{113:113,44:y,60:x,89:b,102:v,105:k,106:E,109:A,111:I,114:$,115:O,116:j}),{31:[1,218],67:Dt,82:219,116:At,117:Kt,118:rr},e(or,[2,86]),e(or,[2,88]),e(or,[2,89]),e(or,[2,153]),e(or,[2,154]),e(or,[2,155]),e(or,[2,156]),{49:[1,220],67:Dt,82:219,116:At,117:Kt,118:rr},{30:221,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{51:[1,222],67:Dt,82:219,116:At,117:Kt,118:rr},{53:[1,223],67:Dt,82:219,116:At,117:Kt,118:rr},{55:[1,224],67:Dt,82:219,116:At,117:Kt,118:rr},{57:[1,225],67:Dt,82:219,116:At,117:Kt,118:rr},{60:[1,226]},{64:[1,227],67:Dt,82:219,116:At,117:Kt,118:rr},{66:[1,228],67:Dt,82:219,116:At,117:Kt,118:rr},{30:229,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},{31:[1,230],67:Dt,82:219,116:At,117:Kt,118:rr},{67:Dt,69:[1,231],71:[1,232],82:219,116:At,117:Kt,118:rr},{67:Dt,69:[1,234],71:[1,233],82:219,116:At,117:Kt,118:rr},e(te,[2,45],{18:156,10:V,40:Ht}),e(te,[2,47],{44:Wt}),e(Qe,[2,75]),e(Qe,[2,74]),{62:[1,235],67:Dt,82:219,116:At,117:Kt,118:rr},e(Qe,[2,77]),e(ei,[2,80]),{77:[1,236],79:198,116:Xe,119:dt},{30:237,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},e(Nt,a,{5:238}),e(qt,[2,102]),e(W,[2,35]),{43:239,44:y,45:40,47:41,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},{10:V,18:240},{10:Ar,60:li,84:ki,92:241,105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},{10:Ar,60:li,84:ki,92:252,104:[1,253],105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},{10:Ar,60:li,84:ki,92:254,104:[1,255],105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},{105:[1,256]},{10:Ar,60:li,84:ki,92:257,105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},{44:y,47:258,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},e(Ft,[2,108]),{80:[1,259]}
vendor: 4,370 bytes, lines 894-896
894,{80:[1,260],98:[1,261]},e(Ft,[2,116]),e(Ft,[2,118],{10:[1,262]}),e(Ft,[2,119]),e(Ie,[2,56]),e(or,[2,87]),e(Ie,[2,57]),{51:[1,263],67:Dt,82:219,116:At,117:Kt,118:rr},e(Ie,[2,64]),e(Ie,[2,59]),e(Ie,[2,60]),e(Ie,[2,61]),{109:[1,264]},e(Ie,[2,63]),e(Ie,[2,65]),{66:[1,265],67:Dt,82:219,116:At,117:Kt,118:rr},e(Ie,[2,67]),e(Ie,[2,68]),e(Ie,[2,70]),e(Ie,[2,69]),e(Ie,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Qe,[2,78]),{31:[1,266],67:Dt,82:219,116:At,117:Kt,118:rr},{6:11,7:12,8:o,9:l,10:h,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:p,36:g,38:m,42:28,43:39,44:y,45:40,47:41,60:x,84:C,85:w,86:_,87:S,88:R,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j,121:D,122:P,123:F,124:U,125:z},e(qe,[2,53]),{43:268,44:y,45:40,47:41,60:x,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j},e(Ft,[2,121],{106:Wr}),e(Ti,[2,130],{108:270,10:Ar,60:li,84:ki,105:$e,109:zt,110:Rt,111:Or,112:ni}),e(_i,[2,132]),e(_i,[2,134]),e(_i,[2,135]),e(_i,[2,136]),e(_i,[2,137]),e(_i,[2,138]),e(_i,[2,139]),e(_i,[2,140]),e(_i,[2,141]),e(Ft,[2,122],{106:Wr}),{10:[1,271]},e(Ft,[2,123],{106:Wr}),{10:[1,272]},e(Qr,[2,129]),e(Ft,[2,105],{106:Wr}),e(Ft,[2,106],{113:113,44:y,60:x,89:b,102:v,105:k,106:E,109:A,111:I,114:$,115:O,116:j}),e(Ft,[2,110]),e(Ft,[2,112],{10:[1,273]}),e(Ft,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:X,9:J,11:H,21:278},e(W,[2,34]),e(qe,[2,52]),{10:Ar,60:li,84:ki,105:$e,107:279,108:243,109:zt,110:Rt,111:Or,112:ni},e(_i,[2,133]),{14:oe,44:he,60:pe,89:se,101:280,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be,120:88},{14:oe,44:he,60:pe,89:se,101:281,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be,120:88},{98:[1,282]},e(Ft,[2,120]),e(Ie,[2,58]),{30:283,67:Dt,80:Mt,81:$t,82:172,116:At,117:Kt,118:rr},e(Ie,[2,66]),e(Nt,a,{5:284}),e(Ti,[2,131],{108:270,10:Ar,60:li,84:ki,105:$e,109:zt,110:Rt,111:Or,112:ni}),e(Ft,[2,126],{120:168,10:[1,285],14:oe,44:he,60:pe,89:se,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be}),e(Ft,[2,127],{120:168,10:[1,286],14:oe,44:he,60:pe,89:se,105:le,106:ue,109:de,111:we,114:De,115:Ge,116:be}),e(Ft,[2,114]),{31:[1,287],67:Dt,82:219,116:At,117:Kt,118:rr},{6:11,7:12,8:o,9:l,10:h,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:p,36:g,38:m,42:28,43:39,44:y,45:40,47:41,60:x,84:C,85:w,86:_,87:S,88:R,89:b,102:v,105:k,106:E,109:A,111:I,113:42,114:$,115:O,116:j,121:D,122:P,123:F,124:U,125:z},{10:Ar,60:li,84:ki,92:289,105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},{10:Ar,60:li,84:ki,92:290,105:$e,107:242,108:243,109:zt,110:Rt,111:Or,112:ni},e(Ie,[2,62]),e(W,[2,33]),e(Ft,[2,124],{106:Wr}),e(Ft,[2,125],{106:Wr})],defaultActions:{},parseError:s(function(hn,Ct){if(Ct.recoverable)this.trace(hn);else{var Zt=new Error(hn);throw Zt.hash=Ct,Zt}},"parseError"),parse:s(function(hn){var Ct=this,Zt=[0],St=[],$r=[null],Me=[],Qi=this.table,Fe="",Ji=0,kl=0,rh=0,ku=2,ih=1,Tu=Me.slice.call(arguments,1),bn=Object.create(this.lexer),to={yy:{}};for(var rc in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rc)&&(to.yy[rc]=this.yy[rc]);bn.setInput(hn,to.yy),to.yy.lexer=bn,to.yy.parser=this,typeof bn.yylloc>"u"&&(bn.yylloc={});var ic=bn.yylloc;Me.push(ic);var wu=bn.options&&bn.options.ranges;typeof to.yy.parseError=="function"?this.parseError=to.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Cu(it){Zt.length=Zt.length-2*it,$r.length=$r.length-it,Me.length=Me.length-it}f(Cu,"o6t"),s(Cu,"popStack");function q(){var it;return it=St.pop()||bn.lex()||ih,typeof it!="number"&&(it instanceof Array&&(St=it,it=St.pop()),it=Ct.symbols_[it]||it),it}f(q,"aNe"),s(q,"lex");for(var T,L,M,B,G,Z,ee={},K,ne,fe,Ne;;){if(M=Zt[Zt.length-1],this.defaultActions[M]?B=this.defaultActions[M]:((T===null||typeof T>"u")&&(T=q()),B=Qi[M]&&Qi[M][T]),typeof B>"u"||!B.length||!B[0]){var Ee="";Ne=[];for(K in Qi[M])this.terminals_[K]&&K>ku&&Ne.push("'"+this.terminals_[K]+"'");bn.showPosition?Ee="Parse error on line "+(Ji+1)+`: 895`+bn.showPosition()+` 896Expecting `+Ne.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ee="Parse error on line "+(Ji+1)+": Unexpected "+(T==ih?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ee,{text:bn.match,token:this.terminals_[T]||T,line:bn.yylineno,loc:ic,expected:Ne})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+T);
vendor: 7,067 bytes, lines 896-899
896switch(B[0]){case 1:Zt.push(T),$r.push(bn.yytext),Me.push(bn.yylloc),Zt.push(B[1]),T=null,L?(T=L,L=null):(kl=bn.yyleng,Fe=bn.yytext,Ji=bn.yylineno,ic=bn.yylloc,rh>0&&rh--);break;case 2:if(ne=this.productions_[B[1]][1],ee.$=$r[$r.length-ne],ee._$={first_line:Me[Me.length-(ne||1)].first_line,last_line:Me[Me.length-1].last_line,first_column:Me[Me.length-(ne||1)].first_column,last_column:Me[Me.length-1].last_column},wu&&(ee._$.range=[Me[Me.length-(ne||1)].range[0],Me[Me.length-1].range[1]]),Z=this.performAction.apply(ee,[Fe,kl,Ji,to.yy,B[1],$r,Me].concat(Tu)),typeof Z<"u")return Z;ne&&(Zt=Zt.slice(0,-1*ne*2),$r=$r.slice(0,-1*ne),Me=Me.slice(0,-1*ne)),Zt.push(this.productions_[B[1]][0]),$r.push(ee.$),Me.push(ee._$),fe=Qi[Zt[Zt.length-2]][Zt[Zt.length-1]],Zt.push(fe);break;case 3:return!0}}return!0},"parse")},aa=(function(){var hn={EOF:1,parseError:s(function(Ct,Zt){if(this.yy.parser)this.yy.parser.parseError(Ct,Zt);else throw new Error(Ct)},"parseError"),setInput:s(function(Ct,Zt){return this.yy=Zt||this.yy||{},this._input=Ct,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 Ct=this._input[0];this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct;var Zt=Ct.match(/(?:\r\n?|\n).*/g);return Zt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ct},"input"),unput:s(function(Ct){var Zt=Ct.length,St=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var $r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),St.length-1&&(this.yylineno-=St.length-1);var Me=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:St?(St.length===$r.length?this.yylloc.first_column:0)+$r[$r.length-St.length].length-St[0].length:this.yylloc.first_column-Zt},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-Zt]),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). 897`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(Ct){this.unput(this.match.slice(Ct))},"less"),pastInput:s(function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var Ct=this.pastInput(),Zt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+` 898`+Zt+"^"},"showPosition"),test_match:s(function(Ct,Zt){var St,$r,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),$r=Ct[0].match(/(?:\r\n?|\n).*/g),$r&&(this.yylineno+=$r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$r?$r[$r.length-1].length-$r[$r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,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(Ct[0].length),this.matched+=Ct[0],St=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;if(this._backtrack){for(var Qi in Me)this[Qi]=Me[Qi];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ct,Zt,St,$r;this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),Qi=0;Qi<Me.length;Qi++)if(St=this._input.match(this.rules[Me[Qi]]),St&&(!Zt||St[0].length>Zt[0].length)){if(Zt=St,$r=Qi,this.options.backtrack_lexer){if(Ct=this.test_match(St,Me[Qi]),Ct!==!1)return Ct;if(this._backtrack){Zt=!1;continue}else return!1}else if(!this.options.flex)break}return Zt?(Ct=this.test_match(Zt,Me[$r]),Ct!==!1?Ct:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 899`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var Ct=this.next();return Ct||this.lex()},"lex"),begin:s(function(Ct){this.conditionStack.push(Ct)},"begin"),popState:s(function(){var Ct=this.conditionStack.length-1;return Ct>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(Ct){return Ct=this.conditionStack.length-1-Math.abs(Ct||0),Ct>=0?this.conditionStack[Ct]:"INITIAL"},"topState"),pushState:s(function(Ct){this.begin(Ct)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:s(function(Ct,Zt,St,$r){var Me=$r;switch(St){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Zt.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:let Qi=/\n\s*/g;return Zt.yytext=Zt.yytext.replace(Qi,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";
899case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Ct.lex.firstGraph()&&this.begin("dir"),12;case 36:return Ct.lex.firstGraph()&&this.begin("dir"),12;case 37:return Ct
vendor: 10,730 bytes, line 899
899.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120: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]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return
899hn})();Ai.lexer=aa;function yi(){this.yy={}}return f(yi,"pi"),s(yi,"Parser"),yi.prototype=Ai,Ai.Parser=yi,new yi})(),X7.parser=X7,zW=X7}),qW,uje,R5t=Y(()=>{"use strict";L5t(),qW=Object.assign({},zW),qW.parse=e=>{let t=e.replace(/}\s*\n/g,`} 900`);return zW.parse(t)},uje=qW}),w2,Sk=Y(()=>{"use strict";w2=s(()=>` 901 /* Font Awesome icon styling - consolidated */ 902 .label-icon { 903 display: inline-block; 904 height: 1em; 905 overflow: visible; 906 vertical-align: -0.125em; 907 } 908 909 .node .label-icon path { 910 fill: currentColor; 911 stroke: revert; 912 stroke-width: revert; 913 } 914`,"getIconStyles")}),dje,pje,gje,I5t=Y(()=>{"use strict";Ya(),Sk(),dje=s((e,t)=>{let r=aC,i=r(e,"r"),n=r(e,"g"),a=r(e,"b");return Cl(i,n,a,t)},"fade"),pje=s(e=>{var t,r;return`.label { 915 font-family: ${e.fontFamily}; 916 color: ${e.nodeTextColor||e.textColor}; 917 } 918 .cluster-label text { 919 fill: ${e.titleColor}; 920 } 921 .cluster-label span { 922 color: ${e.titleColor}; 923 } 924 .cluster-label span p { 925 background-color: transparent; 926 } 927 928 .label text,span { 929 fill: ${e.nodeTextColor||e.textColor}; 930 color: ${e.nodeTextColor||e.textColor}; 931 } 932 933 .node rect, 934 .node circle, 935 .node ellipse, 936 .node polygon, 937 .node path { 938 fill: ${e.mainBkg}; 939 stroke: ${e.nodeBorder}; 940 stroke-width: ${(t=e.strokeWidth)!=null?t:1}px; 941 } 942 .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { 943 text-anchor: middle; 944 } 945 // .flowchart-label .text-outer-tspan { 946 // text-anchor: middle; 947 // } 948 // .flowchart-label .text-inner-tspan { 949 // text-anchor: start; 950 // } 951 952 .node .katex path { 953 fill: #000; 954 stroke: #000; 955 stroke-width: 1px; 956 } 957 958 .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { 959 text-align: center; 960 } 961 .node.clickable { 962 cursor: pointer; 963 } 964 965 966 .root .anchor path { 967 fill: ${e.lineColor} !important; 968 stroke-width: 0; 969 stroke: ${e.lineColor}; 970 } 971 972 .arrowheadPath { 973 fill: ${e.arrowheadColor}; 974 } 975 976 .edgePath .path { 977 stroke: ${e.lineColor}; 978 stroke-width: ${(r=e.strokeWidth)!=null?r:2}px; 979 } 980 981 .flowchart-link { 982 stroke: ${e.lineColor}; 983 fill: none; 984 } 985 986 .edgeLabel { 987 background-color: ${e.edgeLabelBackground}; 988 p { 989 background-color: ${e.edgeLabelBackground}; 990 } 991 rect { 992 opacity: 0.5; 993 background-color: ${e.edgeLabelBackground}; 994 fill: ${e.edgeLabelBackground}; 995 } 996 text-align: center; 997 } 998 999 /* For html labels only */ 1000 .labelBkg { 1001 background-color: ${dje(e.edgeLabelBackground,.5)}; 1002 // background-color: 1003 } 1004 1005 .cluster rect { 1006 fill: ${e.clusterBkg}; 1007 stroke: ${e.clusterBorder}; 1008 stroke-width: 1px; 1009 } 1010 1011 .cluster text { 1012 fill: ${e.titleColor}; 1013 } 1014 1015 .cluster span { 1016 color: ${e.titleColor}; 1017 } 1018 /* .cluster div { 1019 color: ${e.titleColor}; 1020 } */ 1021 1022 div.mermaidTooltip { 1023 position: absolute; 1024 text-align: center; 1025 max-width: 200px; 1026 padding: 2px; 1027 font-family: ${e.fontFamily}; 1028 font-size: 12px; 1029 background: ${e.tertiaryColor}; 1030 border: 1px solid ${e.border2}; 1031 border-radius: 2px; 1032 pointer-events: none; 1033 z-index: 100; 1034 } 1035 1036 .flowchartTitleText { 1037 text-anchor: middle; 1038 font-size: 18px; 1039 fill: ${e.textColor}; 1040 } 1041 1042 rect.text { 1043 fill: none; 1044 stroke-width: 0; 1045 } 1046 1047 .icon-shape, .image-shape { 1048 background-color: ${e.edgeLabelBackground}; 1049 p { 1050 background-color: ${e.edgeLabelBackground}; 1051 padding: 2px; 1052 } 1053 .label rect { 1054 opacity: 0.5; 1055 background-color: ${e.edgeLabelBackground}; 1056 fill: ${e.edgeLabelBackground}; 1057 } 1058 text-align: center; 1059 } 1060 ${w2()} 1061`},"getStyles"),gje=pje}),K7={};Jr(K7,{diagram:f(()=>fje,"diagram")});var fje,jW=Y(()=>{"use strict";vr(),r3t(),A5t(),R5t(),I5t(),fje={parser:uje,get db(){return new Lwe},renderer:hje,styles:gje,init:s(e=>{e.flowchart||(e.flowchart={}),e.layout&&f6({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,f6({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}}),Z7,mje,D5t=Y(()=>{"use strict";Z7=(function(){var e=s(function(Ge,be,qe,Ie){for(qe=qe||{},Ie=Ge.length;Ie--;qe[Ge[Ie]]=be);return qe},"o"),t=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],n=[1,12],a=[1,13],o=[1,23],l=[1,24],h=[1,25],u=[1,26],d=[1,27],p=[1,19],g=[1,28],m=[1,29],y=[1,20],x=[1,18],C=[1,21],w=[1,22],_=[1,36],S=[1,37],R=[1,38],b=[1,39],v=[1,40],k=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],E=[1,45],A=[1,46],I=[1,55],$=[40,48,50,51,52,70,71],O=[1,66],j=[1,64],D=[1,61],P=[1,65],F=[1,67],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],z=[65,66,67,68,69],V=[1,84],W=[1,83],X=[1,81],J=[1,82],H=[6,10,42,47],te=[6,10,13,41,42,47,48,49],ie=[1,92],oe=[1,91],he=[1,90],pe=[19,58],se=[1,101],le=[1,100],ue=[19,58,60,62],de={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,
1061NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:s(function(Ge,be,qe,Ie,Be,ke,Qe){var Pe=ke.length-1;switch(Be){case 1:break;case 2:this.$=[];break;case 3:ke[Pe-1].push(ke[Pe]),this.$=ke[Pe-1];break;case 4:case 5:this.$=ke[Pe];break;case 6:case 7:this.$=[];break;case 8:Ie.addEntity(ke[Pe-4]),Ie.addEntity(ke[Pe-2]),Ie.addRelationship(ke[Pe-4],ke[Pe],ke[Pe-2],ke[Pe-3]);break;case 9:Ie.addEntity(ke[Pe-8]),Ie.addEntity(ke[Pe-4]),Ie.addRelationship(ke[Pe-8],ke[Pe],ke[Pe-4],ke[Pe-5]),Ie.setClass([ke[Pe-8]],ke[Pe-6]),Ie.setClass([ke[Pe-4]],ke[Pe-2]);break;case 10:Ie.addEntity(ke[Pe-6]),Ie.addEntity(ke[Pe-2]),Ie.addRelationship(ke[Pe-6],ke[Pe],ke[Pe-2],ke[Pe-3]),Ie.setClass([ke[Pe-6]],ke[Pe-4]);break;case 11:Ie.addEntity(ke[Pe-6]),Ie.addEntity(ke[Pe-4]),Ie.addRelationship(ke[Pe-6],ke[Pe],ke[Pe-4],ke[Pe-5]),Ie.setClass([ke[Pe-4]],ke[Pe-2]);break;case 12:Ie.addEntity(ke[Pe-3]),Ie.addAttributes(ke[Pe-3],ke[Pe-1]);break;case 13:Ie.addEntity(ke[Pe-5]),Ie.addAttributes(ke[Pe-5],ke[Pe-1]),Ie.setClass([ke[Pe-5]],ke[Pe-3]);break;case 14:Ie.addEntity(ke[Pe-2]);break;case 15:Ie.addEntity(ke[Pe-4]),Ie.setClass([ke[Pe-4]],ke[Pe-2]);break;case 16:Ie.addEntity(ke[Pe]);break;case 17:Ie.addEntity(ke[Pe-2]),Ie.setClass([ke[Pe-2]],ke[Pe]);break;case 18:Ie.addEntity(ke[Pe-6],ke[Pe-4]),Ie.addAttributes(ke[Pe-6],ke[Pe-1]);break;case 19:Ie.addEntity(ke[Pe-8],ke[Pe-6]),Ie.addAttributes(ke[Pe-8],ke[Pe-1]),Ie.setClass([ke[Pe-8]],ke[Pe-3]);break;case 20:Ie.addEntity(ke[Pe-5],ke[Pe-3]);break;
vendor: 8,556 bytes, lines 1061-1063
1061case 21:Ie.addEntity(ke[Pe-7],ke[Pe-5]),Ie.setClass([ke[Pe-7]],ke[Pe-2]);break;case 22:Ie.addEntity(ke[Pe-3],ke[Pe-1]);break;case 23:Ie.addEntity(ke[Pe-5],ke[Pe-3]),Ie.setClass([ke[Pe-5]],ke[Pe]);break;case 24:case 25:this.$=ke[Pe].trim(),Ie.setAccTitle(this.$);break;case 26:case 27:this.$=ke[Pe].trim(),Ie.setAccDescription(this.$);break;case 32:Ie.setDirection("TB");break;case 33:Ie.setDirection("BT");break;case 34:Ie.setDirection("RL");break;case 35:Ie.setDirection("LR");break;case 36:this.$=ke[Pe-3],Ie.addClass(ke[Pe-2],ke[Pe-1]);break;case 37:case 38:case 59:case 67:this.$=[ke[Pe]];break;case 39:case 40:this.$=ke[Pe-2].concat([ke[Pe]]);break;case 41:this.$=ke[Pe-2],Ie.setClass(ke[Pe-1],ke[Pe]);break;case 42:this.$=ke[Pe-3],Ie.addCssStyles(ke[Pe-2],ke[Pe-1]);break;case 43:this.$=[ke[Pe]];break;case 44:ke[Pe-2].push(ke[Pe]),this.$=ke[Pe-2];break;case 46:this.$=ke[Pe-1]+ke[Pe];break;case 54:case 79:case 80:this.$=ke[Pe].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=ke[Pe];break;case 60:ke[Pe].push(ke[Pe-1]),this.$=ke[Pe];break;case 61:this.$={type:ke[Pe-1],name:ke[Pe]};break;case 62:this.$={type:ke[Pe-2],name:ke[Pe-1],keys:ke[Pe]};break;case 63:this.$={type:ke[Pe-2],name:ke[Pe-1],comment:ke[Pe]};break;case 64:this.$={type:ke[Pe-3],name:ke[Pe-2],keys:ke[Pe-1],comment:ke[Pe]};break;case 65:case 66:case 69:this.$=ke[Pe];break;case 68:ke[Pe-2].push(ke[Pe]),this.$=ke[Pe-2];break;case 70:this.$=ke[Pe].replace(/"/g,"");break;case 71:this.$={cardA:ke[Pe],relType:ke[Pe-1],cardB:ke[Pe-2]};break;case 72:this.$=Ie.Cardinality.ZERO_OR_ONE;break;case 73:this.$=Ie.Cardinality.ZERO_OR_MORE;break;case 74:this.$=Ie.Cardinality.ONE_OR_MORE;break;case 75:this.$=Ie.Cardinality.ONLY_ONE;break;case 76:this.$=Ie.Cardinality.MD_PARENT;break;case 77:this.$=Ie.Identification.NON_IDENTIFYING;break;case 78:this.$=Ie.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:n,28:a,29:14,30:15,31:16,32:17,33:o,34:l,35:h,36:u,37:d,40:p,43:g,44:m,48:y,50:x,51:C,52:w},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:30,11:9,22:r,24:i,26:n,28:a,29:14,30:15,31:16,32:17,33:o,34:l,35:h,36:u,37:d,40:p,43:g,44:m,48:y,50:x,51:C,52:w},e(t,[2,5]),e(t,[2,6]),e(t,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:_,66:S,67:R,68:b,69:v}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),e(t,[2,30]),e(t,[2,31]),e(k,[2,54]),e(k,[2,55]),e(k,[2,56]),e(k,[2,57]),e(k,[2,58]),e(t,[2,32]),e(t,[2,33]),e(t,[2,34]),e(t,[2,35]),{16:44,40:E,41:A},{16:47,40:E,41:A},{16:48,40:E,41:A},e(t,[2,4]),{11:49,40:p,48:y,50:x,51:C,52:w},{16:50,40:E,41:A},{18:51,19:[1,52],53:53,54:54,58:I},{11:56,40:p,48:y,50:x,51:C,52:w},{64:57,70:[1,58],71:[1,59]},e($,[2,72]),e($,[2,73]),e($,[2,74]),e($,[2,75]),e($,[2,76]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),{13:O,38:60,41:j,42:D,45:62,46:63,48:P,49:F},e(U,[2,37]),e(U,[2,38]),{16:68,40:E,41:A,42:D},{13:O,38:69,41:j,42:D,45:62,46:63,48:P,49:F},{13:[1,70],15:[1,71]},e(t,[2,17],{63:35,12:72,17:[1,73],42:D,65:_,66:S,67:R,68:b,69:v}),{19:[1,74]},e(t,[2,14]),{18:75,19:[2,59],53:53,54:54,58:I},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:_,66:S,67:R,68:b,69:v},e(z,[2,77]),e(z,[2,78]),{6:V,10:W,39:80,42:X,47:J},{40:[1,85],41:[1,86]},e(H,[2,43],{46:87,13:O,41:j,48:P,49:F}),e(te,[2,45]),e(te,[2,50]),e(te,[2,51]),e(te,[2,52]),e(te,[2,53]),e(t,[2,41],{42:D}),{6:V,10:W,39:88,42:X,47:J},{14:89,40:ie,50:oe,72:he},{16:93,40:E,41:A},{11:94,40:p,48:y,50:x,51:C,52:w},{18:95,19:[1,96],53:53,54:54,58:I},e(t,[2,12]),{19:[2,60]},e(pe,[2,61],{56:97,57:98,59:99,61:se,62:le}),e([19,58,61,62],[2,66]),e(t,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(t,[2,36]),{13:O,41:j,45:104,46:63,48:P,49:F},e(t,[2,47]),e(t,[2,48]),e(t,[2,49]),e(U,[2,39]),e(U,[2,40]),e(te,[2,46]),e(t,[2,42]),e(t,[2,8]),e(t,[2,79]),e(t,[2,80]),e(t,[2,81]),{13:[1,105],42:D},{13:[1,107],15:[1,106]},{19:[1,108]},e(t,[2,15]),e(pe,[2,62],{57:109,60:[1,110],62:le}),e(pe,[2,63]),e(ue,[2,67]),e(pe,[2,70]),e(ue,[2,69]),{18:111,19:[1,112],53:53,54:54,58:I},{16:113,40:E,41:A},e(H,[2,44],{46:87,13:O,41:j,48:P,49:F}),{14:114,40:ie,50:oe,72:he},{16:115,40:E,41:A},{14:116,40:ie,50:oe,72:he},e(t,[2,13]),e(pe,[2,64]),{59:117,61:se},{19:[1,118]},e(t,[2,20]),e(t,[2,23],{17:[1,119],42:D}),e(t,[2,11]),{13:[1,120],42:D},e(t,[2,10]),e(ue,[2,68]),e(t,[2,18]),{18:121,19:[1,122],53:53,54:54,58:I},{14:123,40:ie,50:oe,72:he},{19:[1,124]},e(t,[2,21]),e(t,[2,9]),e(t,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:s(function(Ge,be){if(be.recoverable)this.trace(Ge);else{var qe=new Error(Ge);throw qe.hash=be,qe}},"parseError"),parse:s(function(Ge){var be=this,qe=[0],Ie=[],Be=[null],ke=[],Qe=this.table,Pe="",ht=0,Xe=0,dt=0,at=2,kt=1,Le=ke.slice.call(arguments,1),lt=Object.create(this.lexer),ve={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(ve.yy[tt]=this.yy[tt]);lt.setInput(Ge,ve.yy),ve.yy.lexer=lt,ve.yy.parser=this,typeof lt.yylloc>"u"&&(lt.yylloc={});var Q=lt.yylloc;ke.push(Q);var xe=lt.options&<.options.ranges;typeof ve.yy.parseError=="function"?this.parseError=ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(Nt){qe.length=qe.length-2*Nt,Be.length=Be.length-Nt,ke.length=ke.length-Nt}f(ae,"K"),s(ae,"popStack");function _e(){var Nt;return Nt=Ie.pop()||lt.lex()||kt,typeof Nt!="number"&&(Nt instanceof Array&&(Ie=Nt,Nt=Ie.pop()),Nt=be.symbols_[Nt]||Nt),Nt}f(_e,"Re"),s(_e,"lex");for(var Se,Je,Re,et,ze,Ke,We={},nt,Te,bt,Ae;;){if(Re=qe[qe.length-1],this.defaultActions[Re]?et=this.defaultActions[Re]:((Se===null||typeof Se>"u")&&(Se=_e()),et=Qe[Re]&&Qe[Re][Se]),typeof et>"u"||!et.length||!et[0]){var ft="";Ae=[];for(nt in Qe[Re])this.terminals_[nt]&&nt>at&&Ae.push("'"+this.terminals_[nt]+"'");lt.showPosition?ft="Parse error on line "+(ht+1)+`: 1062`+lt.showPosition()+` 1063Expecting `+Ae.join(", ")+", got '"+(this.terminals_[Se]||Se)+"'":ft="Parse error on line "+(ht+1)+": Unexpected "+(Se==kt?"end of input":"'"+(this.terminals_[Se]||Se)+"'"),this.parseError(ft,{text:lt.match,token:this.terminals_[Se]||Se,line:lt.yylineno,loc:Q,expected:Ae})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Re+", token: "+Se);switch(et[0]){case 1:qe.push(Se),Be.push(lt.yytext),ke.push(lt.yylloc),qe.push(et[1]),Se=null,Je?(Se=Je,Je=null):(Xe=lt.yyleng,Pe=lt.yytext,ht=lt.yylineno,Q=lt.yylloc,dt>0&&dt--);break;case 2:if(Te=this.productions_[et[1]][1],We.$=Be[Be.length-Te],We._$={first_line:ke[ke.length-(Te||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(Te||1)].first_column,last_column:ke[ke.length-1].last_column},xe&&(We._$.range=[ke[ke.length-(Te||1)].range[0],ke[ke.length-1].range[1]]),Ke=this.performAction.apply(We,[Pe,Xe,ht,ve.yy,et[1],Be,ke].concat(Le)),typeof Ke<"u")return Ke;Te&&(qe=qe.slice(0,-1*Te*2),Be=Be.slice(0,-1*Te),ke=ke.slice(0,-1*Te)),qe.push(this.productions_[et[1]][0]),Be.push(We.$),ke.push(We._$),bt=Qe[qe[qe.length-2]][qe[qe.length-1]],qe.push(bt);break;case 3:return!0}}return!0},"parse")},we=(function(){var Ge={EOF:1,parseError:s(function(be,qe){if(this.yy.parser)this.yy.parser.parseError(be,qe);else throw new Error(be)},"parseError"),setInput:s(function(be,qe){return this.yy=qe||this.yy||{},this._input=be,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 be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var qe=be.match(/(?:\r\n?|\n).*/g);return qe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},"input"),unput:s(function(be){var qe=be.length,Ie=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qe),this.offset-=qe;var Be=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),Ie.length-1&&(this.yylineno-=Ie.length-1);var ke=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:Ie?(Ie.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-Ie.length].length-Ie[0].length:this.yylloc.first_column-qe}
vendor: 9,003 bytes, lines 1063-1066
1063,this.options.ranges&&(this.yylloc.range=[ke[0],ke[0]+this.yyleng-qe]),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). 1064`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(be){this.unput(this.match.slice(be))},"less"),pastInput:s(function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var be=this.pastInput(),qe=new Array(be.length+1).join("-");return be+this.upcomingInput()+` 1065`+qe+"^"},"showPosition"),test_match:s(function(be,qe){var Ie,Be,ke;if(this.options.backtrack_lexer&&(ke={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&&(ke.yylloc.range=this.yylloc.range.slice(0))),Be=be[0].match(/(?:\r\n?|\n).*/g),Be&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,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(be[0].length),this.matched+=be[0],Ie=this.performAction.call(this,this.yy,this,qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ie)return Ie;if(this._backtrack){for(var Qe in ke)this[Qe]=ke[Qe];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,qe,Ie,Be;this._more||(this.yytext="",this.match="");for(var ke=this._currentRules(),Qe=0;Qe<ke.length;Qe++)if(Ie=this._input.match(this.rules[ke[Qe]]),Ie&&(!qe||Ie[0].length>qe[0].length)){if(qe=Ie,Be=Qe,this.options.backtrack_lexer){if(be=this.test_match(Ie,ke[Qe]),be!==!1)return be;if(this._backtrack){qe=!1;continue}else return!1}else if(!this.options.flex)break}return qe?(be=this.test_match(qe,ke[Be]),be!==!1?be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1066`+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,qe,Ie,Be){var ke=Be;switch(Ie){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return qe.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return qe.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,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,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}};return Ge})();de.lexer=we;function De(){this.yy={}}return f(De,"ue"),s(De,"Parser"),De.prototype=de,de.Parser=De,new De})(),Z7.parser=Z7,mje=Z7}),yje,N5t=Y(()=>{"use strict";var e;jt(),vr(),En(),wr(),yje=(e=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={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"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=wn,this.getAccTitle=Pn,this.setAccDescription=Fn,this.getAccDescription=zn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getConfig=s(()=>Ue().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(r,i=""){var n,a;return this.entities.has(r)?!((n=this.entities.get(r))!=null&&n.alias)&&i&&(this.entities.get(r).alias=i,ge.info(`Add alias '${i}' to entity '${r}'`)):(this.entities.set(r,{id:`entity-${r}-${this.entities.size}`,label:r,attributes:[],alias:i,shape:"erBox",look:(a=Ue().look)!=null?a:"default",cssClasse
1066s:"default",cssStyles:[],labelType:"markdown"}),ge.info("Added new entity :",r)),this.entities.get(r)}getEntity(r){return this.entities.get(r)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(r,i){let n=this.addEntity(r),a;for(a=i.length-1;a>=0;a--)i[a].keys||(i[a].keys=[]),i[a].comment||(i[a].comment=""),n.attributes.push(i[a]),ge.debug("Added attribute ",i[a].name)}addRelationship(r,i,n,a){let o=this.entities.get(r),l=this.entities.get(n);if(!o||!l)return;let h={entityA:o.id,roleA:i,entityB:l.id,relSpec:a};this.relationships.push(h),ge.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(r){this.direction=r}getCompiledStyles(r){var n,a;let i=[];for(let o of r){let l=this.classes.get(o);l!=null&&l.styles&&(i=[...i,...(n=l.styles)!=null?n:[]].map(h=>h.trim())),l!=null&&l.textStyles&&(i=[...i,...(a=l.textStyles)!=null?a:[]].map(h=>h.trim()))}return i}addCssStyles(r,i){for(let n of r){let a=this.entities.get(n);if(!i||!a)return;for(let o of i)a.cssStyles.push(o)}}addClass(r,i){r.forEach(n=>{let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),i&&i.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)})})}setClass(r,i){for(let n of r){let a=this.entities.get(n);if(a)for(let o of i)a.cssClasses+=" "+o}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Tn()}getData(){let r=[],i=[],n=Ue(),a=0;for(let l of this.entities.keys()){let h=this.entities.get(l);h&&(h.cssCompiledStyles=this.getCompiledStyles(h.cssClasses.split(" ")),h.colorIndex=a++,r.push(h))}let o=0;for(let l of this.relationships){let h={id:Dg(l.entityA,l.entityB,{prefix:"id",counter:o++}),type:"normal",curve:"basis",start:l.entityA,end:l.entityB,label:l.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:l.relSpec.cardB.toLowerCase(),arrowTypeEnd:l.relSpec.cardA.toLowerCase(),pattern:l.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:n.look,labelType:"markdown"};i.push(h)}return{nodes:r,edges:i,other:{},config:n,direction:"TB"}}},f(e,"fE"),s(e,"ErDB"),e)}),vje={};Jr(vje,{draw:f(()=>bje,"draw")});var bje,M5t=Y(()=>{"use strict";vr(),jt(),ky(),Of(),$f(),wr(),ui(),bje=s(async function(e,t,r,i){var m,y;ge.info("REF0:"),ge.info("Drawing er diagram (unified)",t);let{securityLevel:n,er:a,layout:o}=Ue(),l=i.db.getData(),h=jg(t,n);l.type=i.type,l.layoutAlgorithm=T2(o),l.config.flowchart.nodeSpacing=(a==null?void 0:a.nodeSpacing)||140,l.config.flowchart.rankSpacing=(a==null?void 0:a.rankSpacing)||80,l.direction=i.db.getDirection();let{config:u}=l,{look:d}=u;d==="neo"?l.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:l.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],l.diagramId=t,await Mf(l,h),l.layoutAlgorithm==="elk"&&h.select(".edges").lower();let p=h.selectAll('[id*="-background"]');Array.from(p).length>0&&p.each(function(){let x=Lt(this),C=x.attr("id").replace("-background",""),w=h.select(`#${CSS.escape(C)}`);if(!w.empty()){let _=w.attr("transform");x.attr("transform",_)}}),ri.insertTitle(h,"erDiagramTitleText",(m=a==null?void 0:a.titleTopMargin)!=null?m:25,i.db.getDiagramTitle()),Hp(h,8,"erDiagram",(y=a==null?void 0:a.useMaxWidth)!=null?y:!0)},"draw")}),GW,_k,xje,kje,Tje,O5t=Y(()=>{"use strict";Ya(),GW=s((e,t)=>{let r=aC,i=r(e,"r"),n=r(e,"g"),a=r(e,"b");return Cl(i,n,a,t)},"fade"),_k=new Set(["redux-color","redux-dark-color"]),xje=s(e=>{let{theme:t,look:r,bkgColorArray:i,borderColorArray:n}=e;if(!_k.has(t))return"";let a=(i==null?void 0:i.length)>0,o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=` 1067 1068 [data-look="${r}"][data-color-id="color-${l}"].node path { 1069 stroke: ${n[l]}; 1070 ${a?`fill: ${i[l]};`:""} 1071 } 1072 1073 [data-look="${r}"][data-color-id="color-${l}"].node rect { 1074 stroke: ${n[l]}; 1075 ${a?`fill: ${i[l]};`:""} 1076 } 1077 `;return o},"genColor"),kje=s(e=>{let{look:t,theme:r,erEdgeLabelBackground:i,strokeWidth:n}=e;return` 1078 ${xje(e)} 1079 .entityBox { 1080 fill: ${e.mainBkg}; 1081 stroke: ${e.nodeBorder}; 1082 } 1083 1084 .relationshipLabelBox { 1085 fill: ${e.tertiaryColor}; 1086 opacity: 0.7; 1087 background-color: ${e.tertiaryColor}; 1088 rect { 1089 opacity: 0.5; 1090 } 1091 } 1092 1093 .labelBkg { 1094 background-color: ${_k.has(r)&&i?i:GW(e.tertiaryColor,.5)}; 1095 } 1096 1097 .edgeLabel {
1098 background-color: ${_k.has(r)&&i?i:e.edgeLabelBackground}; 1099 } 1100 .edgeLabel .label rect { 1101 fill: ${_k.has(r)&&i?i:e.edgeLabelBackground}; 1102 } 1103 .edgeLabel .label text { 1104 fill: ${e.textColor}; 1105 } 1106 1107 .edgeLabel .label { 1108 fill: ${e.nodeBorder}; 1109 font-size: 14px; 1110 } 1111 1112 .label { 1113 font-family: ${e.fontFamily}; 1114 color: ${e.nodeTextColor||e.textColor}; 1115 } 1116 1117 .edge-pattern-dashed { 1118 stroke-dasharray: 8,8; 1119 } 1120 1121 .node rect, 1122 .node circle, 1123 .node ellipse, 1124 .node polygon 1125 { 1126 fill: ${e.mainBkg}; 1127 stroke: ${e.nodeBorder}; 1128 stroke-width: ${t==="neo"?n:"1px"}; 1129 } 1130 1131 .relationshipLine { 1132 stroke: ${e.lineColor}; 1133 stroke-width: ${t==="neo"?n:"1px"}; 1134 fill: none; 1135 } 1136 1137 .marker { 1138 fill: none !important; 1139 stroke: ${e.lineColor} !important; 1140 stroke-width: 1; 1141 } 1142 [data-look=neo].labelBkg { 1143 background-color: ${GW(e.tertiaryColor,.5)}; 1144 } 1145`},"getStyles"),Tje=kje}),wje={};Jr(wje,{diagram:f(()=>Cje,"diagram")});var Cje,$5t=Y(()=>{"use strict";D5t(),N5t(),M5t(),O5t(),Cje={parser:mje,get db(){return new yje},renderer:vje,styles:Tje}});function _a(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}f(_a,"Rn");function Vs(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"ref"in e}f(Vs,"ss");function $c(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"items"in e}f($c,"Qc");function Q7(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}f(Q7,"f$");function Yp(e){return typeof e=="object"&&e!==null&&typeof e.info=="object"&&typeof e.message=="string"}f(Yp,"g0");function jh(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}f(jh,"oh");function Xp(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}f(Xp,"q0");function Ak(e){return jh(e)&&typeof e.fullText=="string"}f(Ak,"H5");function UW(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}f(UW,"hve");function C2(e){return!!e&&typeof e[Symbol.iterator]=="function"}f(C2,"rT");function tn(...e){if(e.length===1){let t=e[0];if(t instanceof Pc)return t;if(C2(t))return new Pc(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Pc(()=>({index:0}),r=>r.index<t.length?{done:!1,value:t[r.index++]}:Hs)}return e.length>1?new Pc(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let r=e[t.collIndex++];C2(r)?t.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return Hs}):t1}f(tn,"gi");function Bf(e,t={}){for(let[r,i]of Object.entries(e))r.startsWith("$")||(Array.isArray(i)?i.forEach((n,a)=>{_a(n)&&(n.$container=e,n.$containerProperty=r,n.$containerIndex=a,t.deep&&Bf(n,t))}):_a(i)&&(i.$container=e,i.$containerProperty=r,t.deep&&Bf(i,t)))}f(Bf,"j1");function Kp(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}f(Kp,"U0");function VW(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}f(VW,"dve");function Fl(e){let t=Pf(e).$document;if(!t)throw new Error("AST node has no document.");return t}f(Fl,"Wl");function Pf(e){for(;e.$container;)e=e.$container;return e}f(Pf,"V1");function Lk(e){return Vs(e)?e.ref?[e.ref]:[]:$c(e)?e.items.map(t=>t.ref):[]}f(Lk,"r5");function E2(e,t){if(!e)throw new Error("Node must be an AstNode.");let r=t==null?void 0:t.range;return new Pc(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),i=>{for(;i.keyIndex<i.keys.length;){let n=i.keys[i.keyIndex];if(!n.startsWith("$")){let a=e[n];if(_a(a)){if(i.keyIndex++,Rk(a,r))return{done:!1,value:a}}else if(Array.isArray(a)){for(;i.arrayIndex<a.length;){let o=i.arrayIndex++,l=a[o];if(_a(l)&&Rk(l,r))return{done:!1,value:l}}i.arrayIndex=0}}i.keyIndex++}return Hs})}f(E2,"CT");function Gh(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new r1(e,r=>E2(r,t))}f(Gh,"yh");function zl(e,t){if(e){if(t!=null&&t.range&&!Rk(e,t.range))return new r1(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new r1(e,r=>E2(r,t),{includeRoot:!0})}f(zl,"ql");function Rk(e,t){var i;if(!t)return!0;let r=(i=e.$cstNode)==null?void 0:i.range;return r?kA(r,t):!1}f(Rk,"i5");function Ff(e){return new Pc(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith("$")){let i=e[r];if(Vs(i)||$c(i))return t.keyIndex++,{done:!1,value:{reference:i,container:e,property:r}};if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let n=t.arrayIndex++,a=i[n];if(Vs(a)||$c(i))return{done:!1,value:{reference:a,container:e,property:r,index:n}}}t.arrayIndex=0}}t.keyIndex++}return Hs})}f(Ff,"X1");function J7(e,t){let r=e.getTypeMetaData(t.$type),i=t;for(let n of Object.values(r.properties))n.defaultValue!==void 0&&i[n.name]===void 0&&(i[n.name]=eA(n.defaultValue))}f(J7,"g$");function eA(e){return Array.isArray(e)?[...e.map(eA)]:e}f(eA,"y$");function Ik(e,t,r){let i={$type:e.$type};r&&(r.set(e,i),r.set(i,e));for(let[n,a]of Object.entries(e))if(!n.startsWith("$"))if(_a(a))i[n]=Ik(a,t,r);
vendor: 43,226 bytes, lines 1145-1153
1145else if(Vs(a))i[n]=t(i,n,a.$refNode,a.$refText,a);else if(Array.isArray(a)){let o=[];for(let l of a)_a(l)?o.push(Ik(l,t,r)):Vs(l)?o.push(t(i,n,l.$refNode,l.$refText,l)):o.push(l);i[n]=o}else i[n]=a;return Bf(i,{deep:!0}),i}f(Ik,"n5");function Dk(e){return jr.isInstance(e,go.$type)}f(Dk,"Y5");function Zp(e){return jr.isInstance(e,rv.$type)}f(Zp,"H0");function WW(e){return jr.isInstance(e,i1.$type)}f(WW,"pve");function HW(e){return jr.isInstance(e,Fo.$type)}f(HW,"mve");function Td(e){return jr.isInstance(e,Ad.$type)}f(Td,"pf");function Nk(e){return jr.isInstance(e,iv.$type)}f(Nk,"j5");function YW(e){return jr.isInstance(e,$T.$type)}f(YW,"gve");function tA(e){return jr.isInstance(e,BT.$type)}f(tA,"v$");function Uh(e){return jr.isInstance(e,Ld.$type)}f(Uh,"lh");function rA(e){return jr.isInstance(e,PT.$type)}f(rA,"x$");function iA(e){return jr.isInstance(e,Rd.$type)}f(iA,"b$");function XW(e){return jr.isInstance(e,Id.$type)}f(XW,"yve");function nA(e){return jr.isInstance(e,nv.$type)}f(nA,"T$");function Qp(e){return jr.isInstance(e,Dd.$type)}f(Qp,"Y0");function aA(e){return jr.isInstance(e,av.$type)}f(aA,"C$");function sA(e){return jr.isInstance(e,FT.$type)}f(sA,"k$");function KW(e){return jr.isInstance(e,Kh.$type)}f(KW,"vve");function ZW(e){return jr.isInstance(e,zT.$type)}f(ZW,"xve");function Jp(e){return jr.isInstance(e,y0.$type)}f(Jp,"j0");function S2(e){return jr.isInstance(e,qT.$type)}f(S2,"kT");function zf(e){return jr.isInstance(e,Fc.$type)}f(zf,"K1");function QW(e){return jr.isInstance(e,sv.$type)}f(QW,"bve");function JW(e){return jr.isInstance(e,jT.$type)}f(JW,"Tve");function oA(e){return jr.isInstance(e,n1.$type)}f(oA,"w$");function Vh(e){return jr.isInstance(e,a1.$type)}f(Vh,"ch");function eH(e){return jr.isInstance(e,s1.$type)}f(eH,"Cve");function lA(e){return jr.isInstance(e,v0.$type)}f(lA,"S$");function cA(e){return jr.isInstance(e,GT.$type)}f(cA,"E$");function tH(e){return jr.isInstance(e,UT.$type)}f(tH,"kve");function rH(e){return jr.isInstance(e,o1.$type)}f(rH,"wve");function hA(e){return jr.isInstance(e,VT.$type)}f(hA,"A$");function Ws(e){return jr.isInstance(e,Gl.$type)}f(Ws,"cs");function uA(e){return jr.isInstance(e,ov.$type)}f(uA,"_$");function dA(e){return jr.isInstance(e,b0.$type)}f(dA,"D$");function pA(e){return jr.isInstance(e,WT.$type)}f(pA,"R$");function Wh(e){return jr.isInstance(e,x0.$type)}f(Wh,"uh");function Mk(e){return jr.isInstance(e,l1.$type)}f(Mk,"X5");function iH(e){return jr.isInstance(e,HT.$type)}f(iH,"Sve");function gA(e){return jr.isInstance(e,k0.$type)}f(gA,"L$");function nH(e){return jr.isInstance(e,fo.$type)}f(nH,"Eve");function fA(e){return jr.isInstance(e,T0.$type)}f(fA,"M$");function cl(e){return jr.isInstance(e,Zh.$type)}f(cl,"rl");function Ok(e){return jr.isInstance(e,w0.$type)}f(Ok,"K5");function $k(e){return jr.isInstance(e,lv.$type)}f($k,"Z5");function aH(e){return jr.isInstance(e,C0.$type)}f(aH,"Ave");function sH(e){return jr.isInstance(e,E0.$type)}f(sH,"_ve");function mA(e){return jr.isInstance(e,YT.$type)}f(mA,"N$");function Bk(e){return jr.isInstance(e,cv.$type)}f(Bk,"Q5");function yA(e){return jr.isInstance(e,S0.$type)}f(yA,"I$");function oH(e){return jr.isInstance(e,_0.$type)}f(oH,"Dve");function vA(e){return jr.isInstance(e,c1.$type)}f(vA,"O$");function lH(e){let t=e,r=!1;for(;t;){let i=Kp(t.grammarSource,Ws);if(i&&i.dataType)t=t.container,r=!0;else return r?t:void 0}}f(lH,"Rve");function qf(e){return new r1(e,t=>jh(t)?t.content:[],{includeRoot:!0})}f(qf,"Z1");function cH(e){return qf(e).filter(Xp)}f(cH,"Lve");function bA(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}f(bA,"B$");function _2(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}f(_2,"nT");function jf(e){if(!e)return;let{offset:t,end:r,range:i}=e;return{range:i,offset:t,end:r,length:r-t}}f(jf,"Q1");function xA(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Qh.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Qh.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,i=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&i?Qh.Inside:r?Qh.OverlapBack:i?Qh.OverlapFront:Qh.Outside}f(xA,"F$");function kA(e,t){return xA(e,t)>Qh.After}f(kA,"$$");function hH(e,t,r=b9){if(e){if(t>0){let i=t-e.offset,n=e.text.charAt(i);r.test(n)||t--}return Fk(e,t)}}f(hH,"Mve");function TA(e,t){if(e){let r=EA(e,!0);if(r&&Pk(r,t))return r;if(Ak(e)){let i=e.content.findIndex(n=>!n.hidden);for(let n=i-1;n>=0;n--){let a=e.content[n];if(Pk(a,t))return a}}}}f(TA,"G$");function Pk(e,t){return Xp(e)&&t.includes(e.tokenType.name)}f(Pk,"v5");function Fk(e,t){if(Xp(e))return e;if(jh(e)){let r=CA(e,t,!1);if(r)return Fk(r,t)}}f(Fk,"J5");function wA(e,t){if(Xp(e))return e;if(jh(e)){let r=CA(e,t,!0);if(r)return wA(r,t)}}f(wA,"V$");function CA(e,t,r){let i=0,n=e.content.length-1,a;for(;i<=n;){let o=Math.floor((i+n)/2),l=e.content[o];if(l.offset<=t&&l.end>t)return l;l.end<=t?(a=r?l:void 0,i=o+1):n=o-1}return a}f(CA,"W$");function EA(e,t=!0){for(;e.container;){let r=e.container,i=r.content.indexOf(e);for(;i>0;){i--;let n=r.content[i];if(t||!n.hidden)return n}e=r}}f(EA,"q$");function uH(e,t=!0){for(;e.container;){let r=e.container,i=r.content.indexOf(e),n=r.content.length-1;for(;i<n;){i++;let a=r.content[i];if(t||!a.hidden)return a}e=r}}f(uH,"Nve");function dH(e){if(e.range.start.character===0)return e;let t=e.range.start.line,r=e,i;for(;e.container;){let n=e.container,a=i!=null?i:n.content.indexOf(e);if(a===0?(e=n,i=void 0):(i=a-1,e=n.content[i]),e.range.start.line!==t)break;r=e}return r}f(dH,"Ive");function pH(e,t){let r=gH(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}f(pH,"Ove");function gH(e,t){let r=SA(e),i=SA(t),n;for(let a=0;a<r.length&&a<i.length;a++){let o=r[a],l=i[a];if(o.parent===l.parent)n={parent:o.parent,a:o.index,b:l.index};else break}return n}f(gH,"Pve");function SA(e){let t=[];for(;e.container;){let r=e.container,i=r.content.indexOf(e);t.push({parent:r,index:i}),e=r}return t.reverse()}f(SA,"pF");function wd(e,t="Error: Got unexpected value."){throw new Error(t)}f(wd,"bf");function _A(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}f(_A,"H$");function Yr(e){return e.charCodeAt(0)}f(Yr,"yr");function zk(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}f(zk,"GE");function Gf(e,t){if(e[t]===!0)throw"duplicate flag "+t;let r=e[t];e[t]=!0}f(Gf,"R1");function e0(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}f(e0,"u0");function A2(){throw Error("Internal Error - Should never get here!")}f(A2,"I2");function AA(e){return e.type==="Character"}f(AA,"mF");function fH(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;let t=Mre.pattern(e),r=[];for(let i of t.value.value)A0.reset(e),A0.visit(i),r.push({start:A0.startRegexp,end:A0.endRegex});return r}catch(t){return[]}}f(fH,"zve");function LA(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),A0.reset(e),A0.visit(Mre.pattern(e)),A0.multiline}catch(t){return!1}}f(LA,"j$");function qk(e){let t=typeof e=="string"?new RegExp(e):e;return Ore.some(r=>t.test(r))}f(qk,"rA");function Uf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}f(Uf,"sy");function RA(e,t){let r=IA(e),i=t.match(r);return!!i&&i[0].length>0}f(RA,"X$");function IA(e){typeof e=="string"&&(e=new RegExp(e));let t=e,r=e.source,i=0;function n(){let a="",o;function l(u){a+=r.substr(i,u),i+=u}f(l,"l"),s(l,"appendRaw"),N(l,"appendRaw");function h(u){a+="(?:"+r.substr(i,u)+"|$)",i+=u}for(f(h,"u"),s(h,"appendOptional"),N(h,"appendOptional");i<r.length;)switch(r[i]){case"\\":switch(r[i+1]){case"c":h(3);break;case"x":h(4);break;case"u":t.unicode?r[i+2]==="{"?h(r.indexOf("}",i)-i+1):h(6):h(2);break;case"p":case"P":t.unicode?h(r.indexOf("}",i)-i+1):h(2);break;case"k":h(r.indexOf(">",i)-i+1);break;default:h(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=i,o=o.exec(r)||[],h(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=i,o=o.exec(r),o?l(o[0].length):h(1);break;case"(":if(r[i+1]==="?")switch(r[i+2]){case":":a+="(?:",i+=3,a+=n()+"|$)";break;case"=":a+="(?=",i+=3,a+=n()+")";break;case"!":o=i,i+=3,n(),a+=r.substr(o,i-o);break;case"<":switch(r[i+3]){case"=":case"!":o=i,i+=4,n(),a+=r.substr(o,i-o);break;default:l(r.indexOf(">",i)-i+1),a+=n()+"|$)";break}break}else l(1),a+=n()+"|$)";break;case")":return++i,a;default:h(1);break}return a}return f(n,"n"),s(n,"process2"),N(n,"process"),new RegExp(n(),e.flags)}f(IA,"K$");function DA(e){return e.rules.find(t=>Ws(t)&&t.entry)}f(DA,"Z$");function NA(e){return e.rules.filter(t=>cl(t)&&t.hidden)}f(NA,"Q$");function jk(e,t){let r=new Set,i=DA(e);if(!i)return new Set(e.rules);let n=[i].concat(NA(e));for(let o of n)MA(o,r,t);let a=new Set;for(let o of e.rules)(r.has(o.name)||cl(o)&&o.hidden)&&a.add(o);return a}f(jk,"iA");function MA(e,t,r){t.add(e.name),Gh(e).forEach(i=>{if(Wh(i)||r&&Ok(i)){let n=i.rule.ref;n&&!t.has(n.name)&&MA(n,t,r)}})}f(MA,"J$");function mH(e){let t=new Set;return Gh(e).forEach(r=>{Qp(r)&&(Ws(r.type.ref)&&t.add(r.type.ref),S2(r.type.ref)&&Ws(r.type.ref.$container)&&t.add(r.type.ref.$container))}),t}f(mH,"Vve");function OA(e){var t;if(e.terminal)return e.terminal;if(e.type.ref)return(t=Wk(e.type.ref))==null?void 0:t.terminal}f(OA,"ez");function $A(e){return e.hidden&&!qk(I2(e))}f($A,"tz");function BA(e,t){return!e||!t?[]:Uk(e,t,e.astNode,!0)}f(BA,"rz");function Gk(e,t,r){if(!e||!t)return;let i=Uk(e,t,e.astNode,!0);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}f(Gk,"nA");function Uk(e,t,r,i){if(!i){let n=Kp(e.grammarSource,Uh);if(n&&n.feature===t)return[e]}return jh(e)&&e.astNode===r?e.content.flatMap(n=>Uk(n,t,r,!1)):[]}f(Uk,"aA");function yH(e,t){return e?Vk(e,t,e==null?void 0:e.astNode):[]}f(yH,"Wve");function PA(e,t,r){if(!e)return;let i=Vk(e,t,e==null?void 0:e.astNode);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}f(PA,"iz");function Vk(e,t,r){if(e.astNode!==r)return[];if(Vh(e.grammarSource)&&e.grammarSource.value===t)return[e];let i=qf(e).iterator(),n,a=[];do if(n=i.next(),!n.done){let o=n.value;o.astNode===r?Vh(o.grammarSource)&&o.grammarSource.value===t&&a.push(o):i.prune()}while(!n.done);return a}f(Vk,"sA");function FA(e){var r;let t=e.astNode;for(;t===((r=e.container)==null?void 0:r.astNode);){let i=Kp(e.grammarSource,Uh);if(i)return i;e=e.container}}f(FA,"nz");function Wk(e){let t=e;return S2(t)&&(Td(t.$container)?t=t.$container.$container:Zp(t.$container)?t=t.$container:wd(t.$container)),zA(e,t,new Map)}f(Wk,"oA");function zA(e,t,r){var n;function i(a,o){let l;return Kp(a,Uh)||(l=zA(o,o,r)),r.set(e,l),l}if(f(i,"i"),s(i,"go"),N(i,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(let a of Gh(t)){if(Uh(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(Wh(a)&&Ws(a.rule.ref))return i(a,a.rule.ref);if(Mk(a)&&((n=a.typeRef)!=null&&n.ref))return i(a,a.typeRef.ref)}}f(zA,"az");function qA(e){let t=e.$container;if(Jp(t)){let r=t.elements,i=r.indexOf(e);for(let n=i-1;n>=0;n--){let a=r[n];if(Td(a))return a;{let o=Gh(r[n]).find(Td);if(o)return o}}}if(Dk(t))return qA(t)}f(qA,"sz");function vH(e,t){return e==="?"||e==="*"||Jp(t)&&!!t.guardCondition}f(vH,"qve");function bH(e){return e==="*"||e==="+"}f(bH,"Uve");function xH(e){return e==="+="}f(xH,"Hve");function L2(e){return jA(e,new Set)}f(L2,"wT");function jA(e,t){if(t.has(e))return!0;t.add(e);for(let r of Gh(e))if(Wh(r)){if(!r.rule.ref||Ws(r.rule.ref)&&!jA(r.rule.ref,t)||zf(r.rule.ref))return!1}else if(Uh(r)||Td(r))return!1;return!!e.definition}f(jA,"oz");function kH(e){return Hk(e.type,new Set)}f(kH,"Yve");function Hk(e,t){if(t.has(e))return!0;if(t.add(e),tA(e)||uA(e))return!1;if(mA(e))return e.types.every(r=>Hk(r,t));if(Mk(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let r=e.typeRef.ref;return $k(r)?Hk(r.type,t):!1}else return!1}else return!1}f(Hk,"T5");function R2(e){if(!cl(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}f(R2,"ST");function t0(e){var t;if(Zp(e))return Ws(e)&&L2(e)?e.name:(t=R2(e))!=null?t:e.name;if(oA(e)||$k(e)||pA(e))return e.name;if(Td(e)){let r=GA(e);if(r)return r}else if(S2(e))return e.name;throw new Error("Cannot get name of Unknown Type")}f(t0,"$0");function GA(e){var t;if(e.inferredType)return e.inferredType.name;if((t=e.type)!=null&&t.ref)return t0(e.type.ref)}f(GA,"lz");function TH(e){var t,r,i;return cl(e)?(r=(t=e.type)==null?void 0:t.name)!=null?r:"string":Ws(e)&&L2(e)?e.name:(i=R2(e))!=null?i:e.name}f(TH,"jve");function UA(e){var t,r,i;return cl(e)?(r=(t=e.type)==null?void 0:t.name)!=null?r:"string":(i=R2(e))!=null?i:e.name}f(UA,"cz");function I2(e){let t={s:!1,i:!1,u:!1},r=r0(e.definition,t),i=Object.entries(t).filter(([,n])=>n).map(([n])=>n).join("");return new RegExp(r,i)}f(I2,"ET");function r0(e,t){var r;if(gA(e))return wH(e);if(fA(e))return CH(e);if(iA(e))return _H(e);if(Ok(e)){let i=e.rule.ref;if(!i)throw new Error("Missing rule reference.");return Bc(r0(i.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else{if(lA(e))return SH(e);if(yA(e))return EH(e);if(dA(e)){let i=e.regex.lastIndexOf("/"),n=e.regex.substring(1,i),a=e.regex.substring(i+1);return t&&(t.i=a.includes("i"),t.s=a.includes("s"),t.u=a.includes("u")),Bc(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else{if(vA(e))return Bc(T9,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e==null?void 0:e.$type}, ${(r=e==null?void 0:e.$cstNode)==null?void 0:r.text}`)}}}f(r0,"X0");function wH(e){return Bc(e.elements.map(t=>r0(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}f(wH,"Xve");function CH(e){return Bc(e.elements.map(t=>r0(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}f(CH,"Kve");function EH(e){return Bc(`${T9}*?${r0(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}f(EH,"Zve");function SH(e){return Bc(`(?!${r0(e.terminal)})${T9}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}f(SH,"Qve");function _H(e){return e.right?Bc(`[${Yk(e.left)}-${Yk(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Bc(Yk(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}f(_H,"Jve");function Yk(e){return Uf(e.value)}f(Yk,"VE");function Bc(e,t){var r;return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${(r=t.lookahead)!=null?r:t.parenthesized?"":"?:"}${e})`),t.cardinality?`${e}${t.cardinality}`:e}f(Bc,"Jc");function VA(e){let t=[],r=e.Grammar;for(let i of r.rules)cl(i)&&$A(i)&&LA(I2(i))&&t.push(i.name);return{multilineCommentRules:t,nameRegexp:b9}}f(VA,"hz");function AH(e){var t=DGe.call(e,hv),r=e[hv];try{e[hv]=void 0;var i=!0}catch(a){}var n=NGe.call(e);return i&&(t?e[hv]=r:delete e[hv]),n}f(AH,"rxe");function LH(e){return $Ge.call(e)}f(LH,"ixe");function RH(e){return e==null?e===void 0?FGe:PGe:Pre&&Pre in Object(e)?MGe(e):BGe(e)}f(RH,"nxe");function IH(e){return e!=null&&typeof e=="object"}f(IH,"axe");function DH(e){return typeof e=="symbol"||Ul(e)&&Nd(e)==zGe}f(DH,"sxe");function NH(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}f(NH,"oxe");function WA(e){if(typeof e=="string")return e;if($i(e))return uv(e,WA)+"";if(e5(e))return zre?zre.call(e):"";var t=e+"";return t=="0"&&1/e==-jGe?"-0":t}f(WA,"dz");function MH(e){for(var t=e.length;t--&&UGe.test(e.charAt(t)););return t}f(MH,"lxe");function OH(e){return e&&e.slice(0,VGe(e)+1).replace(WGe,"")}f(OH,"cxe");function $H(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}f($H,"uxe");function BH(e){if(typeof e=="number")return e;if(e5(e))return qre;if(ul(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ul(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=HGe(e);var r=XGe.test(e);return r||KGe.test(e)?ZGe(e.slice(2),r?2:8):YGe.test(e)?qre:+e}f(BH,"hxe");function PH(e){if(!e)return e===0?e:0;if(e=QGe(e),e===jre||e===-jre){var t=e<0?-1:1;return t*JGe}return e===e?e:0}f(PH,"dxe");function FH(e){var t=eUe(e),r=t%1;return t===t?r?t-r:t:0}f(FH,"fxe");function zH(e){return e}f(zH,"pxe");function qH(e){if(!ul(e))return!1;var t=Nd(e);return t==rUe||t==iUe||t==tUe||t==nUe}f(qH,"mxe");function jH(e){return!!Gre&&Gre in e}f(jH,"gxe");function GH(e){if(e!=null){try{return lUe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}f(GH,"yxe");function UH(e){if(!ul(e)||sUe(e))return!1;var t=Jh(e)?fUe:hUe;return t.test(L0(e))}f(UH,"vxe");function VH(e,t){return e==null?void 0:e[t]}f(VH,"xxe");function WH(e,t){var r=yUe(e,t);return mUe(r)?r:void 0}f(WH,"bxe");function HH(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}f(HH,"Txe");function YH(){}f(YH,"Cxe");function XH(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}f(XH,"kxe");function KH(e){var t=0,r=0;return function(){var i=EUe(),n=CUe-(i-r);if(r=i,n>0){if(++t>=wUe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}f(KH,"wxe");function ZH(e){return function(){return e}}f(ZH,"Sxe");function QH(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}f(QH,"Exe");function JH(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++a<n;)if(t(e[a],a,e))return a;return-1}f(JH,"_xe");function eY(e){return e!==e}f(eY,"Rxe");function tY(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}f(tY,"Lxe");function rY(e,t,r){return t===t?MUe(e,t,r):Wre(e,NUe,r)}f(rY,"Mxe");function iY(e,t){var r=e==null?0:e.length;return!!r&&E9(e,t,0)>-1}f(iY,"Nxe");function nY(e,t){var r=typeof e;return t=t!=null?t:OUe,!!t&&(r=="number"||r!="symbol"&&$Ue.test(e))&&e>-1&&e%1==0&&e<t}f(nY,"Oxe");function aY(e,t,r){t=="__proto__"&&t5?t5(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}f(aY,"Pxe");function sY(e,t){return e===t||e!==e&&t!==t}f(sY,"Bxe");function oY(e,t,r){var i=e[t];(!(PUe.call(e,t)&&pv(i,r))||r===void 0&&!(t in e))&&S9(e,t,r)}f(oY,"Fxe");function lY(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var l=t[a],h=i?i(r[l],e[l],l,r,e):void 0;h===void 0&&(h=e[l]),n?S9(r,l,h):i5(r,l,h)}return r}f(lY,"$xe");function cY(e,t,r){return t=Yre(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=Yre(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=i[n];return l[t]=r(o),kUe(e,this,l)}}f(cY,"zxe");function hY(e,t){return DUe(FUe(e,t,h1),e+"")}f(hY,"Gxe");function uY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zUe}f(uY,"Vxe");function dY(e){return e!=null&&A9(e.length)&&!Jh(e)}f(dY,"Wxe");function pY(e,t,r){if(!ul(r))return!1;var i=typeof t;return(i=="number"?qc(r)&&r5(t,r.length):i=="string"&&t in r)?pv(r[t],e):!1}f(pY,"qxe");function gY(e){return _9(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,o&&n5(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var l=r[i];l&&e(t,l,i,a)}return t})}f(gY,"Uxe");function fY(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||jUe;return e===r}f(fY,"Hxe");function mY(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}f(mY,"Yxe");function yY(e){return Ul(e)&&Nd(e)==UUe}f(yY,"jxe");function vY(){return!1}f(vY,"Kxe");function bY(e){return Ul(e)&&A9(e.length)&&!!An[Nd(e)]}f(bY,"Qxe");function xY(e){return function(t){return e(t)}}f(xY,"Jxe");function kY(e,t){var r=$i(e),i=!r&&a5(e),n=!r&&!i&&mv(e),a=!r&&!i&&!n&&R9(e),o=r||i||n||a,l=o?GUe(e.length,String):[],h=l.length;for(var u in e)(t||_Ve.call(e,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||r5(u,h)))&&l.push(u);return l}f(kY,"tbe");function TY(e,t){return function(r){return e(t(r))}}f(TY,"ibe");function wY(e){if(!fv(e))return LVe(e);var t=[];for(var r in Object(e))IVe.call(e,r)&&r!="constructor"&&t.push(r);return t}f(wY,"abe");function CY(e){return qc(e)?rie(e):nie(e)}f(CY,"obe");function EY(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}f(EY,"lbe");function SY(e){if(!ul(e))return OVe(e);var t=fv(e),r=[];for(var i in e)i=="constructor"&&(t||!BVe.call(e,i))||r.push(i);return r}f(SY,"cbe");function _Y(e){return qc(e)?rie(e,!0):PVe(e)}f(_Y,"ube");function AY(e,t){if($i(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||e5(e)?!0:zVe.test(e)||!FVe.test(e)||t!=null&&e in Object(t)}f(AY,"hbe");function LY(){this.__data__=bv?bv(null):{},this.size=0}f(LY,"dbe");function RY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}f(RY,"fbe");function IY(e){var t=this.__data__;if(bv){var r=t[e];return r===UVe?void 0:r}return WVe.call(t,e)?t[e]:void 0}f(IY,"pbe");function DY(e){var t=this.__data__;return bv?t[e]!==void 0:XVe.call(t,e)}f(DY,"mbe");function NY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=bv&&t===void 0?ZVe:t,this}f(NY,"gbe");function i0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(i0,"Q0");function MY(){this.__data__=[],this.size=0}f(MY,"ybe");function OY(e,t){for(var r=e.length;r--;)if(pv(e[r][0],t))return r;return-1}f(OY,"vbe");function $Y(e){var t=this.__data__,r=o5(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():tWe.call(t,r,1),--this.size,!0}f($Y,"xbe");function BY(e){var t=this.__data__,r=o5(t,e);return r<0?void 0:t[r][1]}f(BY,"bbe");function PY(e){return o5(this.__data__,e)>-1}f(PY,"Tbe");function FY(e,t){var r=this.__data__,i=o5(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}f(FY,"Cbe");function n0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(n0,"J0");function zY(){this.size=0,this.__data__={hash:new aie,map:new(xv||l5),string:new aie}}f(zY,"kbe");function qY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}f(qY,"wbe");function jY(e,t){var r=e.__data__;return lWe(t)?r[typeof t=="string"?"string":"hash"]:r.map}f(jY,"Sbe");function GY(e){var t=c5(this,e).delete(e);return this.size-=t?1:0,t}f(GY,"Ebe");function UY(e){return c5(this,e).get(e)}f(UY,"Abe");function VY(e){return c5(this,e).has(e)}f(VY,"_be");function WY(e,t){var r=c5(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}f(WY,"Dbe");function a0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(a0,"em");function Xk(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pWe);var r=N(function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o},"memoized");return r.cache=new(Xk.Cache||h5),r}f(Xk,"vA");function HY(e){var t=gWe(e,function(i){return r.size===fWe&&r.clear(),i}),r=t.cache;return t}f(HY,"Rbe");function YY(e){return e==null?"":GGe(e)}f(YY,"Lbe");function XY(e,t){return $i(e)?e:I9(e,t)?[e]:xWe(kWe(e))}f(XY,"Mbe");function KY(e){if(typeof e=="string"||e5(e))return e;var t=e+"";return t=="0"&&1/e==-TWe?"-0":t}f(KY,"Nbe");function ZY(e,t){t=u5(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[kv(t[r++])];return r&&r==i?e:void 0}f(ZY,"Ibe");function QY(e,t,r){var i=e==null?void 0:D9(e,t);return i===void 0?r:i}f(QY,"Obe");function JY(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}f(JY,"Pbe");function eX(e){return $i(e)||a5(e)||!!(sie&&e&&e[sie])}f(eX,"Bbe");function HA(e,t,r,i,n){var a=-1,o=e.length;for(r||(r=CWe),n||(n=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?HA(l,t-1,r,i,n):N9(n,l):i||(n[n.length]=l)}return n}f(HA,"Tz");function tX(e){var t=e==null?0:e.length;return t?M9(e,1):[]}f(tX,"Fbe");function rX(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(n);++i<n;)a[i]=e[i+t];return a}f(rX,"zbe");function iX(e,t,r,i){var n=-1,a=e==null?0:e.length;for(i&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r}f(iX,"Vbe");function nX(){this.__data__=new l5,this.size=0}f(nX,"Wbe");function aX(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}f(aX,"qbe");function sX(e){return this.__data__.get(e)}f(sX,"Ube");function oX(e){return this.__data__.has(e)}f(oX,"Hbe");function lX(e,t){var r=this.__data__;if(r instanceof l5){var i=r.__data__;if(!xv||i.length<IWe-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new h5(i)}return r.set(e,t),this.size=r.size,this}f(lX,"Ybe");function s0(e){var t=this.__data__=new l5(e);this.size=t.size}f(s0,"tm");function cX(e,t){return e&&gv(t,zo(t),e)}f(cX,"jbe");function hX(e,t){return e&&gv(t,s5(t),e)}f(hX,"Xbe");function uX(e,t){if(t)return e.slice();var r=e.length,i=die?die(r):new e.constructor(r);return e.copy(i),i}f(uX,"Zbe");function dX(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[n++]=o)}return a}f(dX,"Qbe");function pX(){return[]}f(pX,"Jbe");function gX(e,t){return gv(e,$9(e),t)}f(gX,"t2e");function fX(e,t){return gv(e,fie(e),t)}f(fX,"i2e");function mX(e,t,r){var i=t(e);return $i(e)?i:N9(i,r(e))}f(mX,"n2e");function yX(e){return mie(e,zo,$9)}f(yX,"s2e");function vX(e){return mie(e,s5,fie)}f(vX,"o2e");function bX(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&eHe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}f(bX,"c2e");function xX(e){var t=new e.constructor(e.byteLength);return new d5(t).set(new d5(e)),t}f(xX,"u2e");function kX(e,t){var r=t?z9(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}f(kX,"h2e");function TX(e){var t=new e.constructor(e.source,nHe.exec(e));return t.lastIndex=e.lastIndex,t}f(TX,"d2e");function wX(e){return Cie?Object(Cie.call(e)):{}}f(wX,"f2e");function CX(e,t){var r=t?z9(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}f(CX,"p2e");function EX(e,t,r){var i=e.constructor;switch(t){case mHe:return z9(e);case lHe:case cHe:return new i(+e);case yHe:return iHe(e,r);case vHe:case bHe:case xHe:case kHe:case THe:case wHe:case CHe:case EHe:case SHe:return oHe(e,r);case hHe:return new i;case uHe:case gHe:return new i(e);case dHe:return aHe(e);case pHe:return new i;case fHe:return sHe(e)}}f(EX,"m2e");function SX(e){return typeof e.constructor=="function"&&!fv(e)?xUe(oie(e)):{}}f(SX,"g2e");function _X(e){return Ul(e)&&d1(e)==LHe}f(_X,"y2e");function AX(e){return Ul(e)&&d1(e)==NHe}f(AX,"v2e");function D2(e,t,r,i,n,a){var o,l=t&BHe,h=t&PHe,u=t&FHe;if(r&&(o=n?r(e,i,n,a):r(e)),o!==void 0)return o;if(!ul(e))return e;var d=$i(e);if(d){if(o=tHe(e),!l)return TUe(e,o)}else{var p=d1(e),g=p==Aie||p==UHe;if(mv(e))return $We(e,l);if(p==Lie||p==_ie||g&&!n){if(o=h||g?{}:AHe(e),!l)return h?GWe(e,MWe(o,e)):zWe(e,NWe(o,e))}else{if(!fn[p])return n?e:{};o=_He(e,p,l)}}a||(a=new Tv);var m=a.get(e);if(m)return m;a.set(e,o),$He(e)?e.forEach(function(C){o.add(D2(C,t,r,C,e,a))}):DHe(e)&&e.forEach(function(C,w){o.set(w,D2(C,t,r,w,e,a))});var y=u?h?yie:B9:h?s5:zo,x=d?void 0:y(e);return Vre(x||e,function(C,w){x&&(w=C,C=e[w]),i5(o,w,D2(C,t,r,w,e,a))}),o}f(D2,"X2");function LX(e){return cYe(e,hYe)}f(LX,"C2e");function RX(e){for(var t=-1,r=e==null?0:e.length,i=0,n=[];++t<r;){var a=e[t];a&&(n[i++]=a)}return n}f(RX,"k2e");function IX(e){return this.__data__.set(e,uYe),this}f(IX,"w2e");function DX(e){return this.__data__.has(e)}f(DX,"S2e");function N2(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new h5;++t<r;)this.add(e[t])}f(N2,"lT");function NX(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}f(NX,"E2e");function MX(e,t){return e.has(t)}f(MX,"_2e");function OX(e,t,r,i,n,a){var o=r&gYe,l=e.length,h=t.length;if(l!=h&&!(o&&h>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,g=!0,m=r&fYe?new q9:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var y=e[p],x=t[p];if(i)var C=o?i(x,y,p,t,e,a):i(y,x,p,e,t,a);if(C!==void 0){if(C)continue;g=!1;break}if(m){if(!Rie(t,function(w,_){if(!j9(m,_)&&(y===w||n(y,w,r,i,a)))return m.push(_)})){g=!1;break}}else if(!(y===x||n(y,x,r,i,a))){g=!1;break}}return a.delete(e),a.delete(t),g}f(OX,"D2e");function $X(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}f($X,"L2e");function BX(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}f(BX,"M2e");function PX(e,t,r,i,n,a,o){switch(r){case LYe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case AYe:return!(e.byteLength!=t.byteLength||!a(new d5(e),new d5(t)));case bYe:case xYe:case wYe:return pv(+e,+t);case kYe:return e.name==t.name&&e.message==t.message;case CYe:case SYe:return e==t+"";case TYe:var l=mYe;case EYe:var h=i&yYe;if(l||(l=G9),e.size!=t.size&&!h)return!1;var u=o.get(e);if(u)return u==t;i|=vYe,o.set(e,t);var d=Iie(l(e),l(t),i,n,a,o);return o.delete(e),d;case _Ye:if(U9)return U9.call(e)==U9.call(t)}return!1}f(PX,"N2e");function FX(e,t,r,i,n,a){var o=r&IYe,l=B9(e),h=l.length,u=B9(t),d=u.length;if(h!=d&&!o)return!1;for(var p=h;p--;){var g=l[p];if(!(o?g in t:NYe.call(t,g)))return!1}var m=a.get(e),y=a.get(t);if(m&&y)return m==t&&y==e;var x=!0;a.set(e,t),a.set(t,e);for(var C=o;++p<h;){g=l[p];var w=e[g],_=t[g];if(i)var S=o?i(_,w,g,t,e,a):i(w,_,g,e,t,a);if(!(S===void 0?w===_||n(w,_,r,i,a):S)){x=!1;break}C||(C=g=="constructor")}if(x&&!C){var R=e.constructor,b=t.constructor;R!=b&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof b=="function"&&b instanceof b)&&(x=!1)}return a.delete(e),a.delete(t),x}f(FX,"I2e");function zX(e,t,r,i,n,a){var o=$i(e),l=$i(t),h=o?Mie:d1(e),u=l?Mie:d1(t);h=h==Nie?p5:h,u=u==Nie?p5:u;var d=h==p5,p=u==p5,g=h==u;if(g&&mv(e)){if(!mv(t))return!1;o=!0,d=!1}if(g&&!d)return a||(a=new Tv),o||R9(e)?Iie(e,t,r,i,n,a):RYe(e,t,h,r,i,n,a);if(!(r&OYe)){var m=d&&Oie.call(e,"__wrapped__"),y=p&&Oie.call(t,"__wrapped__");if(m||y){var x=m?e.value():e,C=y?t.value():t;return a||(a=new Tv),n(x,C,r,i,a)}}return g?(a||(a=new Tv),MYe(e,t,r,i,n,a)):!1}f(zX,"O2e");function YA(e,t,r,i,n){return e===t?!0:e==null||t==null||!Ul(e)&&!Ul(t)?e!==e&&t!==t:BYe(e,t,r,i,YA,n)}f(YA,"Dz");function qX(e,t,r,i){var n=r.length,a=n,o=!i;if(e==null)return!a;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<a;){l=r[n];var h=l[0],u=e[h],d=l[1];if(o&&l[2]){if(u===void 0&&!(h in e))return!1}else{var p=new Tv;if(i)var g=i(u,d,h,e,t,p);if(!(g===void 0?$ie(d,u,PYe|FYe,i,p):g))return!1}}return!0}f(qX,"B2e");function jX(e){return e===e&&!ul(e)}f(jX,"F2e");function GX(e){for(var t=zo(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,Bie(n)]}return t}f(GX,"z2e");function UX(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}f(UX,"G2e");function VX(e){var t=qYe(e);return t.length==1&&t[0][2]?Pie(t[0][0],t[0][1]):function(r){return r===e||zYe(r,e,t)}}f(VX,"W2e");function WX(e,t){return e!=null&&t in Object(e)}f(WX,"q2e");function HX(e,t,r){t=u5(t,e);for(var i=-1,n=t.length,a=!1;++i<n;){var o=kv(t[i]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++i!=n?a:(n=e==null?0:e.length,!!n&&A9(n)&&r5(o,n)&&($i(e)||a5(e)))}f(HX,"U2e");function YX(e,t){return e!=null&&Fie(e,t,GYe)}f(YX,"Y2e");function XX(e,t){return I9(e)&&Bie(t)?Pie(kv(e),t):function(r){var i=wWe(r,e);return i===void 0&&i===t?UYe(r,e):$ie(t,i,VYe|WYe)}}f(XX,"j2e");function KX(e){return function(t){return t==null?void 0:t[e]}}f(KX,"X2e");function ZX(e){return function(t){return D9(t,e)}}f(ZX,"K2e");function QX(e){return I9(e)?YYe(kv(e)):XYe(e)}f(QX,"Z2e");function JX(e){return typeof e=="function"?e:e==null?h1:typeof e=="object"?$i(e)?HYe(e[0],e[1]):jYe(e):KYe(e)}f(JX,"Q2e");function eK(e,t,r,i){for(var n=-1,a=e==null?0:e.length;++n<a;){var o=e[n];t(i,o,r(o),e)}return i}f(eK,"J2e");function tK(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),l=o.length;l--;){var h=o[e?l:++n];if(r(a[h],h,a)===!1)break}return t}}f(tK,"eTe");function rK(e,t){return e&&eXe(e,t,zo)}f(rK,"tTe");function iK(e,t){return function(r,i){if(r==null)return r;if(!qc(r))return e(r,i);for(var n=r.length,a=t?n:-1,o=Object(r);(t?a--:++a<n)&&i(o[a],a,o)!==!1;);return r}}f(iK,"rTe");function nK(e,t,r,i){return D0(e,function(n,a,o){t(i,n,r(n),o)}),i}f(nK,"iTe");function aK(e,t){return function(r,i){var n=$i(r)?ZYe:nXe,a=t?t():{};return n(r,e,jc(i,2),a)}}f(aK,"nTe");function sK(e){return Ul(e)&&qc(e)}f(sK,"sTe");function oK(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}f(oK,"oTe");function lK(e,t,r,i){var n=-1,a=Hre,o=!0,l=e.length,h=[],u=t.length;if(!l)return h;r&&(t=uv(t,yv(r))),i?(a=jie,o=!1):t.length>=lXe&&(a=j9,o=!1,t=new q9(t));e:for(;++n<l;){var d=e[n],p=r==null?d:r(d);if(d=i||d!==0?d:0,o&&p===p){for(var g=u;g--;)if(t[g]===p)continue e;h.push(d)}else a(t,p,i)||h.push(d)}return h}f(lK,"cTe");function cK(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}f(cK,"uTe");function hK(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===void 0?1:dv(t),lie(e,t<0?0:t,i)):[]}f(hK,"hTe");function uK(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===void 0?1:dv(t),t=i-t,lie(e,0,t<0?0:t)):[]}f(uK,"dTe");function dK(e){return typeof e=="function"?e:h1}f(dK,"fTe");function pK(e,t){var r=$i(e)?Vre:D0;return r(e,uXe(t))}f(pK,"pTe");function gK(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}f(gK,"mTe");function fK(e,t){var r=!0;return D0(e,function(i,n,a){return r=!!t(i,n,a),r}),r}f(fK,"gTe");function mK(e,t,r){var i=$i(e)?dXe:pXe;return r&&n5(e,t,r)&&(t=void 0),i(e,jc(t,3))}f(mK,"yTe");function yK(e,t){var r=[];return D0(e,function(i,n,a){t(i,n,a)&&r.push(i)}),r}f(yK,"vTe");function vK(e,t){var r=$i(e)?O9:Gie;return r(e,jc(t,3))}f(vK,"bTe");function bK(e){return function(t,r,i){var n=Object(t);if(!qc(t)){var a=jc(r,3);t=zo(t),r=N(function(l){return a(n[l],l,n)},"predicate")}var o=e(t,r,i);return o>-1?n[a?t[o]:o]:void 0}}f(bK,"TTe");function xK(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:dv(r);return n<0&&(n=fXe(i+n,0)),Wre(e,jc(t,3),n)}f(xK,"CTe");function kK(e){return e&&e.length?e[0]:void 0}f(kK,"kTe");function TK(e,t){var r=-1,i=qc(e)?Array(e.length):[];return D0(e,function(n,a,o){i[++r]=t(n,a,o)}),i}f(TK,"wTe");function wK(e,t){var r=$i(e)?uv:vXe;return r(e,jc(t,3))}f(wK,"STe");function CK(e,t){return M9(Dr(e,t),1)}f(CK,"ETe");function EK(e,t){return e!=null&&CXe.call(e,t)}f(EK,"ATe");function SK(e,t){return e!=null&&Fie(e,t,EXe)}f(SK,"_Te");function _K(e){return typeof e=="string"||!$i(e)&&Ul(e)&&Nd(e)==SXe}f(_K,"DTe");function AK(e,t){return uv(t,function(r){return e[r]})}f(AK,"RTe");function LK(e){return e==null?[]:_Xe(e,zo(e))}f(LK,"LTe");function RK(e,t,r,i){e=qc(e)?e:Ga(e),r=r&&!i?dv(r):0;var n=e.length;return r<0&&(r=AXe(n+r,0)),mo(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&E9(e,t,r)>-1}f(RK,"MTe");function IK(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:dv(r);return n<0&&(n=LXe(i+n,0)),E9(e,t,n)}f(IK,"NTe");function DK(e){if(e==null)return!0;if(qc(e)&&($i(e)||typeof e=="string"||typeof e.splice=="function"||mv(e)||R9(e)||a5(e)))return!e.length;var t=d1(e);if(t==RXe||t==IXe)return!e.size;if(fv(e))return!nie(e).length;for(var r in e)if(NXe.call(e,r))return!1;return!0}f(DK,"ITe");function NK(e){return Ul(e)&&Nd(e)==MXe}f(NK,"OTe");function MK(e){return e===void 0}f(MK,"PTe");function OK(e){if(typeof e!="function")throw new TypeError(BXe);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}f(OK,"BTe");function $K(e,t,r,i){if(!ul(e))return e;t=u5(t,e);for(var n=-1,a=t.length,o=a-1,l=e;l!=null&&++n<a;){var h=kv(t[n]),u=r;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(n!=o){var d=l[h];u=i?i(d,h,l):void 0,u===void 0&&(u=ul(d)?d:r5(t[n+1])?[]:{})}i5(l,h,u),l=l[h]}return e}f($K,"FTe");function BK(e,t,r){for(var i=-1,n=t.length,a={};++i<n;){var o=t[i],l=D9(e,o);r(l,o)&&FXe(a,u5(o,e),l)}return a}f(BK,"$Te");function PK(e,t){if(e==null)return{};var r=uv(yie(e),function(i){return[i]});return t=jc(t),zXe(e,r,function(i,n){return t(i,n[0])})}f(PK,"zTe");function FK(e,t,r,i,n){return n(e,function(a,o,l){r=i?(i=!1,a):t(r,a,o,l)}),r}f(FK,"GTe");function zK(e,t,r){var i=$i(e)?SWe:qXe,n=arguments.length<3;return i(e,jc(t,4),r,n,D0)}f(zK,"VTe");function qK(e,t){var r=$i(e)?O9:Gie;return r(e,PXe(jc(t,3)))}f(qK,"WTe");function jK(e,t){var r;return D0(e,function(i,n,a){return r=t(i,n,a),!r}),!!r}f(jK,"qTe");function GK(e,t,r){var i=$i(e)?Rie:jXe;return r&&n5(e,t,r)&&(t=void 0),i(e,jc(t,3))}f(GK,"UTe");function UK(e,t,r){var i=-1,n=Hre,a=e.length,o=!0,l=[],h=l;if(r)o=!1,n=jie;else if(a>=WXe){var u=t?null:VXe(e);if(u)return G9(u);o=!1,n=j9,h=new q9}else h=t?[]:l;e:for(;++i<a;){var d=e[i],p=t?t(d):d;if(d=r||d!==0?d:0,o&&p===p){for(var g=h.length;g--;)if(h[g]===p)continue e;t&&h.push(p),l.push(d)}else n(h,p,r)||(h!==l&&h.push(p),l.push(d))}return l}f(UK,"YTe");function VK(e){return e&&e.length?HXe(e):[]}f(VK,"jTe");function Kk(e){console&&console.error&&console.error(`Error: ${e}`)}f(Kk,"w5");function XA(e){console&&console.warn&&console.warn(`Warning: ${e}`)}f(XA,"Mz");function KA(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}f(KA,"Nz");function ZA(e){function t(){}f(t,"t"),s(t,"FakeConstructor"),N(t,"FakeConstructor"),t.prototype=e;let r=new t;function i(){return typeof r.bar}return f(i,"i"),s(i,"fakeAccess"),N(i,"fakeAccess"),i(),i(),e;(0,eval)(e)}f(ZA,"Iz");function WK(e){return HK(e)?e.LABEL:e.name}f(WK,"XTe");function HK(e){return mo(e.LABEL)&&e.LABEL!==""}f(HK,"KTe");function YK(e){return Dr(e,M2)}f(YK,"ZTe");function M2(e){function t(r){return Dr(r,M2)}if(f(t,"t"),s(t,"convertDefinition"),N(t,"convertDefinition"),e instanceof Xs){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return mo(e.label)&&(r.label=e.label),r}else{if(e instanceof yo)return{type:"Alternative",definition:t(e.definition)};if(e instanceof us)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Go)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Uo)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:M2(new Ln({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof vo)return{type:"RepetitionWithSeparator",idx:e.idx,separator:M2(new Ln({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof ra)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof bo)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln){let r={type:"Terminal",name:e.terminalType.name,label:WK(e.terminalType),idx:e.idx};mo(e.label)&&(r.terminalLabel=e.label);let i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=eu(i)?i.source:i),r}else{if(e instanceof g1)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}f(M2,"K2");function XK(e){return e instanceof yo||e instanceof us||e instanceof ra||e instanceof Go||e instanceof Uo||e instanceof vo||e instanceof Ln||e instanceof g1}f(XK,"QTe");function O2(e,t=[]){return e instanceof us||e instanceof ra||e instanceof vo?!0:e instanceof bo?Wie(e.definition,r=>O2(r,t)):e instanceof Xs&&Ys(t,e)?!1:e instanceof Gc?(e instanceof Xs&&t.push(e),Wl(e.definition,r=>O2(r,t))):!1}f(O2,"uT");function KK(e){return e instanceof bo}f(KK,"JTe");function ql(e){if(e instanceof Xs)return"SUBRULE";if(e instanceof us)return"OPTION";if(e instanceof bo)return"OR";if(e instanceof Go)return"AT_LEAST_ONE";if(e instanceof Uo)return"AT_LEAST_ONE_SEP";if(e instanceof vo)return"MANY_SEP";if(e instanceof ra)return"MANY";if(e instanceof Ln)return"CONSUME";throw Error("non exhaustive match")}f(ql,"Gl");function QA(e,t,r){return[new us({definition:[new Ln({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}f(QA,"bF");function Vf(e){if(e instanceof Xs)return Vf(e.referencedRule);if(e instanceof Ln)return JK(e);if(XK(e))return ZK(e);if(KK(e))return QK(e);throw Error("non exhaustive match")}f(Vf,"cy");function ZK(e){let t=[],r=e.definition,i=0,n=r.length>i,a,o=!0;for(;n&&o;)a=r[i],o=O2(a),t=t.concat(Vf(a)),i=i+1,n=r.length>i;return W9(t)}f(ZK,"eCe");function QK(e){let t=Dr(e.definition,r=>Vf(r));return W9(Vl(t))}f(QK,"tCe");function JK(e){return[e.terminalType]}f(JK,"rCe");function eZ(e){let t={};return Xr(e,r=>{let i=new YXe(r).startWalking();qo(t,i)}),t}f(eZ,"nCe");function tZ(e,t){return e.name+t+Hie}f(tZ,"aCe");function $2(e){let t=e.toString();if(y5.hasOwnProperty(t))return y5[t];{let r=XXe.pattern(t);return y5[t]=r,r}}f($2,"OT");function rZ(){y5={}}f(rZ,"sCe");function iZ(e,t=!1){try{let r=$2(e);return Zk(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===Yie)t&&XA(`${v5} Unable to optimize: < ${e.toString()} > 1146 Complement Sets cannot be automatically optimized. 1147 This will disable the lexer's first char optimizations. 1148 See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let i="";t&&(i=` 1149 This will disable the lexer's first char optimizations. 1150 See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Kk(`${v5} 1151 Failed parsing: < ${e.toString()} > 1152 Using the @chevrotain/regexp-to-ast library 1153 Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+i)}}return[]}f(iZ,"lCe");function Zk(e,t,r){switch(e.type){case"Disjunction":for(let n=0;n<e.value.length;n++)Zk(e.value[n],t,r);break;case"Alternative":let i=e.value;for(let n=0;n<i.length;n++){let a=i[n];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let o=a;switch(o.type){case"Character":B2(o.value,t,r);break;case"Set":if(o.complement===!0)throw Error(Yie);Xr(o.value,h=>{if(typeof h=="number")B2(h,t,r);else{let u=h;if(r===!0)for(let d=u.from;d<=u.to;d++)B2(d,t,r);else{for(let d=u.from;d<=u.to&&d<Sv;d++)B2(d,t,r);if(u.to>=Sv){let d=u.from>=Sv?u.from:Sv,p=u.to,g=Hh(d),m=Hh(p);for(let y=g;y<=m;y++)t[y]=y}}}});break;case"Group":Zk(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}let l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&Qk(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Ga(t)}f(Zk,"E5");function B2(e,t,r){let i=Hh(e);t[i]=i,r===!0&&nZ(e,t)}f(B2,"O2");function nZ(e,t){let r=String.fromCharCode(e),i=r.toUpperCase();if(i!==r){let n=Hh(i.charCodeAt(0));t[n]=n}else{let n=r.toLowerCase();if(n!==r){let a=Hh(n.charCodeAt(0));t[a]=a}}}f(nZ,"cCe");function JA(e,t){return p1(e.value,r=>{if(typeof r=="number")return Ys(t,r);{let i=r;return p1(t,n=>i.from<=n&&n<=i.to)!==void 0}})}f(JA,"TF");function Qk(e){let t=e.quantifier;
vendor: 2,031 bytes, lines 1153-1154
1153return t&&t.atLeast===0?!0:e.value?$i(e.value)?Wl(e.value,Qk):Qk(e.value):!1}f(Qk,"A5");function Jk(e,t){if(t instanceof RegExp){let r=$2(t),i=new KXe(e);return i.visit(r),i.found}else return p1(t,r=>Ys(e,r.charCodeAt(0)))!==void 0}f(Jk,"kA");function aZ(e,t){t=V9(t,{useSticky:Xie,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` 1154`],tracer:N((_,S)=>S(),"tracer")});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{SZ()});let i;r("Reject Lexer.NA",()=>{i=f5(e,_=>_[M0]===Ks.NA)});let n=!1,a;r("Transform Patterns",()=>{n=!1,a=Dr(i,_=>{let S=_[M0];if(eu(S)){let R=S.source;return R.length===1&&R!=="^"&&R!=="$"&&R!=="."&&!S.ignoreCase?R:R.length===2&&R[0]==="\\"&&!Ys(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],R[1])?R[1]:t.useSticky?t8(S):e8(S)}else{if(Jh(S))return n=!0,{exec:S};if(typeof S=="object")return n=!0,S;if(typeof S=="string"){if(S.length===1)return S;{let R=S.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),b=new RegExp(R);return t.useSticky?t8(b):e8(b)}}else throw Error("non exhaustive match")}})});let o,l,h,u,d;r("misc mapping",()=>{o=Dr(i,_=>_.tokenTypeIdx),l=Dr(i,_=>{let S=_.GROUP;if(S!==Ks.SKIPPED){if(mo(S))return S;if(tu(S))return!1;throw Error("non exhaustive match")}}),h=Dr(i,_=>{let S=_.LONGER_ALT;if(S)return $i(S)?Dr(S,R=>Uie(i,R)):[Uie(i,S)]}),u=Dr(i,_=>_.PUSH_MODE),d=Dr(i,_=>Ur(_,"POP_MODE"))});let p;r("Line Terminator Handling",()=>{let _=n8(t.lineTerminatorCharacters);p=Dr(i,S=>!1),t.positionTracking!=="onlyOffset"&&(p=Dr(i,S=>Ur(S,"LINE_BREAKS")?!!S.LINE_BREAKS:i8(S,_)===!1&&Jk(_,S.PATTERN)))});let g,m,y,x;r("Misc Mapping #2",()=>{g=Dr(i,r8),m=Dr(a,CZ),y=jo(i,(_,S)=>{let R=S.GROUP;return mo(R)&&R!==Ks.SKIPPED&&(_[R]=[]),_},{}),x=Dr(a,(_,S)=>({pattern:a[S],longerAlt:h[S],canLineTerminator:p[S],isCustom:g[S],short:m[S],group:l[S],push:u[S],pop:d[S],tokenTypeIdx:o[S],tokenType:i[S]}))});let C=!0,w=[];return t.safeMode||r("First Char Optimization",()=>{w=jo(i,(_,S,R)=>{if(typeof S.PATTERN=="string"){let b=S.PATTERN.charCodeAt(0),v=Hh(b);
vendor: 12,414 bytes, lines 1154-1180
1154eT(_,v,x[R])}else if($i(S.START_CHARS_HINT)){let b;Xr(S.START_CHARS_HINT,v=>{let k=typeof v=="string"?v.charCodeAt(0):v,E=Hh(k);b!==E&&(b=E,eT(_,E,x[R]))})}else if(eu(S.PATTERN))if(S.PATTERN.unicode)C=!1,t.ensureOptimizations&&Kk(`${v5} Unable to analyze < ${S.PATTERN.toString()} > pattern. 1155 The regexp unicode flag is not currently supported by the regexp-to-ast library. 1156 This will disable the lexer's first char optimizations. 1157 For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let b=iZ(S.PATTERN,t.ensureOptimizations);mn(b)&&(C=!1),Xr(b,v=>{eT(_,v,x[R])})}else t.ensureOptimizations&&Kk(`${v5} TokenType: <${S.name}> is using a custom token pattern without providing <start_chars_hint> parameter. 1158 This will disable the lexer's first char optimizations. 1159 For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),C=!1;return _},[])}),{emptyGroups:y,patternIdxToConfig:x,charCodeToPatternIdxToConfig:w,hasCustom:n,canBeOptimized:C}}f(aZ,"hCe");function sZ(e,t){let r=[],i=lZ(e);r=r.concat(i.errors);let n=cZ(i.valid),a=n.valid;return r=r.concat(n.errors),r=r.concat(oZ(a)),r=r.concat(fZ(a)),r=r.concat(mZ(a,t)),r=r.concat(yZ(a)),r}f(sZ,"dCe");function oZ(e){let t=[],r=dl(e,i=>eu(i[M0]));return t=t.concat(hZ(r)),t=t.concat(dZ(r)),t=t.concat(pZ(r)),t=t.concat(gZ(r)),t=t.concat(uZ(r)),t}f(oZ,"fCe");function lZ(e){let t=dl(e,n=>!Ur(n,M0)),r=Dr(t,n=>({message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:ma.MISSING_PATTERN,tokenTypes:[n]})),i=g5(e,t);return{errors:r,valid:i}}f(lZ,"pCe");function cZ(e){let t=dl(e,n=>{let a=n[M0];return!eu(a)&&!Jh(a)&&!Ur(a,"exec")&&!mo(a)}),r=Dr(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ma.INVALID_PATTERN,tokenTypes:[n]})),i=g5(e,t);return{errors:r,valid:i}}f(cZ,"mCe");function hZ(e){let i=class i extends JT{constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}};f(i,"t"),s(i,"EndAnchorFinder"),N(i,"EndAnchorFinder");let t=i,r=dl(e,n=>{let a=n.PATTERN;try{let o=$2(a),l=new t;return l.visit(o),l.found}catch(o){return ZXe.test(a.source)}});return Dr(r,n=>({message:`Unexpected RegExp Anchor Error: 1160 Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain end of input anchor '$' 1161 See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ma.EOI_ANCHOR_FOUND,tokenTypes:[n]}))}f(hZ,"gCe");function uZ(e){let t=dl(e,r=>r.PATTERN.test(""));return Dr(t,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' must not match an empty string",type:ma.EMPTY_MATCH_PATTERN,tokenTypes:[r]}))}f(uZ,"yCe");function dZ(e){let i=class i extends JT{constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}};f(i,"t"),s(i,"StartAnchorFinder"),N(i,"StartAnchorFinder");let t=i,r=dl(e,n=>{let a=n.PATTERN;try{let o=$2(a),l=new t;return l.visit(o),l.found}catch(o){return QXe.test(a.source)}});return Dr(r,n=>({message:`Unexpected RegExp Anchor Error: 1162 Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain start of input anchor '^' 1163 See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ma.SOI_ANCHOR_FOUND,tokenTypes:[n]}))}f(dZ,"vCe");function pZ(e){let t=dl(e,r=>{let i=r[M0];return i instanceof RegExp&&(i.multiline||i.global)});return Dr(t,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ma.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[r]}))}f(pZ,"xCe");function gZ(e){let t=[],r=Dr(e,n=>jo(e,(a,o)=>(n.PATTERN.source===o.PATTERN.source&&!Ys(t,o)&&o.PATTERN!==Ks.NA&&(t.push(o),a.push(o)),a),[]));r=wv(r);let i=dl(r,n=>n.length>1);return Dr(i,n=>{let a=Dr(n,o=>o.name);return{message:`The same RegExp pattern ->${Hl(n).PATTERN}<-has been used in all of the following Token Types: ${a.join(", ")} <-`,type:ma.DUPLICATE_PATTERNS_FOUND,tokenTypes:n}})}f(gZ,"bCe");function fZ(e){let t=dl(e,r=>{if(!Ur(r,"GROUP"))return!1;let i=r.GROUP;return i!==Ks.SKIPPED&&i!==Ks.NA&&!mo(i)});return Dr(t,r=>({message:"Token Type: ->"+r.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ma.INVALID_GROUP_TYPE_FOUND,tokenTypes:[r]}))}f(fZ,"TCe");function mZ(e,t){let r=dl(e,i=>i.PUSH_MODE!==void 0&&!Ys(t,i.PUSH_MODE));return Dr(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:ma.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}f(mZ,"CCe");function yZ(e){let t=[],r=jo(e,(i,n,a)=>{let o=n.PATTERN;return o===Ks.NA||(mo(o)?i.push({str:o,idx:a,tokenType:n}):eu(o)&&bZ(o)&&i.push({str:o.source,idx:a,tokenType:n})),i},[]);return Xr(e,(i,n)=>{Xr(r,({str:a,idx:o,tokenType:l})=>{if(n<o&&vZ(a,i.PATTERN)){let h=`Token: ->${l.name}<- can never be matched. 1164Because it appears AFTER the Token Type ->${i.name}<-in the lexer's definition. 1165See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:h,type:ma.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),t}f(yZ,"kCe");function vZ(e,t){if(eu(t)){if(xZ(t))return!1;let r=t.exec(e);return r!==null&&r.index===0}else{if(Jh(t))return t(e,0,[],{});if(Ur(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}f(vZ,"wCe");function bZ(e){return p1([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>e.source.indexOf(t)!==-1)===void 0}f(bZ,"SCe");function xZ(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}f(xZ,"ECe");function e8(e){let t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}f(e8,"CF");function t8(e){let t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}f(t8,"kF");function kZ(e,t,r){let i=[];return Ur(e,Ev)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ev+`> property in its definition 1166`,type:ma.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ur(e,b5)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+b5+`> property in its definition 1167`,type:ma.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ur(e,b5)&&Ur(e,Ev)&&!Ur(e.modes,e.defaultMode)&&i.push({message:`A MultiMode Lexer cannot be initialized with a ${Ev}: <${e.defaultMode}>which does not exist 1168`,type:ma.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ur(e,b5)&&Xr(e.modes,(n,a)=>{Xr(n,(o,l)=>{if(tu(o))i.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${l}> 1169`,type:ma.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Ur(o,"LONGER_ALT")){let h=$i(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];Xr(h,u=>{!tu(u)&&!Ys(n,u)&&i.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${o.name}> outside of mode <${a}> 1170`,type:ma.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),i}f(kZ,"ACe");function TZ(e,t,r){let i=[],n=!1,a=wv(Vl(Ga(e.modes))),o=f5(a,h=>h[M0]===Ks.NA),l=n8(r);return t&&Xr(o,h=>{let u=i8(h,l);if(u!==!1){let d={message:EZ(h,u),type:u.issue,tokenType:h};i.push(d)}else Ur(h,"LINE_BREAKS")?h.LINE_BREAKS===!0&&(n=!0):Jk(l,h.PATTERN)&&(n=!0)}),t&&!n&&i.push({message:`Warning: No LINE_BREAKS Found. 1171 This Lexer has been defined to track line and column information, 1172 But none of the Token Types can be identified as matching a line terminator. 1173 See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS 1174 for details.`,type:ma.NO_LINE_BREAKS_FLAGS}),i}f(TZ,"_Ce");function wZ(e){let t={},r=zo(e);return Xr(r,i=>{let n=e[i];if($i(n))t[i]=[];else throw Error("non exhaustive match")}),t}f(wZ,"DCe");function r8(e){let t=e.PATTERN;if(eu(t))return!1;if(Jh(t)||Ur(t,"exec"))return!0;if(mo(t))return!1;throw Error("non exhaustive match")}f(r8,"Oz");function CZ(e){return mo(e)&&e.length===1?e.charCodeAt(0):!1}f(CZ,"RCe");function i8(e,t){if(Ur(e,"LINE_BREAKS"))return!1;if(eu(e.PATTERN)){try{Jk(t,e.PATTERN)}catch(r){return{issue:ma.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(mo(e.PATTERN))return!1;if(r8(e))return{issue:ma.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}f(i8,"Pz");function EZ(e,t){if(t.issue===ma.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. 1175 The problem is in the <${e.name}> Token Type 1176 Root cause: ${t.errMsg}. 1177 For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===ma.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option. 1178 The problem is in the <${e.name}> Token Type 1179 For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}f(EZ,"LCe");function n8(e){return Dr(e,t=>mo(t)?t.charCodeAt(0):t)}f(n8,"Bz");function eT(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}f(eT,"qE");function Hh(e){return e<Sv?e:x5[e]}f(Hh,"fh");function SZ(){if(mn(x5)){x5=new Array(65536);for(let e=0;e<65536;e++)x5[e]=e>255?255+~~(e/255):e}}f(SZ,"MCe");function Wf(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}f(Wf,"uy");function P2(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}f(P2,"hT");function Hf(e){let t=_Z(e);AZ(t),RZ(t),LZ(t),Xr(t,r=>{r.isParent=r.categoryMatches.length>0})}f(Hf,"hy");function _Z(e){let t=cs(e),r=e,i=!0;for(;i;){r=wv(Vl(Dr(r,a=>a.CATEGORIES)));let n=g5(r,t);t=t.concat(n),mn(n)?i=!1:r=n}return t}f(_Z,"ICe");function AZ(e){Xr(e,t=>{s8(t)||(Zie[Kie]=t,t.tokenTypeIdx=Kie++),o8(t)&&!$i(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),o8(t)||(t.CATEGORIES=[]),IZ(t)||(t.categoryMatches=[]),DZ(t)||(t.categoryMatchesMap={})})}f(AZ,"OCe");function LZ(e){Xr(e,t=>{t.categoryMatches=[],Xr(t.categoryMatchesMap,(r,i)=>{t.categoryMatches.push(Zie[i].tokenTypeIdx)})})}f(LZ,"PCe");function RZ(e){Xr(e,t=>{a8([],t)})}f(RZ,"BCe");function a8(e,t){Xr(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),Xr(t.CATEGORIES,r=>{let i=e.concat(t);Ys(i,r)||a8(i,r)})}f(a8,"Fz");function s8(e){return Ur(e,"tokenTypeIdx")}f(s8,"$z");function o8(e){return Ur(e,"CATEGORIES")}f(o8,"wF");function IZ(e){return Ur(e,"categoryMatches")}f(IZ,"FCe");function DZ(e){return Ur(e,"categoryMatchesMap")}f(DZ,"$Ce");function NZ(e){return Ur(e,"tokenTypeIdx")}f(NZ,"zCe");function o0(e){return l8(e)?e.LABEL:e.name}f(o0,"B0");function l8(e){return mo(e.LABEL)&&e.LABEL!==""}f(l8,"zz");function Yf(e){return MZ(e)}f(Yf,"q1");function MZ(e){let t=e.pattern,r={};if(r.name=e.name,tu(t)||(r.PATTERN=t),Ur(e,eKe))throw`The parent property is no longer supported. 1180See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ur(e,Qie)&&(r.CATEGORIES=e[Qie]),Hf([r]),Ur(e,Jie)&&(r.LABEL=e[Jie]),Ur(e,ene)&&(r.GROUP=e[ene]),Ur(e,rne)&&(r.POP_MODE=e[rne]),Ur(e,tne)&&(r.PUSH_MODE=e[tne]),Ur(e,ine)&&(r.LONGER_ALT=e[ine]),Ur(e,nne)&&(r.LINE_BREAKS=e[nne]),Ur(e,ane)&&(r.START_CHARS_HINT=e[ane]),r}f(MZ,"GCe");function F2(e,t,r,i,n,a,o,l){return{image:t,startOffset:r,endOffset:i,startLine:n,endLine:a,startColumn:o,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}f(F2,"PT");function c8(e,t){return Wf(e,t)}f(c8,"Gz");function OZ(e,t){let r=new rKe(e,t);return r.resolveRefs(),r.errors}f(OZ,"VCe");function tT(e,t,r=[]){r=cs(r);let i=[],n=0;function a(l){return l.concat(hs(e,n+1))}f(a,"a"),s(a,"remainingPathWith"),N(a,"remainingPathWith");function o(l){let h=tT(a(l),t,r);return i.concat(h)}for(f(o,"s"),s(o,"getAlternativesForProd"),N(o,"getAlternativesForProd");r.length<t&&n<e.length;){let l=e[n];if(l instanceof yo||l instanceof Xs)return o(l.definition);if(l instanceof us)i=o(l.definition);else if(l instanceof Go){let h=l.definition.concat([new ra({definition:l.definition})]);return o(h)}else if(l instanceof Uo){let h=[new yo({definition:l.definition}),new ra({definition:[new Ln({terminalType:l.separator})].concat(l.definition)})];return o(h)}else if(l instanceof vo){let h=l.definition.concat([new ra({definition:[new Ln({terminalType:l.separator})].concat(l.definition)})]);i=o(h)}else if(l instanceof ra){let h=l.definition.concat([new ra({definition:l.definition})]);i=o(h)}else{if(l instanceof bo)return Xr(l.definition,h=>{mn(h.definition)===!1&&(i=o(h.definition))}),i;if(l instanceof Ln)r.push(l.terminalType);else throw Error("non exhaustive match")}n++}return i.push({partialPath:r,suffixDef:hs(e,n)}),i}f(tT,"_5");
vendor: 5,611 bytes, line 1180
1180function h8(e,t,r,i){let n="EXIT_NONE_TERMINAL",a=[n],o="EXIT_ALTERNATIVE",l=!1,h=t.length,u=h-i-1,d=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!mn(p);){let g=p.pop();if(g===o){l&&N0(p).idx<=u&&p.pop();continue}let m=g.def,y=g.idx,x=g.ruleStack,C=g.occurrenceStack;if(mn(m))continue;let w=m[0];if(w===n){let _={idx:y,def:hs(m),ruleStack:Cv(x),occurrenceStack:Cv(C)};p.push(_)}else if(w instanceof Ln)if(y<h-1){let _=y+1,S=t[_];if(r(S,w.terminalType)){let R={idx:_,def:hs(m),ruleStack:x,occurrenceStack:C};p.push(R)}}else if(y===h-1)d.push({nextTokenType:w.terminalType,nextTokenOccurrence:w.idx,ruleStack:x,occurrenceStack:C}),l=!0;else throw Error("non exhaustive match");else if(w instanceof Xs){let _=cs(x);_.push(w.nonTerminalName);let S=cs(C);S.push(w.idx);let R={idx:y,def:w.definition.concat(a,hs(m)),ruleStack:_,occurrenceStack:S};p.push(R)}else if(w instanceof us){let _={idx:y,def:hs(m),ruleStack:x,occurrenceStack:C};p.push(_),p.push(o);let S={idx:y,def:w.definition.concat(hs(m)),ruleStack:x,occurrenceStack:C};p.push(S)}else if(w instanceof Go){let _=new ra({definition:w.definition,idx:w.idx}),S=w.definition.concat([_],hs(m)),R={idx:y,def:S,ruleStack:x,occurrenceStack:C};p.push(R)}else if(w instanceof Uo){let _=new Ln({terminalType:w.separator}),S=new ra({definition:[_].concat(w.definition),idx:w.idx}),R=w.definition.concat([S],hs(m)),b={idx:y,def:R,ruleStack:x,occurrenceStack:C};p.push(b)}else if(w instanceof vo){let _={idx:y,def:hs(m),ruleStack:x,occurrenceStack:C};p.push(_),p.push(o);let S=new Ln({terminalType:w.separator}),R=new ra({definition:[S].concat(w.definition),idx:w.idx}),b=w.definition.concat([R],hs(m)),v={idx:y,def:b,ruleStack:x,occurrenceStack:C};p.push(v)}else if(w instanceof ra){let _={idx:y,def:hs(m),ruleStack:x,occurrenceStack:C};p.push(_),p.push(o);let S=new ra({definition:w.definition,idx:w.idx}),R=w.definition.concat([S],hs(m)),b={idx:y,def:R,ruleStack:x,occurrenceStack:C};p.push(b)}else if(w instanceof bo)for(let _=w.definition.length-1;_>=0;_--){let S=w.definition[_],R={idx:y,def:S.definition.concat(hs(m)),ruleStack:x,occurrenceStack:C};p.push(R),p.push(o)}else if(w instanceof yo)p.push({idx:y,def:w.definition.concat(hs(m)),ruleStack:x,occurrenceStack:C});else if(w instanceof g1)p.push($Z(w,y,x,C));else throw Error("non exhaustive match")}return d}f(h8,"Vz");function $Z(e,t,r,i){let n=cs(r);n.push(e.name);let a=cs(i);return a.push(1),{idx:t,def:e.definition,ruleStack:n,occurrenceStack:a}}f($Z,"WCe");function rT(e){if(e instanceof us||e==="Option")return ia.OPTION;if(e instanceof ra||e==="Repetition")return ia.REPETITION;if(e instanceof Go||e==="RepetitionMandatory")return ia.REPETITION_MANDATORY;if(e instanceof Uo||e==="RepetitionMandatoryWithSeparator")return ia.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof vo||e==="RepetitionWithSeparator")return ia.REPETITION_WITH_SEPARATOR;if(e instanceof bo||e==="Alternation")return ia.ALTERNATION;throw Error("non exhaustive match")}f(rT,"SA");function u8(e){let{occurrence:t,rule:r,prodType:i,maxLookahead:n}=e,a=rT(i);return a===ia.ALTERNATION?z2(t,r,n):q2(t,r,a,n)}f(u8,"EF");function BZ(e,t,r,i,n,a){let o=z2(e,t,r),l=g8(o)?P2:Wf;return a(o,i,l,n)}f(BZ,"qCe");function PZ(e,t,r,i,n,a){let o=q2(e,t,n,r),l=g8(o)?P2:Wf;return a(o[0],l,i)}f(PZ,"UCe");function FZ(e,t,r,i){let n=e.length,a=Wl(e,o=>Wl(o,l=>l.length===1));if(t)return function(o){let l=Dr(o,h=>h.GATE);for(let h=0;h<n;h++){let u=e[h],d=u.length,p=l[h];if(!(p!==void 0&&p.call(this)===!1))e:for(let g=0;g<d;g++){let m=u[g],y=m.length;for(let x=0;x<y;x++){let C=this.LA(x+1);if(r(C,m[x])===!1)continue e}return h}}};if(a&&!i){let o=Dr(e,h=>Vl(h)),l=jo(o,(h,u,d)=>(Xr(u,p=>{Ur(h,p.tokenTypeIdx)||(h[p.tokenTypeIdx]=d),Xr(p.categoryMatches,g=>{Ur(h,g)||(h[g]=d)})}),h),{});return function(){let h=this.LA(1);return l[h.tokenTypeIdx]}}else return function(){for(let o=0;o<n;o++){let l=e[o],h=l.length;e:for(let u=0;u<h;u++){let d=l[u],p=d.length;for(let g=0;g<p;g++){let m=this.LA(g+1);if(r(m,d[g])===!1)continue e}return o}}}}f(FZ,"HCe");function zZ(e,t,r){let i=Wl(e,a=>a.length===1),n=e.length;if(i&&!r){let a=Vl(e);if(a.length===1&&mn(a[0].categoryMatches)){let o=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{let o=jo(a,(l,h,u)=>(l[h.tokenTypeIdx]=!0,Xr(h.categoryMatches,d=>{l[d]=!0}),l),[]);return function(){let l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;a<n;a++){let o=e[a],l=o.length;for(let h=0;h<l;h++){let u=this.LA(h+1);if(t(u,o[h])===!1)continue e}return!0}return!1}}f(zZ,"YCe");function d8(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}f(d8,"AF");function iT(e){let t=[""];for(let r=0;r<e.length;r++){let i=e[r],n=[];for(let a=0;a<t.length;a++){let o=t[a];n.push(o+"_"+i.tokenTypeIdx);for(let l=0;l<i.categoryMatches.length;l++){let h="_"+i.categoryMatches[l];n.push(o+h)}}t=n}return t}f(iT,"HE");function qZ(e,t,r){for(let i=0;i<e.length;i++){if(i===r)continue;let n=e[i];for(let a=0;a<t.length;a++){let o=t[a];if(n[o]===!0)return!1}}return!0}f(qZ,"XCe");function p8(e,t){let r=Dr(e,o=>tT([o],1)),i=d8(r.length),n=Dr(r,o=>{let l={};return Xr(o,h=>{let u=iT(h.partialPath);Xr(u,d=>{l[d]=!0})}),l}),a=r;for(let o=1;o<=t;o++){let l=a;a=d8(l.length);for(let h=0;h<l.length;h++){let u=l[h];for(let d=0;d<u.length;d++){let p=u[d].partialPath,g=u[d].suffixDef,m=iT(p);if(qZ(n,m,h)||mn(g)||p.length===t){let y=i[h];if(nT(y,p)===!1){y.push(p);for(let x=0;x<m.length;x++){let C=m[x];n[h][C]=!0}}}else{let y=tT(g,o+1,p);a[h]=a[h].concat(y),Xr(y,x=>{let C=iT(x.partialPath);Xr(C,w=>{n[h][w]=!0})})}}}}return i}f(p8,"Wz");
vendor: 9,106 bytes, lines 1180-1185
1180function z2(e,t,r,i){let n=new lne(e,ia.ALTERNATION,i);return t.accept(n),p8(n.result,r)}f(z2,"BT");function q2(e,t,r,i){let n=new lne(e,r);t.accept(n);let a=n.result,o=new oKe(t,e,r).startWalking(),l=new yo({definition:a}),h=new yo({definition:o});return p8([l,h],i)}f(q2,"FT");function nT(e,t){e:for(let r=0;r<e.length;r++){let i=e[r];if(i.length===t.length){for(let n=0;n<i.length;n++){let a=t[n],o=i[n];if(!(a===o||o.categoryMatchesMap[a.tokenTypeIdx]!==void 0))continue e}return!0}}return!1}f(nT,"D5");function jZ(e,t){return e.length<t.length&&Wl(e,(r,i)=>{let n=t[i];return r===n||n.categoryMatchesMap[r.tokenTypeIdx]})}f(jZ,"KCe");function g8(e){return Wl(e,t=>Wl(t,r=>Wl(r,i=>mn(i.categoryMatches))))}f(g8,"qz");function GZ(e){let t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return Dr(t,r=>Object.assign({type:xo.CUSTOM_LOOKAHEAD_VALIDATION},r))}f(GZ,"ZCe");function UZ(e,t,r,i){let n=pl(e,h=>VZ(h,r)),a=tQ(e,t,r),o=pl(e,h=>ZZ(h,r)),l=pl(e,h=>HZ(h,e,i,r));return n.concat(a,o,l)}f(UZ,"QCe");function VZ(e,t){let r=new lKe;e.accept(r);let i=r.allProductions,n=TXe(i,WZ),a=Yl(n,o=>o.length>1);return Dr(Ga(a),o=>{let l=Hl(o),h=t.buildDuplicateFoundError(e,o),u=ql(l),d={message:h,type:xo.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:u,occurrence:l.idx},p=f8(l);return p&&(d.parameter=p),d})}f(VZ,"JCe");function WZ(e){return`${ql(e)}_#_${e.idx}_#_${f8(e)}`}f(WZ,"eke");function f8(e){return e instanceof Ln?e.terminalType.name:e instanceof Xs?e.nonTerminalName:""}f(f8,"Uz");function HZ(e,t,r,i){let n=[];if(jo(t,(a,o)=>o.name===e.name?a+1:a,0)>1){let a=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});n.push({message:a,type:xo.DUPLICATE_RULE_NAME,ruleName:e.name})}return n}f(HZ,"tke");function YZ(e,t,r){let i=[],n;return Ys(t,e)||(n=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,i.push({message:n,type:xo.INVALID_RULE_OVERRIDE,ruleName:e})),i}f(YZ,"rke");function m8(e,t,r,i=[]){let n=[],a=j2(t.definition);if(mn(a))return[];{let o=e.name;Ys(a,e)&&n.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:xo.LEFT_RECURSION,ruleName:o});let l=g5(a,i.concat([e])),h=pl(l,u=>{let d=cs(i);return d.push(u),m8(e,u,r,d)});return n.concat(h)}}f(m8,"Hz");function j2(e){let t=[];if(mn(e))return t;let r=Hl(e);if(r instanceof Xs)t.push(r.referencedRule);else if(r instanceof yo||r instanceof us||r instanceof Go||r instanceof Uo||r instanceof vo||r instanceof ra)t=t.concat(j2(r.definition));else if(r instanceof bo)t=Vl(Dr(r.definition,a=>j2(a.definition)));else if(!(r instanceof Ln))throw Error("non exhaustive match");let i=O2(r),n=e.length>1;if(i&&n){let a=hs(e);return t.concat(j2(a))}else return t}f(j2,"Z2");function XZ(e,t){let r=new Y9;e.accept(r);let i=r.alternations;return pl(i,n=>{let a=Cv(n.definition);return pl(a,(o,l)=>{let h=h8([o],[],Wf,1);return mn(h)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:l}),type:xo.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:l+1}]:[]})})}f(XZ,"ike");function KZ(e,t,r){let i=new Y9;e.accept(i);let n=i.alternations;return n=f5(n,a=>a.ignoreAmbiguities===!0),pl(n,a=>{let o=a.idx,l=a.maxLookahead||t,h=z2(o,e,l,a),u=JZ(h,a,e,r),d=eQ(h,a,e,r);return u.concat(d)})}f(KZ,"nke");function ZZ(e,t){let r=new Y9;e.accept(r);let i=r.alternations;return pl(i,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:xo.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}f(ZZ,"ake");function QZ(e,t,r){let i=[];return Xr(e,n=>{let a=new cKe;n.accept(a);let o=a.allProductions;Xr(o,l=>{let h=rT(l),u=l.maxLookahead||t,d=l.idx,p=q2(d,n,h,u)[0];if(mn(Vl(p))){let g=r.buildEmptyRepetitionError({topLevelRule:n,repetition:l});i.push({message:g,type:xo.NO_NON_EMPTY_LOOKAHEAD,ruleName:n.name})}})}),i}f(QZ,"ske");function JZ(e,t,r,i){let n=[],a=jo(e,(o,l,h)=>(t.definition[h].ignoreAmbiguities===!0||Xr(l,u=>{let d=[h];Xr(e,(p,g)=>{h!==g&&nT(p,u)&&t.definition[g].ignoreAmbiguities!==!0&&d.push(g)}),d.length>1&&!nT(n,u)&&(n.push(u),o.push({alts:d,path:u}))}),o),[]);return Dr(a,o=>{let l=Dr(o.alts,h=>h+1);return{message:i.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:l,prefixPath:o.path}),type:xo.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:o.alts}})}f(JZ,"oke");function eQ(e,t,r,i){let n=jo(e,(a,o,l)=>{let h=Dr(o,u=>({idx:l,path:u}));return a.concat(h)},[]);return wv(pl(n,a=>{if(t.definition[a.idx].ignoreAmbiguities===!0)return[];let o=a.idx,l=a.path,h=dl(n,u=>t.definition[u.idx].ignoreAmbiguities!==!0&&u.idx<o&&jZ(u.path,l));return Dr(h,u=>{let d=[u.idx+1,o+1],p=t.idx===0?"":t.idx;return{message:i.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:d,prefixPath:u.path}),type:xo.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:p,alternatives:d}})}))}f(eQ,"lke");function tQ(e,t,r){let i=[],n=Dr(t,a=>a.name);return Xr(e,a=>{let o=a.name;if(Ys(n,o)){let l=r.buildNamespaceConflictError(a);i.push({message:l,type:xo.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),i}f(tQ,"cke");function rQ(e){let t=V9(e,{errMsgProvider:tKe}),r={};return Xr(e.rules,i=>{r[i.name]=i}),OZ(r,t.errMsgProvider)}f(rQ,"uke");function iQ(e){return e=V9(e,{errMsgProvider:O0}),UZ(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}f(iQ,"hke");function G2(e){return Ys(pne,e.name)}f(G2,"dT");function nQ(e,t,r,i,n,a,o){let l=this.getKeyForAutomaticLookahead(i,n),h=this.firstAfterRepMap[l];if(h===void 0){let g=this.getCurrRuleFullName(),m=this.getGAstProductions()[g];h=new a(m,n).startWalking(),this.firstAfterRepMap[l]=h}let u=h.token,d=h.occurrence,p=h.isEndOfRule;this.RULE_STACK.length===1&&p&&u===void 0&&(u=Od,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,o)&&this.tryInRepetitionRecovery(e,t,r,u)}f(nQ,"xke");function aT(e,t,r){return r|t|e}f(aT,"jE");function aQ(e){C5.reset(),e.accept(C5);let t=C5.dslMethods;return C5.reset(),t}f(aQ,"Cke");function y8(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}f(y8,"LF");function v8(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}f(v8,"MF");function sQ(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}f(sQ,"kke");function oQ(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}f(oQ,"wke");function b8(e,t){Object.defineProperty(e,bKe,{enumerable:!1,configurable:!0,writable:!1,value:t})}f(b8,"Xz");function lQ(e,t){let r=zo(e),i=r.length;for(let n=0;n<i;n++){let a=r[n],o=e[a],l=o.length;for(let h=0;h<l;h++){let u=o[h];u.tokenTypeIdx===void 0&&this[u.name](u.children,t)}}}f(lQ,"Ske");function cQ(e,t){let r=N(function(){},"derivedConstructor");b8(r,e+"BaseSemantics");let i={visit:N(function(n,a){if($i(n)&&(n=n[0]),!tu(n))return this[n.name](n.children,a)},"visit"),validateVisitor:N(function(){let n=uQ(this,t);if(!mn(n)){let a=Dr(n,o=>o.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: 1181 ${a.join(` 1182 1183`).replace(/\n/g,` 1184 `)}`)}},"validateVisitor")};return r.prototype=i,r.prototype.constructor=r,r._RULE_NAMES=t,r}f(cQ,"Eke");function hQ(e,t,r){let i=N(function(){},"derivedConstructor");b8(i,e+"BaseSemanticsWithDefaults");let n=Object.create(r.prototype);return Xr(t,a=>{n[a]=lQ}),i.prototype=n,i.prototype.constructor=i,i}f(hQ,"Ake");function uQ(e,t){return dQ(e,t)}f(uQ,"_ke");function dQ(e,t){let r=dl(t,n=>Jh(e[n])===!1),i=Dr(r,n=>({msg:`Missing visitor method: <${n}> on ${e.constructor.name} CST Visitor.`,type:vne.MISSING_METHOD,methodName:n}));return wv(i)}f(dQ,"Dke");function Xf(e,t,r,i=!1){U2(r);let n=N0(this.recordingProdStack),a=Jh(t)?t:t.DEF,o=new e({definition:[],idx:r});return i&&(o.separator=t.SEP),Ur(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),n.definition.push(o),this.recordingProdStack.pop(),E5}f(Xf,"L1");function pQ(e,t){U2(t);let r=N0(this.recordingProdStack),i=$i(e)===!1,n=i===!1?e:e.DEF,a=new bo({definition:[],idx:t,ignoreAmbiguities:i&&e.IGNORE_AMBIGUITIES===!0});Ur(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD);let o=Wie(n,l=>Jh(l.GATE));return a.hasPredicates=o,r.definition.push(a),Xr(n,l=>{let h=new yo({definition:[]});a.definition.push(h),Ur(l,"IGNORE_AMBIGUITIES")?h.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:Ur(l,"GATE")&&(h.ignoreAmbiguities=!0),this.recordingProdStack.push(h),l.ALT.call(this),this.recordingProdStack.pop()}),E5}f(pQ,"Mke");function x8(e){return e===0?"":`${e}`}f(x8,"IF");function U2(e){if(e<0||e>xne){let t=new Error(`Invalid DSL Method idx value: <${e}> 1185 Idx value must be a none negative value smaller than ${xne+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}f(U2,"fT");function gQ(e,t){t.forEach(r=>{let i=r.prototype;
vendor: 11,101 bytes, line 1185
1185Object.getOwnPropertyNames(i).forEach(n=>{if(n==="constructor")return;let a=Object.getOwnPropertyDescriptor(i,n);a&&(a.get||a.set)?Object.defineProperty(e.prototype,n,a):e.prototype[n]=r.prototype[n]})})}f(gQ,"Nke");function k8(e=void 0){return function(){return e}}f(k8,"OF");function fQ(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}f(fQ,"Oke");function mQ(){this.__data__=[],this.size=0}f(mQ,"Bke");function yQ(e,t){return e===t||e!==e&&t!==t}f(yQ,"Fke");function vQ(e,t){for(var r=e.length;r--;)if(Cne(e[r][0],t))return r;return-1}f(vQ,"zke");function bQ(e){var t=this.__data__,r=A5(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():DKe.call(t,r,1),--this.size,!0}f(bQ,"Gke");function xQ(e){var t=this.__data__,r=A5(t,e);return r<0?void 0:t[r][1]}f(xQ,"Vke");function kQ(e){return A5(this.__data__,e)>-1}f(kQ,"Wke");function TQ(e,t){var r=this.__data__,i=A5(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}f(TQ,"qke");function l0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(l0,"im");function wQ(){this.__data__=new L5,this.size=0}f(wQ,"Uke");function CQ(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}f(CQ,"Hke");function EQ(e){return this.__data__.get(e)}f(EQ,"Yke");function SQ(e){return this.__data__.has(e)}f(SQ,"jke");function _Q(e){var t=VKe.call(e,Av),r=e[Av];try{e[Av]=void 0;var i=!0}catch(a){}var n=WKe.call(e);return i&&(t?e[Av]=r:delete e[Av]),n}f(_Q,"Zke");function AQ(e){return XKe.call(e)}f(AQ,"Qke");function LQ(e){return e==null?e===void 0?QKe:ZKe:_ne&&_ne in Object(e)?HKe(e):KKe(e)}f(LQ,"Jke");function RQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}f(RQ,"ewe");function IQ(e){if(!tL(e))return!1;var t=y1(e);return t==eZe||t==tZe||t==JKe||t==rZe}f(IQ,"twe");function DQ(e){return!!Lne&&Lne in e}f(DQ,"iwe");function NQ(e){if(e!=null){try{return sZe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}f(NQ,"nwe");function MQ(e){if(!tL(e)||nZe(e))return!1;var t=Ane(e)?pZe:lZe;return t.test($0(e))}f(MQ,"awe");function OQ(e,t){return e==null?void 0:e[t]}f(OQ,"swe");function $Q(e,t){var r=fZe(e,t);return gZe(r)?r:void 0}f($Q,"owe");function BQ(){this.__data__=Rv?Rv(null):{},this.size=0}f(BQ,"lwe");function PQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}f(PQ,"cwe");function FQ(e){var t=this.__data__;if(Rv){var r=t[e];return r===xZe?void 0:r}return TZe.call(t,e)?t[e]:void 0}f(FQ,"uwe");function zQ(e){var t=this.__data__;return Rv?t[e]!==void 0:EZe.call(t,e)}f(zQ,"hwe");function qQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rv&&t===void 0?_Ze:t,this}f(qQ,"dwe");function c0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(c0,"am");function jQ(){this.size=0,this.__data__={hash:new Rne,map:new(Lv||L5),string:new Rne}}f(jQ,"fwe");function GQ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}f(GQ,"pwe");function UQ(e,t){var r=e.__data__;return RZe(t)?r[typeof t=="string"?"string":"hash"]:r.map}f(UQ,"mwe");function VQ(e){var t=R5(this,e).delete(e);return this.size-=t?1:0,t}f(VQ,"gwe");function WQ(e){return R5(this,e).get(e)}f(WQ,"ywe");function HQ(e){return R5(this,e).has(e)}f(HQ,"vwe");function YQ(e,t){var r=R5(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}f(YQ,"xwe");function h0(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}f(h0,"sm");function XQ(e,t){var r=this.__data__;if(r instanceof L5){var i=r.__data__;if(!Lv||i.length<OZe-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new I5(i)}return r.set(e,t),this.size=r.size,this}f(XQ,"bwe");function u0(e){var t=this.__data__=new L5(e);this.size=t.size}f(u0,"om");function KQ(e){return this.__data__.set(e,BZe),this}f(KQ,"Twe");function ZQ(e){return this.__data__.has(e)}f(ZQ,"Cwe");function V2(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new I5;++t<r;)this.add(e[t])}f(V2,"gT");function QQ(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}f(QQ,"wwe");function JQ(e,t){return e.has(t)}f(JQ,"Swe");function eJ(e,t,r,i,n,a){var o=r&qZe,l=e.length,h=t.length;if(l!=h&&!(o&&h>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,g=!0,m=r&jZe?new Ine:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var y=e[p],x=t[p];if(i)var C=o?i(x,y,p,t,e,a):i(y,x,p,e,t,a);if(C!==void 0){if(C)continue;g=!1;break}if(m){if(!zZe(t,function(w,_){if(!Dne(m,_)&&(y===w||n(y,w,r,i,a)))return m.push(_)})){g=!1;break}}else if(!(y===x||n(y,x,r,i,a))){g=!1;break}}return a.delete(e),a.delete(t),g}f(eJ,"Awe");function tJ(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}f(tJ,"Dwe");function rJ(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}f(rJ,"Rwe");function iJ(e,t,r,i,n,a,o){switch(r){case iQe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rQe:return!(e.byteLength!=t.byteLength||!a(new Mne(e),new Mne(t)));case HZe:case YZe:case ZZe:return Cne(+e,+t);case XZe:return e.name==t.name&&e.message==t.message;case QZe:case eQe:return e==t+"";case KZe:var l=UZe;case JZe:var h=i&VZe;if(l||(l=iL),e.size!=t.size&&!h)return!1;var u=o.get(e);if(u)return u==t;i|=WZe,o.set(e,t);var d=Nne(l(e),l(t),i,n,a,o);return o.delete(e),d;case tQe:if(nL)return nL.call(e)==nL.call(t)}return!1}f(iJ,"Lwe");function nJ(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}f(nJ,"Mwe");function aJ(e,t,r){var i=t(e);return Zs(e)?i:$ne(i,r(e))}f(aJ,"Iwe");function sJ(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[n++]=o)}return a}f(sJ,"Owe");function oJ(){return[]}f(oJ,"Bwe");function lJ(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}f(lJ,"Fwe");function cJ(e){return e!=null&&typeof e=="object"}f(cJ,"$we");function hJ(e){return b1(e)&&y1(e)==pQe}f(hJ,"zwe");function uJ(){return!1}f(uJ,"Vwe");function dJ(e,t){var r=typeof e;return t=t!=null?t:kQe,!!t&&(r=="number"||r!="symbol"&&TQe.test(e))&&e>-1&&e%1==0&&e<t}f(dJ,"qwe");function pJ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wQe}f(pJ,"Hwe");function gJ(e){return b1(e)&&aL(e.length)&&!!Rn[y1(e)]}f(gJ,"Ywe");function fJ(e){return function(t){return e(t)}}f(fJ,"jwe");function mJ(e,t){var r=Zs(e),i=!r&&N5(e),n=!r&&!i&&M5(e),a=!r&&!i&&!n&&oL(e),o=r||i||n||a,l=o?dQe(e.length,String):[],h=l.length;for(var u in e)(t||eJe.call(e,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Une(u,h)))&&l.push(u);return l}f(mJ,"Kwe");function yJ(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rJe;return e===r}f(yJ,"Zwe");function vJ(e,t){return function(r){return e(t(r))}}f(vJ,"Jwe");function bJ(e){if(!Yne(e))return aJe(e);var t=[];for(var r in Object(e))oJe.call(e,r)&&r!="constructor"&&t.push(r);return t}f(bJ,"e4e");function xJ(e){return e!=null&&aL(e.length)&&!Ane(e)}f(xJ,"r4e");function kJ(e){return O5(e)?tJe(e):Xne(e)}f(kJ,"i4e");function TJ(e){return sQe(e,lL,uQe)}f(TJ,"n4e");function wJ(e,t,r,i,n,a){var o=r&lJe,l=Kne(e),h=l.length,u=Kne(t),d=u.length;if(h!=d&&!o)return!1;for(var p=h;p--;){var g=l[p];if(!(o?g in t:hJe.call(t,g)))return!1}var m=a.get(e),y=a.get(t);if(m&&y)return m==t&&y==e;var x=!0;a.set(e,t),a.set(t,e);for(var C=o;++p<h;){g=l[p];var w=e[g],_=t[g];if(i)var S=o?i(_,w,g,t,e,a):i(w,_,g,e,t,a);if(!(S===void 0?w===_||n(w,_,r,i,a):S)){x=!1;break}C||(C=g=="constructor")}if(x&&!C){var R=e.constructor,b=t.constructor;R!=b&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof b=="function"&&b instanceof b)&&(x=!1)}return a.delete(e),a.delete(t),x}f(wJ,"a4e");function CJ(e,t,r,i,n,a){var o=Zs(e),l=Zs(t),h=o?iae:dL(e),u=l?iae:dL(t);h=h==rae?$5:h,u=u==rae?$5:u;var d=h==$5,p=u==$5,g=h==u;if(g&&M5(e)){if(!M5(t))return!1;o=!0,d=!1}if(g&&!d)return a||(a=new D5),o||oL(e)?Nne(e,t,r,i,n,a):nQe(e,t,h,r,i,n,a);if(!(r&TJe)){var m=d&&nae.call(e,"__wrapped__"),y=p&&nae.call(t,"__wrapped__");if(m||y){var x=m?e.value():e,C=y?t.value():t;return a||(a=new D5),n(x,C,r,i,a)}}return g?(a||(a=new D5),uJe(e,t,r,i,n,a)):!1}f(CJ,"s4e");function T8(e,t,r,i,n){return e===t?!0:e==null||t==null||!b1(e)&&!b1(t)?e!==e&&t!==t:CJe(e,t,r,i,T8,n)}f(T8,"rG");function EJ(e,t,r,i){var n=r.length,a=n,o=!i;if(e==null)return!a;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<a;){l=r[n];var h=l[0],u=e[h],d=l[1];if(o&&l[2]){if(u===void 0&&!(h in e))return!1}else{var p=new D5;if(i)var g=i(u,d,h,e,t,p);if(!(g===void 0?aae(d,u,EJe|SJe,i,p):g))return!1}}return!0}f(EJ,"l4e");function SJ(e){return e===e&&!tL(e)}f(SJ,"c4e");function _J(e){for(var t=lL(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,sae(n)]}return t}f(_J,"h4e");function AJ(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}f(AJ,"d4e");function LJ(e){var t=AJe(e);return t.length==1&&t[0][2]?oae(t[0][0],t[0][1]):function(r){return r===e||_Je(r,e,t)}}f(LJ,"p4e");function RJ(e){return typeof e=="symbol"||b1(e)&&y1(e)==RJe}f(RJ,"m4e");function IJ(e,t){if(Zs(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||B5(e)?!0:DJe.test(e)||!IJe.test(e)||t!=null&&e in Object(t)}f(IJ,"g4e");function sT(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NJe);var r=N(function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o},"memoized");return r.cache=new(sT.Cache||I5),r}f(sT,"OA");function DJ(e){var t=MJe(e,function(i){return r.size===OJe&&r.clear(),i}),r=t.cache;return t}f(DJ,"y4e");function w8(e){if(typeof e=="string")return e;if(Zs(e))return wne(e,w8)+"";if(B5(e))return cae?cae.call(e):"";var t=e+"";return t=="0"&&1/e==-qJe?"-0":t}f(w8,"nG");function NJ(e){return e==null?"":jJe(e)}f(NJ,"v4e");function MJ(e,t){return Zs(e)?e:pL(e,t)?[e]:zJe(GJe(e))}f(MJ,"x4e");function OJ(e){if(typeof e=="string"||B5(e))return e;var t=e+"";return t=="0"&&1/e==-UJe?"-0":t}f(OJ,"T4e");function $J(e,t){t=hae(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[P5(t[r++])];return r&&r==i?e:void 0}f($J,"C4e");function BJ(e,t,r){var i=e==null?void 0:uae(e,t);return i===void 0?r:i}f(BJ,"w4e");function PJ(e,t){return e!=null&&t in Object(e)}f(PJ,"S4e");function FJ(e,t,r){t=hae(t,e);for(var i=-1,n=t.length,a=!1;++i<n;){var o=P5(t[i]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++i!=n?a:(n=e==null?0:e.length,!!n&&aL(n)&&Une(o,n)&&(Zs(e)||N5(e)))}f(FJ,"E4e");function zJ(e,t){return e!=null&&HJe(e,t,WJe)}f(zJ,"A4e");function qJ(e,t){return pL(e)&&sae(t)?oae(P5(e),t):function(r){var i=VJe(r,e);return i===void 0&&i===t?YJe(r,e):aae(t,i,XJe|KJe)}}f(qJ,"_4e");function jJ(e){return e}f(jJ,"D4e");function GJ(e){return function(t){return t==null?void 0:t[e]}}f(GJ,"R4e");function UJ(e){return function(t){return uae(t,e)}}f(UJ,"L4e");function VJ(e){return pL(e)?QJe(P5(e)):JJe(e)}f(VJ,"M4e");function WJ(e){return typeof e=="function"?e:e==null?gL:typeof e=="object"?Zs(e)?ZJe
vendor: 33,667 bytes, lines 1185-1192
1185(e[0],e[1]):LJe(e):eet(e)}f(WJ,"N4e");function HJ(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),l=o.length;l--;){var h=o[e?l:++n];if(r(a[h],h,a)===!1)break}return t}}f(HJ,"I4e");function YJ(e,t){return e&&iet(e,t,lL)}f(YJ,"O4e");function XJ(e,t){return function(r,i){if(r==null)return r;if(!O5(r))return e(r,i);for(var n=r.length,a=t?n:-1,o=Object(r);(t?a--:++a<n)&&i(o[a],a,o)!==!1;);return r}}f(XJ,"P4e");function KJ(e,t){var r=-1,i=O5(e)?Array(e.length):[];return z5(e,function(n,a,o){i[++r]=t(n,a,o)}),i}f(KJ,"B4e");function ZJ(e,t){var r=Zs(e)?wne:oet;return r(e,F5(t,3))}f(ZJ,"F4e");function QJ(e,t){var r=[];return z5(e,function(i,n,a){t(i,n,a)&&r.push(i)}),r}f(QJ,"$4e");function JJ(e,t){var r=Zs(e)?Bne:cet;return r(e,F5(t,3))}f(JJ,"z4e");function d0(e,t,r){return`${e.name}_${t}_${r}`}f(d0,"V0");function eee(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};tee(t,e);let r=e.length;for(let i=0;i<r;i++){let n=e[i],a=Cd(t,n,n);a!==void 0&&dee(t,n,a)}return t}f(eee,"U4e");function tee(e,t){let r=t.length;for(let i=0;i<r;i++){let n=t[i],a=qa(e,n,void 0,{type:uet}),o=qa(e,n,void 0,{type:Dv});a.stop=o,e.ruleToStartState.set(n,a),e.ruleToStopState.set(n,o)}}f(tee,"H4e");function C8(e,t,r){return r instanceof Ln?oT(e,t,r.terminalType,r):r instanceof Xs?uee(e,t,r):r instanceof bo?see(e,t,r):r instanceof us?oee(e,t,r):r instanceof ra?ree(e,t,r):r instanceof vo?iee(e,t,r):r instanceof Go?nee(e,t,r):r instanceof Uo?aee(e,t,r):Cd(e,t,r)}f(C8,"cG");function ree(e,t,r){let i=qa(e,t,r,{type:pae});Yh(e,i);let n=p0(e,t,i,r,Cd(e,t,r));return S8(e,t,r,n)}f(ree,"Y4e");function iee(e,t,r){let i=qa(e,t,r,{type:pae});Yh(e,i);let n=p0(e,t,i,r,Cd(e,t,r)),a=oT(e,t,r.separator,r);return S8(e,t,r,n,a)}f(iee,"j4e");function nee(e,t,r){let i=qa(e,t,r,{type:dae});Yh(e,i);let n=p0(e,t,i,r,Cd(e,t,r));return E8(e,t,r,n)}f(nee,"X4e");function aee(e,t,r){let i=qa(e,t,r,{type:dae});Yh(e,i);let n=p0(e,t,i,r,Cd(e,t,r)),a=oT(e,t,r.separator,r);return E8(e,t,r,n,a)}f(aee,"K4e");function see(e,t,r){let i=qa(e,t,r,{type:Bd});Yh(e,i);let n=nu(r.definition,a=>C8(e,t,a));return p0(e,t,i,r,...n)}f(see,"Z4e");function oee(e,t,r){let i=qa(e,t,r,{type:Bd});Yh(e,i);let n=p0(e,t,i,r,Cd(e,t,r));return lee(e,t,r,n)}f(oee,"Q4e");function Cd(e,t,r){let i=het(nu(r.definition,n=>C8(e,t,n)),n=>n!==void 0);return i.length===1?i[0]:i.length===0?void 0:hee(e,i)}f(Cd,"kf");function E8(e,t,r,i,n){let a=i.left,o=i.right,l=qa(e,t,r,{type:fet});Yh(e,l);let h=qa(e,t,r,{type:gae});return a.loopback=l,h.loopback=l,e.decisionMap[d0(t,n?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,fa(o,l),n===void 0?(fa(l,a),fa(l,h)):(fa(l,h),fa(l,n.left),fa(n.right,a)),{left:a,right:h}}f(E8,"uG");function S8(e,t,r,i,n){let a=i.left,o=i.right,l=qa(e,t,r,{type:get});Yh(e,l);let h=qa(e,t,r,{type:gae}),u=qa(e,t,r,{type:pet});return l.loopback=u,h.loopback=u,fa(l,a),fa(l,h),fa(o,u),n!==void 0?(fa(u,h),fa(u,n.left),fa(n.right,a)):fa(u,l),e.decisionMap[d0(t,n?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:h}}f(S8,"hG");function lee(e,t,r,i){let n=i.left,a=i.right;return fa(n,a),e.decisionMap[d0(t,"Option",r.idx)]=n,i}f(lee,"J4e");function Yh(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}f(Yh,"bh");function p0(e,t,r,i,...n){let a=qa(e,t,i,{type:det,start:r});r.end=a;for(let l of n)l!==void 0?(fa(r,l.left),fa(l.right,a)):fa(r,a);let o={left:r,right:a};return e.decisionMap[d0(t,cee(i),i.idx)]=r,o}f(p0,"lm");function cee(e){if(e instanceof bo)return"Alternation";if(e instanceof us)return"Option";if(e instanceof ra)return"Repetition";if(e instanceof vo)return"RepetitionWithSeparator";if(e instanceof Go)return"RepetitionMandatory";if(e instanceof Uo)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}f(cee,"eSe");function hee(e,t){let r=t.length;for(let a=0;a<r-1;a++){let o=t[a],l;o.left.transitions.length===1&&(l=o.left.transitions[0]);let h=l instanceof yL,u=l,d=t[a+1].left;o.left.type===Bd&&o.right.type===Bd&&l!==void 0&&(h&&u.followState===o.right||l.target===o.right)?(h?u.followState=d:l.target=d,pee(e,o.right)):fa(o.right,d)}let i=t[0],n=t[r-1];return{left:i.left,right:n.right}}f(hee,"tSe");function oT(e,t,r,i){let n=qa(e,t,i,{type:Bd}),a=qa(e,t,i,{type:Bd});return lT(n,new mL(a,r)),{left:n,right:a}}f(oT,"$A");function uee(e,t,r){let i=r.referencedRule,n=e.ruleToStartState.get(i),a=qa(e,t,r,{type:Bd}),o=qa(e,t,r,{type:Bd}),l=new yL(n,i,o);return lT(a,l),{left:a,right:o}}f(uee,"rSe");function dee(e,t,r){let i=e.ruleToStartState.get(t);fa(i,r.left);let n=e.ruleToStopState.get(t);return fa(r.right,n),{left:i,right:n}}f(dee,"iSe");function fa(e,t){let r=new fae(t);lT(e,r)}f(fa,"vn");function qa(e,t,r,i){let n=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},i);return e.states.push(n),n}f(qa,"Yn");function lT(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}f(lT,"zA");function pee(e,t){e.states.splice(e.states.indexOf(t),1)}f(pee,"nSe");function _8(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}f(_8,"dG");function gee(e,t,r){for(var i=-1,n=e.length;++i<n;){var a=e[i],o=t(a);if(o!=null&&(l===void 0?o===o&&!B5(o):r(o,l)))var l=o,h=a}return h}f(gee,"aSe");function fee(e,t){return e<t}f(fee,"sSe");function mee(e){return e&&e.length?met(e,gL,yet):void 0}f(mee,"oSe");function yee(e){return Zs(e)||N5(e)||!!(mae&&e&&e[mae])}f(yee,"lSe");function A8(e,t,r,i,n){var a=-1,o=e.length;for(r||(r=bet),n||(n=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?A8(l,t-1,r,i,n):$ne(n,l):i||(n[n.length]=l)}return n}f(A8,"fG");function vee(e,t){return yae(nu(e,t),1)}f(vee,"uSe");function bee(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++a<n;)if(t(e[a],a,e))return a;return-1}f(bee,"hSe");function xee(e){return e!==e}f(xee,"dSe");function kee(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}f(kee,"fSe");function Tee(e,t,r){return t===t?wet(e,t,r):ket(e,Tet,r)}f(Tee,"pSe");function wee(e,t){var r=e==null?0:e.length;return!!r&&Cet(e,t,0)>-1}f(wee,"mSe");function Cee(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}f(Cee,"gSe");function Eee(){}f(Eee,"ySe");function See(e,t,r){var i=-1,n=Eet,a=e.length,o=!0,l=[],h=l;if(r)o=!1,n=_et;else if(a>=Det){var u=t?null:Iet(e);if(u)return iL(u);o=!1,n=Dne,h=new Ine}else h=t?[]:l;e:for(;++i<a;){var d=e[i],p=t?t(d):d;if(d=r||d!==0?d:0,o&&p===p){for(var g=h.length;g--;)if(h[g]===p)continue e;t&&h.push(p),l.push(d)}else n(h,p,r)||(h!==l&&h.push(p),l.push(d))}return l}f(See,"vSe");function _ee(e,t){return e&&e.length?Net(e,F5(t,2)):[]}f(_ee,"xSe");function Aee(e){var t=e==null?0:e.length;return t?yae(e,1):[]}f(Aee,"bSe");function Lee(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}f(Lee,"TSe");function Ree(e){return typeof e=="function"?e:gL}f(Ree,"CSe");function Iee(e,t){var r=Zs(e)?$et:z5;return r(e,Bet(t))}f(Iee,"kSe");function Dee(e){if(e==null)return!0;if(O5(e)&&(Zs(e)||typeof e=="string"||typeof e.splice=="function"||M5(e)||oL(e)||N5(e)))return!e.length;var t=dL(e);if(t==Pet||t==Fet)return!e.size;if(Yne(e))return!Xne(e).length;for(var r in e)if(qet.call(e,r))return!1;return!0}f(Dee,"wSe");function Nee(e,t,r,i){var n=-1,a=e==null?0:e.length;for(i&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r}f(Nee,"SSe");function Mee(e,t,r,i,n){return n(e,function(a,o,l){r=i?(i=!1,a):t(r,a,o,l)}),r}f(Mee,"ESe");function Oee(e,t,r){var i=Zs(e)?Get:Uet,n=arguments.length<3;return i(e,F5(t,4),r,n,z5)}f(Oee,"ASe");function $ee(e,t){let r={};return i=>{let n=i.toString(),a=r[n];return a!==void 0||(a={atnStartState:e,decision:t,states:{}},r[n]=a),a}}f($ee,"_Se");function L8(e,t=!0){let r=new Set;for(let i of e){let n=new Set;for(let a of i){if(a===void 0){if(t)break;return!1}let o=[a.tokenTypeIdx].concat(a.categoryMatches);for(let l of o)if(r.has(l)){if(!n.has(l))return!1}else r.add(l),n.add(l)}}return!0}f(L8,"GF");function Bee(e){let t=e.decisionStates.length,r=Array(t);for(let i=0;i<t;i++)r[i]=$ee(e.decisionStates[i],i);return r}f(Bee,"RSe");function cT(e,t,r,i){let n=e[t](r),a=n.start;if(a===void 0){let o=Yee(n.atnStartState);a=D8(n,R8(o)),n.start=a}return Pee.apply(this,[n,a,r,i])}f(cT,"KE");function Pee(e,t,r,i){let n=t,a=1,o=[],l=this.LA(a++);for(;;){let h=Uee(n,l);if(h===void 0&&(h=Fee.apply(this,[e,n,l,a,r,i])),h===q5)return Gee(o,n,l);if(h.isAcceptState===!0)return h.prediction;n=h,o.push(l),l=this.LA(a++)}}f(Pee,"LSe");function Fee(e,t,r,i,n,a){let o=Vee(t.configs,r,n);if(o.size===0)return I8(e,t,r,q5),q5;let l=R8(o),h=Hee(o,n);if(h!==void 0)l.isAcceptState=!0,l.prediction=h,l.configs.uniqueAlt=h;else if(Qee(o)){let u=vet(o.alts);l.isAcceptState=!0,l.prediction=u,l.configs.uniqueAlt=u,zee.apply(this,[e,i,o.alts,a])}return l=I8(e,t,r,l),l}f(Fee,"MSe");function zee(e,t,r,i){let n=[];for(let u=1;u<=t;u++)n.push(this.LA(u).tokenType);let a=e.atnStartState,o=a.rule,l=a.production,h=qee({topLevelRule:o,ambiguityIndices:r,production:l,prefixPath:n});i(h)}f(zee,"NSe");function qee(e){let t=nu(e.prefixPath,n=>o0(n)).join(", "),r=e.production.idx===0?"":e.production.idx,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${jee(e.production)}${r}> inside <${e.topLevelRule.name}> Rule, 1186<${t}> may appears as a prefix path in all these alternatives. 1187`;return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES 1188For Further details.`,i}f(qee,"ISe");function jee(e){if(e instanceof Xs)return"SUBRULE";if(e instanceof us)return"OPTION";if(e instanceof bo)return"OR";if(e instanceof Go)return"AT_LEAST_ONE";if(e instanceof Uo)return"AT_LEAST_ONE_SEP";if(e instanceof vo)return"MANY_SEP";if(e instanceof ra)return"MANY";if(e instanceof Ln)return"CONSUME";throw Error("non exhaustive match")}f(jee,"OSe");function Gee(e,t,r){let i=xet(t.configs.elements,a=>a.state.transitions),n=Met(i.filter(a=>a instanceof mL).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:n,tokenPath:e}}f(Gee,"PSe");function Uee(e,t){return e.edges[t.tokenTypeIdx]}f(Uee,"BSe");function Vee(e,t,r){let i=new vL,n=[];for(let o of e.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===Dv){n.push(o);continue}let l=o.state.transitions.length;for(let h=0;h<l;h++){let u=o.state.transitions[h],d=Wee(u,t);d!==void 0&&i.add({state:d,alt:o.alt,stack:o.stack})}}let a;if(n.length===0&&i.size===1&&(a=i),a===void 0){a=new vL;for(let o of i.elements)W2(o,a)}if(n.length>0&&!Kee(a))for(let o of n)a.add(o);return a}f(Vee,"FSe");function Wee(e,t){if(e instanceof mL&&c8(t,e.tokenType))return e.target}f(Wee,"$Se");function Hee(e,t){let r;for(let i of e.elements)if(t.is(i.alt)===!0){if(r===void 0)r=i.alt;else if(r!==i.alt)return}return r}f(Hee,"zSe");function R8(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}f(R8,"pG");function I8(e,t,r,i){return i=D8(e,i),t.edges[r.tokenTypeIdx]=i,i}f(I8,"VF");function D8(e,t){if(t===q5)return t;let r=t.configs.key,i=e.states[r];return i!==void 0?i:(t.configs.finalize(),e.states[r]=t,t)}f(D8,"mG");function Yee(e){let t=new vL,r=e.transitions.length;for(let i=0;i<r;i++){let n={state:e.transitions[i].target,alt:i,stack:[]};W2(n,t)}return t}f(Yee,"GSe");function W2(e,t){let r=e.state;if(r.type===Dv){if(e.stack.length>0){let n=[...e.stack],a={state:n.pop(),alt:e.alt,stack:n};W2(a,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let i=r.transitions.length;for(let n=0;n<i;n++){let a=r.transitions[n],o=Xee(e,a);o!==void 0&&W2(o,t)}}f(W2,"yT");function Xee(e,t){if(t instanceof fae)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof yL){let r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}f(Xee,"VSe");function Kee(e){for(let t of e.elements)if(t.state.type===Dv)return!0;return!1}f(Kee,"WSe");function Zee(e){for(let t of e.elements)if(t.state.type!==Dv)return!1;return!0}f(Zee,"qSe");function Qee(e){if(Zee(e))return!0;let t=Jee(e.elements);return ete(t)&&!tte(t)}f(Qee,"USe");function Jee(e){let t=new Map;for(let r of e){let i=_8(r,!1),n=t.get(i);n===void 0&&(n={},t.set(i,n)),n[r.alt]=!0}return t}f(Jee,"HSe");function ete(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}f(ete,"YSe");function tte(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}f(tte,"jSe");function hT(e){return e.$type===U5}f(hT,"ZE");function uT(e,t,r){return rte({parser:t,tokens:r,ruleNames:new Map},e),t}f(uT,"VA");function rte(e,t){let r=jk(t,!1),i=tn(t.rules).filter(Ws).filter(a=>r.has(a));for(let a of i){let o=_r(Tt({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(a,Ed(o,a.definition))}let n=tn(t.rules).filter(zf).filter(a=>r.has(a));for(let a of n)e.parser.rule(a,ite(e,a))}f(rte,"r3e");function ite(e,t){let r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(cl(r))throw new Error("Cannot use terminal rule in infix expression");let i=t.operators.precedences.flatMap(p=>p.operators),n={$type:"Group",elements:[]},a={$container:n,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:n,$type:"Group",elements:[],cardinality:"*"};n.elements.push(a,o);let l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:i}},h=_r(Tt({},a),{$container:o});o.elements.push(l,h);let u=i.map(p=>e.tokens[p.value]).map((p,g)=>({ALT:N(()=>e.parser.consume(g,p,l),"ALT")})),d;return p=>{d!=null||(d=dT(e,r)),e.parser.subrule(0,d,!1,a,p),e.parser.many(0,{DEF:N(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,h,p)},"DEF")})}}f(ite,"i3e");function Ed(e,t,r=!1){let i;if(Vh(t))i=hte(e,t);else if(Td(t))i=nte(e,t);else if(Uh(t))i=Ed(e,t.terminal);else if(Qp(t))i=N8(e,t);else if(Wh(t))i=ate(e,t);else if(Nk(t))i=ote(e,t);else if(Bk(t))i=lte(e,t);else if(Jp(t))i=cte(e,t);else if(sA(t)){let n=e.consume++;i=N(()=>e.parser.consume(n,Od,t),"method")}else throw new XT(t.$cstNode,`Unexpected element type: ${t.$type}`);return M8(e,r?void 0:H2(t),i,t.cardinality)}f(Ed,"vf");function nte(e,t){let r=t0(t);return()=>e.parser.action(r,t)}f(nte,"n3e");function ate(e,t){let r=t.rule.ref;if(Zp(r)){let i=e.subrule++,n=Ws(r)&&r.fragment,a=t.arguments.length>0?ste(r,t.arguments):()=>({}),o;return l=>{o!=null||(o=dT(e,r)),e.parser.subrule(i,o,n,t,a(l))}}else if(cl(r)){let i=e.consume++,n=pT(e,r.name);return()=>e.parser.consume(i,n,t)}else if(r)wd(r);else throw new XT(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}f(ate,"a3e");function ste(e,t){if(t.some(r=>r.calledByName)){let r=t.map(i=>{var n,a;return{parameterName:(a=(n=i.parameter)==null?void 0:n.ref)==null?void 0:a.name,predicate:jl(i.value)}});return i=>{let n={};for(let{parameterName:a,predicate:o}of r)a&&(n[a]=o(i));return n}}else{let r=t.map(i=>jl(i.value));return i=>{let n={};for(let a=0;a<r.length;a++)if(a<e.parameters.length){let o=e.parameters[a].name,l=r[a];n[o]=l(i)}return n}}}f(ste,"s3e");function jl(e){if(aA(e)){let t=jl(e.left),r=jl(e.right);return i=>t(i)||r(i)}else if(nA(e)){let t=jl(e.left),r=jl(e.right);return i=>t(i)&&r(i)}else if(cA(e)){let t=jl(e.value);return r=>!t(r)}else if(hA(e)){let t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(rA(e)){let t=!!e.true;return()=>t}wd(e)}f(jl,"Vl");function ote(e,t){if(t.elements.length===1)return Ed(e,t.elements[0]);{let r=[];for(let n of t.elements){let a={ALT:Ed(e,n,!0)},o=H2(n);o&&(a.GATE=jl(o)),r.push(a)}let i=e.or++;return n=>e.parser.alternatives(i,r.map(a=>{let o={ALT:N(()=>a.ALT(n),"ALT")},l=a.GATE;return l&&(o.GATE=()=>l(n)),o}))}}f(ote,"o3e");function lte(e,t){if(t.elements.length===1)return Ed(e,t.elements[0]);let r=[];for(let l of t.elements){let h={ALT:Ed(e,l,!0)},u=H2(l);u&&(h.GATE=jl(u)),r.push(h)}let i=e.or++,n=N((l,h)=>{let u=h.getRuleStack().join("-");return`uGroup_${l}_${u}`},"idFunc"),a=N(l=>e.parser.alternatives(i,r.map((h,u)=>{let d={ALT:N(()=>!0,"ALT")},p=e.parser;d.ALT=()=>{if(h.ALT(l),!p.isRecording()){let m=n(i,p);p.unorderedGroups.get(m)||p.unorderedGroups.set(m,[]);let y=p.unorderedGroups.get(m);typeof(y==null?void 0:y[u])>"u"&&(y[u]=!0)}};let g=h.GATE;return g?d.GATE=()=>g(l):d.GATE=()=>{var m;return!((m=p.unorderedGroups.get(n(i,p)))!=null&&m[u])},d})),"alternatives"),o=M8(e,H2(t),a,"*");return l=>{o(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(n(i,e.parser))}}f(lte,"l3e");function cte(e,t){let r=t.elements.map(i=>Ed(e,i));return i=>r.forEach(n=>n(i))}f(cte,"c3e");function H2(e){if(Jp(e))return e.guardCondition}f(H2,"vT");function N8(e,t,r=t.terminal){var i;if(r)if(Wh(r)&&Ws(r.rule.ref)){let n=r.rule.ref,a=e.subrule++,o;return l=>{o!=null||(o=dT(e,n)),e.parser.subrule(a,o,!1,t,l)}}else if(Wh(r)&&cl(r.rule.ref)){let n=e.consume++,a=pT(e,r.rule.ref.name);return()=>e.parser.consume(n,a,t)}else if(Vh(r)){let n=e.consume++,a=pT(e,r.value);return()=>e.parser.consume(n,a,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);let n=(i=Wk(t.type.ref))==null?void 0:i.terminal;if(!n)throw new Error("Could not find name assignment for type: "+t0(t.type.ref));return N8(e,t,n)}}f(N8,"bG");function hte(e,t){let r=e.consume++,i=e.tokens[t.value];if(!i)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,i,t)}f(hte,"u3e");function M8(e,t,r,i){let n=t&&jl(t);if(!i)if(n){let a=e.or++;return o=>e.parser.alternatives(a,[{ALT:N(()=>r(o),"ALT"),GATE:N(()=>n(o),"GATE")},{ALT:k8(),GATE:N(()=>!n(o),"GATE")}])}else return r;if(i==="*"){let a=e.many++;return o=>e.parser.many(a,{DEF:N(()=>r(o),"DEF"),GATE:n?()=>n(o):void 0})}else if(i==="+"){let a=e.many++;if(n){let o=e.or++;return l=>e.parser.alternatives(o,[{ALT:N(()=>e.parser.atLeastOne(a,{DEF:N(()=>r(l),"DEF")}),"ALT"),GATE:N(()=>n(l),"GATE")},{ALT:k8(),GATE:N(()=>!n(l),"GATE")}])}else return o=>e.parser.atLeastOne(a,{DEF:N(()=>r(o),"DEF")})}else if(i==="?"){let a=e.optional++;return o=>e.parser.optional(a,{DEF:N(()=>r(o),"DEF"),GATE:n?()=>n(o):void 0})}else wd(i)}f(M8,"TG");function dT(e,t){let r=ute(e,t),i=e.parser.getRule(r);if(!i)throw new Error(`Rule "${r}" not found."`);return i}f(dT,"WA");function ute(e,t){if(Zp(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,i=r.$container,n=t.$type;for(;!Ws(i);)(Jp(i)||Nk(i)||Bk(i))&&(n=i.elements.indexOf(r).toString()+":"+n),r=i,i=i.$container;return n=i.name+":"+n,e.ruleNames.set(t,n),n}}f(ute,"h3e");function pT(e,t){let r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}f(pT,"P5");function O8(e){let t=e.Grammar,r=e.parser.Lexer,i=new Sae(e);return uT(t,i,r.definition),i.finalize(),i}f(O8,"CG");function $8(e){let t=B8(e);return t.finalize(),t}f($8,"kG");function B8(e){let t=e.Grammar,r=e.parser.Lexer,i=new Cae(e);return uT(t,i,r.definition)}f(B8,"wG");function gT(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}f(gT,"UA");function fT(){return W5=performance.now(),new yn.CancellationTokenSource}f(fT,"HA");function P8(e){Aae=e}f(P8,"EG");function g0(e){return e===Vc}f(g0,"cm");async function es(e){if(e===yn.CancellationToken.None)return;let t=performance.now();if(t-W5>=Aae&&(W5=t,await gT(),W5=performance.now()),e.isCancellationRequested)throw Vc}f(es,"la");function mT(e,t){if(e.length<=1)return e;let r=e.length/2|0,i=e.slice(0,r),n=e.slice(r);mT(i,t),mT(n,t);let a=0,o=0,l=0;for(;a<i.length&&o<n.length;)t(i[a],n[o])<=0?e[l++]=i[a++]:e[l++]=n[o++];for(;a<i.length;)e[l++]=i[a++];for(;o<n.length;)e[l++]=n[o++];return e}f(mT,"F5");function F8(e,t,r=0){let i=t?[r]:[];for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);z8(a)&&(a===13&&n+1<e.length&&e.charCodeAt(n+1)===10&&n++,i.push(r+n+1))}return i}f(F8,"qF");function z8(e){return e===13||e===10}f(z8,"AG");function q8(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}f(q8,"_G");function dte(e){let t=q8(e.range);return t!==e.range?{newText:e.newText,range:t}:e}f(dte,"f3e");function j8(e){return typeof e.name=="string"}f(j8,"RG");function G8(e){return typeof e.$comment=="string"}f(G8,"NG");function U8(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}f(U8,"HF");function f0(e){return{code:e}}f(f0,"O0");function V8(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=Gk(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=PA(e.node.$cstNode,e.keyword,e.index)),t!=null||(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}f(V8,"IG");function Y2(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}f(Y2,"J2");function W8(e){switch(e){case"error":return f0(Xl.LexingError);case"warning":return f0(Xl.LexingWarning);case"info":return f0(Xl.LexingInfo);case"hint":return f0(Xl.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}f(W8,"OG");function yT(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}f(yT,"KA");function vT(e){return e&&"modes"in e&&"defaultMode"in e}f(vT,"ZA");function bT(e){return!yT(e)&&!vT(e)}f(bT,"G5");function H8(e,t,r){let i,n;typeof e=="string"?(n=t,i=r):(n=e.range.start,i=t),n||(n=Ki.create(0,0));let a=X8(e),o=kT(i),l=pte({lines:a,position:n,options:o});return mte({index:0,tokens:l,position:n})}f(H8,"FG");function Y8(e,t){let r=kT(t),i=X8(e);if(i.length===0)return!1;let n=i[0],a=i[i.length-1],o=r.start,l=r.end;return!!(o!=null&&o.exec(n))&&!!(l!=null&&l.exec(a))}f(Y8,"$G");function X8(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(Nre)}f(X8,"zG");function pte(e){var n,a,o;let t=[],r=e.position.line,i=e.position.character;for(let l=0;l<e.lines.length;l++){let h=l===0,u=l===e.lines.length-1,d=e.lines[l],p=0;if(h&&e.options.start){let g=(n=e.options.start)==null?void 0:n.exec(d);g&&(p=g.index+g[0].length)}else{let g=(a=e.options.line)==null?void 0:a.exec(d);g&&(p=g.index+g[0].length)}if(u){let g=(o=e.options.end)==null?void 0:o.exec(d);g&&(d=d.substring(0,g.index))}if(d=d.substring(0,fte(d)),xT(d,p)>=d.length){if(t.length>0){let g=Ki.create(r,i);t.push({type:"break",content:"",range:Ri.create(g,g)})}}else{Qae.lastIndex=p;let g=Qae.exec(d);if(g){let m=g[0],y=g[1],x=Ki.create(r,i+p),C=Ki.create(r,i+p+m.length);t.push({type:"tag",content:y,range:Ri.create(x,C)}),p+=m.length,p=xT(d,p)}if(p<d.length){let m=d.substring(p),y=Array.from(m.matchAll(Qet));t.push(...gte(y,m,r,i+p))}}r++,i=0}return t.length>0&&t[t.length-1].type==="break"?t.slice(0,-1):t}f(pte,"B3e");function gte(e,t,r,i){let n=[];if(e.length===0){let a=Ki.create(r,i),o=Ki.create(r,i+t.length);n.push({type:"text",content:t,range:Ri.create(a,o)})}else{let a=0;for(let l of e){let h=l.index,u=t.substring(a,h);u.length>0&&n.push({type:"text",content:t.substring(a,h),range:Ri.create(Ki.create(r,a+i),Ki.create(r,h+i))});let d=u.length+1,p=l[1];if(n.push({type:"inline-tag",content:p,range:Ri.create(Ki.create(r,a+d+i),Ki.create(r,a+d+p.length+i))}),d+=p.length,l.length===4){d+=l[2].length;let g=l[3];n.push({type:"text",content:g,range:Ri.create(Ki.create(r,a+d+i),Ki.create(r,a+d+g.length+i))})}else n.push({type:"text",content:"",range:Ri.create(Ki.create(r,a+d+i),Ki.create(r,a+d+i))});a=h+l[0].length}let o=t.substring(a);o.length>0&&n.push({type:"text",content:o,range:Ri.create(Ki.create(r,a+i),Ki.create(r,a+i+o.length))})}return n}f(gte,"F3e");function xT(e,t){let r=e.substring(t).match(Jet);return r?t+r.index:e.length}f(xT,"V5");function fte(e){let t=e.match(ett);if(t&&typeof t.index=="number")return t.index}f(fte,"$3e");function mte(e){var a,o,l,h;let t=Ki.create(e.position.line,e.position.character);if(e.tokens.length===0)return new Jae([],Ri.create(t,t));let r=[];for(;e.index<e.tokens.length;){let u=yte(e,r[r.length-1]);u&&r.push(u)}let i=(o=(a=r[0])==null?void 0:a.range.start)!=null?o:t,n=(h=(l=r[r.length-1])==null?void 0:l.range.end)!=null?h:t;return new Jae(r,Ri.create(i,n))}f(mte,"z3e");function yte(e,t){let r=e.tokens[e.index];if(r.type==="tag")return Z8(e,!1);if(r.type==="text"||r.type==="inline-tag")return K8(e);vte(r,t),e.index++}f(yte,"G3e");function vte(e,t){if(t){let r=new ese("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}f(vte,"V3e");function K8(e){let t=e.tokens[e.index],r=t,i=t,n=[];for(;t&&t.type!=="break"&&t.type!=="tag";)n.push(bte(e)),i=t,t=e.tokens[e.index];return new ML(n,Ri.create(r.range.start,i.range.end))}f(K8,"GG");function bte(e){return e.tokens[e.index].type==="inline-tag"?Z8(e,!0):Q8(e)}f(bte,"W3e");function Z8(e,t){var n;let r=e.tokens[e.index++],i=r.content.substring(1);if(((n=e.tokens[e.index])==null?void 0:n.type)==="text")if(t){let a=Q8(e);return new NL(i,new ML([a],a.range),t,Ri.create(r.range.start,a.range.end))}else{let a=K8(e);return new NL(i,a,t,Ri.create(r.range.start,a.range.end))}else{let a=r.range;return new NL(i,new ML([],a),t,a)}}f(Z8,"VG");function Q8(e){let t=e.tokens[e.index++];return new ese(t.content,t.range)}f(Q8,"WG");function kT(e){if(!e)return kT({start:"/**",end:"*/",line:"*"});let{start:t,end:r,line:i}=e;return{start:TT(t,!0),end:TT(r,!1),line:TT(i,!0)}}f(kT,"QA");function TT(e,t){if(typeof e=="string"||typeof e=="object"){let r=typeof e=="string"?Uf(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return e}f(TT,"JE");function xte(e,t,r){var i,n;if(e==="linkplain"||e==="linkcode"||e==="link"){let a=t.indexOf(" "),o=t;if(a>0){let l=xT(t,a);o=t.substring(l),t=t.substring(0,a)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(o=`\`${o}\``),(n=(i=r.renderLink)==null?void 0:i.call(r,t,o))!=null?n:kte(t,o)}}f(xte,"q3e");function kte(e,t){try{return Vo.parse(e,!0),`[${t}](${e})`}catch(r){return e}}f(kte,"U3e");function J8(e){return e.endsWith(` 1189`)?` 1190`:` 1191 1192`}f(J8,"jF");function $o(e){return{documentation:{CommentProvider:N(t=>new rse(t),"CommentProvider"),DocumentationProvider:N(t=>new tse(t),"DocumentationProvider")},parser:{AsyncParser:N(t=>new ise(t),"AsyncParser"),GrammarConfig:N(t=>VA(t),"GrammarConfig"),LangiumParser:N(t=>$8(t),"LangiumParser"),CompletionParser:N(t=>O8(t),"CompletionParser"),ValueConverter:N(()=>new CL,"ValueConverter"),TokenBuilder:N(()=>new V5,"TokenBuilder"),Lexer:N(t=>new DL(t),"Lexer"),ParserErrorMessageProvider:N(()=>new wL,"ParserErrorMessageProvider"),LexerErrorMessageProvider:N(()=>new Zae,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:N(()=>new Wae,"AstNodeLocator"),AstNodeDescriptionProvider:N(t=>new Uae(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:N(t=>new Vae(t),"ReferenceDescriptionProvider")},references:{Linker:N(t=>new Dae(t),"Linker"),NameProvider:N(()=>new Nae,"NameProvider"),ScopeProvider:N(t=>new Pae(t),"ScopeProvider"),ScopeComputation:N(t=>new Oae(t),"ScopeComputation"),References:N(t=>new Mae(t),"References")},serializer:{Hydrator:N(t=>new ase(t),"Hydrator"),JsonSerializer:N(t=>new Fae(t),"JsonSerializer")},validation:{DocumentValidator:N(t=>new Gae(t),"DocumentValidator"),ValidationRegistry:N(t=>new qae(t),"ValidationRegistry")},shared:N(()=>e.shared,"shared")}}f($o,"rn");function Bo(e){return{ServiceRegistry:N(t=>new zae(t),"ServiceRegistry"),workspace:{LangiumDocuments:N(t=>new Iae(t),"LangiumDocuments"),LangiumDocumentFactory:N(t=>new Rae(t),"LangiumDocumentFactory"),DocumentBuilder:N(t=>new Yae(t),"DocumentBuilder"),IndexManager:N(t=>new Xae(t),"IndexManager"),WorkspaceManager:N(t=>new Kae(t),"WorkspaceManager"),FileSystemProvider:N(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:N(()=>new nse,"WorkspaceLock"),ConfigurationProvider:N(t=>new Hae(t),"ConfigurationProvider")},profilers:{}}}f(Bo,"nn");function Un(e,t,r,i,n,a,o,l,h){let u=[e,t,r,i,n,a,o,l,h].reduce(Kf,{});return t9(u)}f(Un,"Hr");function e9(e){if(e&&e[ose])for(let t of Object.values(e))e9(t);return e}f(e9,"qG");function t9(e,t){let r=new Proxy({},{deleteProperty:N(()=>!1,"deleteProperty"),set:N(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:N((i,n)=>n===ose?!0:r9(i,n,e,t||r),"get"),getOwnPropertyDescriptor:N((i,n)=>(r9(i,n,e,t||r),Object.getOwnPropertyDescriptor(i,n)),"getOwnPropertyDescriptor"),has:N((i,n)=>n in e,"has"),ownKeys:N(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}f(t9,"UG");function r9(e,t,r,i){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===lse)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){let n=r[t];e[t]=lse;try{e[t]=typeof n=="function"?n(i):t9(n,i)}catch(a){throw e[t]=a instanceof Error?a:void 0,a}return e[t]}else return}f(r9,"KF");function Kf(e,t){if(t){for(let[r,i]of Object.entries(t))if(i!=null)if(typeof i=="object"){let n=e[r];typeof n=="object"&&n!==null?e[r]=Kf(n,i):e[r]=Kf({},i)}else e[r]=i}return e}f(Kf,"iy");function Tte(){let e=Un(Bo(gl),att),t=Un($o({shared:e}),ntt);return e.ServiceRegistry.register(t),t}f(Tte,"tEe");function Po(e){var i;let t=Tte(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,Vo.parse(`memory:/${(i=r.name)!=null?i:"grammar"}.langium`)),r}f(Po,"xo");function Eje(e){return Wo.isInstance(e,lu.$type)}f(Eje,"iEe");function Sje(e){return Wo.isInstance(e,tw.$type)}f(Sje,"nEe");function _je(e){return Wo.isInstance(e,w1.$type)}f(_je,"aEe");function Aje(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}f(Aje,"sEe");function wte(e){return Wo.isInstance(e,cu.$type)}f(wte,"JA");function Lje(e){return Wo.isInstance(e,q0.$type)}f(Lje,"oEe");function Rje(e){return Wo.isInstance(e,Bv.$type)}f(Rje,"lEe");function Ije(e){return Wo.isInstance(e,S1.$type)}f(Ije,"cEe");function Dje(e){return Wo.isInstance(e,_1.$type)}f(Dje,"uEe");function Nje(e){return Wo.isInstance(e,A1.$type)}f(Nje,"hEe");function Mje(e){return Wo.isInstance(e,G0.$type)}f(Mje,"dEe");function Oje(e){return Wo.isInstance(e,hw.$type)}f(Oje,"fEe");function $je(e){return Wo.isInstance(e,I1.$type)}f($je,"pEe");function Bje(e){return Wo.isInstance(e,ds.$type)}f(Bje,"mEe");var Pje,X2,Fje,i9,zje,qje,N,jje,oi,Sd,wT,CT,n9,a9,ET,Cte,s9,Ete,ST,Ki,Ri,_T,Ste,o9,_te,Ate,Lte,Rte,l9,Ite,Dte,Nte,AT,Zf,Xh,Qf,_s,_d,LT,K2,Z2,Q2,c9,RT,Mte,Gje,Ote,$te,IT,Bte,h9,J2,Pte,Fte,zte,qte,jte,Gte,Ute,Vte,DT,Wte,Hte,Yte,Xte,Kte,Zte,Qte,Jte,ere,tre,rre,NT,ire,nre,are,sre,ore,lre,cre,hre,ure,dre,pre,gre,fre,u9,d9,mre,yre,vre,bre,xre,kre,Tre,wre,Uje,Cre,Vje,gt,ev,m0,tv,Jf,MT,Ere,Sre,Wje,Hje,_re,Yje,Xje,Kje,Zje,p9,Qje,e1,Are,Qn,g9,Jje,eGe,tGe,rGe,iGe,nGe,aGe,sGe,oGe,lGe,cGe,hGe,uGe,dGe,pGe,gGe,fGe,mGe,yGe,vGe,bGe,xGe,kGe,TGe,wGe,Lre,f9,m9,Pc,t1,Hs,r1,OT,y9,Rre,CGe,go,rv,i1,Fo,Ad,iv,$T,BT,Ld,PT,Rd,Id,nv,Dd,av,FT,Kh,zT,y0,qT,Fc,sv,jT,n1,a1,s1,v0,GT,UT,o1,VT,Gl,ov,b0,WT,x0,l1,HT,k0,fo,T0,Zh,w0,lv,C0,E0,YT,cv,S0,_0,c1,v9,jr,Qh,b9,x9,XT,k9,KT,ZT,Ire,EGe,QT,SGe,Dre,JT,Nre,Mre,_Ge,A0,Ore,T9,AGe,$re,LGe,RGe,zc,IGe,hl,Bre,DGe,NGe,hv,MGe,OGe,$Ge,BGe,PGe,FGe,Pre,Nd,Ul,zGe,e5,uv,qGe,$i,jGe,Fre,zre,GGe,UGe,VGe,WGe,HGe,ul,qre,YGe,XGe,KGe,ZGe,QGe,jre,JGe,eUe,dv,h1,tUe,rUe,iUe,nUe,Jh,aUe,w9,Gre,sUe,oUe,lUe,L0,cUe,hUe,uUe,dUe,pUe,gUe,fUe,mUe,yUe,R0,vUe,C9,Ure,bUe,xUe,kUe,ja,TUe,wUe,CUe,EUe,SUe,_Ue,AUe,t5,LUe,RUe,IUe,DUe,Vre,Wre,NUe,MUe,E9,Hre,OUe,$Ue,r5,S9,pv,BUe,PUe,i5,gv,Yre,FUe,_9,zUe,A9,qc,n5,qUe,jUe,fv,GUe,UUe,Xre,Kre,VUe,WUe,HUe,a5,YUe,Zre,Qre,XUe,Jre,KUe,ZUe,mv,QUe,JUe,eVe,tVe,rVe,iVe,nVe,aVe,sVe,oVe,lVe,cVe,hVe,uVe,dVe,pVe,gVe,fVe,mVe,yVe,vVe,bVe,xVe,kVe,An,TVe,yv,eie,vv,wVe,L9,CVe,Md,tie,EVe,R9,SVe,_Ve,rie,iie,AVe,LVe,RVe,IVe,nie,zo,DVe,NVe,MVe,qo,OVe,$Ve,BVe,PVe,s5,FVe,zVe,I9,qVe,bv,jVe,GVe,UVe,VVe,WVe,HVe,YVe,XVe,KVe,ZVe,QVe,aie,JVe,o5,eWe,tWe,rWe,iWe,nWe,aWe,l5,sWe,xv,oWe,lWe,c5,cWe,hWe,uWe,dWe,h5,pWe,gWe,fWe,mWe,yWe,vWe,bWe,xWe,kWe,u5,TWe,kv,D9,wWe,N9,sie,CWe,M9,Vl,EWe,oie,lie,SWe,_We,AWe,LWe,RWe,IWe,DWe,Tv,NWe,MWe,cie,hie,OWe,uie,die,$We,O9,pie,BWe,PWe,gie,FWe,$9,zWe,qWe,jWe,fie,GWe,mie,B9,yie,UWe,P9,VWe,F9,WWe,u1,vie,HWe,bie,xie,kie,Tie,YWe,XWe,KWe,ZWe,QWe,I0,d1,JWe,eHe,tHe,rHe,d5,z9,iHe,nHe,aHe,wie,Cie,sHe,oHe,lHe,cHe,hHe,uHe,dHe,pHe,gHe,fHe,mHe,yHe,vHe,bHe,xHe,kHe,THe,wHe,CHe,EHe,SHe,_He,AHe,LHe,RHe,Eie,IHe,DHe,NHe,MHe,Sie,OHe,$He,BHe,PHe,FHe,_ie,zHe,qHe,jHe,GHe,Aie,UHe,VHe,WHe,Lie,HHe,YHe,XHe,KHe,ZHe,QHe,JHe,eYe,tYe,rYe,iYe,nYe,aYe,sYe,oYe,lYe,fn,cYe,hYe,cs,wv,uYe,dYe,pYe,q9,Rie,j9,gYe,fYe,Iie,mYe,G9,yYe,vYe,bYe,xYe,kYe,TYe,wYe,CYe,EYe,SYe,_Ye,AYe,LYe,Die,U9,RYe,IYe,DYe,NYe,MYe,OYe,Nie,Mie,p5,$Ye,Oie,BYe,$ie,PYe,FYe,zYe,Bie,qYe,Pie,jYe,GYe,Fie,UYe,VYe,WYe,HYe,YYe,XYe,KYe,jc,ZYe,QYe,JYe,eXe,tXe,rXe,iXe,D0,nXe,aXe,zie,sXe,oXe,V9,qie,jie,lXe,cXe,hXe,g5,N0,hs,Cv,uXe,Xr,dXe,pXe,Wl,Gie,dl,gXe,fXe,mXe,yXe,p1,Hl,vXe,Dr,pl,bXe,xXe,kXe,TXe,wXe,CXe,EXe,Ur,SXe,mo,_Xe,Ga,AXe,Ys,LXe,Uie,RXe,IXe,DXe,NXe,mn,MXe,OXe,Vie,$Xe,eu,tu,BXe,PXe,FXe,zXe,Yl,qXe,jo,f5,jXe,Wie,GXe,UXe,VXe,WXe,HXe,W9,Gc,Xs,g1,yo,us,Go,Uo,ra,vo,bo,Ln,f1,m5,Hie,YXe,y5,XXe,Yie,v5,KXe,M0,Ev,b5,Xie,ZXe,QXe,JXe,Sv,x5,Kie,Zie,H9,ma,_v,Ks,eKe,Qie,Jie,ene,tne,rne,ine,nne,ane,Od,m1,tKe,O0,rKe,iKe,nKe,k5,aKe,sne,sKe,one,ia,oKe,lne,lKe,Y9,cKe,cne,hne,une,dne,pne,T5,gne,hKe,uKe,dKe,X9,fne,pKe,gKe,fKe,$d,mKe,mne,yne,K9,Z9,Q9,w5,B5t,J9,yKe,vKe,C5,bKe,vne,xKe,kKe,TKe,wKe,CKe,EKe,E5,bne,xne,kne,Tne,SKe,_Ke,AKe,S5,ru,_5,xo,eL,LKe,wne,RKe,Cne,A5,IKe,DKe,NKe,MKe,OKe,$Ke,L5,BKe,PKe,FKe,zKe,qKe,Ene,jKe,GKe,iu,UKe,
vendor: 6,864 bytes, line 1192
1192Uc,Sne,VKe,WKe,Av,HKe,YKe,XKe,KKe,ZKe,QKe,_ne,y1,tL,JKe,eZe,tZe,rZe,Ane,iZe,rL,Lne,nZe,aZe,sZe,$0,oZe,lZe,cZe,hZe,uZe,dZe,pZe,gZe,fZe,v1,mZe,Lv,yZe,Rv,vZe,bZe,xZe,kZe,TZe,wZe,CZe,EZe,SZe,_Ze,AZe,Rne,LZe,RZe,R5,IZe,DZe,NZe,MZe,I5,OZe,$Ze,D5,BZe,PZe,FZe,Ine,zZe,Dne,qZe,jZe,Nne,GZe,Mne,UZe,iL,VZe,WZe,HZe,YZe,XZe,KZe,ZZe,QZe,JZe,eQe,tQe,rQe,iQe,One,nL,nQe,$ne,aQe,Zs,sQe,Bne,oQe,lQe,cQe,Pne,hQe,uQe,dQe,b1,pQe,Fne,zne,gQe,fQe,mQe,N5,yQe,qne,jne,vQe,Gne,bQe,xQe,M5,kQe,TQe,Une,wQe,aL,CQe,EQe,SQe,_Qe,AQe,LQe,RQe,IQe,DQe,NQe,MQe,OQe,$Qe,BQe,PQe,FQe,zQe,qQe,jQe,GQe,UQe,VQe,WQe,HQe,Rn,YQe,XQe,Vne,Iv,KQe,sL,ZQe,Wne,Hne,QQe,oL,JQe,eJe,tJe,rJe,Yne,iJe,nJe,aJe,sJe,oJe,Xne,O5,lL,Kne,lJe,cJe,hJe,uJe,dJe,cL,pJe,hL,gJe,x1,fJe,uL,Zne,mJe,Qne,Jne,eae,tae,yJe,vJe,bJe,xJe,kJe,B0,dL,TJe,rae,iae,$5,wJe,nae,CJe,aae,EJe,SJe,_Je,sae,AJe,oae,LJe,RJe,B5,IJe,DJe,pL,NJe,MJe,OJe,$Je,BJe,PJe,FJe,zJe,qJe,lae,cae,jJe,GJe,hae,UJe,P5,uae,VJe,WJe,HJe,YJe,XJe,KJe,ZJe,gL,QJe,JJe,eet,F5,tet,ret,iet,net,aet,set,z5,oet,nu,cet,het,Bd,uet,dae,pae,Dv,det,pet,get,fet,gae,fL,mL,fae,yL,q5,vL,met,yet,vet,mae,bet,yae,xet,ket,Tet,wet,Cet,Eet,_et,Aet,Let,Ret,Iet,Det,Net,Met,Oet,$et,Bet,bL,Pet,Fet,zet,qet,jet,Get,Uet,vae,bae,xae,Vet,kae,xL,j5,G5,Wet,kL,U5,Tae,wae,TL,Cae,Eae,wL,Sae,Het,_ae,Yet,V5,CL,au,yn,W5,Aae,Vc,su,Lae,EL,Xet,Vo,Nv,ko,SL,wi,Rae,Iae,P0,Dae,Nae,Mae,ou,H5,Oae,_L,Ket,$ae,Zet,Y5,AL,X5,Bae,LL,Pae,Fae,zae,RL,qae,jae,Gae,Xl,Uae,Vae,Wae,K5,Hae,Z5,k1,Yae,Xae,Kae,Zae,IL,DL,Qae,Qet,Jet,ett,Jae,NL,ML,ese,tse,rse,ise,ttt,rtt,nse,ase,sse,ose,lse,OL,T1,cse,itt,$L,hse,gl,ntt,att,stt,use,dse,pse,gse,fse,mse,yse,vse,bse,xse,kse,P5t,Q5,J5,Mv,BL,lu,ew,tw,Tse,rw,PL,w1,iw,F0,nw,aw,wse,C1,Wc,E1,z0,Ov,Cse,FL,sw,cu,Pd,zL,hu,Ese,ow,qL,q0,$v,Bv,Pv,jL,Fv,lw,j0,S1,cw,GL,_1,A1,G0,hw,UL,uw,U0,VL,L1,WL,R1,I1,HL,YL,zv,ds,Sse,Wo,XL,ott,KL,ltt,ZL,ctt,QL,htt,JL,utt,eR,dtt,tR,ptt,rR,gtt,iR,ftt,nR,mtt,ytt,vtt,btt,xtt,ktt,Ttt,wtt,Ctt,Ett,Stt,Hc,_tt,Att,Ltt,Rtt,Itt,Dtt,Ntt,Mtt,Ott,$tt,Btt,Ptt,Ftt,ztt,D1,qv,Yc,F5t,Aa=Y(()=>{"use strict";var e,t,r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j,D,P,F,U,z,V,W,X,J,H,te,ie,oe,he,pe,se,le,ue,de,we,De,Ge,be,qe,Ie,Be,ke,Qe,Pe,ht,Xe,dt,at,kt,Le,lt,ve,tt,Q,xe,ae,_e,Se,Je,Re,et,ze,Ke,We,nt,Te,bt,Ae,ft,Nt,Wt,Ht,Ft,Qt,Dt,Mt,$t,At,Kt,rr,ei,qt,Qr,or,Ar,li,ki,$e,zt,Rt,Or,ni,Wr,Ti,_i,Ai,aa,yi,hn,Ct,Zt,St,$r,Me,Qi,Fe,Ji,kl,rh,ku,ih,Tu,bn,to,rc,ic,wu,Cu;Pje=Object.create,X2=Object.defineProperty,Fje=Object.getOwnPropertyDescriptor,i9=Object.getOwnPropertyNames,zje=Object.getPrototypeOf,qje=Object.prototype.hasOwnProperty,N=s((q,T)=>X2(q,"name",{value:T,configurable:!0}),"__name"),jje=s((q,T)=>s(function(){return q&&(T=(0,q[i9(q)[0]])(q=0)),T},"__init"),"__esm"),oi=s((q,T)=>s(function(){return T||(0,q[i9(q)[0]])((T={exports:{}}).exports,T),T.exports},"__require"),"__commonJS"),Sd=s((q,T)=>{for(var L in T)X2(q,L,{get:T[L],enumerable:!0})},"__export"),wT=s((q,T,L,M)=>{if(T&&typeof T=="object"||typeof T=="function")for(let B of i9(T))!qje.call(q,B)&&B!==L&&X2(q,B,{get:s(()=>T[B],"get"),enumerable:!(M=Fje(T,B))||M.enumerable});return q},"__copyProps"),CT=s((q,T,L)=>(wT(q,T,"default"),L&&wT(L,T,"default")),"__reExport"),n9=s((q,T,L)=>(L=q!=null?Pje(zje(q)):{},wT(T||!q||!q.__esModule?X2(L,"default",{value:q,enumerable:!0}):L,q)),"__toESM"),a9=s(q=>wT(X2({},"__esModule",{value:!0}),q),"__toCommonJS"),ET={},Sd(ET,{AnnotatedTextEdit:s(()=>_d,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Qf,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>_s,"ChangeAnnotationIdentifier"),CodeAction:s(()=>nre,"CodeAction"),CodeActionContext:s(()=>ire,"CodeActionContext"),CodeActionKind:s(()=>rre,"CodeActionKind"),CodeActionTriggerKind:s(()=>NT,"CodeActionTriggerKind"),CodeDescription:s(()=>Nte,"CodeDescription"),CodeLens:s(()=>are,"CodeLens"),Color:s(()=>o9,"Color"),ColorInformation:s(()=>_te,"ColorInformation"),ColorPresentation:s(()=>Ate,"ColorPresentation"),Command:s(()=>Zf,"Command"),CompletionItem:s(()=>Ute,"CompletionItem"),CompletionItemKind:s(()=>Pte,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Gte,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>zte,"CompletionItemTag"),CompletionList:s(()=>Vte,"CompletionList"),CreateFile:s(()=>K2,"CreateFile"),DeleteFile:s(()=>Q2,"DeleteFile"),Diagnostic:s(()=>AT,"Diagnostic"),DiagnosticRelatedInformation:s(()=>l9,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Ite,"DiagnosticSeverity"),DiagnosticTag:s(()=>Dte,"DiagnosticTag"),DocumentHighlight:s(()=>Kte,"DocumentHighlight"),DocumentHighlightKind:s(()=>Xte,"DocumentHighlightKind"),DocumentLink:s(()=>ore,"DocumentLink"),DocumentSymbol:s(()=>tre,"DocumentSymbol"),DocumentUri:s(()=>Cte,"DocumentUri"),EOL:s(()=>Uje,"EOL"),FoldingRange:s(()=>Rte,"FoldingRange"),FoldingRangeKind:s(()=>Lte,"FoldingRangeKind"),FormattingOptions:s(()=>sre,"FormattingOptions"),Hover:s(()=>Wte,"Hover"),InlayHint:s(()=>mre,"InlayHint"),InlayHintKind:s(()=>u9,"InlayHintKind"),InlayHintLabelPart:s(()=>d9,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Tre,"InlineCompletionContext"),InlineCompletionItem:s(()=>vre,"InlineCompletionItem"),InlineCompletionList:s(()=>bre,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>xre,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>fre,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>gre,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>dre,"InlineValueText"),InlineValueVariableLookup:s(()=>pre,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>qte,"InsertReplaceEdit"),InsertTextFormat:s(()=>Fte,"InsertTextFormat"),InsertTextMode:s(()=>jte,"InsertTextMode"),Location:s(()=>_T,"Location"),LocationLink:s(()=>Ste,"LocationLink"),MarkedString:s(()=>DT,"MarkedString"),MarkupContent:s(()=>J2,"MarkupContent"),MarkupKind:s(()=>h9,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>IT,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hte,"ParameterInformation"),Position:s(()=>Ki,"Position"),Range:s(()=>Ri,"Range"),RenameFile:s(()=>Z2,"RenameFile"),SelectedCompletionInfo:s(()=>kre,"SelectedCompletionInfo"),SelectionRange:s(()=>lre,"SelectionRange"),SemanticTokenModifiers:s(()=>hre,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cre,"SemanticTokenTypes"),SemanticTokens:s(()=>ure,"SemanticTokens"),SignatureInformation:s(()=>Yte,"SignatureInformation"),StringValue:s(()=>yre,"StringValue"),SymbolInformation:s(()=>Jte,"SymbolInformation"),SymbolKind:s(()=>Zte,"SymbolKind"),SymbolTag:s(()=>Qte,"SymbolTag"),TextDocument:s(()=>Cre,"TextDocument"),TextDocumentEdit:s(()=>LT,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Ote,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Bte,"TextDocumentItem"),TextEdit:s(()=>Xh,"TextEdit"),URI:s(()=>s9,"URI"),VersionedTextDocumentIdentifier:s(()=>$te,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>Gje,"WorkspaceChange"),WorkspaceEdit:s(()=>c9,"WorkspaceEdit"),WorkspaceFolder:s(()=>
vendor: 30,848 bytes, lines 1192-1196
1192wre,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ere,"WorkspaceSymbol"),integer:s(()=>Ete,"integer"),uinteger:s(()=>ST,"uinteger")}),ev=jje({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-types/lib/esm/main.js"(){"use strict";var q,T,L,M;(function(B){function G(Z){return typeof Z=="string"}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(Cte||(Cte={})),(function(B){function G(Z){return typeof Z=="string"}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(s9||(s9={})),(function(B){B.MIN_VALUE=-2147483648,B.MAX_VALUE=2147483647;function G(Z){return typeof Z=="number"&&B.MIN_VALUE<=Z&&Z<=B.MAX_VALUE}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(Ete||(Ete={})),(function(B){B.MIN_VALUE=0,B.MAX_VALUE=2147483647;function G(Z){return typeof Z=="number"&&B.MIN_VALUE<=Z&&Z<=B.MAX_VALUE}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(ST||(ST={})),(function(B){function G(ee,K){return ee===Number.MAX_VALUE&&(ee=ST.MAX_VALUE),K===Number.MAX_VALUE&&(K=ST.MAX_VALUE),{line:ee,character:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&>.uinteger(K.line)&>.uinteger(K.character)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Ki||(Ki={})),(function(B){function G(ee,K,ne,fe){if(gt.uinteger(ee)&>.uinteger(K)&>.uinteger(ne)&>.uinteger(fe))return{start:Ki.create(ee,K),end:Ki.create(ne,fe)};if(Ki.is(ee)&&Ki.is(K))return{start:ee,end:K};throw new Error(`Range#create called with invalid arguments[${ee}, ${K}, ${ne}, ${fe}]`)}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ki.is(K.start)&&Ki.is(K.end)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Ri||(Ri={})),(function(B){function G(ee,K){return{uri:ee,range:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ri.is(K.range)&&(gt.string(K.uri)||gt.undefined(K.uri))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(_T||(_T={})),(function(B){function G(ee,K,ne,fe){return{targetUri:ee,targetRange:K,targetSelectionRange:ne,originSelectionRange:fe}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ri.is(K.targetRange)&>.string(K.targetUri)&&Ri.is(K.targetSelectionRange)&&(Ri.is(K.originSelectionRange)||gt.undefined(K.originSelectionRange))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Ste||(Ste={})),(function(B){function G(ee,K,ne,fe){return{red:ee,green:K,blue:ne,alpha:fe}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&>.numberRange(K.red,0,1)&>.numberRange(K.green,0,1)&>.numberRange(K.blue,0,1)&>.numberRange(K.alpha,0,1)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(o9||(o9={})),(function(B){function G(ee,K){return{range:ee,color:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ri.is(K.range)&&o9.is(K.color)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(_te||(_te={})),(function(B){function G(ee,K,ne){return{label:ee,textEdit:K,additionalTextEdits:ne}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&>.string(K.label)&&(gt.undefined(K.textEdit)||Xh.is(K))&&(gt.undefined(K.additionalTextEdits)||gt.typedArray(K.additionalTextEdits,Xh.is))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Ate||(Ate={})),(function(B){B.Comment="comment",B.Imports="imports",B.Region="region"})(Lte||(Lte={})),(function(B){function G(ee,K,ne,fe,Ne,Ee){let it={startLine:ee,endLine:K};return gt.defined(ne)&&(it.startCharacter=ne),gt.defined(fe)&&(it.endCharacter=fe),gt.defined(Ne)&&(it.kind=Ne),gt.defined(Ee)&&(it.collapsedText=Ee),it}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&>.uinteger(K.startLine)&>.uinteger(K.startLine)&&(gt.undefined(K.startCharacter)||gt.uinteger(K.startCharacter))&&(gt.undefined(K.endCharacter)||gt.uinteger(K.endCharacter))&&(gt.undefined(K.kind)||gt.string(K.kind))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Rte||(Rte={})),(function(B){function G(ee,K){return{location:ee,message:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&&_T.is(K.location)&>.string(K.message)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(l9||(l9={})),(function(B){B.Error=1,B.Warning=2,B.Information=3,B.Hint=4})(Ite||(Ite={})),(function(B){B.Unnecessary=1,B.Deprecated=2})(Dte||(Dte={})),(function(B){function G(Z){let ee=Z;return gt.objectLiteral(ee)&>.string(ee.href)}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(Nte||(Nte={})),(function(B){function G(ee,K,ne,fe,Ne,Ee){let it={range:ee,message:K};return gt.defined(ne)&&(it.severity=ne),gt.defined(fe)&&(it.code=fe),gt.defined(Ne)&&(it.source=Ne),gt.defined(Ee)&&(it.relatedInformation=Ee),it}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){var K;let ne=ee;return gt.defined(ne)&&Ri.is(ne.range)&>.string(ne.message)&&(gt.number(ne.severity)||gt.undefined(ne.severity))&&(gt.integer(ne.code)||gt.string(ne.code)||gt.undefined(ne.code))&&(gt.undefined(ne.codeDescription)||gt.string((K=ne.codeDescription)===null||K===void 0?void 0:K.href))&&(gt.string(ne.source)||gt.undefined(ne.source))&&(gt.undefined(ne.relatedInformation)||gt.typedArray(ne.relatedInformation,l9.is))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(AT||(AT={})),(function(B){function G(ee,K,...ne){let fe={title:ee,command:K};return gt.defined(ne)&&ne.length>0&&(fe.arguments=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.string(K.title)&>.string(K.command)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Zf||(Zf={})),(function(B){function G(ne,fe){return{range:ne,newText:fe}}f(G,"t"),s(G,"replace"),N(G,"replace"),B.replace=G;function Z(ne,fe){return{range:{start:ne,end:ne},newText:fe}}f(Z,"r"),s(Z,"insert"),N(Z,"insert"),B.insert=Z;function ee(ne){return{range:ne,newText:""}}f(ee,"i"),s(ee,"del"),N(ee,"del"),B.del=ee;function K(ne){let fe=ne;return gt.objectLiteral(fe)&>.string(fe.newText)&&Ri.is(fe.range)}f(K,"n"),s(K,"is"),N(K,"is"),B.is=K})(Xh||(Xh={})),(function(B){function G(ee,K,ne){let fe={label:ee};return K!==void 0&&(fe.needsConfirmation=K),ne!==void 0&&(fe.description=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&>.string(K.label)&&(gt.boolean(K.needsConfirmation)||K.needsConfirmation===void 0)&&(gt.string(K.description)||K.description===void 0)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Qf||(Qf={})),(function(B){function G(Z){let ee=Z;return gt.string(ee)}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(_s||(_s={})),(function(B){function G(ne,fe,Ne){return{range:ne,newText:fe,annotationId:Ne}}f(G,"t"),s(G,"replace"),N(G,"replace"),B.replace=G;function Z(ne,fe,Ne){return{range:{start:ne,end:ne},newText:fe,annotationId:Ne}}f(Z,"r"),s(Z,"insert"),N(Z,"insert"),B.insert=Z;function ee(ne,fe){return{range:ne,newText:"",annotationId:fe}}f(ee,"i"),s(ee,"del"),N(ee,"del"),B.del=ee;function K(ne){let fe=ne;return Xh.is(fe)&&(Qf.is(fe.annotationId)||_s.is(fe.annotationId))}f(K,"n"),s(K,"is"),N(K,"is"),B.is=K})(_d||(_d={})),(function(B){function G(ee,K){return{textDocument:ee,edits:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&&IT.is(K.textDocument)&&Array.isArray(K.edits)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(LT||(LT={})),(function(B){function G(ee,K,ne){let fe={kind:"create",uri:ee};return K!==void 0&&(K.overwrite!==void 0||K.ignoreIfExists!==void 0)&&(fe.options=K),ne!==void 0&&(fe.annotationId=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&&K.kind==="create"&>.string(K.uri)&&(K.options===void 0||(K.options.overwrite===void 0||gt.boolean(K.options.overwrite))&&(K.options.ignoreIfExists===void 0||gt.boolean(K.options.ignoreIfExists)))&&(K.annotationId===void 0||_s.is(K.annotationId))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(K2||(K2={})),(function(B){function G(ee,K,ne,fe){let Ne={kind:"rename",oldUri:ee,newUri:K};return ne!==void 0&&(ne.overwrite!==void 0||ne.ignoreIfExists!==void 0)&&(Ne.options=ne),fe!==void 0&&(Ne.annotationId=fe),Ne}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&&K.kind==="rename"&>.string(K.oldUri)&>.string(K.newUri)&&(K.options===void 0||(K.options.overwrite===void 0||gt.boolean(K.options.overwrite))&&(K.options.ignoreIfExists===void 0||gt.boolean(K.options.ignoreIfExists)))&&(K.annotationId===void 0||_s.is(K.annotationId))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Z2||(Z2={})),(function(B){function G(ee,K,ne){let fe={kind:"delete",uri:ee};return K!==void 0&&(K.recursive!==void 0||K.ignoreIfNotExists!==void 0)&&(fe.options=K),ne!==void 0&&(fe.annotationId=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&&K.kind==="delete"&>.string(K.uri)&&(K.options===void 0||(K.options.recursive===void 0||gt.boolean(K.options.recursive))&&(K.options.ignoreIfNotExists===void 0||gt.boolean(K.options.ignoreIfNotExists)))&&(K.annotationId===void 0||_s.is(K.annotationId))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Q2||(Q2={})),(function(B){function G(Z){let ee=Z;return ee&&(ee.changes!==void 0||ee.documentChanges!==void 0)&&(ee.documentChanges===void 0||ee.documentChanges.every(K=>gt.string(K.kind)?K2.is(K)||Z2.is(K)||Q2.is(K):LT.is(K)))}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(c9||(c9={})),RT=(q=class{constructor(G,Z){this.edits=G,this.changeAnnotations=Z}insert(G,Z,ee){let K,ne;if(ee===void 0?K=Xh.insert(G,Z):_s.is(ee)?(ne=ee,K=_d.insert(G,Z,ee)):(this.assertChangeAnnotations(this.changeAnnotations),ne=this.changeAnnotations.manage(ee),K=_d.insert(G,Z,ne)),this.edits.push(K),ne!==void 0)return ne}replace(G,Z,ee){let K,ne;if(ee===void 0?K=Xh.replace(G,Z):_s.is(ee)?(ne=ee,K=_d.replace(G,Z,ee)):(this.assertChangeAnnotations(this.changeAnnotations),ne=this.changeAnnotations.manage(ee),K=_d.replace(G,Z,ne)),this.edits.push(K),ne!==void 0)return ne}delete(G,Z){let ee,K;if(Z===void 0?ee=Xh.del(G):_s.is(Z)?(K=Z,ee=_d.del(G,Z)):(this.assertChangeAnnotations(this.changeAnnotations),K=this.changeAnnotations.manage(Z),ee=_d.del(G,K)),this.edits.push(ee),K!==void 0)return K}add(G){this.edits.push(G)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(G){if(G===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},f(q,"v2"),s(q,"TextEditChangeImpl"),N(q,"TextEditChangeImpl"),q),Mte=(T=class{constructor(G){this._annotations=G===void 0?Object.create(null):G,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(G,Z){let ee;if(_s.is(G)?ee=G:(ee=this.nextId(),Z=G),this._annotations[ee]!==void 0)throw new Error(`Id ${ee} is already in use.`);if(Z===void 0)throw new Error(`No annotation provided for id ${ee}`);return this._annotations[ee]=Z,this._size++,ee}nextId(){return this._counter++,this._counter.toString()}},f(T,"HP"),s(T,"ChangeAnnotations"),N(T,"ChangeAnnotations"),T),Gje=(L=class{constructor(G){this._textEditChanges=Object.create(null),G!==void 0?(this._workspaceEdit=G,G.documentChanges?(this._changeAnnotations=new Mte(G.changeAnnotations),G.changeAnnotations=this._changeAnnotations.all(),G.documentChanges.forEach(Z=>{if(LT.is(Z)){let ee=new RT(Z.edits,this._changeAnnotations);this._textEditChanges[Z.textDocument.uri]=ee}})):G.changes&&Object.keys(G.changes).forEach(Z=>{let ee=new RT(G.changes[Z]);this._textEditChanges[Z]=ee})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(G){if(IT.is(G)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let Z={uri:G.uri,version:G.version},ee=this._textEditChanges[Z.uri];if(!ee){let K=[],ne={textDocument:Z,edits:K};this._workspaceEdit.documentChanges.push(ne),ee=new RT(K,this._changeAnnotations),this._textEditChanges[Z.uri]=ee}return ee}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let Z=this._textEditChanges[G];if(!Z){let ee=[];this._workspaceEdit.changes[G]=ee,Z=new RT(ee),this._textEditChanges[G]=Z}return Z}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Mte,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(G,Z,ee){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let K;Qf.is(Z)||_s.is(Z)?K=Z:ee=Z;let ne,fe;if(K===void 0?ne=K2.create(G,ee):(fe=_s.is(K)?K:this._changeAnnotations.manage(K),ne=K2.create(G,ee,fe)),this._workspaceEdit.documentChanges.push(ne),fe!==void 0)return fe}renameFile(G,Z,ee,K){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let ne;Qf.is(ee)||_s.is(ee)?ne=ee:K=ee;let fe,Ne;if(ne===void 0?fe=Z2.create(G,Z,K):(Ne=_s.is(ne)?ne:this._changeAnnotations.manage(ne),fe=Z2.create(G,Z,K,Ne)),this._workspaceEdit.documentChanges.push(fe),Ne!==void 0)return Ne}deleteFile(G,Z,ee){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let K;Qf.is(Z)||_s.is(Z)?K=Z:ee=Z;let ne,fe;if(K===void 0?ne=Q2.create(G,ee):(fe=_s.is(K)?K:this._changeAnnotations.manage(K),ne=Q2.create(G,ee,fe)),this._workspaceEdit.documentChanges.push(ne),fe!==void 0)return fe}},f(L,"tve"),s(L,"WorkspaceChange"),N(L,"WorkspaceChange"),L),(function(B){function G(ee){return{uri:ee}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.string(K.uri)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Ote||(Ote={})),(function(B){function G(ee,K){return{uri:ee,version:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.string(K.uri)&>.integer(K.version)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})($te||($te={})),(function(B){function G(ee,K){return{uri:ee,version:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.string(K.uri)&&(K.version===null||gt.integer(K.version))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(IT||(IT={})),(function(B){function G(ee,K,ne,fe){return{uri:ee,languageId:K,version:ne,text:fe}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.string(K.uri)&>.string(K.languageId)&>.integer(K.version)&>.string(K.text)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(Bte||(Bte={})),(function(B){B.PlainText="plaintext",B.Markdown="markdown";function G(Z){let ee=Z;return ee===B.PlainText||ee===B.Markdown}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(h9||(h9={})),(function(B){function G(Z){let ee=Z;return gt.objectLiteral(Z)&&h9.is(ee.kind)&>.string(ee.value)}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(J2||(J2={})),(function(B){B.Text=1,B.Method=2,B.Function=3,B.Constructor=4,B.Field=5,B.Variable=6,B.Class=7,B.Interface=8,B.Module=9,B.Property=10,B.Unit=11,B.Value=12,B.Enum=13,B.Keyword=14,B.Snippet=15,B.Color=16,B.File=17,B.Reference=18,B.Folder=19,B.EnumMember=20,B.Constant=21,B.Struct=22,B.Event=23,B.Operator=24,B.TypeParameter=25})(Pte||(Pte={})),(function(B){B.PlainText=1,B.Snippet=2})(Fte||(Fte={})),(function(B){B.Deprecated=1})(zte||(zte={})),(function(B){function G(ee,K,ne){return{newText:ee,insert:K,replace:ne}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&>.string(K.newText)&&Ri.is(K.insert)&&Ri.is(K.replace)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(qte||(qte={})),(function(B){B.asIs=1,B.adjustIndentation=2})(jte||(jte={})),(function(B){function G(Z){let ee=Z;return ee&&(gt.string(ee.detail)||ee.detail===void 0)&&(gt.string(ee.description)||ee.description===void 0)}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(Gte||(Gte={})),(function(B){function G(Z){return{label:Z}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Ute||(Ute={})),(function(B){function G(Z,ee){return{items:Z||[],isIncomplete:!!ee}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Vte||(Vte={})),(function(B){function G(ee){return ee.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}f(G,"t"),s(G,"fromPlainText"),N(G,"fromPlainText"),B.fromPlainText=G;function Z(ee){let K=ee;return gt.string(K)||gt.objectLiteral(K)&>.string(K.language)&>.string(K.value)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(DT||(DT={})),(function(B){function G(Z){let ee=Z;return!!ee&>.objectLiteral(ee)&&(J2.is(ee.contents)||DT.is(ee.contents)||gt.typedArray(ee.contents,DT.is))&&(Z.range===void 0||Ri.is(Z.range))}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(Wte||(Wte={})),(function(B){function G(Z,ee){return ee?{label:Z,documentation:ee}:{label:Z}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Hte||(Hte={})),(function(B){function G(Z,ee,...K){let ne={label:Z};return gt.defined(ee)&&(ne.documentation=ee),gt.defined(K)?ne.parameters=K:ne.parameters=[],ne}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Yte||(Yte={})),(function(B){B.Text=1,B.Read=2,B.Write=3})(Xte||(Xte={})),(function(B){function G(Z,ee){let K={range:Z};return gt.number(ee)&&(K.kind=ee),K}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Kte||(Kte={})),(function(B){B.File=1,B.Module=2,B.Namespace=3,B.Package=4,B.Class=5,B.Method=6,B.Property=7,B.Field=8,B.Constructor=9,B.Enum=10,B.Interface=11,B.Function=12,B.Variable=13,B.Constant=14,B.String=15,B.Number=16,B.Boolean=17,B.Array=18,B.Object=19,B.Key=20,B.Null=21,B.EnumMember=22,B.Struct=23,B.Event=24,B.Operator=25,B.TypeParameter=26})(Zte||(Zte={})),(function(B){B.Deprecated=1})(Qte||(Qte={})),(function(B){function G(Z,ee,K,ne,fe){let Ne={name:Z,kind:ee,location:{uri:ne,range:K}};return fe&&(Ne.containerName=fe),Ne}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Jte||(Jte={})),(function(B){function G(Z,ee,K,ne){return ne!==void 0?{name:Z,kind:ee,location:{uri:K,range:ne}}:{name:Z,kind:ee,location:{uri:K}}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(ere||(ere={})),(function(B){function G(ee,K,ne,fe,Ne,Ee){let it={name:ee,detail:K,kind:ne,range:fe,selectionRange:Ne};return Ee!==void 0&&(it.children=Ee),it}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&>.string(K.name)&>.number(K.kind)&&Ri.is(K.range)&&Ri.is(K.selectionRange)&&(K.detail===void 0||gt.string(K.detail))&&(K.deprecated===void 0||gt.boolean(K.deprecated))&&(K.children===void 0||Array.isArray(K.children))&&(K.tags===void 0||Array.isArray(K.tags))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(tre||(tre={})),(function(B){B.Empty="",B.QuickFix="quickfix",B.Refactor="refactor",B.RefactorExtract="refactor.extract",B.RefactorInline="refactor.inline",B.RefactorRewrite="refactor.rewrite",B.Source="source",B.SourceOrganizeImports="source.organizeImports",B.SourceFixAll="source.fixAll"})(rre||(rre={})),(function(B){B.Invoked=1,B.Automatic=2})(NT||(NT={})),(function(B){function G(ee,K,ne){let fe={diagnostics:ee};return K!=null&&(fe.only=K),ne!=null&&(fe.triggerKind=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.typedArray(K.diagnostics,AT.is)&&(K.only===void 0||gt.typedArray(K.only,gt.string))&&(K.triggerKind===void 0||K.triggerKind===NT.Invoked||K.triggerKind===NT.Automatic)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(ire||(ire={})),(function(B){function G(ee,K,ne){let fe={title:ee},Ne=!0;return typeof K=="string"?(Ne=!1,fe.kind=K):Zf.is(K)?fe.command=K:fe.edit=K,Ne&&ne!==void 0&&(fe.kind=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K&>.string(K.title)&&(K.diagnostics===void 0||gt.typedArray(K.diagnostics,AT.is))&&(K.kind===void 0||gt.string(K.kind))&&(K.edit!==void 0||K.command!==void 0)&&(K.command===void 0||Zf.is(K.command))&&(K.isPreferred===void 0||gt.boolean(K.isPreferred))&&(K.edit===void 0||c9.is(K.edit))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(nre||(nre={})),(function(B){function G(ee,K){let ne={range:ee};return gt.defined(K)&&(ne.data=K),ne}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&&Ri.is(K.range)&&(gt.undefined(K.command)||Zf.is(K.command))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(are||(are={})),(function(B){function G(ee,K){return{tabSize:ee,insertSpaces:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&>.uinteger(K.tabSize)&>.boolean(K.insertSpaces)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(sre||(sre={})),(function(B){function G(ee,K,ne){return{range:ee,target:K,data:ne}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&&Ri.is(K.range)&&(gt.undefined(K.target)||gt.string(K.target))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(ore||(ore={})),(function(B){function G(ee,K){return{range:ee,parent:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ri.is(K.range)&&(K.parent===void 0||B.is(K.parent))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(lre||(lre={})),(function(B){B.namespace="namespace",B.type="type",B.class="class",B.enum="enum",B.interface="interface",B.struct="struct",B.typeParameter="typeParameter",B.parameter="parameter",B.variable="variable",B.property="property",B.enumMember="enumMember",B.event="event",B.function="function",B.method="method",B.macro="macro",B.keyword="keyword",B.modifier="modifier",B.comment="comment",B.string="string",B.number="number",B.regexp="regexp",B.operator="operator",B.decorator="decorator"})(cre||(cre={})),(function(B){B.declaration="declaration",B.definition="definition",B.readonly="readonly",B.static="static",B.deprecated="deprecated",B.abstract="abstract",B.async="async",B.modification="modification",B.documentation="documentation",B.defaultLibrary="defaultLibrary"})(hre||(hre={})),(function(B){function G(Z){let ee=Z;return gt.objectLiteral(ee)&&(ee.resultId===void 0||typeof ee.resultId=="string")&&Array.isArray(ee.data)&&(ee.data.length===0||typeof ee.data[0]=="number")}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(ure||(ure={})),(function(B){function G(ee,K){return{range:ee,text:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K!=null&&Ri.is(K.range)&>.string(K.text)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(dre||(dre={})),(function(B){function G(ee,K,ne){return{range:ee,variableName:K,caseSensitiveLookup:ne}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K!=null&&Ri.is(K.range)&>.boolean(K.caseSensitiveLookup)&&(gt.string(K.variableName)||K.variableName===void 0)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(pre||(pre={})),(function(B){function G(ee,K){return{range:ee,expression:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return K!=null&&Ri.is(K.range)&&(gt.string(K.expression)||K.expression===void 0)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(gre||(gre={})),(function(B){function G(ee,K){return{frameId:ee,stoppedLocation:K}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.defined(K)&&Ri.is(ee.stoppedLocation)}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(fre||(fre={})),(function(B){B.Type=1,B.Parameter=2;function G(Z){return Z===1||Z===2}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(u9||(u9={})),(function(B){function G(ee){return{value:ee}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&(K.tooltip===void 0||gt.string(K.tooltip)||J2.is(K.tooltip))&&(K.location===void 0||_T.is(K.location))&&(K.command===void 0||Zf.is(K.command))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(d9||(d9={})),(function(B){function G(ee,K,ne){let fe={position:ee,label:K};return ne!==void 0&&(fe.kind=ne),fe}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ee){let K=ee;return gt.objectLiteral(K)&&Ki.is(K.position)&&(gt.string(K.label)||gt.typedArray(K.label,d9.is))&&(K.kind===void 0||u9.is(K.kind))&&K.textEdits===void 0||gt.typedArray(K.textEdits,Xh.is)&&(K.tooltip===void 0||gt.string(K.tooltip)||J2.is(K.tooltip))&&(K.paddingLeft===void 0||gt.boolean(K.paddingLeft))&&(K.paddingRight===void 0||gt.boolean(K.paddingRight))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z})(mre||(mre={})),(function(B){function G(Z){return{kind:"snippet",value:Z}}f(G,"t"),s(G,"createSnippet"),N(G,"createSnippet"),B.createSnippet=G})(yre||(yre={})),(function(B){function G(Z,ee,K,ne){return{insertText:Z,filterText:ee,range:K,command:ne}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(vre||(vre={})),(function(B){function G(Z){return{items:Z}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(bre||(bre={})),(function(B){B.Invoked=0,B.Automatic=1})(xre||(xre={})),(function(B){function G(Z,ee){return{range:Z,text:ee}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(kre||(kre={})),(function(B){function G(Z,ee){return{triggerKind:Z,selectedCompletionInfo:ee}}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G})(Tre||(Tre={})),(function(B){function G(Z){let ee=Z;return gt.objectLiteral(ee)&&s9.is(ee.uri)&>.string(ee.name)}f(G,"t"),s(G,"is"),N(G,"is"),B.is=G})(wre||(wre={})),Uje=[` 1193`,`\r 1194`,"\r"],(function(B){function G(ne,fe,Ne,Ee){return new Vje(ne,fe,Ne,Ee)}f(G,"t"),s(G,"create"),N(G,"create"),B.create=G;function Z(ne){let fe=ne;return!!(gt.defined(fe)&>.string(fe.uri)&&(gt.undefined(fe.languageId)||gt.string(fe.languageId))&>.uinteger(fe.lineCount)&>.func(fe.getText)&>.func(fe.positionAt)&>.func(fe.offsetAt))}f(Z,"r"),s(Z,"is"),N(Z,"is"),B.is=Z;function ee(ne,fe){let Ne=ne.getText(),Ee=K(fe,(He,wt)=>{let Pt=He.range.start.line-wt.range.start.line;return Pt===0?He.range.start.character-wt.range.start.character:Pt}),it=Ne.length;for(let He=Ee.length-1;He>=0;He--){let wt=Ee[He],Pt=ne.offsetAt(wt.range.start),Xt=ne.offsetAt(wt.range.end);if(Xt<=it)Ne=Ne.substring(0,Pt)+wt.newText+Ne.substring(Xt,Ne.length);else throw new Error("Overlapping edit");it=Pt}return Ne}f(ee,"i"),s(ee,"applyEdits"),N(ee,"applyEdits"),B.applyEdits=ee;function K(ne,fe){if(ne.length<=1)return ne;let Ne=ne.length/2|0,Ee=ne.slice(0,Ne),it=ne.slice(Ne);K(Ee,fe),K(it,fe);let He=0,wt=0,Pt=0;for(;He<Ee.length&&wt<it.length;)fe(Ee[He],it[wt])<=0?ne[Pt++]=Ee[He++]:ne[Pt++]=it[wt++];for(;He<Ee.length;)ne[Pt++]=Ee[He++];for(;wt<it.length;)ne[Pt++]=it[wt++];return ne}f(K,"n"),s(K,"mergeSort2"),N(K,"mergeSort")})(Cre||(Cre={})),Vje=(M=class{constructor(G,Z,ee,K){this._uri=G,this._languageId=Z,this._version=ee,this._content=K,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(G){if(G){let Z=this.offsetAt(G.start),ee=this.offsetAt(G.end);return this._content.substring(Z,ee)}return this._content}update(G,Z){this._content=G.text,this._version=Z,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let G=[],Z=this._content,ee=!0;for(let K=0;K<Z.length;K++){ee&&(G.push(K),ee=!1);let ne=Z.charAt(K);ee=ne==="\r"||ne===` 1195`,ne==="\r"&&K+1<Z.length&&Z.charAt(K+1)===` 1196`&&K++}ee&&Z.length>0&&G.push(Z.length),this._lineOffsets=G}return this._lineOffsets}positionAt(G){G=Math.max(Math.min(G,this._content.length),0);let Z=this.getLineOffsets(),ee=0,K=Z.length;if(K===0)return Ki.create(0,G);for(;ee<K;){let fe=Math.floor((ee+K)/2);Z[fe]>G?K=fe:ee=fe+1}let ne=ee-1;return Ki.create(ne,G-Z[ne])}offsetAt(G){let Z=this.getLineOffsets();if(G.line>=Z.length)return this._content.length;if(G.line<0)return 0;let ee=Z[G.line],K=G.line+1<Z.length?Z[G.line+1]:this._content.length;return Math.max(Math.min(ee+G.character,K),ee)}get lineCount(){return this.getLineOffsets().length}},f(M,"m1e"),s(M,"FullTextDocument"),N(M,"FullTextDocument"),M),(function(B){let G=Object.prototype.toString;function Z(Xt){return typeof Xt<"u"}f(Z,"r"),s(Z,"defined"),N(Z,"defined"),B.defined=Z;function ee(Xt){return typeof Xt>"u"}f(ee,"i"),s(ee,"undefined2"),N(ee,"undefined"),B.undefined=ee;function K(Xt){return Xt===!0||Xt===!1}f(K,"n"),s(K,"boolean"),N(K,"boolean"),B.boolean=K;function ne(Xt){return G.call(Xt)==="[object String]"}f(ne,"a"),s(ne,"string"),N(ne,"string"),B.string=ne;function fe(Xt){return G.call(Xt)==="[object Number]"}f(fe,"s"),s(fe,"number"),N(fe,"number"),B.number=fe;function Ne(Xt,ar,lr){return G.call(Xt)==="[object Number]"&&ar<=Xt&&Xt<=lr}f(Ne,"l"),s(Ne,"numberRange"),N(Ne,"numberRange"),B.numberRange=Ne;function Ee(Xt){return G.call(Xt)==="[object Number]"&&-2147483648<=Xt&&Xt<=2147483647}f(Ee,"u"),s(Ee,"integer2"),N(Ee,"integer"),B.integer=Ee;function it(Xt){return G.call(Xt)==="[object Number]"&&0<=Xt&&Xt<=2147483647}f(it,"h"),s(it,"uinteger2"),N(it,"uinteger"),B.uinteger=it;function He(Xt){return G.call(Xt)==="[object Function]"}f(He,"d"),s(He,"func"),N(He,"func"),B.func=He;function wt(Xt){return Xt!==null&&typeof Xt=="object"}f(wt,"f"),s(wt,"objectLiteral"),N(wt,"objectLiteral"),B.objectLiteral=wt;function Pt(Xt,ar){return Array.isArray(Xt)&&Xt.every(ar)}f(Pt,"p"),s(Pt,"typedArray"),N(Pt,"typedArray"),B.typedArray=Pt})(gt||(gt={}))}}),m0=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/ral.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var T;function L(){if(T===void 0)throw new Error("No runtime abstraction layer installed");return T}f(L,"r"),s(L,"RAL"),N(L,"RAL"),(function(M){function B(G){if(G===void 0)throw new Error("No runtime abstraction layer provided");T=G}f(B,"n"),s(B,"install"),N(B,"install"),M.install=B})(L||(L={})),q.default=L}}),tv=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/is.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.stringArray=q.array=q.func=q.error=q.number=q.string=q.boolean=void 0;function T(K){return K===!0||K===!1}f(T,"t"),s(T,"boolean"),N(T,"boolean"),q.boolean=T;function L(K){return typeof K=="string"||K instanceof String}f(L,"r"),s(L,"string"),N(L,"string"),q.string=L;function M(K){return typeof K=="number"||K instanceof Number}f(M,"i"),s(M,"number"),N(M,"number"),q.number=M;function B(K){return K instanceof Error}f(B,"n"),s(B,"error"),N(B,"error"),q.error=B;function G(K){return typeof K=="function"}f(G,"a"),s(G,"func"),N(G,"func"),q.func=G;function Z(K){return Array.isArray(K)}f(Z,"s"),s(Z,"array"),N(Z,"array"),q.array=Z;function ee(K){return Z(K)&&K.every(ne=>L(ne))}f(ee,"l"),s(ee,"stringArray"),N(ee,"stringArray"),q.stringArray=ee}}),Jf=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/events.js"(q){"use strict";var G,Z;
vendor: 4,632 bytes, line 1196
1196Object.defineProperty(q,"__esModule",{value:!0}),q.Emitter=q.Event=void 0;var T=m0(),L;(function(ee){let K={dispose(){}};ee.None=function(){return K}})(L||(q.Event=L={}));var M=(G=class{add(K,ne=null,fe){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(K),this._contexts.push(ne),Array.isArray(fe)&&fe.push({dispose:N(()=>this.remove(K,ne),"dispose")})}remove(K,ne=null){if(!this._callbacks)return;let fe=!1;for(let Ne=0,Ee=this._callbacks.length;Ne<Ee;Ne++)if(this._callbacks[Ne]===K)if(this._contexts[Ne]===ne){this._callbacks.splice(Ne,1),this._contexts.splice(Ne,1);return}else fe=!0;if(fe)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...K){if(!this._callbacks)return[];let ne=[],fe=this._callbacks.slice(0),Ne=this._contexts.slice(0);for(let Ee=0,it=fe.length;Ee<it;Ee++)try{ne.push(fe[Ee].apply(Ne[Ee],K))}catch(He){(0,T.default)().console.error(He)}return ne}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},f(G,"i"),s(G,"CallbackList"),N(G,"CallbackList"),G),B=(Z=class{constructor(K){this._options=K}get event(){return this._event||(this._event=(K,ne,fe)=>{this._callbacks||(this._callbacks=new M),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(K,ne);let Ne={dispose:N(()=>{this._callbacks&&(this._callbacks.remove(K,ne),Ne.dispose=Z._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(fe)&&fe.push(Ne),Ne}),this._event}fire(K){this._callbacks&&this._callbacks.invoke.call(this._callbacks,K)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},f(Z,"ive"),s(Z,"_Emitter"),N(Z,"Emitter"),Z);q.Emitter=B,B._noop=function(){}}}),MT=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(q){"use strict";var K,ne;Object.defineProperty(q,"__esModule",{value:!0}),q.CancellationTokenSource=q.CancellationToken=void 0;var T=m0(),L=tv(),M=Jf(),B;(function(fe){fe.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:M.Event.None}),fe.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:M.Event.None});function Ne(Ee){let it=Ee;return it&&(it===fe.None||it===fe.Cancelled||L.boolean(it.isCancellationRequested)&&!!it.onCancellationRequested)}f(Ne,"h"),s(Ne,"is"),N(Ne,"is"),fe.is=Ne})(B||(q.CancellationToken=B={}));var G=Object.freeze(function(fe,Ne){let Ee=(0,T.default)().timer.setTimeout(fe.bind(Ne),0);return{dispose(){Ee.dispose()}}}),Z=(K=class{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?G:(this._emitter||(this._emitter=new M.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},f(K,"s"),s(K,"MutableToken"),N(K,"MutableToken"),K),ee=(ne=class{get token(){return this._token||(this._token=new Z),this._token}cancel(){this._token?this._token.cancel():this._token=B.Cancelled}dispose(){this._token?this._token instanceof Z&&this._token.dispose():this._token=B.None}},f(ne,"l"),s(ne,"CancellationTokenSource3"),N(ne,"CancellationTokenSource"),ne);q.CancellationTokenSource=ee}}),Ere=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/messages.js"(q){"use strict";var Gt,xt,st,vt,ct,ut,Et,Jt,cr,er,Lr,Rr,ci,ai,pi,Ii,ba,Ui,sn,Hn,en,hi,oa,Pi,Ha;Object.defineProperty(q,"__esModule",{value:!0}),q.Message=q.NotificationType9=q.NotificationType8=q.NotificationType7=q.NotificationType6=q.NotificationType5=q.NotificationType4=q.NotificationType3=q.NotificationType2=q.NotificationType1=q.NotificationType0=q.NotificationType=q.RequestType9=q.RequestType8=q.RequestType7=q.RequestType6=q.RequestType5=q.RequestType4=q.RequestType3=q.RequestType2=q.RequestType1=q.RequestType=q.RequestType0=q.AbstractMessageSignature=q.ParameterStructures=q.ResponseError=q.ErrorCodes=void 0;var T=tv(),L;(function(Dn){Dn.ParseError=-32700,Dn.InvalidRequest=-32600,Dn.MethodNotFound=-32601,Dn.InvalidParams=-32602,Dn.InternalError=-32603,Dn.jsonrpcReservedErrorRangeStart=-32099,Dn.serverErrorStart=-32099,Dn.MessageWriteError=-32099,Dn.MessageReadError=-32098,Dn.PendingResponseRejected=-32097,Dn.ConnectionInactive=-32096,Dn.ServerNotInitialized=-32002,Dn.UnknownErrorC
1196ode=-32001,Dn.jsonrpcReservedErrorRangeEnd=-32e3,Dn.serverErrorEnd=-32e3})(L||(q.ErrorCodes=L={}));var M=(Gt=class extends Error{constructor(yr,Ra,nh){super(Ra),this.code=T.number(yr)?yr:L.UnknownErrorCode,this.data=nh,Object.setPrototypeOf(this,Gt.prototype)}toJson(){let yr={code:this.code,message:this.message};return this.data!==void 0&&(yr.data=this.data),yr}},f(Gt,"ave"),s(Gt,"_ResponseError"),N(Gt,"ResponseError"),Gt);q.ResponseError=M;var B=(xt=class{constructor(yr){this.kind=yr}static is(yr){return yr===xt.auto||yr===xt.byName||yr===xt.byPosition}toString(){return this.kind}},f(xt,"zE"),s(xt,"_ParameterStructures"),N(xt,"ParameterStructures"),xt);q.ParameterStructures=B,B.auto=new B("auto"),B.byPosition=new B("byPosition"),B.byName=new B("byName");var G=(st=class{constructor(yr,Ra){this.method=yr,this.numberOfParams=Ra}get parameterStructures(){return B.auto}},f(st,"a"),s(st,"AbstractMessageSignature"),N(st,"AbstractMessageSignature"),st);q.AbstractMessageSignature=G;var Z=(vt=class extends G{constructor(yr){super(yr,0)}},f(vt,"s"),s(vt,"RequestType0"),N(vt,"RequestType0"),vt);q.RequestType0=Z;var ee=(ct=class extends G{constructor(yr,Ra=B.auto){super(yr,1),this._parameterStructures=Ra}get parameterStructures(){return this._parameterStructures}},f(ct,"l"),s(ct,"RequestType"),N(ct,"RequestType"),ct);q.RequestType=ee;var K=(ut=class extends G{constructor(yr,Ra=B.auto){super(yr,1),this._parameterStructures=Ra}get parameterStructures(){return this._parameterStructures}},f(ut,"u"),s(ut,"RequestType1"),N(ut,"RequestType1"),ut);q.RequestType1=K;var ne=(Et=class extends G{constructor(yr){super(yr,2)}},f(Et,"h"),s(Et,"RequestType2"),N(Et,"RequestType2"),Et);q.RequestType2=ne;var fe=(Jt=class extends G{constructor(yr){super(yr,3)}},f(Jt,"d"),s(Jt,"RequestType3"),N(Jt,"RequestType3"),Jt);q.RequestType3=fe;var Ne=(cr=class extends G{constructor(yr){super(yr,4)}},f(cr,"f"),s(cr,"RequestType4"),N(cr,"RequestType4"),cr);q.RequestType4=Ne;var Ee=(er=class extends G{constructor(yr){super(yr,5)}},f(er,"p"),s(er,"RequestType5"),N(er,"RequestType5"),er);q.RequestType5=Ee;var it=(Lr=class extends G{constructor(yr){super(yr,6)}},f(Lr,"m"),s(Lr,"RequestType6"),N(Lr,"RequestType6"),Lr);q.RequestType6=it;var He=(Rr=class extends G{constructor(yr){super(yr,7)}},f(Rr,"g"),s(Rr,"RequestType7"),N(Rr,"RequestType7"),Rr);q.RequestType7=He;var wt=(ci=class extends G{constructor(yr){super(yr,8)}},f(ci,"y"),s(ci,"RequestType8"),N(ci,"RequestType8"),ci);q.RequestType8=wt;var Pt=(ai=class extends G{constructor(yr){super(yr,9)}},f(ai,"v"),s(ai,"RequestType9"),N(ai,"RequestType9"),ai);q.RequestType9=Pt;var Xt=(pi=class extends G{constructor(yr,Ra=B.auto){super(yr,1),this._parameterStructures=Ra}get parameterStructures(){return this._parameterStructures}},f(pi,"x"),s(pi,"NotificationType"),N(pi,"NotificationType"),pi);q.NotificationType=Xt;var ar=(Ii=class extends G{constructor(yr){super(yr,0)}},f(Ii,"b"),s(Ii,"NotificationType0"),N(Ii,"NotificationType0"),Ii);q.NotificationType0=ar;var lr=(ba=class extends G{constructor(yr,Ra=B.auto){super(yr,1),this._parameterStructures=Ra}get parameterStructures(){return this._parameterStructures}},f(ba,"T"),s(ba,"NotificationType1"),N(ba,"NotificationType1"),ba);q.NotificationType1=lr;var Br=(Ui=class extends G{constructor(yr){super(yr,2)}},f(Ui,"w"),s(Ui,"NotificationType2"),N(Ui,"NotificationType2"),Ui);q.NotificationType2=Br;var ii=(sn=class extends G{constructor(yr){super(yr,3)}},f(sn,"C"),s(sn,"NotificationType3"),N(sn,"NotificationType3"),sn);q.NotificationType3=ii;var In=(Hn=class extends G{constructor(yr){super(yr,4)}},f(Hn,"k"),s(Hn,"NotificationType4"),N(Hn,"NotificationType4"),Hn);q.NotificationType4=In;var Gi=(en=class extends G{constructor(yr){super(yr,5)}},f(en,"E"),s(en,"NotificationType5"),N(en,"NotificationType5"),en);q.NotificationType5=Gi;var Wn=(hi=class extends G{constructor(yr){super(yr,6)}},f(hi,"A"),s(hi,"NotificationType6"),N(hi,"NotificationType6"),hi);q.NotificationType6=Wn;var sa=(oa=class extends G{constructor(yr){super(yr,7)}},f(oa,"N"),s(oa,"NotificationType7"),N(oa,"NotificationType7"),oa);q.NotificationType7=sa;var La=(Pi=class extends G{constructor(yr){super(yr,8)}},f(Pi,"P"),s(Pi,"NotificationType8"),N(Pi,"NotificationType8"),Pi);q.NotificationType8=La;var Bi=(Ha=class extends G{constructor(yr){super(yr,9)}},f(Ha,"I"),s(Ha,"NotificationType9"),N(Ha,"NotificationType9"),Ha);q.NotificationType9=Bi;var va;(function(Dn){function yr(nc){let Nn=nc;return Nn&&T.string(Nn.method)&&(T.string(Nn.id)||T.number(Nn.id))}f(yr,"R"),s(yr,"isRequest"),N(yr,"isRequest"),Dn.isRequest=yr;function Ra(nc){let Nn=nc;return Nn&&T.string(Nn.method)&&nc.id===void 0}f(Ra,"M"),s(Ra,"isNotification"),N(Ra,"isNotification"),Dn.isNotification=Ra;function nh(nc){let Nn=nc;return Nn&&(Nn.result!==void 0||!!Nn.error)&&(T.string(Nn.id)||T.number(Nn.id)||Nn.id===null)}f(nh,"L"),s(nh,"isResponse"),N(nh,"isResponse"),Dn.isResponse=nh})(va||(q.Message=va={}))}}),Sre=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(q){"use strict";var G,Z;var T;
vendor: 4,119 bytes, line 1196
1196Object.defineProperty(q,"__esModule",{value:!0}),q.LRUCache=q.LinkedMap=q.Touch=void 0;var L;(function(ee){ee.None=0,ee.First=1,ee.AsOld=ee.First,ee.Last=2,ee.AsNew=ee.Last})(L||(q.Touch=L={}));var M=(G=class{constructor(){this[T]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var K;return(K=this._head)==null?void 0:K.value}get last(){var K;return(K=this._tail)==null?void 0:K.value}has(K){return this._map.has(K)}get(K,ne=L.None){let fe=this._map.get(K);if(fe)return ne!==L.None&&this.touch(fe,ne),fe.value}set(K,ne,fe=L.None){let Ne=this._map.get(K);if(Ne)Ne.value=ne,fe!==L.None&&this.touch(Ne,fe);else{switch(Ne={key:K,value:ne,next:void 0,previous:void 0},fe){case L.None:this.addItemLast(Ne);break;case L.First:this.addItemFirst(Ne);break;case L.Last:this.addItemLast(Ne);break;default:this.addItemLast(Ne);break}this._map.set(K,Ne),this._size++}return this}delete(K){return!!this.remove(K)}remove(K){let ne=this._map.get(K);if(ne)return this._map.delete(K),this.removeItem(ne),this._size--,ne.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let K=this._head;return this._map.delete(K.key),this.removeItem(K),this._size--,K.value}forEach(K,ne){let fe=this._state,Ne=this._head;for(;Ne;){if(ne?K.bind(ne)(Ne.value,Ne.key,this):K(Ne.value,Ne.key,this),this._state!==fe)throw new Error("LinkedMap got modified during iteration.");Ne=Ne.next}}keys(){let K=this._state,ne=this._head,fe={[Symbol.iterator]:()=>fe,next:N(()=>{if(this._state!==K)throw new Error("LinkedMap got modified during iteration.");if(ne){let Ne={value:ne.key,done:!1};return ne=ne.next,Ne}else return{value:void 0,done:!0}},"next")};return fe}values(){let K=this._state,ne=this._head,fe={[Symbol.iterator]:()=>fe,next:N(()=>{if(this._state!==K)throw new Error("LinkedMap got modified during iteration.");if(ne){let Ne={value:ne.value,done:!1};return ne=ne.next,Ne}else return{value:void 0,done:!0}},"next")};return fe}entries(){let K=this._state,ne=this._head,fe={[Symbol.iterator]:()=>fe,next:N(()=>{if(this._state!==K)throw new Error("LinkedMap got modified during iteration.");if(ne){let Ne={value:[ne.key,ne.value],done:!1};return ne=ne.next,Ne}else return{value:void 0,done:!0}},"next")};return fe}[(T=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(K){if(K>=this.size)return;if(K===0){this.clear();return}let ne=this._head,fe=this.size;for(;ne&&fe>K;)this._map.delete(ne.key),ne=ne.next,fe--;this._head=ne,this._size=fe,ne&&(ne.previous=void 0),this._state++}addItemFirst(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K,this._state++}addItemLast(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K,this._state++}removeItem(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{let ne=K.next,fe=K.previous;if(!ne||!fe)throw new Error("Invalid list");ne.previous=fe,fe.next=ne}K.next=void 0,K.previous=void 0,this._state++}touch(K,ne){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(ne!==L.First&&ne!==L.Last)){if(ne===L.First){if(K===this._head)return;let fe=K.next,Ne=K.previous;K===this._tail?(Ne.next=void 0,this._tail=Ne):(fe.previous=Ne,Ne.next=fe),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K,this._state++}else if(ne===L.Last){if(K===this._tail)return;let fe=K.next,Ne=K.previous;K===this._head?(fe.previous=void 0,this._head=fe):(fe.previous=Ne,Ne.next=fe),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K,this._state
1196++}}}toJSON(){let K=[];return this.forEach((ne,fe)=>{K.push([fe,ne])}),K}fromJSON(K){this.clear();for(let[ne,fe]of K)this.set(ne,fe)}},f(G,"i"),s(G,"LinkedMap"),N(G,"LinkedMap"),G);q.LinkedMap=M;var B=(Z=class extends M{constructor(K,ne=1){super(),this._limit=K,this._ratio=Math.min(Math.max(0,ne),1)}get limit(){return this._limit}set limit(K){this._limit=K,this.checkTrim()}get ratio(){return this._ratio}set ratio(K){this._ratio=Math.min(Math.max(0,K),1),this.checkTrim()}get(K,ne=L.AsNew){return super.get(K,ne)}peek(K){return super.get(K,L.None)}set(K,ne){return super.set(K,ne,L.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},f(Z,"n"),s(Z,"LRUCache"),N(Z,"LRUCache"),Z);q.LRUCache=B}}),Wje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/disposable.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.Disposable=void 0;var T;(function(L){function M(B){return{dispose:B}}f(M,"i"),s(M,"create"),N(M,"create"),L.create=M})(T||(q.Disposable=T={}))}}),Hje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(q){"use strict";var ee,K,ne,fe;Object.defineProperty(q,"__esModule",{value:!0}),q.SharedArrayReceiverStrategy=q.SharedArraySenderStrategy=void 0;var T=MT(),L;(function(Ne){Ne.Continue=0,Ne.Cancelled=1})(L||(L={}));var M=(ee=class{constructor(){this.buffers=new Map}enableCancellation(Ee){if(Ee.id===null)return;let it=new SharedArrayBuffer(4),He=new Int32Array(it,0,1);He[0]=L.Continue,this.buffers.set(Ee.id,it),Ee.$cancellationData=it}async sendCancellation(Ee,it){let He=this.buffers.get(it);if(He===void 0)return;let wt=new Int32Array(He,0,1);Atomics.store(wt,0,L.Cancelled)}cleanup(Ee){this.buffers.delete(Ee)}dispose(){this.buffers.clear()}},f(ee,"i"),s(ee,"SharedArraySenderStrategy"),N(ee,"SharedArraySenderStrategy"),ee);q.SharedArraySenderStrategy=M;var B=(K=class{constructor(Ee){this.data=new Int32Array(Ee,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===L.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},f(K,"n"),s(K,"SharedArrayBufferCancellationToken"),N(K,"SharedArrayBufferCancellationToken"),K),G=(ne=class{constructor(Ee){this.token=new B(Ee)}cancel(){}dispose(){}},f(ne,"a"),s(ne,"SharedArrayBufferCancellationTokenSource"),N(ne,"SharedArrayBufferCancellationTokenSource"),ne),Z=(fe=class{constructor(){this.kind="request"}createCancellationTokenSource(Ee){let it=Ee.$cancellationData;return it===void 0?new T.CancellationTokenSource:new G(it)}},f(fe,"s"),s(fe,"SharedArrayReceiverStrategy"),N(fe,"SharedArrayReceiverStrategy"),fe);q.SharedArrayReceiverStrategy=Z}}),_re=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(q){"use strict";var M;Object.defineProperty(q,"__esModule",{value:!0}),q.Semaphore=void 0;var T=m0(),L=(M=class{constructor(G=1){if(G<=0)throw new Error("Capacity must be greater than 0");this._capacity=G,this._active=0,this._waiting=[]}lock(G){return new Promise((Z,ee)=>{this._waiting.push({thunk:G,resolve:Z,reject:ee}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,T.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let G=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let Z=G.thunk();Z instanceof Promise?Z.then(ee=>{this._active--,G.resolve(ee),this.runNext()},ee=>{this._active--,G.reject(ee),this.runNext()}):(this._active--,G.resolve(Z),this.runNext())}catch(Z){this._active--,G.reject(Z),this.runNext()}}},f(M,"r"),s(M,"Semaphore"),N(M,"Semaphore"),M);q.Semaphore=L}}),Yje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(q){"use strict";var ne,fe;Object.defineProperty(q,"__esModule",{value:!0}),q.ReadableStreamMessageReader=q.AbstractMessageReader=q.MessageReader=void 0;var T=m0(),L=tv(),M=Jf(),B=_re(),G;(function(Ne){function Ee(it){let He=it;
vendor: 8,822 bytes, lines 1196-1200
1196return He&&L.func(He.listen)&&L.func(He.dispose)&&L.func(He.onError)&&L.func(He.onClose)&&L.func(He.onPartialMessage)}f(Ee,"d"),s(Ee,"is"),N(Ee,"is"),Ne.is=Ee})(G||(q.MessageReader=G={}));var Z=(ne=class{constructor(){this.errorEmitter=new M.Emitter,this.closeEmitter=new M.Emitter,this.partialMessageEmitter=new M.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(Ee){this.errorEmitter.fire(this.asError(Ee))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(Ee){this.partialMessageEmitter.fire(Ee)}asError(Ee){return Ee instanceof Error?Ee:new Error(`Reader received error. Reason: ${L.string(Ee.message)?Ee.message:"unknown"}`)}},f(ne,"s"),s(ne,"AbstractMessageReader"),N(ne,"AbstractMessageReader"),ne);q.AbstractMessageReader=Z;var ee;(function(Ne){function Ee(it){var Br;let He,wt,Pt,Xt=new Map,ar,lr=new Map;if(it===void 0||typeof it=="string")He=it!=null?it:"utf-8";else{if(He=(Br=it.charset)!=null?Br:"utf-8",it.contentDecoder!==void 0&&(Pt=it.contentDecoder,Xt.set(Pt.name,Pt)),it.contentDecoders!==void 0)for(let ii of it.contentDecoders)Xt.set(ii.name,ii);if(it.contentTypeDecoder!==void 0&&(ar=it.contentTypeDecoder,lr.set(ar.name,ar)),it.contentTypeDecoders!==void 0)for(let ii of it.contentTypeDecoders)lr.set(ii.name,ii)}return ar===void 0&&(ar=(0,T.default)().applicationJson.decoder,lr.set(ar.name,ar)),{charset:He,contentDecoder:Pt,contentDecoders:Xt,contentTypeDecoder:ar,contentTypeDecoders:lr}}f(Ee,"d"),s(Ee,"fromOptions"),N(Ee,"fromOptions"),Ne.fromOptions=Ee})(ee||(ee={}));var K=(fe=class extends Z{constructor(Ee,it){super(),this.readable=Ee,this.options=ee.fromOptions(it),this.buffer=(0,T.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new B.Semaphore(1)}set partialMessageTimeout(Ee){this._partialMessageTimeout=Ee}get partialMessageTimeout(){return this._partialMessageTimeout}listen(Ee){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=Ee;let it=this.readable.onData(He=>{this.onData(He)});return this.readable.onError(He=>this.fireError(He)),this.readable.onClose(()=>this.fireClose()),it}onData(Ee){try{for(this.buffer.append(Ee);;){if(this.nextMessageLength===-1){let He=this.buffer.tryReadHeaders(!0);if(!He)return;let wt=He.get("content-length");if(!wt){this.fireError(new Error(`Header must provide a Content-Length property. 1197${JSON.stringify(Object.fromEntries(He))}`));return}let Pt=parseInt(wt);if(isNaN(Pt)){this.fireError(new Error(`Content-Length value must be a number. Got ${wt}`));return}this.nextMessageLength=Pt}let it=this.buffer.tryReadBody(this.nextMessageLength);if(it===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let He=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(it):it,wt=await this.options.contentTypeDecoder.decode(He,this.options);this.callback(wt)}).catch(He=>{this.fireError(He)})}}catch(it){this.fireError(it)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,T.default)().timer.setTimeout((Ee,it)=>{this.partialMessageTimer=void 0,Ee===this.messageToken&&(this.firePartialMessage({messageToken:Ee,waitingTime:it}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},f(fe,"u"),s(fe,"ReadableStreamMessageReader"),N(fe,"ReadableStreamMessageReader"),fe);q.ReadableStreamMessageReader=K}}),Xje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(q){"use strict";var Ne,Ee;Object.defineProperty(q,"__esModule",{value:!0}),q.WriteableStreamMessageWriter=q.AbstractMessageWriter=q.MessageWriter=void 0;var T=m0(),L=tv(),M=_re(),B=Jf(),G="Content-Length: ",Z=`\r 1198`,ee;(function(it){function He(wt){let Pt=wt;return Pt&&L.func(Pt.dispose)&&L.func(Pt.onClose)&&L.func(Pt.onError)&&L.func(Pt.write)}f(He,"p"),s(He,"is"),N(He,"is"),it.is=He})(ee||(q.MessageWriter=ee={}));var K=(Ne=class{constructor(){this.errorEmitter=new B.Emitter,this.closeEmitter=new B.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(He,wt,Pt){this.errorEmitter.fire([this.asError(He),wt,Pt])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(He){return He instanceof Error?He:new Error(`Writer received error. Reason: ${L.string(He.message)?He.message:"unknown"}`)}},f(Ne,"u"),s(Ne,"AbstractMessageWriter"),N(Ne,"AbstractMessageWriter"),Ne);q.AbstractMessageWriter=K;var ne;(function(it){function He(wt){var Pt,Xt;return wt===void 0||typeof wt=="string"?{charset:wt!=null?wt:"utf-8",contentTypeEncoder:(0,T.default)().applicationJson.encoder}:{charset:(Pt=wt.charset)!=null?Pt:"utf-8",contentEncoder:wt.contentEncoder,contentTypeEncoder:(Xt=wt.contentTypeEncoder)!=null?Xt:(0,T.default)().applicationJson.encoder}}f(He,"p"),s(He,"fromOptions"),N(He,"fromOptions"),it.fromOptions=He})(ne||(ne={}));var fe=(Ee=class extends K{constructor(He,wt){super(),this.writable=He,this.options=ne.fromOptions(wt),this.errorCount=0,this.writeSemaphore=new M.Semaphore(1),this.writable.onError(Pt=>this.fireError(Pt)),this.writable.onClose(()=>this.fireClose())}async write(He){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(He,this.options).then(wt=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(wt):wt).then(wt=>{let Pt=[];return Pt.push(G,wt.byteLength.toString(),Z),Pt.push(Z),this.doWrite(He,Pt,wt)},wt=>{throw this.fireError(wt),wt}))}async doWrite(He,wt,Pt){try{return await this.writable.write(wt.join(""),"ascii"),this.writable.write(Pt)}catch(Xt){return this.handleError(Xt,He),Promise.reject(Xt)}}handleError(He,wt){this.errorCount++,this.fireError(He,wt,this.errorCount)}end(){this.writable.end()}},f(Ee,"d"),s(Ee,"WriteableStreamMessageWriter"),N(Ee,"WriteableStreamMessageWriter"),Ee);q.WriteableStreamMessageWriter=fe}}),Kje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(q){"use strict";var G;Object.defineProperty(q,"__esModule",{value:!0}),q.AbstractMessageBuffer=void 0;var T=13,L=10,M=`\r 1199`,B=(G=class{constructor(ee="utf-8"){this._encoding=ee,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(ee){let K=typeof ee=="string"?this.fromString(ee,this._encoding):ee;this._chunks.push(K),this._totalLength+=K.byteLength}tryReadHeaders(ee=!1){if(this._chunks.length===0)return;let K=0,ne=0,fe=0,Ne=0;e:for(;ne<this._chunks.length;){let wt=this._chunks[ne];for(fe=0;fe<wt.length;){switch(wt[fe]){case T:switch(K){case 0:K=1;break;case 2:K=3;break;default:K=0}break;case L:switch(K){case 1:K=2;break;case 3:K=4,fe++;break e;default:K=0}break;default:K=0}fe++}Ne+=wt.byteLength,ne++}if(K!==4)return;let Ee=this._read(Ne+fe),it=new Map,He=this.toString(Ee,"ascii").split(M);if(He.length<2)return it;for(let wt=0;wt<He.length-2;wt++){let Pt=He[wt],Xt=Pt.indexOf(":");if(Xt===-1)throw new Error(`Message header must separate key and value using ':' 1200${Pt}`);let ar=Pt.substr(0,Xt),lr=Pt.substr(Xt+1).trim();it.set(ee?ar.toLowerCase():ar,lr)}return it}tryReadBody(ee){if(!(this._totalLength<ee))return this._read(ee)}get numberOfBytes(){return this._totalLength}_read(ee){if(ee===0)return this.emptyBuffer();if(ee>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===ee){let Ne=this._chunks[0];return this._chunks.shift(),this._totalLength-=ee,this.asNative(Ne)}if(this._chunks[0].byteLength>ee){let Ne=this._chunks[0],Ee=this.asNative(Ne,ee);return this._chunks[0]=Ne.slice(ee),this._totalLength-=ee,Ee}let K=this.allocNative(ee),ne=0,fe=0;for(;ee>0;){let Ne=this._chunks[fe];if(Ne.byteLength>ee){let Ee=Ne.slice(0,ee);K.set(Ee,ne),ne+=ee,this._chunks[fe]=Ne.slice(ee),this._totalLength-=ee,ee-=ee}else K.set(Ne,ne),ne+=Ne.byteLength,this._chunks.shift(),this._totalLength-=Ne.byteLength,ee-=Ne.byteLength}return K}},f(G,"n"),s(G,"AbstractMessageBuffer"),N(G,"AbstractMessageBuffer"),G);q.AbstractMessageBuffer=B}}),Zje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/connection.js"(q){"use strict";var Gt,xt;Object.defineProperty(q,"__esModule",{value:!0}),q.createMessageConnection=q.ConnectionOptions=q.MessageStrategy=q.CancellationStrategy=q.CancellationSe
vendor: 4,887 bytes, line 1200
1200nderStrategy=q.CancellationReceiverStrategy=q.RequestCancellationReceiverStrategy=q.IdCancellationReceiverStrategy=q.ConnectionStrategy=q.ConnectionError=q.ConnectionErrors=q.LogTraceNotification=q.SetTraceNotification=q.TraceFormat=q.TraceValues=q.Trace=q.NullLogger=q.ProgressType=q.ProgressToken=void 0;var T=m0(),L=tv(),M=Ere(),B=Sre(),G=Jf(),Z=MT(),ee;(function(st){st.type=new M.NotificationType("$/cancelRequest")})(ee||(ee={}));var K;(function(st){function vt(ct){return typeof ct=="string"||typeof ct=="number"}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(K||(q.ProgressToken=K={}));var ne;(function(st){st.type=new M.NotificationType("$/progress")})(ne||(ne={}));var fe=(Gt=class{constructor(){}},f(Gt,"d"),s(Gt,"ProgressType"),N(Gt,"ProgressType"),Gt);q.ProgressType=fe;var Ne;(function(st){function vt(ct){return L.func(ct)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(Ne||(Ne={})),q.NullLogger=Object.freeze({error:N(()=>{},"error"),warn:N(()=>{},"warn"),info:N(()=>{},"info"),log:N(()=>{},"log")});var Ee;(function(st){st[st.Off=0]="Off",st[st.Messages=1]="Messages",st[st.Compact=2]="Compact",st[st.Verbose=3]="Verbose"})(Ee||(q.Trace=Ee={}));var it;(function(st){st.Off="off",st.Messages="messages",st.Compact="compact",st.Verbose="verbose"})(it||(q.TraceValues=it={})),(function(st){function vt(ut){if(!L.string(ut))return st.Off;switch(ut=ut.toLowerCase(),ut){case"off":return st.Off;case"messages":return st.Messages;case"compact":return st.Compact;case"verbose":return st.Verbose;default:return st.Off}}f(vt,"R"),s(vt,"fromString"),N(vt,"fromString"),st.fromString=vt;function ct(ut){switch(ut){case st.Off:return"off";case st.Messages:return"messages";case st.Compact:return"compact";case st.Verbose:return"verbose";default:return"off"}}f(ct,"M"),s(ct,"toString4"),N(ct,"toString"),st.toString=ct})(Ee||(q.Trace=Ee={}));var He;(function(st){st.Text="text",st.JSON="json"})(He||(q.TraceFormat=He={})),(function(st){function vt(ct){return L.string(ct)?(ct=ct.toLowerCase(),ct==="json"?st.JSON:st.Text):st.Text}f(vt,"R"),s(vt,"fromString"),N(vt,"fromString"),st.fromString=vt})(He||(q.TraceFormat=He={}));var wt;(function(st){st.type=new M.NotificationType("$/setTrace")})(wt||(q.SetTraceNotification=wt={}));var Pt;(function(st){st.type=new M.NotificationType("$/logTrace")})(Pt||(q.LogTraceNotification=Pt={}));var Xt;(function(st){st[st.Closed=1]="Closed",st[st.Disposed=2]="Disposed",st[st.AlreadyListening=3]="AlreadyListening"})(Xt||(q.ConnectionErrors=Xt={}));var ar=(xt=class extends Error{constructor(vt,ct){super(ct),this.code=vt,Object.setPrototypeOf(this,xt.prototype)}},f(xt,"lve"),s(xt,"_ConnectionError"),N(xt,"ConnectionError"),xt);q.ConnectionError=ar;var lr;(function(st){function vt(ct){let ut=ct;return ut&&L.func(ut.cancelUndispatched)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(lr||(q.ConnectionStrategy=lr={}));var Br;(function(st){function vt(ct){let ut=ct;return ut&&(ut.kind===void 0||ut.kind==="id")&&L.func(ut.createCancellationTokenSource)&&(ut.dispose===void 0||L.func(ut.dispose))}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(Br||(q.IdCancellationReceiverStrategy=Br={}));var ii;(function(st){function vt(ct){let ut=ct;return ut&&ut.kind==="request"&&L.func(ut.createCancellationTokenSource)&&(ut.dispose===void 0||L.func(ut.dispose))}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(ii||(q.RequestCancellationReceiverStrategy=ii={}));var In;(function(st){st.Message=Object.freeze({createCancellationTokenSource(ct){return new Z.CancellationTokenSource}});function vt(ct){return Br.is(ct)||ii.is(ct)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(In||(q.CancellationReceiverStrategy=In={}));var Gi;(function(st){st.Message=Object.freeze({sendCancellation(ct,ut){return ct.sendNotification(ee.type,{id:ut})},cleanup(ct){}});function vt(ct){let ut=ct;return ut&&L.func(ut.sendCancellation)&&L.func(ut.cleanup)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(Gi||(q.CancellationSenderStrategy=Gi={}));var Wn;(function(st){st.Message=Object.freeze({receiver:In.Message,sender:Gi.Message});function vt(ct){let ut=ct;return ut&&In.is(ut.receiver)&&Gi.is(ut.sender)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(Wn||(q.CancellationStrategy=Wn={}));var sa;(function(st){function vt(ct){let ut=ct;return ut&&L.func(ut.handleMessage)}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(sa||(q.MessageStrategy=sa={}));var La;(function(st){function vt(ct){let ut=ct;return ut&&(Wn.is(ut.cancellationStrategy)||lr.is(ut.connectionStrategy)||sa.is(ut.messageStrategy))}f(vt,"R"),s(vt,"is"),N(vt,"is"),st.is=vt})(La||(q.ConnectionOptions=La={}));var Bi;(function(st){st[st.New=1]="New",st[st.Listening=2]="Listening",st[st.Closed=3]="Closed",st[st.Disposed=4]="Disposed"})(Bi||(Bi={}));function va(st,vt,ct,ut){let Et=ct!==void 0?ct:q.NullLogger,Jt=0,cr=0,er=0,Lr="2.0",Rr,ci=new Map,ai,pi=new Map,Ii=new Map,ba,Ui=new B.LinkedMap,sn=new Map,Hn=new Set,en=new Map,hi=Ee.Off,oa=He.Text,P
vendor: 10,488 bytes, lines 1200-1226
1200i,Ha=Bi.New,Dn=new G.Emitter,yr=new G.Emitter,Ra=new G.Emitter,nh=new G.Emitter,nc=new G.Emitter,Nn=ut&&ut.cancellationStrategy?ut.cancellationStrategy:Wn.Message;function em(Ye){if(Ye===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Ye.toString()}f(em,"rt"),s(em,"createRequestQueueKey"),N(em,"createRequestQueueKey");function pb(Ye){return Ye===null?"res-unknown-"+(++er).toString():"res-"+Ye.toString()}f(pb,"ke"),s(pb,"createResponseQueueKey"),N(pb,"createResponseQueueKey");function gb(){return"not-"+(++cr).toString()}f(gb,"Fe"),s(gb,"createNotificationQueueKey"),N(gb,"createNotificationQueueKey");function fb(Ye,It){M.Message.isRequest(It)?Ye.set(em(It.id),It):M.Message.isResponse(It)?Ye.set(pb(It.id),It):Ye.set(gb(),It)}f(fb,"He"),s(fb,"addMessageToQueue"),N(fb,"addMessageToQueue");function mb(Ye){}f(mb,"at"),s(mb,"cancelUndispatched"),N(mb,"cancelUndispatched");function tm(){return Ha===Bi.Listening}f(tm,"qe"),s(tm,"isListening"),N(tm,"isListening");function rm(){return Ha===Bi.Closed}f(rm,"Ue"),s(rm,"isClosed"),N(rm,"isClosed");function ah(){return Ha===Bi.Disposed}f(ah,"ye"),s(ah,"isDisposed"),N(ah,"isDisposed");function im(){(Ha===Bi.New||Ha===Bi.Listening)&&(Ha=Bi.Closed,yr.fire(void 0))}f(im,"ve"),s(im,"closeHandler"),N(im,"closeHandler");function yb(Ye){Dn.fire([Ye,void 0,void 0])}f(yb,"ie"),s(yb,"readErrorHandler"),N(yb,"readErrorHandler");function vb(Ye){Dn.fire(Ye)}f(vb,"fe"),s(vb,"writeErrorHandler"),N(vb,"writeErrorHandler"),st.onClose(im),st.onError(yb),vt.onClose(im),vt.onError(vb);function nm(){ba||Ui.size===0||(ba=(0,T.default)().timer.setImmediate(()=>{ba=void 0,bb()}))}f(nm,"W"),s(nm,"triggerMessageQueue"),N(nm,"triggerMessageQueue");function am(Ye){M.Message.isRequest(Ye)?xb(Ye):M.Message.isNotification(Ye)?Tb(Ye):M.Message.isResponse(Ye)?kb(Ye):wb(Ye)}f(am,"ce"),s(am,"handleMessage"),N(am,"handleMessage");function bb(){if(Ui.size===0)return;let Ye=Ui.shift();try{let It=ut==null?void 0:ut.messageStrategy;sa.is(It)?It.handleMessage(Ye,am):am(Ye)}finally{nm()}}f(bb,"K"),s(bb,"processMessageQueue"),N(bb,"processMessageQueue");let tD=N(Ye=>{try{if(M.Message.isNotification(Ye)&&Ye.method===ee.type.method){let It=Ye.params.id,sr=em(It),Sr=Ui.get(sr);if(M.Message.isRequest(Sr)){let kn=ut==null?void 0:ut.connectionStrategy,Mn=kn&&kn.cancelUndispatched?kn.cancelUndispatched(Sr,mb):void 0;if(Mn&&(Mn.error!==void 0||Mn.result!==void 0)){Ui.delete(sr),en.delete(It),Mn.id=Sr.id,Xd(Mn,Ye.method,Date.now()),vt.write(Mn).catch(()=>Et.error("Sending response for canceled message failed."));return}}let Yn=en.get(It);if(Yn!==void 0){Yn.cancel(),ag(Ye);return}else Hn.add(It)}fb(Ui,Ye)}finally{nm()}},"callback");function xb(Ye){var Rs;if(ah())return;function It(on,Da,On){let Na={jsonrpc:Lr,id:Ye.id};on instanceof M.ResponseError?Na.error=on.toJson():Na.result=on===void 0?null:on,Xd(Na,Da,On),vt.write(Na).catch(()=>Et.error("Sending response failed."))}f(It,"Qe"),s(It,"reply"),N(It,"reply");function sr(on,Da,On){let Na={jsonrpc:Lr,id:Ye.id,error:on.toJson()};Xd(Na,Da,On),vt.write(Na).catch(()=>Et.error("Sending response failed."))}f(sr,"nt"),s(sr,"replyError"),N(sr,"replyError");function Sr(on,Da,On){on===void 0&&(on=null);let Na={jsonrpc:Lr,id:Ye.id,result:on};Xd(Na,Da,On),vt.write(Na).catch(()=>Et.error("Sending response failed."))}f(Sr,"dt"),s(Sr,"replySuccess"),N(Sr,"replySuccess"),Sb(Ye);let Yn=ci.get(Ye.method),kn,Mn;Yn&&(kn=Yn.type,Mn=Yn.handler);let Ia=Date.now();if(Mn||Rr){let on=(Rs=Ye.id)!=null?Rs:String(Date.now()),Da=Br.is(Nn.receiver)?Nn.receiver.createCancellationTokenSource(on):Nn.receiver.createCancellationTokenSource(Ye);Ye.id!==null&&Hn.has(Ye.id)&&Da.cancel(),Ye.id!==null&&en.set(on,Da);try{let On;if(Mn)if(Ye.params===void 0){if(kn!==void 0&&kn.numberOfParams!==0){sr(new M.ResponseError(M.ErrorCodes.InvalidParams,`Request ${Ye.method} defines ${kn.numberOfParams} params but received none.`),Ye.method,Ia);return}On=Mn(Da.token)}else if(Array.isArray(Ye.params)){if(kn!==void 0&&kn.parameterStructures===M.ParameterStructures.byName){sr(new M.ResponseError(M.ErrorCodes.InvalidParams,`Request ${Ye.method} defines parameters by name but received parameters by position`),Ye.method,Ia);return}On=Mn(...Ye.params,Da.token)}else{if(kn!==void 0&&kn.parameterStructures===M.ParameterStructures.byPosition){sr(new M.ResponseError(M.ErrorCodes.InvalidParams,`Request ${Ye.method} defines parameters by position but received parameters by name`),Ye.method,Ia);return}On=Mn(Ye.params,Da.token)}else Rr&&(On=Rr(Ye.method,Ye.params,Da.token));let Na=On;On?Na.then?Na.then(fs=>{en.delete(on),It(fs,Ye.method,Ia)},fs=>{en.delete(on),fs instanceof M.ResponseError?sr(fs,Ye.method,Ia):fs&&L.string(fs.message)?sr(new M.ResponseError(M.ErrorCodes.InternalError,`Request ${Ye.method} failed with message: ${fs.message}`),Ye.method,Ia):sr(new M.ResponseError(M.ErrorCodes.InternalError,`Request ${Ye.method} failed unexpectedly without providing any details.`),Ye.method,Ia)}):(en.delete(on),It(On,Ye.method,Ia)):(en.delete(on),Sr(On,Ye.method,Ia))}catch(On){en.delete(on),On instanceof M.ResponseError?It(On,Ye.method,Ia):On&&L.string(On.message)?sr(new M.ResponseError(M.ErrorCodes.InternalError,`Request ${Ye.method} failed with message: ${On.message}`),Ye.method,Ia):sr(new M.ResponseError(M.ErrorCodes.InternalError,`Request ${Ye.method} failed unexpectedly without providing any details.`),Ye.method,Ia)}}else sr(new M.ResponseError(M.ErrorCodes.MethodNotFound,`Unhandled method ${Ye.method}`),Ye.method,Ia)}f(xb,"xe"),s(xb,"handleRequest"),N(xb,"handleRequest");function kb(Ye){if(!ah())if(Ye.id===null)Ye.error?Et.error(`Received response message without id: Error is: 1201${JSON.stringify(Ye.error,void 0,4)}`):Et.error("Received response message without id. No further error information provided.");else{let It=Ye.id,sr=sn.get(It);if(_b(Ye,sr),sr!==void 0){sn.delete(It);try{if(Ye.error){let Sr=Ye.error;sr.reject(new M.ResponseError(Sr.code,Sr.message,Sr.data))}else if(Ye.result!==void 0)sr.resolve(Ye.result);else throw new Error("Should never happen.")}catch(Sr){Sr.message?Et.error(`Response handler '${sr.method}' failed with message: ${Sr.message}`):Et.error(`Response handler '${sr.method}' failed unexpectedly.`)}}}}f(kb,"Oe"),s(kb,"handleResponse"),N(kb,"handleResponse");function Tb(Ye){if(ah())return;let It,sr;if(Ye.method===ee.type.method){let Sr=Ye.params.id;Hn.delete(Sr),ag(Ye);return}else{let Sr=pi.get(Ye.method);Sr&&(sr=Sr.handler,It=Sr.type)}if(sr||ai)try{if(ag(Ye),sr)if(Ye.params===void 0)It!==void 0&&It.numberOfParams!==0&&It.parameterStructures!==M.ParameterStructures.byName&&Et.error(`Notification ${Ye.method} defines ${It.numberOfParams} params but received none.`),sr();else if(Array.isArray(Ye.params)){let Sr=Ye.params;Ye.method===ne.type.method&&Sr.length===2&&K.is(Sr[0])?sr({token:Sr[0],value:Sr[1]}):(It!==void 0&&(It.parameterStructures===M.ParameterStructures.byName&&Et.error(`Notification ${Ye.method} defines parameters by name but received parameters by position`),It.numberOfParams!==Ye.params.length&&Et.error(`Notification ${Ye.method} defines ${It.numberOfParams} params but received ${Sr.length} arguments`)),sr(...Sr))}else It!==void 0&&It.parameterStructures===M.ParameterStructures.byPosition&&Et.error(`Notification ${Ye.method} defines parameters by position but received parameters by name`),sr(Ye.params);else ai&&ai(Ye.method,Ye.params)}catch(Sr){Sr.message?Et.error(`Notification handler '${Ye.method}' failed with message: ${Sr.message}`):Et.error(`Notification handler '${Ye.method}' failed unexpectedly.`)}else Ra.fire(Ye)}f(Tb,"be"),s(Tb,"handleNotification"),N(Tb,"handleNotification");function wb(Ye){if(!Ye){Et.error("Received empty message.");return}Et.error(`Received message which is neither a response nor a notification message: 1202${JSON.stringify(Ye,null,4)}`);let It=Ye;if(L.string(It.id)||L.number(It.id)){let sr=It.id,Sr=sn.get(sr);Sr&&Sr.reject(new Error("The received response has neither a result nor an error property."))}}f(wb,"Be"),s(wb,"handleInvalidMessage"),N(wb,"handleInvalidMessage");function Tl(Ye){if(Ye!=null)switch(hi){case Ee.Verbose:return JSON.stringify(Ye,null,4);case Ee.Compact:return JSON.stringify(Ye);default:return}}f(Tl,"Ae"),s(Tl,"stringifyTrace"),N(Tl,"stringifyTrace");function Cb(Ye){if(!(hi===Ee.Off||!Pi))if(oa===He.Text){let It;(hi===Ee.Verbose||hi===Ee.Compact)&&Ye.params&&(It=`Params: ${Tl(Ye.params)} 1203 1204`),Pi.log(`Sending request '${Ye.method} - (${Ye.id})'.`,It)}else sh("send-request",Ye)}f(Cb,"Ve"),s(Cb,"traceSendingRequest"),N(Cb,"traceSendingRequest");function Eb(Ye){if(!(hi===Ee.Off||!Pi))if(oa===He.Text){let It;(hi===Ee.Verbose||hi===Ee.Compact)&&(Ye.params?It=`Params: ${Tl(Ye.params)} 1205 1206`:It=`No parameters provided. 1207 1208`),Pi.log(`Sending notification '${Ye.method}'.`,It)}else sh("send-notification",Ye)}f(Eb,"Pe"),s(Eb,"traceSendingNotification"),N(Eb,"traceSendingNotification");function Xd(Ye,It,sr){if(!(hi===Ee.Off||!Pi))if(oa===He.Text){let Sr;(hi===Ee.Verbose||hi===Ee.Compact)&&(Ye.error&&Ye.error.data?Sr=`Error data: ${Tl(Ye.error.data)} 1209 1210`:Ye.result?Sr=`Result: ${Tl(Ye.result)} 1211 1212`:Ye.error===void 0&&(Sr=`No result returned. 1213 1214`)),Pi.log(`Sending response '${It} - (${Ye.id})'. Processing request took ${Date.now()-sr}ms`,Sr)}else sh("send-response",Ye)}f(Xd,"Ye"),s(Xd,"traceSendingResponse"),N(Xd,"traceSendingResponse");function Sb(Ye){if(!(hi===Ee.Off||!Pi))if(oa===He.Text){let It;(hi===Ee.Verbose||hi===Ee.Compact)&&Ye.params&&(It=`Params: ${Tl(Ye.params)} 1215 1216`),Pi.log(`Received request '${Ye.method} - (${Ye.id})'.`,It)}else sh("receive-request",Ye)}f(Sb,"le"),s(Sb,"traceReceivedRequest"),N(Sb,"traceReceivedRequest");function ag(Ye){if(!(hi===Ee.Off||!Pi||Ye.method===Pt.type.method))if(oa===He.Text){let It;(hi===Ee.Verbose||hi===Ee.Compact)&&(Ye.params?It=`Params: ${Tl(Ye.params)} 1217 1218`:It=`No parameters provided. 1219 1220`),Pi.log(`Received notification '${Ye.method}'.`,It)}else sh("receive-notification",Ye)}f(ag,"st"),s(ag,"traceReceivedNotification"),N(ag,"traceReceivedNotification");function _b(Ye,It){if(!(hi===Ee.Off||!Pi))if(oa===He.Text){let sr;if((hi===Ee.Verbose||hi===Ee.Compact)&&(Ye.error&&Ye.error.data?sr=`Error data: ${Tl(Ye.error.data)} 1221 1222`:Ye.result?sr=`Result: ${Tl(Ye.result)} 1223 1224`:Ye.error===void 0&&(sr=`No result returned. 1225 1226`)),It){let Sr=Ye.error?` Request failed: ${Ye.error.message} (${Ye.error.code}).`:"";Pi.log(`Received response '${It.method} - (${Ye.id})' in ${Date.now()-It.timerStart}
1226ms.${Sr}`,sr)}else Pi.log(`Received response ${Ye.id} without active response promise.`,sr)}else sh("receive-response",Ye)}f(_b,"me"),s(_b,"traceReceivedResponse"),N(_b,"traceReceivedResponse");function sh(Ye,It){if(!Pi||hi===Ee.Off)return;let sr={isLSPMessage:!0,type:Ye,message:It,timestamp:Date.now()};Pi.log(sr)}f(sh,"ot"),s(sh,"logLSPMessage"),N(sh,"logLSPMessage");function Eu(){if(rm())throw new ar(Xt.Closed,"Connection is closed.");if(ah())throw new ar(Xt.Disposed,"Connection is disposed.")}f(Eu,"kt"),s(Eu,"throwIfClosedOrDisposed"),N(Eu,"throwIfClosedOrDisposed");function Ab(){if(tm())throw new ar(Xt.AlreadyListening,"Connection is already listening")}f(Ab,"Gt"),s(Ab,"throwIfListening"),N(Ab,"throwIfListening");function Lb(){if(!tm())throw new Error("Call listen() first.")}f(Lb,"Tt"),s(Lb,"throwIfNotListening"),N(Lb,"throwIfNotListening");function Oe(Ye){return Ye===void 0?null:Ye}f(Oe,"Et"),s(Oe,"undefinedToNull"),N(Oe,"undefinedToNull");function vi(Ye){if(Ye!==null)return Ye}f(vi,"yt"),s(vi,"nullToUndefined"),N(vi,"nullToUndefined");function xn(Ye){return Ye!=null&&!Array.isArray(Ye)&&typeof Ye=="object"}f(xn,"oe"),s(xn,"isNamedParam"),N(xn,"isNamedParam");function si(Ye,It){switch(Ye){case M.ParameterStructures.auto:return xn(It)?vi(It):[Oe(It)];case M.ParameterStructures.byName:if(!xn(It))throw new Error("Received parameters by name but param is not an object literal.");return vi(It);case M.ParameterStructures.byPosition:return[Oe(It)];default:throw new Error(`Unknown parameter structure ${Ye.toString()}`)}}f(si,"ht"),s(si,"computeSingleParam"),N(si,"computeSingleParam");function xa(Ye,It){let sr,Sr=Ye.numberOfParams;switch(Sr){case 0:sr=void 0;break;case 1:sr=si(Ye.parameterStructures,It[0]);break;default:sr=[];for(let Yn=0;Yn<It.length&&Yn<Sr;Yn++)sr.push(Oe(It[Yn]));if(It.length<Sr)for(let Yn=It.length;Yn<Sr;Yn++)sr.push(null);break}return sr}f(xa,"gt"),s(xa,"computeMessageParams"),N(xa,"computeMessageParams");let Rb={sendNotification:N((Ye,...It)=>{Eu();let sr,Sr;if(L.string(Ye)){sr=Ye;let kn=It[0],Mn=0,Ia=M.ParameterStructures.auto;M.ParameterStructures.is(kn)&&(Mn=1,Ia=kn);let Rs=It.length,on=Rs-Mn;switch(on){case 0:Sr=void 0;break;case 1:Sr=si(Ia,It[Mn]);break;default:if(Ia===M.ParameterStructures.byName)throw new Error(`Received ${on} parameters for 'by Name' notification parameter structure.`);Sr=It.slice(Mn,Rs).map(Da=>Oe(Da));break}}else{let kn=It;sr=Ye.method,Sr=xa(Ye,kn)}let Yn={jsonrpc:Lr,method:sr,params:Sr};return Eb(Yn),vt.write(Yn).catch(kn=>{throw Et.error("Sending notification failed."),kn})},"sendNotification"),onNotification:N((Ye,It)=>{Eu();let sr;return L.func(Ye)?ai=Ye:It&&(L.string(Ye)?(sr=Ye,pi.set(Ye,{type:void 0,handler:It})):(sr=Ye.method,pi.set(Ye.method,{type:Ye,handler:It}))),{dispose:N(()=>{sr!==void 0?pi.delete(sr):ai=void 0},"dispose")}},"onNotification"),onProgress:N((Ye,It,sr)=>{if(Ii.has(It))throw new Error(`Progress handler for token ${It} already registered`);return Ii.set(It,sr),{dispose:N(()=>{Ii.delete(It)},"dispose")}},"onProgress"),sendProgress:N((Ye,It,sr)=>Rb.sendNotification(ne.type,{token:It,value:sr}),"sendProgress"),onUnhandledProgress:nh.event,sendRequest:N((Ye,...It)=>{Eu(),Lb();let sr,Sr,Yn;if(L.string(Ye)){sr=Ye;let Rs=It[0],on=It[It.length-1],Da=0,On=M.ParameterStructures.auto;M.ParameterStructures.is(Rs)&&(Da=1,On=Rs);let Na=It.length;Z.CancellationToken.is(on)&&(Na=Na-1,Yn=on);let fs=Na-Da;switch(fs){case 0:Sr=void 0;break;case 1:Sr=si(On,It[Da]);break;default:if(On===M.ParameterStructures.byName)throw new Error(`Received ${fs} parameters for 'by Name' request parameter structure.`);Sr=It.slice(Da,Na).map(c7t=>Oe(c7t));break}}else{let Rs=It;sr=Ye.method,Sr=xa(Ye,Rs);let on=Ye.numberOfParams;Yn=Z.CancellationToken.is(Rs[on])?Rs[on]:void 0}let kn=Jt++,Mn;Yn&&(Mn=Yn.onCancellationRequested(()=>{let Rs=Nn.sender.sendCancellation(Rb,kn);return Rs===void 0?(Et.log(`Received no promise from cancellation strategy when cancelling id ${kn}`),Promise.resolve()):Rs.catch(()=>
vendor: 9,917 bytes, line 1226
1226{Et.log(`Sending cancellation messages for id ${kn} failed`)})}));let Ia={jsonrpc:Lr,id:kn,method:sr,params:Sr};return Cb(Ia),typeof Nn.sender.enableCancellation=="function"&&Nn.sender.enableCancellation(Ia),new Promise(async(Rs,on)=>{let Da=N(fs=>{Rs(fs),Nn.sender.cleanup(kn),Mn==null||Mn.dispose()},"resolveWithCleanup"),On=N(fs=>{on(fs),Nn.sender.cleanup(kn),Mn==null||Mn.dispose()},"rejectWithCleanup"),Na={method:sr,timerStart:Date.now(),resolve:Da,reject:On};try{await vt.write(Ia),sn.set(kn,Na)}catch(fs){throw Et.error("Sending request failed."),Na.reject(new M.ResponseError(M.ErrorCodes.MessageWriteError,fs.message?fs.message:"Unknown reason")),fs}})},"sendRequest"),onRequest:N((Ye,It)=>{Eu();let sr=null;return Ne.is(Ye)?(sr=void 0,Rr=Ye):L.string(Ye)?(sr=null,It!==void 0&&(sr=Ye,ci.set(Ye,{handler:It,type:void 0}))):It!==void 0&&(sr=Ye.method,ci.set(Ye.method,{type:Ye,handler:It})),{dispose:N(()=>{sr!==null&&(sr!==void 0?ci.delete(sr):Rr=void 0)},"dispose")}},"onRequest"),hasPendingResponse:N(()=>sn.size>0,"hasPendingResponse"),trace:N(async(Ye,It,sr)=>{let Sr=!1,Yn=He.Text;sr!==void 0&&(L.boolean(sr)?Sr=sr:(Sr=sr.sendNotification||!1,Yn=sr.traceFormat||He.Text)),hi=Ye,oa=Yn,hi===Ee.Off?Pi=void 0:Pi=It,Sr&&!rm()&&!ah()&&await Rb.sendNotification(wt.type,{value:Ee.toString(Ye)})},"trace"),onError:Dn.event,onClose:yr.event,onUnhandledNotification:Ra.event,onDispose:nc.event,end:N(()=>{vt.end()},"end"),dispose:N(()=>{if(ah())return;Ha=Bi.Disposed,nc.fire(void 0);let Ye=new M.ResponseError(M.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let It of sn.values())It.reject(Ye);sn=new Map,en=new Map,Hn=new Set,Ui=new B.LinkedMap,L.func(vt.dispose)&&vt.dispose(),L.func(st.dispose)&&st.dispose()},"dispose"),listen:N(()=>{Eu(),Ab(),Ha=Bi.Listening,st.listen(tD)},"listen"),inspect:N(()=>{(0,T.default)().console.log("inspect")},"inspect")};return Rb.onNotification(Pt.type,Ye=>{if(hi===Ee.Off||!Pi)return;let It=hi===Ee.Verbose||hi===Ee.Compact;Pi.log(Ye.message,It?Ye.verbose:void 0)}),Rb.onNotification(ne.type,Ye=>{let It=Ii.get(Ye.token);It?It(Ye.value):nh.fire(Ye)}),Rb}f(va,"D"),s(va,"createMessageConnection"),N(va,"createMessageConnection"),q.createMessageConnection=va}}),p9=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/common/api.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ProgressType=q.ProgressToken=q.createMessageConnection=q.NullLogger=q.ConnectionOptions=q.ConnectionStrategy=q.AbstractMessageBuffer=q.WriteableStreamMessageWriter=q.AbstractMessageWriter=q.MessageWriter=q.ReadableStreamMessageReader=q.AbstractMessageReader=q.MessageReader=q.SharedArrayReceiverStrategy=q.SharedArraySenderStrategy=q.CancellationToken=q.CancellationTokenSource=q.Emitter=q.Event=q.Disposable=q.LRUCache=q.Touch=q.LinkedMap=q.ParameterStructures=q.NotificationType9=q.NotificationType8=q.NotificationType7=q.NotificationType6=q.NotificationType5=q.NotificationType4=q.NotificationType3=q.NotificationType2=q.NotificationType1=q.NotificationType0=q.NotificationType=q.ErrorCodes=q.ResponseError=q.RequestType9=q.RequestType8=q.RequestType7=q.RequestType6=q.RequestType5=q.RequestType4=q.RequestType3=q.RequestType2=q.RequestType1=q.RequestType0=q.RequestType=q.Message=q.RAL=void 0,q.MessageStrategy=q.CancellationStrategy=q.CancellationSenderStrategy=q.CancellationReceiverStrategy=q.ConnectionError=q.ConnectionErrors=q.LogTraceNotification=q.SetTraceNotification=q.TraceFormat=q.TraceValues=q.Trace=void 0;var T=Ere();Object.defineProperty(q,"Message",{enumerable:!0,get:N(function(){return T.Message},"get")}),Object.defineProperty(q,"RequestType",{enumerable:!0,get:N(function(){return T.RequestType},"get")}),Object.defineProperty(q,"RequestType0",{enumerable:!0,get:N(function(){return T.RequestType0},"get")}),Object.defineProperty(q,"RequestType1",{enumerable:!0,get:N(function(){return T.RequestType1},"get")}),Object.defineProperty(q,"RequestType2",{enumerable:!0,get:N(function(){return T.RequestType2},"get")}),Object.defineProperty(q,"RequestType3",{enumerable:!0,get:N(function(){return T.RequestType3},"get")}),Object.defineProperty(q,"RequestType4",{enumerable:!0,get:N(function(){return T.RequestType4},"get")}),Object.defineProperty(q,"RequestType5",{enumerable:!0,get:N(function(){return T.RequestType5},"get")}),Object.defineProperty(q,"RequestType6",{enumerable:!0,get:N(function(){return T.RequestType6},"get")}),Object.defineProperty(q,"RequestType7",{enumerable:!0,get:N(function(){return T.RequestType7},"get")}),Object.defineProperty(q,"RequestType8",{enumerable:!0,get:N(function(){return T.RequestType8},"get")}),Object.defineProperty(q,"RequestType9",{enumerable:!0,get:N(function(){return T.RequestType9},"get")}),Object.defineProperty(q,"ResponseError",{enumerable:!0,get:N(function(){return T.ResponseError},"get")}),Object.defineProperty(q,"ErrorCodes",{enumerable:!0,get:N(function(){return T.ErrorCodes},"get")}),Object.defineProperty(q,"NotificationType",{enumerable:!0,get:N(function(){return T.NotificationType},"get")}),Object.defineProperty(q,"NotificationType0",{enumerable:!0,get:N(function(){return T.NotificationType0},"get")}),Object.defineProperty(q,"NotificationType1",{enumerable:!0,get:N(function(){return T.NotificationType1},"get")}),Object.defineProperty(q,"NotificationType2",{enumerable:!0,get:N(function(){return T.NotificationType2},"get")}),Object.defineProperty(q,"NotificationType3",{enumerable:!0,get:N(function(){return T.NotificationType3},"get")}),Object.defineProperty(q,"NotificationType4",{enumerable:!0,get:N(function(){return T.NotificationType4},"get")}),Object.defineProperty(q,"NotificationType5",{enumerable:!0,get:N(function(){return T.NotificationType5},"get")}),Object.defineProperty(q,"NotificationType6",{enumerable:!0,get:N(function(){return T.NotificationType6},"get")}),Object.defineProperty(q,"NotificationType7",{enumerable:!0,get:N(function(){return T.NotificationType7},"get")}),Object.defineProperty(q,"NotificationType8",{enumerable:!0,get:N(function(){return T.NotificationType8},"get")}),Object.defineProperty(q,"NotificationType9",{enumerable:!0,get:N(function(){return T.NotificationType9},"get")}),Object.defineProperty(q,"ParameterStructures",{enumerable:!0,get:N(function(){return T.ParameterStructures},"get")});var L=Sre();Object.defineProperty(q,"LinkedMap",{enumerable:!0,get:N(function(){return L.LinkedMap},"get")}),Object.defineProperty(q,"LRUCache",{enumerable:!0,get:N(function(){return L.LRUCache},"get")}),Object.defineProperty(q,"Touch",{enumerable:!0,get:N(function(){return L.Touch},"get")});var M=Wje();Object.defineProperty(q,"Disposable",{enumerable:!0,get:N(function(){return M.Disposable},"get")});var B=Jf();Object.defineProperty(q,"Event",{enumerable:!0,get:N(function(){return B.Event},"get")}),Object.defineProperty(q,"Emitter",{enumerable:!0,get:N(function(){return B.Emitter},"get")});var G=MT();Object.defineProperty(q,"CancellationTokenSource",{enumerable:!0,get:N(function(){return G.CancellationTokenSource},"get")}),Object.defineProperty(q,"CancellationToken",{enumerable:!0,get:N(function(){return G.CancellationToken},"get")});var Z=Hje();Object.defineProperty(q,"SharedArraySenderStrategy",{enumerable:!0,get:N(function(){return Z.SharedArraySenderStrategy},"get")}),Object.defineProperty(q,"SharedArrayReceiverStrategy",{enumerable:!0,get:N(function(){return Z.SharedArrayReceiverStrategy},"get")});var ee=Yje();Object.defineProperty(q,"MessageReader",{enumerable:!0,get:N(function(){return ee.MessageReader},"get")}),Object.defineProperty(q,"AbstractMessageReader",{enumerable:!0,get:N(function(){return ee.AbstractMessageReader},"get")}),Object.defineProperty(q,"ReadableStreamMessageReader",{enumerable:!0,get:N(function(){return ee.ReadableStreamMessageReader},"get")});var K=Xje();Object.defineProperty(q,"MessageWriter",{enumerable:!0,get:N(function(){return K.MessageWriter},"get")}),Object.defineProperty(q,"AbstractMessageWriter",{enumerable:!0,get:N(function(){return K.AbstractMessageWriter},"get")}),Object.defineProperty(q,"WriteableStreamMessageWriter",{enumerable:!0,get:N(function(){return K.WriteableStreamMessageWriter},"get")});var ne=Kje();Object.defineProperty(q,"AbstractMessageBuffer",{enumerable:!0,get:N(function(){return ne.AbstractMessageBuffer},"get")});var fe=Zje();Object.defineProperty(q,"ConnectionStrategy",{enumerable:!0,get:N(function(){return fe.ConnectionStrategy},"get")}),Object.defineProperty(q,"ConnectionOptions",{enumerable:!0,get:N(function(){return fe.ConnectionOptions},"get")}),Object.defineProperty(q,"NullLogger",{enumerable:!0,get:N(function(){return fe.NullLogger},"get")}),Object.defineProperty(q,"createMessageConnection",{enumerable:!0,get:N(function(){return fe.createMessageConnection},"get")}),Object.defineProperty(q,"ProgressToken",{enumerable:!0,get:N(function(){return fe.ProgressToken},"get")}),Object.defineProperty(q,"ProgressType",{enumerable:!0,get:N(function(){return fe.ProgressType},"get")}),Object.defineProperty(q,"Trace",{enumerable:!0,get:N(function(){return fe.Trace},"get")}),Object.defineProperty(q,"TraceValues",{enumerable:!0,get:N(function(){return fe.TraceValues},"get")}),Object.defineProperty(q,"TraceFormat",{enumerable:!0,get:N(function(){return fe.TraceFormat},"get")}),Object.defineProperty(q,"SetTraceNotification",{enumerable:!0,get:N(function(){return fe.SetTraceNotification},"get")}),Object.defineProperty(q,"LogTraceNotification",{enumerable:!0,get:N(function(){return fe.LogTraceNotification},"get")}),Object.defineProperty(q,"ConnectionErrors",{enumerable:!0,get:N(function(){return fe.ConnectionErrors},"get")}),Object.defineProperty(q,"ConnectionError",{enumerable:!0,get:N(function(){return fe.ConnectionError},"get")}),Object.defineProperty(q,"CancellationReceiverStrategy",{enumerable:!0,get:N(function(){return fe.CancellationReceiverStrategy},"get")}
vendor: 8,665 bytes, line 1226
1226),Object.defineProperty(q,"CancellationSenderStrategy",{enumerable:!0,get:N(function(){return fe.CancellationSenderStrategy},"get")}),Object.defineProperty(q,"CancellationStrategy",{enumerable:!0,get:N(function(){return fe.CancellationStrategy},"get")}),Object.defineProperty(q,"MessageStrategy",{enumerable:!0,get:N(function(){return fe.MessageStrategy},"get")});var Ne=m0();q.RAL=Ne.default}}),Qje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/browser/ril.js"(q){"use strict";var K,ne,fe;Object.defineProperty(q,"__esModule",{value:!0});var T=p9(),L=(K=class extends T.AbstractMessageBuffer{constructor(Ee="utf-8"){super(Ee),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return K.emptyBuffer}fromString(Ee,it){return new TextEncoder().encode(Ee)}toString(Ee,it){return it==="ascii"?this.asciiDecoder.decode(Ee):new TextDecoder(it).decode(Ee)}asNative(Ee,it){return it===void 0?Ee:Ee.slice(0,it)}allocNative(Ee){return new Uint8Array(Ee)}},f(K,"cve"),s(K,"_MessageBuffer"),N(K,"MessageBuffer"),K);L.emptyBuffer=new Uint8Array(0);var M=(ne=class{constructor(Ee){this.socket=Ee,this._onData=new T.Emitter,this._messageListener=it=>{it.data.arrayBuffer().then(He=>{this._onData.fire(new Uint8Array(He))},()=>{(0,T.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(Ee){return this.socket.addEventListener("close",Ee),T.Disposable.create(()=>this.socket.removeEventListener("close",Ee))}onError(Ee){return this.socket.addEventListener("error",Ee),T.Disposable.create(()=>this.socket.removeEventListener("error",Ee))}onEnd(Ee){return this.socket.addEventListener("end",Ee),T.Disposable.create(()=>this.socket.removeEventListener("end",Ee))}onData(Ee){return this._onData.event(Ee)}},f(ne,"i"),s(ne,"ReadableStreamWrapper"),N(ne,"ReadableStreamWrapper"),ne),B=(fe=class{constructor(Ee){this.socket=Ee}onClose(Ee){return this.socket.addEventListener("close",Ee),T.Disposable.create(()=>this.socket.removeEventListener("close",Ee))}onError(Ee){return this.socket.addEventListener("error",Ee),T.Disposable.create(()=>this.socket.removeEventListener("error",Ee))}onEnd(Ee){return this.socket.addEventListener("end",Ee),T.Disposable.create(()=>this.socket.removeEventListener("end",Ee))}write(Ee,it){if(typeof Ee=="string"){if(it!==void 0&&it!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${it}`);this.socket.send(Ee)}else this.socket.send(Ee);return Promise.resolve()}end(){this.socket.close()}},f(fe,"n"),s(fe,"WritableStreamWrapper"),N(fe,"WritableStreamWrapper"),fe),G=new TextEncoder,Z=Object.freeze({messageBuffer:Object.freeze({create:N(Ne=>new L(Ne),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:N((Ne,Ee)=>{if(Ee.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${Ee.charset}`);return Promise.resolve(G.encode(JSON.stringify(Ne,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:N((Ne,Ee)=>{if(!(Ne instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(Ee.charset).decode(Ne)))},"decode")})}),stream:Object.freeze({asReadableStream:N(Ne=>new M(Ne),"asReadableStream"),asWritableStream:N(Ne=>new B(Ne),"asWritableStream")}),console,timer:Object.freeze({setTimeout(Ne,Ee,...it){let He=setTimeout(Ne,Ee,...it);return{dispose:N(()=>clearTimeout(He),"dispose")}},setImmediate(Ne,...Ee){let it=setTimeout(Ne,0,...Ee);return{dispose:N(()=>clearTimeout(it),"dispose")}},setInterval(Ne,Ee,...it){let He=setInterval(Ne,Ee,...it);return{dispose:N(()=>clearInterval(He),"dispose")}}})});function ee(){return Z}f(ee,"l"),s(ee,"RIL"),N(ee,"RIL"),(function(Ne){function Ee(){T.RAL.install(Z)}f(Ee,"h"),s(Ee,"install"),N(Ee,"install"),Ne.install=Ee})(ee||(ee={})),q.default=ee}}),e1=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/lib/browser/main.js"(q){"use strict";var K,ne;var T=q&&q.__createBinding||(Object.create?(function(fe,Ne,Ee,it){it===void 0&&(it=Ee);var He=Object.getOwnPropertyDescriptor(Ne,Ee);(!He||("get"in He?!Ne.__esModule:He.writable||He.configurable))&&(He={enumerable:!0,get:N(function(){return Ne[Ee]},"get")}),Object.defineProperty(fe,it,He)}):(function(fe,Ne,Ee,it){it===void 0&&(it=Ee),fe[it]=Ne[Ee]})),L=q&&q.__exportStar||function(fe,Ne){for(var Ee in fe)Ee!=="default"&&!Object.prototype.hasOwnProperty.call(Ne,Ee)&&T(Ne,fe,Ee)};Object.defineProperty(q,"__esModule",{value:!0}),q.createMessageConnection=q.BrowserMessageWriter=q.BrowserMessageReader=void 0;var M=Qje();M.default.install();var B=p9();L(p9(),q);var G=(K=class extends B.AbstractMessageReader{constructor(Ne){super(),this._onData=new B.Emitter,this._messageListener=Ee=>{this._onData.fire(Ee.data)},Ne.addEventListener("error",Ee=>this.fireError(Ee)),Ne.onmessage=this._messageListener}listen(Ne){return this._onData.event(Ne)}},f(K,"a"),s(K,"BrowserMessageReader"),N(K,"BrowserMessageReader"),K);q.BrowserMessageReader=G;var Z=(ne=class extends B.AbstractMessageWriter{constructor(Ne){super(),this.port=Ne,this.errorCount=0,Ne.addEventListener("error",Ee=>this.fireError(Ee))}write(Ne){try{return this.port.postMessage(Ne),Promise.resolve()}catch(Ee){return this.handleError(Ee,Ne),Promise.reject(Ee)}}handleError(Ne,Ee){this.errorCount++,this.fireError(Ne,Ee,this.errorCount)}end(){}},f(ne,"s"),s(ne,"BrowserMessageWriter"),N(ne,"BrowserMessageWriter"),ne);q.BrowserMessageWriter=Z;function ee(fe,Ne,Ee,it){return Ee===void 0&&(Ee=B.NullLogger),B.ConnectionStrategy.is(it)&&(it={connectionStrategy:it}),(0,B.createMessageConnection)(fe,Ne,Ee,it)}f(ee,"l"),s(ee,"createMessageConnection"),N(ee,"createMessageConnection"),q.createMessageConnection=ee}}),Are=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-jsonrpc/browser.js"(q,T){"use strict";T.exports=e1()}}),Qn=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(q){"use strict";var K,ne,fe,Ne,Ee;Object.defineProperty(q,"__esModule",{value:!0}),q.ProtocolNotificationType=q.ProtocolNotificationType0=q.ProtocolRequestType=q.ProtocolRequestType0=q.RegistrationType=q.MessageDirection=void 0;var T=e1(),L;(function(it){it.clientToServer="clientToServer",it.serverToClient="serverToClient",it.both="both"})(L||(q.MessageDirection=L={}));var M=(K=class{constructor(He){this.method=He}},f(K,"i"),s(K,"RegistrationType"),N(K,"RegistrationType"),K);q.RegistrationType=M;var B=(ne=class extends T.RequestType0{constructor(He){super(He)}},f(ne,"n"),s(ne,"ProtocolRequestType0"),N(ne,"ProtocolRequestType0"),ne);q.ProtocolRequestType0=B;var G=(fe=class extends T.RequestType{constructor(He){super(He,T.ParameterStructures.byName)}},f(fe,"a"),s(fe,"ProtocolRequestType"),N(fe,"ProtocolRequestType"),fe);q.ProtocolRequestType=G;var Z=(Ne=class extends T.NotificationType0{constructor(He){super(He)}},f(Ne,"s"),s(Ne,"ProtocolNotificationType0"),N(Ne,"ProtocolNotificationType0"),Ne);q.ProtocolNotificationType0=Z;var ee=(Ee=class extends T.NotificationType{constructor(He){super(He,T.ParameterStructures.byName)}},f(Ee,"l"),s(Ee,"ProtocolNotificationType"),N(Ee,"ProtocolNotificationType"),Ee);q.ProtocolNotificationType=ee}}),g9=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.objectLiteral=q.typedArray=q.stringArray=q.array=q.func=q.error=q.number=q.string=q.boolean=void 0;function T(fe){return fe===!0||fe===!1}f(T,"t"),s(T,"boolean"),N(T,"boolean"),q.boolean=T;function L(fe){return typeof fe=="string"||fe instanceof String}f(L,"r"),s(L,"string"),N(L,"string"),q.string=L;function M(fe){return typeof fe=="number"||fe instanceof Number}f(M,"i"),s(M,"number"),N(M,"number"),q.number=M;function B(fe){return fe instanceof Error}f(B,"n"),s(B,"error"),N(B,"error"),q.error=B;function G(fe){return typeof fe=="function"}f(G,"a"),s(G,"func"),N(G,"func"),q.func=G;function Z(fe){return Array.isArray(fe)}f(Z,"s"),s(Z,"array"),N(Z,"array"),q.array=Z;function ee(fe){return Z(fe)&&fe.every(Ne=>L(Ne))}f(ee,"l"),s(ee,"stringArray"),N(ee,"stringArray"),q.stringArray=ee;function K(fe,Ne){return Array.isArray(fe)&&fe.every(Ne)}f(K,"u"),s(K,"typedArray"),N(K,"typedArray"),q.typedArray=K;function ne(fe){return fe!==null&&typeof fe=="object"}f(ne,"h"),s(ne,"objectLiteral"),N(ne,"objectLiteral"),q.objectLiteral=ne}}
1226),Jje=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ImplementationRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/implementation",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.ImplementationRequest=L={}))}}),eGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.TypeDefinitionRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/typeDefinition",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.TypeDefinitionRequest=L={}))}}),tGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.DidChangeWorkspaceFoldersNotification=q.WorkspaceFoldersRequest=void 0;var T=Qn(),L;(function(B){B.method="workspace/workspaceFolders",B.messageDirection=T.MessageDirection.serverToClient,B.type=new T.ProtocolRequestType0(B.method)})(L||(q.WorkspaceFoldersRequest=L={}));var M;(function(B){B.method="workspace/didChangeWorkspaceFolders",B.messageDirection=T.MessageDirection.clientToServer,B.type=new T.ProtocolNotificationType(B.method)})(M||(q.DidChangeWorkspaceFoldersNotification=M={}))}}),rGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ConfigurationRequest=void 0;var T=Qn(),L;(function(M){M.method="workspace/configuration",M.messageDirection=T.MessageDirection.serverToClient,M.type=new T.ProtocolRequestType(M.method)})(L||(q.ConfigurationRequest=L={}))}}),iGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ColorPresentationRequest=q.DocumentColorRequest=void 0;var T=Qn(),L;(function(B){B.method="textDocument/documentColor",B.messageDirection=T.MessageDirection.clientToServer,B.type=new T.ProtocolRequestType(B.method)})(L||(q.DocumentColorRequest=L={}));var M;(function(B){B.method="textDocument/colorPresentation",B.messageDirection=T.MessageDirection.clientToServer,B.type=new T.ProtocolRequestType(B.method)})(M||(q.ColorPresentationRequest=M={}))}}),nGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.FoldingRangeRefreshRequest=q.FoldingRangeRequest=void 0;var T=Qn(),L;(function(B){B.method="textDocument/foldingRange",B.messageDirection=T.MessageDirection.clientToServer,B.type=new T.ProtocolRequestType(B.method)})(L||(q.FoldingRangeRequest=L={}));var M;(function(B){B.method="workspace/foldingRange/refresh",B.messageDirection=T.MessageDirection.serverToClient,B.type=new T.ProtocolRequestType0(B.method)})(M||(q.FoldingRangeRefreshRequest=M={}))}}),aGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.DeclarationRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/declaration",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.DeclarationRequest=L={}))}}),sGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.SelectionRangeRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/selectionRange",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.SelectionRangeRequest=L={}))}}),oGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(q){"use strict";
vendor: 49,354 bytes, line 1226
1226Object.defineProperty(q,"__esModule",{value:!0}),q.WorkDoneProgressCancelNotification=q.WorkDoneProgressCreateRequest=q.WorkDoneProgress=void 0;var T=e1(),L=Qn(),M;(function(Z){Z.type=new T.ProgressType;function ee(K){return K===Z.type}f(ee,"l"),s(ee,"is"),N(ee,"is"),Z.is=ee})(M||(q.WorkDoneProgress=M={}));var B;(function(Z){Z.method="window/workDoneProgress/create",Z.messageDirection=L.MessageDirection.serverToClient,Z.type=new L.ProtocolRequestType(Z.method)})(B||(q.WorkDoneProgressCreateRequest=B={}));var G;(function(Z){Z.method="window/workDoneProgress/cancel",Z.messageDirection=L.MessageDirection.clientToServer,Z.type=new L.ProtocolNotificationType(Z.method)})(G||(q.WorkDoneProgressCancelNotification=G={}))}}),lGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.CallHierarchyOutgoingCallsRequest=q.CallHierarchyIncomingCallsRequest=q.CallHierarchyPrepareRequest=void 0;var T=Qn(),L;(function(G){G.method="textDocument/prepareCallHierarchy",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(L||(q.CallHierarchyPrepareRequest=L={}));var M;(function(G){G.method="callHierarchy/incomingCalls",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(M||(q.CallHierarchyIncomingCallsRequest=M={}));var B;(function(G){G.method="callHierarchy/outgoingCalls",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(B||(q.CallHierarchyOutgoingCallsRequest=B={}))}}),cGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.SemanticTokensRefreshRequest=q.SemanticTokensRangeRequest=q.SemanticTokensDeltaRequest=q.SemanticTokensRequest=q.SemanticTokensRegistrationType=q.TokenFormat=void 0;var T=Qn(),L;(function(K){K.Relative="relative"})(L||(q.TokenFormat=L={}));var M;(function(K){K.method="textDocument/semanticTokens",K.type=new T.RegistrationType(K.method)})(M||(q.SemanticTokensRegistrationType=M={}));var B;(function(K){K.method="textDocument/semanticTokens/full",K.messageDirection=T.MessageDirection.clientToServer,K.type=new T.ProtocolRequestType(K.method),K.registrationMethod=M.method})(B||(q.SemanticTokensRequest=B={}));var G;(function(K){K.method="textDocument/semanticTokens/full/delta",K.messageDirection=T.MessageDirection.clientToServer,K.type=new T.ProtocolRequestType(K.method),K.registrationMethod=M.method})(G||(q.SemanticTokensDeltaRequest=G={}));var Z;(function(K){K.method="textDocument/semanticTokens/range",K.messageDirection=T.MessageDirection.clientToServer,K.type=new T.ProtocolRequestType(K.method),K.registrationMethod=M.method})(Z||(q.SemanticTokensRangeRequest=Z={}));var ee;(function(K){K.method="workspace/semanticTokens/refresh",K.messageDirection=T.MessageDirection.serverToClient,K.type=new T.ProtocolRequestType0(K.method)})(ee||(q.SemanticTokensRefreshRequest=ee={}))}}),hGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.ShowDocumentRequest=void 0;var T=Qn(),L;(function(M){M.method="window/showDocument",M.messageDirection=T.MessageDirection.serverToClient,M.type=new T.ProtocolRequestType(M.method)})(L||(q.ShowDocumentRequest=L={}))}}),uGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.LinkedEditingRangeRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/linkedEditingRange",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.LinkedEditingRangeRequest=L={}))}}),dGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.WillDeleteFilesRequest=q.DidDeleteFilesNotification=q.DidRenameFilesNotification=q.WillRenameFilesRequest=q.DidCreateFilesNotification=q.WillCreateFilesRequest=q.FileOperationPatternKind=void 0;var T=Qn(),L;(function(ne){ne.file="file",ne.folder="folder"})(L||(q.FileOperationPatternKind=L={}));var M;(function(ne){ne.method="workspace/willCreateFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolRequestType(ne.method)})(M||(q.WillCreateFilesRequest=M={}));var B;(function(ne){ne.method="workspace/didCreateFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolNotificationType(ne.method)})(B||(q.DidCreateFilesNotification=B={}));var G;(function(ne){ne.method="workspace/willRenameFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolRequestType(ne.method)})(G||(q.WillRenameFilesRequest=G={}));var Z;(function(ne){ne.method="workspace/didRenameFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolNotificationType(ne.method)})(Z||(q.DidRenameFilesNotification=Z={}));var ee;(function(ne){ne.method="workspace/didDeleteFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolNotificationType(ne.method)})(ee||(q.DidDeleteFilesNotification=ee={}));var K;(function(ne){ne.method="workspace/willDeleteFiles",ne.messageDirection=T.MessageDirection.clientToServer,ne.type=new T.ProtocolRequestType(ne.method)})(K||(q.WillDeleteFilesRequest=K={}))}}),pGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.MonikerRequest=q.MonikerKind=q.UniquenessLevel=void 0;var T=Qn(),L;(function(G){G.document="document",G.project="project",G.group="group",G.scheme="scheme",G.global="global"})(L||(q.UniquenessLevel=L={}));var M;(function(G){G.$import="import",G.$export="export",G.local="local"})(M||(q.MonikerKind=M={}));var B;(function(G){G.method="textDocument/moniker",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(B||(q.MonikerRequest=B={}))}}),gGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.TypeHierarchySubtypesRequest=q.TypeHierarchySupertypesRequest=q.TypeHierarchyPrepareRequest=void 0;var T=Qn(),L;(function(G){G.method="textDocument/prepareTypeHierarchy",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(L||(q.TypeHierarchyPrepareRequest=L={}));var M;(function(G){G.method="typeHierarchy/supertypes",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(M||(q.TypeHierarchySupertypesRequest=M={}));var B;(function(G){G.method="typeHierarchy/subtypes",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(B||(q.TypeHierarchySubtypesRequest=B={}))}}),fGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.InlineValueRefreshRequest=q.InlineValueRequest=void 0;var T=Qn(),L;(function(B){B.method="textDocument/inlineValue",B.messageDirection=T.MessageDirection.clientToServer,B.type=new T.ProtocolRequestType(B.method)})(L||(q.InlineValueRequest=L={}));var M;(function(B){B.method="workspace/inlineValue/refresh",B.messageDirection=T.MessageDirection.serverToClient,B.type=new T.ProtocolRequestType0(B.method)})(M||(q.InlineValueRefreshRequest=M={}))}}),mGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.InlayHintRefreshRequest=q.InlayHintResolveRequest=q.InlayHintRequest=void 0;var T=Qn(),L;(function(G){G.method="textDocument/inlayHint",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(L||(q.InlayHintRequest=L={}));var M;(function(G){G.method="inlayHint/resolve",G.messageDirection=T.MessageDirection.clientToServer,G.type=new T.ProtocolRequestType(G.method)})(M||(q.InlayHintResolveRequest=M={}));var B;(function(G){G.method="workspace/inlayHint/refresh",G.messageDirection=T.MessageDirection.serverToClient,G.type=new T.ProtocolRequestType0(G.method)})(B||(q.InlayHintRefreshRequest=B={}))}}),yGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.DiagnosticRefreshRequest=q.WorkspaceDiagnosticRequest=q.DocumentDiagnosticRequest=q.DocumentDiagnosticReportKind=q.DiagnosticServerCancellationData=void 0;var T=e1(),L=g9(),M=Qn(),B;(function(ne){function fe(Ne){let Ee=Ne;return Ee&&L.boolean(Ee.retriggerRequest)}f(fe,"d"),s(fe,"is"),N(fe,"is"),ne.is=fe})(B||(q.DiagnosticServerCancellationData=B={}));var G;(function(ne){ne.Full="full",ne.Unchanged="unchanged"})(G||(q.DocumentDiagnosticReportKind=G={}));var Z;(function(ne){ne.method="textDocument/diagnostic",ne.messageDirection=M.MessageDirection.clientToServer,ne.type=new M.ProtocolRequestType(ne.method),ne.partialResult=new T.ProgressType})(Z||(q.DocumentDiagnosticRequest=Z={}));var ee;(function(ne){ne.method="workspace/diagnostic",ne.messageDirection=M.MessageDirection.clientToServer,ne.type=new M.ProtocolRequestType(ne.method),ne.partialResult=new T.ProgressType})(ee||(q.WorkspaceDiagnosticRequest=ee={}));var K;(function(ne){ne.method="workspace/diagnostic/refresh",ne.messageDirection=M.MessageDirection.serverToClient,ne.type=new M.ProtocolRequestType0(ne.method)})(K||(q.DiagnosticRefreshRequest=K={}))}}),vGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.DidCloseNotebookDocumentNotification=q.DidSaveNotebookDocumentNotification=q.DidChangeNotebookDocumentNotification=q.NotebookCellArrayChange=q.DidOpenNotebookDocumentNotification=q.NotebookDocumentSyncRegistrationType=q.NotebookDocument=q.NotebookCell=q.ExecutionSummary=q.NotebookCellKind=void 0;var T=(ev(),a9(ET)),L=g9(),M=Qn(),B;(function(He){He.Markup=1,He.Code=2;function wt(Pt){return Pt===1||Pt===2}f(wt,"y"),s(wt,"is"),N(wt,"is"),He.is=wt})(B||(q.NotebookCellKind=B={}));var G;(function(He){function wt(ar,lr){let Br={executionOrder:ar};return(lr===!0||lr===!1)&&(Br.success=lr),Br}f(wt,"y"),s(wt,"create"),N(wt,"create"),He.create=wt;function Pt(ar){let lr=ar;return L.objectLiteral(lr)&&T.uinteger.is(lr.executionOrder)&&(lr.success===void 0||L.boolean(lr.success))}f(Pt,"v"),s(Pt,"is"),N(Pt,"is"),He.is=Pt;function Xt(ar,lr){return ar===lr?!0:ar==null||lr===null||lr===void 0?!1:ar.executionOrder===lr.executionOrder&&ar.success===lr.success}f(Xt,"x"),s(Xt,"equals"),N(Xt,"equals"),He.equals=Xt})(G||(q.ExecutionSummary=G={}));var Z;(function(He){function wt(lr,Br){return{kind:lr,document:Br}}f(wt,"y"),s(wt,"create"),N(wt,"create"),He.create=wt;function Pt(lr){let Br=lr;return L.objectLiteral(Br)&&B.is(Br.kind)&&T.DocumentUri.is(Br.document)&&(Br.metadata===void 0||L.objectLiteral(Br.metadata))}f(Pt,"v"),s(Pt,"is"),N(Pt,"is"),He.is=Pt;function Xt(lr,Br){let ii=new Set;return lr.document!==Br.document&&ii.add("document"),lr.kind!==Br.kind&&ii.add("kind"),lr.executionSummary!==Br.executionSummary&&ii.add("executionSummary"),(lr.metadata!==void 0||Br.metadata!==void 0)&&!ar(lr.metadata,Br.metadata)&&ii.add("metadata"),(lr.executionSummary!==void 0||Br.executionSummary!==void 0)&&!G.equals(lr.executionSummary,Br.executionSummary)&&ii.add("executionSummary"),ii}f(Xt,"x"),s(Xt,"diff"),N(Xt,"diff"),He.diff=Xt;function ar(lr,Br){if(lr===Br)return!0;if(lr==null||Br===null||Br===void 0||typeof lr!=typeof Br||typeof lr!="object")return!1;let ii=Array.isArray(lr),In=Array.isArray(Br);if(ii!==In)return!1;if(ii&&In){if(lr.length!==Br.length)return!1;for(let Gi=0;Gi<lr.length;Gi++)if(!ar(lr[Gi],Br[Gi]))return!1}if(L.objectLiteral(lr)&&L.objectLiteral(Br)){let Gi=Object.keys(lr),Wn=Object.keys(Br);if(Gi.length!==Wn.length||(Gi.sort(),Wn.sort(),!ar(Gi,Wn)))return!1;for(let sa=0;sa<Gi.length;sa++){let La=Gi[sa];if(!ar(lr[La],Br[La]))return!1}}return!0}f(ar,"b"),s(ar,"equalsMetadata"),N(ar,"equalsMetadata")})(Z||(q.NotebookCell=Z={}));var ee;(function(He){function wt(Xt,ar,lr,Br){return{uri:Xt,notebookType:ar,version:lr,cells:Br}}f(wt,"y"),s(wt,"create"),N(wt,"create"),He.create=wt;function Pt(Xt){let ar=Xt;return L.objectLiteral(ar)&&L.string(ar.uri)&&T.integer.is(ar.version)&&L.typedArray(ar.cells,Z.is)}f(Pt,"v"),s(Pt,"is"),N(Pt,"is"),He.is=Pt})(ee||(q.NotebookDocument=ee={}));var K;(function(He){He.method="notebookDocument/sync",He.messageDirection=M.MessageDirection.clientToServer,He.type=new M.RegistrationType(He.method)})(K||(q.NotebookDocumentSyncRegistrationType=K={}));var ne;(function(He){He.method="notebookDocument/didOpen",He.messageDirection=M.MessageDirection.clientToServer,He.type=new M.ProtocolNotificationType(He.method),He.registrationMethod=K.method})(ne||(q.DidOpenNotebookDocumentNotification=ne={}));var fe;(function(He){function wt(Xt){let ar=Xt;return L.objectLiteral(ar)&&T.uinteger.is(ar.start)&&T.uinteger.is(ar.deleteCount)&&(ar.cells===void 0||L.typedArray(ar.cells,Z.is))}f(wt,"y"),s(wt,"is"),N(wt,"is"),He.is=wt;function Pt(Xt,ar,lr){let Br={start:Xt,deleteCount:ar};return lr!==void 0&&(Br.cells=lr),Br}f(Pt,"v"),s(Pt,"create"),N(Pt,"create"),He.create=Pt})(fe||(q.NotebookCellArrayChange=fe={}));var Ne;(function(He){He.method="notebookDocument/didChange",He.messageDirection=M.MessageDirection.clientToServer,He.type=new M.ProtocolNotificationType(He.method),He.registrationMethod=K.method})(Ne||(q.DidChangeNotebookDocumentNotification=Ne={}));var Ee;(function(He){He.method="notebookDocument/didSave",He.messageDirection=M.MessageDirection.clientToServer,He.type=new M.ProtocolNotificationType(He.method),He.registrationMethod=K.method})(Ee||(q.DidSaveNotebookDocumentNotification=Ee={}));var it;(function(He){He.method="notebookDocument/didClose",He.messageDirection=M.MessageDirection.clientToServer,He.type=new M.ProtocolNotificationType(He.method),He.registrationMethod=K.method})(it||(q.DidCloseNotebookDocumentNotification=it={}))}}),bGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.InlineCompletionRequest=void 0;var T=Qn(),L;(function(M){M.method="textDocument/inlineCompletion",M.messageDirection=T.MessageDirection.clientToServer,M.type=new T.ProtocolRequestType(M.method)})(L||(q.InlineCompletionRequest=L={}))}}),xGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.WorkspaceSymbolRequest=q.CodeActionResolveRequest=q.CodeActionRequest=q.DocumentSymbolRequest=q.DocumentHighlightRequest=q.ReferencesRequest=q.DefinitionRequest=q.SignatureHelpRequest=q.SignatureHelpTriggerKind=q.HoverRequest=q.CompletionResolveRequest=q.CompletionRequest=q.CompletionTriggerKind=q.PublishDiagnosticsNotification=q.WatchKind=q.RelativePattern=q.FileChangeType=q.DidChangeWatchedFilesNotification=q.WillSaveTextDocumentWaitUntilRequest=q.WillSaveTextDocumentNotification=q.TextDocumentSaveReason=q.DidSaveTextDocumentNotification=q.DidCloseTextDocumentNotification=q.DidChangeTextDocumentNotification=q.TextDocumentContentChangeEvent=q.DidOpenTextDocumentNotification=q.TextDocumentSyncKind=q.TelemetryEventNotification=q.LogMessageNotification=q.ShowMessageRequest=q.ShowMessageNotification=q.MessageType=q.DidChangeConfigurationNotification=q.ExitNotification=q.ShutdownRequest=q.InitializedNotification=q.InitializeErrorCodes=q.InitializeRequest=q.WorkDoneProgressOptions=q.TextDocumentRegistrationOptions=q.StaticRegistrationOptions=q.PositionEncodingKind=q.FailureHandlingKind=q.ResourceOperationKind=q.UnregistrationRequest=q.RegistrationRequest=q.DocumentSelector=q.NotebookCellTextDocumentFilter=q.NotebookDocumentFilter=q.TextDocumentFilter=void 0,q.MonikerRequest=q.MonikerKind=q.UniquenessLevel=q.WillDeleteFilesRequest=q.DidDeleteFilesNotification=q.WillRenameFilesRequest=q.DidRenameFilesNotification=q.WillCreateFilesRequest=q.DidCreateFilesNotification=q.FileOperationPatternKind=q.LinkedEditingRangeRequest=q.ShowDocumentRequest=q.SemanticTokensRegistrationType=q.SemanticTokensRefreshRequest=q.SemanticTokensRangeRequest=q.SemanticTokensDeltaRequest=q.SemanticTokensRequest=q.TokenFormat=q.CallHierarchyPrepareRequest=q.CallHierarchyOutgoingCallsRequest=q.CallHierarchyIncomingCallsRequest=q.WorkDoneProgressCancelNotification=q.WorkDoneProgressCreateRequest=q.WorkDoneProgress=q.SelectionRangeRequest=q.DeclarationRequest=q.FoldingRangeRefreshRequest=q.FoldingRangeRequest=q.ColorPresentationRequest=q.DocumentColorRequest=q.ConfigurationRequest=q.DidChangeWorkspaceFoldersNotification=q.WorkspaceFoldersRequest=q.TypeDefinitionRequest=q.ImplementationRequest=q.ApplyWorkspaceEditRequest=q.ExecuteCommandRequest=q.PrepareRenameRequest=q.RenameRequest=q.PrepareSupportDefaultBehavior=q.DocumentOnTypeFormattingRequest=q.DocumentRangesFormattingRequest=q.DocumentRangeFormattingRequest=q.DocumentFormattingRequest=q.DocumentLinkResolveRequest=q.DocumentLinkRequest=q.CodeLensRefreshRequest=q.CodeLensResolveRequest=q.CodeLensRequest=q.WorkspaceSymbolResolveRequest=void 0,q.InlineCompletionRequest=q.DidCloseNotebookDocumentNotification=q.DidSaveNotebookDocumentNotification=q.DidChangeNotebookDocumentNotification=q.NotebookCellArrayChange=q.DidOpenNotebookDocumentNotification=q.NotebookDocumentSyncRegistrationType=q.NotebookDocument=q.NotebookCell=q.ExecutionSummary=q.NotebookCellKind=q.DiagnosticRefreshRequest=q.WorkspaceDiagnosticRequest=q.DocumentDiagnosticRequest=q.DocumentDiagnosticReportKind=q.DiagnosticServerCancellationData=q.InlayHintRefreshRequest=q.InlayHintResolveRequest=q.InlayHintRequest=q.InlineValueRefreshRequest=q.InlineValueRequest=q.TypeHierarchySupertypesRequest=q.TypeHierarchySubtypesRequest=q.TypeHierarchyPrepareRequest=void 0;var T=Qn(),L=(ev(),a9(ET)),M=g9(),B=Jje();Object.defineProperty(q,"ImplementationRequest",{enumerable:!0,get:N(function(){return B.ImplementationRequest},"get")});var G=eGe();Object.defineProperty(q,"TypeDefinitionRequest",{enumerable:!0,get:N(function(){return G.TypeDefinitionRequest},"get")});var Z=tGe();Object.defineProperty(q,"WorkspaceFoldersRequest",{enumerable:!0,get:N(function(){return Z.WorkspaceFoldersRequest},"get")}),Object.defineProperty(q,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:N(function(){return Z.DidChangeWorkspaceFoldersNotification},"get")});var ee=rGe();Object.defineProperty(q,"ConfigurationRequest",{enumerable:!0,get:N(function(){return ee.ConfigurationRequest},"get")});var K=iGe();Object.defineProperty(q,"DocumentColorRequest",{enumerable:!0,get:N(function(){return K.DocumentColorRequest},"get")}),Object.defineProperty(q,"ColorPresentationRequest",{enumerable:!0,get:N(function(){return K.ColorPresentationRequest},"get")});var ne=nGe();Object.defineProperty(q,"FoldingRangeRequest",{enumerable:!0,get:N(function(){return ne.FoldingRangeRequest},"get")}),Object.defineProperty(q,"FoldingRangeRefreshRequest",{enumerable:!0,get:N(function(){return ne.FoldingRangeRefreshRequest},"get")});var fe=aGe();Object.defineProperty(q,"DeclarationRequest",{enumerable:!0,get:N(function(){return fe.DeclarationRequest},"get")});var Ne=sGe();Object.defineProperty(q,"SelectionRangeRequest",{enumerable:!0,get:N(function(){return Ne.SelectionRangeRequest},"get")});var Ee=oGe();Object.defineProperty(q,"WorkDoneProgress",{enumerable:!0,get:N(function(){return Ee.WorkDoneProgress},"get")}),Object.defineProperty(q,"WorkDoneProgressCreateRequest",{enumerable:!0,get:N(function(){return Ee.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(q,"WorkDoneProgressCancelNotification",{enumerable:!0,get:N(function(){return Ee.WorkDoneProgressCancelNotification},"get")});var it=lGe();Object.defineProperty(q,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:N(function(){return it.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(q,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:N(function(){return it.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(q,"CallHierarchyPrepareRequest",{enumerable:!0,get:N(function(){return it.CallHierarchyPrepareRequest},"get")});var He=cGe();Object.defineProperty(q,"TokenFormat",{enumerable:!0,get:N(function(){return He.TokenFormat},"get")}),Object.defineProperty(q,"SemanticTokensRequest",{enumerable:!0,get:N(function(){return He.SemanticTokensRequest},"get")}),Object.defineProperty(q,"SemanticTokensDeltaRequest",{enumerable:!0,get:N(function(){return He.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(q,"SemanticTokensRangeRequest",{enumerable:!0,get:N(function(){return He.SemanticTokensRangeRequest},"get")}),Object.defineProperty(q,"SemanticTokensRefreshRequest",{enumerable:!0,get:N(function(){return He.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(q,"SemanticTokensRegistrationType",{enumerable:!0,get:N(function(){return He.SemanticTokensRegistrationType},"get")});var wt=hGe();Object.defineProperty(q,"ShowDocumentRequest",{enumerable:!0,get:N(function(){return wt.ShowDocumentRequest},"get")});var Pt=uGe();Object.defineProperty(q,"LinkedEditingRangeRequest",{enumerable:!0,get:N(function(){return Pt.LinkedEditingRangeRequest},"get")});var Xt=dGe();Object.defineProperty(q,"FileOperationPatternKind",{enumerable:!0,get:N(function(){return Xt.FileOperationPatternKind},"get")}),Object.defineProperty(q,"DidCreateFilesNotification",{enumerable:!0,get:N(function(){return Xt.DidCreateFilesNotification},"get")}),Object.defineProperty(q,"WillCreateFilesRequest",{enumerable:!0,get:N(function(){return Xt.WillCreateFilesRequest},"get")}),Object.defineProperty(q,"DidRenameFilesNotification",{enumerable:!0,get:N(function(){return Xt.DidRenameFilesNotification},"get")}),Object.defineProperty(q,"WillRenameFilesRequest",{enumerable:!0,get:N(function(){return Xt.WillRenameFilesRequest},"get")}),Object.defineProperty(q,"DidDeleteFilesNotification",{enumerable:!0,get:N(function(){return Xt.DidDeleteFilesNotification},"get")}),Object.defineProperty(q,"WillDeleteFilesRequest",{enumerable:!0,get:N(function(){return Xt.WillDeleteFilesRequest},"get")});var ar=pGe();Object.defineProperty(q,"UniquenessLevel",{enumerable:!0,get:N(function(){return ar.UniquenessLevel},"get")}),Object.defineProperty(q,"MonikerKind",{enumerable:!0,get:N(function(){return ar.MonikerKind},"get")}),Object.defineProperty(q,"MonikerRequest",{enumerable:!0,get:N(function(){return ar.MonikerRequest},"get")});var lr=gGe();Object.defineProperty(q,"TypeHierarchyPrepareRequest",{enumerable:!0,get:N(function(){return lr.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(q,"TypeHierarchySubtypesRequest",{enumerable:!0,get:N(function(){return lr.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(q,"TypeHierarchySupertypesRequest",{enumerable:!0,get:N(function(){return lr.TypeHierarchySupertypesRequest},"get")});var Br=fGe();Object.defineProperty(q,"InlineValueRequest",{enumerable:!0,get:N(function(){return Br.InlineValueRequest},"get")}),Object.defineProperty(q,"InlineValueRefreshRequest",{enumerable:!0,get:N(function(){return Br.InlineValueRefreshRequest},"get")});var ii=mGe();Object.defineProperty(q,"InlayHintRequest",{enumerable:!0,get:N(function(){return ii.InlayHintRequest},"get")}),Object.defineProperty(q,"InlayHintResolveRequest",{enumerable:!0,get:N(function(){return ii.InlayHintResolveRequest},"get")}),Object.defineProperty(q,"InlayHintRefreshRequest",{enumerable:!0,get:N(function(){return ii.InlayHintRefreshRequest},"get")});var In=yGe();Object.defineProperty(q,"DiagnosticServerCancellationData",{enumerable:!0,get:N(function(){return In.DiagnosticServerCancellationData},"get")}),Object.defineProperty(q,"DocumentDiagnosticReportKind",{enumerable:!0,get:N(function(){return In.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(q,"DocumentDiagnosticRequest",{enumerable:!0,get:N(function(){return In.DocumentDiagnosticRequest},"get")}),Object.defineProperty(q,"WorkspaceDiagnosticRequest",{enumerable:!0,get:N(function(){return In.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(q,"DiagnosticRefreshRequest",{enumerable:!0,get:N(function(){return In.DiagnosticRefreshRequest},"get")});var Gi=vGe();Object.defineProperty(q,"NotebookCellKind",{enumerable:!0,get:N(function(){return Gi.NotebookCellKind},"get")}),Object.defineProperty(q,"ExecutionSummary",{enumerable:!0,get:N(function(){return Gi.ExecutionSummary},"get")}),Object.defineProperty(q,"NotebookCell",{enumerable:!0,get:N(function(){return Gi.NotebookCell},"get")}),Object.defineProperty(q,"NotebookDocument",{enumerable:!0,get:N(function(){return Gi.NotebookDocument},"get")}),Object.defineProperty(q,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:N(function(){return Gi.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(q,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:N(function(){return Gi.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(q,"NotebookCellArrayChange",{enumerable:!0,get:N(function(){return Gi.NotebookCellArrayChange},"get")}),Object.defineProperty(q,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:N(function(){return Gi.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(q,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:N(function(){return Gi.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(q,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:N(function(){return Gi.DidCloseNotebookDocumentNotification},"get")});var Wn=bGe();Object.defineProperty(q,"InlineCompletionRequest",{enumerable:!0,get:N(function(){return Wn.InlineCompletionRequest},"get")});var sa;(function(Oe){function vi(xn){let si=xn;return M.string(si)||M.string(si.language)||M.string(si.scheme)||M.string(si.pattern)}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(sa||(q.TextDocumentFilter=sa={}));var La;(function(Oe){function vi(xn){let si=xn;return M.objectLiteral(si)&&(M.string(si.notebookType)||M.string(si.scheme)||M.string(si.pattern))}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(La||(q.NotebookDocumentFilter=La={}));var Bi;(function(Oe){function vi(xn){let si=xn;return M.objectLiteral(si)&&(M.string(si.notebook)||La.is(si.notebook))&&(si.language===void 0||M.string(si.language))}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(Bi||(q.NotebookCellTextDocumentFilter=Bi={}));var va;(function(Oe){function vi(xn){if(!Array.isArray(xn))return!1;for(let si of xn)if(!M.string(si)&&!sa.is(si)&&!Bi.is(si))return!1;return!0}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(va||(q.DocumentSelector=va={}));var Gt;(function(Oe){Oe.method="client/registerCapability",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolRequestType(Oe.method)})(Gt||(q.RegistrationRequest=Gt={}));var xt;(function(Oe){Oe.method="client/unregisterCapability",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolRequestType(Oe.method)})(xt||(q.UnregistrationRequest=xt={}));var st;(function(Oe){Oe.Create="create",Oe.Rename="rename",Oe.Delete="delete"})(st||(q.ResourceOperationKind=st={}));var vt;(function(Oe){Oe.Abort="abort",Oe.Transactional="transactional",Oe.TextOnlyTransactional="textOnlyTransactional",Oe.Undo="undo"})(vt||(q.FailureHandlingKind=vt={}));var ct;(function(Oe){Oe.UTF8="utf-8",Oe.UTF16="utf-16",Oe.UTF32="utf-32"})(ct||(q.PositionEncodingKind=ct={}));var ut;(function(Oe){function vi(xn){let si=xn;return si&&M.string(si.id)&&si.id.length>0}f(vi,"ht"),s(vi,"hasId"),N(vi,"hasId"),Oe.hasId=vi})(ut||(q.StaticRegistrationOptions=ut={}));var Et;(function(Oe){function vi(xn){let si=xn;return si&&(si.documentSelector===null||va.is(si.documentSelector))}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(Et||(q.TextDocumentRegistrationOptions=Et={}));var Jt;(function(Oe){function vi(si){let xa=si;return M.objectLiteral(xa)&&(xa.workDoneProgress===void 0||M.boolean(xa.workDoneProgress))}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi;function xn(si){let xa=si;return xa&&M.boolean(xa.workDoneProgress)}f(xn,"gt"),s(xn,"hasWorkDoneProgress"),N(xn,"hasWorkDoneProgress"),Oe.hasWorkDoneProgress=xn})(Jt||(q.WorkDoneProgressOptions=Jt={}));var cr;(function(Oe){Oe.method="initialize",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(cr||(q.InitializeRequest=cr={}));var er;(function(Oe){Oe.unknownProtocolVersion=1})(er||(q.InitializeErrorCodes=er={}));var Lr;(function(Oe){Oe.method="initialized",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(Lr||(q.InitializedNotification=Lr={}));var Rr;(function(Oe){Oe.method="shutdown",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType0(Oe.method)})(Rr||(q.ShutdownRequest=Rr={}));var ci;(function(Oe){Oe.method="exit",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType0(Oe.method)})(ci||(q.ExitNotification=ci={}));var ai;(function(Oe){Oe.method="workspace/didChangeConfiguration",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(ai||(q.DidChangeConfigurationNotification=ai={}));var pi;(function(Oe){Oe.Error=1,Oe.Warning=2,Oe.Info=3,Oe.Log=4,Oe.Debug=5})(pi||(q.MessageType=pi={}));var Ii;(function(Oe){Oe.method="window/showMessage",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolNotificationType(Oe.method)})(Ii||(q.ShowMessageNotification=Ii={}));var ba;(function(Oe){Oe.method="window/showMessageRequest",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolRequestType(Oe.method)})(ba||(q.ShowMessageRequest=ba={}));var Ui;(function(Oe){Oe.method="window/logMessage",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolNotificationType(Oe.method)})(Ui||(q.LogMessageNotification=Ui={}));var sn;(function(Oe){Oe.method="telemetry/event",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolNotificationType(Oe.method)})(sn||(q.TelemetryEventNotification=sn={}));var Hn;(function(Oe){Oe.None=0,Oe.Full=1,Oe.Incremental=2})(Hn||(q.TextDocumentSyncKind=Hn={}));var en;(function(Oe){Oe.method="textDocument/didOpen",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(en||(q.DidOpenTextDocumentNotification=en={}));var hi;(function(Oe){function vi(si){let xa=si;return xa!=null&&typeof xa.text=="string"&&xa.range!==void 0&&(xa.rangeLength===void 0||typeof xa.rangeLength=="number")}f(vi,"ht"),s(vi,"isIncremental"),N(vi,"isIncremental"),Oe.isIncremental=vi;function xn(si){let xa=si;return xa!=null&&typeof xa.text=="string"&&xa.range===void 0&&xa.rangeLength===void 0}f(xn,"gt"),s(xn,"isFull"),N(xn,"isFull"),Oe.isFull=xn})(hi||(q.TextDocumentContentChangeEvent=hi={}));var oa;(function(Oe){Oe.method="textDocument/didChange",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(oa||(q.DidChangeTextDocumentNotification=oa={}));var Pi;(function(Oe){Oe.method="textDocument/didClose",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(Pi||(q.DidCloseTextDocumentNotification=Pi={}));var Ha;(function(Oe){Oe.method="textDocument/didSave",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(Ha||(q.DidSaveTextDocumentNotification=Ha={}));var Dn;(function(Oe){Oe.Manual=1,Oe.AfterDelay=2,Oe.FocusOut=3})(Dn||(q.TextDocumentSaveReason=Dn={}));var yr;(function(Oe){Oe.method="textDocument/willSave",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(yr||(q.WillSaveTextDocumentNotification=yr={}));var Ra;(function(Oe){Oe.method="textDocument/willSaveWaitUntil",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Ra||(q.WillSaveTextDocumentWaitUntilRequest=Ra={}));var nh;(function(Oe){Oe.method="workspace/didChangeWatchedFiles",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolNotificationType(Oe.method)})(nh||(q.DidChangeWatchedFilesNotification=nh={}));var nc;(function(Oe){Oe.Created=1,Oe.Changed=2,Oe.Deleted=3})(nc||(q.FileChangeType=nc={}));var Nn;(function(Oe){function vi(xn){let si=xn;return M.objectLiteral(si)&&(L.URI.is(si.baseUri)||L.WorkspaceFolder.is(si.baseUri))&&M.string(si.pattern)}f(vi,"ht"),s(vi,"is"),N(vi,"is"),Oe.is=vi})(Nn||(q.RelativePattern=Nn={}));var em;(function(Oe){Oe.Create=1,Oe.Change=2,Oe.Delete=4})(em||(q.WatchKind=em={}));var pb;(function(Oe){Oe.method="textDocument/publishDiagnostics",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolNotificationType(Oe.method)})(pb||(q.PublishDiagnosticsNotification=pb={}));var gb;(function(Oe){Oe.Invoked=1,Oe.TriggerCharacter=2,Oe.TriggerForIncompleteCompletions=3})(gb||(q.CompletionTriggerKind=gb={}));var fb;(function(Oe){Oe.method="textDocument/completion",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(fb||(q.CompletionRequest=fb={}));var mb;(function(Oe){Oe.method="completionItem/resolve",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(mb||(q.CompletionResolveRequest=mb={}));var tm;(function(Oe){Oe.method="textDocument/hover",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(tm||(q.HoverRequest=tm={}));var rm;(function(Oe){Oe.Invoked=1,Oe.TriggerCharacter=2,Oe.ContentChange=3})(rm||(q.SignatureHelpTriggerKind=rm={}));var ah;(function(Oe){Oe.method="textDocument/signatureHelp",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(ah||(q.SignatureHelpRequest=ah={}));var im;(function(Oe){Oe.method="textDocument/definition",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(im||(q.DefinitionRequest=im={}));var yb;(function(Oe){Oe.method="textDocument/references",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(yb||(q.ReferencesRequest=yb={}));var vb;(function(Oe){Oe.method="textDocument/documentHighlight",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(vb||(q.DocumentHighlightRequest=vb={}));var nm;(function(Oe){Oe.method="textDocument/documentSymbol",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(nm||(q.DocumentSymbolRequest=nm={}));var am;(function(Oe){Oe.method="textDocument/codeAction",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(am||(q.CodeActionRequest=am={}));var bb;(function(Oe){Oe.method="codeAction/resolve",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(bb||(q.CodeActionResolveRequest=bb={}));var tD;(function(Oe){Oe.method="workspace/symbol",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(tD||(q.WorkspaceSymbolRequest=tD={}));var xb;(function(Oe){Oe.method="workspaceSymbol/resolve",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(xb||(q.WorkspaceSymbolResolveRequest=xb={}));var kb;(function(Oe){Oe.method="textDocument/codeLens",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(kb||(q.CodeLensRequest=kb={}));var Tb;(function(Oe){Oe.method="codeLens/resolve",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Tb||(q.CodeLensResolveRequest=Tb={}));var wb;(function(Oe){Oe.method="workspace/codeLens/refresh",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolRequestType0(Oe.method)})(wb||(q.CodeLensRefreshRequest=wb={}));var Tl;(function(Oe){Oe.method="textDocument/documentLink",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Tl||(q.DocumentLinkRequest=Tl={}));var Cb;(function(Oe){Oe.method="documentLink/resolve",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Cb||(q.DocumentLinkResolveRequest=Cb={}));var Eb;(function(Oe){Oe.method="textDocument/formatting",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Eb||(q.DocumentFormattingRequest=Eb={}));var Xd;(function(Oe){Oe.method="textDocument/rangeFormatting",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Xd||(q.DocumentRangeFormattingRequest=Xd={}));var Sb;(function(Oe){Oe.method="textDocument/rangesFormatting",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Sb||(q.DocumentRangesFormattingRequest=Sb={}));var ag;(function(Oe){Oe.method="textDocument/onTypeFormatting",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(ag||(q.DocumentOnTypeFormattingRequest=ag={}));var _b;(function(Oe){Oe.Identifier=1})(_b||(q.PrepareSupportDefaultBehavior=_b={}));var sh;(function(Oe){Oe.method="textDocument/rename",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(sh||(q.RenameRequest=sh={}));var Eu;(function(Oe){Oe.method="textDocument/prepareRename",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Eu||(q.PrepareRenameRequest=Eu={}));var Ab;(function(Oe){Oe.method="workspace/executeCommand",Oe.messageDirection=T.MessageDirection.clientToServer,Oe.type=new T.ProtocolRequestType(Oe.method)})(Ab||(q.ExecuteCommandRequest=Ab={}));var Lb;(function(Oe){Oe.method="workspace/applyEdit",Oe.messageDirection=T.MessageDirection.serverToClient,Oe.type=new T.ProtocolRequestType("workspace/applyEdit")})(Lb||(q.ApplyWorkspaceEditRequest=Lb={}))}}),kGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.createProtocolConnection=void 0;var T=e1();function L(M,B,G,Z){return T.ConnectionStrategy.is(Z)&&(Z={connectionStrategy:Z}),(0,T.createMessageConnection)(M,B,G,Z)}f(L,"r"),s(L,"createProtocolConnection"),N(L,"createProtocolConnection"),q.createProtocolConnection=L}}),TGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/common/api.js"(q){"use strict";var T=q&&q.__createBinding||(Object.create?(function(G,Z,ee,K){K===void 0&&(K=ee);var ne=Object.getOwnPropertyDescriptor(Z,ee);(!ne||("get"in ne?!Z.__esModule:ne.writable||ne.configurable))&&(ne={enumerable:!0,get:N(function(){return Z[ee]},"get")}),Object.defineProperty(G,K,ne)}):(function(G,Z,ee,K){K===void 0&&(K=ee),G[K]=Z[ee]})),L=q&&q.__exportStar||function(G,Z){for(var ee in G)ee!=="default"&&!Object.prototype.hasOwnProperty.call(Z,ee)&&T(Z,G,ee)};Object.defineProperty(q,"__esModule",{value:!0}),q.LSPErrorCodes=q.createProtocolConnection=void 0,L(e1(),q),L((ev(),a9(ET)),q),L(Qn(),q),L(xGe(),q);var M=kGe();Object.defineProperty(q,"createProtocolConnection",{enumerable:!0,get:N(function(){return M.createProtocolConnection},"get")});var B;(function(G){G.lspReservedErrorRangeStart=-32899,G.RequestFailed=-32803,G.ServerCancelled=-32802,G.ContentModified=-32801,G.RequestCancelled=-32800,G.lspReservedErrorRangeEnd=-32800})(B||(q.LSPErrorCodes=B={}))}}),wGe=oi({"../../node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(q){"use strict";var T=q&&q.__createBinding||(Object.create?(function(G,Z,ee,K){K===void 0&&(K=ee);var ne=Object.getOwnPropertyDescriptor(Z,ee);(!ne||("get"in ne?!Z.__esModule:ne.writable||ne.configurable))&&(ne={enumerable:!0,get:N(function(){return Z[ee]},"get")}),Object.defineProperty(G,K,ne)}):(function(G,Z,ee,K){K===void 0&&(K=ee),G[K]=Z[ee]})),L=q&&q.__exportStar||function(G,Z){for(var ee in G)ee!=="default"&&!Object.prototype.hasOwnProperty.call(Z,ee)&&T(Z,G,ee)};Object.defineProperty(q,"__esModule",{value:!0}),q.createProtocolConnection=void 0;var M=Are();L(Are(),q),L(TGe(),q);function B(G,Z,ee,K){return(0,M.createMessageConnection)(G,Z,ee,K)}f(B,"n"),s(B,"createProtocolConnection"),N(B,"createProtocolConnection"),q.createProtocolConnection=B}}),Lre={},Sd(Lre,{AbstractAstReflection:s(()=>m9,"AbstractAstReflection"),AbstractCstNode:s(()=>xL,"AbstractCstNode"),AbstractLangiumParser:s(()=>TL,"AbstractLangiumParser"),AbstractParserErrorMessageProvider:s(()=>Eae,"AbstractParserErrorMessageProvider"),AbstractThreadedAsyncParser:s(()=>ttt,"AbstractThreadedAsyncParser"),AstUtils:s(()=>y9,"AstUtils"),BiMap:s(()=>H5,"BiMap"),Cancellation:s(()=>yn,"Cancellation"),CompositeCstNodeImpl:s(()=>G5,"CompositeCstNodeImpl"),ContextCache:s(()=>X5,"ContextCache"),CstNodeBuilder:s(()=>kae,"CstNodeBuilder"),CstUtils:s(()=>f9,"CstUtils"),DEFAULT_TOKENIZE_OPTIONS:s(()=>IL,"DEFAULT_TOKENIZE_OPTIONS"),DONE_RESULT:s(()=>Hs,"DONE_RESULT"),DatatypeSymbol:s(()=>U5,"DatatypeSymbol"),DefaultAstNodeDescriptionProvider:s(()=>Uae,"DefaultAstNodeDescriptionProvider"),DefaultAstNodeLocator:s(()=>Wae,"DefaultAstNodeLocator"),DefaultAsyncParser:s(()=>ise,"DefaultAsyncParser"),DefaultCommentProvider:s(()=>rse,"DefaultCommentProvider"),DefaultConfigurationProvider:s(()=>Hae,"DefaultConfigurationProvider"),DefaultDocumentBuilder:s(()=>Yae,"DefaultDocumentBuilder"),DefaultDocumentValidator:s(()=>Gae,"DefaultDocumentValidator"),DefaultHydrator:s(()=>ase,"DefaultHydrator"),DefaultIndexManager:s(()=>Xae,"DefaultIndexManager"),DefaultJsonSerializer:s(()=>Fae,"DefaultJsonSerializer"),DefaultLangiumDocumentFactory:s(()=>Rae,"DefaultLangiumDocumentFactory"),DefaultLangiumDocuments:s(()=>Iae,"DefaultLangiumDocuments"),DefaultLangiumProfiler:s(()=>stt,"DefaultLangiumProfiler"),DefaultLexer:s(()=>DL,"DefaultLexer"),DefaultLexerErrorMessageProvider:s(()=>Zae,"DefaultLexerErrorMessageProvider"),DefaultLinker:s(()=>Dae,"DefaultLinker"),DefaultNameProvider:s(()=>Nae,"DefaultNameProvider"),DefaultReferenceDescriptionProvider:s(()=>Vae,"DefaultReferenceDescriptionProvider"),DefaultReferences:s(()=>Mae,"DefaultReferences"),DefaultScopeComputation:s(()=>Oae,"DefaultScopeComputation"),DefaultScopeProvider:s(()=>Pae,"DefaultScopeProvider"),DefaultServiceRegistry:s(()=>zae,"DefaultServiceRegistry"),DefaultTokenBuilder:s(()=>V5,"DefaultTokenBuilder"),DefaultValueConverter:s(()=>CL,"DefaultValueConverter"),DefaultWorkspaceLock:s(()=>nse,"DefaultWorkspaceLock"),DefaultWorkspaceManager:s(()=>Kae,"DefaultWorkspaceManager"),Deferred:s(()=>su,"Deferred"),Disposable:s(()=>k1,"Disposable"),DisposableCache:s(()=>Y5,"DisposableCache"),DocumentCache:s(()=>Bae,"DocumentCache"),DocumentState:s(()=>wi,"DocumentState"),DocumentValidator:s(()=>Xl,"DocumentValidator"),EMPTY_SCOPE:s(()=>Zet,"EMPTY_SCOPE"),EMPTY_STREAM:s(()=>t1,"EMPTY_STREAM"),EmptyFileSystem:s(()=>gl,"EmptyFileSystem"),EmptyFileSystemProvider:s(()=>hse,"EmptyFileSystemProvider"),ErrorWithLocation:s(()=>XT,"ErrorWithLocation"),GrammarAST:s(()=>Rre,"GrammarAST"),GrammarUtils:s(()=>x9,"GrammarUtils"),IndentationAwareLexer:s(()=>itt,"IndentationAwareLexer"),IndentationAwareTokenBuilder:s(()=>cse,"IndentationAwareTokenBuilder"),JSDocDocumentationProvider:s(()=>tse,"JSDocDocumentationProvider"),LangiumCompletionParser:s(()=>Sae,"LangiumCompletionParser"),LangiumParser:s(()=>Cae,"LangiumParser"),LangiumParserErrorMessageProvider:s(()=>wL,"LangiumParserErrorMessageProvider"),LeafCstNodeImpl:s(()=>j5,"LeafCstNodeImpl"),LexingMode:s(()=>T1,"LexingMode"),MapScope:s(()=>Ket,"MapScope"),Module:s(()=>sse,"Module"),MultiMap:s(()=>ou,"MultiMap"),MultiMapScope:s(()=>$ae,"MultiMapScope"),OperationCancelled:s(()=>Vc,"OperationCancelled"),ParserWorker:s(()=>rtt,"ParserWorker"),ProfilingTask:s(()=>use,"ProfilingTask"),Reduction:s(()=>OT,"Reduction"),RefResolving:s(()=>P0,"RefResolving"),RegExpUtils:s(()=>k9,"RegExpUtils"),RootCstNodeImpl:s(()=>kL,"RootCstNodeImpl"),SimpleCache:s(()=>AL,"SimpleCache"),StreamImpl:s(()=>Pc,"StreamImpl"),StreamScope:s(()=>_L,"StreamScope"),TextDocument:s(()=>EL,"TextDocument"),TreeStreamImpl:s(()=>r1,"TreeStreamImpl"),URI:s(()=>Vo,"URI"),UriTrie:s(()=>SL,"UriTrie"),UriUtils:s(()=>ko,"UriUtils"),VALIDATE_EACH_NODE:s(()=>jae,"VALIDATE_EACH_NODE"),ValidationCategory:s(()=>RL,"ValidationCategory"),ValidationRegistry:s(()=>qae,"ValidationRegistry"),ValueConverter:s(()=>au,"ValueConverter"),WorkspaceCache:s(()=>LL,"WorkspaceCache"),assertCondition:s(()=>_A,"assertCondition"),assertUnreachable:s(()=>wd,"assertUnreachable"),createCompletionParser:s(()=>O8,"createCompletionParser"),createDefaultCoreModule:s(()=>$o,"createDefaultCoreModule"),createDefaultSharedCoreModule:s(()=>Bo,"createDefaultSharedCoreModule"),createGrammarConfig:s(()=>VA,"createGrammarConfig"),createLangiumParser:s(()=>$8,"createLangiumParser"),createParser:s(()=>uT,"createParser"),delayNextTick:s(()=>gT,"delayNextTick"),diagnosticData:s(()=>f0,"diagnosticData"),eagerLoad:s(()=>e9,"eagerLoad"),getDiagnosticRange:s(()=>V8,"getDiagnosticRange"),indentationBuilderDefaultOptions:s(()=>OL,"indentationBuilderDefaultOptions"),inject:s(()=>Un,"inject"),interruptAndCheck:s(()=>es,"interruptAndCheck"),isAstNode:s(()=>_a,"isAstNode"),isAstNodeDescription:s(()=>Q7,"isAstNodeDescription"),isAstNodeWithComment:s(()=>G8,"isAstNodeWithComment"),isCompositeCstNode:s(()=>jh,"isCompositeCstNode"),isIMultiModeLexerDefinition:s(()=>vT,"isIMultiModeLexerDefinition"),isJSDoc:s(()=>Y8,"isJSDoc"),isLeafCstNode:s(()=>Xp,"isLeafCstNode"),isLinkingError:s(()=>Yp,"isLinkingError"),isMultiReference:s(()=>$c,"isMultiReference"),isNamed:s(()=>j8,"isNamed"),isOperationCancelled:s(()=>g0,"isOperationCancelled"),isReference:s(()=>Vs,"isReference"),isRootCstNode:s(()=>Ak,"isRootCstNode"),isTokenTypeArray:s(()=>yT,"isTokenTypeArray"),isTokenTypeDictionary:s(()=>bT,"isTokenTypeDictionary"),loadGrammarFromJson:s(()=>Po,"loadGrammarFromJson"),parseJSDoc:s(()=>H8,"parseJSDoc"),prepareLangiumParser:s(()=>B8,"prepareLangiumParser"),setInterruptionPeriod:s(()=>P8,"setInterruptionPeriod"),startCancelableOperation:s(()=>fT,"startCancelableOperation"),stream:s(()=>tn,"stream"),toDiagnosticData:s(()=>W8,"toDiagnosticData"),toDiagnosticSeverity:s(()=>Y2,"toDiagnosticSeverity")}),f9={},Sd(f9,{DefaultNameRegexp:s(()=>b9,"DefaultNameRegexp"),RangeComparison:s(()=>Qh,"RangeComparison"),compareRange:s(()=>xA,"compareRange"),findCommentNode:s(()=>TA,"findCommentNode"),findDeclarationNodeAtOffset:s(()=>hH,"findDeclarationNodeAtOffset"),findLeafNodeAtOffset:s(()=>Fk,"findLeafNodeAtOffset"),findLeafNodeBeforeOffset:s(()=>wA,"findLeafNodeBeforeOffset"),flattenCst:s(()=>cH,"flattenCst"),getDatatypeNode:s(()=>lH,"getDatatypeNode"),getInteriorNodes:s(()=>pH,"getInteriorNodes"),getNextNode:s(()=>uH,"getNextNode"),getPreviousNode:s(()=>EA,"getPreviousNode"),getStartlineNode:s(()=>dH,"getStartlineNode"),inRange:s(()=>kA,"inRange"),isChildNode:s(()=>bA,"isChildNode"),isCommentNode:s(()=>Pk,"isCommentNode"),streamCst:s(()=>qf,"streamCst"),toDocumentSegment:s(()=>jf,"toDocumentSegment"),tokenToRange:s(()=>_2,"tokenToRange")}),s(_a,"isAstNode"),N(_a,"isAstNode"),s(Vs,"isReference"),N(Vs,"isReference"),s($c,"isMultiReference"),N($c,"isMultiReference"),s(Q7,"isAstNodeDescription"),N(Q7,"isAstNodeDescription"),s(Yp,"isLinkingError"),N(Yp,"isLinkingError"),m9=(e=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(T){var B;let L=this.types[T.container.$type];if(!L)throw new Error(`Type ${T.container.$type||"undefined"} not found.`);let M=(B=L.properties[T.property])==null?void 0:B.referenceType;if(!M)throw new Error(`Property ${T.property||"undefined"} of type ${T.container.$type} is not a reference.`);return M}getTypeMetaData(T){return this.types[T]||{name:T,properties:{},superTypes:[]}}isInstance(T,L){return _a(T)&&this.isSubtype(T.$type,L)}isSubtype(T,L){if(T===L)return!0;let M=this.subtypes[T];M||(M=this.subtypes[T]={});let B=M[L];if(B!==void 0)return B;
vendor: 5,701 bytes, line 1226
1226{let G=this.types[T],Z=G?G.superTypes.some(ee=>this.isSubtype(ee,L)):!1;return M[L]=Z,Z}}getAllSubTypes(T){let L=this.allSubtypes[T];if(L)return L;{let M=this.getAllTypes(),B=[];for(let G of M)this.isSubtype(G,T)&&B.push(G);return this.allSubtypes[T]=B,B}}},f(e,"p$"),s(e,"AbstractAstReflection"),N(e,"AbstractAstReflection"),e),s(jh,"isCompositeCstNode"),N(jh,"isCompositeCstNode"),s(Xp,"isLeafCstNode"),N(Xp,"isLeafCstNode"),s(Ak,"isRootCstNode"),N(Ak,"isRootCstNode"),Pc=(t=class{constructor(T,L){this.startFn=T,this.nextFn=L}iterator(){let T={state:this.startFn(),next:N(()=>this.nextFn(T.state),"next"),[Symbol.iterator]:()=>T};return T}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let T=this.iterator(),L=0,M=T.next();for(;!M.done;)L++,M=T.next();return L}toArray(){let T=[],L=this.iterator(),M;do M=L.next(),M.value!==void 0&&T.push(M.value);while(!M.done);return T}toSet(){return new Set(this)}toMap(T,L){let M=this.map(B=>[T?T(B):B,L?L(B):B]);return new Map(M)}toString(){return this.join()}concat(T){return new t(()=>({first:this.startFn(),firstDone:!1,iterator:T[Symbol.iterator]()}),L=>{let M;if(!L.firstDone){do if(M=this.nextFn(L.first),!M.done)return M;while(!M.done);L.firstDone=!0}do if(M=L.iterator.next(),!M.done)return M;while(!M.done);return Hs})}join(T=","){let L=this.iterator(),M="",B,G=!1;do B=L.next(),B.done||(G&&(M+=T),M+=UW(B.value)),G=!0;while(!B.done);return M}indexOf(T,L=0){let M=this.iterator(),B=0,G=M.next();for(;!G.done;){if(B>=L&&G.value===T)return B;G=M.next(),B++}return-1}every(T){let L=this.iterator(),M=L.next();for(;!M.done;){if(!T(M.value))return!1;M=L.next()}return!0}some(T){let L=this.iterator(),M=L.next();for(;!M.done;){if(T(M.value))return!0;M=L.next()}return!1}forEach(T){let L=this.iterator(),M=0,B=L.next();for(;!B.done;)T(B.value,M),B=L.next(),M++}map(T){return new t(this.startFn,L=>{let{done:M,value:B}=this.nextFn(L);return M?Hs:{done:!1,value:T(B)}})}filter(T){return new t(this.startFn,L=>{let M;do if(M=this.nextFn(L),!M.done&&T(M.value))return M;while(!M.done);return Hs})}nonNullable(){return this.filter(T=>T!=null)}reduce(T,L){let M=this.iterator(),B=L,G=M.next();for(;!G.done;)B===void 0?B=G.value:B=T(B,G.value),G=M.next();return B}reduceRight(T,L){return this.recursiveReduce(this.iterator(),T,L)}recursiveReduce(T,L,M){let B=T.next();if(B.done)return M;let G=this.recursiveReduce(T,L,M);return G===void 0?B.value:L(G,B.value)}find(T){let L=this.iterator(),M=L.next();for(;!M.done;){if(T(M.value))return M.value;M=L.next()}}findIndex(T){let L=this.iterator(),M=0,B=L.next();for(;!B.done;){if(T(B.value))return M;B=L.next(),M++}return-1}includes(T){let L=this.iterator(),M=L.next();for(;!M.done;){if(M.value===T)return!0;M=L.next()}return!1}flatMap(T){return new t(()=>({this:this.startFn()}),L=>{do{if(L.iterator){let G=L.iterator.next();if(G.done)L.iterator=void 0;else return G}let{done:M,value:B}=this.nextFn(L.this);if(!M){let G=T(B);if(C2(G))L.iterator=G[Symbol.iterator]();else return{done:!1,value:G}}}while(L.iterator);return Hs})}flat(T){if(T===void 0&&(T=1),T<=0)return this;let L=T>1?this.flat(T-1):this;return new t(()=>({this:L.startFn()}),M=>{do{if(M.iterator){let Z=M.iterator.next();if(Z.done)M.iterator=void 0;else return Z}let{done:B,value:G}=L.nextFn(M.this);if(!B)if(C2(G))M.iterator=G[Symbol.iterator]();else return{done:!1,value:G}}while(M.iterator);return Hs})}head(){let T=this.iterator().next();if(!T.done)return T.value}tail(T=1){return new t(()=>{let L=this.startFn();for(let M=0;M<T;M++)if(this.nextFn(L).done)return L;return L},this.nextFn)}limit(T){return new t(()=>({size:0,state:this.startFn()}),L=>(L.size++,L.size>T?Hs:this.nextFn(L.state)))}distinct(T){return new t(()=>({set:new Set,internalState:this.startFn()}),L=>{let M;do if(M=this.nextFn(L.internalState),!M.done){let B=T?T(M.value):M.value;if(!L.set.has(B))return L.set.add(B),M}while(!M.done);return Hs})}exclude(T,L){let M=new Set;for(let B of T){let G=L?L(B):B;M.add(G)}return this.filter(B=>{let G=L?L(B):B;return!M.has(G)})}},f(t,"rh"),s(t,"_StreamImpl"),N(t,"StreamImpl"),t),s(UW,"toString"),N(UW,"toString"),s(C2,"isIterable"),N(C2,"isIterable"),t1=new Pc(()=>{},()=>Hs),Hs=Object.freeze({done:!0,value:void 0}),s(tn,"stream"),N(tn,"stream"),r1=(r=class extends Pc{constructor(T,L,M){super(()=>({iterators:M!=null&&M.includeRoot?[[T][Symbol.iterator]()]:[L(T)[Symbol.iterator]()],pruned:!1}),B=>{for(B.pruned&&(B.iterators.pop(),B.pruned=!1);B.iterators.length>0;){let G=B.iterators[B.iterators.length-1].next();if(G.done)B.iterators.pop();else return B.iterators.push(L(G.value)[Symbol.iterator]()),G}return Hs})}iterator(){let T={state:this.startFn(),next:N(()=>this.nextFn(T.state),"next"),prune:N(()=>{T.state.pruned=!0},"prune"),[Symbol.iterator]:()=>T};return T}},f(r,"Y1"),s(r,"TreeStreamImpl"),N(r,"TreeStreamImpl"),r),(function(q){function T(G){return G.reduce((Z,ee)=>Z+ee,0)}f(T,"t"),s(T,"sum"),N(T,"sum"),q.sum=T;function L(G){return G.reduce((Z,ee)=>Z*ee,0)}f(L,"r"),s(L,"product"),N(L,"product"),q.product=L;function M(G){return G.reduce((Z,ee)=>Math.min(Z,ee))}f(M,"i"),s(M,"min2"),N(M,"min"),q.min=M;function B(G){return G.reduce((Z,ee)=>Math.max(Z,ee))}f(B,"n"),s(B,"max"),N(B,"max"),q.max=B})(OT||(OT={})),y9={},Sd(y9,{assignMandatoryProperties:s(()=>J7,"assignMandatoryProperties"),copyAstNode:s(()=>Ik,"copyAstNode"),findRootNode:s(()=>Pf,"findRootNode"),getContainerOfType:s(()=>Kp,"getContainerOfType"),getDocument:s(()=>Fl,"getDocument"),getReferenceNodes:s(()=>Lk,"getReferenceNodes"),hasContainerOfType:s(()=>VW,"hasContainerOfType"),linkContentToContainer:s(()=>Bf,"linkContentToContainer"),streamAllContents:s(()=>Gh,"streamAllContents"),streamAst:s(()=>
1226zl,"streamAst"),streamContents:s(()=>E2,"streamContents"),streamReferences:s(()=>Ff,"streamReferences")}),s(Bf,"linkContentToContainer"),N(Bf,"linkContentToContainer"),s(Kp,"getContainerOfType"),N(Kp,"getContainerOfType"),s(VW,"hasContainerOfType"),N(VW,"hasContainerOfType"),s(Fl,"getDocument"),N(Fl,"getDocument"),s(Pf,"findRootNode"),N(Pf,"findRootNode"),s(Lk,"getReferenceNodes"),N(Lk,"getReferenceNodes"),s(E2,"streamContents"),N(E2,"streamContents"),s(Gh,"streamAllContents"),N(Gh,"streamAllContents"),s(zl,"streamAst"),N(zl,"streamAst"),s(Rk,"isAstNodeInRange"),N(Rk,"isAstNodeInRange"),s(Ff,"streamReferences"),N(Ff,"streamReferences"),s(J7,"assignMandatoryProperties"),N(J7,"assignMandatoryProperties"),s(eA,"copyDefaultValue"),N(eA,"copyDefaultValue"),s(Ik,"copyAstNode"),N(Ik,"copyAstNode"),Rre={},Sd(Rre,{AbstractElement:s(()=>go,"AbstractElement"),AbstractParserRule:s(()=>rv,"AbstractParserRule"),AbstractRule:s(()=>i1,"AbstractRule"),AbstractType:s(()=>Fo,"AbstractType"),Action:s(()=>Ad,"Action"),Alternatives:s(()=>iv,"Alternatives"),ArrayLiteral:s(()=>$T,"ArrayLiteral"),ArrayType:s(()=>BT,"ArrayType"),Assignment:s(()=>Ld,"Assignment"),BooleanLiteral:s(()=>PT,"BooleanLiteral"),CharacterRange:s(()=>Rd,"CharacterRange"),Condition:s(()=>Id,"Condition"),Conjunction:s(()=>nv,"Conjunction"),CrossReference:s(()=>Dd,"CrossReference"),Disjunction:s(()=>av,"Disjunction"),EndOfFile:s(()=>FT,"EndOfFile"),Grammar:s(()=>Kh,"Grammar"),GrammarImport:s(()=>zT,"GrammarImport"),Group:s(()=>y0,"Group"),InferredType:s(()=>qT,"InferredType"),InfixRule:s(()=>Fc,"InfixRule"),InfixRuleOperatorList:s(()=>sv,"InfixRuleOperatorList"),InfixRuleOperators:s(()=>jT,"InfixRuleOperators"),Interface:s(()=>n1,"Interface"),Keyword:s(()=>a1,"Keyword"),LangiumGrammarAstReflection:s(()=>v9,"LangiumGrammarAstReflection"),LangiumGrammarTerminals:s(()=>CGe,"LangiumGrammarTerminals"),NamedArgument:s(()=>s1,"NamedArgument"),NegatedToken:s(()=>v0,"NegatedToken"),Negation:s(()=>GT,"Negation"),NumberLiteral:s(()=>UT,"NumberLiteral"),Parameter:s(()=>o1,"Parameter"),ParameterReference:s(()=>VT,"ParameterReference"),ParserRule:s(()=>Gl,"ParserRule"),ReferenceType:s(()=>ov,"ReferenceType"),RegexToken:s(()=>b0,"RegexToken"),ReturnType:s(()=>WT,"ReturnType"),RuleCall:s(()=>x0,"RuleCall"),SimpleType:s(()=>l1,"SimpleType"),StringLiteral:s(()=>HT,"StringLiteral"),TerminalAlternatives:s(()=>k0,"TerminalAlternatives"),TerminalElement:s(()=>fo,"TerminalElement"),TerminalGroup:s(()=>T0,"TerminalGroup"),TerminalRule:s(()=>Zh,"TerminalRule"),TerminalRuleCall:s(()=>w0,"TerminalRuleCall"),Type:s(()=>lv,"Type"),TypeAttribute:s(()=>C0,"TypeAttribute"),TypeDefinition:s(()=>E0,"TypeDefinition"),UnionType:s(()=>YT,"UnionType"),UnorderedGroup:s(()=>cv,"UnorderedGroup"),UntilToken:s(()=>S0,"UntilToken"),ValueLiteral:s(()=>_0,"ValueLiteral"),Wildcard:s(()=>c1,"Wildcard"),isAbstractElement:s(()=>Dk,"isAbstractElement"),isAbstractParserRule:s(()=>Zp,"isAbstractParserRule"),isAbstractRule:s(()=>WW,"isAbstractRule"),isAbstractType:s(()=>HW,"isAbstractType"),isAction:s(()=>Td,"isAction"),isAlternatives:s(()=>Nk,"isAlternatives"),isArrayLiteral:s(()=>YW,"isArrayLiteral"),isArrayType:s(()=>tA,"isArrayType"),isAssignment:s(()=>Uh,"isAssignment"),isBooleanLiteral:s(()=>rA,"isBooleanLiteral"),isCharacterRange:s(()=>iA,"isCharacterRange"),isCondition:s(()=>XW,"isCondition"),isConjunction:s(()=>nA,"isConjunction"),isCrossReference:s(()=>Qp,"isCrossReference"),isDisjunction:s(()=>aA,"isDisjunction"),isEndOfFile:s(()=>sA,"isEndOfFile"),isGrammar:s(()=>KW,"isGrammar"),isGrammarImport:s(()=>ZW,"isGrammarImport"),isGroup:s(()=>Jp,"isGroup"),isInferredType:s(()=>S2,"isInferredType"),isInfixRule:s(()=>zf,"isInfixRule"),isInfixRuleOperatorList:s(()=>QW,"isInfixRuleOperatorList"),isInfixRuleOperators:s(()=>JW,"isInfixRuleOperators"),isInterface:s(()=>oA,"isInterface"),isKeyword:s(()=>Vh,"isKeyword"),isNamedArgument:s(()=>eH,"isNamedArgument"),isNegatedToken:s(()=>lA,"isNegatedToken"),isNegation:s(()=>cA,"isNegation"),isNumberLiteral:s(()=>tH,"isNumberLiteral"),isParameter:s(()=>rH,"isParameter"),isParameterReference:s(()=>hA,"isParameterReference"),isParserRule:s(()=>Ws,"isParserRule"),isReferenceType:s(()=>uA,"isReferenceType"),isRegexToken:s(()=>dA,"isRegexToken"),isReturnType:s(()=>pA,"isReturnType"),isRuleCall:s(()=>Wh,"isRuleCall"),isSimpleType:s(()=>
1226Mk,"isSimpleType"),isStringLiteral:s(()=>iH,"isStringLiteral"),isTerminalAlternatives:s(()=>gA,"isTerminalAlternatives"),isTerminalElement:s(()=>nH,"isTerminalElement"),isTerminalGroup:s(()=>fA,"isTerminalGroup"),isTerminalRule:s(()=>cl,"isTerminalRule"),isTerminalRuleCall:s(()=>Ok,"isTerminalRuleCall"),isType:s(()=>$k,"isType"),isTypeAttribute:s(()=>aH,"isTypeAttribute"),isTypeDefinition:s(()=>sH,"isTypeDefinition"),isUnionType:s(()=>mA,"isUnionType"),isUnorderedGroup:s(()=>Bk,"isUnorderedGroup"),isUntilToken:s(()=>yA,"isUntilToken"),isValueLiteral:s(()=>oH,"isValueLiteral"),isWildcard:s(()=>vA,"isWildcard"),reflection:s(()=>jr,"reflection")}),CGe={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]*/},go={$type:"AbstractElement",cardinality:"cardinality"},s(Dk,"isAbstractElement"),N(Dk,"isAbstractElement"),rv={$type:"AbstractParserRule"},s(Zp,"isAbstractParserRule"),N(Zp,"isAbstractParserRule"),i1={$type:"AbstractRule"},s(WW,"isAbstractRule"),N(WW,"isAbstractRule"),Fo={$type:"AbstractType"},s(HW,"isAbstractType"),N(HW,"isAbstractType"),Ad={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"},s(Td,"isAction"),N(Td,"isAction"),iv={$type:"Alternatives",cardinality:"cardinality",elements:"elements"},s(Nk,"isAlternatives"),N(Nk,"isAlternatives"),$T={$type:"ArrayLiteral",elements:"elements"},s(YW,"isArrayLiteral"),N(YW,"isArrayLiteral"),BT={$type:"ArrayType",elementType:"elementType"},s(tA,"isArrayType"),N(tA,"isArrayType"),Ld={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"},s(Uh,"isAssignment"),N(Uh,"isAssignment"),PT={$type:"BooleanLiteral",true:"true"},s(rA,"isBooleanLiteral"),N(rA,"isBooleanLiteral"),Rd={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"},s(iA,"isCharacterRange"),N(iA,"isCharacterRange"),Id={$type:"Condition"},s(XW,"isCondition"),N(XW,"isCondition"),nv={$type:"Conjunction",left:"left",right:"right"},s(nA,"isConjunction"),N(nA,"isConjunction"),Dd={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"},s(Qp,"isCrossReference"),N(Qp,"isCrossReference"),av={$type:"Disjunction",left:"left",right:"right"},s(aA,"isDisjunction"),N(aA,"isDisjunction"),FT={$type:"EndOfFile",cardinality:"cardinality"},s(sA,"isEndOfFile"),N(sA,"isEndOfFile"),Kh={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},s(KW,"isGrammar"),N(KW,"isGrammar"),zT={$type:"GrammarImport",path:"path"},s(ZW,"isGrammarImport"),N(ZW,"isGrammarImport"),y0={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"},s(Jp,"isGroup"),N(Jp,"isGroup"),qT={$type:"InferredType",name:"name"},s(S2,"isInferredType"),N(S2,"isInferredType"),Fc={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"},s(zf,"isInfixRule"),N(zf,"isInfixRule"),sv={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},s(QW,"isInfixRuleOperatorList"),N(QW,"isInfixRuleOperatorList"),jT={$type:"InfixRuleOperators",precedences:"precedences"},s(JW,"isInfixRuleOperators"),N(JW,"isInfixRuleOperators"),n1={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"},s(oA,"isInterface"),N(oA,"isInterface"),a1={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"},s(Vh,"isKeyword"),N(Vh,"isKeyword"),s1={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},s(eH,"isNamedArgument"),N(eH,"isNamedArgument"),v0={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"},s(lA,"isNegatedToken"),N(lA,"isNegatedToken"),GT={$type:"Negation",value:"value"},s(cA,"isNegation"),N(cA,"isNegation"),UT={$type:"NumberLiteral",value:"value"},s(tH,"isNumberLiteral"),N(tH,"isNumberLiteral"),o1={$type:"Parameter",name:"name"},s(rH,"isParameter"),N(rH,"isParameter"),VT={$type:"ParameterReference",parameter:"parameter"},s(hA,"isParameterReference"),N(hA,"isParameterReference"),Gl={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"},s(Ws,"isParserRule"),N(Ws,"isParserRule"),ov={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},s(uA,"isReferenceType"),N(uA,"isReferenceType"),b0={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"},s(dA,"isRegexToken"),N(dA,"isRegexToken"),WT={$type:"ReturnType",name:"name"},s(pA,"isReturnType"),N(pA,"isReturnType"),x0={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"},s(Wh,"isRuleCall"),N(Wh,"isRuleCall"),l1={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"},s(Mk,"isSimpleType"),N(Mk,"isSimpleType"),HT={$type:"StringLiteral",value:"value"},s(iH,"isStringLiteral"),N(iH,"isStringLiteral"),k0={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"},s(gA,"isTerminalAlternatives"),N(gA,"isTerminalAlternatives"),fo={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},s(nH,"isTerminalElement"),N(nH,"isTerminalElement"),T0={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"},s(fA,"isTerminalGroup"),N(fA,"isTerminalGroup"),Zh={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"},s(cl,"isTerminalRule"),N(cl,"isTerminalRule"),w0={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"},s(Ok,"isTerminalRuleCall"),N(Ok,"isTerminalRuleCall"),lv={$type:"Type",name:"name",type:"type"},s($k,"isType"),N($k,"isType"),C0={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},s(aH,"isTypeAttribute"),N(aH,"isTypeAttribute"),E0={$type:"TypeDefinition"},s(sH,"isTypeDefinition"),N(sH,"isTypeDefinition"),YT={$type:"UnionType",types:"types"},s(mA,"isUnionType"),N(mA,"isUnionType"),cv={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"},s(Bk,"isUnorderedGroup"),N(Bk,"isUnorderedGroup"),S0={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"},s(yA,"isUntilToken"),N(yA,"isUntilToken"),_0={$type:"ValueLiteral"},s(oH,"isValueLiteral"),N(oH,"isValueLiteral"),c1={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},s(vA,"isWildcard"),N(vA,"isWildcard"),v9=(i=class extends m9{constructor(){super(...arguments),this.types={AbstractElement:{name:go.$type,properties:{cardinality:{name:go.cardinality}},superTypes:[]},AbstractParserRule:{name:rv.$type,properties:{},superTypes:[i1.$type,Fo.$type]},AbstractRule:{name:i1.$type,properties:{},superTypes:[]},AbstractType:{name:Fo.$type,properties:{},superTypes:[]},Action:{name:Ad.$type,properties:{cardinality:{name:Ad.cardinality},feature:{name:Ad.feature},inferredType:{name:Ad.inferredType},operator:{name:Ad.operator},type:{name:Ad.type,referenceType:Fo.$type}},superTypes:[go.$type]},Alternatives:{name:iv.$type,properties:{cardinality:{name:iv.cardinality},elements:{name:iv.elements,defaultValue:[]}},superTypes:[go.$type]},ArrayLiteral:{name:$T.$type,properties:{elements:{name:$T.elements,defaultValue:[]}},superTypes:[_0.$type]},ArrayType:{name:BT.$type,properties:{elementType:{name:BT.elementType}},superTypes:[E0.$type]},Assignment:{name:Ld.$type,properties:{cardinality:{name:Ld.cardinality},feature:{name:Ld.feature},operator:{name:Ld.operator},predicate:{name:Ld.predicate},terminal:{name:Ld.terminal}},superTypes:[go.$type]},BooleanLiteral:{name:PT.$type,properties:{true:{name:PT.true,defaultValue:!1}},superTypes:[Id.$type,_0.$type]},CharacterRange:{name:Rd.$type,properties:{cardinality:{name:Rd.cardinality},left:{name:Rd.left},lookahead:{name:Rd.lookahead},parenthesized:{name:Rd.parenthesized,defaultValue:!1},right:{name:Rd.right}},superTypes:[fo.$type]},Condition:{name:Id.$type,properties:{},superTypes:[]}
vendor: 6,039 bytes, line 1226
1226,Conjunction:{name:nv.$type,properties:{left:{name:nv.left},right:{name:nv.right}},superTypes:[Id.$type]},CrossReference:{name:Dd.$type,properties:{cardinality:{name:Dd.cardinality},deprecatedSyntax:{name:Dd.deprecatedSyntax,defaultValue:!1},isMulti:{name:Dd.isMulti,defaultValue:!1},terminal:{name:Dd.terminal},type:{name:Dd.type,referenceType:Fo.$type}},superTypes:[go.$type]},Disjunction:{name:av.$type,properties:{left:{name:av.left},right:{name:av.right}},superTypes:[Id.$type]},EndOfFile:{name:FT.$type,properties:{cardinality:{name:FT.cardinality}},superTypes:[go.$type]},Grammar:{name:Kh.$type,properties:{imports:{name:Kh.imports,defaultValue:[]},interfaces:{name:Kh.interfaces,defaultValue:[]},isDeclared:{name:Kh.isDeclared,defaultValue:!1},name:{name:Kh.name},rules:{name:Kh.rules,defaultValue:[]},types:{name:Kh.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:zT.$type,properties:{path:{name:zT.path}},superTypes:[]},Group:{name:y0.$type,properties:{cardinality:{name:y0.cardinality},elements:{name:y0.elements,defaultValue:[]},guardCondition:{name:y0.guardCondition},predicate:{name:y0.predicate}},superTypes:[go.$type]},InferredType:{name:qT.$type,properties:{name:{name:qT.name}},superTypes:[Fo.$type]},InfixRule:{name:Fc.$type,properties:{call:{name:Fc.call},dataType:{name:Fc.dataType},inferredType:{name:Fc.inferredType},name:{name:Fc.name},operators:{name:Fc.operators},parameters:{name:Fc.parameters,defaultValue:[]},returnType:{name:Fc.returnType,referenceType:Fo.$type}},superTypes:[rv.$type]},InfixRuleOperatorList:{name:sv.$type,properties:{associativity:{name:sv.associativity},operators:{name:sv.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:jT.$type,properties:{precedences:{name:jT.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:n1.$type,properties:{attributes:{name:n1.attributes,defaultValue:[]},name:{name:n1.name},superTypes:{name:n1.superTypes,defaultValue:[],referenceType:Fo.$type}},superTypes:[Fo.$type]},Keyword:{name:a1.$type,properties:{cardinality:{name:a1.cardinality},predicate:{name:a1.predicate},value:{name:a1.value}},superTypes:[go.$type]},NamedArgument:{name:s1.$type,properties:{calledByName:{name:s1.calledByName,defaultValue:!1},parameter:{name:s1.parameter,referenceType:o1.$type},value:{name:s1.value}},superTypes:[]},NegatedToken:{name:v0.$type,properties:{cardinality:{name:v0.cardinality},lookahead:{name:v0.lookahead},parenthesized:{name:v0.parenthesized,defaultValue:!1},terminal:{name:v0.terminal}},superTypes:[fo.$type]},Negation:{name:GT.$type,properties:{value:{name:GT.value}},superTypes:[Id.$type]},NumberLiteral:{name:UT.$type,properties:{value:{name:UT.value}},superTypes:[_0.$type]},Parameter:{name:o1.$type,properties:{name:{name:o1.name}},superTypes:[]},ParameterReference:{name:VT.$type,properties:{parameter:{name:VT.parameter,referenceType:o1.$type}},superTypes:[Id.$type]},ParserRule:{name:Gl.$type,properties:{dataType:{name:Gl.dataType},definition:{name:Gl.definition},entry:{name:Gl.entry,defaultValue:!1},fragment:{name:Gl.fragment,defaultValue:!1},inferredType:{name:Gl.inferredType},name:{name:Gl.name},parameters:{name:Gl.parameters,defaultValue:[]},returnType:{name:Gl.returnType,referenceType:Fo.$type}},superTypes:[rv.$type]},ReferenceType:{name:ov.$type,properties:{isMulti:{name:ov.isMulti,defaultValue:!1},referenceType:{name:ov.referenceType}},superTypes:[E0.$type]},RegexToken:{name:b0.$type,properties:{cardinality:{name:b0.cardinality},lookahead:{name:b0.lookahead},parenthesized:{name:b0.parenthesized,defaultValue:!1},regex:{name:b0.regex}},superTypes:[fo.$type]},ReturnType:{name:WT.$type,properties:{name:{name:WT.name}},superTypes:[]},RuleCall:{name:x0.$type,properties:{arguments:{name:x0.arguments,defaultValue:[]},cardinality:{name:x0.cardinality},predicate:{name:x0.predicate},rule:{name:x0.rule,referenceType:i1.$type}},superTypes:[go.$type]},SimpleType:{name:l1.$type,properties:{primitiveType:{name:l1.primitiveType},stringType:{name:l1.stringType},typeRef:{name:l1.typeRef,referenceType:Fo.$type}},superTypes:[E0.$type]},StringLiteral:{name:HT.$type,properties:{value:{name:HT.value}},superTypes:[_0.$type]},TerminalAlternatives:{name:k0.$type,properties:{cardinality:{name:k0.cardinality},elements:{name:k0.elements,defaultValue:[]},lookahead:{name:k0.lookahead},parenthesized:{name:k0.parenthesized,defaultValue:!1}},superTypes:[fo.$type]},TerminalElement:{name:fo.$type,properties:{cardinality:{name:fo.cardinality},lookahead:{name:fo.lookahead},parenthesized:{name:fo.parenthesized,defaultValue:!1}},superTypes:[go.$type]},TerminalGroup:{name:T0.$type,properties:{cardinality:{name:T0.cardinality},elements:{name:T0.elements,defaultValue:[]},lookahead:{name:T0.lookahead},parenthesized:{name:T0.parenthesized,defaultValue:!1}},superTypes:[fo.$type]},TerminalRule:{name:Zh.$type,properties:{definition:{name:Zh.definition},fragment:{name:Zh.fragment,defaultValue:!1},hidden:{name:Zh.hidden,defaultValue:!1},name:{name:Zh.name},type:{name:Zh.type}},superTypes:[i1.$type]},TerminalRuleCall:{name:w0.$type,properties:{cardinality:{name:w0.cardinality},lookahead:{name:w0.lookahead},parenthesized:{name:w0.parenthesized,defaultValue:!1},rule:{name:w0.rule,referenceType:Zh.$type}},superTypes:[fo.$type]},Type:{name:lv.$type,properties:{name:{name:lv.name},type:{name:lv.type}},superTypes:[Fo.$type]},TypeAttribute:{name:C0.$type,properties:{defaultValue:{name:C0.defaultValue},isOptional:{name:C0.isOptional,defaultValue:!1},name:{name:C0.name},type:{name:C0.type}},superTypes:[]},TypeDefinition:{name:E0.$type,properties:{},superTypes:[]},UnionType:{name:YT.$type,properties:{types:{name:YT.types,defaultValue:[]}},superTypes:[E0.$type]},UnorderedGroup:{name:cv.$type,properties:{cardinality:{name:cv.cardinality},elements:{name:cv.elements,defaultValue:[]}},superTypes:[go.$type]},UntilToken:{name:S0.$type,properties:{cardinality:{name:S0.cardinality},lookahead:{name:S0.lookahead},parenthesized:{name:S0.parenthesized,defaultValue:!1},terminal:{name:S0.terminal}},superTypes:[fo.$type]}
1226,ValueLiteral:{name:_0.$type,properties:{},superTypes:[]},Wildcard:{name:c1.$type,properties:{cardinality:{name:c1.cardinality},lookahead:{name:c1.lookahead},parenthesized:{name:c1.parenthesized,defaultValue:!1}},superTypes:[fo.$type]}}}},f(i,"P$"),s(i,"LangiumGrammarAstReflection"),N(i,"LangiumGrammarAstReflection"),i),jr=new v9,s(lH,"getDatatypeNode"),N(lH,"getDatatypeNode"),s(qf,"streamCst"),N(qf,"streamCst"),s(cH,"flattenCst"),N(cH,"flattenCst"),s(bA,"isChildNode"),N(bA,"isChildNode"),s(_2,"tokenToRange"),N(_2,"tokenToRange"),s(jf,"toDocumentSegment"),N(jf,"toDocumentSegment"),(function(q){q[q.Before=0]="Before",q[q.After=1]="After",q[q.OverlapFront=2]="OverlapFront",q[q.OverlapBack=3]="OverlapBack",q[q.Inside=4]="Inside",q[q.Outside=5]="Outside"})(Qh||(Qh={})),s(xA,"compareRange"),N(xA,"compareRange"),s(kA,"inRange"),N(kA,"inRange"),b9=/^[\w\p{L}]$/u,s(hH,"findDeclarationNodeAtOffset"),N(hH,"findDeclarationNodeAtOffset"),s(TA,"findCommentNode"),N(TA,"findCommentNode"),s(Pk,"isCommentNode"),N(Pk,"isCommentNode"),s(Fk,"findLeafNodeAtOffset"),N(Fk,"findLeafNodeAtOffset"),s(wA,"findLeafNodeBeforeOffset"),N(wA,"findLeafNodeBeforeOffset"),s(CA,"binarySearch"),N(CA,"binarySearch"),s(EA,"getPreviousNode"),N(EA,"getPreviousNode"),s(uH,"getNextNode"),N(uH,"getNextNode"),s(dH,"getStartlineNode"),N(dH,"getStartlineNode"),s(pH,"getInteriorNodes"),N(pH,"getInteriorNodes"),s(gH,"getCommonParent"),N(gH,"getCommonParent"),s(SA,"getParentChain"),N(SA,"getParentChain"),x9={},Sd(x9,{findAssignment:s(()=>FA,"findAssignment"),findNameAssignment:s(()=>Wk,"findNameAssignment"),findNodeForKeyword:s(()=>PA,"findNodeForKeyword"),findNodeForProperty:s(()=>Gk,"findNodeForProperty"),findNodesForKeyword:s(()=>yH,"findNodesForKeyword"),findNodesForKeywordInternal:s(()=>Vk,"findNodesForKeywordInternal"),findNodesForProperty:s(()=>BA,"findNodesForProperty"),getActionAtElement:s(()=>qA,"getActionAtElement"),getActionType:s(()=>GA,"getActionType"),getAllReachableRules:s(()=>jk,"getAllReachableRules"),getAllRulesUsedForCrossReferences:s(()=>mH,"getAllRulesUsedForCrossReferences"),getCrossReferenceTerminal:s(()=>OA,"getCrossReferenceTerminal"),getEntryRule:s(()=>DA,"getEntryRule"),getExplicitRuleType:s(()=>R2,"getExplicitRuleType"),getHiddenRules:s(()=>NA,"getHiddenRules"),getRuleType:s(()=>UA,"getRuleType"),getRuleTypeName:s(()=>TH,"getRuleTypeName"),getTypeName:s(()=>t0,"getTypeName"),isArrayCardinality:s(()=>bH,"isArrayCardinality"),isArrayOperator:s(()=>xH,"isArrayOperator"),isCommentTerminal:s(()=>$A,"isCommentTerminal"),isDataType:s(()=>kH,"isDataType"),isDataTypeRule:s(()=>L2,"isDataTypeRule"),isOptionalCardinality:s(()=>vH,"isOptionalCardinality"),terminalRegex:s(()=>I2,"terminalRegex")}),XT=(n=class extends Error{constructor(T,L){super(T?`${L} at ${T.range.start.line}:${T.range.start.character}`:L)}},f(n,"eA"),s(n,"ErrorWithLocation"),N(n,"ErrorWithLocation"),n),s(wd,"assertUnreachable"),N(wd,"assertUnreachable"),s(_A,"assertCondition"),N(_A,"assertCondition"),k9={},Sd(k9,{NEWLINE_REGEXP:s(()=>Nre,"NEWLINE_REGEXP"),escapeRegExp:s(()=>Uf,"escapeRegExp"),getTerminalParts:s(()=>fH,"getTerminalParts"),isMultilineComment:s(()=>LA,"isMultilineComment"),isWhitespace:s(()=>qk,"isWhitespace"),partialMatches:s(()=>RA,"partialMatches"),partialRegExp:s(()=>IA,"partialRegExp"),whitespaceCharacters:s(()=>Ore,"whitespaceCharacters")}),s(Yr,"cc"),N(Yr,"cc"),s(zk,"insertToSet"),N(zk,"insertToSet"),s(Gf,"addFlag"),N(Gf,"addFlag"),s(e0,"ASSERT_EXISTS"),N(e0,"ASSERT_EXISTS"),s(A2,"ASSERT_NEVER_REACH_HERE"),N(A2,"ASSERT_NEVER_REACH_HERE"),s(AA,"isCharacter"),N(AA,"isCharacter"),KT=[];for(let q=Yr("0");q<=Yr("9");q++)KT.push(q);ZT=[Yr("_")].concat(KT);for(let q=Yr("a");q<=Yr("z");q++)ZT.push(q);for(let q=Yr("A");q<=Yr("Z");q++)ZT.push(q);Ire=[Yr(" "),Yr("\f"),Yr(` 1227`),Yr("\r"),Yr(" "),Yr("\v"),Yr(" "),Yr("\xA0"),Yr("\u1680"),Yr("\u2000"),Yr("\u2001"),Yr("\u2002"),Yr("\u2003"),Yr("\u2004"),Yr("\u2005"),Yr("\u2006"),Yr("\u2007"),Yr("\u2008"),Yr("\u2009"),Yr("\u200A"),Yr("\u2028"),Yr("\u2029"),Yr("\u202F"),Yr("\u205F"),Yr("\u3000"),Yr("\uFEFF")],EGe=/[0-9a-fA-F]/,QT=/[0-9]/,SGe=/[1-9]/,Dre=(a=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}
vendor: 5,612 bytes, lines 1227-1231
1227saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(T){this.idx=T.idx,this.input=T.input,this.groupIdx=T.groupIdx}pattern(T){this.idx=0,this.input=T,this.groupIdx=0,this.consumeChar("/");let L=this.disjunction();this.consumeChar("/");let M={type:"Flags",loc:{begin:this.idx,end:T.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Gf(M,"global");break;case"i":Gf(M,"ignoreCase");break;case"m":Gf(M,"multiLine");break;case"u":Gf(M,"unicode");break;case"y":Gf(M,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:M,value:L,loc:this.loc(0)}}disjunction(){let T=[],L=this.idx;for(T.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),T.push(this.alternative());return{type:"Disjunction",value:T,loc:this.loc(L)}}alternative(){let T=[],L=this.idx;for(;this.isTerm();)T.push(this.term());return{type:"Alternative",value:T,loc:this.loc(L)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let T=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(T)};case"$":return{type:"EndAnchor",loc:this.loc(T)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(T)};case"B":return{type:"NonWordBoundary",loc:this.loc(T)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let L;switch(this.popChar()){case"=":L="Lookahead";break;case"!":L="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":L="Lookbehind";break;case"!":L="NegativeLookbehind"}break}}e0(L);let M=this.disjunction();return this.consumeChar(")"),{type:L,value:M,loc:this.loc(T)}}return A2()}quantifier(T=!1){let L,M=this.idx;switch(this.popChar()){case"*":L={atLeast:0,atMost:1/0};break;case"+":L={atLeast:1,atMost:1/0};break;case"?":L={atLeast:0,atMost:1};break;case"{":let B=this.integerIncludingZero();switch(this.popChar()){case"}":L={atLeast:B,atMost:B};break;case",":let G;this.isDigit()?(G=this.integerIncludingZero(),L={atLeast:B,atMost:G}):L={atLeast:B,atMost:1/0},this.consumeChar("}");break}if(T===!0&&L===void 0)return;e0(L);break}if(!(T===!0&&L===void 0)&&e0(L))return this.peekChar(0)==="?"?(this.consumeChar("?"),L.greedy=!1):L.greedy=!0,L.type="Quantifier",L.loc=this.loc(M),L}atom(){let T,L=this.idx;switch(this.peekChar()){case".":T=this.dotAll();break;case"\\":T=this.atomEscape();break;case"[":T=this.characterClass();break;case"(":T=this.group();break}return T===void 0&&this.isPatternCharacter()&&(T=this.patternCharacter()),e0(T)?(T.loc=this.loc(L),this.isQuantifier()&&(T.quantifier=this.quantifier()),T):A2()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Yr(` 1228`),Yr("\r"),Yr("\u2028"),Yr("\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 T,L=!1;switch(this.popChar()){case"d":T=KT;break;case"D":T=KT,L=!0;break;case"s":T=Ire;break;case"S":T=Ire,L=!0;break;case"w":T=ZT;break;case"W":T=ZT,L=!0;break}return e0(T)?{type:"Set",value:T,complement:L}:A2()}controlEscapeAtom(){let T;switch(this.popChar()){case"f":T=Yr("\f");break;case"n":T=Yr(` 1229`);break;case"r":T=Yr("\r");break;case"t":T=Yr(" ");break;case"v":T=Yr("\v");break}return e0(T)?{type:"Character",value:T}:A2()}controlLetterEscapeAtom(){this.consumeChar("c");let T=this.popChar();if(/[a-zA-Z]/.test(T)===!1)throw Error("Invalid ");return{type:"Character",value:T.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Yr("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let T=this.popChar();return{type:"Character",value:Yr(T)}}classPatternCharacterAtom(){switch(this.peekChar()){case` 1230`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let T=this.popChar();return{type:"Character",value:Yr(T)}}}characterClass(){let T=[],L=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),L=!0);this.isClassAtom();){let M=this.classAtom(),B=M.type==="Character";if(AA(M)&&this.isRangeDash()){this.consumeChar("-");let G=this.classAtom(),Z=G.type==="Character";if(AA(G)){if(G.value<M.value)throw Error("Range out of order in character class");T.push({from:M.value,to:G.value})}else zk(M.value,T),T.push(Yr("-")),zk(G.value,T)}else zk(M.value,T)}return this.consumeChar("]"),{type:"Set",complement:L,value:T}}classAtom(){switch(this.peekChar()){case"]":case` 1231`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Yr("\b")};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();
vendor: 6,602 bytes, lines 1231-1237
1231case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let T=!0;(this.consumeChar("("),this.peekChar(0))==="?"?(this.consumeChar("?"),this.consumeChar(":"),T=!1):this.groupIdx++;let L=this.disjunction();this.consumeChar(")");let M={type:"Group",capturing:T,value:L};return T&&(M.idx=this.groupIdx),M}positiveInteger(){let T=this.popChar();if(SGe.test(T)===!1)throw Error("Expecting a positive integer");for(;QT.test(this.peekChar(0));)T+=this.popChar();return parseInt(T,10)}integerIncludingZero(){let T=this.popChar();if(QT.test(T)===!1)throw Error("Expecting an integer");for(;QT.test(this.peekChar(0));)T+=this.popChar();return parseInt(T,10)}patternCharacter(){let T=this.popChar();switch(T){case` 1232`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:Yr(T)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return QT.test(this.peekChar(0))}isClassAtom(T=0){switch(this.peekChar(T)){case"]":case` 1233`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){let T=this.saveState();try{return this.quantifier(!0)!==void 0}catch(L){return!1}finally{this.restoreState(T)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case` 1234`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(T){let L="";for(let M=0;M<T;M++){let B=this.popChar();if(EGe.test(B)===!1)throw Error("Expecting a HexDecimal digits");L+=B}return{type:"Character",value:parseInt(L,16)}}peekChar(T=0){return this.input[this.idx+T]}popChar(){let T=this.peekChar(0);return this.consumeChar(void 0),T}consumeChar(T){if(T!==void 0&&this.input[this.idx]!==T)throw Error("Expected: '"+T+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(T){return{begin:T,end:this.idx}}},f(a,"Bve"),s(a,"RegExpParser"),N(a,"RegExpParser"),a),JT=(o=class{visitChildren(T){for(let L in T){let M=T[L];T.hasOwnProperty(L)&&(M.type!==void 0?this.visit(M):Array.isArray(M)&&M.forEach(B=>{this.visit(B)},this))}}visit(T){switch(T.type){case"Pattern":this.visitPattern(T);break;case"Flags":this.visitFlags(T);break;case"Disjunction":this.visitDisjunction(T);break;case"Alternative":this.visitAlternative(T);break;case"StartAnchor":this.visitStartAnchor(T);break;case"EndAnchor":this.visitEndAnchor(T);break;case"WordBoundary":this.visitWordBoundary(T);break;case"NonWordBoundary":this.visitNonWordBoundary(T);break;case"Lookahead":this.visitLookahead(T);break;case"NegativeLookahead":this.visitNegativeLookahead(T);break;case"Lookbehind":this.visitLookbehind(T);break;case"NegativeLookbehind":this.visitNegativeLookbehind(T);break;case"Character":this.visitCharacter(T);break;case"Set":this.visitSet(T);break;case"Group":this.visitGroup(T);break;case"GroupBackReference":this.visitGroupBackReference(T);break;case"Quantifier":this.visitQuantifier(T);break}this.visitChildren(T)}visitPattern(T){}visitFlags(T){}visitDisjunction(T){}visitAlternative(T){}visitStartAnchor(T){}visitEndAnchor(T){}visitWordBoundary(T){}visitNonWordBoundary(T){}visitLookahead(T){}visitNegativeLookahead(T){}visitLookbehind(T){}visitNegativeLookbehind(T){}visitCharacter(T){}visitSet(T){}visitGroup(T){}visitGroupBackReference(T){}visitQuantifier(T){}},f(o,"tA"),s(o,"BaseRegExpVisitor"),N(o,"BaseRegExpVisitor"),o),Nre=/\r?\n/gm,Mre=new Dre,_Ge=(l=class extends JT{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(T){this.multiline=!1,this.regex=T,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(T){T.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(T){let L=String.fromCharCode(T.value);if(!this.multiline&&L===` 1235`&&(this.multiline=!0),T.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let M=Uf(L);this.endRegexpStack.push(M),this.isStarting&&(this.startRegexp+=M)}}visitSet(T){if(!this.multiline){let L=this.regex.substring(T.loc.begin,T.loc.end),M=new RegExp(L);this.multiline=!!` 1236`.match(M)}if(T.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let L=this.regex.substring(T.loc.begin,T.loc.end);this.endRegexpStack.push(L),this.isStarting&&(this.startRegexp+=L)}}visitChildren(T){T.type==="Group"&&T.quantifier||super.visitChildren(T)}},f(l,"Qlt"),s(l,"TerminalRegExpVisitor"),N(l,"TerminalRegExpVisitor"),l),A0=new _Ge,s(fH,"getTerminalParts"),N(fH,"getTerminalParts"),s(LA,"isMultilineComment"),N(LA,"isMultilineComment"),Ore=`\f 1237\r \v \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`.split(""),s(qk,"isWhitespace"),N(qk,"isWhitespace"),s(Uf,"escapeRegExp"),N(Uf,"escapeRegExp"),s(RA,"partialMatches"),N(RA,"partialMatches"),s(IA,"partialRegExp"),N(IA,"partialRegExp"),s(DA,"getEntryRule"),N(DA,"getEntryRule"),s(NA,"getHiddenRules"),N(NA,"getHiddenRules"),s(jk,"getAllReachableRules"),N(jk,"getAllReachableRules"),s(MA,"ruleDfs"),N(MA,"ruleDfs"),s(mH,"getAllRulesUsedForCrossReferences"),N(mH,"getAllRulesUsedForCrossReferences"),s(OA,"getCrossReferenceTerminal"),N(OA,"getCrossReferenceTerminal"),s($A,"isCommentTerminal"),N($A,"isCommentTerminal"),s(BA,"findNodesForProperty"),N(BA,"findNodesForProperty"),s(Gk,"findNodeForProperty"),N(Gk,"findNodeForProperty"),s(Uk,"findNodesForPropertyInternal"),N(Uk,"findNodesForPropertyInternal"),s(yH,"findNodesForKeyword"),N(yH,"findNodesForKeyword"),s(PA,"findNodeForKeyword"),N(PA,"findNodeForKeyword"),s(Vk,"findNodesForKeywordInternal"),N(Vk,"findNodesForKeywordInternal"),s(FA,"findAssignment"),N(FA,"findAssignment"),s(Wk,"f
1237indNameAssignment"),N(Wk,"findNameAssignment"),s(zA,"findNameAssignmentInternal"),N(zA,"findNameAssignmentInternal"),s(qA,"getActionAtElement"),N(qA,"getActionAtElement"),s(vH,"isOptionalCardinality"),N(vH,"isOptionalCardinality"),s(bH,"isArrayCardinality"),N(bH,"isArrayCardinality"),s(xH,"isArrayOperator"),N(xH,"isArrayOperator"),s(L2,"isDataTypeRule"),N(L2,"isDataTypeRule"),s(jA,"isDataTypeRuleInternal"),N(jA,"isDataTypeRuleInternal"),s(kH,"isDataType"),N(kH,"isDataType"),s(Hk,"isDataTypeInternal"),N(Hk,"isDataTypeInternal"),s(R2,"getExplicitRuleType"),N(R2,"getExplicitRuleType"),s(t0,"getTypeName"),N(t0,"getTypeName"),s(GA,"getActionType"),N(GA,"getActionType"),s(TH,"getRuleTypeName"),N(TH,"getRuleTypeName"),s(UA,"getRuleType"),N(UA,"getRuleType"),s(I2,"terminalRegex"),N(I2,"terminalRegex"),T9=/[\s\S]/.source,s(r0,"abstractElementToRegex"),N(r0,"abstractElementToRegex"),s(wH,"terminalAlternativesToRegex"),N(wH,"terminalAlternativesToRegex"),s(CH,"terminalGroupToRegex"),N(CH,"terminalGroupToRegex"),s(EH,"untilTokenToRegex"),N(EH,"untilTokenToRegex"),s(SH,"negateTokenToRegex"),N(SH,"negateTokenToRegex"),s(_H,"characterRangeToRegex"),N(_H,"characterRangeToRegex"),s(Yk,"keywordToRegex"),N(Yk,"keywordToRegex"),s(Bc,"withCardinality"),N(Bc,"withCardinality"),s(VA,"createGrammarConfig"),N(VA,"createGrammarConfig"),AGe=typeof global=="object"&&global&&global.Object===Object&&global,$re=AGe,LGe=typeof self=="object"&&self&&self.Object===Object&&self,RGe=$re||LGe||Function("return this")(),zc=RGe,IGe=zc.Symbol,hl=IGe,Bre=Object.prototype,DGe=Bre.hasOwnProperty,NGe=Bre.toString,hv=hl?hl.toStringTag:void 0,s(AH,"getRawTag"),N(AH,"getRawTag"),MGe=AH,OGe=Object.prototype,$Ge=OGe.toString,s(LH,"objectToString"),N(LH,"objectToString"),BGe=LH,PGe="[object Null]",FGe="[object Undefined]",Pre=hl?hl.toStringTag:void 0,s(RH,"baseGetTag"),N(RH,"baseGetTag"),Nd=RH,s(IH,"isObjectLike"),N(IH,"isObjectLike"),Ul=IH,zGe="[object Symbol]",s(DH,"isSymbol"),N(DH,"isSymbol"),e5=DH,s(NH,"arrayMap"),N(NH,"arrayMap"),uv=NH,qGe=Array.isArray,$i=qGe,jGe=1/0,Fre=hl?hl.prototype:void 0,zre=Fre?Fre.toString:void 0,s(WA,"baseToString"),N(WA,"baseToString"),GGe=WA,UGe=/\s/,s(MH,"trimmedEndIndex"),N(MH,"trimmedEndIndex"),VGe=MH,WGe=/^\s+/,s(OH,"baseTrim"),N(OH,"baseTrim"),HGe=OH,s($H,"isObject"),N($H,"isObject"),ul=$H,qre=NaN,YGe=/^[-+]0x[0-9a-f]+$/i,XGe=/^0b[01]+$/i,KGe=/^0o[0-7]+$/i,ZGe=parseInt,s(BH,"toNumber"),N(BH,"toNumber"),QGe=BH,jre=1/0,JGe=17976931348623157e292,s(PH,"toFinite"),N(PH,"toFinite"),eUe=PH,s(FH,"toInteger"),N(FH,"toInteger"),dv=FH,s(zH,"identity"),N(zH,"identity"),h1=zH,tUe="[object AsyncFunction]",rUe="[object Function]",iUe="[object GeneratorFunction]",nUe="[object Proxy]",s(qH,"isFunction"),N(qH,"isFunction"),Jh=qH,aUe=zc["__core-js_shared__"],w9=aUe,Gre=(function(){var q=/[^.]+$/.exec(w9&&w9.keys&&w9.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""})(),s(jH,"isMasked"),N(jH,"isMasked"),sUe=jH,oUe=Function.prototype,lUe=oUe.toString,s(GH,"toSource"),N(GH,"toSource"),L0=GH,cUe=/[\\^$.*+?()[\]{}|]/g,hUe=/^\[object .+?Constructor\]$/,uUe=Function.prototype,dUe=Object.prototype,pUe=uUe.toString,gUe=dUe.hasOwnProperty,fUe=RegExp("^"+pUe.call(gUe).replace(cUe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s(UH,"baseIsNative"),N(UH,"baseIsNative"),mUe=UH,s(VH,"getValue"),N(VH,"getValue"),yUe=VH,s(WH,"getNative"),N(WH,"getNative"),R0=WH,vUe=R0(zc,"WeakMap"),C9=vUe,Ure=Object.create,bUe=(function(){function q(){}return f(q,"e"),s(q,"object"),N(q,"object"),function(T){if(!ul(T))return{};if(Ure)return Ure(T);q.prototype=T;var L=new q;return q.prototype=void 0,L}})(),xUe=bUe,s(HH,"apply"),N(HH,"apply"),kUe=HH,s(YH,"noop"),N(YH,"noop"),ja=YH,s(XH,"copyArray"),N(XH,"copyArray"),TUe=XH,wUe=800,CUe=16,EUe=Date.now,s(KH,"shortOut"),N(KH,"shortOut"),SUe=KH,s(ZH,"constant"),N(ZH,"constant"),_Ue=ZH,AUe=(function(){try{var q=R0(Object,"defineProperty");return q({},"",{}),q}catch(T){}})(),t5=AUe,LUe=t5?function(q,T){return t5(q,"toString",{configurable:!0,enumerable:!1,value:_Ue(T),writable:!0})}:h1,RUe=LUe,IUe=SUe(RUe),DUe=IUe,s(QH,"arrayEach"),N(QH,"arrayEach"),Vre=QH,s(JH,"baseFindIndex"),N(JH,"baseFindIndex"),Wre=JH,s(eY,"baseIsNaN"),N(eY,"baseIsNaN"),NUe=eY,s(tY,"strictIndexOf"),N(tY,"strictIndexOf"),MUe=tY,s(rY,"baseIndexOf"),N(rY,"baseIndexOf"),E9=rY,s(iY,"arrayIncludes"),N(iY,"arrayIncludes"),Hre=iY,OUe=9007199254740991,$Ue=/^(?:0|[1-9]\d*)$/,s(nY,"isIndex"),N(nY,"isIndex"),r5=nY,s(aY,"baseAssignValue"),N(aY,"baseAssignValue"),S9=aY,s(sY,"eq"),N(sY,"eq"),pv=sY,BUe=Object.prototype,PUe=BUe.hasOwnProperty,s(oY,"assignValue"),N(oY,"assignValue"),i5=oY,s(lY,"copyObject"),N(lY,"copyObject"),gv=lY,Yre=Math.max,s(cY,"overRest"),N(cY,"overRest"),FUe=cY,s(hY,"baseRest"),N(hY,"baseRest"),_9=hY,zUe=9007199254740991,s(uY,"isLength"),N(uY,"isLength"),A9=uY,s(dY,"isArrayLike"),N(dY,"isArrayLike"),qc=dY,s(pY,"isIterateeCall"),N(pY,"isIterateeCall"),n5=pY,s(gY,"createAssigner"),N(gY,"createAssigner"),qUe=gY,jUe=Object.prototype,s(fY,"isPrototype"),N(fY,"isPrototype"),fv=fY,s(mY,"baseTimes"),N(mY,"baseTimes"),GUe=mY,UUe="[object Arguments]",s(yY,"baseIsArguments"),N(yY,"baseIsArguments"),Xre=yY,Kre=Object.prototype,VUe=Kre.hasOwnProperty,WUe=Kre.propertyIsEnumerable,HUe=Xre((function(){return arguments})())?Xre:function(q){return Ul(q)&&VUe.call(q,"callee")&&!WUe.call(q,"callee")},a5=HUe,s(vY,"stubFalse"),N(vY,"stubFalse"),YUe=vY,Zre=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qre=Zre&&typeof module=="object"&&module&&!module.nodeType&&module,XUe=Qre&&Qre.exports===Zre,Jre=XUe?zc.Buffer:void 0,KUe=Jre?Jre.isBuffer:void 0,ZUe=KUe||YUe,mv=ZUe,QUe="[object Arguments]",JUe="[object Array]",eVe="[object Boolean]",tVe="[object Date]",rVe="[object Error]",iVe="[object Function]",nVe="[object Map]",aVe="[object Number]",
1237sVe="[object Object]",oVe="[object RegExp]",lVe="[object Set]",cVe="[object String]",hVe="[object WeakMap]",uVe="[object ArrayBuffer]",dVe="[object DataView]",pVe="[object Float32Array]",gVe="[object Float64Array]",fVe="[object Int8Array]",mVe="[object Int16Array]",yVe="[object Int32Array]",vVe="[object Uint8Array]",bVe="[object Uint8ClampedArray]",xVe="[object Uint16Array]",kVe="[object Uint32Array]",An={},An[pVe]=An[gVe]=An[fVe]=An[mVe]=An[yVe]=An[vVe]=An[bVe]=An[xVe]=An[kVe]=!0,An[QUe]=An[JUe]=An[uVe]=An[eVe]=An[dVe]=An[tVe]=An[rVe]=An[iVe]=An[nVe]=An[aVe]=An[sVe]=An[oVe]=An[lVe]=An[cVe]=An[hVe]=!1,s(bY,"baseIsTypedArray"),N(bY,"baseIsTypedArray"),TVe=bY,s(xY,"baseUnary"),N(xY,"baseUnary"),yv=xY,eie=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vv=eie&&typeof module=="object"&&module&&!module.nodeType&&module,wVe=vv&&vv.exports===eie,L9=wVe&&$re.process,CVe=(function(){try{var q=vv&&vv.require&&vv.require("util").types;return q||L9&&L9.binding&&L9.binding("util")}catch(T){}})(),Md=CVe,tie=Md&&Md.isTypedArray,EVe=tie?yv(tie):TVe,R9=EVe,SVe=Object.prototype,_Ve=SVe.hasOwnProperty,s(kY,"arrayLikeKeys"),N(kY,"arrayLikeKeys"),rie=kY,s(TY,"overArg"),N(TY,"overArg"),iie=TY,AVe=iie(Object.keys,Object),LVe=AVe,RVe=Object.prototype,IVe=RVe.hasOwnProperty,s(wY,"baseKeys"),N(wY,"baseKeys"),nie=wY,s(CY,"keys"),N(CY,"keys"),zo=CY,DVe=Object.prototype,NVe=DVe.hasOwnProperty,MVe=qUe(function(q,T){if(fv(T)||qc(T)){gv(T,zo(T),q);return}for(var L in T)NVe.call(T,L)&&i5(q,L,T[L])}),qo=MVe,s(EY,"nativeKeysIn"),N(EY,"nativeKeysIn"),OVe=EY,$Ve=Object.prototype,BVe=$Ve.hasOwnProperty,s(SY,"baseKeysIn"),N(SY,"baseKeysIn"),PVe=SY,s(_Y,"keysIn"),N(_Y,"keysIn"),s5=_Y,FVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zVe=/^\w*$/,s(AY,"isKey"),N(AY,"isKey"),I9=AY,qVe=R0(Object,"create"),bv=qVe,s(LY,"hashClear"),N(LY,"hashClear"),jVe=LY,s(RY,"hashDelete"),N(RY,"hashDelete"),GVe=RY,UVe="__lodash_hash_undefined__",VVe=Object.prototype,WVe=VVe.hasOwnProperty,s(IY,"hashGet"),N(IY,"hashGet"),HVe=IY,YVe=Object.prototype,XVe=YVe.hasOwnProperty,s(DY,"hashHas"),N(DY,"hashHas"),KVe=DY,ZVe="__lodash_hash_undefined__",s(NY,"hashSet"),N(NY,"hashSet"),QVe=NY,s(i0,"Hash"),N(i0,"Hash"),i0.prototype.clear=jVe,i0.prototype.delete=GVe,i0.prototype.get=HVe,i0.prototype.has=KVe,i0.prototype.set=QVe,aie=i0,s(MY,"listCacheClear"),N(MY,"listCacheClear"),JVe=MY,s(OY,"assocIndexOf"),N(OY,"assocIndexOf"),o5=OY,eWe=Array.prototype,tWe=eWe.splice,s($Y,"listCacheDelete"),N($Y,"listCacheDelete"),rWe=$Y,s(BY,"listCacheGet"),N(BY,"listCacheGet"),iWe=BY,s(PY,"listCacheHas"),N(PY,"listCacheHas"),nWe=PY,s(FY,"listCacheSet"),N(FY,"listCacheSet"),aWe=FY,s(n0,"ListCache"),N(n0,"ListCache"),n0.prototype.clear=JVe,n0.prototype.delete=rWe,n0.prototype.get=iWe,n0.prototype.has=nWe,n0.prototype.set=aWe,l5=n0,sWe=R0(zc,"Map"),xv=sWe,s(zY,"mapCacheClear"),N(zY,"mapCacheClear"),oWe=zY,s(qY,"isKeyable"),N(qY,"isKeyable"),lWe=qY,s(jY,"getMapData"),N(jY,"getMapData"),c5=jY,s(GY,"mapCacheDelete"),N(GY,"mapCacheDelete"),cWe=GY,s(UY,"mapCacheGet"),N(UY,"mapCacheGet"),hWe=UY,s(VY,"mapCacheHas"),N(VY,"mapCacheHas"),uWe=VY,s(WY,"mapCacheSet"),N(WY,"mapCacheSet"),dWe=WY,s(a0,"MapCache"),N(a0,"MapCache"),a0.prototype.clear=oWe,a0.prototype.delete=cWe,a0.prototype.get=hWe,a0.prototype.has=uWe,a0.prototype.set=dWe,h5=a0,pWe="Expected a function",s(Xk,"memoize"),N(Xk,"memoize"),Xk.Cache=h5,gWe=Xk,fWe=500,s(HY,"memoizeCapped"),N(HY,"memoizeCapped"),mWe=HY,yWe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vWe=/\\(\\)?/g,bWe=mWe(function(q){var T=[];return q.charCodeAt(0)===46&&T.push(""),q.replace(yWe,function(L,M,B,G){T.push(B?G.replace(vWe,"$1"):M||L)}),T}),xWe=bWe,s(YY,"toString2"),N(YY,"toString"),kWe=YY,s(XY,"castPath"),N(XY,"castPath"),u5=XY,TWe=1/0,s(KY,"toKey"),N(KY,"toKey"),kv=KY,s(ZY,"baseGet"),N(ZY,"baseGet"),D9=ZY,s(QY,"get"),N(QY,"get"),wWe=QY,s(JY,"arrayPush"),N(JY,"arrayPush"),N9=JY,sie=hl?hl.isConcatSpreadable:void 0,s(eX,"isFlattenable"),N(eX,"isFlattenable"),CWe=eX,s(HA,"baseFlatten"),N(HA,"baseFlatten"),M9=HA,s(tX,"flatten"),N(tX,"flatten"),Vl=t
1237X,EWe=iie(Object.getPrototypeOf,Object),oie=EWe,s(rX,"baseSlice"),N(rX,"baseSlice"),lie=rX,s(iX,"arrayReduce"),N(iX,"arrayReduce"),SWe=iX,s(nX,"stackClear"),N(nX,"stackClear"),_We=nX,s(aX,"stackDelete"),N(aX,"stackDelete"),AWe=aX,s(sX,"stackGet"),N(sX,"stackGet"),LWe=sX,s(oX,"stackHas"),N(oX,"stackHas"),RWe=oX,IWe=200,s(lX,"stackSet"),N(lX,"stackSet"),DWe=lX,s(s0,"Stack"),N(s0,"Stack"),s0.prototype.clear=_We,s0.prototype.delete=AWe,s0.prototype.get=LWe,s0.prototype.has=RWe,s0.prototype.set=DWe,Tv=s0,s(cX,"baseAssign"),N(cX,"baseAssign"),NWe=cX,s(hX,"baseAssignIn"),N(hX,"baseAssignIn"),MWe=hX,cie=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hie=cie&&typeof module=="object"&&module&&!module.nodeType&&module,OWe=hie&&hie.exports===cie,uie=OWe?zc.Buffer:void 0,die=uie?uie.allocUnsafe:void 0,s(uX,"cloneBuffer"),N(uX,"cloneBuffer"),$We=uX,s(dX,"arrayFilter"),N(dX,"arrayFilter"),O9=dX,s(pX,"stubArray"),N(pX,"stubArray"),pie=pX,BWe=Object.prototype,PWe=BWe.propertyIsEnumerable,gie=Object.getOwnPropertySymbols,FWe=gie?function(q){return q==null?[]:(q=Object(q),O9(gie(q),function(T){return PWe.call(q,T)}))}:pie,$9=FWe,s(gX,"copySymbols"),N(gX,"copySymbols"),zWe=gX,qWe=Object.getOwnPropertySymbols,jWe=qWe?function(q){for(var T=[];q;)N9(T,$9(q)),q=oie(q);return T}:pie,fie=jWe,s(fX,"copySymbolsIn"),N(fX,"copySymbolsIn"),GWe=fX,s(mX,"baseGetAllKeys"),N(mX,"baseGetAllKeys"),mie=mX,s(yX,"getAllKeys"),N(yX,"getAllKeys"),B9=yX,s(vX,"getAllKeysIn"),N(vX,"getAllKeysIn"),yie=vX,UWe=R0(zc,"DataView"),P9=UWe,VWe=R0(zc,"Promise"),F9=VWe,WWe=R0(zc,"Set"),u1=WWe,vie="[object Map]",HWe="[object Object]",bie="[object Promise]",xie="[object Set]",kie="[object WeakMap]",Tie="[object DataView]",YWe=L0(P9),XWe=L0(xv),KWe=L0(F9),ZWe=L0(u1),QWe=L0(C9),I0=Nd,(P9&&I0(new P9(new ArrayBuffer(1)))!=Tie||xv&&I0(new xv)!=vie||F9&&I0(F9.resolve())!=bie||u1&&I0(new u1)!=xie||C9&&I0(new C9)!=kie)&&(I0=N(function(q){var T=Nd(q),L=T==HWe?q.constructor:void 0,M=L?L0(L):"";if(M)switch(M){case YWe:return Tie;case XWe:return vie;case KWe:return bie;case ZWe:return xie;case QWe:return kie}return T},"getTag")),d1=I0,JWe=Object.prototype,eHe=JWe.hasOwnProperty,s(bX,"initCloneArray"),N(bX,"initCloneArray"),tHe=bX,rHe=zc.Uint8Array,d5=rHe,s(xX,"cloneArrayBuffer"),N(xX,"cloneArrayBuffer"),z9=xX,s(kX,"cloneDataView"),N(kX,"cloneDataView"),iHe=kX,nHe=/\w*$/,s(TX,"cloneRegExp"),N(TX,"cloneRegExp"),aHe=TX,wie=hl?hl.prototype:void 0,Cie=wie?wie.valueOf:void 0,s(wX,"cloneSymbol"),N(wX,"cloneSymbol"),sHe=wX,s(CX,"cloneTypedArray"),N(CX,"cloneTypedArray"),oHe=CX,lHe="[object Boolean]",cHe="[object Date]",hHe="[object Map]",uHe="[object Number]",dHe="[object RegExp]",pHe="[object Set]",gHe="[object String]",fHe="[object Symbol]",mHe="[object ArrayBuffer]",yHe="[object DataView]",vHe="[object Float32Array]",bHe="[object Float64Array]",xHe="[object Int8Array]",kHe="[object Int16Array]",THe="[object Int32Array]",wHe="[object Uint8Array]",CHe="[object Uint8ClampedArray]",EHe="[object Uint16Array]",SHe="[object Uint32Array]",s(EX,"initCloneByTag"),N(EX,"initCloneByTag"),_He=EX,s(SX,"initCloneObject"),N(SX,"initCloneObject"),AHe=SX,LHe="[object Map]",s(_X,"baseIsMap"),N(_X,"baseIsMap"),RHe=_X,Eie=Md&&Md.isMap,IHe=Eie?yv(Eie):RHe,DHe=IHe,NHe="[object Set]",s(AX,"baseIsSet"),N(AX,"baseIsSet"),MHe=AX,Sie=Md&&Md.isSet,OHe=Sie?yv(Sie):MHe,$He=OHe,BHe=1,PHe=2,FHe=4,_ie="[object Arguments]",zHe="[object Array]",qHe="[object Boolean]",jHe="[object Date]",GHe="[object Error]",Aie="[object Function]",UHe="[object GeneratorFunction]",VHe="[object Map]",WHe="[object Number]",Lie="[object Object]",HHe="[object RegExp]",YHe="[object Set]",XHe="[object String]",KHe="[object Symbol]",ZHe="[object WeakMap]",QHe="[object ArrayBuffer]",JHe="[object DataView]",eYe="[object Float32Array]",tYe="[object Float64Array]",rYe="[object Int8Array]",iYe="[object Int16Array]",nYe="[object Int32Array]",aYe="[object Uint8Array]",sYe="[object Uint8ClampedArray]",oYe="[object Uint16Array]",lYe="[object Uint32Array]",fn={},fn[_ie]=fn[zHe]=fn[QHe]=fn[JHe]=fn[qHe]=fn[jHe]=fn[eYe]=fn[tYe]=fn[rYe]=fn[iYe]=fn[nYe]=fn[VHe]=fn[WHe]=fn[Lie]=fn[HHe]=fn[YHe]=fn[XHe]=fn[KHe]=fn[aYe]=fn[sYe]=fn[oYe]=fn[lYe]=!0,fn[GHe]=fn[Aie]=fn[ZHe]=!1,s(D2,"baseClone"),N(D2,"baseClone"),cYe=D2,hYe=4,s(LX,"clone"),N(LX,"clone"),cs=LX,s(RX,"compact"),N(RX,"compact"),wv=RX,uYe="__lodash_hash_undefined__",s(IX,"setCacheAdd"),N(IX,"setCacheAdd"),dYe=IX,s(DX,"setCacheHas"),N(DX,"setCacheHas"),pYe=DX,s(N2,"SetCache"),N(N2,"SetCache"),N2.prototype.add=N2.prototype.push=dYe,N2.prototype.has=pYe,q9=N2,s(NX,"arraySome"),N(NX,"arraySome"),Rie=NX,s(MX,"cacheHas"),N(MX,"cacheHas"),j9=MX,gYe=1,fYe=2,s(OX,"equalArrays"),N(OX,"equalArrays"),Iie=OX,s($X,"mapToArray"),N($X,"mapToArray"),mYe=$X,s(BX,"setToArray"),N(BX,"setToArray"),G9=BX,yYe=1,vYe=2,bYe="[object Boolean]",xYe="[object Date]",kYe="[object Error]",TYe="[object Map]",wYe="[object Number]",CYe="[object RegExp]",EYe="[object Set]",SYe="[object String]",_Ye="[object Symbol]",AYe="[object ArrayBuffer]",LYe="[object DataView]",Die=hl?hl.prototype:void 0,U9=Die?Die.valueOf:void 0,s(PX,"equalByTag"),N(PX,"equalByTag"),RYe=PX,IYe=1,DYe=Object.prototype,NYe=DYe.hasOwnProperty,s(FX,"equalObjects"),N(FX,"equalObjects"),MYe=FX,OYe=1,Nie="[object Arguments]",Mie="[object Array]",p5="[object Object]",$Ye=Object.prototype,Oie=$Ye.hasOwnProperty,s(zX,"baseIsEqualDeep"),N(zX,"baseIsEqualDeep"),BYe=zX,s(YA,"baseIsEqual"),N(YA,"baseIsEqual"),$ie=YA,PYe=1,FYe=2,s(qX,"baseIsMatch"),N(qX,"baseIsMatch"),zYe=qX,s(jX,"isStrictComparable"),N(jX,"isStrictComparable"),Bie=jX,s(GX,"getMatchData"),N(GX,"getMatchData"),qYe=GX,s(UX,"matchesStrictComparable"),N(UX,"matchesStrictComparable"),Pie=UX,s(VX,"baseMatches"),N(VX,"baseMatches"),jYe=VX,s(WX,"baseHasIn"),N(WX,"baseHasIn"),GYe=W
1237X,s(HX,"hasPath"),N(HX,"hasPath"),Fie=HX,s(YX,"hasIn"),N(YX,"hasIn"),UYe=YX,VYe=1,WYe=2,s(XX,"baseMatchesProperty"),N(XX,"baseMatchesProperty"),HYe=XX,s(KX,"baseProperty"),N(KX,"baseProperty"),YYe=KX,s(ZX,"basePropertyDeep"),N(ZX,"basePropertyDeep"),XYe=ZX,s(QX,"property"),N(QX,"property"),KYe=QX,s(JX,"baseIteratee"),N(JX,"baseIteratee"),jc=JX,s(eK,"arrayAggregator"),N(eK,"arrayAggregator"),ZYe=eK,s(tK,"createBaseFor"),N(tK,"createBaseFor"),QYe=tK,JYe=QYe(),eXe=JYe,s(rK,"baseForOwn"),N(rK,"baseForOwn"),tXe=rK,s(iK,"createBaseEach"),N(iK,"createBaseEach"),rXe=iK,iXe=rXe(tXe),D0=iXe,s(nK,"baseAggregator"),N(nK,"baseAggregator"),nXe=nK,s(aK,"createAggregator"),N(aK,"createAggregator"),aXe=aK,zie=Object.prototype,sXe=zie.hasOwnProperty,oXe=_9(function(q,T){q=Object(q);var L=-1,M=T.length,B=M>2?T[2]:void 0;for(B&&n5(T[0],T[1],B)&&(M=1);++L<M;)for(var G=T[L],Z=s5(G),ee=-1,K=Z.length;++ee<K;){var ne=Z[ee],fe=q[ne];(fe===void 0||pv(fe,zie[ne])&&!sXe.call(q,ne))&&(q[ne]=G[ne])}return q}),V9=oXe,s(sK,"isArrayLikeObject"),N(sK,"isArrayLikeObject"),qie=sK,s(oK,"arrayIncludesWith"),N(oK,"arrayIncludesWith"),jie=oK,lXe=200,s(lK,"baseDifference"),N(lK,"baseDifference"),cXe=lK,hXe=_9(function(q,T){return qie(q)?cXe(q,M9(T,1,qie,!0)):[]}),g5=hXe,s(cK,"last"),N(cK,"last"),N0=cK,s(hK,"drop"),N(hK,"drop"),hs=hK,s(uK,"dropRight"),N(uK,"dropRight"),Cv=uK,s(dK,"castFunction"),N(dK,"castFunction"),uXe=dK,s(pK,"forEach"),N(pK,"forEach"),Xr=pK,s(gK,"arrayEvery"),N(gK,"arrayEvery"),dXe=gK,s(fK,"baseEvery"),N(fK,"baseEvery"),pXe=fK,s(mK,"every"),N(mK,"every"),Wl=mK,s(yK,"baseFilter"),N(yK,"baseFilter"),Gie=yK,s(vK,"filter"),N(vK,"filter"),dl=vK,s(bK,"createFind"),N(bK,"createFind"),gXe=bK,fXe=Math.max,s(xK,"findIndex"),N(xK,"findIndex"),mXe=xK,yXe=gXe(mXe),p1=yXe,s(kK,"head"),N(kK,"head"),Hl=kK,s(TK,"baseMap"),N(TK,"baseMap"),vXe=TK,s(wK,"map"),N(wK,"map"),Dr=wK,s(CK,"flatMap"),N(CK,"flatMap"),pl=CK,bXe=Object.prototype,xXe=bXe.hasOwnProperty,kXe=aXe(function(q,T,L){xXe.call(q,L)?q[L].push(T):S9(q,L,[T])}),TXe=kXe,wXe=Object.prototype,CXe=wXe.hasOwnProperty,s(EK,"baseHas"),N(EK,"baseHas"),EXe=EK,s(SK,"has"),N(SK,"has"),Ur=SK,SXe="[object String]",s(_K,"isString"),N(_K,"isString"),mo=_K,s(AK,"baseValues"),N(AK,"baseValues"),_Xe=AK,s(LK,"values"),N(LK,"values"),Ga=LK,AXe=Math.max,s(RK,"includes"),N(RK,"includes"),Ys=RK,LXe=Math.max,s(IK,"indexOf"),N(IK,"indexOf"),Uie=IK,RXe="[object Map]",IXe="[object Set]",DXe=Object.prototype,NXe=DXe.hasOwnProperty,s(DK,"isEmpty"),N(DK,"isEmpty"),mn=DK,MXe="[object RegExp]",s(NK,"baseIsRegExp"),N(NK,"baseIsRegExp"),OXe=NK,Vie=Md&&Md.isRegExp,$Xe=Vie?yv(Vie):OXe,eu=$Xe,s(MK,"isUndefined"),N(MK,"isUndefined"),tu=MK,BXe="Expected a function",s(OK,"negate"),N(OK,"negate"),PXe=OK,s($K,"baseSet"),N($K,"baseSet"),FXe=$K,s(BK,"basePickBy"),N(BK,"basePickBy"),zXe=BK,s(PK,"pickBy"),N(PK,"pickBy"),Yl=PK,s(FK,"baseReduce"),N(FK,"baseReduce"),qXe=FK,s(zK,"reduce"),N(zK,"reduce"),jo=zK,s(qK,"reject"),N(qK,"reject"),f5=qK,s(jK,"baseSome"),N(jK,"baseSome"),jXe=jK,s(GK,"some"),N(GK,"some"),Wie=GK,GXe=1/0,UXe=u1&&1/G9(new u1([,-0]))[1]==GXe?function(q){return new u1(q)}:ja,VXe=UXe,WXe=200,s(UK,"baseUniq"),N(UK,"baseUniq"),HXe=UK,s(VK,"uniq"),N(VK,"uniq"),W9=VK,s(Kk,"PRINT_ERROR"),N(Kk,"PRINT_ERROR"),s(XA,"PRINT_WARNING"),N(XA,"PRINT_WARNING"),s(KA,"timer"),N(KA,"timer"),s(ZA,"toFastProperties"),N(ZA,"toFastProperties"),s(WK,"tokenLabel"),N(WK,"tokenLabel"),s(HK,"hasTokenLabel"),N(HK,"hasTokenLabel"),Gc=(h=class{get definition(){return this._definition}set definition(T){this._definition=T}constructor(T){this._definition=T}accept(T){T.visit(this),Xr(this.definition,L=>{L.accept(T)})}},f(h,"nu"),s(h,"AbstractProduction"),N(h,"AbstractProduction"),h),Xs=(u=class extends Gc{constructor(T){super([]),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}set definition(T){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(T){T.visit(this)}},f(u,"us"),s(u,"NonTerminal"),N(u,"NonTerminal"),u),g1=(d=class extends Gc{constructor(T){super(T.definition),this.orgText="",qo(this,Yl(T,L=>L!==void 0))}},f(d,"oy"),s(d,"Rule"),N(d,"Rule"),d),yo=(p=class extends Gc{constructor(T){super(T.definition),this.ignoreAmbiguities=!1,qo(this,Yl(T,L=>L!==void 0))}},f(p,"Ws"),s(p,"Alternative"),N(p,"Alternative"),p),us=(g=class extends Gc{constructor(T){super(T.definition),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}},f(g,"Ca"),s(g,"Option"),N(g,"Option"),g),Go=(m=class extends Gc{constructor(T){super(T.definition),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}},f(m,"yo"),s(m,"RepetitionMandatory"),N(m,"RepetitionMandatory"),m),Uo=(y=class extends Gc{constructor(T){super(T.definition),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}},f(y,"vo"),s(y,"RepetitionMandatoryWithSeparator"),N(y,"RepetitionMandatoryWithSeparator"),y),ra=(x=class extends Gc{constructor(T){super(T.definition),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}},f(x,"hn"),s(x,"Repetition"),N(x,"Repetition"),x),vo=(C=class extends Gc{constructor(T){super(T.definition),this.idx=1,qo(this,Yl(T,L=>L!==void 0))}},f(C,"qs"),s(C,"RepetitionWithSeparator"),N(C,"RepetitionWithSeparator"),C),bo=(w=class extends Gc{get definition(){return this._definition}set definition(T){this._definition=T}constructor(T){super(T.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,qo(this,Yl(T,L=>L!==void 0))}},f(w,"Us"),s(w,"Alternation"),N(w,"Alternation"),w),Ln=(_=class{constructor(T){this.idx=1,qo(this,Yl(T,L=>L!==void 0))}accept(T){T.visit(this)}},f(_,"Wi"),s(_,"Terminal"),N(_,"Terminal"),_),s(YK,"serializeGrammar"),N(YK,"serializeGrammar"),s(M2,"serializeProduction"),N(M2,"serializeProduction"),f1=(S=class{visit(T){let L=T;switch(L.constructor){case Xs:return this.visitNonTerminal(L);case yo:return this.visitAlternative(L);case us:return this.visitOption(L);case Go:return this.visitRepetitionMandatory(L);case Uo:return this.visitRepetitionMandatoryWithSeparator(L);case vo:return this.visitRepetitionWithSeparator(L);case ra:return this.visitRepetition(L);case bo:return this.visitAlternation(L);case Ln:return this.visitTerminal(L);case g1:return this.visitRule(L);default:throw Error("non exhaustive match")}}visitNonTerminal(T){}visitAlternative(T){}visitOption(T){}visitRepetition(T){}visitRepetitionMandatory(T){}visitRepetitionMandatoryWithSeparator(T){}visitRepetitionWithSeparator(T){}visitAlternation(T){}visitTerminal(T){}visitRule(T){}},f(S,"ly"),s(S,"GAstVisitor"),N(S,"GAstVisitor"),S),s(XK,"isSequenceProd"),N(XK,"isSequenceProd"),s(O2,"isOptionalProd"),N(O2,"isOptionalProd"),s(KK,"isBranchingProd"),N(KK,"isBranchingProd"),s(ql,"getProductionDslName"),N(ql,"getProductionDslName"),m5=(R=class{walk(T,L=[]){Xr(T.definition,(M,B)=>{let G=hs(T.definition,B+1);if(M instanceof Xs)this.walkProdRef(M,G,L);else if(M instanceof Ln)this.walkTerminal(M,G,L);else if(M instanceof yo)this.walkFlat(M,G,L);else if(M instanceof us)this.walkOption(M,G,L);else if(M instanceof Go)this.walkAtLeastOne(M,G,L);else if(M instanceof Uo)this.walkAtLeastOneSep(M,G,L);else if(M instanceof vo)this.walkManySep(M,G,L);else if(M instanceof ra)this.walkMany(M,G,L);else if(M instanceof bo)this.walkOr(M,G,L);else throw Error("non exhaustive match")})}walkTerminal(T,L,M){}walkProdRef(T,L,M){}walkFlat(T,L,M){let B=L.concat(M);this.walk(T,B)}walkOption(T,L,M){let B=L.concat(M);this.walk(T,B)}walkAtLeastOne(T,L,M){let B=[new us({definition:T.definition})].concat(L,M);this.walk(T,B)}walkAtLeastOneSep(T,L,M){let B=QA(T,L,M);this.walk(T,B)}walkMany(T,L,M){let B=[new us({definition:T.definition})].concat(L,M);this.walk(T,B)}walkManySep(T,L,M){let B=QA(T,L,M);this.walk(T,B)}walkOr(T,L,M){let B=L.concat(M);Xr(T.definition,G=>{let Z=new yo({definition:[G]});this.walk(Z,B)})}},f(R,"CA"),s(R,"RestWalker"),N(R,"RestWalker"),R),s(QA,"restForRepetitionWithSeparator"),N(QA,"restForRepetitionWithSeparator"),s(Vf,"first"),N(Vf,"first"),s(ZK,"firstForSequence"),N(ZK,"firstForSequence"),s(QK,"firstForBranching"),N(QK,"firstForBranching"),s(JK,"firstForTerminal"),N(JK,"firstForTerminal"),Hie="_~IN~_",YXe=(b=class extends m5{constructor(T){super(),this.topProd=T,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(T,L,M){}walkProdRef(T,L,M){let B=tZ(T.referencedRule,T.idx)+this.topProd.name,G=L.concat(M),Z=new yo({definition:G}),ee=Vf(Z);this.follows[B]=ee}},f(b,"x0t"),s(b,"ResyncFollowsWalker"),N(b,"ResyncFollowsWalker"),b),s(eZ,"computeAllProdsFollows"),N(eZ,"computeAllProdsFollows"),s(tZ,"buildBetweenProdsFollowPrefix"),N(tZ,"buildBetweenProdsFollowPrefix"),y5={},XXe=new Dre,s($2,"getRegExpAst"),N($2,"getRegExpAst"),s(rZ,"clearRegExpParserCache"),N(rZ,"clearRegExpParserCache"),Yie="C
1237omplement Sets are not supported for first char optimization",v5=`Unable to use "first char" lexer optimizations: 1238`,s(iZ,"getOptimizedStartCodesIndices"),N(iZ,"getOptimizedStartCodesIndices"),s(Zk,"firstCharOptimizedIndices"),N(Zk,"firstCharOptimizedIndices"),s(B2,"addOptimizedIdxToResult"),N(B2,"addOptimizedIdxToResult"),s(nZ,"handleIgnoreCase"),N(nZ,"handleIgnoreCase"),s(JA,"findCode"),N(JA,"findCode"),s(Qk,"isWholeOptional"),N(Qk,"isWholeOptional"),KXe=(v=class extends JT{constructor(T){super(),this.targetCharCodes=T,this.found=!1}visitChildren(T){if(this.found!==!0){switch(T.type){case"Lookahead":this.visitLookahead(T);return;case"NegativeLookahead":this.visitNegativeLookahead(T);return;case"Lookbehind":this.visitLookbehind(T);return;case"NegativeLookbehind":this.visitNegativeLookbehind(T);return}super.visitChildren(T)}}visitCharacter(T){Ys(this.targetCharCodes,T.value)&&(this.found=!0)}visitSet(T){T.complement?JA(T,this.targetCharCodes)===void 0&&(this.found=!0):JA(T,this.targetCharCodes)!==void 0&&(this.found=!0)}},f(v,"T0t"),s(v,"CharCodeFinder"),N(v,"CharCodeFinder"),v),s(Jk,"canMatchCharCode"),N(Jk,"canMatchCharCode"),M0="PATTERN",Ev="defaultMode",b5="modes",Xie=typeof new RegExp("(?:)").sticky=="boolean",s(aZ,"analyzeTokenTypes"),N(aZ,"analyzeTokenTypes"),s(sZ,"validatePatterns"),N(sZ,"validatePatterns"),s(oZ,"validateRegExpPattern"),N(oZ,"validateRegExpPattern"),s(lZ,"findMissingPatterns"),N(lZ,"findMissingPatterns"),s(cZ,"findInvalidPatterns"),N(cZ,"findInvalidPatterns"),ZXe=/[^\\][$]/,s(hZ,"findEndOfInputAnchor"),N(hZ,"findEndOfInputAnchor"),s(uZ,"findEmptyMatchRegExps"),N(uZ,"findEmptyMatchRegExps"),QXe=/[^\\[][\^]|^\^/,s(dZ,"findStartOfInputAnchor"),N(dZ,"findStartOfInputAnchor"),s(pZ,"findUnsupportedFlags"),N(pZ,"findUnsupportedFlags"),s(gZ,"findDuplicatePatterns"),N(gZ,"findDuplicatePatterns"),s(fZ,"findInvalidGroupType"),N(fZ,"findInvalidGroupType"),s(mZ,"findModesThatDoNotExist"),N(mZ,"findModesThatDoNotExist"),s(yZ,"findUnreachablePatterns"),N(yZ,"findUnreachablePatterns"),s(vZ,"tryToMatchStrToPattern"),N(vZ,"tryToMatchStrToPattern"),s(bZ,"noMetaChar"),N(bZ,"noMetaChar"),s(xZ,"usesLookAheadOrBehind"),N(xZ,"usesLookAheadOrBehind"),s(e8,"addStartOfInput"),N(e8,"addStartOfInput"),s(t8,"addStickyFlag"),N(t8,"addStickyFlag"),s(kZ,"performRuntimeChecks"),N(kZ,"performRuntimeChecks"),s(TZ,"performWarningRuntimeChecks"),N(TZ,"performWarningRuntimeChecks"),s(wZ,"cloneEmptyGroups"),N(wZ,"cloneEmptyGroups"),s(r8,"isCustomPattern"),N(r8,"isCustomPattern"),s(CZ,"isShortPattern"),N(CZ,"isShortPattern"),JXe={test:N(function(q){let T=q.length;for(let L=this.lastIndex;L<T;L++){let M=q.charCodeAt(L);if(M===10)return this.lastIndex=L+1,!0;if(M===13)return q.charCodeAt(L+1)===10?this.lastIndex=L+2:this.lastIndex=L+1,!0}return!1},"test"),lastIndex:0},s(i8,"checkLineBreaksIssues"),N(i8,"checkLineBreaksIssues"),s(EZ,"buildLineBreakIssueMessage"),N(EZ,"buildLineBreakIssueMessage"),s(n8,"getCharCodes"),N(n8,"getCharCodes"),s(eT,"addToMapOfArrays"),N(eT,"addToMapOfArrays"),Sv=256,x5=[],s(Hh,"charCodeToOptimizedIndex"),N(Hh,"charCodeToOptimizedIndex"),s(SZ,"initCharCodeToOptimizedIndexMap"),N(SZ,"initCharCodeToOptimizedIndexMap"),s(Wf,"tokenStructuredMatcher"),N(Wf,"tokenStructuredMatcher"),s(P2,"tokenStructuredMatcherNoCategories"),N(P2,"tokenStructuredMatcherNoCategories"),Kie=1,Zie={},s(Hf,"augmentTokenTypes"),N(Hf,"augmentTokenTypes"),s(_Z,"expandCategories"),N(_Z,"expandCategories"),s(AZ,"assignTokenDefaultProps"),N(AZ,"assignTokenDefaultProps"),s(LZ,"assignCategoriesTokensProp"),N(LZ,"assignCategoriesTokensProp"),s(RZ,"assignCategoriesMapProp"),N(RZ,"assignCategoriesMapProp"),s(a8,"singleAssignCategoriesToksMap"),N(a8,"singleAssignCategoriesToksMap"),s(s8,"hasShortKeyProperty"),N(s8,"hasShortKeyProperty"),s(o8,"hasCategoriesProperty"),N(o8,"hasCategoriesProperty"),s(IZ,"hasExtendingTokensTypesProperty"),N(IZ,"hasExtendingTokensTypesProperty"),s(DZ,"hasExtendingTokensTypesMapProperty"),N(DZ,"hasExtendingTokensTypesMapProperty"),s(NZ,"isTokenType"),N(NZ,"isTokenType"),H9={buildUnableToPopLexerModeMessage(q){return`Unable to pop Lexer Mode after encountering Token ->${q.image}
1238<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(q,T,L,M,B,G){return`unexpected character: ->${q.charAt(T)}<- at offset: ${T}, skipped ${L} characters.`}},(function(q){q[q.MISSING_PATTERN=0]="MISSING_PATTERN",q[q.INVALID_PATTERN=1]="INVALID_PATTERN",q[q.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",q[q.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",q[q.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",q[q.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",q[q.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",q[q.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",q[q.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",q[q.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",q[q.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",q[q.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",q[q.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",q[q.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",q[q.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",q[q.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",q[q.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",q[q.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(ma||(ma={})),_v={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` 1239`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:H9,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(_v),Ks=(k=class{constructor(T,L=_v){if(this.lexerDefinition=T,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=(B,G)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let Z=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${Z}--> <${B}>`);let{time:ee,value:K}=KA(G),ne=ee>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&ne(`${Z}<-- <${B}> time: ${ee}ms`),this.traceInitIndent--,K}else return G()},typeof L=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. 1240a boolean 2nd argument is no longer supported`);this.config=qo({},_v,L);let M=this.config.traceInitPerf;M===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof M=="number"&&(this.traceInitMaxIdent=M,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let B,G=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===_v.lineTerminatorsPattern)this.config.lineTerminatorsPattern=JXe;else if(this.config.lineTerminatorCharacters===_v.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config. 1241 For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(L.safeMode&&L.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),$i(T)?B={modes:{defaultMode:cs(T)},defaultMode:Ev}:(G=!1,B=cs(T))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(kZ(B,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(TZ(B,this.trackStartLines,this.config.lineTerminatorCharacters))}
vendor: 14,902 bytes, lines 1241-1277
1241)),B.modes=B.modes?B.modes:{},Xr(B.modes,(ee,K)=>{B.modes[K]=f5(ee,ne=>tu(ne))});let Z=zo(B.modes);if(Xr(B.modes,(ee,K)=>{this.TRACE_INIT(`Mode: <${K}> processing`,()=>{if(this.modes.push(K),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(sZ(ee,Z))}),mn(this.lexerDefinitionErrors)){Hf(ee);let ne;this.TRACE_INIT("analyzeTokenTypes",()=>{ne=aZ(ee,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:L.positionTracking,ensureOptimizations:L.ensureOptimizations,safeMode:L.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[K]=ne.patternIdxToConfig,this.charCodeToPatternIdxToConfig[K]=ne.charCodeToPatternIdxToConfig,this.emptyGroups=qo({},this.emptyGroups,ne.emptyGroups),this.hasCustom=ne.hasCustom||this.hasCustom,this.canModeBeOptimized[K]=ne.canBeOptimized}})}),this.defaultMode=B.defaultMode,!mn(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let ee=Dr(this.lexerDefinitionErrors,K=>K.message).join(`----------------------- 1242`);throw new Error(`Errors detected in definition of Lexer: 1243`+ee)}Xr(this.lexerDefinitionWarning,ee=>{XA(ee.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Xie?(this.chopInput=h1,this.match=this.matchWithTest):(this.updateLastIndex=ja,this.match=this.matchWithExec),G&&(this.handleModes=ja),this.trackStartLines===!1&&(this.computeNewColumn=h1),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ja),/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 <positionTracking> 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 ee=jo(this.canModeBeOptimized,(K,ne,fe)=>(ne===!1&&K.push(fe),K),[]);if(L.ensureOptimizations&&!mn(ee))throw Error(`Lexer Modes: < ${ee.join(", ")} > cannot be optimized. 1244 Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. 1245 Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{rZ()}),this.TRACE_INIT("toFastProperties",()=>{ZA(this)})})}tokenize(T,L=this.defaultMode){if(!mn(this.lexerDefinitionErrors)){let M=Dr(this.lexerDefinitionErrors,B=>B.message).join(`----------------------- 1246`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: 1247`+M)}return this.tokenizeInternal(T,L)}tokenizeInternal(T,L){let M,B,G,Z,ee,K,ne,fe,Ne,Ee,it,He,wt,Pt,Xt,ar,lr=T,Br=lr.length,ii=0,In=0,Gi=this.hasCustom?0:Math.floor(T.length/10),Wn=new Array(Gi),sa=[],La=this.trackStartLines?1:void 0,Bi=this.trackStartLines?1:void 0,va=wZ(this.emptyGroups),Gt=this.trackStartLines,xt=this.config.lineTerminatorsPattern,st=0,vt=[],ct=[],ut=[],Et=[];Object.freeze(Et);let Jt;function cr(){return vt}f(cr,"G"),s(cr,"getPossiblePatternsSlow"),N(cr,"getPossiblePatternsSlow");function er(pi){let Ii=Hh(pi),ba=ct[Ii];return ba===void 0?Et:ba}f(er,"F"),s(er,"getPossiblePatternsOptimized"),N(er,"getPossiblePatternsOptimized");let Lr=N(pi=>{if(ut.length===1&&pi.tokenType.PUSH_MODE===void 0){let Ii=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(pi);sa.push({offset:pi.startOffset,line:pi.startLine,column:pi.startColumn,length:pi.image.length,message:Ii})}else{ut.pop();let Ii=N0(ut);vt=this.patternIdxToConfig[Ii],ct=this.charCodeToPatternIdxToConfig[Ii],st=vt.length;let ba=this.canModeBeOptimized[Ii]&&this.config.safeMode===!1;ct&&ba?Jt=er:Jt=cr}},"pop_mode");function Rr(pi){ut.push(pi),ct=this.charCodeToPatternIdxToConfig[pi],vt=this.patternIdxToConfig[pi],st=vt.length,st=vt.length;let Ii=this.canModeBeOptimized[pi]&&this.config.safeMode===!1;ct&&Ii?Jt=er:Jt=cr}f(Rr,"H"),s(Rr,"push_mode"),N(Rr,"push_mode"),Rr.call(this,L);let ci,ai=this.config.recoveryEnabled;for(;ii<Br;){K=null;let pi=lr.charCodeAt(ii),Ii=Jt(pi),ba=Ii.length;for(M=0;M<ba;M++){ci=Ii[M];let Ui=ci.pattern;ne=null;let sn=ci.short;if(sn!==!1?pi===sn&&(K=Ui):ci.isCustom===!0?(ar=Ui.exec(lr,ii,Wn,va),ar!==null?(K=ar[0],ar.payload!==void 0&&(ne=ar.payload)):K=null):(this.updateLastIndex(Ui,ii),K=this.match(Ui,T,ii)),K!==null){if(ee=ci.longerAlt,ee!==void 0){let Hn=ee.length;for(G=0;G<Hn;G++){let en=vt[ee[G]],hi=en.pattern;if(fe=null,en.isCustom===!0?(ar=hi.exec(lr,ii,Wn,va),ar!==null?(Z=ar[0],ar.payload!==void 0&&(fe=ar.payload)):Z=null):(this.updateLastIndex(hi,ii),Z=this.match(hi,T,ii)),Z&&Z.length>K.length){K=Z,ne=fe,ci=en;break}}}break}}if(K!==null){if(Ne=K.length,Ee=ci.group,Ee!==void 0&&(it=ci.tokenTypeIdx,He=this.createTokenInstance(K,ii,it,ci.tokenType,La,Bi,Ne),this.handlePayload(He,ne),Ee===!1?In=this.addToken(Wn,In,He):va[Ee].push(He)),T=this.chopInput(T,Ne),ii=ii+Ne,Bi=this.computeNewColumn(Bi,Ne),Gt===!0&&ci.canLineTerminator===!0){let Ui=0,sn,Hn;xt.lastIndex=0;do sn=xt.test(K),sn===!0&&(Hn=xt.lastIndex-1,Ui++);while(sn===!0);Ui!==0&&(La=La+Ui,Bi=Ne-Hn,this.updateTokenEndLineColumnLocation(He,Ee,Hn,Ui,La,Bi,Ne))}this.handleModes(ci,Lr,Rr,He)}else{let Ui=ii,sn=La,Hn=Bi,en=ai===!1;for(;en===!1&&ii<Br;)for(T=this.chopInput(T,1),ii++,B=0;B<st;B++){let hi=vt[B],oa=hi.pattern,Pi=hi.short;if(Pi!==!1?lr.charCodeAt(ii)===Pi&&(en=!0):hi.isCustom===!0?en=oa.exec(lr,ii,Wn,va)!==null:(this.updateLastIndex(oa,ii),en=oa.exec(T)!==null),en===!0)break}if(wt=ii-Ui,Bi=this.computeNewColumn(Bi,wt),Xt=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(lr,Ui,wt,sn,Hn,N0(ut)),sa.push({offset:Ui,line:sn,column:Hn,length:wt,message:Xt}),ai===!1)break}}return this.hasCustom||(Wn.length=In),{tokens:Wn,groups:va,errors:sa}}handleModes(T,L,M,B){if(T.pop===!0){let G=T.push;L(B),G!==void 0&&M.call(this,G)}else T.push!==void 0&&M.call(this,T.push)}chopInput(T,L){return T.substring(L)}updateLastIndex(T,L){T.lastIndex=L}updateTokenEndLineColumnLocation(T,L,M,B,G,Z,ee){let K,ne;L!==void 0&&(K=M===ee-1,ne=K?-1:0,B===1&&K===!0||(T.endLine=G+ne,T.endColumn=Z-1+-ne))}computeNewColumn(T,L){return T+L}createOffsetOnlyToken(T,L,M,B){return{image:T,startOffset:L,tokenTypeIdx:M,tokenType:B}}createStartOnlyToken(T,L,M,B,G,Z){return{image:T,startOffset:L,startLine:G,startColumn:Z,tokenTypeIdx:M,tokenType:B}}createFullToken(T,L,M,B,G,Z,ee){return{image:T,startOffset:L,endOffset:L+ee-1,startLine:G,endLine:G,startColumn:Z,endColumn:Z+ee-1,tokenTypeIdx:M,tokenType:B}}addTokenUsingPush(T,L,M){return T.push(M),L}addTokenUsingMemberAccess(T,L,M){return T[L]=M,L++,L}handlePayloadNoCustom(T,L){}handlePayloadWithCustom(T,L){L!==null&&(T.payload=L)}matchWithTest(T,L,M){return T.test(L)===!0?L.substring(M,T.lastIndex):null}matchWithExec(T,L){let M=T.exec(L);return M!==null?M[0]:null}},f(k,"ls"),s(k,"Lexer"),N(k,"Lexer"),k),Ks.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Ks.NA=/NOT_APPLICABLE/,s(o0,"tokenLabel2"),N(o0,"tokenLabel"),s(l8,"hasTokenLabel2"),N(l8,"hasTokenLabel"),eKe="parent",Qie="categories",Jie="label",ene="group",tne="push_mode",rne="pop_mode",ine="longer_alt",nne="line_breaks",ane="start_chars_hint",s(Yf,"createToken"),N(Yf,"createToken"),s(MZ,"createTokenInternal"),N(MZ,"createTokenInternal"),Od=Yf({name:"EOF",pattern:Ks.NA}),Hf([Od]),s(F2,"createTokenInstance"),N(F2,"createTokenInstance"),s(c8,"tokenMatcher"),N(c8,"tokenMatcher"),m1={buildMismatchTokenMessage({expected:q,actual:T,previous:L,ruleName:M}){return`Expecting ${l8(q)?`--> ${o0(q)} <--`:`token of type --> ${q.name} <--`} but found --> '${T.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:q,ruleName:T}){return"Redundant input, expecting EOF but found: "+q.image},buildNoViableAltMessage({expectedPathsPerAlt:q,actual:T,previous:L,customUserDescription:M,ruleName:B}){let G="Expecting: ",Z=` 1248but found: '`+Hl(T).image+"'";if(M)return G+M+Z;{let ee=jo(q,(fe,Ne)=>fe.concat(Ne),[]),K=Dr(ee,fe=>`[${Dr(fe,Ne=>o0(Ne)).join(", ")}]`),ne=`one of these possible Token sequences: 1249${Dr(K,(fe,Ne)=>` ${Ne+1}. ${fe}`).join(` 1250`)}`;return G+ne+Z}},buildEarlyExitMessage({expectedIterationPaths:q,actual:T,customUserDescription:L,ruleName:M}){let B="Expecting: ",G=` 1251but found: '`+Hl(T).image+"'";if(L)return B+L+G;{let Z=`expecting at least one iteration which starts with one of these possible Token sequences:: 1252 <${Dr(q,ee=>`[${Dr(ee,K=>o0(K)).join(",")}]`).join(" ,")}>`;return B+Z+G}}},Object.freeze(m1),tKe={buildRuleNotFoundError(q,T){return"Invalid grammar, reference to a rule which is not defined: ->"+T.nonTerminalName+`<- 1253inside top level rule: ->`+q.name+"<-"}},O0={buildDuplicateFoundError(q,T){function L(fe){return fe instanceof Ln?fe.terminalType.name:fe instanceof Xs?fe.nonTerminalName:""}f(L,"r"),s(L,"getExtraProductionArgument2"),N(L,"getExtraProductionArgument");let M=q.name,B=Hl(T),G=B.idx,Z=ql(B),ee=L(B),K=G>0,ne=`->${Z}${K?G:""}<- ${ee?`with argument: ->${ee}<-`:""} 1254 appears more than once (${T.length} times) in the top level rule: ->${M}<-. 1255 For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES 1256 `;return ne=ne.replace(/[ \t]+/g," "),ne=ne.replace(/\s\s+/g,` 1257`),ne},buildNamespaceConflictError(q){return`Namespace conflict found in grammar. 1258The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${q.name}>. 1259To resolve this make sure each Terminal and Non-Terminal names are unique 1260This is easy to accomplish by using the convention that Terminal names start with an uppercase letter 1261and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(q){let T=Dr(q.prefixPath,M=>o0(M)).join(", "),L=q.alternation.idx===0?"":q.alternation.idx;return`Ambiguous alternatives: <${q.ambiguityIndices.join(" ,")}> due to common lookahead prefix 1262in <OR${L}> inside <${q.topLevelRule.name}> Rule, 1263<${T}> may appears as a prefix path in all these alternatives. 1264See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX 1265For Further details.`},buildAlternationAmbiguityError(q){let T=Dr(q.prefixPath,B=>o0(B)).join(", "),L=q.alternation.idx===0?"":q.alternation.idx,M=`Ambiguous Alternatives Detected: <${q.ambiguityIndices.join(" ,")}> in <OR${L}> inside <${q.topLevelRule.name}> Rule, 1266<${T}> may appears as a prefix path in all these alternatives. 1267`;return M=M+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES 1268For Further details.`,M},buildEmptyRepetitionError(q){let T=ql(q.repetition);return q.repetition.idx!==0&&(T+=q.repetition.idx),`The repetition <${T}> within Rule <${q.topLevelRule.name}> can never consume any tokens. 1269This could lead to an infinite loop.`},buildTokenNameError(q){return"deprecated"},buildEmptyAlternationError(q){return`Ambiguous empty alternative: <${q.emptyChoiceIdx+1}> in <OR${q.alternation.idx}> inside <${q.topLevelRule.name}> Rule. 1270Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(q){return`An Alternation cannot have more than 256 alternatives: 1271<OR${q.alternation.idx}> inside <${q.topLevelRule.name}> Rule. 1272 has ${q.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(q){let T=q.topLevelRule.name,L=Dr(q.leftRecursionPath,B=>B.name),M=`${T} --> ${L.concat([T]).join(" --> ")}`;return`Left Recursion found in grammar. 1273rule: <${T}> can be invoked from itself (directly or indirectly) 1274without consuming any Tokens. The grammar path that causes this is: 1275 ${M} 1276 To fix this refactor your grammar to remove the left recursion. 1277see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(q){return"deprecated"},buildDuplicateRuleNameError(q){let T;return q.topLevelRule instanceof g1?T=q.topLevelRule.name:T=q.topLevelRule,`Duplicate definition, rule: ->${T}<- is already defined in the grammar: ->${q.grammarName}<-`}},s(OZ,"resolveGrammar"),N(OZ,"resolveGrammar"),rKe=(E=class extends f1{constructor(T,L){super(),this.nameToTopRule=T,this.errMsgProvider=L,this.errors=[]}resolveRefs(){Xr(Ga(this.nameToTopRule),T=>{this.currTopLevel=T,T.accept(this)})}visitNonTerminal(T){let L=this.nameToTopRule[T.nonTerminalName];if(L)T.referencedRule=L;else{let M=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,T);this.errors.push({message:M,type:xo.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:T.nonTerminalName})}}},f(E,"A0t"),s(E,"GastRefResolverVisitor"),N(E,"GastRefResolverVisitor"),E),iKe=(A=class extends m5{constructor(T,L){super(),this.topProd=T,this.path=L,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=cs(this.path.ruleStack).reverse(),this.occurrenceStack=cs(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(T,L=[]){this.found||super.walk(T,L)}walkProdRef(T,L,M){if(T.referencedRule.name===this.nextProductionName&&T.idx===this.nextProductionOccurrence){let B=L.concat(M);this.updateExpectedNext(),this.walk(T.referencedRule,B)}}updateExpectedNext(){mn(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},f(A,"_0t"),s(A,"AbstractNextPossibleTokensWalker"),N(A,"AbstractNextPossibleTokensWalker"),A),nKe=(I=class extends iKe{constructor(T,L){super(T,L),this.path=L,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(T,L,M){if(this.isAtEndOfPath&&T.terminalType.name===this.nextTerminalName&&T.idx===this.nextTerminalOccurrence&&!this.found){let B=L.concat(M),G=new yo({definition:B});this.possibleTokTypes=Vf(G),this.found=!0}}},f(I,"D0t"),s(I,"NextAfterTokenWalker"),N(I,"NextAfterTokenWalker"),I),k5=($=class extends m5{constructor(T,L){super(),this.topRule=T,this.occurrence=L,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},f($,"wA"),s($,"AbstractNextTerminalAfterProductionWalker"),N($,"AbstractNextTerminalAfterProductionWalker"),$),aKe
1277=(O=class extends k5{walkMany(T,L,M){if(T.idx===this.occurrence){let B=Hl(L.concat(M));this.result.isEndOfRule=B===void 0,B instanceof Ln&&(this.result.token=B.terminalType,this.result.occurrence=B.idx)}else super.walkMany(T,L,M)}},f(O,"R0t"),s(O,"NextTerminalAfterManyWalker"),N(O,"NextTerminalAfterManyWalker"),O),sne=(j=class extends k5{walkManySep(T,L,M){if(T.idx===this.occurrence){let B=Hl(L.concat(M));this.result.isEndOfRule=B===void 0,B instanceof Ln&&(this.result.token=B.terminalType,this.result.occurrence=B.idx)}else super.walkManySep(T,L,M)}},f(j,"oye"),s(j,"NextTerminalAfterManySepWalker"),N(j,"NextTerminalAfterManySepWalker"),j),sKe=(D=class extends k5{walkAtLeastOne(T,L,M){if(T.idx===this.occurrence){let B=Hl(L.concat(M));this.result.isEndOfRule=B===void 0,B instanceof Ln&&(this.result.token=B.terminalType,this.result.occurrence=B.idx)}else super.walkAtLeastOne(T,L,M)}},f(D,"L0t"),s(D,"NextTerminalAfterAtLeastOneWalker"),N(D,"NextTerminalAfterAtLeastOneWalker"),D),one=(P=class extends k5{walkAtLeastOneSep(T,L,M){if(T.idx===this.occurrence){let B=Hl(L.concat(M));this.result.isEndOfRule=B===void 0,B instanceof Ln&&(this.result.token=B.terminalType,this.result.occurrence=B.idx)}else super.walkAtLeastOneSep(T,L,M)}},f(P,"lye"),s(P,"NextTerminalAfterAtLeastOneSepWalker"),N(P,"NextTerminalAfterAtLeastOneSepWalker"),P),s(tT,"possiblePathsFrom"),N(tT,"possiblePathsFrom"),s(h8,"nextPossibleTokensAfter"),N(h8,"nextPossibleTokensAfter"),s($Z,"expandTopLevelRule"),N($Z,"expandTopLevelRule"),(function(q){q[q.OPTION=0]="OPTION",q[q.REPETITION=1]="REPETITION",q[q.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",q[q.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",q[q.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",q[q.ALTERNATION=5]="ALTERNATION"})(ia||(ia={})),s(rT,"getProdType"),N(rT,"getProdType"),s(u8,"getLookaheadPaths"),N(u8,"getLookaheadPaths"),s(BZ,"buildLookaheadFuncForOr"),N(BZ,"buildLookaheadFuncForOr"),s(PZ,"buildLookaheadFuncForOptionalProd"),N(PZ,"buildLookaheadFuncForOptionalProd"),s(FZ,"buildAlternativesLookAheadFunc"),N(FZ,"buildAlternativesLookAheadFunc"),s(zZ,"buildSingleAlternativeLookaheadFunction"),N(zZ,"buildSingleAlternativeLookaheadFunction"),oKe=(F=class extends m5{constructor(T,L,M){super(),this.topProd=T,this.targetOccurrence=L,this.targetProdType=M}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(T,L,M,B){return T.idx===this.targetOccurrence&&this.targetProdType===L?(this.restDef=M.concat(B),!0):!1}walkOption(T,L,M){this.checkIsTarget(T,ia.OPTION,L,M)||super.walkOption(T,L,M)}walkAtLeastOne(T,L,M){this.checkIsTarget(T,ia.REPETITION_MANDATORY,L,M)||super.walkOption(T,L,M)}walkAtLeastOneSep(T,L,M){this.checkIsTarget(T,ia.REPETITION_MANDATORY_WITH_SEPARATOR,L,M)||super.walkOption(T,L,M)}walkMany(T,L,M){this.checkIsTarget(T,ia.REPETITION,L,M)||super.walkOption(T,L,M)}walkManySep(T,L,M){this.checkIsTarget(T,ia.REPETITION_WITH_SEPARATOR,L,M)||super.walkOption(T,L,M)}},f(F,"M0t"),s(F,"RestDefinitionFinderWalker"),N(F,"RestDefinitionFinderWalker"),F),lne=(U=class extends f1{constructor(T,L,M){super(),this.targetOccurrence=T,this.targetProdType=L,this.targetRef=M,this.result=[]}checkIsTarget(T,L){T.idx===this.targetOccurrence&&this.targetProdType===L&&(this.targetRef===void 0||T===this.targetRef)&&(this.result=T.definition)}visitOption(T){this.checkIsTarget(T,ia.OPTION)}visitRepetition(T){this.checkIsTarget(T,ia.REPETITION)}visitRepetitionMandatory(T){this.checkIsTarget(T,ia.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(T){this.checkIsTarget(T,ia.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(T){this.checkIsTarget(T,ia.REPETITION_WITH_SEPARATOR)}visitAlternation(T){this.checkIsTarget(T,ia.ALTERNATION)}},f(U,"jCe"),s(U,"InsideDefinitionFinderVisitor"),N(U,"InsideDefinitionFinderVisitor"),U),s(d8,"initializeArrayOfArrays"),N(d8,"initializeArrayOfArrays"),s(iT,"pathToHashKeys"),N(iT,"pathToHashKeys"),s(qZ,"isUniquePrefixHash"),N(qZ,"isUniquePrefixHash"),s(p8,"lookAheadSequenceFromAlternatives"),N(p8,"lookAheadSequenceFromAlternatives"),s(z2,"getLookaheadPathsF
1277orOr"),N(z2,"getLookaheadPathsForOr"),s(q2,"getLookaheadPathsForOptionalProd"),N(q2,"getLookaheadPathsForOptionalProd"),s(nT,"containsPath"),N(nT,"containsPath"),s(jZ,"isStrictPrefixOfPath"),N(jZ,"isStrictPrefixOfPath"),s(g8,"areTokenCategoriesNotUsed"),N(g8,"areTokenCategoriesNotUsed"),s(GZ,"validateLookahead"),N(GZ,"validateLookahead"),s(UZ,"validateGrammar"),N(UZ,"validateGrammar"),s(VZ,"validateDuplicateProductions"),N(VZ,"validateDuplicateProductions"),s(WZ,"identifyProductionForDuplicates"),N(WZ,"identifyProductionForDuplicates"),s(f8,"getExtraProductionArgument"),N(f8,"getExtraProductionArgument"),lKe=(z=class extends f1{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(T){this.allProductions.push(T)}visitOption(T){this.allProductions.push(T)}visitRepetitionWithSeparator(T){this.allProductions.push(T)}visitRepetitionMandatory(T){this.allProductions.push(T)}visitRepetitionMandatoryWithSeparator(T){this.allProductions.push(T)}visitRepetition(T){this.allProductions.push(T)}visitAlternation(T){this.allProductions.push(T)}visitTerminal(T){this.allProductions.push(T)}},f(z,"N0t"),s(z,"OccurrenceValidationCollector"),N(z,"OccurrenceValidationCollector"),z),s(HZ,"validateRuleDoesNotAlreadyExist"),N(HZ,"validateRuleDoesNotAlreadyExist"),s(YZ,"validateRuleIsOverrid
1277den"),N(YZ,"validateRuleIsOverridden"),s(m8,"validateNoLeftRecursion"),N(m8,"validateNoLeftRecursion"),s(j2,"getFirstNoneTerminal"),N(j2,"getFirstNoneTerminal"),Y9=(V=class extends f1{constructor(){super(...arguments),this.alternations=[]}visitAlternation(T){this.alternations.push(T)}},f(V,"Yz"),s(V,"OrCollector"),N(V,"OrCollector"),V),s(XZ,"validateEmptyOrAlternative"),N(XZ,"validateEmptyOrAlternative"),s(KZ,"validateAmbiguousAlternationAlternatives"),N(KZ,"validateAmbiguousAlternationAlternatives"),cKe=(W=class extends f1{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(T){this.allProductions.push(T)}visitRepetitionMandatory(T){this.allProductions.push(T)}visitRepetitionMandatoryWithSeparator(T){this.allProductions.push(T)}visitRepetition(T){this.allProductions.push(T)}},f(W,"I0t"),s(W,"RepetitionCollector"),N(W,"RepetitionCollector"),W),s(ZZ,"validateTooManyAlts"),N(ZZ,"validateTooManyAlts"),s(QZ,"validateSomeNonEmptyLookaheadPath"),N(QZ,"validateSomeNonEmptyLookaheadPath"),s(JZ,"checkAlternativesAmbiguities"),N(JZ,"checkAlternativesAmbiguities"),s(eQ,"checkPrefixAlternativesAmbiguities"),N(eQ,"checkPrefixAlternativesAmbiguities"),s(tQ,"checkTerminalAndNoneTerminalsNameSpace"),N(tQ,"checkTerminalAndNoneTerminalsNameSpace"),s(rQ,"resolveGrammar2"),N(rQ,"resolveGrammar"),s(iQ,"validateGrammar2"),N(iQ,"validateGrammar"),cne="MismatchedTokenException",hne="NoViableAltException",une="EarlyExitException",dne="NotAllInputParsedException",pne=[cne,hne,une,dne],Object.freeze(pne),s(G2,"isRecognitionException"),N(G2,"isRecognitionException"),T5=(X=class extends Error{constructor(T,L){super(T),this.token=L,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},f(X,"EA"),s(X,"RecognitionException"),N(X,"RecognitionException"),X),gne=(J=class extends T5{constructor(T,L,M){super(T,L),this.previousToken=M,this.name=cne}},f(J,"yke"),s(J,"MismatchedTokenException"),N(J,"MismatchedTokenException"),J),hKe=(H=class extends T5{constructor(T,L,M){super(T,L),this.previousToken=M,this.name=hne}},f(H,"O0t"),s(H,"NoViableAltException"),N(H,"NoViableAltException"),H),uKe=(te=class extends T5{constructor(T,L){super(T,L),this.name=dne}},f(te,"P0t"),s(te,"NotAllInputParsedException"),N(te,"NotAllInputParsedException"),te),dKe=(ie=class extends T5{constructor(T,L,M){super(T,L),this.previousToken=M,this.name=une}},f(ie,"B0t"),s(ie,"EarlyExitException"),N(ie,"EarlyExitException"),ie),X9={},fne="InRuleRecoveryException",pKe=(oe=class extends Error{constructor(T){super(T),this.name=fne}},f(oe,"F0t"),s(oe,"InRuleRecoveryException"),N(oe,"InRuleRecoveryException"),oe),gKe=(he=class{initRecoverable(T){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ur(T,"recoveryEnabled")?T.recoveryEnabled:ru.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=nQ)}getTokenToInsert(T){let L=F2(T,"",NaN,NaN,NaN,NaN,NaN,NaN);return L.isInsertedInRecovery=!0,L}canTokenTypeBeInsertedInRecovery(T){return!0}canTokenTypeBeDeletedInRecovery(T){return!0}tryInRepetitionRecovery(T,L,M,B){let G=this.findReSyncTokenType(),Z=this.exportLexerState(),ee=[],K=!1,ne=this.LA(1),fe=this.LA(1),Ne=N(()=>{let Ee=this.LA(0),it=this.errorMessageProvider.buildMismatchTokenMessage({expected:B,actual:ne,previous:Ee,ruleName:this.getCurrRuleFullName()}),He=new gne(it,ne,this.LA(0));He.resyncedTokens=Cv(ee),this.SAVE_ERROR(He)},"generateErrorMessage");for(;!K;)if(this.tokenMatcher(fe,B)){Ne();return}else if(M.call(this)){Ne(),T.apply(this,L);return}else this.tokenMatcher(fe,G)?K=!0:(fe=this.SKIP_TOKEN(),this.addToResyncTokens(fe,ee));this.importLexerState(Z)}shouldInRepetitionRecoveryBeTried(T,L,M){return!(M===!1||this.tokenMatcher(this.LA(1),T)||this.isBackTracking()||this.canPerformInRuleRecovery(T,this.getFollowsForInRuleRecovery(T,L)))}getFollowsForInRuleRecovery(T,L){let M=this.getCurrentGrammarPath(T,L);return this.getNextPossibleTokenTypes(M)}tryInRuleRecovery(T,L){if(this.canRecoverWithSingleTokenInsertion(T,L))return this.getTokenToInsert(T);
vendor: 28,577 bytes, lines 1277-1286
1277if(this.canRecoverWithSingleTokenDeletion(T)){let M=this.SKIP_TOKEN();return this.consumeToken(),M}throw new pKe("sad sad panda")}canPerformInRuleRecovery(T,L){return this.canRecoverWithSingleTokenInsertion(T,L)||this.canRecoverWithSingleTokenDeletion(T)}canRecoverWithSingleTokenInsertion(T,L){if(!this.canTokenTypeBeInsertedInRecovery(T)||mn(L))return!1;let M=this.LA(1);return p1(L,B=>this.tokenMatcher(M,B))!==void 0}canRecoverWithSingleTokenDeletion(T){return this.canTokenTypeBeDeletedInRecovery(T)?this.tokenMatcher(this.LA(2),T):!1}isInCurrentRuleReSyncSet(T){let L=this.getCurrFollowKey(),M=this.getFollowSetFromFollowKey(L);return Ys(M,T)}findReSyncTokenType(){let T=this.flattenFollowSet(),L=this.LA(1),M=2;for(;;){let B=p1(T,G=>c8(L,G));if(B!==void 0)return B;L=this.LA(M),M++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return X9;let T=this.getLastExplicitRuleShortName(),L=this.getLastExplicitRuleOccurrenceIndex(),M=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(T),idxInCallingRule:L,inRule:this.shortRuleNameToFullName(M)}}buildFullFollowKeyStack(){let T=this.RULE_STACK,L=this.RULE_OCCURRENCE_STACK;return Dr(T,(M,B)=>B===0?X9:{ruleName:this.shortRuleNameToFullName(M),idxInCallingRule:L[B],inRule:this.shortRuleNameToFullName(T[B-1])})}flattenFollowSet(){let T=Dr(this.buildFullFollowKeyStack(),L=>this.getFollowSetFromFollowKey(L));return Vl(T)}getFollowSetFromFollowKey(T){if(T===X9)return[Od];let L=T.ruleName+T.idxInCallingRule+Hie+T.inRule;return this.resyncFollows[L]}addToResyncTokens(T,L){return this.tokenMatcher(T,Od)||L.push(T),L}reSyncTo(T){let L=[],M=this.LA(1);for(;this.tokenMatcher(M,T)===!1;)M=this.SKIP_TOKEN(),this.addToResyncTokens(M,L);return Cv(L)}attemptInRepetitionRecovery(T,L,M,B,G,Z,ee){}getCurrentGrammarPath(T,L){let M=this.getHumanReadableRuleStack(),B=cs(this.RULE_OCCURRENCE_STACK);return{ruleStack:M,occurrenceStack:B,lastTok:T,lastTokOccurrence:L}}getHumanReadableRuleStack(){return Dr(this.RULE_STACK,T=>this.shortRuleNameToFullName(T))}},f(he,"$0t"),s(he,"Recoverable"),N(he,"Recoverable"),he),s(nQ,"attemptInRepetitionRecovery"),N(nQ,"attemptInRepetitionRecovery"),fKe=4,$d=8,mKe=8,mne=1<<$d,yne=2<<$d,K9=3<<$d,Z9=4<<$d,Q9=5<<$d,w5=6<<$d,s(aT,"getKeyForAutomaticLookahead"),N(aT,"getKeyForAutomaticLookahead"),B5t=32-mKe,J9=(pe=class{constructor(T){var L;this.maxLookahead=(L=T==null?void 0:T.maxLookahead)!==null&&L!==void 0?L:ru.maxLookahead}validate(T){let L=this.validateNoLeftRecursion(T.rules);if(mn(L)){let M=this.validateEmptyOrAlternatives(T.rules),B=this.validateAmbiguousAlternationAlternatives(T.rules,this.maxLookahead),G=this.validateSomeNonEmptyLookaheadPath(T.rules,this.maxLookahead);return[...L,...M,...B,...G]}return L}validateNoLeftRecursion(T){return pl(T,L=>m8(L,L,O0))}validateEmptyOrAlternatives(T){return pl(T,L=>XZ(L,O0))}validateAmbiguousAlternationAlternatives(T,L){return pl(T,M=>KZ(M,L,O0))}validateSomeNonEmptyLookaheadPath(T,L){return QZ(T,L,O0)}buildLookaheadForAlternation(T){return BZ(T.prodOccurrence,T.rule,T.maxLookahead,T.hasPredicates,T.dynamicTokensEnabled,FZ)}buildLookaheadForOptional(T){return PZ(T.prodOccurrence,T.rule,T.maxLookahead,T.dynamicTokensEnabled,rT(T.prodType),zZ)}},f(pe,"jz"),s(pe,"LLkLookaheadStrategy"),N(pe,"LLkLookaheadStrategy"),pe),yKe=(se=class{initLooksAhead(T){this.dynamicTokensEnabled=Ur(T,"dynamicTokensEnabled")?T.dynamicTokensEnabled:ru.dynamicTokensEnabled,this.maxLookahead=Ur(T,"maxLookahead")?T.maxLookahead:ru.maxLookahead,this.lookaheadStrategy=Ur(T,"lookaheadStrategy")?T.lookaheadStrategy:new J9({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(T){Xr(T,L=>{this.TRACE_INIT(`${L.name} Rule Lookahead`,()=>{let{alternation:M,repetition:B,option:G,repetitionMandatory:Z,repetitionMandatoryWithSeparator:ee,repetitionWithSeparator:K}=aQ(L);Xr(M,ne=>{let fe=ne.idx===0?"":ne.idx;this.TRACE_INIT(`${ql(ne)}${fe}`,()=>{let Ne=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:ne.idx,rule:L,maxLookahead:ne.maxLookahead||this.maxLookahead,hasPredicates:ne.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),Ee=aT(this.fullRuleNameToShort[L.name],mne,ne.idx);this.setLaFuncCache(Ee,Ne)})}),Xr(B,ne=>{this.computeLookaheadFunc(L,ne.idx,K9,"Repetition",ne.maxLookahead,ql(ne))}),Xr(G,ne=>{this.computeLookaheadFunc(L,ne.idx,yne,"Option",ne.maxLookahead,ql(ne))}),Xr(Z,ne=>{this.computeLookaheadFunc(L,ne.idx,Z9,"RepetitionMandatory",ne.maxLookahead,ql(ne))}),Xr(ee,ne=>{this.computeLookaheadFunc(L,ne.idx,w5,"RepetitionMandatoryWithSeparator",ne.maxLookahead,ql(ne))}),Xr(K,ne=>{this.computeLookaheadFunc(L,ne.idx,Q9,"RepetitionWithSeparator",ne.maxLookahead,ql(ne))})})})}computeLookaheadFunc(T,L,M,B,G,Z){this.TRACE_INIT(`${Z}${L===0?"":L}`,()=>{let ee=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:L,rule:T,maxLookahead:G||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:B}),K=aT(this.fullRuleNameToShort[T.name],M,L);this.setLaFuncCache(K,ee)})}getKeyForAutomaticLookahead(T,L){let M=this.getLastExplicitRuleShortName();return aT(M,T,L)}getLaFuncFromCache(T){return this.lookAheadFuncsCache.get(T)}setLaFuncCache(T,L){this.lookAheadFuncsCache.set(T,L)}},f(se,"V0t"),s(se,"LooksAhead"),N(se,"LooksAhead"),se),vKe=(le=class extends f1{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(T){this.dslMethods.option.push(T)}visitRepetitionWithSeparator(T){this.dslMethods.repetitionWithSeparator.push(T)}visitRepetitionMandatory(T){this.dslMethods.repetitionMandatory.push(T)}visitRepetitionMandatoryWithSeparator(T){this.dslMethods.repetitionMandatoryWithSeparator.push(T)}visitRepetition(T){this.dslMethods.repetition.push(T)}visitAlternation(T){this.dslMethods.alternation.push(T)}},f(le,"W0t"),s(le,"DslMethodsCollectorVisitor"),N(le,"DslMethodsCollectorVisitor"),le),C5=new vKe,s(aQ,"collectMethods"),N(aQ,"collectMethods"),s(y8,"setNodeLocationOnlyOffset"),N(y8,"setNodeLocationOnlyOffset"),s(v8,"setNodeLocationFull"),N(v8,"setNodeLocationFull"),s(sQ,"addTerminalToCst"),N(sQ,"addTerminalToCst"),s(oQ,"addNoneTerminalToCst"),N(oQ,"addNoneTerminalToCst"),bKe="name",s(b8,"defineNameProp"),N(b8,"defineNameProp"),s(lQ,"defaultVisit"),N(lQ,"defaultVisit"),s(cQ,"createBaseSemanticVisitorConstructor"),N(cQ,"createBaseSemanticVisitorConstructor"),s(hQ,"createBaseVisitorConstructorWithDefaults"),N(hQ,"createBaseVisitorConstructorWithDefaults"),(function(q){q[q.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",q[q.MISSING_METHOD=1]="MISSING_METHOD"})(vne||(vne={})),s(uQ,"validateVisitor"),N(uQ,"validateVisitor"),s(dQ,"validateMissingCstMethods"),N(dQ,"validateMissingCstMethods"),xKe=(ue=class{initTreeBuilder(T){if(this.CST_STACK=[],this.outputCst=T.outputCst,this.nodeLocationTracking=Ur(T,"nodeLocationTracking")?T.nodeLocationTracking:ru.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=ja,this.cstFinallyStateUpdate=ja,this.cstPostTerminal=ja,this.cstPostNonTerminal=ja,this.cstPostRule=ja;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=v8,this.setNodeLocationFromNode=v8,this.cstPostRule=ja,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ja,this.setNodeLocationFromNode=ja,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=y8,this.setNodeLocationFromNode=y8,this.cstPostRule=ja,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ja,this.setNodeLocationFromNode=ja,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=ja,this.setNodeLocationFromNode=ja,this.cstPostRule=ja,this.setInitialNodeLocation=ja;else throw Error(`Invalid <nodeLocationTracking> config option: "${T.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(T){T.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(T){T.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(T){T.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(T){let L=this.LA(1);T.location={startOffset:L.startOffset,startLine:L.startLine,startColumn:L.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(T){let L={name:T,children:Object.create(null)};this.setInitialNodeLocation(L),this.CST_STACK.push(L)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(T){let L=this.LA(0),M=T.location;M.startOffset<=L.startOffset?(M.endOffset=L.endOffset,M.endLine=L.endLine,M.endColumn=L.endColumn):(M.startOffset=NaN,M.startLine=NaN,M.startColumn=NaN)}cstPostRuleOnlyOffset(T){let L=this.LA(0),M=T.location;M.startOffset<=L.startOffset?M.endOffset=L.endOffset:M.startOffset=NaN}cstPostTerminal(T,L){let M=this.CST_STACK[this.CST_STACK.length-1];sQ(M,L,T),this.setNodeLocationFromToken(M.location,L)}cstPostNonTerminal(T,L){let M=this.CST_STACK[this.CST_STACK.length-1];oQ(M,L,T),this.setNodeLocationFromNode(M.location,T.location)}getBaseCstVisitorConstructor(){if(tu(this.baseCstVisitorConstructor)){let T=cQ(this.className,zo(this.gastProductionsCache));return this.baseCstVisitorConstructor=T,T}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(tu(this.baseCstVisitorWithDefaultsConstructor)){let T=hQ(this.className,zo(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=T,T}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let T=this.RULE_STACK;return T[T.length-1]}getPreviousExplicitRuleShortName(){let T=this.RULE_STACK;return T[T.length-2]}getLastExplicitRuleOccurrenceIndex(){let T=this.RULE_OCCURRENCE_STACK;return T[T.length-1]}},f(ue,"U0t"),s(ue,"TreeBuilder"),N(ue,"TreeBuilder"),ue),kKe=(de=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(T){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=T,this.tokVectorLength=T.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):S5}LA(T){let L=this.currIdx+T;return L<0||this.tokVectorLength<=L?S5:this.tokVector[L]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(T){this.currIdx=T}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},f(de,"H0t"),s(de,"LexerAdapter"),N(de,"LexerAdapter"),de),TKe=(we=class{ACTION(T){return T.call(this)}consume(T,L,M){return this.consumeInternal(L,T,M)}subrule(T,L,M){return this.subruleInternal(L,T,M)}option(T,L){return this.optionInternal(L,T)}or(T,L){return this.orInternal(L,T)}many(T,L){return this.manyInternal(T,L)}atLeastOne(T,L){return this.atLeastOneInternal(T,L)}CONSUME(T,L){return this.consumeInternal(T,0,L)}CONSUME1(T,L){return this.consumeInternal(T,1,L)}CONSUME2(T,L){return this.consumeInternal(T,2,L)}CONSUME3(T,L){return this.consumeInternal(T,3,L)}CONSUME4(T,L){return this.consumeInternal(T,4,L)}CONSUME5(T,L){return this.consumeInternal(T,5,L)}CONSUME6(T,L){return this.consumeInternal(T,6,L)}CONSUME7(T,L){return this.consumeInternal(T,7,L)}CONSUME8(T,L){return this.consumeInternal(T,8,L)}CONSUME9(T,L){return this.consumeInternal(T,9,L)}SUBRULE(T,L){return this.subruleInternal(T,0,L)}SUBRULE1(T,L){return this.subruleInternal(T,1,L)}SUBRULE2(T,L){return this.subruleInternal(T,2,L)}SUBRULE3(T,L){return this.subruleInternal(T,3,L)}SUBRULE4(T,L){return this.subruleInternal(T,4,L)}SUBRULE5(T,L){return this.subruleInternal(T,5,L)}SUBRULE6(T,L){return this.subruleInternal(T,6,L)}SUBRULE7(T,L){return this.subruleInternal(T,7,L)}SUBRULE8(T,L){return this.subruleInternal(T,8,L)}SUBRULE9(T,L){return this.subruleInternal(T,9,L)}OPTION(T){return this.optionInternal(T,0)}OPTION1(T){return this.optionInternal(T,1)}OPTION2(T){return this.optionInternal(T,2)}OPTION3(T){return this.optionInternal(T,3)}OPTION4(T){return this.optionInternal(T,4)}OPTION5(T){return this.optionInternal(T,5)}OPTION6(T){return this.optionInternal(T,6)}OPTION7(T){return this.optionInternal(T,7)}OPTION8(T){return this.optionInternal(T,8)}OPTION9(T){return this.optionInternal(T,9)}OR(T){return this.orInternal(T,0)}OR1(T){return this.orInternal(T,1)}OR2(T){return this.orInternal(T,2)}OR3(T){return this.orInternal(T,3)}OR4(T){return this.orInternal(T,4)}OR5(T){return this.orInternal(T,5)}OR6(T){return this.orInternal(T,6)}OR7(T){return this.orInternal(T,7)}OR8(T){return this.orInternal(T,8)}OR9(T){return this.orInternal(T,9)}MANY(T){this.manyInternal(0,T)}MANY1(T){this.manyInternal(1,T)}MANY2(T){this.manyInternal(2,T)}MANY3(T){this.manyInternal(3,T)}MANY4(T){this.manyInternal(4,T)}MANY5(T){this.manyInternal(5,T)}MANY6(T){this.manyInternal(6,T)}MANY7(T){this.manyInternal(7,T)}MANY8(T){this.manyInternal(8,T)}MANY9(T){this.manyInternal(9,T)}MANY_SEP(T){this.manySepFirstInternal(0,T)}MANY_SEP1(T){this.manySepFirstInternal(1,T)}MANY_SEP2(T){this.manySepFirstInternal(2,T)}MANY_SEP3(T){this.manySepFirstInternal(3,T)}MANY_SEP4(T){this.manySepFirstInternal(4,T)}MANY_SEP5(T){this.manySepFirstInternal(5,T)}MANY_SEP6(T){this.manySepFirstInternal(6,T)}MANY_SEP7(T){this.manySepFirstInternal(7,T)}MANY_SEP8(T){this.manySepFirstInternal(8,T)}MANY_SEP9(T){this.manySepFirstInternal(9,T)}AT_LEAST_ONE(T){this.atLeastOneInternal(0,T)}AT_LEAST_ONE1(T){return this.atLeastOneInternal(1,T)}AT_LEAST_ONE2(T){this.atLeastOneInternal(2,T)}AT_LEAST_ONE3(T){this.atLeastOneInternal(3,T)}AT_LEAST_ONE4(T){this.atLeastOneInternal(4,T)}AT_LEAST_ONE5(T){this.atLeastOneInternal(5,T)}AT_LEAST_ONE6(T){this.atLeastOneInternal(6,T)}AT_LEAST_ONE7(T){this.atLeastOneInternal(7,T)}AT_LEAST_ONE8(T){this.atLeastOneInternal(8,T)}AT_LEAST_ONE9(T){this.atLeastOneInternal(9,T)}AT_LEAST_ONE_SEP(T){this.atLeastOneSepFirstInternal(0,T)}AT_LEAST_ONE_SEP1(T){this.atLeastOneSepFirstInternal(1,T)}AT_LEAST_ONE_SEP2(T){this.atLeastOneSepFirstInternal(2,T)}AT_LEAST_ONE_SEP3(T){this.atLeastOneSepFirstInternal(3,T)}AT_LEAST_ONE_SEP4(T){this.atLeastOneSepFirstInternal(4,T)}AT_LEAST_ONE_SEP5(T){this.atLeastOneSepFirstInternal(5,T)}AT_LEAST_ONE_SEP6(T){this.atLeastOneSepFirstInternal(6,T)}AT_LEAST_ONE_SEP7(T){this.atLeastOneSepFirstInternal(7,T)}AT_LEAST_ONE_SEP8(T){this.atLeastOneSepFirstInternal(8,T)}AT_LEAST_ONE_SEP9(T){this.atLeastOneSepFirstInternal(9,T)}RULE(T,L,M=_5){if(Ys(this.definedRulesNames,T)){let G={message:O0.buildDuplicateRuleNameError({topLevelRule:T,grammarName:this.className}),type:xo.DUPLICATE_RULE_NAME,ruleName:T};this.definitionErrors.push(G)}this.definedRulesNames.push(T);let B=this.defineRule(T,L,M);return this[T]=B,B}OVERRIDE_RULE(T,L,M=_5){let B=YZ(T,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(B);let G=this.defineRule(T,L,M);return this[T]=G,G}BACKTRACK(T,L){return function(){this.isBackTrackingStack.push(1);let M=this.saveRecogState();try{return T.apply(this,L),!0}catch(B){if(G2(B))return!1;throw B}finally{this.reloadRecogState(M),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return YK(Ga(this.gastProductionsCache))}},f(we,"Y0t"),s(we,"RecognizerApi"),N(we,"RecognizerApi"),we),wKe=(De=class{initRecognizerEngine(T,L){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=P2,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ur(L,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property. 1278 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 1279 For Further details.`);if($i(T)){if(mn(T))throw Error(`A Token Vocabulary cannot be empty. 1280 Note that the first argument for the parser constructor 1281 is no longer a Token vector (since v4.0).`);if(typeof T[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. 1282 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 1283 For Further details.`)}if($i(T))this.tokensMap=jo(T,(G,Z)=>(G[Z.name]=Z,G),{});else if(Ur(T,"modes")&&Wl(Vl(Ga(T.modes)),NZ)){let G=Vl(Ga(T.modes)),Z=W9(G);this.tokensMap=jo(Z,(ee,K)=>(ee[K.name]=K,ee),{})}else if(ul(T))this.tokensMap=cs(T);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Od;let M=Ur(T,"modes")?Vl(Ga(T.modes)):Ga(T),B=Wl(M,G=>mn(G.categoryMatches));this.tokenMatcher=B?P2:Wf,Hf(Ga(this.tokensMap))}defineRule(T,L,M){if(this.selfAnalysisDone)throw Error(`Grammar rule <${T}> may not be defined after the 'performSelfAnalysis' method has been called' 1284Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let B=Ur(M,"resyncEnabled")?M.resyncEnabled:_5.resyncEnabled,G=Ur(M,"recoveryValueFunc")?M.recoveryValueFunc:_5.recoveryValueFunc,Z=this.ruleShortNameIdx<<fKe+$d;this.ruleShortNameIdx++,this.shortRuleNameToFull[Z]=T,this.fullRuleNameToShort[T]=Z;let ee;return this.outputCst===!0?ee=N(s(function(...K){try{this.ruleInvocationStateUpdate(Z,T,this.subruleIdx),L.apply(this,K);let ne=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(ne),ne}catch(ne){return this.invokeRuleCatch(ne,B,G)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry2"),"invokeRuleWithTry"):ee=N(s(function(...K){try{return this.ruleInvocationStateUpdate(Z,T,this.subruleIdx),L.apply(this,K)}catch(ne){return this.invokeRuleCatch(ne,B,G)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),"invokeRuleWithTryCst"),Object.assign(ee,{ruleName:T,originalGrammarAction:L})}invokeRuleCatch(T,L,M){let B=this.RULE_STACK.length===1,G=L&&!this.isBackTracking()&&this.recoveryEnabled;if(G2(T)){let Z=T;if(G){let ee=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(ee))if(Z.resyncedTokens=this.reSyncTo(ee),this.outputCst){let K=this.CST_STACK[this.CST_STACK.length-1];return K.recoveredNode=!0,K}else return M(T);else{if(this.outputCst){let K=this.CST_STACK[this.CST_STACK.length-1];K.recoveredNode=!0,Z.partialCstResult=K}throw Z}}else{if(B)return this.moveToTerminatedState(),M(T);throw Z}}else throw T}optionInternal(T,L){let M=this.getKeyForAutomaticLookahead(yne,L);return this.optionInternalLogic(T,L,M)}optionInternalLogic(T,L,M){let B=this.getLaFuncFromCache(M),G;if(typeof T!="function"){G=T.DEF;let Z=T.GATE;if(Z!==void 0){let ee=B;B=N(()=>Z.call(this)&&ee.call(this),"lookAheadFunc")}}else G=T;if(B.call(this)===!0)return G.call(this)}atLeastOneInternal(T,L){let M=this.getKeyForAutomaticLookahead(Z9,T);return this.atLeastOneInternalLogic(T,L,M)}atLeastOneInternalLogic(T,L,M){let B=this.getLaFuncFromCache(M),G;if(typeof L!="function"){G=L.DEF;let Z=L.GATE;if(Z!==void 0){let ee=B;B=N(()=>Z.call(this)&&ee.call(this),"lookAheadFunc")}}else G=L;if(B.call(this)===!0){let Z=this.doSingleRepetition(G);for(;B.call(this)===!0&&Z===!0;)Z=this.doSingleRepetition(G)}else throw this.raiseEarlyExitException(T,ia.REPETITION_MANDATORY,L.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[T,L],B,Z9,T,sKe)}atLeastOneSepFirstInternal(T,L){let M=this.getKeyForAutomaticLookahead(w5,T);this.atLeastOneSepFirstInternalLogic(T,L,M)}atLeastOneSepFirstInternalLogic(T,L,M){let B=L.DEF,G=L.SEP;if(this.getLaFuncFromCache(M).call(this)===!0){B.call(this);let Z=N(()=>this.tokenMatcher(this.LA(1),G),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),G)===!0;)this.CONSUME(G),B.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[T,G,Z,B,one],Z,w5,T,one)}else throw this.raiseEarlyExitException(T,ia.REPETITION_MANDATORY_WITH_SEPARATOR,L.ERR_MSG)}manyInternal(T,L){let M=this.getKeyForAutomaticLookahead(K9,T);return this.manyInternalLogic(T,L,M)}manyInternalLogic(T,L,M){let B=this.getLaFuncFromCache(M),G;if(typeof L!="function"){G=L.DEF;let ee=L.GATE;if(ee!==void 0){let K=B;B=N(()=>ee.call(this)&&K.call(this),"lookaheadFunction")}}else G=L;let Z=!0;for(;B.call(this)===!0&&Z===!0;)Z=this.doSingleRepetition(G);this.attemptInRepetitionRecovery(this.manyInternal,[T,L],B,K9,T,aKe,Z)}manySepFirstInternal(T,L){let M=this.getKeyForAutomaticLookahead(Q9,T);this.manySepFirstInternalLogic(T,L,M)}manySepFirstInternalLogic(T,L,M){let B=L.DEF,G=L.SEP;if(this.getLaFuncFromCache(M).call(this)===!0){B.call(this);let Z=N(()=>this.tokenMatcher(this.LA(1),G),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),G)===!0;)this.CONSUME(G),B.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[T,G,Z,B,sne],Z,Q9,T,sne)}}repetitionSepSecondInternal(T,L,M,B,G){for(;M();)this.CONSUME(L),B.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[T,L,M,B,G],M,w5,T,G)}doSingleRepetition(T){let L=this.getLexerPosition();return T.call(this),this.getLexerPosition()>L}orInternal(T,L){let M=this.getKeyForAutomaticLookahead(mne,L),B=$i(T)?T:T.DEF,G=this.getLaFuncFromCache(M).call(this,B);if(G!==void 0)return B[G].ALT.call(this);this.raiseNoAltException(L,T.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let T=this.LA(1),L=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:T,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new uKe(L,T))}}subruleInternal(T,L,M){let B;try{let G=M!==void 0?M.ARGS:void 0;return this.subruleIdx=L,B=T.apply(this,G),this.cstPostNonTerminal(B,M!==void 0&&M.LABEL!==void 0?M.LABEL:T.ruleName),B}catch(G){throw this.subruleInternalError(G,M,T.ruleName)}}subruleInternalError(T,L,M){throw G2(T)&&T.partialCstResult!==void 0&&(this.cstPostNonTerminal(T.partialCstResult,L!==void 0&&L.LABEL!==void 0?L.LABEL:M),delete T.partialCstResult),T}consumeInternal(T,L,M){let B;try{let G=this.LA(1);this.tokenMatcher(G,T)===!0?(this.consumeToken(),B=G):this.consumeInternalError(T,G,M)}catch(G){B=this.consumeInternalRecovery(T,L,G)}return this.cstPostTerminal(M!==void 0&&M.LABEL!==void 0?M.LABEL:T.name,B),B}consumeInternalError(T,L,M){let B,G=this.LA(0);throw M!==void 0&&M.ERR_MSG?B=M.ERR_MSG:B=this.errorMessageProvider.buildMismatchTokenMessage({expected:T,actual:L,previous:G,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new gne(B,L,G))}consumeInternalRecovery(T,L,M){if(this.recoveryEnabled&&M.name==="MismatchedTokenException"&&!this.isBackTracking()){let B=this.getFollowsForInRuleRecovery(T,L);try{return this.tryInRuleRecovery(T,B)}catch(G){throw G.name===fne?M:G}}else throw M}saveRecogState(){let T=this.errors,L=cs(this.RULE_STACK);return{errors:T,lexerState:this.exportLexerState(),RULE_STACK:L,CST_STACK:this.CST_STACK}}reloadRecogState(T){this.errors=T.errors,this.importLexerState(T.lexerState),this.RULE_STACK=T.RULE_STACK}ruleInvocationStateUpdate(T,L,M){this.RULE_OCCURRENCE_STACK.push(M),this.RULE_STACK.push(T),this.cstInvocationStateUpdate(L)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let T=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[T]}shortRuleNameToFullName(T){return this.shortRuleNameToFull[T]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Od)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},f(De,"j0t"),s(De,"RecognizerEngine"),N(De,"RecognizerEngine"),De),CKe=(Ge=class{initErrorHandler(T){this._errors=[],this.errorMessageProvider=Ur(T,"errorMessageProvider")?T.errorMessageProvider:ru.errorMessageProvider}SAVE_ERROR(T){if(G2(T))return T.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:cs(this.RULE_OCCURRENCE_STACK)},this._errors.push(T),T;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return cs(this._errors)}set errors(T){this._errors=T}raiseEarlyExitException(T,L,M){let B=this.getCurrRuleFullName(),G=this.getGAstProductions()[B],Z=q2(T,G,L,this.maxLookahead)[0],ee=[];for(let ne=1;ne<=this.maxLookahead;ne++)ee.push(this.LA(ne));let K=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:Z,actual:ee,previous:this.LA(0),customUserDescription:M,ruleName:B});throw this.SAVE_ERROR(new dKe(K,this.LA(1),this.LA(0)))}raiseNoAltException(T,L){let M=this.getCurrRuleFullName(),B=this.getGAstProductions()[M],G=z2(T,B,this.maxLookahead),Z=[];for(let ne=1;ne<=this.maxLookahead;ne++)Z.push(this.LA(ne));let ee=this.LA(0),K=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:G,actual:Z,previous:ee,customUserDescription:L,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new hKe(K,this.LA(1),ee))}},f(Ge,"X0t"),s(Ge,"ErrorHandler"),N(Ge,"ErrorHandler"),Ge),EKe=(be=class{initContentAssist(){}computeContentAssist(T,L){let M=this.gastProductionsCache[T];if(tu(M))throw Error(`Rule ->${T}<- does not exist in this grammar.`);return h8([M],L,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(T){let L=Hl(T.ruleStack),M=this.getGAstProductions()[L];return new nKe(M,T).startWalking()}},f(be,"K0t"),s(be,"ContentAssist"),N(be,"ContentAssist"),be),E5={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(E5),bne=!0,xne=Math.pow(2,$d)-1,kne=Yf({name:"RECORDING_PHASE_TOKEN",pattern:Ks.NA}),Hf([kne]),Tne=F2(kne,`This IToken indicates the Parser is in Recording Phase 1285 See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(Tne),SKe={name:`This CSTNode indicates the Parser is in Recording Phase 1286 See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},_Ke=(qe=class{initGastRecorder(T){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let T=0;T<10;T++){let L=T>0?T:"";this[`CONSUME${L}`]=function(M,B){return this.consumeInternalRecord(M,T,B)},this[`SUBRULE${L}`]=function(M,B){return this.subruleInternalRecord(M,T,B)},this[`OPTION${L}`]=function(M){return this.optionInternalRecord(M,T)},this[`OR${L}`]=function(M){return this.orInternalRecord(M,T)},this[`MANY${L}`]=function(M){this.manyInternalRecord(T,M)},this[`MANY_SEP${L}`]=function(M){this.manySepFirstInternalRecord(T,M)},this[`AT_LEAST_ONE${L}`]=function(M){this.atLeastOneInternalRecord(T,M)},this[`AT_LEAST_ONE_SEP${L}`]=function(M){this.atLeastOneSepFirstInternalRecord(T,M)}}this.consume=function(T,L,M){return this.consumeInternalRecord(L,T,M)},this.subrule=function(T,L,M){return this.subruleInternalRecord(L,T,M)},this.option=function(T,L){return this.optionInternalRecord(L,T)},this.or=function(T,L){return this.orInternalRecord(L,T)},this.many=function(T,L){this.manyInternalRecord(T,L)},this.atLeastOne=function(T,L){this.atLeastOneInternalRecord(T,L)},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 T=this;for(let L=0;L<10;L++){let M=L>0?L:"";delete T[`CONSUME${M}`],delete T[`SUBRULE${M}`],delete T[`OPTION${M}`],delete T[`OR${M}`],delete T[`MANY${M}`],delete T[`MANY_SEP${M}`],delete T[`AT_LEAST_ONE${M}`],delete T[`AT_LEAST_ONE_SEP${M}`]}delete T.consume,delete T.subrule,delete T.option,delete T.or,delete T.many,delete T.atLeastOne,delete T.ACTION,delete T.BACKTRACK,delete T.LA})}ACTION_RECORD(T){}BACKTRACK_RECORD(T,L){return()=>!0}LA_RECORD(T){return S5}topLevelRuleRecord(T,L){try{let M=new g1({definition:[],name:T});return M.name=T,this.recordingProdStack.push(M),L.call(this),this.recordingProdStack.pop(),M}
1286catch(M){if(M.KNOWN_RECORDER_ERROR!==!0)try{M.message=M.message+` 1287 This error was thrown during the "grammar recording phase" For more info see: 1288 https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(B){throw M}throw M}}optionInternalRecord(T,L){return Xf.call(this,us,T,L)}atLeastOneInternalRecord(T,L){Xf.call(this,Go,L,T)}atLeastOneSepFirstInternalRecord(T,L){Xf.call(this,Uo,L,T,bne)}manyInternalRecord(T,L){Xf.call(this,ra,L,T)}manySepFirstInternalRecord(T,L){Xf.call(this,vo,L,T,bne)}orInternalRecord(T,L){return pQ.call(this,T,L)}subruleInternalRecord(T,L,M){if(U2(L),!T||Ur(T,"ruleName")===!1){let ee=new Error(`<SUBRULE${x8(L)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(T)}> 1289 inside top level rule: <${this.recordingProdStack[0].name}>`);throw ee.KNOWN_RECORDER_ERROR=!0,ee}let B=N0(this.recordingProdStack),G=T.ruleName,Z=new Xs({idx:L,nonTerminalName:G,label:M==null?void 0:M.LABEL,referencedRule:void 0});return B.definition.push(Z),this.outputCst?SKe:E5}consumeInternalRecord(T,L,M){if(U2(L),!s8(T)){let Z=new Error(`<CONSUME${x8(L)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(T)}> 1290 inside top level rule: <${this.recordingProdStack[0].name}>`);throw Z.KNOWN_RECORDER_ERROR=!0,Z}let B=N0(this.recordingProdStack),G=new Ln({idx:L,terminalType:T,label:M==null?void 0:M.LABEL});return B.definition.push(G),Tne}},f(qe,"Q0t"),s(qe,"GastRecorder"),N(qe,"GastRecorder"),qe),s(Xf,"recordProd"),N(Xf,"recordProd"),s(pQ,"recordOrProd"),N(pQ,"recordOrProd"),s(x8,"getIdxSuffix"),N(x8,"getIdxSuffix"),s(U2,"assertMethodIdxIsValid"),N(U2,"assertMethodIdxIsValid"),AKe=(Ie=class{initPerformanceTracer(T){if(Ur(T,"traceInitPerf")){let L=T.traceInitPerf,M=typeof L=="number";this.traceInitMaxIdent=M?L:1/0,this.traceInitPerf=M?L>0:L}else this.traceInitMaxIdent=0,this.traceInitPerf=ru.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(T,L){if(this.traceInitPerf===!0){this.traceInitIndent++;let M=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${M}--> <${T}>`);let{time:B,value:G}=KA(L),Z=B>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&Z(`${M}<-- <${T}> time: ${B}ms`),this.traceInitIndent--,G}else return L()}},f(Ie,"J0t"),s(Ie,"PerformanceTracer"),N(Ie,"PerformanceTracer"),Ie),s(gQ,"applyMixins"),N(gQ,"applyMixins"),S5=F2(Od,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(S5),ru=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:m1,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),_5=Object.freeze({recoveryValueFunc:N(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(function(q){q[q.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",q[q.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",q[q.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",q[q.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",q[q.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",q[q.LEFT_RECURSION=5]="LEFT_RECURSION",q[q.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",q[q.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",q[q.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",q[q.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",q[q.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",q[q.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",q[q.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",q[q.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(xo||(xo={})),s(k8,"EMPTY_ALT"),N(k8,"EMPTY_ALT"),eL=(Be=class{static performSelfAnalysis(T){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let T;this.selfAnalysisDone=!0;let L=this.className;this.TRACE_INIT("toFastProps",()=>{ZA(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Xr(this.definedRulesNames,B=>{let G=this[B].originalGrammarAction,Z;this.TRACE_INIT(`${B} Rule`,()=>{Z=this.topLevelRuleRecord(B,G)}),this.gastProductionsCache[B]=Z})}finally{this.disableRecording()}});let M=[];if(this.TRACE_INIT("Grammar Resolving",()=>{M=rQ({rules:Ga(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(M)}),this.TRACE_INIT("Grammar Validations",()=>{if(mn(M)&&this.skipValidations===!1){let B=iQ({rules:Ga(this.gastProductionsCache),tokenTypes:Ga(this.tokensMap),errMsgProvider:O0,grammarName:L}),G=GZ({lookaheadStrategy:this.lookaheadStrategy,rules:Ga(this.gastProductionsCache),tokenTypes:Ga(this.tokensMap),grammarName:L});this.definitionErrors=this.definitionErrors.concat(B,G)}}),mn(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let B=eZ(Ga(this.gastProductionsCache));this.resyncFollows=B}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var B,G;(G=(B=this.lookaheadStrategy).initialize)===null||G===void 0||G.call(B,{rules:Ga(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Ga(this.gastProductionsCache))})),!Be.DEFER_DEFINITION_ERRORS_HANDLING&&!mn(this.definitionErrors))throw T=Dr(this.definitionErrors,B=>B.message),new Error(`Parser Definition Errors detected: 1291 ${T.join(` 1292------------------------------- 1293`)}`)})}constructor(T,L){this.definitionErrors=[],this.selfAnalysisDone=!1;let M=this;if(M.initErrorHandler(L),M.initLexerAdapter(),M.initLooksAhead(L),M.initRecognizerEngine(T,L),M.initRecoverable(L),M.initTreeBuilder(L),M.initContentAssist(),M.initGastRecorder(L),M.initPerformanceTracer(L),Ur(L,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated. 1294 Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead. 1295 See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES 1296 For further details.`);this.skipValidations=Ur(L,"skipValidations")?L.skipValidations:ru.skipValidations}},f(Be,"Ike"),s(Be,"_Parser"),N(Be,"Parser"),Be),eL.DEFER_DEFINITION_ERRORS_HANDLING=!1,gQ(eL,[gKe,yKe,xKe,kKe,wKe,TKe,CKe,EKe,_Ke,AKe]),LKe=(ke=class extends eL{constructor(T,L=ru){let M=cs(L);M.outputCst=!1,super(T,M)}},f(ke,"emt"),s(ke,"EmbeddedActionsParser"),N(ke,"EmbeddedActionsParser"),ke),s(fQ,"arrayMap2"),N(fQ,"arrayMap"),wne=fQ,s(mQ,"listCacheClear2"),N(mQ,"listCacheClear"),RKe=mQ,s(yQ,"eq2"),N(yQ,"eq"),Cne=yQ,s(vQ,"assocIndexOf2"),N(vQ,"assocIndexOf"),A5=vQ,IKe=Array.prototype,DKe=IKe.splice,s(bQ,"listCacheDelete2"),N(bQ,"listCacheDelete"),NKe=bQ,s(xQ,"listCacheGet2"),N(xQ,"listCacheGet"),MKe=xQ,s(kQ,"listCacheHas2"),N(kQ,"listCacheHas"),OKe=kQ,s(TQ,"listCacheSet2"),N(TQ,"listCacheSet"),$Ke=TQ,s(l0,"ListCache2"),N(l0,"ListCache"),l0.prototype.clear=RKe,l0.prototype.delete=NKe,l0.prototype.get=MKe,l0.prototype.has=OKe,l0.prototype.set=$Ke,L5=l0,s(wQ,"stackClear2"),N(wQ,"stackClear"),BKe=w
1296Q,s(CQ,"stackDelete2"),N(CQ,"stackDelete"),PKe=CQ,s(EQ,"stackGet2"),N(EQ,"stackGet"),FKe=EQ,s(SQ,"stackHas2"),N(SQ,"stackHas"),zKe=SQ,qKe=typeof global=="object"&&global&&global.Object===Object&&global,Ene=qKe,jKe=typeof self=="object"&&self&&self.Object===Object&&self,GKe=Ene||jKe||Function("return this")(),iu=GKe,UKe=iu.Symbol,Uc=UKe,Sne=Object.prototype,VKe=Sne.hasOwnProperty,WKe=Sne.toString,Av=Uc?Uc.toStringTag:void 0,s(_Q,"getRawTag2"),N(_Q,"getRawTag"),HKe=_Q,YKe=Object.prototype,XKe=YKe.toString,s(AQ,"objectToString2"),N(AQ,"objectToString"),KKe=AQ,ZKe="[object Null]",QKe="[object Undefined]",_ne=Uc?Uc.toStringTag:void 0,s(LQ,"baseGetTag2"),N(LQ,"baseGetTag"),y1=LQ,s(RQ,"isObject2"),N(RQ,"isObject"),tL=RQ,JKe="[object AsyncFunction]",eZe="[object Function]",tZe="[object GeneratorFunction]",rZe="[object Proxy]",s(IQ,"isFunction2"),N(IQ,"isFunction"),Ane=IQ,iZe=iu["__core-js_shared__"],rL=iZe,Lne=(function(){var q=/[^.]+$/.exec(rL&&rL.keys&&rL.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""})(),s(DQ,"isMasked2"),N(DQ,"isMasked"),nZe=DQ,aZe=Function.prototype,sZe=aZe.toString,s(NQ,"toSource2"),N(NQ,"toSource"),$0=NQ,oZe=/[\\^$.*+?()[\]{}|]/g,lZe=/^\[object .+?Constructor\]$/,cZe=Function.prototype,hZe=Object.prototype,uZe=cZe.toString,dZe=hZe.hasOwnProperty,pZe=RegExp("^"+uZe.call(dZe).replace(oZe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s(MQ,"baseIsNative2"),N(MQ,"baseIsNative"),gZe=MQ,s(OQ,"getValue2"),N(OQ,"getValue"),fZe=OQ,s($Q,"getNative2"),N($Q,"getNative"),v1=$Q,mZe=v1(iu,"Map"),Lv=mZe,yZe=v1(Object,"create"),Rv=yZe,s(BQ,"hashClear2"),N(BQ,"hashClear"),vZe=BQ,s(PQ,"hashDelete2"),N(PQ,"hashDelete"),bZe=PQ,xZe="__lodash_hash_undefined__",kZe=Object.prototype,TZe=kZe.hasOwnProperty,s(FQ,"hashGet2"),N(FQ,"hashGet"),wZe=FQ,CZe=Object.prototype,EZe=CZe.hasOwnProperty,s(zQ,"hashHas2"),N(zQ,"hashHas"),SZe=zQ,_Ze="__lodash_hash_undefined__",s(qQ,"hashSet2"),N(qQ,"hashSet"),AZe=qQ,s(c0,"Hash2"),N(c0,"Hash"),c0.prototype.clear=vZe,c0.prototype.delete=bZe,c0.prototype.get=wZe,c0.prototype.has=SZe,c0.prototype.set=AZe,Rne=c0,s(jQ,"mapCacheClear2"),N(jQ,"mapCacheClear"),LZe=jQ,s(GQ,"isKeyable2"),N(GQ,"isKeyable"),RZe=GQ,s(UQ,"getMapData2"),N(UQ,"getMapData"),R5=UQ,s(VQ,"mapCacheDelete2"),N(VQ,"mapCacheDelete"),IZe=VQ,s(WQ,"mapCacheGet2"),N(WQ,"mapCacheGet"),DZe=WQ,s(HQ,"mapCacheHas2"),N(HQ,"mapCacheHas"),NZe=HQ,s(YQ,"mapCacheSet2"),N(YQ,"mapCacheSet"),MZe=YQ,s(h0,"MapCache2"),N(h0,"MapCache"),h0.prototype.clear=LZe,h0.prototype.delete=IZe,h0.prototype.get=DZe,h0.prototype.has=NZe,h0.prototype.set=MZe,I5=h0,OZe=200,s(XQ,"stackSet2"),N(XQ,"stackSet"),$Ze=XQ,s(u0,"Stack2"),N(u0,"Stack"),u0.prototype.clear=BKe,u0.prototype.delete=PKe,u0.prototype.get=FKe,u0.prototype.has=zKe,u0.prototype.set=$Ze,D5=u0,BZe="__lodash_hash_undefined__",s(KQ,"setCacheAdd2"),N(KQ,"setCacheAdd"),PZe=KQ,s(ZQ,"setCacheHas2"),N(ZQ,"setCacheHas"),FZe=ZQ,s(V2,"SetCache2"),N(V2,"SetCache"),V2.prototype.add=V2.prototype.push=PZe,V2.prototype.has=FZe,Ine=V2,s(QQ,"arraySome2"),N(QQ,"arraySome"),zZe=QQ,s(JQ,"cacheHas2"),N(JQ,"cacheHas"),Dne=JQ,qZe=1,jZe=2,s(eJ,"equalArrays2"),N(eJ,"equalArrays"),Nne=eJ,GZe=iu.Uint8Array,Mne=GZe,s(tJ,"mapToArray2"),N(tJ,"mapToArray"),UZe=tJ,s(rJ,"setToArray2"),N(rJ,"setToArray"),iL=rJ,VZe=1,WZe=2,HZe="[object Boolean]",YZe="[object Date]",XZe="[object Error]",KZe="[object Map]",ZZe="[object Number]",QZe="[object RegExp]",JZe="[object Set]",eQe="[object String]",tQe="[object Symbol]",rQe="[object ArrayBuffer]",iQe="[object DataView]",One=Uc?Uc.prototype:void 0,nL=One?One.valueOf:void 0,s(iJ,"equalByTag2"),N(iJ,"equalByTag"),nQe=iJ,s(nJ,"arrayPush2"),N(nJ,"arrayPush"),$ne=nJ,aQe=Array.isArray,Zs=aQe,s(aJ,"baseGetAllKeys2"),N(aJ,"baseGetAllKeys"),sQe=aJ,s(sJ,"arrayFilter2"),N(sJ,"arrayFilter"),Bne=sJ,s(oJ,"stubArray2"),N(oJ,"stubArray"),oQe=oJ,lQe=Object.prototype,cQe=lQe.propertyIsEnumerable,Pne=Object.getOwnPropertySymbols,hQe=Pne?function(q){return q==null?[]:(q=Object(q),Bne(Pne(q),function(T){return cQe.call(q,T)}))}:oQe,uQe=hQe,s(lJ,"baseTimes2"),N(lJ,"baseTimes"),dQe=lJ,s(cJ,"isObjectLike2"),N(cJ,"isObjectLike"),b1=cJ,pQe="[object Arguments]",s(hJ,"baseIsArguments2"),N(hJ,"baseIsArguments"),Fne=hJ,zne=Object.prototype,gQe=zne.hasOwnProperty,fQe=zne.propertyIsEnumerable,mQe=Fne((function(){return arguments})())?Fne:function(q){return b1(q)&&gQe.call(q,"callee")&&!fQe.call(q,"callee")},N5=mQe,s(uJ,"stubFalse2"),N(uJ,"stubFalse"),yQe=uJ,qne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jne=q
1296ne&&typeof module=="object"&&module&&!module.nodeType&&module,vQe=jne&&jne.exports===qne,Gne=vQe?iu.Buffer:void 0,bQe=Gne?Gne.isBuffer:void 0,xQe=bQe||yQe,M5=xQe,kQe=9007199254740991,TQe=/^(?:0|[1-9]\d*)$/,s(dJ,"isIndex2"),N(dJ,"isIndex"),Une=dJ,wQe=9007199254740991,s(pJ,"isLength2"),N(pJ,"isLength"),aL=pJ,CQe="[object Arguments]",EQe="[object Array]",SQe="[object Boolean]",_Qe="[object Date]",AQe="[object Error]",LQe="[object Function]",RQe="[object Map]",IQe="[object Number]",DQe="[object Object]",NQe="[object RegExp]",MQe="[object Set]",OQe="[object String]",$Qe="[object WeakMap]",BQe="[object ArrayBuffer]",PQe="[object DataView]",FQe="[object Float32Array]",zQe="[object Float64Array]",qQe="[object Int8Array]",jQe="[object Int16Array]",GQe="[object Int32Array]",UQe="[object Uint8Array]",VQe="[object Uint8ClampedArray]",WQe="[object Uint16Array]",HQe="[object Uint32Array]",Rn={},Rn[FQe]=Rn[zQe]=Rn[qQe]=Rn[jQe]=Rn[GQe]=Rn[UQe]=Rn[VQe]=Rn[WQe]=Rn[HQe]=!0,Rn[CQe]=Rn[EQe]=Rn[BQe]=Rn[SQe]=Rn[PQe]=Rn[_Qe]=Rn[AQe]=Rn[LQe]=Rn[RQe]=Rn[IQe]=Rn[DQe]=Rn[NQe]=Rn[MQe]=Rn[OQe]=Rn[$Qe]=!1,s(gJ,"baseIsTypedArray2"),N(gJ,"baseIsTypedArray"),YQe=gJ,s(fJ,"baseUnary2"),N(fJ,"baseUnary"),XQe=fJ,Vne=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Iv=Vne&&typeof module=="object"&&module&&!module.nodeType&&module,KQe=Iv&&Iv.exports===Vne,sL=KQe&&Ene.process,ZQe=(function(){try{var q=Iv&&Iv.require&&Iv.require("util").types;return q||sL&&sL.binding&&sL.binding("util")}catch(T){}})(),Wne=ZQe,Hne=Wne&&Wne.isTypedArray,QQe=Hne?XQe(Hne):YQe,oL=QQe,JQe=Object.prototype,eJe=JQe.hasOwnProperty,s(mJ,"arrayLikeKeys2"),N(mJ,"arrayLikeKeys"),tJe=mJ,rJe=Object.prototype,s(yJ,"isPrototype2"),N(yJ,"isPrototype"),Yne=yJ,s(vJ,"overArg2"),N(vJ,"overArg"),iJe=vJ,nJe=iJe(Object.keys,Object),aJe=nJe,sJe=Object.prototype,oJe=sJe.hasOwnProperty,s(bJ,"baseKeys2"),N(bJ,"baseKeys"),Xne=bJ,s(xJ,"isArrayLike2"),N(xJ,"isArrayLike"),O5=xJ,s(kJ,"keys2"),N(kJ,"keys"),lL=kJ,s(TJ,"getAllKeys2"),N(TJ,"getAllKeys"),Kne=TJ,lJe=1,cJe=Object.prototype,hJe=cJe.hasOwnProperty,s(wJ,"equalObjects2"),N(wJ,"equalObjects"),uJe=wJ,dJe=v1(iu,"DataView"),cL=dJe,pJe=v1(iu,"Promise"),hL=pJe,gJe=v1(iu,"Set"),x1=gJe,fJe=v1(iu,"WeakMap"),uL=fJe,Zne="[object Map]",mJe="[object Object]",Qne="[object Promise]",Jne="[object Set]",eae="[object WeakMap]",tae="[object DataView]",yJe=$0(cL),vJe=$0(Lv),bJe=$0(hL),xJe=$0(x1),kJe=$0(uL),B0=y1,(cL&&B0(new cL(new ArrayBuffer(1)))!=tae||Lv&&B0(new Lv)!=Zne||hL&&B0(hL.resolve())!=Qne||x1&&B0(new x1)!=Jne||uL&&B0(new uL)!=eae)&&(B0=N(function(q){var T=y1(q),L=T==mJe?q.constructor:void 0,M=L?$0(L):"";if(M)switch(M){case yJe:return tae;case vJe:return Zne;case bJe:return Qne;case xJe:return Jne;case kJe:return eae}return T},"getTag")),dL=B0,TJe=1,rae="[object Arguments]",iae="[object Array]",$5="[object Object]",wJe=Object.prototype,nae=wJe.hasOwnProperty,s(CJ,"baseIsEqualDeep2"),N(CJ,"baseIsEqualDeep"),CJe=CJ,s(T8,"baseIsEqual2"),N(T8,"baseIsEqual"),aae=T8,EJe=1,SJe=2,s(EJ,"baseIsMatch2"),N(EJ,"baseIsMatch"),_Je=EJ,s(SJ,"isStrictComparable2"),N(SJ,"isStrictComparable"),sae=SJ,s(_J,"getMatchData2"),N(_J,"getMatchData"),AJe=_J,s(AJ,"matchesStrictComparable2"),N(AJ,"matchesStrictComparable"),oae=AJ,s(LJ,"baseMatches2"),N(LJ,"baseMatches"),LJe=LJ,RJe="[object Symbol]",s(RJ,"isSymbol2"),N(RJ,"isSymbol"),B5=RJ,IJe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DJe=/^\w*$/,s(IJ,"isKey2"),N(IJ,"isKey"),pL=IJ,NJe="Expected a function",s(sT,"memoize2"),N(sT,"memoize"),sT.Cache=I5,MJe=sT,OJe=500,s(DJ,"memoizeCapped2"),N(DJ,"memoizeCapped"),$Je=DJ,BJe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PJe=/\\(\\)?/g,FJe=$Je(function(q){var T=[];return q.charCodeAt(0)===46&&T.push(""),q.replace(BJe,function(L,M,B,G){T.push(B?G.replace(PJe,"$1"):M||L)}),T}),zJe=FJe,qJe=1/0,lae=Uc?Uc.prototype:void 0,cae=lae?lae.toString:void 0,s(w8,"baseToString2"),N(w8,"baseToString"),jJe=w8,s(NJ,"toString3"),N(NJ,"toString"),GJe=NJ,s(MJ,"castPath2"),N(MJ,"castPath"),hae=MJ,UJe=1/0,s(OJ,"toKey2"),N(OJ,"toKey"),P5=OJ,s($J,"baseGet2"),N($J,"baseGet"),uae=$J,s(BJ,"get2"),N(BJ,"get"),VJe=BJ,s(PJ,"baseHasIn2"),N(PJ,"baseHasIn"),WJe=PJ,s(FJ,"hasPath2"),N(FJ,"hasPath"),HJe=FJ,s(zJ,"hasIn2"),N(zJ,"hasIn"),YJe=zJ,XJe=1,KJe=2,s(qJ,"baseMatchesProperty2"),N(qJ,"baseMatchesProperty"),ZJe=qJ,s(jJ,"identity2"),N(jJ,"identity"),gL=jJ,s(GJ,"baseProperty2"),N(GJ,"baseProperty"),QJe=GJ,s(UJ,"basePropertyDeep2"),N(UJ,"basePropertyDeep"),JJe=UJ,s(VJ,"property2"),N(VJ,"property"),eet=VJ,s(WJ,"baseIteratee2"),N(WJ,"baseIteratee"),F5=WJ,s(HJ,"createBaseFor2"),N(HJ,"createBaseFor"),tet=HJ,ret=tet(),iet=ret,s(YJ,"baseForOwn2"),N(YJ,"baseForOwn"),net=YJ,s(XJ,"createBaseEach2"),N(XJ,"createBaseEach"),aet=XJ,set=aet(net),z5=set,s(KJ,"baseMap2"),N(KJ,"baseMap"),oet=KJ,s(ZJ,"map2"),N(ZJ,"map"),nu=ZJ,s(QJ,"baseFilter2"),N(QJ,"baseFilter"),cet=QJ,s(JJ,"filter2"),N(JJ,"filter"),het=JJ,s(d0,"buildATNKey"),N(d0,"buildATNKey"),Bd=1,uet=2,dae=4,pae=5,Dv=7,det=8,pet=9,get=10,fet=11,gae=12,fL=(Qe=class{constructor(T){this.target=T}isEpsilon(){return!1}},f(Qe,"sG"),s(Qe,"AbstractTransition"),N(Qe,"AbstractTransition"),Qe),mL=(Pe=class extends fL{constructor(T,L){super(T),this.tokenType=L}},f(Pe,"oG"),s(Pe,"AtomTransition"),N(Pe,"AtomTransition"),Pe),fae=(ht=class extends fL{constructor(T){super(T)}isEpsilon(){return!0}},f(ht,"q4e"),s(ht,"EpsilonTransition"),N(ht,"EpsilonTransition"),ht),yL=(Xe=class extends fL{constructor(T,L,M){super(T),this.rule=L,this.followState=M}isEpsilon(){return!0}},f(Xe,"lG"),s(Xe,"RuleTransition"),N(Xe,"RuleTransition"),Xe),s(eee,"createATN"),N(eee,"createATN"),s(tee,"createRuleStartAndStopATNStates"),N(tee,"createRuleStartAndStopATNStates"),s(C8,"atom"),N(C8,"atom"),s(ree,"repetition"),N(ree,"repetition"),s(iee,"repetitionSep"),N(iee,"repetitionSep"),s(nee,"repetitionMandatory"),N(nee,"repetitionMandatory"),s(aee,"repetitionMandatorySep"),N(aee,"repetitionMandatorySep"),s(see,"alternation"),N(see,"alternation"),s(oee,"option"),N(oee,"option"),s(Cd,"block"),N(Cd,"block"),s(E8,"plus"),N(E8,"plus"),s(S8,"star"),N(S8,"star"),s(lee,"optional"),N(lee,"optional"),s(Yh,"defineDecisionState"),N(Yh,"defineDecisionState"),s(p0,"makeAlts"),N(p0,"makeAlts"),s(cee,"getProdType2"),N(cee,"getProdType"),s(hee,"makeBlock"),N(hee,"makeBlock"),s(oT,"tokenRef"),N(oT,"tokenRef"),s(uee,"ruleRef"),N(uee,"ruleRef"),s(dee,"buildRuleHandle"),N(dee,"buildRuleHandle"),s(fa,"epsilon"),N(fa,"epsilon"),s(qa,"newState"),N(qa,"newState"),s(lT,"addTransition"),N(lT,"addTransition"),s(pee,"removeState"),N(pee,"removeState"),q5={},vL=(dt=class{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(T){let L=_8(T);
1296L in this.map||(this.map[L]=this.configs.length,this.configs.push(T))}get elements(){return this.configs}get alts(){return nu(this.configs,T=>T.alt)}get key(){let T="";for(let L in this.map)T+=L+":";return T}},f(dt,"zF"),s(dt,"ATNConfigSet"),N(dt,"ATNConfigSet"),dt),s(_8,"getATNConfigKey"),N(_8,"getATNConfigKey"),s(gee,"baseExtremum"),N(gee,"baseExtremum"),met=gee,s(fee,"baseLt"),N(fee,"baseLt"),yet=fee,s(mee,"min"),N(mee,"min"),vet=mee,mae=Uc?Uc.isConcatSpreadable:void 0,s(yee,"isFlattenable2"),N(yee,"isFlattenable"),bet=yee,s(A8,"baseFlatten2"),N(A8,"baseFlatten"),yae=A8,s(vee,"flatMap2"),N(vee,"flatMap"),xet=vee,s(bee,"baseFindIndex2"),N(bee,"baseFindIndex"),ket=bee,s(xee,"baseIsNaN2"),N(xee,"baseIsNaN"),Tet=xee,s(kee,"strictIndexOf2"),N(kee,"strictIndexOf"),wet=kee,s(Tee,"baseIndexOf2"),N(Tee,"baseIndexOf"),Cet=Tee,s(wee,"arrayIncludes2"),N(wee,"arrayIncludes"),Eet=wee,s(Cee,"arrayIncludesWith2"),N(Cee,"arrayIncludesWith"),_et=Cee,s(Eee,"noop2"),N(Eee,"noop"),Aet=Eee,Let=1/0,Ret=x1&&1/iL(new x1([,-0]))[1]==Let?function(q){return new x1(q)}:Aet,Iet=Ret,Det=200,s(See,"baseUniq2"),N(See,"baseUniq"),Net=See,s(_ee,"uniqBy"),N(_ee,"uniqBy"),Met=_ee,s(Aee,"flatten2"),N(Aee,"flatten"),Oet=Aee,s(Lee,"arrayEach2"),N(Lee,"arrayEach"),$et=Lee,s(Ree,"castFunction2"),N(Ree,"castFunction"),Bet=Ree,s(Iee,"forEach2"),N(Iee,"forEach"),bL=Iee,Pet="[object Map]",Fet="[object Set]",zet=Object.prototype,qet=zet.hasOwnProperty,s(Dee,"isEmpty2"),N(Dee,"isEmpty"),jet=Dee,s(Nee,"arrayReduce2"),N(Nee,"arrayReduce"),Get=Nee,s(Mee,"baseReduce2"),N(Mee,"baseReduce"),Uet=Mee,s(Oee,"reduce2"),N(Oee,"reduce"),vae=Oee,s($ee,"createDFACache"),N($ee,"createDFACache"),bae=(at=class{constructor(){this.predicates=[]}is(T){return T>=this.predicates.length||this.predicates[T]}set(T,L){this.predicates[T]=L}toString(){let T="",L=this.predicates.length;for(let M=0;M<L;M++)T+=this.predicates[M]===!0?"1":"0";return T}},f(at,"DSe"),s(at,"PredicateSet"),N(at,"PredicateSet"),at),xae=new bae,Vet=(kt=class extends J9{constructor(T){var L;super(),this.logging=(L=T==null?void 0:T.logging)!==null&&L!==void 0?L:(M=>console.log(M))}initialize(T){this.atn=eee(T.rules),this.dfas=Bee(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(T){let{prodOccurrence:L,rule:M,hasPredicates:B,dynamicTokensEnabled:G}=T,Z=this.dfas,ee=this.logging,K=d0(M,"Alternation",L),ne=this.atn.decisionMap[K].decision,fe=nu(u8
vendor: 6,421 bytes, line 1296
1296({maxLookahead:1,occurrence:L,prodType:"Alternation",rule:M}),Ne=>nu(Ne,Ee=>Ee[0]));if(L8(fe,!1)&&!G){let Ne=vae(fe,(Ee,it,He)=>(bL(it,wt=>{wt&&(Ee[wt.tokenTypeIdx]=He,bL(wt.categoryMatches,Pt=>{Ee[Pt]=He}))}),Ee),{});return B?function(Ee){var it;let He=this.LA(1),wt=Ne[He.tokenTypeIdx];if(Ee!==void 0&&wt!==void 0){let Pt=(it=Ee[wt])===null||it===void 0?void 0:it.GATE;if(Pt!==void 0&&Pt.call(this)===!1)return}return wt}:function(){let Ee=this.LA(1);return Ne[Ee.tokenTypeIdx]}}else return B?function(Ne){let Ee=new bae,it=Ne===void 0?0:Ne.length;for(let wt=0;wt<it;wt++){let Pt=Ne==null?void 0:Ne[wt].GATE;Ee.set(wt,Pt===void 0||Pt.call(this))}let He=cT.call(this,Z,ne,Ee,ee);return typeof He=="number"?He:void 0}:function(){let Ne=cT.call(this,Z,ne,xae,ee);return typeof Ne=="number"?Ne:void 0}}buildLookaheadForOptional(T){let{prodOccurrence:L,rule:M,prodType:B,dynamicTokensEnabled:G}=T,Z=this.dfas,ee=this.logging,K=d0(M,B,L),ne=this.atn.decisionMap[K].decision,fe=nu(u8({maxLookahead:1,occurrence:L,prodType:B,rule:M}),Ne=>nu(Ne,Ee=>Ee[0]));if(L8(fe)&&fe[0][0]&&!G){let Ne=fe[0],Ee=Oet(Ne);if(Ee.length===1&&jet(Ee[0].categoryMatches)){let it=Ee[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===it}}else{let it=vae(Ee,(He,wt)=>(wt!==void 0&&(He[wt.tokenTypeIdx]=!0,bL(wt.categoryMatches,Pt=>{He[Pt]=!0})),He),{});return function(){let He=this.LA(1);return it[He.tokenTypeIdx]===!0}}}return function(){let Ne=cT.call(this,Z,ne,xae,ee);return typeof Ne=="object"?!1:Ne===0}}},f(kt,"pvt"),s(kt,"LLStarLookaheadStrategy"),N(kt,"LLStarLookaheadStrategy"),kt),s(L8,"isLL1Sequence"),N(L8,"isLL1Sequence"),s(Bee,"initATNSimulator"),N(Bee,"initATNSimulator"),s(cT,"adaptivePredict"),N(cT,"adaptivePredict"),s(Pee,"performLookahead"),N(Pee,"performLookahead"),s(Fee,"computeLookaheadTarget"),N(Fee,"computeLookaheadTarget"),s(zee,"reportLookaheadAmbiguity"),N(zee,"reportLookaheadAmbiguity"),s(qee,"buildAmbiguityError"),N(qee,"buildAmbiguityError"),s(jee,"getProductionDslName2"),N(jee,"getProductionDslName"),s(Gee,"buildAdaptivePredictError"),N(Gee,"buildAdaptivePredictError"),s(Uee,"getExistingTargetState"),N(Uee,"getExistingTargetState"),s(Vee,"computeReachSet"),N(Vee,"computeReachSet"),s(Wee,"getReachableTarget"),N(Wee,"getReachableTarget"),s(Hee,"getUniqueAlt"),N(Hee,"getUniqueAlt"),s(R8,"newDFAState"),N(R8,"newDFAState"),s(I8,"addDFAEdge"),N(I8,"addDFAEdge"),s(D8,"addDFAState"),N(D8,"addDFAState"),s(Yee,"computeStartState"),N(Yee,"computeStartState"),s(W2,"closure"),N(W2,"closure"),s(Xee,"getEpsilonTarget"),N(Xee,"getEpsilonTarget"),s(Kee,"hasConfigInRuleStopState"),N(Kee,"hasConfigInRuleStopState"),s(Zee,"allConfigsInRuleStopStates"),N(Zee,"allConfigsInRuleStopStates"),s(Qee,"hasConflictTerminatingPrediction"),N(Qee,"hasConflictTerminatingPrediction"),s(Jee,"getConflictingAltSets"),N(Jee,"getConflictingAltSets"),s(ete,"hasConflictingAltSet"),N(ete,"hasConflictingAltSet"),s(tte,"hasStateAssociatedWithOneAlt"),N(tte,"hasStateAssociatedWithOneAlt"),ev(),kae=(Le=class{constructor(){this.nodeStack=[]}get current(){var T;return(T=this.nodeStack[this.nodeStack.length-1])!=null?T:this.rootNode}buildRootNode(T){return this.rootNode=new kL(T),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(T){let L=new G5;return L.grammarSource=T,L.root=this.rootNode,this.current.content.push(L),this.nodeStack.push(L),L}buildLeafNode(T,L){let M=new j5(T.startOffset,T.image.length,_2(T),T.tokenType,!L);return M.grammarSource=L,M.root=this.rootNode,this.current.content.push(M),M}removeNode(T){let L=T.container;if(L){let M=L.content.indexOf(T);M>=0&&L.content.splice(M,1)}}addHiddenNodes(T){let L=[];for(let G of T){let Z=new j5(G.startOffset,G.image.length,_2(G),G.tokenType,!0);Z.root=this.rootNode,L.push(Z)}let M=this.current,B=!1;if(M.content.length>0){M.content.push(...L);return}for(;M.container;){let G=M.container.content.indexOf(M);if(G>0){M.container.content.splice(G,0,...L),B=!0;break}M=M.container}B||this.rootNode.content.unshift(...L)}construct(T){let L=this.current;typeof T.$type=="string"&&!T.$infix&&(this.current.astNode=T),T.$cstNode=L;let M=this.nodeStack.pop();(M==null?void 0:M.content.length)===0&&this.removeNode(M)}},f(Le,"XSe"),s(Le,"CstNodeBuilder"),N(Le,"CstNodeBuilder"),Le),xL=(lt=class{get hidden(){return!1}get astNode(){var L,M;let T=typeof((L=this._astNode)==null?void 0:L.$type)=="string"?this._astNode:(M=this.container)==null?void 0:M.astNode;if(!T)throw new Error("This node has no associated AST element");return T}set astNode(T){this._astNode=T}get text(){return this.root.fullText.substring(this.offset,this.end)}},f(lt,"gG"),s(lt,"AbstractCstNode"),N(lt,"AbstractCstNode"),lt),j5=(ve=class extends xL{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(T,L,M,B,G=!1){super(),this._hidden=G,this._offset=T,this._tokenType=B,this._length=L,this._range=M}},f(ve,"I5"),s(ve,"LeafCstNodeImpl"),N(ve,"LeafCstNodeImpl"),ve),G5=(tt=class extends xL{constructor(){super(...arguments),this.content=new Wet(this)}get offset(){var T,L;return(L=(T=this.firstNonHiddenNode)==null?void 0:T.offset)!=null?L:0}get length(){return this.end-this.offset}get end(){var T,L;return(L=(T=this.lastNonHiddenNode)==null?void 0:T.end)!=null?L:0}get range(){let T=this.firstNonHiddenNode,L=this.lastNonHiddenNode;if(T&&L){if(this._rangeCache===void 0){let{range:M}=T,{range:B}=L;this._rangeCache={start:M.start,end:B.end.line<M.start.line?M.start:B.end}}return this._rangeCache}else return{start:Ki.create(0,0),end:Ki.create(0,0)}}get firstNonHiddenNode(){for(let T of this.content)if(!T.hidden)return T;return this.content[0]}get lastNonHiddenNode(){for(let T=this.content.length-1;T>=0;T--){let L=this.content[T];if(!L.hidden)return L}return this.content[this.content.length-1]}},f(tt,"GA"),s(tt,"CompositeCstNodeImpl"),N(tt,"CompositeCstNodeImpl"),tt),Wet=(Q=class extends Array{constructor(T){super(),this.parent=T,Object.setPrototypeOf(this,Q.prototype)}push(...T){return this.addParents(T),super.push(...T)}unshift(...T){return this.addParents(T),super.unshift(...T)}splice(T,L,...M){return this.addParents(M),super.splice(T,L,...M)}addParents(T){for(let L of T)L.container=this.parent}},f(Q,"KSe"),s(Q,"_CstNodeContainer"),N(Q,"CstNodeContainer"),Q),
vendor: 9,205 bytes, line 1296
1296kL=(xe=class extends G5{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(T){super(),this._text="",this._text=T!=null?T:""}},f(xe,"yG"),s(xe,"RootCstNodeImpl"),N(xe,"RootCstNodeImpl"),xe),U5=Symbol("Datatype"),s(hT,"isDataTypeNode"),N(hT,"isDataTypeNode"),Tae="\u200B",wae=N(q=>q.endsWith(Tae)?q:q+Tae,"withRuleSuffix"),TL=(ae=class{constructor(T){var B;this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=T.parser.Lexer;let L=this.lexer.definition,M=T.LanguageMetaData.mode==="production";(B=T.shared.profilers.LangiumProfiler)!=null&&B.isActive("parsing")?this.wrapper=new Yet(L,_r(Tt({},T.parser.ParserConfig),{skipValidations:M,errorMessageProvider:T.parser.ParserErrorMessageProvider}),T.shared.profilers.LangiumProfiler.createTask("parsing",T.LanguageMetaData.languageId)):this.wrapper=new _ae(L,_r(Tt({},T.parser.ParserConfig),{skipValidations:M,errorMessageProvider:T.parser.ParserErrorMessageProvider}))}alternatives(T,L){this.wrapper.wrapOr(T,L)}optional(T,L){this.wrapper.wrapOption(T,L)}many(T,L){this.wrapper.wrapMany(T,L)}atLeastOne(T,L){this.wrapper.wrapAtLeastOne(T,L)}getRule(T){return this.allRules.get(T)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},f(ae,"vG"),s(ae,"AbstractLangiumParser"),N(ae,"AbstractLangiumParser"),ae),Cae=(_e=class extends TL{get current(){return this.stack[this.stack.length-1]}constructor(T){super(T),this.nodeBuilder=new kae,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=T.references.Linker,this.converter=T.parser.ValueConverter,this.astReflection=T.shared.AstReflection}rule(T,L){let M=this.computeRuleType(T),B;zf(T)&&(B=T.name,this.registerPrecedenceMap(T));let G=this.wrapper.DEFINE_RULE(wae(T.name),this.startImplementation(M,B,L).bind(this));return this.allRules.set(T.name,G),Ws(T)&&T.entry&&(this.mainRule=G),G}registerPrecedenceMap(T){let L=T.name,M=new Map;for(let B=0;B<T.operators.precedences.length;B++){let G=T.operators.precedences[B];for(let Z of G.operators)M.set(Z.value,{precedence:B,rightAssoc:G.associativity==="right"})}this.operatorPrecedence.set(L,M)}computeRuleType(T){return zf(T)?t0(T):T.fragment?void 0:L2(T)?U5:t0(T)}parse(T,L={}){this.nodeBuilder.buildRootNode(T);let M=this.lexerResult=this.lexer.tokenize(T);this.wrapper.input=M.tokens;let B=L.rule?this.allRules.get(L.rule):this.mainRule;if(!B)throw new Error(L.rule?`No rule found with name '${L.rule}'`:"No main rule available.");let G=this.doParse(B);return this.nodeBuilder.addHiddenNodes(M.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,Bf(G,{deep:!0}),{value:G,lexerErrors:M.errors,lexerReport:M.report,parserErrors:this.wrapper.errors}}doParse(T){let L=this.wrapper.rule(T);if(this.stack.length>0&&(L=this.construct()),L===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return L}startImplementation(T,L,M){return B=>{let G=!this.isRecording()&&T!==void 0;if(G){let Z={$type:T};this.stack.push(Z),T===U5?Z.value="":L!==void 0&&(Z.$infixName=L)}return M(B),G?this.construct():void 0}}extractHiddenTokens(T){let L=this.lexerResult.hidden;if(!L.length)return[];let M=T.startOffset;for(let B=0;B<L.length;B++)if(L[B].startOffset>M)return L.splice(0,B);return L.splice(0,L.length)}consume(T,L,M){let B=this.wrapper.wrapConsume(T,L);if(!this.isRecording()&&this.isValidToken(B)){let G=this.extractHiddenTokens(B);this.nodeBuilder.addHiddenNodes(G);let Z=this.nodeBuilder.buildLeafNode(B,M),{assignment:ee,crossRef:K}=this.getAssignment(M),ne=this.current;if(ee){let fe=Vh(M)?B.image:this.converter.convert(B.image,Z);this.assign(ee.operator,ee.feature,fe,Z,K)}else if(hT(ne)){let fe=B.image;Vh(M)||(fe=this.converter.convert(fe,Z).toString()),ne.value+=fe}}}isValidToken(T){return!T.isInsertedInRecovery&&!isNaN(T.startOffset)&&typeof T.endOffset=="number"&&!isNaN(T.endOffset)}subrule(T,L,M,B,G){let Z;!this.isRecording()&&!M&&(Z=this.nodeBuilder.buildCompositeNode(B));let ee;try{ee=this.wrapper.wrapSubrule(T,L,G)}finally{this.isRecording()||(ee===void 0&&!M&&(ee=this.construct()),ee!==void 0&&Z&&Z.length>0&&this.performSubruleAssignment(ee,B,Z))}}performSubruleAssignment(T,L,M){let{assignment:B,crossRef:G}=this.getAssignment(L);if(B)this.assign(B.operator,B.feature,T,M,G);else if(!B){let Z=this.current;if(hT(Z))Z.value+=T.toString();else if(typeof T=="object"&&T){let ee=this.assignWithoutOverride(T,Z);this.stack.pop(),this.stack.push(ee)}}}action(T,L){if(!this.isRecording()){let M=this.current;if(L.feature&&L.operator){M=this.construct(),this.nodeBuilder.removeNode(M.$cstNode),this.nodeBuilder.buildCompositeNode(L).content.push(M.$cstNode);let B={$type:T};this.stack.push(B),this.assign(L.operator,L.feature,M,M.$cstNode)}else M.$type=T}}construct(){if(this.isRecording())return;let T=this.stack.pop();return this.nodeBuilder.construct(T),"$infixName"in T?this.constructInfix(T,this.operatorPrecedence.get(T.$infixName)):hT(T)?this.converter.convert(T.value,T.$cstNode):(J7(this.astReflection,T),T)}constructInfix(T,L){var wt;let M=T.parts;if(!Array.isArray(M)||M.length===0)return;let B=T.operators;if(!Array.isArray(B)||M.length<2)return M[0];let G=0,Z=-1;for(let Pt=0;Pt<B.length;Pt++){let Xt=B[Pt],ar=(wt=L.get(Xt))!=null?wt:{precedence:1/0,rightAssoc:!1};ar.precedence>Z?(Z=ar.precedence,G=Pt):ar.precedence===Z&&(ar.rightAssoc||(G=Pt))}let ee=B.slice(0,G),K=B.slice(G+1),ne=M.slice(0,G+1),fe=M.slice(G+1),Ne={$infixName:T.$infixName,$type:T.$type,$cstNode:T.$cstNode,parts:ne,operators:ee},Ee={$infixName:T.$infixName,$type:T.$type,$cstNode:T.$cstNode,parts:fe,operators:K},it=this.constructInfix(Ne,L),He=this.constructInfix(Ee,L);return{$type:T.$type,$cstNode:T.$cstNode,left:it,operator:B[G],right:He}}getAssignment(T){if(!this.assignmentMap.has(T)){let L=Kp(T,Uh);this.assignmentMap.set(T,{assignment:L,crossRef:L&&Qp(L.terminal)?L.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(T)}assign(T,L,M,B,G){let Z=this.current,ee;switch(G==="single"&&typeof M=="string"?ee=this.linker.buildReference(Z,L,B,M):G==="multi"&&typeof M=="string"?ee=this.linker.buildMultiReference(Z,L,B,M):ee=M,T){case"=":{Z[L]=ee;break}case"?=":{Z[L]=!0;break}case"+=":Array.isArray(Z[L])||(Z[L]=[]),Z[L].push(ee)}}assignWithoutOverride(T,L){for(let[B,G]of Object.entries(L)){let Z=T[B];Z===void 0?T[B]=G:Array.isArray(Z)&&Array.isArray(G)&&(G.push(...Z),T[B]=G)}let M=T.$cstNode;return M&&(M.astNode=void 0,T.$cstNode=void 0),T}get definitionErrors(){return this.wrapper.definitionErrors}},f(_e,"QSe"),s(_e,"LangiumParser"),N(_e,"LangiumParser"),_e),Eae=(Se=class{buildMismatchTokenMessage(T){return m1.buildMismatchTokenMessage(T)}buildNotAllInputParsedMessage(T){return m1.buildNotAllInputParsedMessage(T)}buildNoViableAltMessage(T){return m1.buildNoViableAltMessage(T)}buildEarlyExitMessage(T){return m1.buildEarlyExitMessage(T)}},f(Se,"JSe"),s(Se,"AbstractParserErrorMessageProvider"),N(Se,"AbstractParserErrorMessageProvider"),Se),wL=(Je=class extends Eae{buildMismatchTokenMessage({expected:T,actual:L}){return`Expecting ${T.LABEL?"`"+T.LABEL+"`":T.name.endsWith(":KW")?`keyword '${T.name.substring(0,T.name.length-3)}'`:`token of type '${T.name}'`} but found \`${L.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:T}){return`Expecting end of file but found \`${T.image}\`.`}},f(Je,"xG"),s(Je,"LangiumParserErrorMessageProvider"),N(Je,"LangiumParserErrorMessageProvider"),Je),Sae=(Re=class extends TL{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(T){this.resetState();let L=this.lexer.tokenize(T,{mode:"partial"});return this.tokens=L.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(T,L){let M=this.wrapper.DEFINE_RULE(wae(T.name),this.startImplementation(L).bind(this));return this.allRules.set(T.name,M),T.entry&&(this.mainRule=M),M}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(T){return L=>{let M=this.keepStackSize();try{T(L)}finally{this.resetStackSize(M)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let T=this.elementStack.length;return this.stackSize=T,T}resetStackSize(T){this.removeUnexpectedElements(),this.stackSize=T}consume(T,L,M){this.wrapper.wrapConsume(T,L),this.isRecording()||(this.lastElementStack=[...this.elementStack,M],this.nextTokenIndex=this.currIdx+1)}subrule(T,L,M,B,G){this.before(B),this.wrapper.wrapSubrule(T,L,G),this.after(B)}before(T){this.isRecording()||this.elementStack.push(T)}after(T){if(!this.isRecording()){let L=this.elementStack.lastIndexOf(T);L>=0&&this.elementStack.splice(L)}}get currIdx(){return this.wrapper.currIdx}},f(Re,"e3e"),s(Re,"LangiumCompletionParser"),N(Re,"LangiumCompletionParser"),Re),Het={recoveryEnabled:!0,nodeLocationTracking:"full",ski
1296pValidations:!0,errorMessageProvider:new wL},_ae=(et=class extends LKe{constructor(T,L){let M=L&&"maxLookahead"in L;super(T,Tt(_r(Tt({},Het),{lookaheadStrategy:M?new J9({maxLookahead:L.maxLookahead}):new Vet({logging:L.skipValidations?()=>{}:void 0})}),L))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(T,L,M){return this.RULE(T,L,M)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(T,L){return this.consume(T,L,void 0)}wrapSubrule(T,L,M){return this.subrule(T,L,{ARGS:[M]})}wrapOr(T,L){this.or(T,L)}wrapOption(T,L){this.option(T,L)}wrapMany(T,L){this.many(T,L)}wrapAtLeastOne(T,L){this.atLeastOne(T,L)}rule(T){return T.call(this,{})}},f(et,"t3e"),s(et,"ChevrotainWrapper"),N(et,"ChevrotainWrapper"),et),Yet=(ze=class extends _ae{constructor(T,L,M){super(T,L),this.task=M}rule(T){this.task.start(),this.task.startSubTask(this.ruleName(T));try{return super.rule(T)}finally{this.task.stopSubTask(this.ruleName(T)),this.task.stop()}}ruleName(T){return T.ruleName}subrule(T,L,M){this.task.startSubTask(this.ruleName(L));try{return super.subrule(T,L,M)}finally{this.task.stopSubTask(this.ruleName(L))}}},f(ze,"yvt"),s(ze,"ProfilerWrapper"),N(ze,"ProfilerWrapper"),ze),s(uT,"createParser"),N(uT,"createParser"),s(rte,"buildRules"),N(rte,"buildRules"),s(ite,"buildInfixRule"),N(ite,"buildInfixRule"),s(Ed,"buildElement"),N(Ed,"buildElement"),s(nte,"buildAction"),N(nte,"buildAction"),s(ate,"buildRuleCall"),N(ate,"buildRuleCall"),s(ste,"buildRuleCallPredicate"),N(ste,"buildRuleCallPredicate"),s(jl,"buildPredicate"),N(jl,"buildPredicate"),s(ote,"buildAlternatives"),N(ote,"buildAlternatives"),s(lte,"buildUnorderedGroup"),N(lte,"buildUnorderedGroup"),s(cte,"buildGroup"),N(cte,"buildGroup"),s(H2,"getGuardCondition"),N(H2,"getGuardCondition"),s(N8,"buildCrossReference"),N(N8,"buildCrossReference"),s(hte,"buildKeyword"),N(hte,"buildKeyword"),s(M8,"wrap"),N(M8,"wrap"),s(dT,"getRule"),N(dT,"getRule"),s(ute,"getRuleName"),N(ute,"getRuleName"),s(pT,"getToken"),N(pT,"getToken"),s(O8,"createCompletionParser"),N(O8,"createCompletionParser"),s($8,"createLangiumParser"),N($8,"createLangiumParser"),s(B8,"prepareLangiumParser"),N(B8,"prepareLangiumParser"),V5=(Ke=class{constructor(){this.diagnostics=[]}buildTokens(T,L){let M=tn(jk(T,!1)),B=this.buildTerminalTokens(M),G=this.buildKeywordTokens(M,B,L);return G.push(...B),G}flushLexingReport(T){return{diagnostics:this.popDiagnostics()}}
vendor: 5,802 bytes, lines 1296-1297
1296popDiagnostics(){let T=[...this.diagnostics];return this.diagnostics=[],T}buildTerminalTokens(T){return T.filter(cl).filter(L=>!L.fragment).map(L=>this.buildTerminalToken(L)).toArray()}buildTerminalToken(T){let L=I2(T),M=this.requiresCustomPattern(L)?this.regexPatternFunction(L):L,B={name:T.name,PATTERN:M};return typeof M=="function"&&(B.LINE_BREAKS=!0),T.hidden&&(B.GROUP=qk(L)?Ks.SKIPPED:"hidden"),B}requiresCustomPattern(T){return!!(T.flags.includes("u")||T.flags.includes("s"))}regexPatternFunction(T){let L=new RegExp(T,T.flags+"y");return(M,B)=>(L.lastIndex=B,L.exec(M))}buildKeywordTokens(T,L,M){return T.filter(Zp).flatMap(B=>Gh(B).filter(Vh)).distinct(B=>B.value).toArray().sort((B,G)=>G.value.length-B.value.length).map(B=>this.buildKeywordToken(B,L,!!(M!=null&&M.caseInsensitive)))}buildKeywordToken(T,L,M){let B=this.buildKeywordPattern(T,M),G={name:T.value,PATTERN:B,LONGER_ALT:this.findLongerAlt(T,L)};return typeof B=="function"&&(G.LINE_BREAKS=!0),G}buildKeywordPattern(T,L){return L?new RegExp(Uf(T.value),"i"):T.value}findLongerAlt(T,L){return L.reduce((M,B)=>{let G=B==null?void 0:B.PATTERN;return G!=null&&G.source&&RA("^"+G.source+"$",T.value)&&M.push(B),M},[])}},f(Ke,"qA"),s(Ke,"DefaultTokenBuilder"),N(Ke,"DefaultTokenBuilder"),Ke),CL=(We=class{convert(T,L){let M=L.grammarSource;if(Qp(M)&&(M=OA(M)),Wh(M)){let B=M.rule.ref;if(!B)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(B,T,L)}return T}runConverter(T,L,M){var B;switch(T.name.toUpperCase()){case"INT":return au.convertInt(L);case"STRING":return au.convertString(L);case"ID":return au.convertID(L)}switch((B=UA(T))==null?void 0:B.toLowerCase()){case"number":return au.convertNumber(L);case"boolean":return au.convertBoolean(L);case"bigint":return au.convertBigint(L);case"date":return au.convertDate(L);default:return L}}},f(We,"SG"),s(We,"DefaultValueConverter"),N(We,"DefaultValueConverter"),We),(function(q){function T(ne){let fe="";for(let Ne=1;Ne<ne.length-1;Ne++){let Ee=ne.charAt(Ne);if(Ee==="\\"){let it=ne.charAt(++Ne);fe+=L(it)}else fe+=Ee}return fe}f(T,"t"),s(T,"convertString"),N(T,"convertString"),q.convertString=T;function L(ne){switch(ne){case"b":return"\b";case"f":return"\f";case"n":return` 1297`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return ne}}f(L,"r"),s(L,"convertEscapeCharacter"),N(L,"convertEscapeCharacter");function M(ne){return ne.charAt(0)==="^"?ne.substring(1):ne}f(M,"i"),s(M,"convertID"),N(M,"convertID"),q.convertID=M;function B(ne){return parseInt(ne)}f(B,"n"),s(B,"convertInt"),N(B,"convertInt"),q.convertInt=B;function G(ne){return BigInt(ne)}f(G,"a"),s(G,"convertBigint"),N(G,"convertBigint"),q.convertBigint=G;function Z(ne){return new Date(ne)}f(Z,"s"),s(Z,"convertDate"),N(Z,"convertDate"),q.convertDate=Z;function ee(ne){return Number(ne)}f(ee,"l"),s(ee,"convertNumber"),N(ee,"convertNumber"),q.convertNumber=ee;function K(ne){return ne.toLowerCase()==="true"}f(K,"u"),s(K,"convertBoolean"),N(K,"convertBoolean"),q.convertBoolean=K})(au||(au={})),yn={},CT(yn,n9(MT(),1)),s(gT,"delayNextTick"),N(gT,"delayNextTick"),W5=0,Aae=10,s(fT,"startCancelableOperation"),N(fT,"startCancelableOperation"),s(P8,"setInterruptionPeriod"),N(P8,"setInterruptionPeriod"),Vc=Symbol("OperationCancelled"),s(g0,"isOperationCancelled"),N(g0,"isOperationCancelled"),s(es,"interruptAndCheck"),N(es,"interruptAndCheck"),su=(nt=class{constructor(){this.promise=new Promise((T,L)=>{this.resolve=M=>(T(M),this),this.reject=M=>(L(M),this)})}},f(nt,"mh"),s(nt,"Deferred"),N(nt,"Deferred"),nt),Lae=(Te=class{constructor(T,L,M,B){this._uri=T,this._languageId=L,this._version=M,this._content=B,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(T){if(T){let L=this.offsetAt(T.start),M=this.offsetAt(T.end);return this._content.substring(L,M)}return this._content}update(T,L){for(let M of T)if(Te.isIncremental(M)){let B=q8(M.range),G=this.offsetAt(B.start),Z=this.offsetAt(B.end);this._content=this._content.substring(0,G)+M.text+this._content.substring(Z,this._content.length);let ee=Math.max(B.start.line,0),K=Math.max(B.end.line,0),ne=this._lineOffsets,fe=F8(M.text,!1,G);if(K-ee===fe.length)for(let Ee=0,it=fe.length;Ee<it;Ee++)ne[Ee+ee+1]=fe[Ee];else fe.length<1e4?ne.splice(ee+1,K-ee,...fe):this._lineOffsets=ne=ne.slice(0,ee+1).concat(fe,ne.slice(K+1));let Ne=M.text.length-(Z-G);if(Ne!==0)for(let Ee=ee+1+fe.length,it=ne.length;Ee<it;Ee++)ne[Ee]=ne[Ee]+Ne}else if(Te.isFull(M))this._content=M.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=L}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=F8(this._content,!0)),this._lineOffsets}positionAt(T){T=Math.max(Math.min(T,this._content.length),0);let L=this.getLineOffsets(),M=0,B=L.length;if(B===0)return{line:0,character:T};for(;M<B;){let Z=Math.floor((M+B)/2);L[Z]>T?B=Z:M=Z+1}let G=M-1;return T=this.ensureBeforeEOL(T,L[G]),{line:G,character:T-L[G]}}offsetAt(T){let L=this.getLineOffsets();if(T.line>=L.length)return this._content.length;if(T.line<0)return 0;let M=L[T.line];if(T.character<=0)return M;let B=T.line+1<L.length?L[T.line+1]:this._content.length,G=Math.min(M+T.character,B);return this.ensureBeforeEOL(G,M)}ensureBeforeEOL(T,L){for(;T>L&&z8(this._content.charCodeAt(T-1));)T--;return T}get lineCount(){return this.getLineOffsets().length}static isIncremental(T){let L=T;return L!=null&&typeof L.text=="string"&&L.range!==void 0&&(L.rangeLength===void 0||typeof L.rangeLength=="number")}static isFull(T){let L=T;return L!=null&&typeof L.text=="string"&&L.range===void 0&&L.rangeLength===void 0}},f(Te,"WF"),s(Te,"_FullTextDocument"),N(Te,"FullTextDocument"),Te),(function(q){function T(B,G,Z,ee){return new L
vendor: 9,418 bytes, line 1297
1297ae(B,G,Z,ee)}f(T,"t"),s(T,"create"),N(T,"create"),q.create=T;function L(B,G,Z){if(B instanceof Lae)return B.update(G,Z),B;throw new Error("TextDocument.update: document must be created by TextDocument.create")}f(L,"r"),s(L,"update"),N(L,"update"),q.update=L;function M(B,G){let Z=B.getText(),ee=mT(G.map(dte),(fe,Ne)=>{let Ee=fe.range.start.line-Ne.range.start.line;return Ee===0?fe.range.start.character-Ne.range.start.character:Ee}),K=0,ne=[];for(let fe of ee){let Ne=B.offsetAt(fe.range.start);if(Ne<K)throw new Error("Overlapping edit");Ne>K&&ne.push(Z.substring(K,Ne)),fe.newText.length&&ne.push(fe.newText),K=B.offsetAt(fe.range.end)}return ne.push(Z.substr(K)),ne.join("")}f(M,"i"),s(M,"applyEdits"),N(M,"applyEdits"),q.applyEdits=M})(EL||(EL={})),s(mT,"mergeSort"),N(mT,"mergeSort"),s(F8,"computeLineOffsets"),N(F8,"computeLineOffsets"),s(z8,"isEOL"),N(z8,"isEOL"),s(q8,"getWellformedRange"),N(q8,"getWellformedRange"),s(dte,"getWellformedEdit"),N(dte,"getWellformedEdit"),(()=>{"use strict";var q={975:Gt=>{function xt(ct){if(typeof ct!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ct))}f(xt,"D"),s(xt,"e2"),N(xt,"e");function st(ct,ut){for(var Et,Jt="",cr=0,er=-1,Lr=0,Rr=0;Rr<=ct.length;++Rr){if(Rr<ct.length)Et=ct.charCodeAt(Rr);else{if(Et===47)break;Et=47}if(Et===47){if(!(er===Rr-1||Lr===1))if(er!==Rr-1&&Lr===2){if(Jt.length<2||cr!==2||Jt.charCodeAt(Jt.length-1)!==46||Jt.charCodeAt(Jt.length-2)!==46){if(Jt.length>2){var ci=Jt.lastIndexOf("/");if(ci!==Jt.length-1){ci===-1?(Jt="",cr=0):cr=(Jt=Jt.slice(0,ci)).length-1-Jt.lastIndexOf("/"),er=Rr,Lr=0;continue}}else if(Jt.length===2||Jt.length===1){Jt="",cr=0,er=Rr,Lr=0;continue}}ut&&(Jt.length>0?Jt+="/..":Jt="..",cr=2)}else Jt.length>0?Jt+="/"+ct.slice(er+1,Rr):Jt=ct.slice(er+1,Rr),cr=Rr-er-1;er=Rr,Lr=0}else Et===46&&Lr!==-1?++Lr:Lr=-1}return Jt}f(st,"_"),s(st,"r2"),N(st,"r");var vt={resolve:N(function(){for(var ct,ut="",Et=!1,Jt=arguments.length-1;Jt>=-1&&!Et;Jt--){var cr;Jt>=0?cr=arguments[Jt]:(ct===void 0&&(ct=process.cwd()),cr=ct),xt(cr),cr.length!==0&&(ut=cr+"/"+ut,Et=cr.charCodeAt(0)===47)}return ut=st(ut,!Et),Et?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},"resolve"),normalize:N(function(ct){if(xt(ct),ct.length===0)return".";var ut=ct.charCodeAt(0)===47,Et=ct.charCodeAt(ct.length-1)===47;return(ct=st(ct,!ut)).length!==0||ut||(ct="."),ct.length>0&&Et&&(ct+="/"),ut?"/"+ct:ct},"normalize"),isAbsolute:N(function(ct){return xt(ct),ct.length>0&&ct.charCodeAt(0)===47},"isAbsolute"),join:N(function(){if(arguments.length===0)return".";for(var ct,ut=0;ut<arguments.length;++ut){var Et=arguments[ut];xt(Et),Et.length>0&&(ct===void 0?ct=Et:ct+="/"+Et)}return ct===void 0?".":vt.normalize(ct)},"join"),relative:N(function(ct,ut){if(xt(ct),xt(ut),ct===ut||(ct=vt.resolve(ct))===(ut=vt.resolve(ut)))return"";for(var Et=1;Et<ct.length&&ct.charCodeAt(Et)===47;++Et);for(var Jt=ct.length,cr=Jt-Et,er=1;er<ut.length&&ut.charCodeAt(er)===47;++er);for(var Lr=ut.length-er,Rr=cr<Lr?cr:Lr,ci=-1,ai=0;ai<=Rr;++ai){if(ai===Rr){if(Lr>Rr){if(ut.charCodeAt(er+ai)===47)return ut.slice(er+ai+1);if(ai===0)return ut.slice(er+ai)}else cr>Rr&&(ct.charCodeAt(Et+ai)===47?ci=ai:ai===0&&(ci=0));break}var pi=ct.charCodeAt(Et+ai);if(pi!==ut.charCodeAt(er+ai))break;pi===47&&(ci=ai)}var Ii="";for(ai=Et+ci+1;ai<=Jt;++ai)ai!==Jt&&ct.charCodeAt(ai)!==47||(Ii.length===0?Ii+="..":Ii+="/..");return Ii.length>0?Ii+ut.slice(er+ci):(er+=ci,ut.charCodeAt(er)===47&&++er,ut.slice(er))},"relative"),_makeLong:N(function(ct){return ct},"_makeLong"),dirname:N(function(ct){if(xt(ct),ct.length===0)return".";for(var ut=ct.charCodeAt(0),Et=ut===47,Jt=-1,cr=!0,er=ct.length-1;er>=1;--er)if((ut=ct.charCodeAt(er))===47){if(!cr){Jt=er;break}}else cr=!1;return Jt===-1?Et?"/":".":Et&&Jt===1?"//":ct.slice(0,Jt)},"dirname"),basename:N(function(ct,ut){if(ut!==void 0&&typeof ut!="string")throw new TypeError('"ext" argument must be a string');xt(ct);var Et,Jt=0,cr=-1,er=!0;if(ut!==void 0&&ut.length>0&&ut.length<=ct.length){if(ut.length===ct.length&&ut===ct)return"";var Lr=ut.length-1,Rr=-1;for(Et=ct.length-1;Et>=0;--Et){var ci=ct.charCodeAt(Et);if(ci===47){if(!er){Jt=Et+1;break}}else Rr===-1&&(er=!1,Rr=Et+1),Lr>=0&&(ci===ut.charCodeAt(Lr)?--Lr==-1&&(cr=Et):(Lr=-1,cr=Rr))}return Jt===cr?cr=Rr:cr===-1&&(cr=ct.length),ct.slice(Jt,cr)}for(Et=ct.length-1;Et>=0;--Et)if(ct.charCodeAt(Et)===47){if(!er){Jt=Et+1;break}}else cr===-1&&(er=!1,cr=Et+1);return cr===-1?"":ct.slice(Jt,cr)},"basename"),extname:N(function(ct){xt(ct);for(var ut=-1,Et=0,Jt=-1,cr=!0,er=0,Lr=ct.length-1;Lr>=0;--Lr){var Rr=ct.charCodeAt(Lr);if(Rr!==47)Jt===-1&&(cr=!1,Jt=Lr+1),Rr===46?ut===-1?ut=Lr:er!==1&&(er=1):ut!==-1&&(er=-1);else if(!cr){Et=Lr+1;break}}return ut===-1||Jt===-1||er===0||er===1&&ut===Jt-1&&ut===Et+1?"":ct.slice(ut,Jt)},"extname"),format:N(function(ct){if(ct===null||typeof ct!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ct);return(function(ut,Et){var Jt=Et.dir||Et.root,cr=Et.base||(Et.name||"")+(Et.ext||"");return Jt?Jt===Et.root?Jt+cr:Jt+"/"+cr:cr})(0,ct)},"format"),parse:N(function(ct){xt(ct);var ut={root:"",dir:"",base:"",ext:"",name:""};if(ct.length===0)return ut;var Et,Jt=ct.charCodeAt(0),cr=Jt===47;cr?(ut.root="/",Et=1):Et=0;for(var er=-1,Lr=0,Rr=-1,ci=!0,ai=ct.length-1,pi=0;ai>=Et;--ai)if((Jt=ct.charCodeAt(ai))!==47)Rr===-1&&(ci=!1,Rr=ai+1),Jt===46?er===-1?er=ai:pi!==1&&(pi=1):er!==-1&&(pi=-1);else if(!ci){Lr=ai+1;break}return er===-1||Rr===-1||pi===0||pi===1&&er===Rr-1&&er===Lr+1?Rr!==-1&&(ut.base=ut.name=Lr===0&&cr?ct.slice(1,Rr):ct.slice(Lr,Rr)):(Lr===0&&cr?(ut.name=ct.slice(1,er),ut.base=ct.slice(1,Rr)):(ut.name=ct.slice(Lr,er),ut.base=ct.slice(Lr,Rr)),ut.ext=ct.slice(er,Rr)),Lr>0?ut.dir=ct.slice(0,Lr-1):cr&&(ut.dir="/"),ut},"parse"),sep:"/",delimiter:":",win32:null,posix:null};vt.posix=vt,Gt.exports=vt}},T={};function L(Gt){var xt=T[Gt];if(xt!==void 0)return xt.exports;var st=T[Gt]={exports:{}};return q[Gt](st,st.exports,L),st.exports}f(L,"r"),s(L,"r"),N(L,"r"),L.d=(Gt,xt)=>{for(var st in xt)L.o(xt,st)&&!L.o(Gt,st)&&Object.defineProperty(Gt,st,{enumerable:!0,get:xt[st]})},L.o=(Gt,xt)=>Object.prototype.hasOwnProperty.call(Gt,xt),L.r=Gt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Gt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Gt,"__esModule",{value:!0})};var M={};let B;L.r(M),L.d(M,{URI:N(()=>Ee,"URI"),Utils:N(()=>La,"Utils")}),typeof process=="object"?B=process.platform==="win32":typeof navigator=="object"&&(B=navigator.userAgent.indexOf("Windows")>=0);let G=/^\w[\w\d+.-]*$/,Z=/^\//,ee=/^\/\//;function K(Gt,xt){if(!Gt.scheme&&xt)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${Gt.authority}", path: "${Gt.path}", query: "${Gt.query}", fragment: "${Gt.fragment}"}`);if(Gt.scheme&&!G.test(Gt.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Gt.path){if(Gt.authority){if(!Z.test(Gt.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(ee.test(Gt.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}f(K,"u"),s(K,"a"),N(K,"a");let ne="",fe="/",Ne=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Bi=class Bi{constructor(xt,st,vt,ct,ut,Et=!1){Di(this,"scheme");Di(this,"authority");Di(this,"path");Di(this,"query");Di(this,"fragment");typeof xt=="object"?(this.scheme=xt.scheme||ne,this.authority=xt.authority||ne,this.path=xt.path||ne,this.query=xt.query||ne,this.fragment=xt.fragment||ne):(this.scheme=(function(Jt,cr){return Jt||cr?Jt:"file"})(xt,Et),this.authority=st||ne,this.path=(function(Jt,cr){switch(Jt){case"https":case"http":case"file":cr?cr[0]!==fe&&(cr=fe+cr):cr=fe}return cr})(this.scheme,vt||ne),this.query=ct||ne,this.fragment=ut||ne,K(this,Et))}static isUri(xt){return xt instanceof Bi||!!xt&&typeof xt.authority=="string"&&typeof xt.fragment=="string"&&typeof xt.path=="string"&&typeof xt.query=="string"&&typeof xt.scheme=="string"&&typeof xt.fsPath=="string"&&typeof xt.with=="function"&&typeof xt.toString=="function"}get fsPath(){return ar(this,!1)}with(xt){if(!xt)return this;let{scheme:st,authority:vt,path:ct,query:ut,fragment:Et}=xt;return st===void 0?st=this.scheme:st===null&&(st=ne),vt===void 0?vt=this.authority:vt===null&&(vt=ne),ct===void 0?ct=this.path:ct===null&&(ct=ne),ut===void 0?ut=this.query:ut===null&&(ut=ne),Et===void 0?Et=this.fragment:Et===null&&(Et=ne),st===this.scheme&&vt===this.authority&&ct===this.path&&ut===this.query&&Et===this.fragment?this:new He(st,vt,ct,ut,Et)}static parse(xt,st=!1){let vt=Ne.exec(xt);return vt?new He(vt[2]||ne,In(vt[4]||ne),In(vt[5]||ne),In(vt[7]||ne),In(vt[9]||ne),st):new He(ne,ne,ne,ne,ne)}static file(xt){let st=ne;if(B&&(xt=xt.replace(/\\/g,fe)),xt[0]===fe&&xt[1]===fe){let vt=xt.indexOf(fe,2);vt===-1?(st=xt.substring(2),xt=fe):(st=xt.substring(2,vt),xt=xt.substring(vt)||fe)}return new He("file",st,xt,ne,ne)}static from(xt){let st=new He(xt.scheme,xt.authority,xt.path,xt.query,xt.fragment);return K(st,!0),st}toString(xt=!1){return lr(this,xt)}toJSON(){return this}static revive(xt){if(xt){if(xt instanceof Bi)return xt;{let st=new He(xt);return st._formatted=xt.external,st._fsPath=xt._sep===it?xt.fsPath:null,st}}return xt}};f(Bi,"p"),s(Bi,"l"),N(Bi,"l");
vendor: 5,459 bytes, line 1297
1297let Ee=Bi,it=B?1:void 0,va=class va extends Ee{constructor(){super(...arguments);Di(this,"_formatted",null);Di(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=ar(this,!1)),this._fsPath}toString(st=!1){return st?lr(this,!0):(this._formatted||(this._formatted=lr(this,!1)),this._formatted)}toJSON(){let st={$mid:1};return this._fsPath&&(st.fsPath=this._fsPath,st._sep=it),this._formatted&&(st.external=this._formatted),this.path&&(st.path=this.path),this.scheme&&(st.scheme=this.scheme),this.authority&&(st.authority=this.authority),this.query&&(st.query=this.query),this.fragment&&(st.fragment=this.fragment),st}};f(va,"g"),s(va,"d"),N(va,"d");let He=va,wt={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 Pt(Gt,xt,st){let vt,ct=-1;for(let ut=0;ut<Gt.length;ut++){let Et=Gt.charCodeAt(ut);if(Et>=97&&Et<=122||Et>=65&&Et<=90||Et>=48&&Et<=57||Et===45||Et===46||Et===95||Et===126||xt&&Et===47||st&&Et===91||st&&Et===93||st&&Et===58)ct!==-1&&(vt+=encodeURIComponent(Gt.substring(ct,ut)),ct=-1),vt!==void 0&&(vt+=Gt.charAt(ut));else{vt===void 0&&(vt=Gt.substr(0,ut));let Jt=wt[Et];Jt!==void 0?(ct!==-1&&(vt+=encodeURIComponent(Gt.substring(ct,ut)),ct=-1),vt+=Jt):ct===-1&&(ct=ut)}}return ct!==-1&&(vt+=encodeURIComponent(Gt.substring(ct))),vt!==void 0?vt:Gt}f(Pt,"v"),s(Pt,"m"),N(Pt,"m");function Xt(Gt){let xt;for(let st=0;st<Gt.length;st++){let vt=Gt.charCodeAt(st);vt===35||vt===63?(xt===void 0&&(xt=Gt.substr(0,st)),xt+=wt[vt]):xt!==void 0&&(xt+=Gt[st])}return xt!==void 0?xt:Gt}f(Xt,"x"),s(Xt,"y"),N(Xt,"y");function ar(Gt,xt){let st;return st=Gt.authority&&Gt.path.length>1&&Gt.scheme==="file"?`//${Gt.authority}${Gt.path}`:Gt.path.charCodeAt(0)===47&&(Gt.path.charCodeAt(1)>=65&&Gt.path.charCodeAt(1)<=90||Gt.path.charCodeAt(1)>=97&&Gt.path.charCodeAt(1)<=122)&&Gt.path.charCodeAt(2)===58?xt?Gt.path.substr(1):Gt.path[1].toLowerCase()+Gt.path.substr(2):Gt.path,B&&(st=st.replace(/\//g,"\\")),st}f(ar,"b"),s(ar,"v"),N(ar,"v");function lr(Gt,xt){let st=xt?Xt:Pt,vt="",{scheme:ct,authority:ut,path:Et,query:Jt,fragment:cr}=Gt;if(ct&&(vt+=ct,vt+=":"),(ut||ct==="file")&&(vt+=fe,vt+=fe),ut){let er=ut.indexOf("@");if(er!==-1){let Lr=ut.substr(0,er);ut=ut.substr(er+1),er=Lr.lastIndexOf(":"),er===-1?vt+=st(Lr,!1,!1):(vt+=st(Lr.substr(0,er),!1,!1),vt+=":",vt+=st(Lr.substr(er+1),!1,!0)),vt+="@"}ut=ut.toLowerCase(),er=ut.lastIndexOf(":"),er===-1?vt+=st(ut,!1,!0):(vt+=st(ut.substr(0,er),!1,!0),vt+=ut.substr(er))}if(Et){if(Et.length>=3&&Et.charCodeAt(0)===47&&Et.charCodeAt(2)===58){let er=Et.charCodeAt(1);er>=65&&er<=90&&(Et=`/${String.fromCharCode(er+32)}:${Et.substr(3)}`)}else if(Et.length>=2&&Et.charCodeAt(1)===58){let er=Et.charCodeAt(0);er>=65&&er<=90&&(Et=`${String.fromCharCode(er+32)}:${Et.substr(2)}`)}vt+=st(Et,!0,!1)}return Jt&&(vt+="?",vt+=st(Jt,!1,!1)),cr&&(vt+="#",vt+=xt?cr:Pt(cr,!1,!1)),vt}f(lr,"T"),s(lr,"b"),N(lr,"b");function Br(Gt){try{return decodeURIComponent(Gt)}catch(xt){return Gt.length>3?Gt.substr(0,3)+Br(Gt.substr(3)):Gt}}f(Br,"w"),s(Br,"C"),N(Br,"C");let ii=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function In(Gt){return Gt.match(ii)?Gt.replace(ii,(xt=>Br(xt))):Gt}f(In,"k"),s(In,"w"),N(In,"w");var Gi=L(975);let Wn=Gi.posix||Gi,sa="/";var La;(function(Gt){Gt.joinPath=function(xt,...st){return xt.with({path:Wn.join(xt.path,...st)})},Gt.resolvePath=function(xt,...st){let vt=xt.path,ct=!1;vt[0]!==sa&&(vt=sa+vt,ct=!0);let ut=Wn.resolve(vt,...st);return ct&&ut[0]===sa&&!xt.authority&&(ut=ut.substring(1)),xt.with({path:ut})},Gt.dirname=function(xt){if(xt.path.length===0||xt.path===sa)return xt;let st=Wn.dirname(xt.path);return st.length===1&&st.charCodeAt(0)===46&&(st=""),xt.with({path:st})},Gt.basename=function(xt){return Wn.basename(xt.path)},Gt.extname=function(xt){return Wn.extname(xt.path)}})(La||(La={})),Xet=M})(),{URI:Vo,Utils:Nv}=Xet,(function(q){q.basename=Nv.basename,q.dirname=Nv.dirname,q.extname=Nv.extname,q.joinPath=Nv.joinPath,q.resolvePath=Nv.resolvePath;let T=typeof process=="object"&&(process==null?void 0:process.platform)==="win32";function L(Z,ee){return(Z==null?void 0:Z.toString())===(ee==null?void 0:ee.toString())}f(L,"r"),s(L,"equals"),N(L,"equals"),q.equals=L;function M(Z,ee){let K=typeof Z=="string"?Vo.parse(Z).path:Z.path,ne=typeof ee=="string"?Vo.parse(ee).path:ee.path,fe=K.split("/").filter(wt=>wt.length>0),Ne=ne.split("/").filter(wt=>wt.length>0);if(T){let wt=/^[A-Z]:$/;if(fe[0]&&wt.test(fe[0])&&(fe[0]=fe[0].toLowerCase()),Ne[0]&&wt.test(Ne[0])&&(Ne[0]=Ne[0].toLowerCase()),fe[0]!==Ne[0])return ne.substring(1)}let Ee=0;for(;Ee<fe.length&&fe[Ee]===Ne[Ee];Ee++);let it="../".repeat(fe.length-Ee),He=Ne.slice(Ee).join("/");return it+He}f(M,"i"),s(M,"relative"),N(M,"relative"),q.relative=M;function B(Z){return Vo.parse(Z.toString()).toString()}f(B,"n"),s(B,"normalize"),N(B,"normalize"),q.normalize=B;function G(Z,ee){let K=typeof Z=="string"?Z:Z.path,ne=typeof ee=="string"?ee:ee.path;return ne.charAt(ne.length-1)==="/"&&(ne=ne.slice(0,-1)),K.charAt(K.length-1)==="/"&&(K=K.slice(0,-1)),ne===K?!0:ne.length<K.length||ne.charAt(K.length)!=="/"?!1:ne.startsWith(K)}f(G,"a"),s(G,"contains"),N(G,"contains"),q.contains=G})(ko||(ko={})),SL=(bt=class{constructor(){this.root={name:"",children:new Map}}normalizeUri(T){return ko.normalize(T)}clear(){this.root.children.clear()}insert(T,L){let M=this.getNode(this.normalizeUri(T),!0);M.element=L}
1297delete(T){let L=this.getNode(this.normalizeUri(T),!1);L!=null&&L.parent&&L.parent.children.delete(L.name)}has(T){var L;return((L=this.getNode(this.normalizeUri(T),!1))==null?void 0:L.element)!==void 0}hasNode(T){return this.getNode(this.normalizeUri(T),!1)!==void 0}find(T){var L;return(L=this.getNode(this.normalizeUri(T),!1))==null?void 0:L.element}findNode(T){let L=this.normalizeUri(T),M=this.getNode(L,!1);if(M)return{name:M.name,uri:ko.joinPath(Vo.parse(L),M.name).toString(),element:M.element}}findChildren(T){let L=this.normalizeUri(T),M=this.getNode(L,!1);return M?Array.from(M.children.values()).map(B=>({name:B.name,uri:ko.joinPath(Vo.parse(L),B.name).toString(),element:B.element})):[]}all(){return this.collectValues(this.root)}findAll(T){let L=this.getNode(ko.normalize(T),!1);return L?this.collectValues(L):[]}getNode(T,L){let M=T.split("/");T.charAt(T.length-1)==="/"&&M.pop();let B=this.root;for(let G of M){let Z=B.children.get(G);if(!Z)if(L)Z={name:G,children:new Map,parent:B},B.children.set(G,Z);else return;B=Z}return B}collectValues(T){let L=[];T.element&&L.push(T.element);for(let M of T.children.values())L.push(...this.collectValues(M));return L}},f(bt,"DG"),s(bt,"UriTrie"),N(bt,"UriTrie"),bt),(function(q){q[q.Changed=0]="Changed",q[q.Parsed=1]="Parsed",q[q.IndexedContent=2]="IndexedContent",q[q.ComputedScopes=3]="ComputedScopes",q[q.Linked=4]="Linked",q[q.IndexedReferences=5]="IndexedReferences",q[q.Validated=6]="Validated"})(wi||(wi={})),Rae=(Ae=class{constructor(T){this.serviceRegistry=T.ServiceRegistry,this.textDocuments=T.workspace.TextDocuments,this.fileSystemProvider=T.workspace.FileSystemProvider}async fromUri(T,L=yn.CancellationToken.None){let M=await this.fileSystemProvider.readFile(T);return this.createAsync(T,M,L)}fromTextDocument(T,L,M){return L=L!=null?L:Vo.parse(T.uri),yn.CancellationToken.is(M)?this.createAsync(L,T,M):this.create(L,T,M)}fromString(T,L,M){return yn.CancellationToken.is(M)?this.createAsync(L,T,M):this.create(L,T,M)}fromModel(T,L){return this.create(L,{$model:T})}create(T,L,M){if(typeof L=="string"){let B=this.parse(T,L,M);return this.createLangiumDocument(B,T,void 0,L)}else if("$model"in L){let B={value:L.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(B,T)}else{let B=this.parse(T,L.getText(),M);return this.createLangiumDocument(B,T,L)}}async createAsync(T,L,M){if(typeof L=="string"){let B=await this.parseAsync(T,L,M);return this.createLangiumDocument(B,T,void 0,L)}else{let B=await this.parseAsync(T,L.getText(),M);return this.createLangiumDocument(B,T,L)}}createLangiumDocument(T,L,M,B){let G;if(M)G={parseResult:T,uri:L,state:wi.Parsed,references:[],textDocument:M};else{let Z=this.createTextDocumentGetter(L,B);G={parseResult:T,uri:L,state:wi.Parsed,references:[],get textDocument(){return Z()}}}return T.value.$document=G,G}async update(T,L){var Z,ee;let M=(Z=T.parseResult.value.$cstNode)==null?void 0:Z.root.fullText,B=(ee=this.textDocuments)==null?void 0:ee.get(T.uri.toString()),G=B?B.getText():await this.fileSystemProvider.readFile(T.uri);if(B)Object.defineProperty(T,"textDocument",{value:B});else{let K=this.createTextDocumentGetter(T.uri,G);Object.defineProperty(T,"textDocument",{get:K})}return M!==G&&(T.parseResult=await this.parseAsync(T.uri,G,L),T.parseResult.value.$document=T),T.state=wi.Parsed,T}parse(T,L,M){return this.serviceRegistry.getServices(T).parser.LangiumParser.parse(L,M)}parseAsync(T,L,M){return this.serviceRegistry.getServices(T).parser.AsyncParser.parse(L,M)}createTextDocumentGetter(T,L){let M=this.serviceRegistry,B;return()=>B!=null?B:B=EL.create(T.toString(),M.getServices(T).LanguageMetaData.languageId,0,L!=null?L:"")}},f(Ae,"m3e"),s(Ae,"DefaultLangiumDocumentFactory"),N(Ae,"DefaultLangiumDocumentFactory"),Ae),Iae=(ft=class{constructor(T){this.documentTrie=new SL,this.services=T,this.langiumDocumentFactory=T.workspace.LangiumDocumentFactory,this.documentBuilder=()=>T.workspace.DocumentBuilder}get all(){return tn(this.documentTrie.all())}addDocument(T){let L=T.uri.toString();if(this.documentTrie.has(L))throw new Error(`A document with the URI '${L}' is already present.`);this.documentTrie.insert(L,T)}getDocument(T){let L=T.toString();return this.documentTrie.find(L)}getDocuments(T){let L=T.toString();return this.documentTrie.findAll(L)}async getOrCreateDocument(T,L){let M=this.getDocument(T);return M||(M=await this.langiumDocumentFactory.fromUri(T,L),this.addDocument(M
1297),M)}createDocument(T,L,M){if(M)return this.langiumDocumentFactory.fromString(L,T,M).then(B=>(this.addDocument(B),B));{let B=this.langiumDocumentFactory.fromString(L,T);return this.addDocument(B),B}}hasDocument(T){return this.documentTrie.has(T.toString())}invalidateDocument(T){let L=T.toString(),M=this.documentTrie.find(L);return M&&this.documentBuilder().resetToState(M,wi.Changed),M}deleteDocument(T){let L=T.toString(),M=this.documentTrie.find(L);return M&&(M.state=wi.Changed,this.documentTrie.delete(L)),M}deleteDocuments(T){let L=T.toString(),M=this.documentTrie.findAll(L);for(let B of M)B.state=wi.Changed;return this.documentTrie.delete(L),M}},f(ft,"g3e"),s(ft,"DefaultLangiumDocuments"),N(ft,"DefaultLangiumDocuments"),ft),P0=Symbol("RefResolving"),Dae=(Nt=class{constructor(T){this.reflection=T.shared.AstReflection,this.langiumDocuments=()=>T.shared.workspace.LangiumDocuments,this.scopeProvider=T.references.ScopeProvider,this.astNodeLocator=T.workspace.AstNodeLocator,this.profiler=T.shared.profilers.LangiumProfiler,this.languageId=T.LanguageMetaData.languageId}async link(T,L=yn.CancellationToken.None){var M;if((M=this.profiler)!=null&&M.isActive("linking")){let B=this.profiler.createTask("linking",this.languageId);B.start();try{for(let G of zl(T.parseResult.value))await es(L),Ff(G).forEach(Z=>{let ee=`${G.$type}:${Z.property}`;B.startSubTask(ee);try{this.doLink(Z,T)}finally{B.stopSubTask(ee)}})}finally{B.stop()}}else for(let B of zl(T.parseResult.value))await es(L),Ff(B).forEach(G=>this.doLink(G,T))}doLink(T,L){var B;let M=T.reference;if("_ref"in M&&M._ref===void 0){M._ref=P0;try{let G=this.getCandidate(T);if(Yp(G))M._ref=G;else{M._nodeDescription=G;let Z=this.loadAstNode(G);M._ref=Z!=null?Z:this.createLinkingError(T,G)}}catch(G){console.error(`An error occurred while resolving reference to '${M.$refText}':`,G);let Z=(B=G.message)!=null?B:String(G);M._ref={info:T,message:`An error occurred while resolving reference to '${M.$refText}': ${Z}`}}L.references.push(M)}else if("_items"in M&&M._items===void 0){M._items=P0;try{let G=this.getCandidates(T),Z=[];if(Yp(G))M._linkingError=G;else for(let ee of G){let K=this.loadAstNode(ee);K&&Z.push({ref:K,$nodeDescription:ee})}M._items=Z}catch(G){M._linkingError={info:T,message:`An error occurred while resolving reference to '${M.$refText}': ${G}`},M._items=[]}L.references.push(M)}}unlink(T){for(let L of T.references)"_ref"in L?(L._ref=void 0,delete L._nodeDescription):"_items"in L&&(L._items=void 0,delete L._linkingError);T.references=[]}getCandidate(T){var L;return(L=this.scopeProvider.getScope(T).getElement(T.reference.$refText))!=null?L:this.createLinkingError(T)}getCandidates(T){let L=this.scopeProvider.getScope(T).getElements(T.reference.$refText).distinct(M=>`${M.documentUri}#${M.path}`).toArray();return L.length>0?L:this.createLinkingError(T)}buildReference(T,L,M,B){let G=this,Z={$refNode:M,$refText:B,_ref:void 0,get ref(){var ee;if(_a(this._ref))return this._ref;if(Q7(this._nodeDescription)){let K=G.loadAstNode(this._nodeDescription);this._ref=K!=null?K:G.createLinkingError({reference:Z,container:T,property:L},this._nodeDescription)}else if(this._ref===void 0){this._ref=P0;let K=Pf(T).$document,ne=G.getLinkedNode({reference:Z,container:T,property:L});if(ne.error&&K&&K.state<wi.ComputedScopes)return this._ref=void 0;this._ref=(ee=ne.node)!=null?ee:ne.error,this._nodeDescription=ne.descr,K==null||K.references.push(this)}else this._ref===P0&&G.throwCyclicReferenceError(T,L,B);return _a(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return Yp(this._ref)?this._ref:void 0}};return Z}buildMultiReference(T,L,M,B){let G=this,Z={$refNode:M,$refText:B,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=P0;let ee=Pf(T).$document,K=G.getCandidates({reference:Z,container:T,property:L}),ne=[];if(Yp(K))this._linkingError=K;else for(let fe of K){let Ne=G.loadAstNode(fe);Ne&&ne.push({ref:Ne,$nodeDescription:fe})}this._items=ne,ee==null||ee.references.push(this)}
vendor: 4,225 bytes, line 1297
1297else this._items===P0&&G.throwCyclicReferenceError(T,L,B);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=G.createLinkingError({reference:Z,container:T,property:L})}};return Z}throwCyclicReferenceError(T,L,M){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(T)}/${L} (symbol '${M}')`)}getLinkedNode(T){var L;try{let M=this.getCandidate(T);if(Yp(M))return{error:M};let B=this.loadAstNode(M);return B?{node:B,descr:M}:{descr:M,error:this.createLinkingError(T,M)}}catch(M){console.error(`An error occurred while resolving reference to '${T.reference.$refText}':`,M);let B=(L=M.message)!=null?L:String(M);return{error:{info:T,message:`An error occurred while resolving reference to '${T.reference.$refText}': ${B}`}}}}loadAstNode(T){if(T.node)return T.node;let L=this.langiumDocuments().getDocument(T.documentUri);if(L)return this.astNodeLocator.getAstNode(L.parseResult.value,T.path)}createLinkingError(T,L){let M=Pf(T.container).$document;M&&M.state<wi.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${M.uri}).`);let B=this.reflection.getReferenceType(T);return{info:T,message:`Could not resolve reference to ${B} named '${T.reference.$refText}'.`,targetDescription:L}}},f(Nt,"y3e"),s(Nt,"DefaultLinker"),N(Nt,"DefaultLinker"),Nt),s(j8,"isNamed"),N(j8,"isNamed"),Nae=(Wt=class{getName(T){if(j8(T))return T.name}getNameNode(T){return Gk(T.$cstNode,"name")}},f(Wt,"v3e"),s(Wt,"DefaultNameProvider"),N(Wt,"DefaultNameProvider"),Wt),Mae=(Ht=class{constructor(T){this.nameProvider=T.references.NameProvider,this.index=T.shared.workspace.IndexManager,this.nodeLocator=T.workspace.AstNodeLocator,this.documents=T.shared.workspace.LangiumDocuments,this.hasMultiReference=zl(T.Grammar).some(L=>Qp(L)&&L.isMulti)}findDeclarations(T){if(T){let L=FA(T),M=T.astNode;if(L&&M){let B=M[L.feature];if(Vs(B)||$c(B))return Lk(B);if(Array.isArray(B)){for(let G of B)if((Vs(G)||$c(G))&&G.$refNode&&G.$refNode.offset<=T.offset&&G.$refNode.end>=T.end)return Lk(G)}}if(M){let B=this.nameProvider.getNameNode(M);if(B&&(B===T||bA(T,B)))return this.getSelfNodes(M)}}return[]}getSelfNodes(T){if(this.hasMultiReference){let L=this.index.findAllReferences(T,this.nodeLocator.getAstNodePath(T)),M=this.getNodeFromReferenceDescription(L.head());if(M){for(let B of Ff(M))if($c(B.reference)&&B.reference.items.some(G=>G.ref===T))return B.reference.items.map(G=>G.ref)}return[T]}else return[T]}getNodeFromReferenceDescription(T){if(!T)return;let L=this.documents.getDocument(T.sourceUri);if(L)return this.nodeLocator.getAstNode(L.parseResult.value,T.sourcePath)}findDeclarationNodes(T){var B;let L=this.findDeclarations(T),M=[];for(let G of L){let Z=(B=this.nameProvider.getNameNode(G))!=null?B:G.$cstNode;Z&&M.push(Z)}return M}findReferences(T,L){let M=[];L.includeDeclaration&&M.push(...this.getSelfReferences(T));let B=this.index.findAllReferences(T,this.nodeLocator.getAstNodePath(T));return L.documentUri&&(B=B.filter(G=>ko.equals(G.sourceUri,L.documentUri))),M.push(...B),tn(M)}getSelfReferences(T){let L=this.getSelfNodes(T),M=[];for(let B of L){let G=this.nameProvider.getNameNode(B);if(G){let Z=Fl(B),ee=this.nodeLocator.getAstNodePath(B);M.push({sourceUri:Z.uri,sourcePath:ee,targetUri:Z.uri,targetPath:ee,segment:jf(G),local:!0})}}return M}},f(Ht,"x3e"),s(Ht,"DefaultReferences"),N(Ht,"DefaultReferences"),Ht),ou=(Ft=class{constructor(T){if(this.map=new Map,T)for(let[L,M]of T)this.add(L,M)}get size(){return OT.sum(tn(this.map.values()).map(T=>T.length))}clear(){this.map.clear()}delete(T,L){if(L===void 0)return this.map.delete(T);{let M=this.map.get(T);if(M){let B=M.indexOf(L);if(B>=0)return M.length===1?this.map.delete(T):M.splice(B,1),!0}return!1}}get(T){var L;return(L=this.map.get(T))!=null?L:[]}getStream(T){let L=this.map.get(T);return L?tn(L):t1}has(T,L){if(L===void 0)return this.map.has(T);{let M=this.map.get(T);return M?M.indexOf(L)>=0:!1}}add(T,L){return this.map.has(T)?this.map.get(T).push(L):this.map.set(T,[L]),this}addAll(T,L){return this.map.has(T)?this.map.get(T).push(...L):this.map.set(T,Array.from(L)),this}
vendor: 1,171 bytes, line 1297
1297forEach(T){this.map.forEach((L,M)=>L.forEach(B=>T(B,M,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return tn(this.map.entries()).flatMap(([T,L])=>L.map(M=>[T,M]))}keys(){return tn(this.map.keys())}values(){return tn(this.map.values()).flat()}entriesGroupedByKey(){return tn(this.map.entries())}},f(Ft,"gh"),s(Ft,"MultiMap"),N(Ft,"MultiMap"),Ft),H5=(Qt=class{get size(){return this.map.size}constructor(T){if(this.map=new Map,this.inverse=new Map,T)for(let[L,M]of T)this.set(L,M)}clear(){this.map.clear(),this.inverse.clear()}set(T,L){return this.map.set(T,L),this.inverse.set(L,T),this}get(T){return this.map.get(T)}getKey(T){return this.inverse.get(T)}delete(T){let L=this.map.get(T);return L!==void 0?(this.map.delete(T),this.inverse.delete(L),!0):!1}},f(Qt,"$5"),s(Qt,"BiMap"),N(Qt,"BiMap"),Qt),Oae=(Dt=class{constructor(T){this.nameProvider=T.references.NameProvider,this.descriptions=T.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(T,L=yn.CancellationToken.None){return this.collectExportedSymbolsForNode(T.parseResult.value,T,void 0,L)}async collectExportedSymbolsForNode(T,L,M=E2,B=yn.CancellationToken.None){let G=[];
1297this.addExportedSymbol(T,G,L);for(let Z of M(T))await es(B),this.addExportedSymbol(Z,G,L);return G}addExportedSymbol(T,L,M){let B=this.nameProvider.getName(T);B&&L.push(this.descriptions.createDescription(T,B,M))}async collectLocalSymbols(T,L=yn.CancellationToken.None){let M=T.parseResult.value,B=new ou;for(let G of Gh(M))await es(L),this.addLocalSymbol(G,T,B);return B}addLocalSymbol(T,L,M){let B=T.$container;if(B){let G=this.nameProvider.getName(T);G&&M.add(B,this.descriptions.createDescription(T,G,L))}}},f(Dt,"b3e"),s(Dt,"DefaultScopeComputation"),N(Dt,"DefaultScopeComputation"),Dt),_L=(Mt=class{constructor(T,L,M){var B,G;this.elements=T,this.outerScope=L,this.caseInsensitive=(B=M==null?void 0:M.caseInsensitive)!=null?B:!1,this.concatOuterScope=(G=M==null?void 0:M.concatOuterScope)!=null?G:!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.caseInsensitive?this.elements.find(B=>B.name.toLowerCase()===L):this.elements.find(B=>B.name===T);if(M)return M;if(this.outerScope)return this.outerScope.getElement(T)}getElements(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.caseInsensitive?this.elements.filter(B=>B.name.toLowerCase()===L):this.elements.filter(B=>B.name===T);return(this.concatOuterScope||M.isEmpty())&&this.outerScope?M.concat(this.outerScope.getElements(T)):M}},f(Mt,"UF"),s(Mt,"StreamScope"),N(Mt,"StreamScope"),Mt),Ket=($t=class{constructor(T,L,M){var B,G;this.elements=new Map,this.caseInsensitive=(B=M==null?void 0:M.caseInsensitive)!=null?B:!1,this.concatOuterScope=(G=M==null?void 0:M.concatOuterScope)!=null?G:!0;for(let Z of T){let ee=this.caseInsensitive?Z.name.toLowerCase():Z.name;this.elements.set(ee,Z)}this.outerScope=L}getElement(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.elements.get(L);if(M)return M;if(this.outerScope)return this.outerScope.getElement(T)}getElements(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.elements.get(L),B=M?[M]:[];return(this.concatOuterScope||B.length>0)&&this.outerScope?tn(B).concat(this.outerScope.getElements(T)):tn(B)}getAllElements(){let T=tn(this.elements.values());return this.outerScope&&(T=T.concat(this.outerScope.getAllElements())),T}},f($t,"vvt"),s($t,"MapScope"),N($t,"MapScope"),$t),$ae=(At=class{constructor(T,L,M){var B,G;this.elements=new ou,this.caseInsensitive=(B=M==null?void 0:M.caseInsensitive)!=null?B:!1,this.concatOuterScope=(G=M==null?void 0:M.concatOuterScope)!=null?G:!0;for(let Z of T){let ee=this.caseInsensitive?Z.name.toLowerCase():Z.name;this.elements.add(ee,Z)}this.outerScope=L}getElement(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.elements.get(L)[0];if(M)return M;if(this.outerScope)return this.outerScope.getElement(T)}getElements(T){let L=this.caseInsensitive?T.toLowerCase():T,M=this.elements.get(L);return(this.concatOuterScope||M.length===0)&&this.outerScope?tn(M).concat(this.outerScope.getElements(T)):tn(M)}getAllElements(){let T=tn(this.elements.values());return this.outerScope&&(T=T.concat(this.outerScope.getAllElements())),T}},f(At,"T3e"),s(At,"MultiMapScope"),N(At,"MultiMapScope"),At),Zet={getElement(){},getElements(){return t1},getAllElements(){return t1}},Y5=(Kt=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(T){this.toDispose.push(T)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(T=>T.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},f(Kt,"YA"),s(Kt,"DisposableCache"),N(Kt,"DisposableCache"),Kt),AL=(rr=class extends Y5{constructor(){super(...arguments),this.cache=new Map}has(T){return this.throwIfDisposed(),this.cache.has(T)}set(T,L){this.throwIfDisposed(),this.cache.set(T,L)}get(T,L){if(this.throwIfDisposed(),this.cache.has(T))return this.cache.get(T);if(L){let M=L();return this.cache.set(T,M),M}else return}delete(T){return this.throwIfDisposed(),this.cache.delete(T)}clear(){this.throwIfDisposed(),this.cache.clear()}},f(rr,"LG"),s(rr,"SimpleCache"),N(rr,"SimpleCache"),rr),X5=(ei=class extends Y5{constructor(T){super(),this.cache=new Map,this.converter=T!=null?T:(L=>L)}has(T,L){return this.throwIfDisposed(),this.cacheForContext(T).has(L)}set(T,L,M){this.throwIfDisposed(),this.cacheForContext(T).set(L,M)}get(T,L,M){this.throwIfDisposed();let B=this.cacheForContext(T);if(B.has(L))return B.get(L);if(M){let G=M();return B.set(L,G),G}else return}delete(T,L){return this.throwIfDisposed(),this.cacheForContext(T).delete(L)}clear(T){if(this.throwIfDisposed(),T){let L=this.converter(T);this.cache.delete(L)}else this.cache.clear()}cacheForContext(T){let L=this.converter(T),M=this.cache.get(L);return M||(M=new Map,this.cache.set(L,M)),M}},f(ei,"jA"),s(ei,"ContextCache"),N(ei,"ContextCache"),ei),Bae=(qt=class extends X5{constructor(T,L){super(M=>M.toString()),L?(this.toDispose.push(T.workspace.DocumentBuilder.onDocumentPhase(L,M=>{this.clear(M.uri.toString())})),this.toDispose.push(T.workspace.DocumentBuilder.onUpdate((M,B)=>{for(let G of B)this.clear(G)}))):this.toDispose.push(T.workspace.DocumentBuilder.onUpdate((M,B)=>{let G=M.concat(B);for(let Z of G)this.clear(Z)}))}},f(qt,"C3e"),s(qt,"DocumentCache"),N(qt,"DocumentCache"),qt),LL=(Qr=class extends AL{constructor(T,L){super(),L?(this.toDispose.push(T.workspace.DocumentBuilder.onBuildPhase(L,()=>{this.clear()}
1297)),this.toDispose.push(T.workspace.DocumentBuilder.onUpdate((M,B)=>{B.length>0&&this.clear()}))):this.toDispose.push(T.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},f(Qr,"MG"),s(Qr,"WorkspaceCache"),N(Qr,"WorkspaceCache"),Qr),Pae=(or=class{constructor(T){this.reflection=T.shared.AstReflection,this.nameProvider=T.references.NameProvider,this.descriptions=T.workspace.AstNodeDescriptionProvider,this.indexManager=T.shared.workspace.IndexManager,this.globalScopeCache=new LL(T.shared)}getScope(T){let L=[],M=this.reflection.getReferenceType(T),B=Fl(T.container).localSymbols;if(B){let Z=T.container;do B.has(Z)&&L.push(B.getStream(Z).filter(ee=>this.reflection.isSubtype(ee.type,M))),Z=Z.$container;while(Z)}let G=this.getGlobalScope(M,T);for(let Z=L.length-1;Z>=0;Z--)G=this.createScope(L[Z],G);return G}createScope(T,L,M){return new _L(tn(T),L,M)}createScopeForNodes(T,L,M){let B=tn(T).map(G=>{let Z=this.nameProvider.getName(G);if(Z)return this.descriptions.createDescription(G,Z)}).nonNullable();return new _L(B,L,M)}getGlobalScope(T,L){return this.globalScopeCache.get(T,()=>new $ae(this.indexManager.allElements(T)))}},f(or,"k3e"),s(or,"DefaultScopeProvider"),N(or,"DefaultScopeProvider"),or),s(G8,"isAstNodeWithComment"),N(G8,"isAstNodeWithComment"),s(U8,"isIntermediateReference"),N(U8,"isIntermediateReference"),Fae=(Ar=class{constructor(T){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=T.shared.workspace.LangiumDocuments,this.astNodeLocator=T.workspace.AstNodeLocator,this.nameProvider=T.references.NameProvider,this.commentProvider=T.documentation.CommentProvider}serialize(T,L){let M=L!=null?L:{},B=L==null?void 0:L.replacer,G=N((ee,K)=>this.replacer(ee,K,M),"defaultReplacer"),Z=B?(ee,K)=>B(ee,K,G):G;try{return this.currentDocument=Fl(T),JSON.stringify(T,Z,L==null?void 0:L.space)}finally{this.currentDocument=void 0}}deserialize(T,L){let M=L!=null?L:{},B=JSON.parse(T);return this.linkNode(B,B,M),B}replacer(T,L,{refText:M,sourceText:B,textRegions:G,comments:Z,uriConverter:ee}){var K,ne,fe,Ne;if(!this.ignoreProperties.has(T))if(Vs(L)){let Ee=L.ref,it=M?L.$refText:void 0;if(Ee){let He=Fl(Ee),wt="";this.currentDocument&&this.currentDocument!==He&&(ee?wt=ee(He.uri,Ee):wt=He.uri.toString());let Pt=this.astNodeLocator.getAstNodePath(Ee);return{$ref:`${wt}#${Pt}`,$refText:it}}else return{$error:(ne=(K=L.error)==null?void 0:K.message)!=null?ne:"Could not resolve reference",$refText:it}}else if($c(L)){let Ee=M?L.$refText:void 0,it=[];for(let He of L.items){let wt=He.ref,Pt=Fl(He.ref),Xt="";this.currentDocument&&this.currentDocument!==Pt&&(ee?Xt=ee(Pt.uri,wt):Xt=Pt.uri.toString());let ar=this.astNodeLocator.getAstNodePath(wt);it.push(`${Xt}#${ar}`)}return{$refs:it,$refText:Ee}}else if(_a(L)){let Ee;if(G&&(Ee=this.addAstNodeRegionWithAssignmentsTo(Tt({},L)),(!T||L.$document)&&(Ee!=null&&Ee.$textRegion)&&(Ee.$textRegion.documentURI=(fe=this.currentDocument)==null?void 0:fe.uri.toString())),B&&!T&&(Ee!=null||(Ee=Tt({},L)),Ee.$sourceText=(Ne=L.$cstNode)==null?void 0:Ne.text),Z){Ee!=null||(Ee=Tt({},L));let it=this.commentProvider.getComment(L);it&&(Ee.$comment=it.replace(/\r/g,""))}return Ee!=null?Ee:L}else return L}addAstNodeRegionWithAssignmentsTo(T){let L=N(M=>({offset:M.offset,end:M.end,length:M.length,range:M.range}),"createDocumentSegment");if(T.$cstNode){let M=T.$textRegion=L(T.$cstNode),B=M.assignments={};return Object.keys(T).filter(G=>!G.startsWith("$")).forEach(G=>{let Z=BA(T.$cstNode,G).map(L);Z.length!==0&&(B[G]=Z)}),T}}linkNode(T,L,M,B,G,Z){for(let[K,ne]of Object.entries(T))if(Array.isArray(ne))for(let fe=0;fe<ne.length;fe++){let Ne=ne[fe];U8(Ne)?ne[fe]=this.reviveReference(T,K,L,Ne,M):_a(Ne)&&this.linkNode(Ne,L,M,T,K,fe)}else U8(ne)?T[K]=this.reviveReference(T,K,L,ne,M):_a(ne)&&this.linkNode(ne,L,M,T,K);let ee=T;ee.$container=B,ee.$containerProperty=G,ee.$containerIndex=Z}reviveReference(T,L,M,B,G){let Z=B.$refText,ee=B.$error,K;if(B.$ref){let ne=this.getRefNode(M,B.$ref,G.uriConverter);if(_a(ne))return Z||(Z=this.nameProvider.getName(ne)),{$refText:Z!=null?Z:"",ref:ne};ee=ne}else if(B.$refs){let ne=[];for(let fe of B.$refs){let Ne=this.getRefNode(M,fe,G.uriConverter);_a(Ne)&&ne.push({ref:Ne})}if(ne.length===0)K={$refText:Z!=null?Z:"",items:ne},ee!=null||(ee="Could not resolve multi-reference");else return{$refText:Z!=null?Z:"",items:ne}}if(ee)return K!=null||(K={$refText:Z!=null?Z:"",ref:void 0}),K.error={info:{container:T,property:L,reference:K},message:ee},K}getRefNode(T,L,M){try{let B=L.indexOf("#");if(B===0)return this.astNodeLocator.getAstNode(T,L.substring(1))||"Could not resolve path: "+L;if(B<0){let K=M?M(L):Vo.parse(L),ne=this.langiumDocuments.getDocument(K);return ne?ne.parseResult.value:"Could not find document for URI: "+L}let G=M?M(L.substring(0,B)):Vo.parse(L.substring(0,B)),Z=this.langiumDocuments.getDocument(G);return Z?B===L.length-1?Z.parseResult.value:this.astNodeLocator.getAstNode(Z.parseResult.value,L.substring(B+1))||"Could not resolve URI: "+L:"Could not find document for URI: "+L}catch(B){return String(B)}}},f(Ar,"w3e"),s(Ar,"DefaultJsonSerializer"),N(Ar,"DefaultJsonSerializer"),Ar),zae=(li=class{get map(){return this.fileExtensionMap}constructor(T){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=T==null?void 0:T.workspace.TextDocuments}register(T){let L=T.LanguageMetaData;for(let M of L.fileExtensions)this.fileExtensionMap.has(M)&&console.warn(`The file extension ${M} is used by multiple languages. It is now assigned to '${L.languageId}'.`),this.fileExtensionMap.set(M,T);if(L.fileNames)for(let M of L.fileNames)this.fileNameMap.has(M)&&console.warn(`The file name ${M} is used by multiple languages. It is now assigned to '${L.languageId}'.`),this.fileNameMap.set(M,T);this.languageIdMap.set(L.languageId,T)}getServices(T){var Z,ee,K;if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let L=(ee=(Z=this.textDocuments)==null?void 0:Z.get(T))==null?void 0:ee.languageId;if(L!==void 0){let ne=this.languageIdMap.get(L);if(ne)return ne}let M=ko.extname(T),B=ko.basename(T),G=(K=this.fileNameMap.get(B))!=null?K:this.fileExtensionMap.get(M);
1297if(!G)throw L?new Error(`The service registry contains no services for the extension '${M}' for language '${L}'.`):new Error(`The service registry contains no services for the extension '${M}'.`);return G}hasServices(T){try{return this.getServices(T),!0}catch(L){return!1}}get all(){return Array.from(this.languageIdMap.values())}},f(li,"S3e"),s(li,"DefaultServiceRegistry"),N(li,"DefaultServiceRegistry"),li),s(f0,"diagnosticData"),N(f0,"diagnosticData"),(function(q){q.defaults=["fast","slow","built-in"],q.all=q.defaults})(RL||(RL={})),qae=(ki=class{constructor(T){this.entries=new ou,this.knownCategories=new Set(RL.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=T.shared.AstReflection}register(T,L=this,M="fast"){if(M==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(M);for(let[B,G]of Object.entries(T)){let Z=G;if(Array.isArray(Z))for(let ee of Z){let K={check:this.wrapValidationException(ee,L),category:M};this.addEntry(B,K)}else if(typeof Z=="function"){let ee={check:this.wrapValidationException(Z,L),category:M};this.addEntry(B,ee)}else wd(Z)}}wrapValidationException(T,L){return async(M,B,G)=>{await this.handleException(()=>T.call(L,M,B,G),"An error occurred during validation",B,M)}}async handleException(T,L,M,B){try{await T()}catch(G){if(g0(G))throw G;console.error(`${L}:`,G),G instanceof Error&&G.stack&&console.error(G.stack);let Z=G instanceof Error?G.message:String(G);M("error",`${L}: ${Z}`,{node:B})}}addEntry(T,L){if(T==="AstNode"){this.entries.add("AstNode",L);return}for(let M of this.reflection.getAllSubTypes(T))this.entries.add(M,L)}getChecks(T,L){let M=tn(this.entries.get(T)).concat(this.entries.get("AstNode"));return L&&(M=M.filter(B=>L.includes(B.category))),M.map(B=>B.check)}registerBeforeDocument(T,L=this){this.entriesBefore.push(this.wrapPreparationException(T,"An error occurred during set-up of the validation",L))}registerAfterDocument(T,L=this){this.entriesAfter.push(this.wrapPreparationException(T,"An error occurred during tear-down of the validation",L))}wrapPreparationException(T,L,M){return async(B,G,Z,ee)=>{await this.handleException(()=>T.call(M,B,G,Z,ee),L,G,B)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(T){return this.knownCategories}},f(ki,"E3e"),s(ki,"ValidationRegistry"),N(ki,"ValidationRegistry"),ki),jae=Object.freeze({validateNode:!0,validateChildren:!0}),Gae=($e=class{constructor(T){this.validationRegistry=T.validation.ValidationRegistry,this.metadata=T.LanguageMetaData,this.profiler=T.shared.profilers.LangiumProfiler,this.languageId=T.LanguageMetaData.languageId}async validateDocument(T,L={},M=yn.CancellationToken.None){let B=T.parseResult,G=[];if(await es(M),(!L.categories||L.categories.includes("built-in"))&&(this.processLexingErrors(B,G,L),L.stopAfterLexingErrors&&G.some(Z=>{var ee;return((ee=Z.data)==null?void 0:ee.code)===Xl.LexingError})||(this.processParsingErrors(B,G,L),L.stopAfterParsingErrors&&G.some(Z=>{var ee;return((ee=Z.data)==null?void 0:ee.code)===Xl.ParsingError}))||(this.processLinkingErrors(T,G,L),L.stopAfterLinkingErrors&&G.some(Z=>{var ee;return((ee=Z.data)==null?void 0:ee.code)===Xl.LinkingError}))))return G;try{G.push(...await this.validateAst(B.value,L,M))}catch(Z){if(g0(Z))throw Z;console.error("An error occurred during validation:",Z)}return await es(M),G}processLexingErrors(T,L,M){var G,Z,ee;let B=[...T.lexerErrors,...(Z=(G=T.lexerReport)==null?void 0:G.diagnostics)!=null?Z:[]];for(let K of B){let ne=(ee=K.severity)!=null?ee:"error",fe={severity:Y2(ne),range:{start:{line:K.line-1,character:K.column-1},end:{line:K.line-1,character:K.column+K.length-1}},message:K.message,data:W8(ne),source:this.getSource()};L.push(fe)}}processParsingErrors(T,L,M){for(let B of T.parserErrors){let G;if(isNaN(B.token.startOffset)){if("previousToken"in B){let Z=B.previousToken;if(isNaN(Z.startOffset)){let ee={line:0,character:0};G={start:ee,end:ee}}else{let ee={line:Z.endLine-1,character:Z.endColumn};G={start:ee,end:ee}}}}else G=_2(B.token);if(G){let Z={severity:Y2("error"),range:G,message:B.message,data:f0(Xl.ParsingError),source:this.getSource()};L.push(Z)}}}processLinkingErrors(T,L,M){var B;for(let G of T.references){let Z=G.error;if(Z){let ee={node:Z.info.container,range:(B=G.$refNode)==null?void 0:B.range,property:Z.info.property,index:Z.info.index,data:{code:Xl.LinkingError,containerType:Z.info.container.$type,property:Z.info.property,refText:Z.info.reference.$refText}};L.push(this.toDiagnostic("error",Z.message,ee))}}}async validateAst(T,L,M=yn.CancellationToken.None){let B=[],G=N((Z,ee,K)=>{B.push(this.toDiagnostic(Z,ee,K))},"acceptor");return await this.validateAstBefore(T,L,G,M),await this.validateAstNodes(T,L,G,M),await this.validateAstAfter(T,L,G,M),B}async validateAstBefore(T,L,M,B=yn.CancellationToken.None){var Z;let G=this.validationRegistry.checksBefore;for(let ee of G)await es(B),await ee(T,M,(Z=L.categories)!=null?Z:[],B)}async validateAstNodes(T,L,M,B=yn.CancellationToken.None){var G;if((G=this.profiler)!=null&&G.isActive("validating")){let Z=this.profiler.createTask("validating",this.languageId);Z.start();try{let ee=zl(T).iterator();for(let K of ee){Z.startSubTask(K.$type);let ne=this.validateSingleNodeOptions(K,L);if(ne.validateNode)try{let fe=this.validationRegistry.getChecks(K.$type,L.categories);for(let Ne of fe)await Ne(K,M,B)}finally{Z.stopSubTask(K.$type)}ne.validateChildren||ee.prune()}}finally{Z.stop()}}else{let Z=zl(T).iterator();for(let ee of Z){await es(B);let K=this.validateSingleNodeOptions(ee,L);if(K.validateNode){let ne=this.validationRegistry.getChecks(ee.$type,L.categories);for(let fe of ne)await fe(ee,M,B)}K.validateChildren||Z.prune()}}}validateSingleNodeOptions(T,L){return jae}async validateAstAfter(T,L,M,B=yn.CancellationToken.None){var Z;let G=this.validationRegistry.checksAfter;for(let ee of G)await es(B),await ee(T,M,(Z=L.categories)!=null?Z:[],B)}toDiagnostic(T,L,M){return{message:L,range:V8(M),severity:Y2(T),code:M.code,codeDescription:M.codeDescription,tags:M.tags,relatedInformation:M.relatedInformation,data:M.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},f($e,"_3e"),s($e,"DefaultDocumentValidator"),N($e,"DefaultDocumentValidator"),$e),s(V8,"getDiagnosticRange"),N(V8,"getDiagnosticRange"),s(Y2,"toDiagnosticSeverity"),N(Y2,"toDiagnosticSeverity"),s(W8,"toDiagnosticData"),N(W8,"toDiagnosticData"),(function(q){q.LexingError="lexing-error",q.LexingWarning="lexing-warning",q.LexingInfo="lexing-info",q.LexingHint="lexing-hint",q.ParsingError="parsing-error",q.LinkingError="linking-error"})(Xl||(Xl={})),Uae=(zt=class{constructor(T){this.astNodeLocator=T.workspace.AstNodeLocator,this.nameProvider=T.references.NameProvider}createDescription(T,L,M){let B=M!=null?M:Fl(T);L!=null||(L=this.nameProvider.getName(T));let G=this.astNodeLocator.getAstNodePath(T);if(!L)throw new Error(`Node at path ${G} has no name.`);let Z,ee=N(()=>{var K;return Z!=null?Z:Z=jf((K=this.nameProvider.getNameNode(T))!=null?K:T.$cstNode)},"nameSegmentGetter");return{node:T,name:L,get nameSegment(){return ee()},selectionSegment:jf(T.$cstNode),type:T.$type,documentUri:B.uri,path:G}}},f(zt,"D3e"),s(zt,"DefaultAstNodeDescriptionProvider"),N(zt,"DefaultAstNodeDescriptionProvider"),zt),Vae=(Rt=class{constructor(T){this.nodeLocator=T.workspace.AstNodeLocator}async createDescriptions(T,L=yn.CancellationToken.None){let M=[],B=T.parseResult.value;for(let G of zl(B))await es(L),Ff(G).forEach(Z=>{Z.reference.error||M.push(...this.createInfoDescriptions(Z))});return M}createInfoDescriptions(T){let L=T.reference;if(L.error||!L.$refNode)return[];let M=[];Vs(L)&&L.$nodeDescription?M=[L.$nodeDescription]:$c(L)&&(M=L.items.map(K=>K.$nodeDescription).filter(K=>K!==void 0));let B=Fl(T.container).uri,G=this.nodeLocator.getAstNodePath(T.container),Z=[],ee=jf(L.$refNode);for(let K of M)Z.push({sourceUri:B,sourcePath:G,targetUri:K.documentUri,targetPath:K.path,segment:ee,local:ko.equals(K.documentUri,B)});return Z}},f(Rt,"R3e"),s(Rt,"DefaultReferenceDescriptionProvider"),N(Rt,"DefaultReferenceDescriptionProvider"),Rt),Wae=(Or=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(T){if(T.$container){let L=this.getAstNodePath(T.$container),M=this.getPathSegment(T);return L+this.segmentSeparator+M}return""}getPathSegment({$containerProperty:T,$containerIndex:L}){if(!T)throw new Error("Missing '$containerProperty' in AST node.");return L!==void 0?T+this.indexSeparator+L:T}getAstNode(T,L){return L.split(this.segmentSeparator).reduce((M,B)=>{var Z;if(!M||B.length===0)return M;let G=B.indexOf(this.indexSeparator);if(G>0){let ee=B.substring(0,G),K=parseInt(B.substring(G+1));return(Z=M[ee])==null?void 0:Z[K]}return M[B]},T)}},f(Or,"L3e"),s(Or,"DefaultAstNodeLocator"),N(Or,"DefaultAstNodeLocator"),Or),K5={},CT(K5,n9(Jf(),1)),Hae=(ni=class{constructor(T){this._ready=new su,this.onConfigurationSectionUpdateEmitter=new K5.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=T.ServiceRegistry}get ready(){return this._ready.promise}initialize(T){var L,M;this.workspaceConfig=(M=(L=T.capabilities.workspace)==null?void 0:L.configuration)!=null?M:!1}async initialized(T){if(this.workspaceConfig){if(T.register){let L=this.serviceRegistry.all;T.register({section:L.map(M=>this.toSectionName(M.LanguageMetaData.languageId))})}if(T.fetchConfiguration){let L=this.serviceRegistry.all.map(B=>({section:this.toSectionName(B.LanguageMetaData.languageId)})),M=await T.fetchConfiguration(L);
vendor: 9,500 bytes, line 1297
1297L.forEach((B,G)=>{this.updateSectionConfiguration(B.section,M[G])})}}this._ready.resolve()}updateConfiguration(T){typeof T.settings!="object"||T.settings===null||Object.entries(T.settings).forEach(([L,M])=>{this.updateSectionConfiguration(L,M),this.onConfigurationSectionUpdateEmitter.fire({section:L,configuration:M})})}updateSectionConfiguration(T,L){this.settings[T]=L}async getConfiguration(T,L){await this.ready;let M=this.toSectionName(T);if(this.settings[M])return this.settings[M][L]}toSectionName(T){return`${T}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},f(ni,"M3e"),s(ni,"DefaultConfigurationProvider"),N(ni,"DefaultConfigurationProvider"),ni),Z5=n9(wGe(),1),(function(q){function T(L){return{dispose:N(async()=>await L(),"dispose")}}f(T,"t"),s(T,"create"),N(T,"create"),q.create=T})(k1||(k1={})),Yae=(Wr=class{constructor(T){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new ou,this.documentPhaseListeners=new ou,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=wi.Changed,this.langiumDocuments=T.workspace.LangiumDocuments,this.langiumDocumentFactory=T.workspace.LangiumDocumentFactory,this.textDocuments=T.workspace.TextDocuments,this.indexManager=T.workspace.IndexManager,this.fileSystemProvider=T.workspace.FileSystemProvider,this.workspaceManager=()=>T.workspace.WorkspaceManager,this.serviceRegistry=T.ServiceRegistry}async build(T,L={},M=yn.CancellationToken.None){var B;for(let G of T){let Z=G.uri.toString();if(G.state===wi.Validated){if(typeof L.validation=="boolean"&&L.validation)this.resetToState(G,wi.IndexedReferences);else if(typeof L.validation=="object"){let ee=this.findMissingValidationCategories(G,L);ee.length>0&&(this.buildState.set(Z,{completed:!1,options:{validation:{categories:ee}},result:(B=this.buildState.get(Z))==null?void 0:B.result}),G.state=wi.IndexedReferences)}}else this.buildState.delete(Z)}this.currentState=wi.Changed,await this.emitUpdate(T.map(G=>G.uri),[]),await this.buildDocuments(T,L,M)}async update(T,L,M=yn.CancellationToken.None){this.currentState=wi.Changed;let B=[];for(let K of L){let ne=this.langiumDocuments.deleteDocuments(K);for(let fe of ne)B.push(fe.uri),this.cleanUpDeleted(fe)}let G=(await Promise.all(T.map(K=>this.findChangedUris(K)))).flat();for(let K of G){let ne=this.langiumDocuments.getDocument(K);ne===void 0&&(ne=this.langiumDocumentFactory.fromModel({$type:"INVALID"},K),ne.state=wi.Changed,this.langiumDocuments.addDocument(ne)),this.resetToState(ne,wi.Changed)}let Z=tn(G).concat(B).map(K=>K.toString()).toSet();this.langiumDocuments.all.filter(K=>!Z.has(K.uri.toString())&&this.shouldRelink(K,Z)).forEach(K=>this.resetToState(K,wi.ComputedScopes)),await this.emitUpdate(G,B),await es(M);let ee=this.sortDocuments(this.langiumDocuments.all.filter(K=>{var ne;return K.state<wi.Validated||!((ne=this.buildState.get(K.uri.toString()))!=null&&ne.completed)||this.resultsAreIncomplete(K,this.updateBuildOptions)}).toArray());await this.buildDocuments(ee,this.updateBuildOptions,M)}resultsAreIncomplete(T,L){return this.findMissingValidationCategories(T,L).length>=1}findMissingValidationCategories(T,L){var ee,K,ne;let M=this.buildState.get(T.uri.toString()),B=this.serviceRegistry.getServices(T.uri).validation.ValidationRegistry.getAllValidationCategories(T),G=(ee=M==null?void 0:M.result)!=null&&ee.validationChecks?new Set((K=M==null?void 0:M.result)==null?void 0:K.validationChecks):M!=null&&M.completed?B:new Set,Z=L===void 0||L.validation===!0?B:typeof L.validation=="object"?(ne=L.validation.categories)!=null?ne:B:[];return tn(Z).filter(fe=>!G.has(fe)).toArray()}async findChangedUris(T){var L,M;if((M=this.langiumDocuments.getDocument(T))!=null?M:(L=this.textDocuments)!=null&&L.get(T))return[T];try{let B=await this.fileSystemProvider.stat(T);if(B.isDirectory)return await this.workspaceManager().searchFolder(T);if(this.workspaceManager().shouldIncludeEntry(B))return[T]}catch(B){}return[]}async emitUpdate(T,L){await Promise.all(this.updateListeners.map(M=>M(T,L)))}sortDocuments(T){let L=0,M=T.length-1;for(;L<M;){for(;L<T.length&&this.hasTextDocument(T[L]);)L++;for(;M>=0&&!this.hasTextDocument(T[M]);)M--;L<M&&([T[L],T[M]]=[T[M],T[L]])}return T}hasTextDocument(T){var L;return!!((L=this.textDocuments)!=null&&L.get(T.uri))}shouldRelink(T,L){return T.references.some(M=>M.error!==void 0)?!0:this.indexManager.isAffected(T,L)}onUpdate(T){return this.updateListeners.push(T),k1.create(()=>{let L=this.updateListeners.indexOf(T);L>=0&&this.updateListeners.splice(L,1)})}resetToState(T,L){switch(L){case wi.Changed:case wi.Parsed:this.indexManager.removeContent(T.uri);case wi.IndexedContent:T.localSymbols=void 0;case wi.ComputedScopes:this.serviceRegistry.getServices(T.uri).references.Linker.unlink(T);case wi.Linked:this.indexManager.removeReferences(T.uri);case wi.IndexedReferences:T.diagnostics=void 0,this.buildState.delete(T.uri.toString());case wi.Validated:}T.state>L&&(T.state=L)}cleanUpDeleted(T){this.buildState.delete(T.uri.toString()),this.indexManager.remove(T.uri),T.state=wi.Changed}async buildDocuments(T,L,M){this.prepareBuild(T,L),await this.runCancelable(T,wi.Parsed,M,Z=>this.langiumDocumentFactory.update(Z,M)),await this.runCancelable(T,wi.IndexedContent,M,Z=>this.indexManager.updateContent(Z,M)),await this.runCancelable(T,wi.ComputedScopes,M,async Z=>{let ee=this.serviceRegistry.getServices(Z.uri).references.ScopeComputation;Z.localSymbols=await ee.collectLocalSymbols(Z,M)});let B=T.filter(Z=>this.shouldLink(Z));await this.runCancelable(B,wi.Linked,M,Z=>this.serviceRegistry.getServices(Z.uri).references.Linker.link(Z,M)),await this.runCancelable(B,wi.IndexedReferences,M,Z=>this.indexManager.updateReferences(Z,M));let G=T.filter(Z=>this.shouldValidate(Z)?!0:(this.markAsCompleted(Z),!1));await this.runCancelable(G,wi.Validated,M,async Z=>{await this.validate(Z,M),this.markAsCompleted(Z)})}markAsCompleted(T){let L=this.buildState.get(T.uri.toString());L&&(L.completed=!0)}prepareBuild(T,L){for(let M of T){let B=M.uri.toString(),G=this.buildState.get(B);(!G||G.completed)&&this.buildState.set(B,{completed:!1,options:L,result:G==null?void 0:G.result})}}async runCancelable(T,L,M,B){for(let Z of T)Z.state<L&&(await es(M),await B(Z),Z.state=L,await this.notifyDocumentPhase(Z,L,M));let G=T.filter(Z=>Z.state===L);await this.notifyBuildPhase(G,L,M),this.currentState=L}onBuildPhase(T,L){return this.buildPhaseListeners.add(T,L),k1.create(()=>{this.buildPhaseListeners.delete(T,L)})}onDocumentPhase(T,L){return this.documentPhaseListeners.add(T,L),k1.create(()=>{this.documentPhaseListeners.delete(T,L)})}waitUntil(T,L,M){let B;return L&&"path"in L?B=L:M=L,M!=null||(M=yn.CancellationToken.None),B?this.awaitDocumentState(T,B,M):this.awaitBuilderState(T,M)}awaitDocumentState(T,L,M){let B=this.langiumDocuments.getDocument(L);if(B){if(B.state>=T)return Promise.resolve(L);if(M.isCancellationRequested)return Promise.reject(Vc);if(this.currentState>=T&&T>B.state)return Promise.reject(new Z5.ResponseError(Z5.LSPErrorCodes.RequestFailed,`Document state of ${L.toString()} is ${wi[B.state]}, requiring ${wi[T]}, but workspace state is already ${wi[this.currentState]}. Returning undefined.`))}else return Promise.reject(new Z5.ResponseError(Z5.LSPErrorCodes.ServerCancelled,`No document found for URI: ${L.toString()}`));return new Promise((G,Z)=>{let ee=this.onDocumentPhase(T,ne=>{ko.equals(ne.uri,L)&&(ee.dispose(),K.dispose(),G(ne.uri))}),K=M.onCancellationRequested(()=>{ee.dispose(),K.dispose(),Z(Vc)})})}awaitBuilderState(T,L){return this.currentState>=T?Promise.resolve():L.isCancellationRequested?Promise.reject(Vc):new Promise((M,B)=>{let G=this.onBuildPhase(T,()=>{G.dispose(),Z.dispose(),M()}),Z=L.onCancellationRequested(()=>{G.dispose(),Z.dispose(),B(Vc)})})}async notifyDocumentPhase(T,L,M){let B=this.documentPhaseListeners.get(L).slice();for(let G of B)try{await es(M),await G(T,M)}catch(Z){if(!g0(Z))throw Z}}async notifyBuildPhase(T,L,M){if(T.length===0)return;let B=this.buildPhaseListeners.get(L).slice();for(let G of B)await es(M),await G(T,M)}shouldLink(T){var L;return(L=this.getBuildOptions(T).eagerLinking)!=null?L:!0}shouldValidate(T){return!!this.getBuildOptions(T).validation}async validate(T,L){var K;let M=this.serviceRegistry.getServices(T.uri).validation.DocumentValidator,B=this.getBuildOptions(T),G=typeof B.validation=="object"?Tt({},B.validation):{};G.categories=this.findMissingValidationCategories(T,B);let Z=await M.validateDocument(T,G,L);T.diagnostics?T.diagnostics.push(...Z):T.diagnostics=Z;let ee=this.buildState.get(T.uri.toString());ee&&((K=ee.result)!=null||(ee.result={}),ee.result.validationChecks?ee.result.validationChecks=tn(ee.result.validationChecks).concat(G.categories).distinct().toArray():ee.result.validationChecks=[...G.categories])}getBuildOptions(T){var L,M;return(M=(L=this.buildState.get(T.uri.toString()))==null?void 0:L.options)!=null?M:{}}},f(Wr,"N3e"),s(Wr,"DefaultDocumentBuilder"),N(Wr,"DefaultDocumentBuilder"),Wr),Xae=(Ti=class{constructor(T){this.symbolIndex=new Map,this.symbolByTypeIndex=new X5,this.referenceIndex=new Map,this.documents=T.workspace.LangiumDocuments,this.serviceRegistry=T.ServiceRegistry,this.astReflection=T.AstReflection}findAllReferences(T,L){let M=Fl(T).uri,B=[];return this.referenceIndex.forEach(G=>{G.forEach(Z=>{ko.equals(Z.targetUri,M)&&Z.targetPath===L&&B.push(Z)})}),tn(B)}allElements(T,L){let M=tn(this.symbolIndex.keys());
1297return L&&(M=M.filter(B=>!L||L.has(B))),M.map(B=>this.getFileDescriptions(B,T)).flat()}getFileDescriptions(T,L){var M;return L?this.symbolByTypeIndex.get(T,L,()=>{var B;return((B=this.symbolIndex.get(T))!=null?B:[]).filter(G=>this.astReflection.isSubtype(G.type,L))}):(M=this.symbolIndex.get(T))!=null?M:[]}remove(T){this.removeContent(T),this.removeReferences(T)}removeContent(T){let L=T.toString();this.symbolIndex.delete(L),this.symbolByTypeIndex.clear(L)}removeReferences(T){let L=T.toString();this.referenceIndex.delete(L)}async updateContent(T,L=yn.CancellationToken.None){let M=await this.serviceRegistry.getServices(T.uri).references.ScopeComputation.collectExportedSymbols(T,L),B=T.uri.toString();this.symbolIndex.set(B,M),this.symbolByTypeIndex.clear(B)}async updateReferences(T,L=yn.CancellationToken.None){let M=await this.serviceRegistry.getServices(T.uri).workspace.ReferenceDescriptionProvider.createDescriptions(T,L);this.referenceIndex.set(T.uri.toString(),M)}isAffected(T,L){let M=this.referenceIndex.get(T.uri.toString());return M?M.some(B=>!B.local&&L.has(B.targetUri.toString())):!1}},f(Ti,"I3e"),s(Ti,"DefaultIndexManager"),N(Ti,"DefaultIndexManager"),Ti),Kae=(_i=class{constructor(T){this.initialBuildOptions={},this._ready=new su,this.serviceRegistry=T.ServiceRegistry,this.langiumDocuments=T.workspace.LangiumDocuments,this.documentBuilder=T.workspace.DocumentBuilder,this.fileSystemProvider=T.workspace.FileSystemProvider,this.mutex=T.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(T){var L;this.folders=(L=T.workspaceFolders)!=null?L:void 0}initialized(T){return this.mutex.write(L=>{var M;
vendor: 2,186 bytes, line 1297
1297return this.initializeWorkspace((M=this.folders)!=null?M:[],L)})}async initializeWorkspace(T,L=yn.CancellationToken.None){let M=await this.performStartup(T);await es(L),await this.documentBuilder.build(M,this.initialBuildOptions,L)}async performStartup(T){let L=[],M=N(Z=>{L.push(Z),this.langiumDocuments.hasDocument(Z.uri)||this.langiumDocuments.addDocument(Z)},"collector");await this.loadAdditionalDocuments(T,M);let B=[];await Promise.all(T.map(Z=>this.getRootFolder(Z)).map(async Z=>this.traverseFolder(Z,B)));let G=tn(B).distinct(Z=>Z.toString()).filter(Z=>!this.langiumDocuments.hasDocument(Z));return await this.loadWorkspaceDocuments(G,M),this._ready.resolve(),L}async loadWorkspaceDocuments(T,L){await Promise.all(T.map(async M=>{let B=await this.langiumDocuments.getOrCreateDocument(M);L(B)}))}loadAdditionalDocuments(T,L){return Promise.resolve()}getRootFolder(T){return Vo.parse(T.uri)}async traverseFolder(T,L){try{let M=await this.fileSystemProvider.readDirectory(T);await Promise.all(M.map(async B=>{this.shouldIncludeEntry(B)&&(B.isDirectory?await this.traverseFolder(B.uri,L):B.isFile&&L.push(B.uri))}))}catch(M){console.error("Failure to read directory content of "+T.toString(!0),M)}}async searchFolder(T){let L=[];return await this.traverseFolder(T,L),L}shouldIncludeEntry(T){let L=ko.basename(T.uri);return L.startsWith(".")?!1:T.isDirectory?L!=="node_modules"&&L!=="out":T.isFile?this.serviceRegistry.hasServices(T.uri):!1}},f(_i,"O3e"),s(_i,"DefaultWorkspaceManager"),N(_i,"DefaultWorkspaceManager"),_i),Zae=(Ai=class{buildUnexpectedCharactersMessage(T,L,M,B,G){return H9.buildUnexpectedCharactersMessage(T,L,M,B,G)}buildUnableToPopLexerModeMessage(T){return H9.buildUnableToPopLexerModeMessage(T)}},f(Ai,"P3e"),s(Ai,"DefaultLexerErrorMessageProvider"),N(Ai,"DefaultLexerErrorMessageProvider"),Ai),IL={mode:"full"},DL=(aa=class{constructor(T){this.errorMessageProvider=T.parser.LexerErrorMessageProvider,this.tokenBuilder=T.parser.TokenBuilder;let L=this.tokenBuilder.buildTokens(T.Grammar,{caseInsensitive:T.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(L);let M=bT(L)?Object.values(L):L,B=T.LanguageMetaData.mode==="production";
1297this.chevrotainLexer=new Ks(M,{positionTracking:"full",skipValidations:B,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(T,L=IL){var B,G,Z;let M=this.chevrotainLexer.tokenize(T);return{tokens:M.tokens,errors:M.errors,hidden:(B=M.groups.hidden)!=null?B:[],report:(Z=(G=this.tokenBuilder).flushLexingReport)==null?void 0:Z.call(G,T)}}toTokenTypeDictionary(T){if(bT(T))return T;let L=vT(T)?Object.values(T.modes).flat():T,M={};return L.forEach(B=>M[B.name]=B),M}},f(aa,"BG"),s(aa,"DefaultLexer"),N(aa,"DefaultLexer"),aa),s(yT,"isTokenTypeArray"),N(yT,"isTokenTypeArray"),s(vT,"isIMultiModeLexerDefinition"),N(vT,"isIMultiModeLexerDefinition"),s(bT,"isTokenTypeDictionary"),N(bT,"isTokenTypeDictionary"),ev(),s(H8,"parseJSDoc"),N(H8,"parseJSDoc"),s(Y8,"isJSDoc"),N(Y8,"isJSDoc"),s(X8,"getLines"),N(X8,"getLines"),Qae=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Qet=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,s(pte,"tokenize"),N(pte,"tokenize"),s(gte,"buildInlineTokens"),N(gte,"buildInlineTokens"),Jet=/\S/,ett=/\s*$/,s(xT,"skipWhitespace"),N(xT,"skipWhitespace"),s(fte,"lastCharacter"),N(fte,"lastCharacter"),s(mte,"parseJSDocComment"),N(mte,"parseJSDocComment"),s(yte,"parseJSDocElement"),N(yte,"parseJSDocElement"),s(vte,"appendEmptyLine"),N(vte,"appendEmptyLine"),s(K8,"parseJSDocText"),N(K8,"parseJSDocText"),s(bte,"parseJSDocInline"),N(bte,"parseJSDocInline"),s(Z8,"parseJSDocTag"),N(Z8,"parseJSDocTag"),s(Q8,"parseJSDocLine"),N(Q8,"parseJSDocLine"),s(kT,"normalizeOptions"),N(kT,"normalizeOptions"),s(TT,"normalizeOption"),N(TT,"normalizeOption"),Jae=(yi=class{constructor(T,L){this.elements=T,this.range=L}getTag(T){return this.getAllTags().find(L=>L.name===T)}getTags(T){return this.getAllTags().filter(L=>L.name===T)}getAllTags(){return this.elements.filter(T=>"name"in T)}toString(){let T="";for(let L of this.elements)if(T.length===0)T=L.toString();else{let M=L.toString();T+=J8(T)+M}return T.trim()}toMarkdown(T){let L="";for(let M of this.elements)if(L.length===0)L=M.toMarkdown(T);else{let B=M.toMarkdown(T);L+=J8(L)+B}return L.trim()}},f(yi,"$ye"),s(yi,"JSDocCommentImpl"),N(yi,"JSDocCommentImpl"),yi),NL=(hn=class{constructor(T,L,M,B){this.name=T,this.content=L,this.inline=M,this.range=B}toString(){let T=`@${this.name}`,L=this.content.toString();return this.content.inlines.length===1?T=`${T} ${L}`:this.content.inlines.length>1&&(T=`${T} 1298${L}`),this.inline?`{${T}}`:T}toMarkdown(T){var L,M;return(M=(L=T==null?void 0:T.renderTag)==null?void 0:L.call(T,this))!=null?M:this.toMarkdownDefault(T)}toMarkdownDefault(T){let L=this.content.toMarkdown(T);if(this.inline){let G=xte(this.name,L,T!=null?T:{});if(typeof G=="string")return G}let M="";(T==null?void 0:T.tag)==="italic"||(T==null?void 0:T.tag)===void 0?M="*":(T==null?void 0:T.tag)==="bold"?M="**":(T==null?void 0:T.tag)==="bold-italic"&&(M="***");let B=`${M}@${this.name}${M}`;return this.content.inlines.length===1?B=`${B} \u2014 ${L}`:this.content.inlines.length>1&&(B=`${B} 1299${L}`),this.inline?`{${B}}`:B}},f(hn,"tB"),s(hn,"JSDocTagImpl"),N(hn,"JSDocTagImpl"),hn),s(xte,"renderInlineTag"),N(xte,"renderInlineTag"),s(kte,"renderLinkDefault"),N(kte,"renderLinkDefault"),ML=(Ct=class{constructor(T,L){this.inlines=T,this.range=L}toString(){let T="";for(let L=0;
vendor: 4,094 bytes, lines 1299-1301
1299L<this.inlines.length;L++){let M=this.inlines[L],B=this.inlines[L+1];T+=M.toString(),B&&B.range.start.line>M.range.start.line&&(T+=` 1300`)}return T}toMarkdown(T){let L="";for(let M=0;M<this.inlines.length;M++){let B=this.inlines[M],G=this.inlines[M+1];L+=B.toMarkdown(T),G&&G.range.start.line>B.range.start.line&&(L+=` 1301`)}return L}},f(Ct,"YF"),s(Ct,"JSDocTextImpl"),N(Ct,"JSDocTextImpl"),Ct),ese=(Zt=class{constructor(T,L){this.text=T,this.range=L}toString(){return this.text}toMarkdown(){return this.text}},f(Zt,"H3e"),s(Zt,"JSDocLineImpl"),N(Zt,"JSDocLineImpl"),Zt),s(J8,"fillNewlines"),N(J8,"fillNewlines"),tse=(St=class{constructor(T){this.indexManager=T.shared.workspace.IndexManager,this.commentProvider=T.documentation.CommentProvider}getDocumentation(T){let L=this.commentProvider.getComment(T);if(L&&Y8(L))return H8(L).toMarkdown({renderLink:N((M,B)=>this.documentationLinkRenderer(T,M,B),"renderLink"),renderTag:N(M=>this.documentationTagRenderer(T,M),"renderTag")})}documentationLinkRenderer(T,L,M){var G;let B=(G=this.findNameInLocalSymbols(T,L))!=null?G:this.findNameInGlobalScope(T,L);if(B&&B.nameSegment){let Z=B.nameSegment.range.start.line+1,ee=B.nameSegment.range.start.character+1,K=B.documentUri.with({fragment:`L${Z},${ee}`});return`[${M}](${K.toString()})`}else return}documentationTagRenderer(T,L){}findNameInLocalSymbols(T,L){let M=Fl(T).localSymbols;if(!M)return;let B=T;do{let G=M.getStream(B).find(Z=>Z.name===L);if(G)return G;B=B.$container}while(B)}findNameInGlobalScope(T,L){return this.indexManager.allElements().find(M=>M.name===L)}},f(St,"Y3e"),s(St,"JSDocDocumentationProvider"),N(St,"JSDocDocumentationProvider"),St),rse=($r=class{constructor(T){this.grammarConfig=()=>T.parser.GrammarConfig}getComment(T){var L;return G8(T)?T.$comment:(L=TA(T.$cstNode,this.grammarConfig().multilineCommentRules))==null?void 0:L.text}},f($r,"j3e"),s($r,"DefaultCommentProvider"),N($r,"DefaultCommentProvider"),$r),ise=(Me=class{constructor(T){this.syncParser=T.parser.LangiumParser}parse(T,L){return Promise.resolve(this.syncParser.parse(T))}},f(Me,"X3e"),s(Me,"DefaultAsyncParser"),N(Me,"DefaultAsyncParser"),Me),ttt=(Qi=class{constructor(T){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=T.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let T=this.createWorker();T.onReady(()=>{if(this.queue.length>0){let L=this.queue.shift();L&&(T.lock(),L.resolve(T))}}),this.workerPool.push(T)}}async parse(T,L){let M=await this.acquireParserWorker(L),B=new su,G,Z=L.onCancellationRequested(()=>{G=setTimeout(()=>{this.terminateWorker(M)},this.terminationDelay)});return M.parse(T).then(ee=>{let K=this.hydrator.hydrate(ee);B.resolve(K)}).catch(ee=>{B.reject(ee)}).finally(()=>{Z.dispose(),clearTimeout(G)}),B.promise}terminateWorker(T){T.terminate();let L=this.workerPool.indexOf(T);L>=0&&this.workerPool.splice(L,1)}async acquireParserWorker(T){this.initializeWorkers();for(let M of this.workerPool)if(M.ready)return M.lock(),M;let L=new su;return T.onCancellationRequested(()=>{let M=this.queue.indexOf(L);M>=0&&this.queue.splice(M,1),L.reject(Vc)}),this.queue.push(L),L.promise}},f(Qi,"kvt"),s(Qi,"AbstractThreadedAsyncParser"),N(Qi,"AbstractThreadedAsyncParser"),Qi),rtt=(Fe=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(T,L,M,B){this.onReadyEmitter=new K5.Emitter,this.deferred=new su,this._ready=!0,this._parsing=!1,this.sendMessage=T,this._terminate=B,L(G=>{let Z=G;this.deferred.resolve(Z),this.unlock()}),M(G=>{this.deferred.reject(G),this.unlock()})}terminate(){this.deferred.reject(Vc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(T){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new su,this.sendMessage(T),this.deferred.promise}},f(Fe,"wvt"),s(Fe,"ParserWorker"),N(Fe,"ParserWorker"),Fe),nse=(Ji=class{constructor(){this.previousTokenSource=new yn.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}
vendor: 6,955 bytes, lines 1301-1302
1301write(T){this.cancelWrite();let L=fT();return this.previousTokenSource=L,this.enqueue(this.writeQueue,T,L.token)}read(T){return this.enqueue(this.readQueue,T)}enqueue(T,L,M=yn.CancellationToken.None){let B=new su,G={action:L,deferred:B,cancellationToken:M};return T.push(G),this.performNextOperation(),B.promise}async performNextOperation(){if(!this.done)return;let T=[];if(this.writeQueue.length>0)T.push(this.writeQueue.shift());else if(this.readQueue.length>0)T.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(T.map(async({action:L,deferred:M,cancellationToken:B})=>{try{let G=await Promise.resolve().then(()=>L(B));M.resolve(G)}catch(G){g0(G)?M.resolve(void 0):M.reject(G)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},f(Ji,"K3e"),s(Ji,"DefaultWorkspaceLock"),N(Ji,"DefaultWorkspaceLock"),Ji),ase=(kl=class{constructor(T){this.grammarElementIdMap=new H5,this.tokenTypeIdMap=new H5,this.grammar=T.Grammar,this.lexer=T.parser.Lexer,this.linker=T.references.Linker}dehydrate(T){return{lexerErrors:T.lexerErrors,lexerReport:T.lexerReport?this.dehydrateLexerReport(T.lexerReport):void 0,parserErrors:T.parserErrors.map(L=>_r(Tt({},L),{message:L.message})),value:this.dehydrateAstNode(T.value,this.createDehyrationContext(T.value))}}dehydrateLexerReport(T){return T}createDehyrationContext(T){let L=new Map,M=new Map;for(let B of zl(T))L.set(B,{});if(T.$cstNode)for(let B of qf(T.$cstNode))M.set(B,{});return{astNodes:L,cstNodes:M}}dehydrateAstNode(T,L){let M=L.astNodes.get(T);M.$type=T.$type,M.$containerIndex=T.$containerIndex,M.$containerProperty=T.$containerProperty,T.$cstNode!==void 0&&(M.$cstNode=this.dehydrateCstNode(T.$cstNode,L));for(let[B,G]of Object.entries(T))if(!B.startsWith("$"))if(Array.isArray(G)){let Z=[];M[B]=Z;for(let ee of G)_a(ee)?Z.push(this.dehydrateAstNode(ee,L)):Vs(ee)?Z.push(this.dehydrateReference(ee,L)):Z.push(ee)}else _a(G)?M[B]=this.dehydrateAstNode(G,L):Vs(G)?M[B]=this.dehydrateReference(G,L):G!==void 0&&(M[B]=G);return M}dehydrateReference(T,L){let M={};return M.$refText=T.$refText,T.$refNode&&(M.$refNode=L.cstNodes.get(T.$refNode)),M}dehydrateCstNode(T,L){let M=L.cstNodes.get(T);return Ak(T)?M.fullText=T.fullText:M.grammarSource=this.getGrammarElementId(T.grammarSource),M.hidden=T.hidden,M.astNode=L.astNodes.get(T.astNode),jh(T)?M.content=T.content.map(B=>this.dehydrateCstNode(B,L)):Xp(T)&&(M.tokenType=T.tokenType.name,M.offset=T.offset,M.length=T.length,M.startLine=T.range.start.line,M.startColumn=T.range.start.character,M.endLine=T.range.end.line,M.endColumn=T.range.end.character),M}hydrate(T){let L=T.value,M=this.createHydrationContext(L);return"$cstNode"in L&&this.hydrateCstNode(L.$cstNode,M),{lexerErrors:T.lexerErrors,lexerReport:T.lexerReport,parserErrors:T.parserErrors,value:this.hydrateAstNode(L,M)}}createHydrationContext(T){let L=new Map,M=new Map;for(let G of zl(T))L.set(G,{});let B;if(T.$cstNode)for(let G of qf(T.$cstNode)){let Z;"fullText"in G?(Z=new kL(G.fullText),B=Z):"content"in G?Z=new G5:"tokenType"in G&&(Z=this.hydrateCstLeafNode(G)),Z&&(M.set(G,Z),Z.root=B)}return{astNodes:L,cstNodes:M}}hydrateAstNode(T,L){let M=L.astNodes.get(T);M.$type=T.$type,M.$containerIndex=T.$containerIndex,M.$containerProperty=T.$containerProperty,T.$cstNode&&(M.$cstNode=L.cstNodes.get(T.$cstNode));for(let[B,G]of Object.entries(T))if(!B.startsWith("$"))if(Array.isArray(G)){let Z=[];M[B]=Z;for(let ee of G)_a(ee)?Z.push(this.setParent(this.hydrateAstNode(ee,L),M)):Vs(ee)?Z.push(this.hydrateReference(ee,M,B,L)):Z.push(ee)}else _a(G)?M[B]=this.setParent(this.hydrateAstNode(G,L),M):Vs(G)?M[B]=this.hydrateReference(G,M,B,L):G!==void 0&&(M[B]=G);return M}setParent(T,L){return T.$container=L,T}hydrateReference(T,L,M,B){return this.linker.buildReference(L,M,B.cstNodes.get(T.$refNode),T.$refText)}hydrateCstNode(T,L,M=0){let B=L.cstNodes.get(T);if(typeof T.grammarSource=="number"&&(B.grammarSource=this.getGrammarElement(T.grammarSource)),B.astNode=L.astNodes.get(T.astNode),jh(B))for(let G of T.content){let Z=this.hydrateCstNode(G,L,M++);B.content.push(Z)}return B}hydrateCstLeafNode(T){let L=this.getTokenType(T.tokenType),M=T.offset,B=T.length,G=T.startLine,Z=T.startColumn,ee=T.endLine,K=T.endColumn,ne=T.hidden;return new j5(M,B,{start:{line:G,character:Z},end:{line:ee,character:K}},L,ne)}getTokenType(T){return this.lexer.definition[T]}getGrammarElementId(T){if(T)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(T)}getGrammarElement(T){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(T)}createGrammarElementIdMap(){let T=0;for(let L of zl(this.grammar))Dk(L)&&this.grammarElementIdMap.set(L,T++)}},f(kl,"Z3e"),s(kl,"DefaultHydrator"),N(kl,"DefaultHydrator"),kl),s($o,"createDefaultCoreModule"),N($o,"createDefaultCoreModule"),s(Bo,"createDefaultSharedCoreModule"),N(Bo,"createDefaultSharedCoreModule"),(function(q){q.merge=(T,L)=>Kf(Kf({},T),L)})(sse||(sse={})),s(Un,"inject"),N(Un,"inject"),ose=Symbol("isProxy"),s(e9,"eagerLoad"),N(e9,"eagerLoad"),s(t9,"_inject"),N(t9,"_inject"),lse=Symbol(),s(r9,"_resolve"),N(r9,"_resolve"),s(Kf,"_merge"),N(Kf,"_merge"),OL={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},(function(q){q.REGULAR="indentation-sensitive",q.IGNORE_INDENTATION="ignore-indentation"})(T1||(T1={})),cse=(rh=class extends V5{constructor(T=OL){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options=Tt(Tt({},OL),T),this.indentTokenType=Yf({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=Yf({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(T,L){let M=super.buildTokens(T,L);if(!yT(M))throw new Error("Invalid tokens built by default builder");let{indentTokenName:B,dedentTokenName:G,whitespaceTokenName:Z,ignoreIndentationDelimiters:ee}=this.options,K,ne,fe,Ne=[];for(let Ee of M){for(let[it,He]of ee)Ee.name===it?Ee.PUSH_MODE=T1.IGNORE_INDENTATION:Ee.name===He&&(Ee.POP_MODE=!0);Ee.name===G?K=Ee:Ee.name===B?ne=Ee:Ee.name===Z?fe=Ee:Ne.push(Ee)}if(!K||!ne||!fe)throw new Error("Some indentation/whitespace tokens not found!");return ee.length>0?{modes:{[T1.REGULAR]:[K,ne,...Ne,fe],[T1.IGNORE_INDENTATION]:[...Ne,fe]},defaultMode:T1.REGULAR}:[K,ne,fe,...Ne]}flushLexingReport(T){return _r(Tt({},super.flushLexingReport(T)),{remainingDedents:this.flushRemainingDedents(T)})}isStartOfLine(T,L){return L===0||`\r 1302`.includes(T[L-1])}matchWhitespace(T,L,M,B){var Z;this.whitespaceRegExp.lastIndex=L;let G=this.whitespaceRegExp.exec(T);return{currIndentLevel:(Z=G==null?void 0:G[0].length)!=null?Z:0,prevIndentLevel:this.indentationStack.at(-1),match:G}}createIndentationTokenInstance(T,L,M,B){let G=this.getLineNumber(L,B);return F2(T,M,B,B+M.length,G,G,1,M.length)}
1302getLineNumber(T,L){return T.substring(0,L).split(/\r\n|\r|\n/).length}indentMatcher(T,L,M,B){if(!this.isStartOfLine(T,L))return null;let{currIndentLevel:G,prevIndentLevel:Z,match:ee}=this.matchWhitespace(T,L,M,B);return G<=Z?null:(this.indentationStack.push(G),ee)}dedentMatcher(T,L,M,B){var Ne,Ee,it,He;if(!this.isStartOfLine(T,L))return null;let{currIndentLevel:G,prevIndentLevel:Z,match:ee}=this.matchWhitespace(T,L,M,B);if(G>=Z)return null;let K=this.indentationStack.lastIndexOf(G);if(K===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${G} at offset: ${L}. Current indentation stack: ${this.indentationStack}`,offset:L,length:(Ee=(Ne=ee==null?void 0:ee[0])==null?void 0:Ne.length)!=null?Ee:0,line:this.getLineNumber(T,L),column:1}),null;let ne=this.indentationStack.length-K-1,fe=(He=(it=T.substring(0,L).match(/[\r\n]+$/))==null?void 0:it[0].length)!=null?He:1;for(let wt=0;wt<ne;wt++){let Pt=this.createIndentationTokenInstance(this.dedentTokenType,T,"",L-(fe-1));M.push(Pt),this.indentationStack.pop()}return null}buildTerminalToken(T){let L=super.buildTerminalToken(T),{indentTokenName:M,dedentTokenName:B,whitespaceTokenName:G}=this.options;return L.name===M?this.indentTokenType:L.name===B?this.dedentTokenType:L.name===G?Yf({name:G,pattern:this.whitespaceRegExp,group:Ks.SKIPPED}):L}flushRemainingDedents(T){let L=[];for(;this.indentationStack.length>1;)L.push(this.createIndentationTokenInstance(this.dedentTokenType,T,"",T.length)),this.indentationStack.pop();return this.indentationStack=[0],L}},f(rh,"J3e"),s(rh,"IndentationAwareTokenBuilder"),N(rh,"IndentationAwareTokenBuilder"),rh),itt=(ku=class extends DL{constructor(T){if(super(T),T.parser.TokenBuilder instanceof cse)this.indentationTokenBuilder=T.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(T,L=IL){let M=super.tokenize(T),B=M.report;(L==null?void 0:L.mode)==="full"&&M.tokens.push(...B.remainingDedents),B.remainingDedents=[];let{indentTokenType:G,dedentTokenType:Z}=this.indentationTokenBuilder,ee=G.tokenTypeIdx,K=Z.tokenTypeIdx,ne=[],fe=M.tokens.length-1;for(let Ne=0;Ne<fe;Ne++){let Ee=M.tokens[Ne],it=M.tokens[Ne+1];if(Ee.tokenTypeIdx===ee&&it.tokenTypeIdx===K){Ne++;continue}ne.push(Ee)}return fe>=0&&ne.push(M.tokens[fe]),M.tokens=ne,M}},f(ku,"Svt"),s(ku,"IndentationAwareLexer"),N(ku,"IndentationAwareLexer"),ku),$L={},Sd($L,{AstUtils:s(()=>y9,"AstUtils"),BiMap:s(()=>H5,"BiMap"),Cancellation:s(()=>yn,"Cancellation"),ContextCache:s(()=>X5,"ContextCache"),CstUtils:s(()=>f9,"CstUtils"),DONE_RESULT:s(()=>Hs,"DONE_RESULT"),Deferred:s(()=>su,"Deferred"),Disposable:s(()=>k1,"Disposable"),DisposableCache:s(()=>Y5,"DisposableCache"),DocumentCache:s(()=>Bae,"DocumentCache"),EMPTY_STREAM:s(()=>t1,"EMPTY_STREAM"),ErrorWithLocation:s(()=>XT,"ErrorWithLocation"),GrammarUtils:s(()=>x9,"GrammarUtils"),MultiMap:s(()=>ou,"MultiMap"),OperationCancelled:s(()=>Vc,"OperationCancelled"),Reduction:s(()=>OT,"Reduction"),RegExpUtils:s(()=>k9,"RegExpUtils"),SimpleCache:s(()=>AL,"SimpleCache"),StreamImpl:s(()=>Pc,"StreamImpl"),TreeStreamImpl:s(()=>r1,"TreeStreamImpl"),URI:s(()=>Vo,"URI"),UriTrie:s(()=>SL,"UriTrie"),UriUtils:s(()=>ko,"UriUtils"),WorkspaceCache:s(()=>LL,"WorkspaceCache"),assertCondition:s(()=>_A,"assertCondition"),assertUnreachable:s(()=>wd,"assertUnreachable"),delayNextTick:s(()=>gT,"delayNextTick"),interruptAndCheck:s(()=>es,"interruptAndCheck"),isOperationCancelled:s(()=>g0,"isOperationCancelled"),loadGrammarFromJson:s(()=>Po,"loadGrammarFromJson"),setInterruptionPeriod:s(()=>P8,"setInterruptionPeriod"),startCancelableOperation:s(()=>fT,"startCancelableOperation"),stream:s(()=>tn,"stream")}),CT($L,K5),hse=(ih=class{stat(T){throw new Error("No file system is available.")}statSync(T){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},f(ih,"eEe"),s(ih,"EmptyFileSystemProvider"),N(ih,"EmptyFileSystemProvider"),ih),gl={fileSystemProvider:N(()=>new hse,"fileSystemProvider")},ntt={Grammar:N(()=>{},"Grammar"),LanguageMetaData:N(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},att={AstReflection:N(()=>new v9,"AstReflection")},s(Tte,"createMinimalGrammarServices"),N(Tte,"createMinimalGrammarServices"),s(Po,"loadGrammarFromJson"),N(Po,"loadGrammarFromJson"),CT(Lre,$L),stt=(Tu=class{constructor(T){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=T!=null?T:new Set(this.allCategories),this.records=new ou}isActive(T){return this.activeCategories.has(T)}start(...T){T?T.forEach(L=>this.activeCategories.add(L)):this.activeCategories=new Set(this.allCategories)}stop(...T){T?T.forEach(L=>this.activeCategories.delete(L)):this.activeCategories.clear()}createTask(T,L){if(!this.isActive(T))throw new Error(`Category "${T}" is not active.`);return console.log(`Creating profiling task for '${T}.${L}'.`),new use(M=>this.records.add(T,this.dumpRecord(T,M)),L)}dumpRecord(T,L){console.info(`Task ${T}.${L.identifier} executed in ${L.duration.toFixed(2)}ms and ended at ${L.date.toISOString()}`);let M=[];for(let Z of L.entries.keys()){let ee=L.entries.get(Z),K=ee.reduce((ne,fe)=>ne+fe);M.push({name:`${L.identifier}.${Z}`,count:ee.length,duration:K})}let B=L.duration-M.map(Z=>Z.duration).reduce((Z,ee)=>Z+ee,0);M.push({name:L.identifier,count:1,duration:B}),M.sort((Z,ee)=>ee.duration-Z.duration);function G(Z){return Math.round(100*Z)/100}return f(G,"n"),s(G,"Round"),N(G,"Round"),console.table(M.map(Z=>({Element:Z.name,Count:Z.count,"Self %":G(100*Z.duration/L.duration),"Time (ms)":G(Z.duration)}))),L}getRecords(...T){return T.length===0?this.records.values():this.records.entries().filter(L=>T.some(M=>M===L[0])).flatMap(L=>L[1])}},f(Tu,"_vt"),s(Tu,"DefaultLangiumProfiler"),N(Tu,"DefaultLangiumProfiler"),Tu),use=(bn=class{constructor(T,L){this.stack=[],this.entries=new ou,this.addRecord=T,this.identifier=L}
vendor: 4,596 bytes, line 1302
1302start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(L=>L.id).join(", ")}.`);let T={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(T),this.startTime=void 0,this.entries.clear()}startSubTask(T){this.stack.push({id:T,start:performance.now(),content:0})}stopSubTask(T){let L=this.stack.pop();if(!L)throw new Error(`Task "${this.identifier}.${T}" was not started.`);if(L.id!==T)throw new Error(`Sub-Task "${L.id}" is not already stopped.`);let M=performance.now()-L.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=M);let B=M-L.content;this.entries.add(T,B)}},f(bn,"rEe"),s(bn,"ProfilingTask"),N(bn,"ProfilingTask"),bn),(q=>{q.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(dse||(dse={})),(q=>{q.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(pse||(pse={})),(q=>{q.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(gse||(gse={})),(q=>{q.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(fse||(fse={})),(q=>{q.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(mse||(mse={})),(q=>{q.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(yse||(yse={})),(q=>{q.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWL
1302INE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(vse||(vse={})),(q=>{q.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(bse||(bse={})),(q=>{q.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(xse||(xse={})),(q=>{q.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(kse||(kse={})),P5t=Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt(Tt({},dse.Terminals),pse.Terminals),gse.Terminals),fse.Terminals),mse.Terminals),yse.Terminals),vse.Terminals),xse.Terminals),bse.Terminals),kse.Terminals),Q5={$type:"Accelerator",name:"name",x:"x",y:"y"},J5={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},Mv={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},BL={$type:"Annotations",x:"x",y:"y"},lu={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"},s(Eje,"isArchitecture"),N(Eje,"isArchitecture"),ew={$type:"Axis",label:"label",name:"name"},tw={$type:"Branch",name:"name",order:"order"},s(Sje,"isBranch"),N(Sje,"isBranch"),Tse={$type:"Checkout",branch:"branch"},rw={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},PL={$type:"ClassDefStatement",className:"className",styleText:"styleText"},w1={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"},s(_je,"isCommit"),N(_je,"isCommit"),iw={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},F0={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},nw={$type:"Curve",entries:"entries",label:"label",name:"name"},aw={$type:"Deaccelerator",name:"name",x:"x",y:"y"},wse={$type:"Decorator",strategy:"strategy"},C1={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Wc={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},E1={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},z0={$type:"EmFrame"},Ov={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"}
vendor: 7,490 bytes, line 1302
1302,Cse={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},FL={$type:"EmModelEntity",name:"name"},s(Aje,"isEmModelEntityType"),N(Aje,"isEmModelEntityType"),sw={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},cu={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},s(wte,"isEmResetFrame"),N(wte,"isEmResetFrame"),Pd={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},zL={$type:"Entry",axis:"axis",value:"value"},hu={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Ese={$type:"Evolution",stages:"stages"},ow={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},qL={$type:"Evolve",component:"component",target:"target"},q0={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"},s(Lje,"isGitGraph"),N(Lje,"isGitGraph"),$v={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},Bv={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"},s(Rje,"isInfo"),N(Rje,"isInfo"),Pv={$type:"Item",classSelector:"classSelector",name:"name"},jL={$type:"Junction",id:"id",in:"in"},Fv={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},lw={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},j0={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},S1={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"},s(Ije,"isMerge"),N(Ije,"isMerge"),cw={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},GL={$type:"Option",name:"name",value:"value"},_1={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"},s(Dje,"isPacket"),N(Dje,"isPacket"),A1={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"},s(Nje,"isPacketBlock"),N(Nje,"isPacketBlock"),G0={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"},s(Mje,"isPie"),N(Mje,"isPie"),hw={$type:"PieSection",label:"label",value:"value"},s(Oje,"isPieSection"),N(Oje,"isPieSection"),UL={$type:"Pipeline",components:"components",parent:"parent"},uw={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},U0={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},VL={$type:"Section",classSelector:"classSelector",name:"name"},L1={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},WL={$type:"Size",height:"height",width:"width"},R1={$type:"Statement"},I1={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"},s($je,"isTreemap"),N($je,"isTreemap"),HL={$type:"TreemapRow",indent:"indent",item:"item"},YL={$type:"TreeNode",indent:"indent",name:"name"},zv={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},ds={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"},s(Bje,"isWardley"),N(Bje,"isWardley"),Sse=(to=class extends m9{constructor(){super(...arguments),this.types={Accelerator:{name:Q5.$type,properties:{name:{name:Q5.name},x:{name:Q5.x},y:{name:Q5.y}},superTypes:[]},Anchor:{name:J5.$type,properties:{evolution:{name:J5.evolution},name:{name:J5.name},visibility:{name:J5.visibility}},superTypes:[]},Annotation:{name:Mv.$type,properties:{number:{name:Mv.number},text:{name:Mv.text},x:{name:Mv.x},y:{name:Mv.y}},superTypes:[]},Annotations:{name:BL.$type,properties:{x:{name:BL.x},y:{name:BL.y}},superTypes:[]},Architecture:{name:lu.$type,properties:{accDescr:{name:lu.accDescr},accTitle:{name:lu.accTitle},edges:{name:lu.edges,defaultValue:[]},groups:{name:lu.groups,defaultValue:[]},junctions:{name:lu.junctions,defaultValue:[]},services:{name:lu.services,defaultValue:[]},title:{name:lu.title}},superTypes:[]},Axis:{name:ew.$type,properties:{label:{name:ew.label},name:{name:ew.name}},superTypes:[]},Branch:{name:tw.$type,properties:{name:{name:tw.name},order:{name:tw.order}},superTypes:[R1.$type]},Checkout:{name:Tse.$type,properties:{branch:{name:Tse.branch}},superTypes:[R1.$type]},CherryPicking:{name:rw.$type,properties:{id:{name:rw.id},parent:{name:rw.parent},tags:{name:rw.tags,defaultValue:[]}},superTypes:[R1.$type]},ClassDefStatement:{name:PL.$type,properties:{className:{name:PL.className},styleText:{name:PL.styleText}},superTypes:[]},Commit:{name:w1.$type,properties:{id:{name:w1.id},message:{name:w1.message},tags:{name:w1.tags,defaultValue:[]},type:{name:w1.type}},superTypes:[R1.$type]},Common:{name:iw.$type,properties:{accDescr:{name:iw.accDescr},accTitle:{name:iw.accTitle},title:{name:iw.title}},superTypes:[]},Component:{name:F0.$type,properties:{decorator:{name:F0.decorator},evolution:{name:F0.evolution},inertia:{name:F0.inertia,defaultValue:!1},label:{name:F0.label},name:{name:F0.name},visibility:{name:F0.visibility}},superTypes:[]},Curve:{name:nw.$type,properties:{entries:{name:nw.entries,defaultValue:[]},label:{name:nw.label},name:{name:nw.name}},superTypes:[]},Deaccelerator:{name:aw.$type,properties:{name:{name:aw.name},x:{name:aw.x},y:{name:aw.y}},superTypes:[]},Decorator:{name:wse.$type,properties:{strategy:{name:wse.strategy}},superTypes:[]},Direction:{name:C1.$type,properties:{accDescr:{name:C1.accDescr},accTitle:{name:C1.accTitle},dir:{name:C1.dir},statements:{name:C1.statements,defaultValue:[]},title:{name:C1.title}},superTypes:[q0.$type]},Edge:{name:Wc.$type,properties:{lhsDir:{name:Wc.lhsDir},lhsGroup:{name:Wc.lhsGroup,defaultValue:!1},lhsId:{name:Wc.lhsId},lhsInto:{name:Wc.lhsInto,defaultValue:!1},rhsDir:{name:Wc.rhsDir},rhsGroup:{name:Wc.rhsGroup,defaultValue:!1},rhsId:{name:Wc.rhsId},rhsInto:{name:Wc.rhsInto,defaultValue:!1},title:{name:Wc.title}},superTypes:[]},EmDataEntity:{name:E1.$type,properties:{dataBlockValue:{name:E1.dataBlockValue},dataType:{name:E1.dataType},name:{name:E1.name}},superTypes:[]},EmFrame:{name:z0.$type,properties:{},superTypes:[]},EmGwt:{name:Ov.$type,properties:{givenStatements:{name:Ov.givenStatements,defaultValue:[]},sourceFrame:{name:Ov.sourceFrame,referenceType:z0.$type},thenStatements:{name:Ov.thenStatements,defaultValue:[]},whenStatements:{name:Ov.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Cse.$type,properties:{entityIdentifier:{name:Cse.entityIdentifier,referenceType:FL.$type}},superTypes:[]},EmModelEntity:{name:FL.$type,properties:{name:{name:FL.name}},superTypes:[]},EmNoteEntity:{name:sw.$type,properties:{dataBlockValue:{name:sw.dataBlockValue},dataType:{name:sw.dataType},sourceFrame:{name:sw.sourceFrame,referenceType:z0.$type}},superTypes:[]},EmResetFrame:{name:cu.$type,properties:{dataInlineValue:{name:cu.dataInlineValue},dataReference:{name:cu.dataReference,referenceType:E1.$type},dataType:{name:cu.dataType}
vendor: 16,384 bytes, line 1302
1302,entityIdentifier:{name:cu.entityIdentifier},modelEntityType:{name:cu.modelEntityType},name:{name:cu.name},sourceFrames:{name:cu.sourceFrames,defaultValue:[],referenceType:z0.$type}},superTypes:[z0.$type]},EmTimeFrame:{name:Pd.$type,properties:{dataInlineValue:{name:Pd.dataInlineValue},dataReference:{name:Pd.dataReference,referenceType:E1.$type},dataType:{name:Pd.dataType},entityIdentifier:{name:Pd.entityIdentifier},modelEntityType:{name:Pd.modelEntityType},name:{name:Pd.name},sourceFrames:{name:Pd.sourceFrames,defaultValue:[],referenceType:z0.$type}},superTypes:[z0.$type]},Entry:{name:zL.$type,properties:{axis:{name:zL.axis,referenceType:ew.$type},value:{name:zL.value}},superTypes:[]},EventModel:{name:hu.$type,properties:{accDescr:{name:hu.accDescr},accTitle:{name:hu.accTitle},dataEntities:{name:hu.dataEntities,defaultValue:[]},frames:{name:hu.frames,defaultValue:[]},gwtEntities:{name:hu.gwtEntities,defaultValue:[]},modelEntities:{name:hu.modelEntities,defaultValue:[]},noteEntities:{name:hu.noteEntities,defaultValue:[]},title:{name:hu.title}},superTypes:[]},Evolution:{name:Ese.$type,properties:{stages:{name:Ese.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:ow.$type,properties:{boundary:{name:ow.boundary},name:{name:ow.name},secondName:{name:ow.secondName}},superTypes:[]},Evolve:{name:qL.$type,properties:{component:{name:qL.component},target:{name:qL.target}},superTypes:[]},GitGraph:{name:q0.$type,properties:{accDescr:{name:q0.accDescr},accTitle:{name:q0.accTitle},statements:{name:q0.statements,defaultValue:[]},title:{name:q0.title}},superTypes:[]},Group:{name:$v.$type,properties:{icon:{name:$v.icon},id:{name:$v.id},in:{name:$v.in},title:{name:$v.title}},superTypes:[]},Info:{name:Bv.$type,properties:{accDescr:{name:Bv.accDescr},accTitle:{name:Bv.accTitle},title:{name:Bv.title}},superTypes:[]},Item:{name:Pv.$type,properties:{classSelector:{name:Pv.classSelector},name:{name:Pv.name}},superTypes:[]},Junction:{name:jL.$type,properties:{id:{name:jL.id},in:{name:jL.in}},superTypes:[]},Label:{name:Fv.$type,properties:{negX:{name:Fv.negX,defaultValue:!1},negY:{name:Fv.negY,defaultValue:!1},offsetX:{name:Fv.offsetX},offsetY:{name:Fv.offsetY}},superTypes:[]},Leaf:{name:lw.$type,properties:{classSelector:{name:lw.classSelector},name:{name:lw.name},value:{name:lw.value}},superTypes:[Pv.$type]},Link:{name:j0.$type,properties:{arrow:{name:j0.arrow},from:{name:j0.from},fromPort:{name:j0.fromPort},linkLabel:{name:j0.linkLabel},to:{name:j0.to},toPort:{name:j0.toPort}},superTypes:[]},Merge:{name:S1.$type,properties:{branch:{name:S1.branch},id:{name:S1.id},tags:{name:S1.tags,defaultValue:[]},type:{name:S1.type}},superTypes:[R1.$type]},Note:{name:cw.$type,properties:{evolution:{name:cw.evolution},text:{name:cw.text},visibility:{name:cw.visibility}},superTypes:[]},Option:{name:GL.$type,properties:{name:{name:GL.name},value:{name:GL.value,defaultValue:!1}},superTypes:[]},Packet:{name:_1.$type,properties:{accDescr:{name:_1.accDescr},accTitle:{name:_1.accTitle},blocks:{name:_1.blocks,defaultValue:[]},title:{name:_1.title}},superTypes:[]},PacketBlock:{name:A1.$type,properties:{bits:{name:A1.bits},end:{name:A1.end},label:{name:A1.label},start:{name:A1.start}},superTypes:[]},Pie:{name:G0.$type,properties:{accDescr:{name:G0.accDescr},accTitle:{name:G0.accTitle},sections:{name:G0.sections,defaultValue:[]},showData:{name:G0.showData,defaultValue:!1},title:{name:G0.title}},superTypes:[]},PieSection:{name:hw.$type,properties:{label:{name:hw.label},value:{name:hw.value}},superTypes:[]},Pipeline:{name:UL.$type,properties:{components:{name:UL.components,defaultValue:[]},parent:{name:UL.parent}},superTypes:[]},PipelineComponent:{name:uw.$type,properties:{evolution:{name:uw.evolution},label:{name:uw.label},name:{name:uw.name}},superTypes:[]},Radar:{name:U0.$type,properties:{accDescr:{name:U0.accDescr},accTitle:{name:U0.accTitle},axes:{name:U0.axes,defaultValue:[]},curves:{name:U0.curves,defaultValue:[]},options:{name:U0.options,defaultValue:[]},title:{name:U0.title}},superTypes:[]},Section:{name:VL.$type,properties:{classSelector:{name:VL.classSelector},name:{name:VL.name}},superTypes:[Pv.$type]},Service:{name:L1.$type,properties:{icon:{name:L1.icon},iconText:{name:L1.iconText},id:{name:L1.id},in:{name:L1.in},title:{name:L1.title}},superTypes:[]},Size:{name:WL.$type,properties:{height:{name:WL.height},width:{name:WL.width}},superTypes:[]},Statement:{name:R1.$type,properties:{},superTypes:[]},TreeNode:{name:YL.$type,properties:{indent:{name:YL.indent},name:{name:YL.name}},superTypes:[]},TreeView:{name:zv.$type,properties:{accDescr:{name:zv.accDescr},accTitle:{name:zv.accTitle},nodes:{name:zv.nodes,defaultValue:[]},title:{name:zv.title}},superTypes:[]},Treemap:{name:I1.$type,properties:{accDescr:{name:I1.accDescr},accTitle:{name:I1.accTitle},title:{name:I1.title},TreemapRows:{name:I1.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:HL.$type,properties:{indent:{name:HL.indent},item:{name:HL.item}},superTypes:[]},Wardley:{name:ds.$type,properties:{accDescr:{name:ds.accDescr},accelerators:{name:ds.accelerators,defaultValue:[]},accTitle:{name:ds.accTitle},anchors:{name:ds.anchors,defaultValue:[]},annotation:{name:ds.annotation,defaultValue:[]},annotations:{name:ds.annotations,defaultValue:[]},components:{name:ds.components,defaultValue:[]},deaccelerators:{name:ds.deaccelerators,defaultValue:[]},evolution:{name:ds.evolution},evolves:{name:ds.evolves,defaultValue:[]},links:{name:ds.links,defaultValue:[]},notes:{name:ds.notes,defaultValue:[]},pipelines:{name:ds.pipelines,defaultValue:[]},size:{name:ds.size},title:{name:ds.title}},superTypes:[]}}}},f(to,"gEe"),s(to,"MermaidAstReflection"),N(to,"MermaidAstReflection"),to),Wo=new Sse,ott=N(()=>XL!=null?XL:XL=Po(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","
1302regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),"ArchitectureGrammarGrammar"),ltt=N(()=>KL!=null?KL:KL=Po
vendor: 12,877 bytes, line 1302
1302('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","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","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')
1302,"EventModelingGrammar"),ctt=N(()=>ZL!=null?ZL:ZL=Po(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"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@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$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"}]}},"entry":false,"fragment":false,"parameters":[]},{"$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@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"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@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$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@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$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@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"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@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$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@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$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@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),"GitGraphGrammarGrammar"),htt=N(()=>QL!=null?QL:QL=Po(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","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@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),"InfoGrammarGrammar"),utt=N(()=>JL!=null?JL:JL=Po(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"Parser
1302Rule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),"PacketGrammarGrammar"),dtt=N(()=>eR!=null?eR:eR=Po(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"}
1302,{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),"PieGrammarGrammar"),ptt=N(()=>tR!=null?tR:tR=Po(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"}
1302,{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`),"RadarGrammarGrammar"),gtt=N(()=>rR!=null?rR:rR=Po(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"}
1302,{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),"TreemapGrammarGrammar"),ftt=N(()=>iR!=null?iR:iR=Po(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),"TreeViewGrammarGrammar"),mtt=N(()=>nR!=null?nR:nR=Po
vendor: 26,598 bytes, line 1302
1302(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)
vendor: 2,493 bytes, line 1302
1302,"WardleyGrammarGrammar"),ytt={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},vtt={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},btt={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xtt={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ktt={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ttt={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},wtt={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ctt={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ett={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Stt={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Hc={AstReflection:N(()=>new Sse,"AstReflection")},_tt={Grammar:N(()=>ott(),"Grammar"),LanguageMetaData:N(()=>ytt,"LanguageMetaData"),parser:{}},Att={Grammar:N(()=>ltt(),"Grammar"),LanguageMetaData:N(()=>vtt,"LanguageMetaData"),parser:{}},Ltt={Grammar:N(()=>ctt(),"Grammar"),LanguageMetaData:N(()=>btt,"LanguageMetaData"),parser:{}},Rtt={Grammar:N(()=>htt(),"Grammar"),LanguageMetaData:N(()=>xtt,"LanguageMetaData"),parser:{}},Itt={Grammar:N(()=>utt(),"Grammar"),LanguageMetaData:N(()=>ktt,"LanguageMetaData"),parser:{}},Dtt={Grammar:N(()=>dtt(),"Grammar"),LanguageMetaData:N(()=>Ttt,"LanguageMetaData"),parser:{}},Ntt={Grammar:N(()=>ptt(),"Grammar"),LanguageMetaData:N(()=>wtt,"LanguageMetaData"),parser:{}},Mtt={Grammar:N(()=>gtt(),"Grammar"),LanguageMetaData:N(()=>Ctt,"LanguageMetaData"),parser:{}},Ott={Grammar:N(()=>ftt(),"Grammar"),LanguageMetaData:N(()=>Ett,"LanguageMetaData"),parser:{}},$tt={Grammar:N(()=>mtt(),"Grammar"),LanguageMetaData:N(()=>Stt,"LanguageMetaData"),parser:{}},Btt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,Ptt=/accTitle[\t ]*:([^\n\r]*)/,Ftt=/title([\t ][^\n\r]*|)/,ztt={ACC_DESCR:Btt,ACC_TITLE:Ptt,TITLE:Ftt},D1=(rc=class extends CL{runConverter(T,L,M){let B=this.runCommonConverter(T,L,M);return B===void 0&&(B=this.runCustomConverter(T,L,M)),B===void 0?super.runConverter(T,L,M):B}runCommonConverter(T,L,M){let B=ztt[T.name];if(B===void 0)return;let G=B.exec(L);if(G!==null){if(G[1]!==void 0)return G[1].trim().replace(/[\t ]{2,}/gm," ");
1302if(G[2]!==void 0)return G[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` 1303`)}}},f(rc,"nl"),s(rc,"AbstractMermaidValueConverter"),N(rc,"AbstractMermaidValueConverter"),rc),qv=(ic=class extends D1{runCustomConverter(T,L,M){}},f(ic,"Kl"),s(ic,"CommonValueConverter"),N(ic,"CommonValueConverter"),ic),Yc=(wu=class extends V5{constructor(T){super(),this.keywords=new Set(T)}buildKeywordTokens(T,L,M){let B=super.buildKeywordTokens(T,L,M);return B.forEach(G=>{this.keywords.has(G.name)&&G.PATTERN!==void 0&&(G.PATTERN=new RegExp(G.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),B}},f(wu,"Ln"),s(wu,"AbstractMermaidTokenBuilder"),N(wu,"AbstractMermaidTokenBuilder"),wu),F5t=(Cu=class extends Yc{},f(Cu,"Jvt"),s(Cu,"CommonTokenBuilder"),N(Cu,"CommonTokenBuilder"),Cu)});function _se(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Ntt,Ase);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}f(_se,"t6");var qtt,Ase,jtt=Y(()=>{"use strict";var e;Aa(),qtt=(e=class extends Yc{constructor(){super(["radar-beta"])}},f(e,"ext"),s(e,"RadarTokenBuilder"),N(e,"RadarTokenBuilder"),e),Ase={parser:{TokenBuilder:N(()=>new qtt,"TokenBuilder"),ValueConverter:N(()=>new qv,"ValueConverter")}},s(_se,"createRadarServices"),N(_se,"createRadarServices")});function Lse(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let i={Treemap:t.checkSingleRoot.bind(t)};r.register(i,t)}}f(Lse,"yEe");function Rse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Mtt,Ise);return t.ServiceRegistry.register(r),Lse(r),{shared:t,Treemap:r}}f(Rse,"i6");var Gtt,Utt,Vtt,Wtt,Ise,Htt=Y(()=>{"use strict";var e,t,r;Aa(),Gtt=(e=class extends Yc{constructor(){super(["treemap"])}},f(e,"txt"),s(e,"TreemapTokenBuilder"),N(e,"TreemapTokenBuilder"),e),Utt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Vtt=(t=class extends D1{runCustomConverter(n,a,o){if(n.name==="NUMBER2")return parseFloat(a.replace(/,/g,""));if(n.name==="SEPARATOR"||n.name==="STRING2")return a.substring(1,a.length-1);if(n.name==="INDENTATION")return a.length;if(n.name==="ClassDef"){if(typeof a!="string")return a;let l=Utt.exec(a);if(l)return{$type:"ClassDefStatement",className:l[1],styleText:l[2]||void 0}}}},f(t,"ixt"),s(t,"TreemapValueConverter"),N(t,"TreemapValueConverter"),t),s(Lse,"registerValidationChecks"),N(Lse,"registerValidationChecks"),Wtt=(r=class{checkSingleRoot(n,a){let o;for(let l of n.TreemapRows)l.item&&(o===void 0&&l.indent===void 0?o=0:l.indent===void 0?a("error","Multiple root nodes are not allowed in a treemap.",{node:l,property:"item"}):o!==void 0&&o>=parseInt(l.indent,10)&&a("error","Multiple root nodes are not allowed in a treemap.",{node:l,property:"item"}))}},f(r,"nxt"),s(r,"TreemapValidator"),N(r,"TreemapValidator"),r),Ise={parser:{TokenBuilder:N(()=>new Gtt,"TokenBuilder"),ValueConverter:N(()=>new Vtt,"ValueConverter")},validation:{TreemapValidator:N(()=>new Wtt,"TreemapValidator")}},s(Rse,"createTreemapServices"),N(Rse,"createTreemapServices")});function Dse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),$tt,Nse);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}f(Dse,"a6");var Ytt,Nse,Xtt=Y(()=>{"use strict";var e;Aa(),Ytt=(e=class extends D1{runCustomConverter(r,i,n){if(r.name.toUpperCase()==="LINK_LABEL")return i.substring(1).trim()}},f(e,"axt"),s(e,"WardleyValueConverter"),N(e,"WardleyValueConverter"),e),Nse={parser:{ValueConverter:N(()=>new Ytt,"ValueConverter")}},s(Dse,"createWardleyServices"),N(Dse,"createWardleyServices")});function Mse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Ltt,Ose);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}f(Mse,"o6");var Ktt,Ose,Ztt=Y(()=>{"use strict";var e;Aa(),Ktt=(e=class extends Yc{constructor(){super(["gitGraph"])}},f(e,"sxt"),s(e,"GitGraphTokenBuilder"),N(e,"GitGraphTokenBuilder"),e),Ose={parser:{TokenBuilder:N(()=>new Ktt,"TokenBuilder"),ValueConverter:N(()=>new qv,"ValueConverter")}},s(Mse,"createGitGraphServices"),N(Mse,"createGitGraphServices")});function $se(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Rtt,Bse);return t.ServiceRegistry.register(r),{shared:t,Info:r}}f($se,"c6");var Qtt,Bse,Jtt=Y(()=>{"use strict";var e;Aa(),Qtt=(e=class extends Yc{constructor(){super(["info","showInfo"])}},f(e,"oxt"),s(e,"InfoTokenBuilder"),N(e,"InfoTokenBuilder"),e),Bse={parser:{TokenBuilder:N(()=>new Qtt,"TokenBuilder"),ValueConverter:N(()=>new qv,"ValueConverter")}},s($se,"createInfoServices"),N($se,"createInfoServices")});function Pse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Itt,Fse);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}f(Pse,"h6");var ert,Fse,trt=Y(()=>{"use strict";var e;Aa(),ert=(e=class extends Yc{constructor(){super(["packet"])}},f(e,"lxt"),s(e,"PacketTokenBuilder"),N(e,"PacketTokenBuilder"),e),Fse={parser:{TokenBuilder:N(()=>new ert,"TokenBuilder"),ValueConverter:N(()=>new qv,"ValueConverter")}},s(Pse,"createPacketServices"),N(Pse,"createPacketServices")});function zse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Dtt,qse);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}f(zse,"f6");var rrt,irt,qse,nrt=Y(()=>{"use strict";var e,t;Aa(),rrt=(e=class extends Yc{constructor(){super(["pie","showData"])}},f(e,"cxt"),s(e,"PieTokenBuilder"),N(e,"PieTokenBuilder"),e),irt=(t=class extends D1{runCustomConverter(i,n,a){if(i.name==="PIE_SECTION_LABEL")return n.replace(/"/g,"").trim()}},f(t,"uxt"),s(t,"PieValueConverter"),N(t,"PieValueConverter"),t),qse={parser:{TokenBuilder:N(()=>new rrt,"TokenBuilder"),ValueConverter:N(()=>new irt,"ValueConverter")}},s(zse,"createPieServices"),N(zse,"createPieServices")});function jse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Ott,Gse);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}f(jse,"m6");var art,srt,Gse,ort=Y(()=>{"use strict";var e,t;Aa(),art=(e=class extends D1{runCustomConverter(i,n,a){if(i.name==="INDENTATION")return(n==null?void 0:n.length)||0;if(i.name==="STRING2")return n.substring(1,n.length-1)}},f(e,"hxt"),s(e,"TreeViewValueConverter"),N(e,"TreeViewValueConverter"),e),srt=(t=class extends Yc{constructor(){super(["treeView-beta"])}},f(t,"dxt"),s(t,"TreeViewTokenBuilder"),N(t,"TreeViewTokenBuilder"),t),Gse={parser:{TokenBuilder:N(()=>new srt,"TokenBuilder"),ValueConverter:N(()=>new art,"ValueConverter")}},s(jse,"createTreeViewServices"),N(jse,"createTreeViewServices")});function Use(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),_tt,Vse);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}f(Use,"y6");var lrt,crt,Vse,hrt=Y(()=>{"use strict";var e,t;Aa(),lrt=(e=class extends Yc{constructor(){super(["architecture"])}},f(e,"fxt"),s(e,"ArchitectureTokenBuilder"),N(e,"ArchitectureTokenBuilder"),e),crt=(t=class extends D1{runCustomConverter(i,n,a){if(i.name==="ARCH_ICON")return n.replace(/[()]/g,"").trim();if(i.name==="ARCH_TEXT_ICON")return n.replace(/["()]/g,"");if(i.name==="ARCH_TITLE"){let o=n.replace(/^\[|]$/g,"").trim();return(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1),o=o.replace(/\\"/g,'"').replace(/\\'/g,"'")),o.trim()}}},f(t,"pxt"),s(t,"ArchitectureValueConverter"),N(t,"ArchitectureValueConverter"),t),Vse={parser:{TokenBuilder:N(()=>new lrt,"TokenBuilder"),ValueConverter:N(()=>new crt,"ValueConverter")}},s(Use,"createArchitectureServices"),N(Use,"createArchitectureServices")});function Wse(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(i,t)}}f(Wse,"CEe");function Hse(e=gl){let t=Un(Bo(e),Hc),r=Un($o({shared:t}),Att,Qse);return t.ServiceRegistry.register(r),Wse(r),{shared:t,EventModel:r}}f(Hse,"x6");var urt,Yse,Xse,aR,Kse,Zse,drt,Qse,prt=Y(()=>{"use strict";var e,t;Aa(),urt=(e=class extends Yc{constructor(){super(["eventmodeling"])}},f(e,"mxt"),s(e,"EventModelingTokenBuilder"),N(e,"EventModelingTokenBuilder"),e),Yse=new Set(["cmd","command"]),Xse=new Set(["evt","event"]),aR=new Set(["rmo","readmodel"]),Kse=new Set(["pcr","processor"]),Zse
1303=new Set(["ui"]),s(Wse,"registerValidationChecks"),N(Wse,"registerValidationChecks"),drt=(t=class{checkSourceFrameTypes(i,n){i.sourceFrames.length!==0&&(Yse.has(i.modelEntityType)?this.validateSources(i,new Set([...Zse,...Kse]),"command","ui or processor",n):Xse.has(i.modelEntityType)?this.validateSources(i,Yse,"event","command",n):aR.has(i.modelEntityType)?this.validateSources(i,Xse,"read model","event",n):Kse.has(i.modelEntityType)?this.validateSources(i,aR,"processor","read model",n):Zse.has(i.modelEntityType)&&this.validateSources(i,aR,"ui","read model",n))}validateSources(i,n,a,o,l){for(let h of i.sourceFrames){let u=h.ref;u!==void 0&&!n.has(u.modelEntityType)&&l("error",`A ${a} can only receive input from a ${o}, not from '${u.modelEntityType}'.`,{node:i,property:"sourceFrames"})}}},f(t,"gxt"),s(t,"EventModelingValidator"),N(t,"EventModelingValidator"),t),Qse={parser:{TokenBuilder:N(()=>new urt,"TokenBuilder"),ValueConverter:N(()=>new qv,"ValueConverter")},validation:{EventModelingValidator:N(()=>new drt,"EventModelingValidator")}},s(Hse,"createEventModelingServices"),N(Hse,"createEventModelingServices")}),grt={};Jr(grt,{InfoModule:f(()=>Bse,"InfoModule"),createInfoServices:f(()=>$se,"createInfoServices")});var z5t=Y(()=>{"use strict";Jtt(),Aa()}),frt={};Jr(frt,{PacketModule:f(()=>Fse,"PacketModule"),createPacketServices:f(()=>Pse,"createPacketServices")});var q5t=Y(()=>{"use strict";trt(),Aa()}),mrt={};Jr(mrt,{PieModule:f(()=>qse,"PieModule"),createPieServices:f(()=>zse,"createPieServices")});var j5t=Y(()=>{"use strict";nrt(),Aa()}),yrt={};Jr(yrt,{TreeViewModule:f(()=>Gse,"TreeViewModule"),createTreeViewServices:f(()=>jse,"createTreeViewServices")});var G5t=Y(()=>{"use strict";ort(),Aa()}),vrt={};Jr(vrt,{ArchitectureModule:f(()=>Vse,"ArchitectureModule"),createArchitectureServices:f(()=>Use,"createArchitectureServices")});var U5t=Y(()=>{"use strict";hrt(),Aa()}),brt={};Jr(brt,{GitGraphModule:f(()=>Ose,"GitGraphModule"),createGitGraphServices:f(()=>Mse,"createGitGraphServices")});var V5t=Y(()=>{"use strict";Ztt(),Aa()}),xrt={};Jr(xrt,{EventModelingModule:f(()=>Qse,"EventModelingModule"),createEventModelingServices:f(()=>Hse,"createEventModelingServices")});var W5t=Y(()=>{"use strict";prt(),Aa()}),krt={};Jr(krt,{RadarModule:f(()=>Ase,"RadarModule"),createRadarServices:f(()=>_se,"createRadarServices")});var H5t=Y(()=>{"use strict";jtt(),Aa()}),Trt={};Jr(Trt,{TreemapModule:f(()=>Ise,"TreemapModule"),createTreemapServices:f(()=>Rse,"createTreemapServices")});var Y5t=Y(()=>{"use strict";Htt(),Aa()}),wrt={};Jr(wrt,{WardleyModule:f(()=>Nse,"WardleyModule"),createWardleyServices:f(()=>Dse,"createWardleyServices")});var X5t=Y(()=>{"use strict";Xtt(),Aa()});async function Kl(e,t){let r=Crt[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);fl[e]||await r();let i=fl[e].parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new Ert(i);return i.value}f(Kl,"bn");var fl,Crt,Ert,Xc=Y(()=>{"use strict";var e;jtt(),Htt(),Xtt(),Ztt(),Jtt(),trt(),nrt(),ort(),hrt(),prt(),Aa(),fl={},Crt={info:N(async()=>{let{createInfoServices:t}=await Promise.resolve().then(()=>(z5t(),grt)),r=t().Info.parser.LangiumParser;fl.info=r},"info"),packet:N(async()=>{let{createPacketServices:t}=await Promise.resolve().then(()=>(q5t(),frt)),r=t().Packet.parser.LangiumParser;fl.packet=r},"packet"),pie:N(async()=>{let{createPieServices:t}=await Promise.resolve().then(()=>(j5t(),mrt)),r=t().Pie.parser.LangiumParser;fl.pie=r},"pie"),treeView:N(async()=>{let{createTreeViewServices:t}=await Promise.resolve().then(()=>(G5t(),yrt)),r=t().TreeView.parser.LangiumParser;fl.treeView=r},"treeView"),architecture:N(async()=>{let{createArchitectureServices:t}=await Promise.resolve().then(()=>(U5t(),vrt)),r=t().Architecture.parser.LangiumParser;fl.architecture=r},"architecture"),gitGraph:N(async()=>{let{createGitGraphServices:t}=await Promise.resolve().then(()=>(V5t(),brt)),r=t().GitGraph.parser.LangiumParser;fl.gitGraph=r},"gitGraph"),eventmodeling:N(async()=>{let{createEventModelingServices:t}=await Promise.resolve().then(()=>(W5t(),xrt)),r=t().EventModel.parser.LangiumParser;fl.eventmodeling=r},"eventmodeling"),radar:N(async()=>{let{createRadarServices:t}=await Promise.resolve().then(()=>(H5t(),krt)),r=t().Radar.parser.LangiumParser;fl.radar=r},"radar"),treemap:N(async()=>{let{createTreemapServices:t}=await Promise.resolve().then(()=>(Y5t(),Trt)),r=t().Treemap.parser.LangiumParser;fl.treemap=r},"treemap"),wardley:N(async()=>{let{createWardleyServices:t}=await Promise.resolve().then(()=>(X5t(),wrt)),r=t().Wardley.parser.LangiumParser;fl.wardley=r},"wardley")}
vendor: 6,146 bytes, lines 1303-1305
1303,s(Kl,"parse"),N(Kl,"parse"),Ert=(e=class extends Error{constructor(r){let i=r.lexerErrors.map(a=>{let o=a.line!==void 0&&!isNaN(a.line)?a.line:"?",l=a.column!==void 0&&!isNaN(a.column)?a.column:"?";return`Lexer error on line ${o}, column ${l}: ${a.message}`}).join(` 1304`),n=r.parserErrors.map(a=>{let o=a.token.startLine!==void 0&&!isNaN(a.token.startLine)?a.token.startLine:"?",l=a.token.startColumn!==void 0&&!isNaN(a.token.startColumn)?a.token.startColumn:"?";return`Parse error on line ${o}, column ${l}: ${a.message}`}).join(` 1305`);super(`Parsing failed: ${i} ${n}`),this.result=r}},f(e,"vxt"),s(e,"MermaidParseError"),N(e,"MermaidParseError"),e)});function uu(e,t){var r,i,n;e.accDescr&&((r=t.setAccDescription)==null||r.call(t,e.accDescr)),e.accTitle&&((i=t.setAccTitle)==null||i.call(t,e.accTitle)),e.title&&((n=t.setDiagramTitle)==null||n.call(t,e.title))}f(uu,"ca");var Fd=Y(()=>{"use strict";s(uu,"populateCommonDb")}),an,Jse=Y(()=>{"use strict";an={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),sR,eoe=Y(()=>{"use strict";var e;sR=(e=class{constructor(r){this.init=r,this.records=this.init()}reset(){this.records=this.init()}},f(e,"wf"),s(e,"ImperativeState"),e)});function oR(){return FB({length:7})}f(oR,"pV");function Srt(e,t){let r=Object.create(null);return e.reduce((i,n)=>{let a=t(n);return r[a]||(r[a]=!0,i.push(n)),i},[])}f(Srt,"bxt");function toe(e,t,r){let i=e.indexOf(t);i===-1?e.push(r):e.splice(i,1,r)}f(toe,"WEe");function roe(e){let t=e.reduce((n,a)=>n.seq>a.seq?n:a,e[0]),r="";e.forEach(function(n){n===t?r+=" *":r+=" |"});let i=[r,t.id,t.seq];for(let n in nr.records.branches)nr.records.branches.get(n)===t.id&&i.push(n);if(ge.debug(i.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=nr.records.commits.get(t.parents[0]);toe(e,t,n),t.parents[1]&&e.push(nr.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let n=nr.records.commits.get(t.parents[0]);toe(e,t,n)}}e=Srt(e,n=>n.id),roe(e)}f(roe,"UEe");var _rt,V0,nr,Art,Lrt,Rrt,Irt,Drt,Nrt,Mrt,ioe,Ort,$rt,Brt,Prt,Frt,noe,zrt,qrt,jrt,aoe,Grt=Y(()=>{"use strict";jt(),wr(),ti(),gi(),En(),Jse(),eoe(),rs(),_rt=bi.gitGraph,V0=s(()=>da(Tt(Tt({},_rt),Ir().gitGraph)),"getConfig"),nr=new sR(()=>{let e=V0(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}}),s(oR,"getID"),s(Srt,"uniqBy"),Art=s(function(e){nr.records.direction=e},"setDirection"),Lrt=s(function(e){ge.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{nr.records.options=JSON.parse(e)}catch(t){ge.error("error while parsing gitGraph options",t.message)}},"setOptions"),Rrt=s(function(){return nr.records.options},"getOptions"),Irt=s(function(e){let t=e.msg,r=e.id,i=e.type,n=e.tags;ge.info("commit",t,r,i,n),ge.debug("Entering commit:",t,r,i,n);let a=V0();r=Vt.sanitizeText(r,a),t=Vt.sanitizeText(t,a),n=n==null?void 0:n.map(l=>Vt.sanitizeText(l,a));let o={id:r||nr.records.seq+"-"+oR(),message:t,seq:nr.records.seq++,type:i!=null?i:an.NORMAL,tags:n!=null?n:[],parents:nr.records.head==null?[]:[nr.records.head.id],branch:nr.records.currBranch};nr.records.head=o,ge.info("main branch",a.mainBranchName),nr.records.commits.has(o.id)&&ge.warn(`Commit ID ${o.id} already exists`),nr.records.commits.set(o.id,o),nr.records.branches.set(nr.records.currBranch,o.id),ge.debug("in pushCommit "+o.id)},"commit"),Drt=s(function(e){let t=e.name,r=e.order;if(t=Vt.sanitizeText(t,V0()),nr.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);nr.records.branches.set(t,nr.records.head!=null?nr.records.head.id:null),nr.records.branchConfig.set(t,{name:t,order:r}),ioe(t),ge.debug("in createBranch")},"branch"),Nrt=s(e=>{let t=e.branch,r=e.id,i=e.type,n=e.tags,a=V0();t=Vt.sanitizeText(t,a),r&&(r=Vt.sanitizeText(r,a));let o=nr.records.branches.get(nr.records.currBranch),l=nr.records.branches.get(t),h=o?nr.records.commits.get(o):void 0,u=l?nr.records.commits.get(l):void 0;if(h&&u&&h.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(nr.records.currBranch===t){let g=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw g.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},g}if(h===void 0||!h){let g=new Error(`Incorrect usage of "merge". Current branch (${nr.records.currBranch})has no commits`);throw g.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},g}if(!nr.records.branches.has(t)){let g=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw g.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},g}if(u===void 0||!u){let g=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw g.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},g}if(h===u){let g=new Error('Incorrect usage of "merge". Both branches have same head');throw g.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},g}if(r&&nr.records.commits.has(r)){let g=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw g.hash={text:`merge ${t} ${r} ${i} ${n==null?void 0:n.join(" ")}`,token:`merge ${t} ${r} ${i} ${n==null?void 0:n.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${i} ${n==null?void 0:n.join(" ")}`]},g}let d=l||"",p={id:r||`${nr.records.seq}-${oR()}`,message:`merged branch ${t} into ${nr.records.currBranch}`,seq:nr.records.seq++,parents:nr.records.head==null?[]:[nr.records.head.id,d],branch:nr.records.currBranch,type:an.MERGE,customType:i,customId:!!r,tags:n!=null?n:[]};nr.records.head=p,nr.records.commits.set(p.id,p),nr.records.branches.set(nr.records.currBranch,p.id),ge.debug(nr.records.branches),ge.debug("in mergeBranch")},"merge"),Mrt=s(function(e){let t=e.id,r=e.targetId,i=e.tags,n=e.parent;ge.debug("Entering cherryPick:",t,r,i);let a=V0();if(t=Vt.sanitizeText(t,a),r=Vt.sanitizeText(r,a),i=i==null?void 0:i.map(h=>
1305Vt.sanitizeText(h,a)),n=Vt.sanitizeText(n,a),!t||!nr.records.commits.has(t)){let h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},h}let o=nr.records.commits.get(t);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(o.parents)&&o.parents.includes(n)))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===an.MERGE&&!n)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||!nr.records.commits.has(r)){if(l===nr.records.currBranch){let p=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw p.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},p}let h=nr.records.branches.get(nr.records.currBranch);if(h===void 0||!h){let p=new Error(`Incorrect usage of "cherry-pick". Current branch (${nr.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},p}let u=nr.records.commits.get(h);if(u===void 0||!u){let p=new Error(`Incorrect usage of "cherry-pick". Current branch (${nr.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},p}let d={id:nr.records.seq+"-"+oR(),message:`cherry-picked ${o==null?void 0:o.message} into ${nr.records.currBranch}`,seq:nr.records.seq++,parents:nr.records.head==null?[]:[nr.records.head.id,o.id],branch:nr.records.currBranch,type:an.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${o.id}${o.type===an.MERGE?`|parent:${n}`:""}`]};nr.records.head=d,nr.records.commits.set(d.id,d),nr.records.branches.set(nr.records.currBranch,d.id),ge.debug(nr.records.branches),ge.debug("in cherryPick")}},"cherryPick"),ioe=s(function(e){var t;if(e=Vt.sanitizeText(e,V0()),nr.records.branches.has(e)){nr.records.currBranch=e;let r=nr.records.branches.get(nr.records.currBranch);r===void 0||!r?nr.records.head=null:nr.records.head=(t=nr.records.commits.get(r))!=null?t:null}else{let r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout"),s(toe,"upsert"),s(roe,"prettyPrintCommitHistory"),Ort=s(function(){ge.debug(nr.records.commits);let e=noe()[0];roe([e])},"prettyPrint"),$rt=s(function(){nr.reset(),Tn()},"clear"),Brt=s(function(){return[...nr.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:_r(Tt({},e),{order:parseFloat(`0.${t}`)})).sort((e,t)=>{var r,i;return((r=e.order)!=null?r:0)-((i=t.order)!=null?i:0)}).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Prt=s(function(){return nr.records.branches},"getBranches"),Frt=s(function(){return nr.records.commits},"getCommits"),noe=s(function(){let e=[...nr.records.commits.values()];return e.forEach(function(t){ge.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),zrt=s(function(){return nr.records.currBranch},"getCurrentBranch"),qrt=s(function(){return nr.records.direction},"getDirection"),jrt=s(function(){return nr.records.head},"getHead"),aoe={commitType:an,getConfig:V0,setDirection:Art,setOptions:Lrt,getOptions:Rrt,commit:Irt,branch:Drt,merge:Nrt,cherryPick:Mrt,checkout:ioe,prettyPrint:Ort,clear:$rt,getBranchesAsObjArray:Brt,getBranches:Prt,getCommits:Frt,getCommitsArray:noe,getCurrentBranch:zrt,getDirection:qrt,getHead:jrt,setAccTitle:wn,getAccTitle:Pn,getAccDescription:zn,setAccDescription:Fn,setDiagramTitle:qn,getDiagramTitle:Cn}}),Urt,Vrt,Wrt,Hrt,Yrt,Xrt,Krt,Zrt,K5t=Y(()=>{"use strict";Xc(),jt(),Fd(),Grt(),Jse(),Urt=s((e,t)=>{uu(e,t),e.dir&&t.setDirection(e.dir);for(let r of e.statements)Vrt(r,t)},"populate"),Vrt=s((e,t)=>{let r={Commit:s(i=>t.commit(Wrt(i)),"Commit"),Branch:s(i=>t.branch(Hrt(i)),"Branch"),Merge:s(i=>t.merge(Yrt(i)),"Merge"),Checkout:s(i=>t.checkout(Xrt(i)),"Checkout"),CherryPicking:s(i=>t.cherryPick(Krt(i)),"CherryPicking")}[e.$type];r?r(e):ge.error(`Unknown statement type: ${e.$type}`)}
1305,"parseStatement"),Wrt=s(e=>{var t,r;return{id:e.id,msg:(t=e.message)!=null?t:"",type:e.type!==void 0?an[e.type]:an.NORMAL,tags:(r=e.tags)!=null?r:void 0}},"parseCommit"),Hrt=s(e=>{var t;return{name:e.name,order:(t=e.order)!=null?t:0}},"parseBranch"),Yrt=s(e=>{var t,r;return{branch:e.branch,id:(t=e.id)!=null?t:"",type:e.type!==void 0?an[e.type]:void 0,tags:(r=e.tags)!=null?r:void 0}},"parseMerge"),Xrt=s(e=>e.branch,"parseCheckout"),Krt=s(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Zrt={parse:s(async e=>{let t=await Kl("gitGraph",e);ge.debug(t),Urt(t,aoe)},"parse")}}),zd,qd,Kc,du,W0,dw,lR,cR,Qrt,H0,To,wo,pw,jv,gw,pu,Ci,Jrt,soe,ooe,eit,tit,rit,iit,nit,ait,sit,oit,lit,cit,hit,uit,loe,dit,Gv,pit,git,fit,mit,yit,vit,Z5t=Y(()=>{"use strict";ui(),vr(),jt(),wr(),Jse(),zd=10,qd=40,Kc=4,du=2,W0=8,dw=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),lR=12,cR=new Set(["redux-color","redux-dark-color"]),Qrt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H0=s((e,t,r=!1)=>r&&e>0?(e-1)%(t-1)+1:e%t,"calcColorIndex"),To=new Map,wo=new Map,pw=30,jv=new Map,gw=[],pu=0,Ci="LR",Jrt=s(()=>{To.clear(),wo.clear(),jv.clear(),pu=0,gw=[],Ci="LR"},"clear"),soe=s(e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(r=>{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=r.trim(),t.appendChild(i)}),t},"drawText"),ooe=s(e=>{let t,r,i;return Ci==="BT"?(r=s((n,a)=>n<=a,"comparisonFunc"),i=1/0):(r=s((n,a)=>n>=a,"comparisonFunc"),i=0),e.forEach(n=>{var o,l;let a=Ci==="TB"||Ci=="BT"?(o=wo.get(n))==null?void 0:o.y:(l=wo.get(n))==null?void 0:l.x;a!==void 0&&r(a,i)&&(t=n,i=a)}),t},"findClosestParent"),eit=s(e=>{let t="",r=1/0;return e.forEach(i=>{let n=wo.get(i).y;n<=r&&(t=i,r=n)}),t||void 0},"findClosestParentBT"),tit=s((e,t,r)=>{let i=r,n=r,a=[];e.forEach(o=>{let l=t.get(o);if(!l)throw new Error(`Commit not found for key ${o}`);l.parents.length?(i=iit(l),n=Math.max(i,n)):a.push(l),nit(l,i)}),i=n,a.forEach(o=>{ait(o,i,r)}),e.forEach(o=>{let l=t.get(o);if(l!=null&&l.parents.length){let h=eit(l.parents);i=wo.get(h).y-qd,i<=n&&(n=i);let u=To.get(l.branch).pos,d=i-zd;wo.set(l.id,{x:u,y:d})}})},"setParallelBTPos"),rit=s(e=>{var i;let t=ooe(e.parents.filter(n=>n!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);let r=(i=wo.get(t))==null?void 0:i.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),iit=s(e=>rit(e)+qd,"calculateCommitPosition"),nit=s((e,t)=>{let r=To.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);let i=r.pos,n=t+zd;return wo.set(e.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),ait=s((e,t,r)=>{let i=To.get(e.branch);if(!i)throw new Error(`Branch not found for commit ${e.id}`);let n=t+r,a=i.pos;
vendor: 4,248 bytes, lines 1305-1317
1305wo.set(e.id,{x:a,y:n})},"setRootPosition"),sit=s((e,t,r,i,n,a)=>{let{theme:o}=Ue(),l=dw.has(o!=null?o:""),h=cR.has(o!=null?o:""),u=Qrt.has(o!=null?o:"");if(a===an.HIGHLIGHT)e.append("rect").attr("x",r.x-10+(l?3:0)).attr("y",r.y-10+(l?3:0)).attr("width",l?14:20).attr("height",l?14:20).attr("class",`commit ${t.id} commit-highlight${H0(n,W0,h)} ${i}-outer`),e.append("rect").attr("x",r.x-6+(l?2:0)).attr("y",r.y-6+(l?2:0)).attr("width",l?8:12).attr("height",l?8:12).attr("class",`commit ${t.id} commit${H0(n,W0,h)} ${i}-inner`);else if(a===an.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",l?7:10).attr("class",`commit ${t.id} ${i}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",l?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",l?2.5:2.75).attr("fill",u?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",u?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`);else{let d=e.append("circle");if(d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",l?7:10),d.attr("class",`commit ${t.id} commit${H0(n,W0,h)}`),a===an.MERGE){let p=e.append("circle");p.attr("cx",r.x),p.attr("cy",r.y),p.attr("r",l?5:6),p.attr("class",`commit ${i} ${t.id} commit${H0(n,W0,h)}`)}if(a===an.REVERSE){let p=e.append("path"),g=l?4:5;p.attr("d",`M ${r.x-g},${r.y-g}L${r.x+g},${r.y+g}M${r.x-g},${r.y+g}L${r.x+g},${r.y-g}`).attr("class",`commit ${i} ${t.id} commit${H0(n,W0,h)}`)}}},"drawCommitBullet"),oit=s((e,t,r,i,n)=>{var a;if(t.type!==an.CHERRY_PICK&&(t.customId&&t.type===an.MERGE||t.type!==an.MERGE)&&n.showCommitLabel){let o=e.append("g"),l=o.insert("rect").attr("class","commit-label-bkg"),h=o.append("text").attr("x",i).attr("y",r.y+25).attr("class","commit-label").text(t.id),u=(a=h.node())==null?void 0:a.getBBox();if(u&&(l.attr("x",r.posWithOffset-u.width/2-du).attr("y",r.y+13.5).attr("width",u.width+2*du).attr("height",u.height+2*du),Ci==="TB"||Ci==="BT"?(l.attr("x",r.x-(u.width+4*Kc+5)).attr("y",r.y-12),h.attr("x",r.x-(u.width+4*Kc)).attr("y",r.y+u.height-12)):h.attr("x",r.posWithOffset-u.width/2),n.rotateCommitLabel))if(Ci==="TB"||Ci==="BT")h.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),l.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let d=-7.5-(u.width+10)/25*9.5,p=10+u.width/25*8.5;o.attr("transform","translate("+d+", "+p+") rotate(-45, "+i+", "+r.y+")")}}},"drawCommitLabel"),lit=s((e,t,r,i)=>{var n;if(t.tags.length>0){let a=0,o=0,l=0,h=[];for(let u of t.tags.reverse()){let d=e.insert("polygon"),p=e.append("circle"),g=e.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(u),m=(n=g.node())==null?void 0:n.getBBox();if(!m)throw new Error("Tag bbox not found");o=Math.max(o,m.width),l=Math.max(l,m.height),g.attr("x",r.posWithOffset-m.width/2),h.push({tag:g,hole:p,rect:d,yOffset:a}),a+=20}for(let{tag:u,hole:d,rect:p,yOffset:g}of h){let m=l/2,y=r.y-19.2-g;if(p.attr("class","tag-label-bkg").attr("points",` 1306 ${i-o/2-Kc/2},${y+du} 1307 ${i-o/2-Kc/2},${y-du} 1308 ${r.posWithOffset-o/2-Kc},${y-m-du} 1309 ${r.posWithOffset+o/2+Kc},${y-m-du} 1310 ${r.posWithOffset+o/2+Kc},${y+m+du} 1311 ${r.posWithOffset-o/2-Kc},${y+m+du}`),d.attr("cy",y).attr("cx",i-o/2+Kc/2).attr("r",1.5).attr("class","tag-hole"),Ci==="TB"||Ci==="BT"){let x=i+g;p.attr("class","tag-label-bkg").attr("points",` 1312 ${r.x},${x+2} 1313 ${r.x},${x-2} 1314 ${r.x+zd},${x-m-2} 1315 ${r.x+zd+o+4},${x-m-2} 1316 ${r.x+zd+o+4},${x+m+2} 1317 ${r.x+zd},${x+m+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),d.attr("cx",r.x+Kc/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),u.attr("x",r.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+i+")")}}}},"drawCommitTags"),cit=s(e=>{var t;switch((t=e.customType)!=null?t:e.type){case an.NORMAL:return"commit-normal";case an.REVERSE:return"commit-reverse";case an.HIGHLIGHT:return"commit-highlight";case an.MERGE:return"commit-merge";
1317case an.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),hit=s((e,t,r,i)=>{var a,o,l;let n={x:0,y:0};if(e.parents.length>0){let h=ooe(e.parents);if(h){let u=(a=i.get(h))!=null?a:n;return t==="TB"?u.y+qd:t==="BT"?((o=i.get(e.id))!=null?o:n).y-qd:u.x+qd}}else return t==="TB"?pw:t==="BT"?((l=i.get(e.id))!=null?l:n).y-qd:0;return 0},"calculatePosition"),uit=s((e,t,r)=>{var h,u,d;let i=Ci==="BT"&&r?t:t+zd,n=(h=To.get(e.branch))==null?void 0:h.pos,a=Ci==="TB"||Ci==="BT"?(u=To.get(e.branch))==null?void 0:u.pos:i;if(a===void 0||n===void 0)throw new Error(`Position were undefined for commit ${e.id}`);let o=dw.has((d=Ue().theme)!=null?d:""),l=Ci==="TB"||Ci==="BT"?i:n+(o?lR/2+1:-2);return{x:a,y:l,posWithOffset:i}},"getCommitPosition"),loe=s((e,t,r,i)=>{var p;let n=e.append("g").attr("class","commit-bullets"),a=e.append("g").attr("class","commit-labels"),o=Ci==="TB"||Ci==="BT"?pw:0,l=[...t.keys()],h=(p=i.parallelCommits)!=null?p:!1,u=s((g,m)=>{var C,w;let y=(C=t.get(g))==null?void 0:C.seq,x=(w=t.get(m))==null?void 0:w.seq;return y!==void 0&&x!==void 0?y-x:0},"sortKeys"),d=l.sort(u);Ci==="BT"&&(h&&tit(d,t,o),d=d.reverse()),d.forEach(g=>{var x,C,w;let m=t.get(g);if(!m)throw new Error(`Commit not found for key ${g}`);h&&(o=hit(m,Ci,o,wo));let y=uit(m,o,h);if(r){let _=cit(m),S=(x=m.customType)!=null?x:m.type,R=(w=(C=To.get(m.branch))==null?void 0:C.index)!=null?w:0;sit(n,m,y,_,R,S),oit(a,m,y,o,i),lit(a,m,y,o)}Ci==="TB"||Ci==="BT"?wo.set(m.id,{x:y.x,y:y.posWithOffset}):wo.set(m.id,{x:y.posWithOffset,y:y.y}),o=Ci==="BT"&&h?o+qd:o+qd+zd,o>pu&&(pu=o)})},"drawCommits"),dit=s((e,t,r,i,n)=>{let a=(Ci==="TB"||Ci==="BT"?r.x<i.x:r.y<i.y)?t.branch:e.branch,o=s(h=>h.branch===a,"isOnBranchToGetCurve"),l=s(h=>h.seq>e.seq&&h.seq<t.seq,"isBetweenCommits");return[...n.values()].some(h=>l(h)&&o(h))},"shouldRerouteArrow"),Gv=s((e,t,r=0)=>{let i=e+Math.abs(e-t)/2;if(r>5)return i;if(gw.every(a=>Math.abs(a-i)>=10))return gw.push(i),i;let n=Math.abs(e-t);return Gv(e,t-n/5,r+1)},"findLane"),pit=s((e,t,r,i)=>{var x,C,w,_,S;let{theme:n}=Ue(),a=cR.has(n!=null?n:""),o=wo.get(t.id),l=wo.get(r.id);if(o===void 0||l===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);let h=dit(t,r,o,l,i),u="",d="",p=0,g=0,m=(x=To.get(r.branch))==null?void 0:x.index;r.type===an.MERGE&&t.id!==r.parents[0]&&(m=(C=To.get(t.branch))==null?void 0:C.index);let y;if(h){u="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",p=10,g=10;let R=o.y<l.y?Gv(o.y,l.y):Gv(l.y,o.y),b=o.x<l.x?Gv(o.x,l.x):Gv(l.x,o.x);Ci==="TB"?o.x<l.x?y=`M ${o.x} ${o.y} L ${b-p} ${o.y} ${d} ${b} ${o.y+g} L ${b} ${l.y-p} ${u} ${b+g} ${l.y} L ${l.x} ${l.y}`:(m=(w=To.get(t.branch))==null?void 0:w.index,y=`M ${o.x} ${o.y} L ${b+p} ${o.y} ${u} ${b} ${o.y+g} L ${b} ${l.y-p} ${d} ${b-g} ${l.y} L ${l.x} ${l.y}`):Ci==="BT"?o.x<l.x?y=`M ${o.x} ${o.y} L ${b-p} ${o.y} ${u} ${b} ${o.y-g} L ${b} ${l.y+p} ${d} ${b+g} ${l.y} L ${l.x} ${l.y}`:(m=(_=To.get(t.branch))==null?void 0:_.index,y=`M ${o.x} ${o.y} L ${b+p} ${o.y} ${d} ${b} ${o.y-g} L ${b} ${l.y+p} ${u} ${b-g} ${l.y} L ${l.x} ${l.y}`):o.y<l.y?y=`M ${o.x} ${o.y} L ${o.x} ${R-p} ${u} ${o.x+g} ${R} L ${l.x-p} ${R} ${d} ${l.x} ${R+g} L ${l.x} ${l.y}`:(m=(S=To.get(t.branch))==null?void 0:S.index,y=`M ${o.x} ${o.y} L ${o.x} ${R+p} ${d} ${o.x+g} ${R} L ${l.x-p} ${R} ${u} ${l.x} ${R-g} L ${l.x} ${l.y}`)}else u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",p=20,g=20,Ci==="TB"?(o.x<l.x&&(r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${o.x} ${l.y-p} ${u} ${o.x+g} ${l.y} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${l.x-p} ${o.y} ${d} ${l.x} ${o.y+g} L ${l.x} ${l.y}`),o.x>l.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",p=20,g=20,r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${o.x} ${l.y-p} ${d} ${o.x-g} ${l.y} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${l.x+p} ${o.y} ${u} ${l.x} ${o.y+g} L ${l.x} ${l.y}`),o.x===l.x&&(y=`M ${o.x} ${o.y} L ${l.x} ${l.y}`)):Ci==="BT"?(o.x<l.x&&(r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${o.x} ${l.y+p} ${d} ${o.x+g} ${l.y} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${l.x-p} ${o.y} ${u} ${l.x} ${o.y-g} L ${l.x} ${l.y}`),o.x>l.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",p=20,g=20,r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${o.x} ${l.y+p} ${u} ${o.x-g} ${l.y} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${l.x+p} ${o.y} ${d} ${l.x} ${o.y-g} L ${l.x} ${l.y}`),o.x===l.x&&(y=`M ${o.x} ${o.y} L ${l.x} ${l.y}`)):(o.y<l.y&&(r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${l.x-p} ${o.y} ${d} ${l.x} ${o.y+g} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${o.x} ${l.y-p} ${u} ${o.x+g} ${l.y} L ${l.x} ${l.y}`),o.y>
vendor: 8,156 bytes, lines 1317-1378
1317l.y&&(r.type===an.MERGE&&t.id!==r.parents[0]?y=`M ${o.x} ${o.y} L ${l.x-p} ${o.y} ${u} ${l.x} ${o.y-g} L ${l.x} ${l.y}`:y=`M ${o.x} ${o.y} L ${o.x} ${l.y+p} ${d} ${o.x+g} ${l.y} L ${l.x} ${l.y}`),o.y===l.y&&(y=`M ${o.x} ${o.y} L ${l.x} ${l.y}`));if(y===void 0)throw new Error("Line definition not found");e.append("path").attr("d",y).attr("class","arrow arrow"+H0(m,W0,a))},"drawArrow"),git=s((e,t)=>{let r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(i=>{let n=t.get(i);n.parents&&n.parents.length>0&&n.parents.forEach(a=>{pit(r,t.get(a),n,t)})})},"drawArrows"),fit=s((e,t,r,i)=>{let{look:n,theme:a,themeVariables:o}=Ue(),{dropShadow:l,THEME_COLOR_LIMIT:h}=o,u=dw.has(a!=null?a:""),d=cR.has(a!=null?a:""),p=e.append("g");t.forEach((g,m)=>{var I;let y=H0(m,u?h:W0,d),x=(I=To.get(g.name))==null?void 0:I.pos;if(x===void 0)throw new Error(`Position not found for branch ${g.name}`);let C=Ci==="TB"||Ci==="BT"?x:u?x+lR/2+1:x-2,w=p.append("line");w.attr("x1",0),w.attr("y1",C),w.attr("x2",pu),w.attr("y2",C),w.attr("class","branch branch"+y),Ci==="TB"?(w.attr("y1",pw),w.attr("x1",x),w.attr("y2",pu),w.attr("x2",x)):Ci==="BT"&&(w.attr("y1",pu),w.attr("x1",x),w.attr("y2",pw),w.attr("x2",x)),gw.push(C);let _=g.name,S=soe(_),R=p.insert("rect"),b=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+y);b.node().appendChild(S);let v=S.getBBox(),k=u?0:4,E=u?16:0,A=u?lR:0;n==="neo"&&R.attr("data-look","neo"),R.attr("class","branchLabelBkg label"+y).attr("style",n==="neo"?`filter:${u?`url(#${i}-drop-shadow)`:l}`:"").attr("rx",k).attr("ry",k).attr("x",-v.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+E).attr("height",v.height+4+A),b.attr("transform","translate("+(-v.width-14-(r.rotateCommitLabel===!0?30:0)+E/2)+", "+(C-v.height/2-2)+")"),Ci==="TB"?(R.attr("x",x-v.width/2-10).attr("y",0),b.attr("transform","translate("+(x-v.width/2-5)+", 0)"),u&&(R.attr("transform",`translate(${-E/2-3}, ${-A-10})`),b.attr("transform","translate("+(x-v.width/2-5)+", "+(-A*2+7)+")"))):Ci==="BT"?(R.attr("x",x-v.width/2-10).attr("y",pu),b.attr("transform","translate("+(x-v.width/2-5)+", "+pu+")"),u&&(R.attr("transform",`translate(${-E/2-3}, ${A+10})`),b.attr("transform","translate("+(x-v.width/2-5)+", "+(pu+A*2+4)+")"))):R.attr("transform","translate(-19, "+(C-12-A/2)+")")})},"drawBranches"),mit=s(function(e,t,r,i,n){return To.set(e,{pos:t,index:r}),t+=50+(n?40:0)+(Ci==="TB"||Ci==="BT"?i.width/2:0),t},"setBranchPosition"),yit=s(function(e,t,r,i){var w,_;Jrt(),ge.debug("in gitgraph renderer",e+` 1318`,"id:",t,r);let n=i.db;if(!n.getConfig){ge.error("getConfig method is not available on db");return}let a=n.getConfig(),o=(w=a.rotateCommitLabel)!=null?w:!1;jv=n.getCommits();let l=n.getBranchesAsObjArray();Ci=n.getDirection();let h=Lt(`[id="${t}"]`),{look:u,theme:d,themeVariables:p}=Ue(),{useGradient:g,gradientStart:m,gradientStop:y,filterColor:x}=p;if(g){let S=h.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");S.append("stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),S.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}u==="neo"&&dw.has(d!=null?d:"")&&h.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",x);let C=0;l.forEach((S,R)=>{var I;let b=soe(S.name),v=h.append("g"),k=v.insert("g").attr("class","branchLabel"),E=k.insert("g").attr("class","label branch-label");(I=E.node())==null||I.appendChild(b);let A=b.getBBox();C=mit(S.name,C,R,A,o),E.remove(),k.remove(),v.remove()}),loe(h,jv,!1,a),a.showBranches&&fit(h,l,a,t),git(h,jv),loe(h,jv,!0,a),ri.insertTitle(h,"gitTitleText",(_=a.titleTopMargin)!=null?_:0,n.getDiagramTitle()),y6(void 0,h,a.diagramPadding,a.useMaxWidth)},"draw"),vit={draw:yit}}),coe,hoe,bit,xit,kit,Tit,wit,Cit,Eit,Sit,_it,Q5t=Y(()=>{"use strict";ti(),coe=8,hoe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),bit=new Set(["redux-color","redux-dark-color"]),xit=new Set(["neo","neo-dark"]),kit=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Tit=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wit=s(e=>{let{svgId:t}=e,r="";if(e.useGradient&&t)for(let i=0;i<e.THEME_COLOR_LIMIT;i++)r+=` 1319 .label${i} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};} 1320 `;return r},"genGitGraphGradient"),Cit=s(e=>{let t=Ir(),{theme:r,themeVariables:i}=t,{borderColorArray:n}=i,a=hoe.has(r);if(xit.has(r)){let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)if(l===0)o+=` 1321 .branch-label${l} { fill: ${e.nodeBorder};} 1322 .commit${l} { stroke: ${e.nodeBorder}; } 1323 .commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; } 1324 .arrow${l} { stroke: ${e.nodeBorder}; } 1325 .commit-bullets { fill: ${e.nodeBorder}; } 1326 .commit-cherry-pick${l} { stroke: ${e.nodeBorder}; } 1327 ${wit(e)}`;else{let h=l%coe;o+=` 1328 .branch-label${l} { fill: ${e["gitBranchLabel"+h]}; } 1329 .commit${l} { stroke: ${e["git"+h]}; fill: ${e["git"+h]}; } 1330 .commit-highlight${l} { stroke: ${e["gitInv"+h]}; fill: ${e["gitInv"+h]}; } 1331 .arrow${l} { stroke: ${e["git"+h]}; } 1332 `}return o}else if(bit.has(r)){let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)if(l===0)o+=` 1333 .branch-label${l} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:""} } 1334 .commit${l} { stroke: ${e.nodeBorder}; } 1335 .commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; } 1336 .label${l} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:""} } 1337 .arrow${l} { stroke: ${e.nodeBorder}; } 1338 .commit-bullets { fill: ${e.nodeBorder}; } 1339 `;else{let h=l%n.length;o+=` 1340 .branch-label${l} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:""} } 1341 .commit${l} { stroke: ${n[h]}; fill: ${n[h]}; } 1342 .commit-highlight${l} { stroke: ${n[h]}; fill: ${n[h]}; } 1343 .label${l} { fill: ${kit.has(r)?e.mainBkg:n[h]}; stroke: ${n[h]}; stroke-width: ${e.strokeWidth}; } 1344 .arrow${l} { stroke: ${n[h]}; } 1345 `}return o}else{let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=` 1346 .branch-label${l} { fill: ${e.nodeBorder}; ${a?`font-weight:${e.noteFontWeight}`:""} } 1347 .commit${l} { stroke: ${e.nodeBorder}; } 1348 .commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; } 1349 .label${l} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${a?`font-weight:${e.noteFontWeight}`:""}} 1350 .arrow${l} { stroke: ${e.nodeBorder}; } 1351 .commit-bullets { fill: ${e.nodeBorder}; } 1352 .commit-cherry-pick${l} { stroke: ${e.nodeBorder}; } 1353 `;return o}},"genColor"),Eit=s(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(t,r)=>r).map(t=>{let r=t%coe;return` 1354 .branch-label${t} { fill: ${e["gitBranchLabel"+r]}; } 1355 .commit${t} { stroke: ${e["git"+r]}; fill: ${e["git"+r]}; } 1356 .commit-highlight${t} { stroke: ${e["gitInv"+r]}; fill: ${e["gitInv"+r]}; } 1357 .label${t} { fill: ${e["git"+r]}; } 1358 .arrow${t} { stroke: ${e["git"+r]}; } 1359 `}).join(` 1360`)}`,"normalTheme"),Sit=s(e=>{var n;let t=Ir(),{theme:r}=t,i=Tit.has(r);return` 1361 .commit-id, 1362 .commit-msg, 1363 .branch-label { 1364 fill: lightgrey; 1365 color: lightgrey; 1366 font-family: 'trebuchet ms', verdana, arial, sans-serif; 1367 font-family: var(--mermaid-font-family); 1368 } 1369 1370 ${i?Cit(e):Eit(e)} 1371 1372 .branch { 1373 stroke-width: ${e.strokeWidth}; 1374 stroke: ${(n=e.commitLineColor)!=null?n:e.lineColor}; 1375 stroke-dasharray: ${i?"4 2":"2"}; 1376 } 1377 .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${i?e.nodeBorder:e.commitLabelColor}; ${i?`font-weight:${e.noteFontWeight};`:""}} 1378 .commit-label-bkg { font-size: ${e.commitLabelFontSize};
1378 fill: ${i?"transparent":e.commitLabelBackground}; opacity: ${i?"":.5}; } 1379 .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} 1380 .tag-label-bkg { fill: ${i?e.mainBkg:e.tagLabelBackground}; stroke: ${i?e.nodeBorder:e.tagLabelBorder}; ${i?`filter:${e.dropShadow}`:""} } 1381 .tag-hole { fill: ${e.textColor}; } 1382 1383 .commit-merge { 1384 stroke: ${i?e.mainBkg:e.primaryColor}; 1385 fill: ${i?e.mainBkg:e.primaryColor}; 1386 } 1387 .commit-reverse { 1388 stroke: ${i?e.mainBkg:e.primaryColor}; 1389 fill: ${i?e.mainBkg:e.primaryColor}; 1390 stroke-width: ${i?e.strokeWidth:3}; 1391 } 1392 .commit-highlight-outer { 1393 } 1394 .commit-highlight-inner { 1395 stroke: ${i?e.mainBkg:e.primaryColor}; 1396 fill: ${i?e.mainBkg:e.primaryColor}; 1397 } 1398 1399 .arrow { 1400 /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ 1401 stroke-width: ${hoe.has(r)?e.strokeWidth:8}; 1402 stroke-linecap: round; 1403 fill: none 1404 } 1405 .gitTitleText { 1406 text-anchor: middle; 1407 font-size: 18px; 1408 fill: ${e.textColor}; 1409 } 1410`},"getStyles"),_it=Sit}),Ait={};Jr(Ait,{diagram:f(()=>Lit,"diagram")});var Lit,J5t=Y(()=>{"use strict";K5t(),Grt(),Z5t(),Q5t(),Lit={parser:Zrt,db:aoe,renderer:vit,styles:_it}}),hR,Rit,ewt=Y(()=>{"use strict";hR=(function(){var e=s(function(j,D,P,F){for(P=P||{},F=j.length;F--;P[j[F]]=D);return P},"o"),t=[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],i=[1,27],n=[1,28],a=[1,29],o=[1,30],l=[1,31],h=[1,32],u=[1,33],d=[1,34],p=[1,9],g=[1,10],m=[1,11],y=[1,12],x=[1,13],C=[1,14],w=[1,15],_=[1,16],S=[1,19],R=[1,20],b=[1,21],v=[1,22],k=[1,23],E=[1,25],A=[1,35],I={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(j,D,P,F,U,z,V){var W=z.length-1;switch(U){case 1:return z[W-1];case 2:this.$=[];break;case 3:z[W-1].push(z[W]),this.$=z[W-1];break;case 4:case 5:this.$=z[W];break;case 6:case 7:this.$=[];break;case 8:F.setWeekday("monday");break;case 9:F.setWeekday("tuesday");break;case 10:F.setWeekday("wednesday");break;case 11:F.setWeekday("thursday");break;case 12:F.setWeekday("friday");break;case 13:F.setWeekday("saturday");break;case 14:F.setWeekday("sunday");break;case 15:F.setWeekend("friday");break;case 16:F.setWeekend("saturday");break;case 17:F.setDateFormat(z[W].substr(11)),this.$=z[W].substr(11);break;case 18:F.enableInclusiveEndDates(),this.$=z[W].substr(18);break;case 19:F.TopAxis(),this.$=z[W].substr(8);break;case 20:F.setAxisFormat(z[W].substr(11)),this.$=z[W].substr(11);break;case 21:F.setTickInterval(z[W].substr(13)),this.$=z[W].substr(13);break;case 22:F.setExcludes(z[W].substr(9)),this.$=z[W].substr(9);break;case 23:F.setIncludes(z[W].substr(9)),this.$=z[W].substr(9);break;case 24:F.setTodayMarker(z[W].substr(12)),this.$=z[W].substr(12);break;case 27:F.setDiagramTitle(z[W].substr(6)),this.$=z[W].substr(6);break;case 28:this.$=z[W].trim(),F.setAccTitle(this.$);break;case 29:case 30:this.$=z[W].trim(),F.setAccDescription(this.$);break;case 31:F.addSection(z[W].substr(8)),this.$=z[W].substr(8);break;case 33:F.addTask(z[W-1],z[W]),this.$="task";break;case 34:this.$=z[W-1],F.setClickEvent(z[W-1],z[W],null);break;case 35:this.$=z[W-2],F.setClickEvent(z[W-2],z[W-1],z[W]);break;case 36:this.$=z[W-2],F.setClickEvent(z[W-2],z[W-1],null),F.setLink(z[W-2],z[W]);break;case 37:this.$=z[W-3],F.setClickEvent(z[W-3],z[W-2],z[W-1]),F.setLink(z[W-3],z[W]);break;case 38:this.$=z[W-2],F.setClickEvent(z[W-2],z[W],null),F.setLink(z[W-2],z[W-1]);break;case 39:this.$=z[W-3],F.setClickEvent(z[W-3],z[W-1],z[W]),F.setLink(z[W-3],z[W-2]);break;case 40:this.$=z[W-1],F.setLink(z[W-1],z[W]);break;case 41:case 47:this.$=z[W-1]+" "+z[W];break;case 42:case 43:case 45:this.$=z[W-2]+" "+z[W-1]+" "+z[W];break;case 44:case 46:this.$=z[W-3]+" "+z[W-2]+" "+z[W-1]+" "+z[W];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:a,16:o,17:l,18:h,19:18,20:u,21:d,22:p,23:g,24:m,25:y,26:x,27:C,28:w,29:_,30:S,31:R,33:b,35:v,36:k,37:24,38:E,40:A},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:a,16:o,17:l,18:h,19:18,20:u,21:d,22:p,23:g,24:m,25:y,26:x,27:C,28:w,29:_,30:S,31:R,33:b,35:v,36:k,37:24,38:E,40:A},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:s(function(j,D){if(D.recoverable)this.trace(j);else{var P=new Error(j);throw P.hash=D,P}}
vendor: 10,703 bytes, lines 1410-1415
1410,"parseError"),parse:s(function(j){var D=this,P=[0],F=[],U=[null],z=[],V=this.table,W="",X=0,J=0,H=0,te=2,ie=1,oe=z.slice.call(arguments,1),he=Object.create(this.lexer),pe={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(pe.yy[se]=this.yy[se]);he.setInput(j,pe.yy),pe.yy.lexer=he,pe.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var le=he.yylloc;z.push(le);var ue=he.options&&he.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(at){P.length=P.length-2*at,U.length=U.length-at,z.length=z.length-at}f(de,"Te"),s(de,"popStack");function we(){var at;return at=F.pop()||he.lex()||ie,typeof at!="number"&&(at instanceof Array&&(F=at,at=F.pop()),at=D.symbols_[at]||at),at}f(we,"ue"),s(we,"lex");for(var De,Ge,be,qe,Ie,Be,ke={},Qe,Pe,ht,Xe;;){if(be=P[P.length-1],this.defaultActions[be]?qe=this.defaultActions[be]:((De===null||typeof De>"u")&&(De=we()),qe=V[be]&&V[be][De]),typeof qe>"u"||!qe.length||!qe[0]){var dt="";Xe=[];for(Qe in V[be])this.terminals_[Qe]&&Qe>te&&Xe.push("'"+this.terminals_[Qe]+"'");he.showPosition?dt="Parse error on line "+(X+1)+`: 1411`+he.showPosition()+` 1412Expecting `+Xe.join(", ")+", got '"+(this.terminals_[De]||De)+"'":dt="Parse error on line "+(X+1)+": Unexpected "+(De==ie?"end of input":"'"+(this.terminals_[De]||De)+"'"),this.parseError(dt,{text:he.match,token:this.terminals_[De]||De,line:he.yylineno,loc:le,expected:Xe})}if(qe[0]instanceof Array&&qe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+De);switch(qe[0]){case 1:P.push(De),U.push(he.yytext),z.push(he.yylloc),P.push(qe[1]),De=null,Ge?(De=Ge,Ge=null):(J=he.yyleng,W=he.yytext,X=he.yylineno,le=he.yylloc,H>0&&H--);break;case 2:if(Pe=this.productions_[qe[1]][1],ke.$=U[U.length-Pe],ke._$={first_line:z[z.length-(Pe||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(Pe||1)].first_column,last_column:z[z.length-1].last_column},ue&&(ke._$.range=[z[z.length-(Pe||1)].range[0],z[z.length-1].range[1]]),Be=this.performAction.apply(ke,[W,J,X,pe.yy,qe[1],U,z].concat(oe)),typeof Be<"u")return Be;Pe&&(P=P.slice(0,-1*Pe*2),U=U.slice(0,-1*Pe),z=z.slice(0,-1*Pe)),P.push(this.productions_[qe[1]][0]),U.push(ke.$),z.push(ke._$),ht=V[P[P.length-2]][P[P.length-1]],P.push(ht);break;case 3:return!0}}return!0},"parse")},$=(function(){var j={EOF:1,parseError:s(function(D,P){if(this.yy.parser)this.yy.parser.parseError(D,P);else throw new Error(D)},"parseError"),setInput:s(function(D,P){return this.yy=P||this.yy||{},this._input=D,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 D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var P=D.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),D},"input"),unput:s(function(D){var P=D.length,F=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.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:F?(F.length===U.length?this.yylloc.first_column:0)+U[U.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-P]),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). 1413`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(D){this.unput(this.match.slice(D))},"less"),pastInput:s(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var D=this.pastInput(),P=new Array(D.length+1).join("-");return D+this.upcomingInput()+` 1414`+P+"^"},"showPosition"),test_match:s(function(D,P){var F,U,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))),U=D[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,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(D[0].length),this.matched+=D[0],F=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var V in z)this[V]=z[V];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,P,F,U;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),V=0;V<z.length;V++)if(F=this._input.match(this.rules[z[V]]),F&&(!P||F[0].length>P[0].length)){if(P=F,U=V,this.options.backtrack_lexer){if(D=this.test_match(F,z[V]),D!==!1)return D;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(D=this.test_match(P,z[U]),D!==!1?D:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1415`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var D=this.next();return D||this.lex()},"lex"),begin:s(function(D){this.conditionStack.push(D)},"begin"),popState:s(function(){var D=this.conditionStack.length-1;return D>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(D){return D=this.conditionStack.length-1-Math.abs(D||0),D>=0?this.conditionStack[D]:"INITIAL"},"topState"),pushState:s(function(D){this.begin(D)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(D,P,F,U){var z=U;switch(F){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return j})();I.lexer=$;function O(){this.yy={}}return f(O,"D"),s(O,"Parser"),O.prototype=I,I.Parser=O,new O})(),hR.parser=hR,Rit=hR}),twt=Xo((e,t)=>{"use strict";
vendor: 3,458 bytes, line 1415
1415(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=i()})(e,(function(){"use strict";var r="day";return function(i,n,a){var o=s(function(u){return u.add(4-u.isoWeekday(),r)},"a"),l=n.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,p,g,m,y=o(this),x=(d=this.isoWeekYear(),p=this.$u,g=(p?a.utc:a)().year(d).startOf("year"),m=4-g.isoWeekday(),g.isoWeekday()>4&&(m+=7),g.add(m,r));return y.diff(x,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var h=l.startOf;l.startOf=function(u,d){var p=this.$utils(),g=!!p.u(d)||d;return p.p(u)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(u,d)}}}))}),rwt=Xo((e,t)=>{"use strict";(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=i()})(e,(function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,a=/\d\d/,o=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,h={},u=s(function(C){return(C=+C)+(C>68?1900:2e3)},"a"),d=s(function(C){return function(w){this[C]=+w}},"f"),p=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var _=w.match(/([+-]|\d\d)/g),S=60*_[1]+(+_[2]||0);return S===0?0:_[0]==="+"?-S:S})(C)}],g=s(function(C){var w=h[C];return w&&(w.indexOf?w:w.s.concat(w.f))},"u"),m=s(function(C,w){var _,S=h.meridiem;if(S){for(var R=1;R<=24;R+=1)if(C.indexOf(S(R,0,w))>-1){_=R>12;break}}else _=C===(w?"pm":"PM");return _},"d"),y={A:[l,function(C){this.afternoon=m(C,!1)}],a:[l,function(C){this.afternoon=m(C,!0)}],Q:[n,function(C){this.month=3*(C-1)+1}],S:[n,function(C){this.milliseconds=100*+C}],SS:[a,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[l,function(C){var w=h.ordinal,_=C.match(/\d+/);if(this.day=_[0],w)for(var S=1;S<=31;S+=1)w(S).replace(/\[|\]/g,"")===C&&(this.day=S)}],w:[o,d("week")],ww:[a,d("week")],M:[o,d("month")],MM:[a,d("month")],MMM:[l,function(C){var w=g("months"),_=(g("monthsShort")||w.map((function(S){return S.slice(0,3)}))).indexOf(C)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[l,function(C){var w=g("months").indexOf(C)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(C){this.year=u(C)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function x(C){var w,_;w=C,_=h&&h.formats;for(var S=(C=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,$,O){var j=O&&O.toUpperCase();return $||_[O]||r[O]||_[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,P,F){return P||F.slice(1)}))}))).match(i),R=S.length,b=0;b<R;b+=1){var v=S[b],k=y[v],E=k&&k[0],A=k&&k[1];S[b]=A?{regex:E,parser:A}:v.replace(/^\[|\]$/g,"")}return function(I){for(var $={},O=0,j=0;O<R;O+=1){var D=S[O];
vendor: 31,425 bytes, lines 1415-1701
1415if(typeof D=="string")j+=D.length;else{var P=D.regex,F=D.parser,U=I.slice(j),z=P.exec(U)[0];F.call($,z),I=I.replace(z,"")}}return(function(V){var W=V.afternoon;if(W!==void 0){var X=V.hours;W?X<12&&(V.hours+=12):X===12&&(V.hours=0),delete V.afternoon}})($),$}}return f(x,"m"),s(x,"l"),function(C,w,_){_.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(u=C.parseTwoDigitYear);var S=w.prototype,R=S.parse;S.parse=function(b){var v=b.date,k=b.utc,E=b.args;this.$u=k;var A=E[1];if(typeof A=="string"){var I=E[2]===!0,$=E[3]===!0,O=I||$,j=E[2];$&&(j=E[2]),h=this.$locale(),!I&&j&&(h=_.Ls[j]),this.$d=(function(U,z,V,W){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*U);var X=x(z)(U),J=X.year,H=X.month,te=X.day,ie=X.hours,oe=X.minutes,he=X.seconds,pe=X.milliseconds,se=X.zone,le=X.week,ue=new Date,de=te||(J||H?1:ue.getDate()),we=J||ue.getFullYear(),De=0;J&&!H||(De=H>0?H-1:ue.getMonth());var Ge,be=ie||0,qe=oe||0,Ie=he||0,Be=pe||0;return se?new Date(Date.UTC(we,De,de,be,qe,Ie,Be+60*se.offset*1e3)):V?new Date(Date.UTC(we,De,de,be,qe,Ie,Be)):(Ge=new Date(we,De,de,be,qe,Ie,Be),le&&(Ge=W(Ge).week(le).toDate()),Ge)}catch(ke){return new Date("")}})(v,A,k,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),O&&v!=this.format(A)&&(this.$d=new Date("")),h={}}else if(A instanceof Array)for(var D=A.length,P=1;P<=D;P+=1){E[1]=A[P-1];var F=_.apply(this,E);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}P===D&&(this.$d=new Date(""))}else R.call(this,b)}}}))}),iwt=Xo((e,t)=>{"use strict";(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=i()})(e,(function(){"use strict";return function(r,i){var n=i.prototype,a=n.format;n.format=function(o){var l=this,h=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),d=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return h.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return h.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return a.bind(this)(d)}}}))});function uoe(e,t,r){let i=!0;for(;i;)i=!1,r.forEach(function(n){let a="^\\s*"+n+"\\s*$",o=new RegExp(a);e[0].match(o)&&(t[n]=!0,e.shift(1),i=!0)})}f(uoe,"_5e");var Iit,ml,Dit,Nit,Mit,doe,Zc,uR,poe,dR,Uv,Vv,pR,gR,fw,N1,fR,goe,mR,M1,Wv,yR,vR,mw,bR,Oit,$it,Bit,Pit,Fit,zit,qit,jit,Git,Uit,Vit,Wit,Hit,Yit,Xit,Kit,Zit,Qit,Jit,ent,tnt,rnt,int,nnt,foe,ant,snt,ont,moe,lnt,xR,yoe,voe,yw,O1,cnt,hnt,boe,kR,Ua,xoe,unt,Y0,dnt,koe,pnt,Toe,gnt,woe,fnt,mnt,ynt,nwt=Y(()=>{"use strict";Iit=_o(s4(),1),ml=_o(lD(),1),Dit=_o(twt(),1),Nit=_o(rwt(),1),Mit=_o(iwt(),1),jt(),vr(),wr(),En(),ml.default.extend(Dit.default),ml.default.extend(Nit.default),ml.default.extend(Mit.default),doe={friday:5,saturday:6},Zc="",uR="",dR="",Uv=[],Vv=[],pR=new Map,gR=[],fw=[],N1="",fR="",goe=["active","done","crit","milestone","vert"],mR=[],M1="",Wv=!1,yR=!1,vR="sunday",mw="saturday",bR=0,Oit=s(function(){gR=[],fw=[],N1="",mR=[],yw=0,boe=void 0,kR=void 0,Ua=[],Zc="",uR="",fR="",poe=void 0,dR="",Uv=[],Vv=[],Wv=!1,yR=!1,bR=0,pR=new Map,M1="",Tn(),vR="sunday",mw="saturday"},"clear"),$it=s(function(e){M1=e},"setDiagramId"),Bit=s(function(e){uR=e},"setAxisFormat"),Pit=s(function(){return uR},"getAxisFormat"),Fit=s(function(e){poe=e},"setTickInterval"),zit=s(function(){return poe},"getTickInterval"),qit=s(function(e){dR=e},"setTodayMarker"),jit=s(function(){return dR},"getTodayMarker"),Git=s(function(e){Zc=e},"setDateFormat"),Uit=s(function(){Wv=!0},"enableInclusiveEndDates"),Vit=s(function(){return Wv},"endDatesAreInclusive"),Wit=s(function(){yR=!0},"enableTopAxis"),Hit=s(function(){return yR},"topAxisEnabled"),Yit=s(function(e){fR=e},"setDisplayMode"),Xit=s(function(){return fR},"getDisplayMode"),Kit=s(function(){return Zc},"getDateFormat"),Zit=s(function(e){Uv=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Qit=s(function(){return Uv},"getIncludes"),Jit=s(function(e){Vv=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),ent=s(function(){return Vv},"getExcludes"),tnt=s(function(){return pR},"getLinks"),rnt=s(function(e){N1=e,gR.push(e)},"addSection"),int=s(function(){return gR},"getSections"),nnt=s(function(){let e=koe(),t=10,r=0;for(;!e&&r<t;)e=koe(),r++;return fw=Ua,fw},"getTasks"),foe=s(function(e,t,r,i){let n=e.format(t.trim()),a=e.format("YYYY-MM-DD");return i.includes(n)||i.includes(a)?!1:r.includes("weekends")&&(e.isoWeekday()===doe[mw]||e.isoWeekday()===doe[mw]+1)||r.includes(e.format("dddd").toLowerCase())?!0:r.includes(n)||r.includes(a)},"isInvalidDate"),ant=s(function(e){vR=e},"setWeekday"),snt=s(function(){return vR},"getWeekday"),ont=s(function(e){mw=e},"setWeekend"),moe=s(function(e,t,r,i){if(!r.length||e.manualEndTime)return;let n;e.startTime instanceof Date?n=(0,ml.default)(e.startTime):n=(0,ml.default)(e.startTime,t,!0),n=n.add(1,"d");let a;e.endTime instanceof Date?a=(0,ml.default)(e.endTime):a=(0,ml.default)(e.endTime,t,!0);let[o,l]=lnt(n,a,t,r,i);e.endTime=o.toDate(),e.renderEndTime=l},"checkTaskDates"),lnt=s(function(e,t,r,i,n){let a=!1,o=null,l=t.add(1e4,"d");for(;e<=t;){if(a||(o=t.toDate()),a=foe(e,r,i,n),a&&(t=t.add(1,"d"),t>l))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,"d")}return[t,o]},"fixTaskDates"),xR=s(function(e,t,r){if(r=r.trim(),s(a=>{let o=a.trim();return o==="x"||o==="X"},"isTimestampFormat")(t)&&/^\d+$/.test(r))return new Date(Number(r));let i=new RegExp("^after\\s+(?<ids>[\\d\\w- ]+)").exec(r);if(i!==null){let a=null;for(let l of i.groups.ids.split(" ")){let h=Y0(l);h!==void 0&&(!a||h.endTime>a.endTime)&&(a=h)}if(a)return a.endTime;let o=new Date;return o.setHours(0,0,0,0),o}let n=(0,ml.default)(r,t.trim(),!0);if(n.isValid())return n.toDate();{ge.debug("Invalid date:"+r),ge.debug("With date format:"+t.trim());let a=new Date(r);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+r);return a}},"getStartDate"),yoe=s(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),voe=s(function(e,t,r,i=!1){r=r.trim();let n=new RegExp("^until\\s+(?<ids>[\\d\\w- ]+)").exec(r);if(n!==null){let u=null;for(let p of n.groups.ids.split(" ")){let g=Y0(p);g!==void 0&&(!u||g.startTime<u.startTime)&&(u=g)}if(u)return u.startTime;let d=new Date;return d.setHours(0,0,0,0),d}let a=(0,ml.default)(r,t.trim(),!0);if(a.isValid())return i&&(a=a.add(1,"d")),a.toDate();let o=(0,ml.default)(e),[l,h]=yoe(r);if(!Number.isNaN(l)){let u=o.add(l,h);u.isValid()&&(o=u)}return o.toDate()},"getEndDate"),yw=0,O1=s(function(e){return e===void 0?(yw=yw+1,"task"+yw):e},"parseId"),cnt=s(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;let i=r.split(","),n={};uoe(i,n,goe);for(let o=0;o<i.length;o++)i[o]=i[o].trim();let a="";switch(i.length){case 1:n.id=O1(),n.startTime=e.endTime,a=i[0];break;case 2:n.id=O1(),n.startTime=xR(void 0,Zc,i[0]),a=i[1];break;case 3:n.id=O1(i[0]),n.startTime=xR(void 0,Zc,i[1]),a=i[2];break;default:}return a&&(n.endTime=voe(n.startTime,Zc,a,Wv),n.manualEndTime=(0,ml.default)(a,"YYYY-MM-DD",!0).isValid(),moe(n,Zc,Vv,Uv)),n},"compileData"),hnt=s(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;let i=r.split(","),n={};uoe(i,n,goe);for(let a=0;a<i.length;a++)i[a]=i[a].trim();switch(i.length){case 1:n.id=O1(),n.startTime={type:"prevTaskEnd",id:e},n.endTime={data:i[0]};break;case 2:n.id=O1(),n.startTime={type:"getStartDate",startData:i[0]},n.endTime={data:i[1]};break;case 3:n.id=O1(i[0]),n.startTime={type:"getStartDate",startData:i[1]},n.endTime={data:i[2]};break;default:}return n},"parseData"),Ua=[],xoe={},unt=s(function(e,t){let r={section:N1,type:N1,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},i=hnt(kR,t);r.raw.startTime=i.startTime,r.raw.endTime=i.endTime,r.id=i.id,r.prevTaskId=kR,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,r.order=bR,bR++;let n=Ua.push(r);kR=r.id,xoe[r.id]=n-1},"addTask"),Y0=s(function(e){let t=xoe[e];return Ua[t]},"findTaskById"),dnt=s(function(e,t){let r={section:N1,type:N1,description:e,task:e,classes:[]},i=cnt(boe,t);r.startTime=i.startTime,r.endTime=i.endTime,r.id=i.id,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,boe=r,fw.push(r)},"addTaskOrg"),koe=s(function(){let e=s(function(r){let i=Ua[r],n="";switch(Ua[r].raw.startTime.type){case"prevTaskEnd":{let a=Y0(i.prevTaskId);i.startTime=a.endTime;break}case"getStartDate":n=xR(void 0,Zc,Ua[r].raw.startTime.startData),n&&(Ua[r].startTime=n);break}return Ua[r].startTime&&(Ua[r].endTime=voe(Ua[r].startTime,Zc,Ua[r].raw.endTime.data,Wv),Ua[r].endTime&&(Ua[r].processed=!0,Ua[r].manualEndTime=(0,ml.default)(Ua[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),moe(Ua[r],Zc,Vv,Uv))),Ua[r].processed},"compileTask"),t=!0;for(let[r,i]of Ua.entries())e(r),t=t&&i.processed;return t},"compileTasks"),pnt=s(function(e,t){let r=t;Ue().securityLevel!=="loose"&&(r=(0,Iit.sanitizeUrl)(t)),e.split(",").forEach(function(i){Y0(i)!==void 0&&(woe(i,()=>{window.open(r,"_self")}),pR.set(i,r))}),Toe(e,"clickable")},"setLink"),Toe=s(function(e,t){e.split(",").forEach(function(r){let i=Y0(r);i!==void 0&&i.classes.push(t)})},"setClass"),gnt=s(function(e,t,r){if(Ue().securityLevel!=="loose"||t===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let n=0;n<i.length;n++){let a=i[n].trim();a.startsWith('"')&&a.endsWith('"')&&(a=a.substr(1,a.length-2)),i[n]=a}}i.length===0&&i.push(e),Y0(e)!==void 0&&woe(e,()=>{ri.runFunc(t,...i)})},"setClickFun"),woe=s(function(e,t){mR.push(function(){let r=M1?`${M1}-${e}`:e,i=document.querySelector(`[id="${r}"]`);i!==null&&i.addEventListener("click",function(){t()})},function(){let r=M1?`${M1}-${e}`:e,i=document.querySelector(`[id="${r}-text"]`);i!==null&&i.addEventListener("click",function(){t()})})},"pushFun"),fnt=s(function(e,t,r){e.split(",").forEach(function(i){gnt(i,t,r)}),Toe(e,"clickable")},"setClickEvent"),mnt=s(function(e){mR.forEach(function(t){t(e)})},"bindFunctions"),ynt={getConfig:s(()=>Ue().gantt,"getConfig"),clear:Oit,setDateFormat:Git,getDateFormat:Kit,enableInclusiveEndDates:Uit,endDatesAreInclusive:Vit,enableTopAxis:Wit,topAxisEnabled:Hit,setAxisFormat:Bit,getAxisFormat:Pit,setTickInterval:Fit,getTickInterval:zit,setTodayMarker:qit,getTodayMarker:jit,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,setDiagramId:$it,setDisplayMode:Yit,getDisplayMode:Xit,setAccDescription:Fn,getAccDescription:zn,addSection:rnt,getSections:int,getTasks:nnt,addTask:unt,findTaskById:Y0,addTaskOrg:dnt,setIncludes:Zit,getIncludes:Qit,setExcludes:Jit,getExcludes:ent,setClickEvent:fnt,setLink:pnt,getLinks:tnt,bindFunctions:mnt,parseDuration:yoe,isInvalidDate:foe,setWeekday:ant,getWeekday:snt,setWeekend:ont},s(uoe,"getTaskTags")}),awt=Xo((e,t)=>{"use strict";(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=i()})(e,(function(){"use strict";var r,i,n=1e3,a=6e4,o=36e5,l=864e5,h=/\[([^\]]+)]|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,u=31536e6,d=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,g={years:u,months:d,days:l,hours:o,minutes:a,seconds:n,milliseconds:1,weeks:6048e5},m=s(function(v){return v instanceof R},"c"),y=s(function(v,k,E){return new R(v,E,k.$l)},"f"),x=s(function(v){return i.p(v)+"s"},"m"),C=s(function(v){return v<0},"l"),w=s(function(v){return C(v)?Math.ceil(v):Math.floor(v)},"$"),_=s(function(v){return Math.abs(v)},"y"),S=s(function(v,k){return v?C(v)?{negative:!0,format:""+_(v)+k}:{negative:!1,format:""+v+k}:{negative:!1,format:""}},"v"),R=(function(){function v(E,A,I){var $=this;if(this.$d={},this.$l=I,E===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return y(E*g[x(A)],this);if(typeof E=="number")return this.$ms=E,this.parseFromMilliseconds(),this;if(typeof E=="object")return Object.keys(E).forEach((function(D){$.$d[x(D)]=E[D]})),this.calMilliseconds(),this;if(typeof E=="string"){var O=E.match(p);if(O){var j=O.slice(2).map((function(D){return D!=null?Number(D):0}));return this.$d.years=j[0],this.$d.months=j[1],this.$d.weeks=j[2],this.$d.days=j[3],this.$d.hours=j[4],this.$d.minutes=j[5],this.$d.seconds=j[6],this.calMilliseconds(),this}}return this}f(v,"w"),s(v,"l");var k=v.prototype;return k.calMilliseconds=function(){var E=this;this.$ms=Object.keys(this.$d).reduce((function(A,I){return A+(E.$d[I]||0)*g[I]}),0)},k.parseFromMilliseconds=function(){var E=this.$ms;this.$d.years=w(E/u),E%=u,this.$d.months=w(E/d),E%=d,this.$d.days=w(E/l),E%=l,this.$d.hours=w(E/o),E%=o,this.$d.minutes=w(E/a),E%=a,this.$d.seconds=w(E/n),E%=n,this.$d.milliseconds=E},k.toISOString=function(){var E=S(this.$d.years,"Y"),A=S(this.$d.months,"M"),I=+this.$d.days||0;this.$d.weeks&&(I+=7*this.$d.weeks);var $=S(I,"D"),O=S(this.$d.hours,"H"),j=S(this.$d.minutes,"M"),D=this.$d.seconds||0;this.$d.milliseconds&&(D+=this.$d.milliseconds/1e3,D=Math.round(1e3*D)/1e3);var P=S(D,"S"),F=E.negative||A.negative||$.negative||O.negative||j.negative||P.negative,U=O.format||j.format||P.format?"T":"",z=(F?"-":"")+"P"+E.format+A.format+$.format+U+O.format+j.format+P.format;return z==="P"||z==="-P"?"P0D":z},k.toJSON=function(){return this.toISOString()},k.format=function(E){var A=E||"YYYY-MM-DDTHH:mm:ss",I={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return A.replace(h,(function($,O){return O||String(I[$])}))},k.as=function(E){return this.$ms/g[x(E)]},k.get=function(E){var A=this.$ms,I=x(E);return I==="milliseconds"?A%=1e3:A=I==="weeks"?w(A/g[I]):this.$d[I],A||0},k.add=function(E,A,I){var $;return $=A?E*g[x(A)]:m(E)?E.$ms:y(E,this).$ms,y(this.$ms+$*(I?-1:1),this)},k.subtract=function(E,A){return this.add(E,A,!0)},k.locale=function(E){var A=this.clone();return A.$l=E,A},k.clone=function(){return y(this.$ms,this)},k.humanize=function(E){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!E)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},v})(),b=s(function(v,k,E){return v.add(k.years()*E,"y").add(k.months()*E,"M").add(k.days()*E,"d").add(k.hours()*E,"h").add(k.minutes()*E,"m").add(k.seconds()*E,"s").add(k.milliseconds()*E,"ms")},"p");return function(v,k,E){r=E,i=E().$utils(),E.duration=function($,O){var j=E.locale();return y($,{$l:j},O)},E.isDuration=m;var A=k.prototype.add,I=k.prototype.subtract;k.prototype.add=function($,O){return m($)?b(this,$,1):A.bind(this)($,O)},k.prototype.subtract=function($,O){return m($)?b(this,$,-1):I.bind(this)($,O)}}}))}),Hv,vnt,bnt,Coe,xnt,jd,TR,knt,Tnt,swt=Y(()=>{"use strict";Hv=_o(lD(),1),vnt=_o(awt(),1),jt(),ui(),gi(),vr(),Bn(),Hv.default.extend(vnt.default),bnt=s(function(){ge.debug("Something is calling, setConf, remove the call")},"setConf"),Coe={monday:zm,tuesday:o$,wednesday:l$,thursday:pp,friday:c$,saturday:h$,sunday:Fm},xnt=s((e,t)=>{let r=[...e].map(()=>-1/0),i=[...e].sort((a,o)=>a.startTime-o.startTime||a.order-o.order),n=0;for(let a of i)for(let o=0;o<r.length;o++)if(a.startTime>=r[o]){r[o]=a.endTime,a.order=o+t,o>n&&(n=o);break}return n},"getMaxIntersections"),TR=1e4,knt=s(function(e,t,r,i){let n=Ue().gantt;i.db.setDiagramId(t);let a=Ue().securityLevel,o;a==="sandbox"&&(o=Lt("#i"+t));let l=Lt(a==="sandbox"?o.nodes()[0].contentDocument.body:"body"),h=a==="sandbox"?o.nodes()[0].contentDocument:document,u=h.getElementById(t);jd=u.parentElement.offsetWidth,jd===void 0&&(jd=1200),n.useWidth!==void 0&&(jd=n.useWidth);let d=i.db.getTasks(),p=[];for(let A of d)p.push(A.type);p=E(p);let g={},m=2*n.topPadding;if(i.db.getDisplayMode()==="compact"||n.displayMode==="compact"){let A={};for(let $ of d)A[$.section]===void 0?A[$.section]=[$]:A[$.section].push($);let I=0;for(let $ of Object.keys(A)){let O=xnt(A[$],I)+1;I+=O,m+=O*(n.barHeight+n.barGap),g[$]=O}}else{m+=d.length*(n.barHeight+n.barGap);for(let A of p)g[A]=d.filter(I=>I.type===A).length}u.setAttribute("viewBox","0 0 "+jd+" "+m);let y=l.select(`[id="${t}"]`),x=mbe().domain([Gge(d,function(A){return A.startTime}),jge(d,function(A){return A.endTime})]).rangeRound([0,jd-n.leftPadding-n.rightPadding]);function C(A,I){let $=A.startTime,O=I.startTime,j=0;return $>O?j=1:$<O&&(j=-1),j}f(C,"v"),s(C,"taskCompare"),d.sort(C),w(d,jd,m),Ta(y,m,jd,n.useMaxWidth),y.append("text").text(i.db.getDiagramTitle()).attr("x",jd/2).attr("y",n.titleTopMargin).attr("class","titleText");function w(A,I,$){let O=n.barHeight,j=O+n.barGap,D=n.topPadding,P=n.leftPadding,F=Eg().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(Lme);S(j,D,P,I,$,A,i.db.getExcludes(),i.db.getIncludes()),b(P,D,I,$),_(A,j,D,P,O,F,I,$),v(j,D,P,O,F),k(P,D,I,$)}f(w,"x"),s(w,"makeGantt");function _(A,I,$,O,j,D,P){A.sort((V,W)=>V.vert===W.vert?0:V.vert?1:-1);let F=[...new Set(A.map(V=>V.order))].map(V=>A.find(W=>W.order===V));y.append("g").selectAll("rect").data(F).enter().append("rect").attr("x",0).attr("y",function(V,W){return W=V.order,W*I+$-2}).attr("width",function(){return P-n.rightPadding/2}).attr("height",I).attr("class",function(V){for(let[W,X]of p.entries())if(V.type===X)return"section section"+W%n.numberSectionStyles;return"section section0"}).enter();let U=y.append("g").selectAll("rect").data(A).enter(),z=i.db.getLinks();if(U.append("rect").attr("id",function(V){return t+"-"+V.id}).attr("rx",3).attr("ry",3).attr("x",function(V){return V.milestone?x(V.startTime)+O+.5*(x(V.endTime)-x(V.startTime))-.5*j:x(V.startTime)+O}).attr("y",function(V,W){return W=V.order,V.vert?n.gridLineStartPadding:W*I+$}).attr("width",function(V){return V.milestone?j:V.vert?.08*j:x(V.renderEndTime||V.endTime)-x(V.startTime)}).attr("height",function(V){return V.vert?d.length*(n.barHeight+n.barGap)+n.barHeight*2:j}).attr("transform-origin",function(V,W){return W=V.order,(x(V.startTime)+O+.5*(x(V.endTime)-x(V.startTime))).toString()+"px "+(W*I+$+.5*j).toString()+"px"}).attr("class",function(V){let W="task",X="";V.classes.length>0&&(X=V.classes.join(" "));let J=0;for(let[te,ie]of p.entries())V.type===ie&&(J=te%n.numberSectionStyles);let H="";return V.active?V.crit?H+=" activeCrit":H=" active":V.done?V.crit?H=" doneCrit":H=" done":V.crit&&(H+=" crit"),H.length===0&&(H=" task"),V.milestone&&(H=" milestone "+H),V.vert&&(H=" vert "+H),H+=J,H+=" "+X,W+H}),U.append("text").attr("id",function(V){return t+"-"+V.id+"-text"}).text(function(V){return V.task}).attr("font-size",n.fontSize).attr("x",function(V){let W=x(V.startTime),X=x(V.renderEndTime||V.endTime);if(V.milestone&&(W+=.5*(x(V.endTime)-x(V.startTime))-.5*j,X=W+j),V.vert)return x(V.startTime)+O;let J=this.getBBox().width;return J>X-W?X+J+1.5*n.leftPadding>P?W+O-5:X+O+5:(X-W)/2+W+O}).attr("y",function(V,W){return V.vert?n.gridLineStartPadding+d.length*(n.barHeight+n.barGap)+60:(W=V.order,W*I+n.barHeight/2+(n.fontSize/2-2)+$)}).attr("text-height",j).attr("class",function(V){let W=x(V.startTime),X=x(V.endTime);V.milestone&&(X=W+j);let J=this.getBBox().width,H="";V.classes.length>0&&(H=V.classes.join(" "));let te=0;for(let[oe,he]of p.entries())V.type===he&&(te=oe%n.numberSectionStyles);let ie="";return V.active&&(V.crit?ie="activeCritText"+te:ie="activeText"+te),V.done?V.crit?ie=ie+" doneCritText"+te:ie=ie+" doneText"+te:V.crit&&(ie=ie+" critText"+te),V.milestone&&(ie+=" milestoneText"),V.vert&&(ie+=" vertText"),J>X-W?X+J+1.5*n.leftPadding>P?H+" taskTextOutsideLeft taskTextOutside"+te+" "+ie:H+" taskTextOutsideRight taskTextOutside"+te+" "+ie+" width-"+J:H+" taskText taskText"+te+" "+ie+" width-"+J}),Ue().securityLevel==="sandbox"){let V;V=Lt("#i"+t);let W=V.nodes()[0].contentDocument;U.filter(function(X){return z.has(X.id)}).each(function(X){var J=W.querySelector("#"+CSS.escape(t+"-"+X.id)),H=W.querySelector("#"+CSS.escape(t+"-"+X.id+"-text"));let te=J.parentNode;var ie=W.createElement("a");ie.setAttribute("xlink:href",z.get(X.id)),ie.setAttribute("target","_top"),te.appendChild(ie),ie.appendChild(J),ie.appendChild(H)})}}f(_,"b"),s(_,"drawRects");function S(A,I,$,O,j,D,P,F){if(P.length===0&&F.length===0)return;let U,z;for(let{startTime:H,endTime:te}of D)(U===void 0||H<U)&&(U=H),(z===void 0||te>z)&&(z=te);if(!U||!z)return;if((0,Hv.default)(z).diff((0,Hv.default)(U),"year")>5){ge.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 V=i.db.getDateFormat(),W=[],X=null,J=(0,Hv.default)(U);for(;J.valueOf()<=z;)i.db.isInvalidDate(J,V,P,F)?X?X.end=J:X={start:J,end:J}:X&&(W.push(X),X=null),J=J.add(1,"d");y.append("g").selectAll("rect").data(W).enter().append("rect").attr("id",H=>t+"-exclude-"+H.start.format("YYYY-MM-DD")).attr("x",H=>x(H.start.startOf("day"))+$).attr("y",n.gridLineStartPadding).attr("width",H=>x(H.end.endOf("day"))-x(H.start.startOf("day"))).attr("height",j-I-n.gridLineStartPadding).attr("transform-origin",function(H,te){return(x(H.start)+$+.5*(x(H.end)-x(H.start))).toString()+"px "+(te*A+.5*j).toString()+"px"}).attr("class","exclude-range")}f(S,"T"),s(S,"drawExcludeDays");function R(A,I,$,O){if($<=0||A>I)return 1/0;let j=I-A,D=Hv.default.duration({[O!=null?O:"day"]:$}).asMilliseconds();return D<=0?1/0:Math.ceil(j/D)}f(R,"w"),s(R,"getEstimatedTickCount");function b(A,I,$,O){var z;let j=i.db.getDateFormat(),D=i.db.getAxisFormat(),P;D?P=D:j==="D"?P="%d":P=(z=n.axisFormat)!=null?z:"%Y-%m-%d";let F=Qge(x).tickSize(-O+I+n.gridLineStartPadding).tickFormat(fE(P)),U=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||n.tickInterval);if(U!==null){let V=parseInt(U[1],10);if(isNaN(V)||V<=0)ge.warn(`Invalid tick interval value: "${U[1]}". Skipping custom tick interval.`);else{let W=U[2],X=i.db.getWeekday()||n.weekday,J=x.domain(),H=J[0],te=J[1],ie=R(H,te,V,W);if(ie>TR)ge.warn(`The tick interval "${V}${W}" would generate ${ie} ticks, which exceeds the maximum allowed (${TR}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(W){case"millisecond":F.ticks(Sg.every(V));break;case"second":F.ticks(qu.every(V));break;case"minute":F.ticks(Bm.every(V));break;case"hour":F.ticks(Pm.every(V));break;case"day":F.ticks(hp.every(V));break;case"week":F.ticks(Coe[X].every(V));break;case"month":F.ticks(qm.every(V));break}}}if(y.append("g").attr("class","grid").attr("transform","translate("+A+", "+(O-50)+")").call(F).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||n.topAxis){let V=Zge(x).tickSize(-O+I+n.gridLineStartPadding).tickFormat(fE(P));if(U!==null){let W=parseInt(U[1],10);if(isNaN(W)||W<=0)ge.warn(`Invalid tick interval value: "${U[1]}". Skipping custom tick interval.`);else{let X=U[2],J=i.db.getWeekday()||n.weekday,H=x.domain(),te=H[0],ie=H[1];if(R(te,ie,W,X)<=TR)switch(X){case"millisecond":V.ticks(Sg.every(W));break;case"second":V.ticks(qu.every(W));break;case"minute":V.ticks(Bm.every(W));break;case"hour":V.ticks(Pm.every(W));break;case"day":V.ticks(hp.every(W));break;case"week":V.ticks(Coe[J].every(W));break;case"month":V.ticks(qm.every(W));break}}}y.append("g").attr("class","grid").attr("transform","translate("+A+", "+I+")").call(V).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}f(b,"C"),s(b,"makeGrid");function v(A,I){let $=0,O=Object.keys(g).map(j=>[j,g[j]]);y.append("g").selectAll("text").data(O).enter().append(function(j){let D=j[0].split(Vt.lineBreakRegex),P=-(D.length-1)/2,F=h.createElementNS("http://www.w3.org/2000/svg","text");F.setAttribute("dy",P+"em");for(let[U,z]of D.entries()){let V=h.createElementNS("http://www.w3.org/2000/svg","tspan");V.setAttribute("alignment-baseline","central"),V.setAttribute("x","10"),U>0&&V.setAttribute("dy","1em"),V.textContent=z,F.appendChild(V)}return F}).attr("x",10).attr("y",function(j,D){if(D>0)for(let P=0;P<D;P++)return $+=O[D-1][1],j[1]*A/2+$*A+I;else return j[1]*A/2+I}).attr("font-size",n.sectionFontSize).attr("class",function(j){for(let[D,P]of p.entries())if(j[0]===P)return"sectionTitle sectionTitle"+D%n.numberSectionStyles;return"sectionTitle"})}f(v,"k"),s(v,"vertLabels");function k(A,I,$,O){let j=i.db.getTodayMarker();if(j==="off")return;let D=y.append("g").attr("class","today"),P=new Date,F=D.append("line");F.attr("x1",x(P)+A).attr("x2",x(P)+A).attr("y1",n.titleTopMargin).attr("y2",O-n.titleTopMargin).attr("class","today"),j!==""&&F.attr("style",j.replace(/,/g,";"))}f(k,"E"),s(k,"drawToday");function E(A){let I={},$=[];for(let O=0,j=A.length;O<j;++O)Object.prototype.hasOwnProperty.call(I,A[O])||(I[A[O]]=!0,$.push(A[O]));return $}f(E,"A"),s(E,"checkUnique")},"draw"),Tnt={setConf:bnt,draw:knt}}),wnt,Cnt,owt=Y(()=>{"use strict";wnt=s(e=>` 1416 .mermaid-main-font { 1417 font-family: ${e.fontFamily}; 1418 } 1419 1420 .exclude-range { 1421 fill: ${e.excludeBkgColor}; 1422 } 1423 1424 .section { 1425 stroke: none; 1426 opacity: 0.2; 1427 } 1428 1429 .section0 { 1430 fill: ${e.sectionBkgColor}; 1431 } 1432 1433 .section2 { 1434 fill: ${e.sectionBkgColor2}; 1435 } 1436 1437 .section1, 1438 .section3 { 1439 fill: ${e.altSectionBkgColor}; 1440 opacity: 0.2; 1441 } 1442 1443 .sectionTitle0 { 1444 fill: ${e.titleColor}; 1445 } 1446 1447 .sectionTitle1 { 1448 fill: ${e.titleColor}; 1449 } 1450 1451 .sectionTitle2 { 1452 fill: ${e.titleColor}; 1453 } 1454 1455 .sectionTitle3 { 1456 fill: ${e.titleColor}; 1457 } 1458 1459 .sectionTitle { 1460 text-anchor: start; 1461 font-family: ${e.fontFamily}; 1462 } 1463 1464 1465 /* Grid and axis */ 1466 1467 .grid .tick { 1468 stroke: ${e.gridColor}; 1469 opacity: 0.8; 1470 shape-rendering: crispEdges; 1471 } 1472 1473 .grid .tick text { 1474 font-family: ${e.fontFamily}; 1475 fill: ${e.textColor}; 1476 } 1477 1478 .grid path { 1479 stroke-width: 0; 1480 } 1481 1482 1483 /* Today line */ 1484 1485 .today { 1486 fill: none; 1487 stroke: ${e.todayLineColor}; 1488 stroke-width: 2px; 1489 } 1490 1491 1492 /* Task styling */ 1493 1494 /* Default task */ 1495 1496 .task { 1497 stroke-width: 2; 1498 } 1499 1500 .taskText { 1501 text-anchor: middle; 1502 font-family: ${e.fontFamily}; 1503 } 1504 1505 .taskTextOutsideRight { 1506 fill: ${e.taskTextDarkColor}; 1507 text-anchor: start; 1508 font-family: ${e.fontFamily}; 1509 } 1510 1511 .taskTextOutsideLeft { 1512 fill: ${e.taskTextDarkColor}; 1513 text-anchor: end; 1514 } 1515 1516 1517 /* Special case clickable */ 1518 1519 .task.clickable { 1520 cursor: pointer; 1521 } 1522 1523 .taskText.clickable { 1524 cursor: pointer; 1525 fill: ${e.taskTextClickableColor} !important; 1526 font-weight: bold; 1527 } 1528 1529 .taskTextOutsideLeft.clickable { 1530 cursor: pointer; 1531 fill: ${e.taskTextClickableColor} !important; 1532 font-weight: bold; 1533 } 1534 1535 .taskTextOutsideRight.clickable { 1536 cursor: pointer; 1537 fill: ${e.taskTextClickableColor} !important; 1538 font-weight: bold; 1539 } 1540 1541 1542 /* Specific task settings for the sections*/ 1543 1544 .taskText0, 1545 .taskText1, 1546 .taskText2, 1547 .taskText3 { 1548 fill: ${e.taskTextColor}; 1549 } 1550 1551 .task0, 1552 .task1, 1553 .task2, 1554 .task3 { 1555 fill: ${e.taskBkgColor}; 1556 stroke: ${e.taskBorderColor}; 1557 } 1558 1559 .taskTextOutside0, 1560 .taskTextOutside2 1561 { 1562 fill: ${e.taskTextOutsideColor}; 1563 } 1564 1565 .taskTextOutside1, 1566 .taskTextOutside3 { 1567 fill: ${e.taskTextOutsideColor}; 1568 } 1569 1570 1571 /* Active task */ 1572 1573 .active0, 1574 .active1, 1575 .active2, 1576 .active3 { 1577 fill: ${e.activeTaskBkgColor}; 1578 stroke: ${e.activeTaskBorderColor}; 1579 } 1580 1581 .activeText0, 1582 .activeText1, 1583 .activeText2, 1584 .activeText3 { 1585 fill: ${e.taskTextDarkColor} !important; 1586 } 1587 1588 1589 /* Completed task */ 1590 1591 .done0, 1592 .done1, 1593 .done2, 1594 .done3 { 1595 stroke: ${e.doneTaskBorderColor}; 1596 fill: ${e.doneTaskBkgColor}; 1597 stroke-width: 2; 1598 } 1599 1600 .doneText0, 1601 .doneText1, 1602 .doneText2, 1603 .doneText3 { 1604 fill: ${e.taskTextDarkColor} !important; 1605 } 1606 1607 /* Done task text displayed outside the bar sits against the diagram background, 1608 not against the done-task bar, so it must use the outside/contrast color. */ 1609 .doneText0.taskTextOutsideLeft, 1610 .doneText0.taskTextOutsideRight, 1611 .doneText1.taskTextOutsideLeft, 1612 .doneText1.taskTextOutsideRight, 1613 .doneText2.taskTextOutsideLeft, 1614 .doneText2.taskTextOutsideRight, 1615 .doneText3.taskTextOutsideLeft, 1616 .doneText3.taskTextOutsideRight { 1617 fill: ${e.taskTextOutsideColor} !important; 1618 } 1619 1620 1621 /* Tasks on the critical line */ 1622 1623 .crit0, 1624 .crit1, 1625 .crit2, 1626 .crit3 { 1627 stroke: ${e.critBorderColor}; 1628 fill: ${e.critBkgColor}; 1629 stroke-width: 2; 1630 } 1631 1632 .activeCrit0, 1633 .activeCrit1, 1634 .activeCrit2, 1635 .activeCrit3 { 1636 stroke: ${e.critBorderColor}; 1637 fill: ${e.activeTaskBkgColor}; 1638 stroke-width: 2; 1639 } 1640 1641 .doneCrit0, 1642 .doneCrit1, 1643 .doneCrit2, 1644 .doneCrit3 { 1645 stroke: ${e.critBorderColor}; 1646 fill: ${e.doneTaskBkgColor}; 1647 stroke-width: 2; 1648 cursor: pointer; 1649 shape-rendering: crispEdges; 1650 } 1651 1652 .milestone { 1653 transform: rotate(45deg) scale(0.8,0.8); 1654 } 1655 1656 .milestoneText { 1657 font-style: italic; 1658 } 1659 .doneCritText0, 1660 .doneCritText1, 1661 .doneCritText2, 1662 .doneCritText3 { 1663 fill: ${e.taskTextDarkColor} !important; 1664 } 1665 1666 /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ 1667 .doneCritText0.taskTextOutsideLeft, 1668 .doneCritText0.taskTextOutsideRight, 1669 .doneCritText1.taskTextOutsideLeft, 1670 .doneCritText1.taskTextOutsideRight, 1671 .doneCritText2.taskTextOutsideLeft, 1672 .doneCritText2.taskTextOutsideRight, 1673 .doneCritText3.taskTextOutsideLeft, 1674 .doneCritText3.taskTextOutsideRight { 1675 fill: ${e.taskTextOutsideColor} !important; 1676 } 1677 1678 .vert { 1679 stroke: ${e.vertLineColor}; 1680 } 1681 1682 .vertText { 1683 font-size: 15px; 1684 text-anchor: middle; 1685 fill: ${e.vertLineColor} !important; 1686 } 1687 1688 .activeCritText0, 1689 .activeCritText1, 1690 .activeCritText2, 1691 .activeCritText3 { 1692 fill: ${e.taskTextDarkColor} !important; 1693 } 1694 1695 .titleText { 1696 text-anchor: middle; 1697 font-size: 18px; 1698 fill: ${e.titleColor||e.textColor}; 1699 font-family: ${e.fontFamily}; 1700 } 1701`,"getStyles"),Cnt=wnt}),Ent={};
1701Jr(Ent,{diagram:f(()=>Snt,"diagram")});var Snt,lwt=Y(()=>{"use strict";ewt(),nwt(),swt(),owt(),Snt={parser:Rit,db:ynt,renderer:Tnt,styles:Cnt}}),_nt,cwt=Y(()=>{"use strict";Xc(),jt(),_nt={parse:s(async e=>{let t=await Kl("info",e);ge.debug(t)},"parse")}}),Ant,Lnt,Rnt,hwt=Y(()=>{"use strict";Ant={version:"11.15.0"},Lnt=s(()=>Ant.version,"getVersion"),Rnt={getVersion:Lnt}}),Co,Ho=Y(()=>{"use strict";ui(),vr(),Co=s(e=>{var i,n;let{securityLevel:t}=Ue(),r=Lt("body");if(t==="sandbox"){let a=(n=(i=Lt(`#i${e}`).node())==null?void 0:i.contentDocument)!=null?n:document;r=Lt(a.body)}return r.select(`#${e}`)},"selectSvgElement")}),Int,Dnt,uwt=Y(()=>{"use strict";jt(),Ho(),Bn(),Int=s((e,t,r)=>{ge.debug(`rendering info diagram 1702`+e);let i=Co(t);Ta(i,100,400,!0),i.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"),Dnt={draw:Int}}),Nnt={};Jr(Nnt,{diagram:f(()=>Mnt,"diagram")});var Mnt,dwt=Y(()=>{"use strict";cwt(),hwt(),uwt(),Mnt={parser:_nt,db:Rnt,renderer:Dnt}}),Eoe,wR,vw,CR,Ont,$nt,Bnt,Pnt,Fnt,znt,qnt,Soe,jnt=Y(()=>{"use strict";jt(),En(),rs(),Eoe=bi.pie,wR={sections:new Map,showData:!1,config:Eoe},vw=wR.sections,CR=wR.showData,Ont=structuredClone(Eoe),$nt=s(()=>structuredClone(Ont),"getConfig"),Bnt=s(()=>{vw=new Map,CR=wR.showData,Tn()},"clear"),Pnt=s(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);vw.has(e)||(vw.set(e,t),ge.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),Fnt=s(()=>vw,"getSections"),znt=s(e=>{CR=e},"setShowData"),qnt=s(()=>CR,"getShowData"),Soe={getConfig:$nt,clear:Bnt,setDiagramTitle:qn,getDiagramTitle:Cn,setAccTitle:wn,getAccTitle:Pn,setAccDescription:Fn,getAccDescription:zn,addSection:Pnt,getSections:Fnt,setShowData:znt,getShowData:qnt}}),Gnt,Unt,pwt=Y(()=>{"use strict";Xc(),jt(),Fd(),jnt(),Gnt=s((e,t)=>{uu(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Unt={parse:s(async e=>{let t=await Kl("pie",e);ge.debug(t),Gnt(t,Soe)},"parse")}}),Vnt,Wnt,gwt=Y(()=>{"use strict";Vnt=s(e=>` 1703 .pieCircle{ 1704 stroke: ${e.pieStrokeColor}; 1705 stroke-width : ${e.pieStrokeWidth}; 1706 opacity : ${e.pieOpacity}; 1707 } 1708 .pieOuterCircle{ 1709 stroke: ${e.pieOuterStrokeColor}; 1710 stroke-width: ${e.pieOuterStrokeWidth}; 1711 fill: none; 1712 } 1713 .pieTitleText { 1714 text-anchor: middle; 1715 font-size: ${e.pieTitleTextSize}; 1716 fill: ${e.pieTitleTextColor}; 1717 font-family: ${e.fontFamily}; 1718 } 1719 .slice { 1720 font-family: ${e.fontFamily}; 1721 fill: ${e.pieSectionTextColor}; 1722 font-size:${e.pieSectionTextSize}; 1723 // fill: white; 1724 } 1725 .legend text { 1726 fill: ${e.pieLegendTextColor}; 1727 font-family: ${e.fontFamily}; 1728 font-size: ${e.pieLegendTextSize}; 1729 } 1730`,"getStyles"),Wnt=Vnt}),Hnt,Ynt,Xnt,fwt=Y(()=>{"use strict";ui(),vr(),jt(),Ho(),Bn(),wr(),Hnt=s(e=>{let t=[...e.values()].reduce((i,n)=>i+n,0),r=[...e.entries()].map(([i,n])=>({label:i,value:n})).filter(i=>i.value/t*100>=1);return Mbe().value(i=>i.value).sort(null)(r)},"createPieArcs"),Ynt=s((e,t,r,i)=>{var W,X;ge.debug(`rendering pie chart 1731`+e);let n=i.db,a=Ue(),o=da(n.getConfig(),a.pie),l=40,h=18,u=4,d=450,p=d,g=Co(t),m=g.append("g");m.attr("transform","translate("+p/2+","+d/2+")");let{themeVariables:y}=a,[x]=Eh(y.pieOuterStrokeWidth);x!=null||(x=2);let C=o.textPosition,w=Math.min(p,d)/2-l,_=Lg().innerRadius(0).outerRadius(w),S=Lg().innerRadius(w*C).outerRadius(w*C);m.append("circle").attr("cx",0).attr("cy",0).attr("r",w+x/2).attr("class","pieOuterCircle");let R=n.getSections(),b=Hnt(R),v=[y.pie1,y.pie2,y.pie3,y.pie4,y.pie5,y.pie6,y.pie7,y.pie8,y.pie9,y.pie10,y.pie11,y.pie12],k=0;R.forEach(J=>{k+=J});let E=b.filter(J=>(J.data.value/k*100).toFixed(0)!=="0"),A=lp(v).domain([...R.keys()]);m.selectAll("mySlices").data(E).enter().append("path").attr("d",_).attr("fill",J=>A(J.data.label)).attr("class","pieCircle"),m.selectAll("mySlices").data(E).enter().append("text").text(J=>(J.data.value/k*100).toFixed(0)+"%").attr("transform",J=>"translate("+S.centroid(J)+")").style("text-anchor","middle").attr("class","slice");let I=m.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(d-50)/2).attr("class","pieTitleText"),$=[...R.entries()].map(([J,H])=>({label:J,value:H})),O=m.selectAll(".legend").data($).enter().append("g").attr("class","legend").attr("transform",(J,H)=>
1731{let te=h+u,ie=te*$.length/2,oe=12*h,he=H*te-ie;return"translate("+oe+","+he+")"});O.append("rect").attr("width",h).attr("height",h).style("fill",J=>A(J.label)).style("stroke",J=>A(J.label)),O.append("text").attr("x",h+u).attr("y",h-u).text(J=>n.getShowData()?`${J.label} [${J.value}]`:J.label);let j=Math.max(...O.selectAll("text").nodes().map(J=>{var H;return(H=J==null?void 0:J.getBoundingClientRect().width)!=null?H:0})),D=p+l+h+u+j,P=(X=(W=I.node())==null?void 0:W.getBoundingClientRect().width)!=null?X:0,F=p/2-P/2,U=p/2+P/2,z=Math.min(0,F),V=Math.max(D,U)-z;g.attr("viewBox",`${z} 0 ${V} ${d}`),Ta(g,d,V,o.useMaxWidth)},"draw"),Xnt={draw:Ynt}}),Knt={};Jr(Knt,{diagram:f(()=>Znt,"diagram")});var Znt,mwt=Y(()=>{"use strict";pwt(),jnt(),gwt(),fwt(),Znt={parser:Unt,db:Soe,renderer:Xnt,styles:Wnt}}),ER,Qnt,ywt=Y(()=>{"use strict";ER=(function(){var e=s(function(xe,ae,_e,Se){for(_e=_e||{},Se=xe.length;Se--;_e[xe[Se]]=ae);return _e},"o"),t=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,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,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],u=[2,36],d=[1,37],p=[1,36],g=[1,38],m=[1,35],y=[1,43],x=[1,41],C=[1,45],w=[1,14],_=[1,23],S=[1,18],R=[1,19],b=[1,20],v=[1,21],k=[1,22],E=[1,24],A=[1,25],I=[1,26],$=[1,27],O=[1,28],j=[1,29],D=[1,32],P=[1,33],F=[1,34],U=[1,39],z=[1,40],V=[1,42],W=[1,44],X=[1,63],J=[1,62],H=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],te=[1,66],ie=[1,67],oe=[1,68],he=[1,69],pe=[1,70],se=[1,71],le=[1,72],ue=[1,73],de=[1,74],we=[1,75],De=[1,76],Ge=[1,77],be=[4,5,6,7,8,9,10,11,12,13,14,15,18],qe=[1,91],Ie=[1,92],Be=[1,93],ke=[1,100],Qe=[1,94],Pe=[1,97],ht=[1,95],Xe=[1,96],dt=[1,98],at=[1,99],kt=[1,103],Le=[10,55,56,57],lt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ve={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],[3
vendor: 6,032 bytes, line 1731
17310,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],[58,1],[59,1],[59,1],[59,1]],performAction:s(function(xe,ae,_e,Se,Je,Re,et){var ze=Re.length-1;switch(Je){case 23:this.$=Re[ze];break;case 24:this.$=Re[ze-1]+""+Re[ze];break;case 26:this.$=Re[ze-1]+Re[ze];break;case 27:this.$=[Re[ze].trim()];break;case 28:Re[ze-2].push(Re[ze].trim()),this.$=Re[ze-2];break;case 29:this.$=Re[ze-4],Se.addClass(Re[ze-2],Re[ze]);break;case 37:this.$=[];break;case 42:this.$=Re[ze].trim(),Se.setDiagramTitle(this.$);break;case 43:this.$=Re[ze].trim(),Se.setAccTitle(this.$);break;case 44:case 45:this.$=Re[ze].trim(),Se.setAccDescription(this.$);break;case 46:Se.addSection(Re[ze].substr(8)),this.$=Re[ze].substr(8);break;case 47:Se.addPoint(Re[ze-3],"",Re[ze-1],Re[ze],[]);break;case 48:Se.addPoint(Re[ze-4],Re[ze-3],Re[ze-1],Re[ze],[]);break;case 49:Se.addPoint(Re[ze-4],"",Re[ze-2],Re[ze-1],Re[ze]);break;case 50:Se.addPoint(Re[ze-5],Re[ze-4],Re[ze-2],Re[ze-1],Re[ze]);break;case 51:Se.setXAxisLeftText(Re[ze-2]),Se.setXAxisRightText(Re[ze]);break;case 52:Re[ze-1].text+=" \u27F6 ",Se.setXAxisLeftText(Re[ze-1]);break;case 53:Se.setXAxisLeftText(Re[ze]);break;case 54:Se.setYAxisBottomText(Re[ze-2]),Se.setYAxisTopText(Re[ze]);break;case 55:Re[ze-1].text+=" \u27F6 ",Se.setYAxisBottomText(Re[ze-1]);break;case 56:Se.setYAxisBottomText(Re[ze]);break;case 57:Se.setQuadrant1Text(Re[ze]);break;case 58:Se.setQuadrant2Text(Re[ze]);break;case 59:Se.setQuadrant3Text(Re[ze]);break;case 60:Se.setQuadrant4Text(Re[ze]);break;case 64:this.$={text:Re[ze],type:"text"};break;case 65:this.$={text:Re[ze-1].text+""+Re[ze],type:Re[ze-1].type};break;case 66:this.$={text:Re[ze],type:"text"};break;case 67:this.$={text:Re[ze],type:"markdown"};break;case 68:this.$=Re[ze];break;case 69:this.$=Re[ze-1]+""+Re[ze];break}},"anonymous"),table:[{18:t,26:1,27:2,28:r,55:i,56:n,57:a},{1:[3]},{18:t,26:8,27:2,28:r,55:i,56:n,57:a},{18:t,26:9,27:2,28:r,55:i,56:n,57:a},e(o,[2,33],{29:10}),e(l,[2,61]),e(l,[2,62]),e(l,[2,63]),{1:[2,30]},{1:[2,31]},e(h,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:p,10:g,12:m,13:y,14:x,15:C,18:w,25:_,35:S,37:R,39:b,41:v,42:k,48:E,50:A,51:I,52:$,53:O,54:j,60:D,61:P,63:F,64:U,65:z,66:V,67:W}),e(o,[2,34]),{27:46,55:i,56:n,57:a},e(h,[2,37]),e(h,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:p,10:g,12:m,13:y,14:x,15:C,18:w,25:_,35:S,37:R,39:b,41:v,42:k,48:E,50:A,51:I,52:$,53:O,54:j,60:D,61:P,63:F,64:U,65:z,66:V,67:W}),e(h,[2,39]),e(h,[2,40]),e(h,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(h,[2,45]),e(h,[2,46]),{18:[1,51]},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:52,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:53,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:54,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:55,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:56,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,10:g,12:m,13:y,14:x,15:C,43:57,58:31,60:D,61:P,63:F,64:U,65:z,66:V,67:W},{4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,44:[1,58],47:[1,59],58:61,59:60,63:F,64:U,65:z,66:V,67:W},e(H,[2,64]),e(H,[2,66]),e(H,[2,67]),e(H,[2,70]),e(H,[2,71]),e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(o,[2,35]),e(h,[2,38]),e(h,[2,42]),e(h,[2,43]),e(h,[2,44]),{3:65,4:te,5:ie,6:oe,7:he,8:pe,9:se,10:le,11:ue,12:de,13:we,14:De,15:Ge,21:64},e(h,[2,53],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,49:[1,78],63:F,64:U,65:z,66:V,67:W}),e(h,[2,56],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,49:[1,79],63:F,64:U,65:z,66:V,67:W}),e(h,[2,57],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),e(h,[2,58],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),e(h,[2,59],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),e(h,[2,60],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),{45:[1,80]},{44:[1,81]},e(H,[2,65]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),{3:83,4:te,5:ie,6:oe,7:he,8:pe,9:se,10:le,11:ue,12:de,13:we,14:De,15:Ge,18:[1,82]},e(be,[2,23]),e(be,[2,1]),e(be,[2,2]),e(be,[2,3]),e(be,[2,4]),e(be,[2,5]),e(be,[2,6]),e(be,[2,7]),e(be,[2,8]),e(be,[2,9]),e(be,[2,10]),e(be,[2,11]),e(be,[2,12]),e(h,[2,52],{58:31,43:84,4:d,5:p,10:g,12:m,13:y,14:x,15:C,60:D,61:P,63:F,64:U,65:z,66:V,67:W}),e(h,[2,55],{58:31,43:85,4:d,5:p,10:g,12:m,13:y,14:x,15:C,60:D,61:P,63:F,64:U,65:z,66:V,67:W}),{46:[1,86]},{45:[1,87]},{4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,16:90,17:ht,18:Xe,19:dt,20:at,22:89,23:88},e(be,[2,24]),e(h,[2,51],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),e(h,[2,54],{59:60,58:61,4:d,5:p,8:X,10:g,12:m,13:y,14:x,15:C,18:J,63:F,64:U,65:z,66:V,67:W}),e(h,[2,47],{22:89,16:90,23:101,4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,17:ht,18:Xe,19:dt,20:at}),{46:[1,102]},e(h,[2,29],{10:kt}),e(Le,[2,27],{16:104,4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,17:ht,18:Xe,19:dt,20:at}),e(lt,[2,25]),e(lt,[2,13]),e(lt,[2,14]),e(lt,[2,15]),e(lt,[2,16]),e(lt,[2,17]),e(lt,[2,18]),e(lt,[2,19]),e(lt,[2,20]),e(lt,[2,21]),e(lt,[2,22]),e(h,[2,49],{10:kt}),e(h,[2,48],{22:89,16:90,23:105,4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,17:ht,18:Xe,19:dt,20:at}),{4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,16:90,17:ht,18:Xe,19:dt,20:at,22:106},e(lt,[2,26]),e(h,[2,50],{10:kt}),e(Le,[2,28],{16:104,4:qe,5:Ie,6:Be,8:ke,11:Qe,13:Pe,17:ht,18:Xe,19:dt,20:at})],defaultActions:{8:[2,30],9:[2,31]},parseError:s(function(xe,ae){if(ae.recoverable)this.trace(xe);else{var _e=new Error(xe);throw _e.hash=ae,_e}},"parseError"),parse:s(function(xe){var ae=this,_e=[0],Se=[],Je=[null],Re=[],et=this.table,ze="",Ke=0,We=0,nt=0,Te=2,bt=1,Ae=Re.slice.call(arguments,1
vendor: 7,451 bytes, lines 1731-1736
1731),ft=Object.create(this.lexer),Nt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(Nt.yy[Wt]=this.yy[Wt]);ft.setInput(xe,Nt.yy),Nt.yy.lexer=ft,Nt.yy.parser=this,typeof ft.yylloc>"u"&&(ft.yylloc={});var Ht=ft.yylloc;Re.push(Ht);var Ft=ft.options&&ft.options.ranges;typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt($e){_e.length=_e.length-2*$e,Je.length=Je.length-$e,Re.length=Re.length-$e}f(Qt,"yt"),s(Qt,"popStack");function Dt(){var $e;return $e=Se.pop()||ft.lex()||bt,typeof $e!="number"&&($e instanceof Array&&(Se=$e,$e=Se.pop()),$e=ae.symbols_[$e]||$e),$e}f(Dt,"oe"),s(Dt,"lex");for(var Mt,$t,At,Kt,rr,ei,qt={},Qr,or,Ar,li;;){if(At=_e[_e.length-1],this.defaultActions[At]?Kt=this.defaultActions[At]:((Mt===null||typeof Mt>"u")&&(Mt=Dt()),Kt=et[At]&&et[At][Mt]),typeof Kt>"u"||!Kt.length||!Kt[0]){var ki="";li=[];for(Qr in et[At])this.terminals_[Qr]&&Qr>Te&&li.push("'"+this.terminals_[Qr]+"'");ft.showPosition?ki="Parse error on line "+(Ke+1)+`: 1732`+ft.showPosition()+` 1733Expecting `+li.join(", ")+", got '"+(this.terminals_[Mt]||Mt)+"'":ki="Parse error on line "+(Ke+1)+": Unexpected "+(Mt==bt?"end of input":"'"+(this.terminals_[Mt]||Mt)+"'"),this.parseError(ki,{text:ft.match,token:this.terminals_[Mt]||Mt,line:ft.yylineno,loc:Ht,expected:li})}if(Kt[0]instanceof Array&&Kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+Mt);switch(Kt[0]){case 1:_e.push(Mt),Je.push(ft.yytext),Re.push(ft.yylloc),_e.push(Kt[1]),Mt=null,$t?(Mt=$t,$t=null):(We=ft.yyleng,ze=ft.yytext,Ke=ft.yylineno,Ht=ft.yylloc,nt>0&&nt--);break;case 2:if(or=this.productions_[Kt[1]][1],qt.$=Je[Je.length-or],qt._$={first_line:Re[Re.length-(or||1)].first_line,last_line:Re[Re.length-1].last_line,first_column:Re[Re.length-(or||1)].first_column,last_column:Re[Re.length-1].last_column},Ft&&(qt._$.range=[Re[Re.length-(or||1)].range[0],Re[Re.length-1].range[1]]),ei=this.performAction.apply(qt,[ze,We,Ke,Nt.yy,Kt[1],Je,Re].concat(Ae)),typeof ei<"u")return ei;or&&(_e=_e.slice(0,-1*or*2),Je=Je.slice(0,-1*or),Re=Re.slice(0,-1*or)),_e.push(this.productions_[Kt[1]][0]),Je.push(qt.$),Re.push(qt._$),Ar=et[_e[_e.length-2]][_e[_e.length-1]],_e.push(Ar);break;case 3:return!0}}return!0},"parse")},tt=(function(){var xe={EOF:1,parseError:s(function(ae,_e){if(this.yy.parser)this.yy.parser.parseError(ae,_e);else throw new Error(ae)},"parseError"),setInput:s(function(ae,_e){return this.yy=_e||this.yy||{},this._input=ae,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 ae=this._input[0];this.yytext+=ae,this.yyleng++,this.offset++,this.match+=ae,this.matched+=ae;var _e=ae.match(/(?:\r\n?|\n).*/g);return _e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ae},"input"),unput:s(function(ae){var _e=ae.length,Se=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_e),this.offset-=_e;var Je=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 Re=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===Je.length?this.yylloc.first_column:0)+Je[Je.length-Se.length].length-Se[0].length:this.yylloc.first_column-_e},this.options.ranges&&(this.yylloc.range=[Re[0],Re[0]+this.yyleng-_e]),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). 1734`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(ae){this.unput(this.match.slice(ae))},"less"),pastInput:s(function(){var ae=this.matched.substr(0,this.matched.length-this.match.length);return(ae.length>20?"...":"")+ae.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var ae=this.match;return ae.length<20&&(ae+=this._input.substr(0,20-ae.length)),(ae.substr(0,20)+(ae.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var ae=this.pastInput(),_e=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+` 1735`+_e+"^"},"showPosition"),test_match:s(function(ae,_e){var Se,Je,Re;if(this.options.backtrack_lexer&&(Re={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&&(Re.yylloc.range=this.yylloc.range.slice(0))),Je=ae[0].match(/(?:\r\n?|\n).*/g),Je&&(this.yylineno+=Je.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Je?Je[Je.length-1].length-Je[Je.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ae[0].length},this.yytext+=ae[0],this.match+=ae[0],this.matches=ae,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(ae[0].length),this.matched+=ae[0],Se=this.performAction.call(this,this.yy,this,_e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Se)return Se;if(this._backtrack){for(var et in Re)this[et]=Re[et];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ae,_e,Se,Je;this._more||(this.yytext="",this.match="");for(var Re=this._currentRules(),et=0;et<Re.length;et++)if(Se=this._input.match(this.rules[Re[et]]),Se&&(!_e||Se[0].length>_e[0].length)){if(_e=Se,Je=et,this.options.backtrack_lexer){if(ae=this.test_match(Se,Re[et]),ae!==!1)return ae;if(this._backtrack){_e=!1;continue}else return!1}else if(!this.options.flex)break}return _e?(ae=this.test_match(_e,Re[Je]),ae!==!1?ae:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1736`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var ae=this.next();return ae||this.lex()},"lex"),begin:s(function(ae){this.conditionStack.push(ae)},"begin"),popState:s(function(){var ae=this.conditionStack.length-1;return ae>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(ae){return ae=this.conditionStack.length-1-Math.abs(ae||0
vendor: 5,071 bytes, line 1736
1736),ae>=0?this.conditionStack[ae]:"INITIAL"},"topState"),pushState:s(function(ae){this.begin(ae)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(ae,_e,Se,Je){var Re=Je;switch(Se){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";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;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52: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,/^(?:[^\x00-\x7F]+)/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,52],inclusive:!0}}};return xe})();ve.lexer=tt;function Q(){this.yy={}}return f(Q,"fe"),s(Q,"Parser"),Q.prototype=ve,ve.Parser=Q,new Q})(),ER.parser=ER,Qnt=ER}),Qs,Jnt,vwt=Y(()=>{"use strict";var e;ui(),rs(),jt(),om(),Qs=sg(),Jnt=(e=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((r=bi.quadrantChart)==null?void 0:r.chartWidth)||500,chartWidth:((i=bi.quadrantChart)==null?void 0:i.chartHeight)||500,titlePadding:((n=bi.quadrantChart)==null?void 0:n.titlePadding)||10,titleFontSize:((a=bi.quadrantChart)==null?void 0:a.titleFontSize)||20,quadrantPadding:((o=bi.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((l=bi.quadrantChart)==null?void 0:l.xAxisLabelPadding)||5,yAxisLabelPadding:((h=bi.quadrantChart)==null?void 0:h.yAxisLabelPadding)||5,xAxisLabelFontSize:((u=bi.quadrantChart)==null?void 0:u.xAxisLabelFontSize)||16,yAxisLabelFontSize:((d=bi.quadrantChart)==null?void 0:d.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=bi.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((g=bi.quadrantChart)==null?void 0:g.quadrantTextTopPadding)||5,pointTextPadding:((m=bi.quadrantChart)==null?void 0:m.pointTextPadding)||5,pointLabelFontSize:((y=bi.quadrantChart)==null?void 0:y.pointLabelFontSize)||12,pointRadius:((x=bi.quadrantChart)==null?void 0:x.pointRadius)||5,xAxisPosition:((C=bi.quadrantChart)==null?void 0:C.xAxisPosition)||"top",yAxisPosition:((w=bi.quadrantChart)==null?void 0:w.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((_=bi.quadrantChart)==null?void 0:_.quadrantInternalBorderStrokeWidth)||1,quadrantExter
vendor: 5,256 bytes, line 1736
1736nalBorderStrokeWidth:((S=bi.quadrantChart)==null?void 0:S.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:Qs.quadrant1Fill,quadrant2Fill:Qs.quadrant2Fill,quadrant3Fill:Qs.quadrant3Fill,quadrant4Fill:Qs.quadrant4Fill,quadrant1TextFill:Qs.quadrant1TextFill,quadrant2TextFill:Qs.quadrant2TextFill,quadrant3TextFill:Qs.quadrant3TextFill,quadrant4TextFill:Qs.quadrant4TextFill,quadrantPointFill:Qs.quadrantPointFill,quadrantPointTextFill:Qs.quadrantPointTextFill,quadrantXAxisTextFill:Qs.quadrantXAxisTextFill,quadrantYAxisTextFill:Qs.quadrantYAxisTextFill,quadrantTitleFill:Qs.quadrantTitleFill,quadrantInternalBorderStrokeFill:Qs.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Qs.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,ge.info("clear called")}setData(r){this.data=Tt(Tt({},this.data),r)}addPoints(r){this.data.points=[...r,...this.data.points]}addClass(r,i){this.classes.set(r,i)}setConfig(r){ge.trace("setConfig called with: ",r),this.config=Tt(Tt({},this.config),r)}setThemeConfig(r){ge.trace("setThemeConfig called with: ",r),this.themeConfig=Tt(Tt({},this.themeConfig),r)}calculateSpace(r,i,n,a){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,l={top:r==="top"&&i?o:0,bottom:r==="bottom"&&i?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,u={left:this.config.yAxisPosition==="left"&&n?h:0,right:this.config.yAxisPosition==="right"&&n?h:0},d=this.config.titleFontSize+this.config.titlePadding*2,p={top:a?d:0},g=this.config.quadrantPadding+u.left,m=this.config.quadrantPadding+l.top+p.top,y=this.config.chartWidth-this.config.quadrantPadding*2-u.left-u.right,x=this.config.chartHeight-this.config.quadrantPadding*2-l.top-l.bottom-p.top,C=y/2,w=x/2;return{xAxisSpace:l,yAxisSpace:u,titleSpace:p,quadrantSpace:{quadrantLeft:g,quadrantTop:m,quadrantWidth:y,quadrantHalfWidth:C,quadrantHeight:x,quadrantHalfHeight:w}}}getAxisLabels(r,i,n,a){let{quadrantSpace:o,titleSpace:l}=a,{quadrantHalfHeight:h,quadrantHeight:u,quadrantLeft:d,quadrantHalfWidth:p,quadrantTop:g,quadrantWidth:m}=o,y=!!this.data.xAxisRightText,x=!!this.data.yAxisTopText,C=[];return this.data.xAxisLeftText&&i&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:d+(y?p/2:0),y:r==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+g+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&i&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:d+p+(y?p/2:0),y:r==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+g+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+d+m+this.config.quadrantPadding,y:g+u-(x?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+d+m+this.config.quadrantPadding,y:g+h-(x?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),C}getQuadrants(r){let{quadrantSpace:i}=r,{quadrantHalfHeight:n,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:l}=i,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+o,y:l,width:o,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:a,y:l,width:o,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:a,y:l+n,width:o,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:a+o,y:l+n,width:o,height:n,fill:this.themeConfig.quadrant4Fill}];for(let u of h)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 h}getQuadrantPoints(r){let{quadrantSpace:i}=r,{quadrantHeight:n,quadrantLeft:a,quadrantTop:o,quadrantWidth:l}=i,h=Eg().domain([0,1]).range([a,l+a]),u=Eg().domain([0,1]).range([n+o,o]);return this.data.points.map(d=>{var g,m,y,x;let p=this.classes.get(d.className);
1736return p&&(d=Tt(Tt({},p),d)),{x:h(d.x),y:u(d.y),fill:(g=d.color)!=null?g:this.themeConfig.quadrantPointFill,radius:(m=d.radius)!=null?m:this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:h(d.x),y:u(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:(y=d.strokeColor)!=null?y:this.themeConfig.quadrantPointFill,strokeWidth:(x=d.strokeWidth)!=null?x:"0px"}})}getBorders(r){let i=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=r,{quadrantHalfHeight:a,quadrantHeight:o,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:u,quadrantWidth:d}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-i,y1:u,x2:l+d+i,y2:u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l+d,y1:u+i,x2:l+d,y2:u+o-i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-i,y1:u+o,x2:l+d+i,y2:u+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l,y1:u+i,x2:l,y2:u+o-i},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+h,y1:u+i,x2:l+h,y2:u+o-i},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+i,y1:u+a,x2:l+d-i,y2:u+a}]}getTitle(r){if(r)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 r=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),i=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(a,r,i,n);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(a,r,i,o),borderLines:this.getBorders(o),title:this.getTitle(n)}}},f(e,"M6"),s(e,"QuadrantBuilder"),e)});function _oe(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}f(_oe,"qV");function eat(e){return!/^\d+$/.test(e)}f(eat,"uAe");function tat(e){return!/^\d+px$/.test(e)}f(tat,"hAe");var bw,bwt=Y(()=>{"use strict";var e;bw=(e=class extends Error{constructor(r,i,n){super(`value for ${r} ${i}
1736 is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},f(e,"pm"),s(e,"InvalidStyleError"),e),s(_oe,"validateHexCode"),s(eat,"validateNumber"),s(tat,"validateSizeInPixels")});function gu(e){return Ei(e.trim(),fat)}f(gu,"wh");function rat(e){ps.setData({quadrant1Text:gu(e.text)})}f(rat,"M2t");function iat(e){ps.setData({quadrant2Text:gu(e.text)})}f(iat,"N2t");function nat(e){ps.setData({quadrant3Text:gu(e.text)})}f(nat,"I2t");function aat(e){ps.setData({quadrant4Text:gu(e.text)})}f(aat,"O2t");function sat(e){ps.setData({xAxisLeftText:gu(e.text)})}f(sat,"P2t");function oat(e){ps.setData({xAxisRightText:gu(e.text)})}f(oat,"B2t");function lat(e){ps.setData({yAxisTopText:gu(e.text)})}f(lat,"F2t");function cat(e){ps.setData({yAxisBottomText:gu(e.text)})}f(cat,"$2t");function SR(e){let t={};for(let r of e){let[i,n]=r.trim().split(/\s*:\s*/);if(i==="radius"){if(eat(n))throw new bw(i,n,"number");t.radius=parseInt(n)}else if(i==="color"){if(_oe(n))throw new bw(i,n,"hex code");t.color=n}else if(i==="stroke-color"){if(_oe(n))throw new bw(i,n,"hex code");t.strokeColor=n}else if(i==="stroke-width"){if(tat(n))throw new bw(i,n,"number of pixels (eg. 10px)");t.strokeWidth=n}else throw new Error(`style named ${i} is not supported.`)}return t}f(SR,"UV");function hat(e,t,r,i,n){let a=SR(n);ps.addPoints([Tt({x:r,y:i,text:gu(e.text),className:t},a)])}f(hat,"z2t");function uat(e,t){ps.addClass(e,SR(t))}f(uat,"G2t");function dat(e){ps.setConfig({chartWidth:e})}f(dat,"V2t");function pat(e){ps.setConfig({chartHeight:e})}f(pat,"W2t");function gat(){let e=Ue(),{themeVariables:t,quadrantChart:r}=e;return r&&ps.setConfig(r),ps.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),ps.setData({titleText:Cn()}),ps.build()}f(gat,"q2t");var fat,ps,mat,yat,xwt=Y(()=>{"use strict";vr(),gi(),En(),vwt(),bwt(),fat=Ue(),s(gu,"textSanitizer"),ps=new Jnt,s(rat,"setQuadrant1Text"),s(iat,"setQuadrant2Text"),s(nat,"setQuadrant3Text"),s(aat,"setQuadrant4Text"),s(sat,"setXAxisLeftText"),s(oat,"setXAxisRightText"),s(lat,"setYAxisTopText"),s(cat,"setYAxisBottomText"),s(SR,"parseStyles"),s(hat,"addPoint"),s(uat,"addClass"),s(dat,"setWidth"),s(pat,"setHeight"),s(gat,"getQuadrantData"),mat=s(function(){ps.clear(),Tn()},"clear"),yat={setWidth:dat,setHeight:pat,setQuadrant1Text:rat,setQuadrant2Text:iat,setQuadrant3Text:nat,setQuadrant4Text:aat,setXAxisLeftText:sat,setXAxisRightText:oat,setYAxisTopText:lat,setYAxisBottomText:cat,parseStyles:SR,addPoint:hat,addClass:uat,getQuadrantData:gat,clear:mat,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,getAccDescription:zn,setAccDescription:Fn}}),vat,bat,kwt=Y(()=>{"use strict";ui(),vr(),jt(),Bn(),vat=s((e,t,r,i)=>{var v,k,E,A,I,$;function n(O){return O==="top"?"hanging":"middle"}f(n,"n"),s(n,"getDominantBaseLine");function a(O){return O==="left"?"start":"middle"}f(a,"a"),s(a,"getTextAnchor");function o(O){return`translate(${O.x}, ${O.y}) rotate(${O.rotation||0})`}f(o,"s"),s(o,"getTransformation");let l=Ue();ge.debug(`Rendering quadrant chart 1737`+e);let h=l.securityLevel,u;h==="sandbox"&&(u=Lt("#i"+t));let d=Lt(h==="sandbox"?u.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`),p=d.append("g").attr("class","main"),g=(k=(v=l.quadrantChart)==null?void 0:v.chartWidth)!=null?k:500,m=(A=(E=l.quadrantChart)==null?void 0:E.chartHeight)!=null?A:500;Ta(d,m,g,($=(I=l.quadrantChart)==null?void 0:I.useMaxWidth)!=null?$:!0),d.attr("viewBox","0 0 "+g+" "+m),i.db.setHeight(m),i.db.setWidth(g);let y=i.db.getQuadrantData(),x=p.append("g").attr("class","quadrants"),C=p.append("g").attr("class","border"),w=p.append("g").attr("class","data-
1737points"),_=p.append("g").attr("class","labels"),S=p.append("g").attr("class","title");y.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",n(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",o(y.title)).text(y.title.text),y.borderLines&&C.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",O=>O.x1).attr("y1",O=>O.y1).attr("x2",O=>O.x2).attr("y2",O=>O.y2).style("stroke",O=>O.strokeFill).style("stroke-width",O=>O.strokeWidth);let R=x.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");R.append("rect").attr("x",O=>O.x).attr("y",O=>O.y).attr("width",O=>O.width).attr("height",O=>O.height).attr("fill",O=>O.fill),R.append("text").attr("x",0).attr("y",0).attr("fill",O=>O.text.fill).attr("font-size",O=>O.text.fontSize).attr("dominant-baseline",O=>n(O.text.horizontalPos)).attr("text-anchor",O=>a(O.text.verticalPos)).attr("transform",O=>o(O.text)).text(O=>O.text.text),_.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(O=>O.text).attr("fill",O=>O.fill).attr("font-size",O=>O.fontSize).attr("dominant-baseline",O=>n(O.horizontalPos)).attr("text-anchor",O=>a(O.verticalPos)).attr("transform",O=>o(O));let b=w.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");b.append("circle").attr("cx",O=>O.x).attr("cy",O=>O.y).attr("r",O=>O.radius).attr("fill",O=>O.fill).attr("stroke",O=>O.strokeColor).attr("stroke-width",O=>O.strokeWidth),b.append("text").attr("x",0).attr("y",0).text(O=>O.text.text).attr("fill",O=>O.text.fill).attr("font-size",O=>O.text.fontSize).attr("dominant-baseline",O=>n(O.text.horizontalPos)).attr("text-anchor",O=>a(O.text.verticalPos)).attr("transform",O=>o(O.text))},"draw"),bat={draw:vat}}),xat={};Jr(xat,{diagram:f(()=>kat,"diagram")});var kat,Twt=Y(()=>{"use strict";ywt(),xwt(),kwt(),kat={parser:Qnt,db:yat,renderer:bat,styles:s(()=>"","styles")}}),_R,Tat,wwt=Y(()=>{"use strict";_R=(function(){var e=s(function(P,F,U,z){for(U=U||{},z=P.length;z--;U[P[z]]=F);return U},"o"),t=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],n=[1,5],a=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],h=[1,25],u=[1,26],d=[1,28],p=[1,29],g=[1,30],m=[1,31],y=[1,32],x=[1,33],C=[1,34],w=[1,35],_=[1,36],S=[1,37],R=[1,43],b=[1,42],v=[1,47],k=[1,50],E=[1,10,12,14,16,18,19,21,23,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],I=[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],$=[1,64],O={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(P,F,U,z,V,W,X){var J=W.length-1;switch(V){case 5:z.setOrientation(W[J]);break;case 9:z.setDiagramTitle(W[J].text.trim());break;case 12:z.setLineData({text:"",type:"text"},W[J]);break;case 13:z.setLineData(W[J-1],W[J]);break;case 14:z.setBarData({text:"",type:"text"},W[J]);break;case 15:z.setBarData(W[J-1],W[J]);break;case 16:this.$=W[J].trim(),z.setAccTitle(this.$);break;case 17:case 18:this.$=W[J].trim(),z.setAccDescription(this.$);break;case 19:this.$=W[J-1];break;case 20:this.$=[Number(W[J-2]),...W[J]];break;case 21:this.$=[Number(W[J])];break;case 22:z.setXAxisTitle(W[J]);break;case 23:z.setXAxisTitle(W[J-1]);break;case 24:z.setXAxisTitle({type:"text",text:""});break;case 25:z.setXAxisBand(W[J]);break;case 26:z.setXAxisRangeData(Number(W[J-2]),Number(W[J]));break;case 27:this.$=W[J-1];break;case 28:this.$=[W[J-2],...W[J]];break;case 29:this.$=[W[J]];break;case 30:z.setYAxisTitle(W[J]);break;case 31:z.setYAxisTitle(W[J-1]);break;case 32:z.setYAxisTitle({type:"text",text:""});break;case 33:z.setYAxisRangeData(Number(W[J-2]),Number(W[J]));break;case 37:this.$={text:W[J],type:"text"};break;case 38:this.$={text:W[J],type:"text"};break;case 39:this.$={text:W[J],type:"markdown"};break;case 40:this.$=W[J];break;case 41:this.$=W[J-1]+""+W[J];break}},"anonymous"),table:[e(t,r,{3:1,4:2,7:4,5:i,34:n,35:a,36:o}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:i,34:n,35:a,36:o}),e(t,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:n,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]},e(l,[2,34]),e(l,[2,35]),e(l,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:i,34:n,35:a,36:o}),{1:[2,3]},e(l,[2,5]),e(t,[2,7],{4:22,34:n,35:a,36:o}),{11:23,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},{11:39,13:38,24:R,27:b,29:40,30:41,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},{11:45,15:44,27:v,33:46,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},{11:49,17:48,24:k,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},{11:52,17:51,24:k,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},{20:[1,53]},{22:[1,54]},e(E,[2,18]),{1:[2,2]},e(E,[2,8]),e(E,[2,9]),e(A,[2,37],{40:55,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S}
vendor: 13,933 bytes, lines 1737-1742
1737),e(A,[2,38]),e(A,[2,39]),e(I,[2,40]),e(I,[2,42]),e(I,[2,43]),e(I,[2,44]),e(I,[2,45]),e(I,[2,46]),e(I,[2,47]),e(I,[2,48]),e(I,[2,49]),e(I,[2,50]),e(I,[2,51]),e(E,[2,10]),e(E,[2,22],{30:41,29:56,24:R,27:b}),e(E,[2,24]),e(E,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},e(E,[2,11]),e(E,[2,30],{33:60,27:v}),e(E,[2,32]),{31:[1,61]},e(E,[2,12]),{17:62,24:k},{25:63,27:$},e(E,[2,14]),{17:65,24:k},e(E,[2,16]),e(E,[2,17]),e(I,[2,41]),e(E,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(E,[2,31]),{27:[1,69]},e(E,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(E,[2,15]),e(E,[2,26]),e(E,[2,27]),{11:59,32:72,37:24,38:h,39:u,40:27,41:d,42:p,43:g,44:m,45:y,46:x,47:C,48:w,49:_,50:S},e(E,[2,33]),e(E,[2,19]),{25:73,27:$},{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(P,F){if(F.recoverable)this.trace(P);else{var U=new Error(P);throw U.hash=F,U}},"parseError"),parse:s(function(P){var F=this,U=[0],z=[],V=[null],W=[],X=this.table,J="",H=0,te=0,ie=0,oe=2,he=1,pe=W.slice.call(arguments,1),se=Object.create(this.lexer),le={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(le.yy[ue]=this.yy[ue]);se.setInput(P,le.yy),le.yy.lexer=se,le.yy.parser=this,typeof se.yylloc>"u"&&(se.yylloc={});var de=se.yylloc;W.push(de);var we=se.options&&se.options.ranges;typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(Le){U.length=U.length-2*Le,V.length=V.length-Le,W.length=W.length-Le}f(De,"De"),s(De,"popStack");function Ge(){var Le;return Le=z.pop()||se.lex()||he,typeof Le!="number"&&(Le instanceof Array&&(z=Le,Le=z.pop()),Le=F.symbols_[Le]||Le),Le}f(Ge,"Ie"),s(Ge,"lex");for(var be,qe,Ie,Be,ke,Qe,Pe={},ht,Xe,dt,at;;){if(Ie=U[U.length-1],this.defaultActions[Ie]?Be=this.defaultActions[Ie]:((be===null||typeof be>"u")&&(be=Ge()),Be=X[Ie]&&X[Ie][be]),typeof Be>"u"||!Be.length||!Be[0]){var kt="";at=[];for(ht in X[Ie])this.terminals_[ht]&&ht>oe&&at.push("'"+this.terminals_[ht]+"'");se.showPosition?kt="Parse error on line "+(H+1)+`: 1738`+se.showPosition()+` 1739Expecting `+at.join(", ")+", got '"+(this.terminals_[be]||be)+"'":kt="Parse error on line "+(H+1)+": Unexpected "+(be==he?"end of input":"'"+(this.terminals_[be]||be)+"'"),this.parseError(kt,{text:se.match,token:this.terminals_[be]||be,line:se.yylineno,loc:de,expected:at})}if(Be[0]instanceof Array&&Be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+be);switch(Be[0]){case 1:U.push(be),V.push(se.yytext),W.push(se.yylloc),U.push(Be[1]),be=null,qe?(be=qe,qe=null):(te=se.yyleng,J=se.yytext,H=se.yylineno,de=se.yylloc,ie>0&&ie--);break;case 2:if(Xe=this.productions_[Be[1]][1],Pe.$=V[V.length-Xe],Pe._$={first_line:W[W.length-(Xe||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Xe||1)].first_column,last_column:W[W.length-1].last_column},we&&(Pe._$.range=[W[W.length-(Xe||1)].range[0],W[W.length-1].range[1]]),Qe=this.performAction.apply(Pe,[J,te,H,le.yy,Be[1],V,W].concat(pe)),typeof Qe<"u")return Qe;Xe&&(U=U.slice(0,-1*Xe*2),V=V.slice(0,-1*Xe),W=W.slice(0,-1*Xe)),U.push(this.productions_[Be[1]][0]),V.push(Pe.$),W.push(Pe._$),dt=X[U[U.length-2]][U[U.length-1]],U.push(dt);break;case 3:return!0}}return!0},"parse")},j=(function(){var P={EOF:1,parseError:s(function(F,U){if(this.yy.parser)this.yy.parser.parseError(F,U);else throw new Error(F)},"parseError"),setInput:s(function(F,U){return this.yy=U||this.yy||{},this._input=F,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 F=this._input[0];this.yytext+=F,this.yyleng++,this.offset++,this.match+=F,this.matched+=F;var U=F.match(/(?:\r\n?|\n).*/g);return U?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),F},"input"),unput:s(function(F){var U=F.length,z=F.split(/(?:\r\n?|\n)/g);this._input=F+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-U),this.offset-=U;var V=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var W=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===V.length?this.yylloc.first_column:0)+V[V.length-z.length].length-z[0].length:this.yylloc.first_column-U},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-U]),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). 1740`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(F){this.unput(this.match.slice(F))},"less"),pastInput:s(function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var F=this.match;return F.length<20&&(F+=this._input.substr(0,20-F.length)),(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var F=this.pastInput(),U=new Array(F.length+1).join("-");return F+this.upcomingInput()+` 1741`+U+"^"},"showPosition"),test_match:s(function(F,U){var z,V,W;if(this.options.backtrack_lexer&&(W={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&&(W.yylloc.range=this.yylloc.range.slice(0))),V=F[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length},this.yytext+=F[0],this.match+=F[0],this.matches=F,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(F[0].length),this.matched+=F[0],z=this.performAction.call(this,this.yy,this,U,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var X in W)this[X]=W[X];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var F,U,z,V;this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),X=0;X<W.length;X++)if(z=this._input.match(this.rules[W[X]]),z&&(!U||z[0].length>U[0].length)){if(U=z,V=X,this.options.backtrack_lexer){if(F=this.test_match(z,W[X]),F!==!1)return F;if(this._backtrack){U=!1;continue}else return!1}else if(!this.options.flex)break}return U?(F=this.test_match(U,W[V]),F!==!1?F:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1742`+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,U,z,V){var W=V;switch(z){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";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 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46: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,/^(?:xychart\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<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/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,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],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:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return P})();O.lexer=j;function D(){this.yy={}}return f(D,"R"),s(D,"Parser"),D.prototype=O,O.Parser=D,new D})(),_R.parser=_R,Tat=_R});function Aoe(e){return e.type==="bar"}f(Aoe,"YV");function Loe(e){return e.type==="band"}f(Loe,"N6");function Yv(e){return e.type==="linear"}f(Yv,"vy");var Roe=Y(()=>{"use strict";s(Aoe,"isBarPlot"),s(Loe,"isBandAxisData"),s(Yv,"isLinearAxisData")}),Ioe,wat=Y(()=>{"use strict";var e;nl(),Ioe=(e=class{constructor(r){this.parentGroup=r}getMaxDimension(r,i){if(!this.parentGroup)return{width:r.reduce((o,l)=>Math.max(l.length,o),0)*i,height:i};let n={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let o of r){let l=mTe(a,1,o),h=l?l.width:o.length*i,u=l?l.height:i;n.width=Math.max(n.width,h),n.height=Math.max(n.height,u)}return a.remove(),n}},f(e,"xy"),s(e,"TextDimensionCalculatorWithFont"),e)}),Doe,Cat=Y(()=>{"use strict";var e;Doe=(e=class{constructor(r,i,n,a){this.axisConfig=r,this.title=i,this.textDimensionCalculator=n,this.axisThemeConfig=a,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"}setRange(r){this.range=r,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=r[1]-r[0]:this.boundingRect.width=r[1]-r[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(r){this.axisPosition=r,this.setRange(this.range)}getTickDistance(){let r=this.getRange();return Math.abs(r[0]-r[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(r=>r.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(r){let i=r.height;if(this.axisConfig.showAxisLine&&i>
vendor: 4,293 bytes, line 1742
1742this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),a=.2*r.width;this.outerPadding=Math.min(n.width/2,a);let o=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=r.width,this.boundingRect.height=r.height-i}calculateSpaceIfDrawnVertical(r){let i=r.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),a=.2*r.height;this.outerPadding=Math.min(n.height/2,a);let o=n.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=r.width-i,this.boundingRect.height=r.height}calculateSpace(r){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(r):this.calculateSpaceIfDrawnHorizontally(r),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(r){this.boundingRect.x=r.x,this.boundingRect.y=r.y}getDrawableElementsForLeftAxis(){let r=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;r.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&r.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.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(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);r.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${i},${this.getScaleValue(n)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&r.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"}]}),r}getDrawableElementsForBottomAxis(){let r=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;r.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&r.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),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 i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWi
vendor: 1,697 bytes, line 1742
1742dth:0);r.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${i} L ${this.getScaleValue(n)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&r.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"}]}),r}getDrawableElementsForTopAxis(){let r=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;r.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&r.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),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 i=this.boundingRect.y;r.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}
1742 L ${this.getScaleValue(n)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&r.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"}]}),r}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():[]}},f(e,"by"),s(e,"BaseAxis"),e)}),Eat,Cwt=Y(()=>{"use strict";var e;ui(),jt(),Cat(),Eat=(e=class extends Doe{constructor(r,i,n,a,o){super(r,a,o,i),this.categories=n,this.scale=oE().domain(this.categories).range(this.getRange())}setRange(r){super.setRange(r)}recalculateScale(){this.scale=oE().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),ge.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(r){var i;return(i=this.scale(r))!=null?i:this.getRange()[0]}},f(e,"O6"),s(e,"BandAxis"),e)}),Sat,Ewt=Y(()=>{"use strict";var e;ui(),Cat(),Sat=(e=class extends Doe{constructor(r,i,n,a,o){super(r,a,o,i),this.domain=n,this.scale=Eg().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let r=[...this.domain];this.axisPosition==="left"&&r.reverse(),this.scale=Eg().domain(r).range(this.getRange())}getScaleValue(r){return this.scale(r)}},f(e,"P6"),s(e,"LinearAxis"),e)});function Noe(e,t,r,i){let n=new Ioe(i);return Loe(e)?new Eat(t,r,e.categories,e.title,n):new Sat(t,r,[e.min,e.max],e.title,n)}f(Noe,"KV");var Swt=Y(()=>{"use strict";Roe(),wat(),Cwt(),Ewt(),s(Noe,"getAxis")});function _at(e,t,r,i){let n=new Ioe(i);return new Aat(n,e,t,r)}f(_at,"EAe");var Aat,_wt=Y(()=>{"use strict";var e;wat(),Aat=(e=class{constructor(r,i,n,a){this.textDimensionCalculator=r,this.chartConfig=i,this.chartData=n,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(r){this.boundingRect.x=r.x,this.boundingRect.y=r.y}calculateSpace(r){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(i.width,r.width),a=i.height+2*this.chartConfig.titlePadding;return i.width<=n&&i.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let r=[];return this.showChartTitle&&r.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}]}),r}},f(e,"ZV"),s(e,"ChartTitle"),e),s(_at,"getChartTitleComponent")}),Lat,Awt=Y(()=>{"use strict";var e;ui(),Lat=(e=class{constructor(r,i,n,a,o){this.plotData=r,this.xAxis=i,this.yAxis=n,this.orientation=a,this.plotIndex=o}getDrawableElement(){let r=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),i;return this.orientation==="horizontal"?i=Ym().y(n=>n[0]).x(n=>n[1])(r):i=Ym().x(n=>n[0]).y(n=>n[1])(r),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},f(e,"B6"),s(e,"LinePlot"),e)}),Rat,Lwt=Y(()=>{"use strict";var e;Rat=(e=class{constructor(r,i,n,a,o,l){this.barData=r,this.boundingRect=i,this.xAxis=n,this.yAxis=a,this.orientation=o,this.plotIndex=l}getDrawableElement(){let r=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:r.map(a=>({x:this.boundingRect.x,y:a[0]-n,height:i,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:r.map(a=>({x:a[0]-n,y:a[1],width:i,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},f(e,"F6"),s(e,"BarPlot"),e)});function Iat(e,t,r){return new Dat(e,t,r)}f(Iat,"RAe");var Dat,Rwt=Y(()=>{"use strict";var e;Awt(),Lwt(),Dat=(e=class{constructor(r,i,n){this.chartConfig=r,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(r,i){this.xAxis=r,this.yAxis=i}setBoundingBoxXY(r){this.boundingRect.x=r.x,this.boundingRect.y=r.y}calculateSpace(r){return this.boundingRect.width=r.width,this.boundingRect.height=r.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 r=[];for(let[i,n]of this.chartData.plots.entries())switch(n.type){case"line":{let a=new Lat(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);r.push(...a.getDrawableElement())}break;case"bar":{let a=new Rat(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);r.push(...a.getDrawableElement())}break}return r}},f(e,"QV"),s(e,"BasePlot"),e),s(Iat,"getPlotComponent")}),Nat,Iwt=Y(()=>{"use strict";var e;Swt(),_wt(),Rwt(),Roe(),Nat=(e=class{constructor(r,i,n,a){this.chartConfig=r,this.chartData=i,this.componentStore={title:_at(r,i,n,a),plot:Iat(r,i,n),xAxis:Noe(i.xAxis,r.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},a),yAxis:Noe(i.yAxis,r.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},a)}}calculateVerticalSpace(){let r=this.chartConfig.width,i=this.chartConfig.height,n=0,a=0,o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:o,height:l});r-=h.width,i-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),a=h.height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:r,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:r,height:i}),n=h.width,r-=h.width,r>0&&(o+=r,r=0),i>0&&(l+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:l}),this.componentStore.plot.setBoundingBoxXY({x:n,y:a}),this.componentStore.xAxis.setRange([n,n+o]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:a+l}),this.componentStore.yAxis.setRange([a,a+l]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(u=>Aoe(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let r=this.chartConfig.width,i=this.chartConfig.height,n=0,a=0,o=0,l=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:l,height:h});r-=u.width,i-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}
1742),n=u.height,i-=u.height,this.componentStore.xAxis.setAxisPosition("left"),u=this.componentStore.xAxis.calculateSpace({width:r,height:i}),r-=u.width,a=u.width,this.componentStore.yAxis.setAxisPosition("top"),u=this.componentStore.yAxis.calculateSpace({width:r,height:i}),i-=u.height,o=n+u.height,r>0&&(l+=r,r=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:h}),this.componentStore.plot.setBoundingBoxXY({x:a,y:o}),this.componentStore.yAxis.setRange([a,a+l]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:n}),this.componentStore.xAxis.setRange([o,o+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(d=>Aoe(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let r=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let i of Object.values(this.componentStore))r.push(...i.getDrawableElements());return r}},f(e,"$6"),s(e,"Orchestrator"),e)}),Mat,Dwt=Y(()=>{"use strict";var e;Iwt(),Mat=(e=class{static build(r,i,n,a){return new Nat(r,i,n,a).getDrawableElement()}},f(e,"z6"),s(e,"XYChartBuilder"),e)});function Moe(){let e=sg(),t=Ir();return da(e.xyChart,t.themeVariables.xyChart)}f(Moe,"OAe");function Ooe(){let e=Ir();return da(bi.xyChart,e.xyChart)}f(Ooe,"PAe");function $oe(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}f($oe,"BAe");function AR(e){let t=Ir();return Ei(e.trim(),t)}f(AR,"tW");function Oat(e){Yat=e}f(Oat,"Z2t");function $at(e){e==="horizontal"?Kv.chartOrientation="horizontal":Kv.chartOrientation="vertical"}f($at,"Q2t");function Bat(e){Zi.xAxis.title=AR(e.text)}f(Bat,"J2t");function Boe(e,t){Zi.xAxis={type:"linear",title:Zi.xAxis.title,min:e,max:t},xw=!0}f(Boe,"FAe");function Pat(e){Zi.xAxis={type:"band",title:Zi.xAxis.title,categories:e.map(t=>AR(t.text))},xw=!0}f(Pat,"eTt");function Fat(e){Zi.yAxis.title=AR(e.text)}f(Fat,"tTt");function zat(e,t){Zi.yAxis={type:"linear",title:Zi.yAxis.title,min:e,max:t},RR=!0}f(zat,"rTt");function qat(e){let t=Math.min(...e),r=Math.max(...e),i=Yv(Zi.yAxis)?Zi.yAxis.min:1/0,n=Yv(Zi.yAxis)?Zi.yAxis.max:-1/0;Zi.yAxis={type:"linear",title:Zi.yAxis.title,min:Math.min(i,t),max:Math.max(n,r)}}f(qat,"iTt");function Poe(e){let t=[];if(e.length===0)return t;if(!xw){let r=Yv(Zi.xAxis)?Zi.xAxis.min:1/0,i=Yv(Zi.xAxis)?Zi.xAxis.max:-1/0;Boe(Math.min(r,1),Math.max(i,e.length))}if(RR||qat(e),Loe(Zi.xAxis)&&(t=Zi.xAxis.categories.map((r,i)=>[r,e[i]])),Yv(Zi.xAxis)){let r=Zi.xAxis.min,i=Zi.xAxis.max,n=(i-r)/(e.length-1),a=[];for(let o=r;o<=i;o+=n)a.push(`${o}`);t=a.map((o,l)=>[o,e[l]])}return t}f(Poe,"$Ae");function Foe(e){return LR[e===0?0:e%LR.length]}f(Foe,"zAe");function jat(e,t){let r=Poe(t);Zi.plots.push({type:"line",strokeFill:Foe(Xv),strokeWidth:2,data:r}),Xv++}f(jat,"nTt");function Gat(e,t){let r=Poe(t);Zi.plots.push({type:"bar",fill:Foe(Xv),data:r}),Xv++}f(Gat,"aTt");function Uat(){if(Zi.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Zi.title=Cn(),Mat.build(Kv,Zi,Zv,Yat)}f(Uat,"sTt");function Vat(){return Zv}f(Vat,"oTt");function Wat(){return Kv}f(Wat,"lTt");function Hat(){return Zi}f(Hat,"cTt");var Xv,Yat,Kv,Zv,Zi,LR,xw,RR,Xat,Kat,Nwt=Y(()=>{"use strict";ti(),rs(),om(),wr(),gi(),En(),Dwt(),Roe(),Xv=0,Kv=Ooe(),Zv=Moe(),Zi=$oe(),LR=Zv.plotColorPalette.split(",").map(e=>e.trim()),xw=!1,RR=!1,s(Moe,"getChartDefaultThemeConfig"),s(Ooe,"getChartDefaultConfig"),s($oe,"getChartDefaultData"),s(AR,"textSanitizer"),s(Oat,"setTmpSVGG"),s($at,"setOrientation"),s(Bat,"setXAxisTitle"),s(Boe,"setXAxisRangeData"),s(Pat,"setXAxisBand"),s(Fat,"setYAxisTitle"),s(zat,"setYAxisRangeData"),s(qat,"setYAxisRangeFromPlotData"),s(Poe,"transformDataWithoutCategory"),s(Foe,"getPlotColorFromPalette"),s(jat,"setLineData"),s(Gat,"setBarData"),s(Uat,"getDrawableElem"),s(Vat,"getChartThemeConfig"),s(Wat,"getChartConfig"),s(Hat,"getXYChartData"),Xat=s(function(){Tn(),Xv=0,Kv=Ooe(),Zi=$oe(),Zv=Moe(),LR=Zv.plotColorPalette.split(",").map(e=>e.trim()),xw=!1,RR=!1},"clear"),Kat={getDrawableElem:Uat,clear:Xat,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,getAccDescription:zn,setAccDescription:Fn,setOrientation:$at,setXAxisTitle:Bat,setXAxisRangeData:Boe,setXAxisBand:Pat,setYAxisTitle:Fat,setYAxisRangeData:zat,setLineData:jat,setBarData:Gat,setTmpSVGG:Oat,getChartThemeConfig:Vat,getChartConfig:Wat,getXYChartData:Hat}}),Zat,Qat,Mwt=Y(()=>{"use strict";jt(),Ho(),Bn(),Zat=s((e,t,r,i)=>{let n=i.db,a=n.getChartThemeConfig(),o=n.getChartConfig(),l=n.getXYChartData().plots[0].data.map(S=>S[1]);function h(S){return S==="top"?"text-before-edge":"middle"}f(h,"u"),s(h,"getDominantBaseLine");function u(S){return S==="left"?"start":S==="right"?"end":"middle"}f(u,"h"),s(u,"getTextAnchor");function d(S){return`translate(${S.x}, ${S.y}) rotate(${S.rotation||0})`}f(d,"d"),s(d,"getTextTransformation"),ge.debug(`Rendering xychart chart 1743`+e);let p=Co(t),g=p.append("g").attr("class","main"),m=g.append("rect").attr("width",o.width).attr("height",o.height).attr("class","background");Ta(p,o.height,o.width,!0),p.attr("viewBox",`0 0 ${o.width} ${o.height}`),m.attr("fill",a.backgroundColor),n.setTmpSVGG(p.append("g").attr("class","mermaid-tmp-group"));let y=n.getDrawableElem(),x={};function C(S){let R=g,b="";for(let[v]of S.entries()){let k=g;v>0&&x[b]&&(k=x[b]),b+=S[v],R=x[b],R||(R=x[b]=k.append("g").attr("class",S[v]))}return R}f(C,"v"),s(C,"getGroup");for(let S of y){if(S.data.length===0)continue;let R=C(S.groupTexts);
vendor: 4,385 bytes, line 1743
1743switch(S.type){case"rect":if(R.selectAll("rect").data(S.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),o.showDataLabel){let b=o.showDataLabelOutsideBar;if(o.chartOrientation==="horizontal"){let v=f(function(j,D){let{data:P,label:F}=j;return D*F.length*.7<=P.width-10},"N");var w=v;s(v,"fitsHorizontally");let k=.7,E=10,A=S.data.map((j,D)=>({data:j,label:l[D].toString()})).filter(j=>j.data.width>0&&j.data.height>0),I=A.map(j=>{let{data:D}=j,P=D.height*.7;for(;!v(j,P)&&P>0;)P-=1;return P}),$=Math.floor(Math.min(...I)),O=s(j=>b?j.data.x+j.data.width+10:j.data.x+j.data.width-10,"determineLabelXPosition");R.selectAll("text").data(A).enter().append("text").attr("x",O).attr("y",j=>j.data.y+j.data.height/2).attr("text-anchor",b?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size",`${$}px`).text(j=>j.label)}else{let v=f(function(O,j,D){let{data:P,label:F}=O,U=j*F.length*.7,z=P.x+P.width/2,V=z-U/2,W=z+U/2,X=V>=P.x&&W<=P.x+P.width,J=P.y+D+j<=P.y+P.height;return X&&J},"A");var _=v;s(v,"fitsInBar");let k=10,E=S.data.map((O,j)=>({data:O,label:l[j].toString()})).filter(O=>O.data.width>0&&O.data.height>0),A=E.map(O=>{let{data:j,label:D}=O,P=j.width/(D.length*.7);for(;!v(O,P,10)&&P>0;)P-=1;return P}),I=Math.floor(Math.min(...A)),$=s(O=>b?O.data.y-10:O.data.y+10,"determineLabelYPosition");R.selectAll("text").data(E).enter().append("text").attr("x",O=>O.data.x+O.data.width/2).attr("y",$).attr("text-anchor","middle").attr("dominant-baseline",b?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size",`${I}px`).text(O=>O.label)}}break;case"text":R.selectAll("text").data(S.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=>h(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>d(b)).text(b=>b.text);break;case"path":R.selectAll("path").data(S.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"),Qat={draw:Zat}}),Jat={};Jr(Jat,{diagram:f(()=>est,"diagram")});var est,Owt=Y(()=>{"use strict";wwt(),Nwt(),Mwt(),est={parser:Tat,db:Kat,renderer:Qat}}),IR,tst,$wt=Y(()=>{"use strict";IR=(function(){var e=s(function(lt,ve,tt,Q){for(tt=tt||{},Q=lt.length;Q--;tt[lt[Q]]=ve);return tt},"o"),t=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],l=[2,7],h=[1,26],u=[1,27],d=[1,28],p=[1,29],g=[1,33],m=[1,34],y=[1,35],x=[1,36],C=[1,37],w=[1,38],_=[1,24],S=[1,31],R=[1,32],b=[1,30],v=[1,39],k=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],A=[1,61],I=[89,90],$=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],O=[27,29],j=[1,70],D=[1,71],P=[1,72],F=[1,73],U=[1,74],z=[1,75],V=[1,76],W=[1,83],X=[1,80],J=[1,84],H=[1,85],te=[1,86],ie=[1,87],oe=[1,88],he=[1,89],pe=[1,90],se=[1,91],le=[1,92],ue=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[63,64],we=[1,101],De=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Ge=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],be=[1,110],qe=[1,106],Ie=[1,107],Be=[1,108],ke=[1,109],Qe=[1,111],Pe=[1,116],ht=[1,117],Xe=[1,114],dt=[1,115],at={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,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:
vendor: 9,244 bytes, line 1743
174352,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$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",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"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],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:s(function(lt,ve,tt,Q,xe,ae,_e){var Se=ae.length-1;switch(xe){case 4:this.$=ae[Se].trim(),Q.setAccTitle(this.$);break;case 5:case 6:this.$=ae[Se].trim(),Q.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:Q.setDirection("TB");break;case 18:Q.setDirection("BT");break;case 19:Q.setDirection("RL");break;case 20:Q.setDirection("LR");break;case 21:Q.addRequirement(ae[Se-3],ae[Se-4]);break;case 22:Q.addRequirement(ae[Se-5],ae[Se-6]),Q.setClass([ae[Se-5]],ae[Se-3]);break;case 23:Q.setNewReqId(ae[Se-2]);break;case 24:Q.setNewReqText(ae[Se-2]);break;case 25:Q.setNewReqRisk(ae[Se-2]);break;case 26:Q.setNewReqVerifyMethod(ae[Se-2]);break;case 29:this.$=Q.RequirementType.REQUIREMENT;break;case 30:this.$=Q.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=Q.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=Q.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=Q.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=Q.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=Q.RiskLevel.LOW_RISK;break;case 36:this.$=Q.RiskLevel.MED_RISK;break;case 37:this.$=Q.RiskLevel.HIGH_RISK;break;case 38:this.$=Q.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=Q.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=Q.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=Q.VerifyType.VERIFY_TEST;break;case 42:Q.addElement(ae[Se-3]);break;case 43:Q.addElement(ae[Se-5]),Q.setClass([ae[Se-5]],ae[Se-3]);break;case 44:Q.setNewElementType(ae[Se-2]);break;case 45:Q.setNewElementDocRef(ae[Se-2]);break;case 48:Q.addRelationship(ae[Se-2],ae[Se],ae[Se-4]);break;case 49:Q.addRelationship(ae[Se-2],ae[Se-4],ae[Se]);break;case 50:this.$=Q.Relationships.CONTAINS;break;case 51:this.$=Q.Relationships.COPIES;break;case 52:this.$=Q.Relationships.DERIVES;break;case 53:this.$=Q.Relationships.SATISFIES;break;case 54:this.$=Q.Relationships.VERIFIES;break;case 55:this.$=Q.Relationships.REFINES;break;case 56:this.$=Q.Relationships.TRACES;break;case 57:this.$=ae[Se-2],Q.defineClass(ae[Se-1],ae[Se]);break;case 58:Q.setClass(ae[Se-1],ae[Se]);break;case 59:Q.setClass([ae[Se-2]],ae[Se]);break;case 60:case 62:this.$=[ae[Se]];break;case 61:case 63:this.$=ae[Se-2].concat([ae[Se]]);break;case 64:this.$=ae[Se-2],Q.setCssStyle(ae[Se-1],ae[Se]);break;case 65:this.$=[ae[Se]];break;case 66:ae[Se-2].push(ae[Se]),this.$=ae[Se-2];break;case 68:this.$=ae[Se-1]+ae[Se];break}},"anonymous"),table:[{3:1,4:2,6:t,9:r,11:i,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:i,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:r,11:i,13:n},{1:[2,2]},{4:17,5:o,7:13,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:43,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:44,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:45,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:46,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:47,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:48,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:49,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{4:17,5:o,7:50,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:u,23:d,24:p,25:23,33:25,41:g,42:m,43:y,44:x,45:C,46:w,54:_,72:S,74:R,77:b,89:v,90:k},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:A,89:v,90:k},{30:63,33:62,75:A,89:v,90:k},{30:64,33:62,75:A,89:v,90:k},e(I,[2,29]),e(I,[2,30]),e(I,[2,31]),e(I,[2,32]),e(I,[2,33]),e(I,[2,34]),e($,[2,81]),e($,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(O,[2,79]),e(O,[2,80]),{27:[1,67],29:[1,68]},e(O,[2,85]),e(O,[2,86]),{62:69,65:j,66:D,67:P,68:F,69:U,70:z,71:V},{62:77,65:j,66:D,67:P,68:F,69:U,70:z,71:V},{30:78,33:62,75:A,89:v,90:k},{73:79,75:W,76:X,78:81,79:82,80:J,81:H,82:te,83:ie,84:oe,85:he,86:pe,87:se,88:le},e(ue,[2,60]),e(ue,[2,62]),{73:93,75:W,76:X,78:81,79:82,80:J,81:H,82:te,83:ie,84:oe,85:he,86:pe,87:se,88:le},{30:94,33:62,75:A,76:X,89:v,90:k},{5:[1,95]},{30:96,33:62,75:A,89:v,90:k},{5:[1,97]},{30:98,33:62,75:A,89:v,90:k},{63:[1,99]},e(de,[2,50]),e(de,[2,51]),e(de,[2,52]),e(de,[2,53]),e(de,[2,54]),e(de,[2,55]),e(de,[2,56]),{64:[1,100]},e(E,[2,59],{76:X}),e(E,[2,64],{76:we}),{33:103,75:[1,102],89:v,90:k},e(De,[2,65],{79:104,75:W,80:J,81:H,82:te,83:ie,84:oe,85:he,86:pe,87:se,88:le}),e(Ge,[2,67]),e(Ge,[2,69]),e(Ge,[2,70]),e(Ge,[2,71]),e(Ge,[2,72]),e(Ge,[2,73]),e(Ge,[2,74]),e(Ge,[2,75]),e(Ge,[2,76]),e(Ge,[2,77]),e(Ge,[2,78]),e(E,[2,57],{76:we}),e(E,[2,58],{76:X}),{5:be,28:105,31:qe,34:Ie,36:Be,38:ke,40:Qe},{27:[1,112],76:X},{5:Pe,40:ht,56:113,57:Xe,59:dt},{27:[1,118],76:X},{33:119,89:v,90:k},{33:120,89:v,90:k},{75:W,78:121,79:82,80:J,81:H,82:te,83:ie,84:oe,85:he,86:pe,87:se,88:le},e(ue,[2,61]),e(ue,[2,63]),e(Ge,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:be,28:126,31:qe,34:Ie,36:Be,38:ke,40:Qe},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:Pe,40:ht,56:130,57:Xe,59:dt},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(De,[2,66],{79:104,75:W,80:J,81:H,82:te,83:ie,84:oe,85:he,86:pe,87:se,88:le}),{33:132,89:v,90:k},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:be,28:145,31:qe,34:Ie,36:Be,38:ke,40:Qe},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:Pe,40:ht,56:152,57:Xe,59:dt},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:be,28:159,31:qe,34:Ie,36:Be,38:ke,40:Qe},{5:be,28:160,31:qe,34:Ie,36:Be,38:ke,40:Qe},{5:be,28:161,31:qe,34:Ie,36:Be,38:ke,40:Qe},{5:be,28:162,31:qe,34:Ie,36:Be,38:ke,40:Qe},{5:Pe,40:ht,56:163,57:Xe,59:dt},{5:Pe,40:ht,56:164,57:Xe,59:dt},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11
vendor: 11,874 bytes, lines 1743-1748
1743],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:s(function(lt,ve){if(ve.recoverable)this.trace(lt);else{var tt=new Error(lt);throw tt.hash=ve,tt}},"parseError"),parse:s(function(lt){var ve=this,tt=[0],Q=[],xe=[null],ae=[],_e=this.table,Se="",Je=0,Re=0,et=0,ze=2,Ke=1,We=ae.slice.call(arguments,1),nt=Object.create(this.lexer),Te={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&(Te.yy[bt]=this.yy[bt]);nt.setInput(lt,Te.yy),Te.yy.lexer=nt,Te.yy.parser=this,typeof nt.yylloc>"u"&&(nt.yylloc={});var Ae=nt.yylloc;ae.push(Ae);var ft=nt.options&&nt.options.ranges;typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Nt(or){tt.length=tt.length-2*or,xe.length=xe.length-or,ae.length=ae.length-or}f(Nt,"kt"),s(Nt,"popStack");function Wt(){var or;return or=Q.pop()||nt.lex()||Ke,typeof or!="number"&&(or instanceof Array&&(Q=or,or=Q.pop()),or=ve.symbols_[or]||or),or}f(Wt,"Gt"),s(Wt,"lex");for(var Ht,Ft,Qt,Dt,Mt,$t,At={},Kt,rr,ei,qt;;){if(Qt=tt[tt.length-1],this.defaultActions[Qt]?Dt=this.defaultActions[Qt]:((Ht===null||typeof Ht>"u")&&(Ht=Wt()),Dt=_e[Qt]&&_e[Qt][Ht]),typeof Dt>"u"||!Dt.length||!Dt[0]){var Qr="";qt=[];for(Kt in _e[Qt])this.terminals_[Kt]&&Kt>ze&&qt.push("'"+this.terminals_[Kt]+"'");nt.showPosition?Qr="Parse error on line "+(Je+1)+`: 1744`+nt.showPosition()+` 1745Expecting `+qt.join(", ")+", got '"+(this.terminals_[Ht]||Ht)+"'":Qr="Parse error on line "+(Je+1)+": Unexpected "+(Ht==Ke?"end of input":"'"+(this.terminals_[Ht]||Ht)+"'"),this.parseError(Qr,{text:nt.match,token:this.terminals_[Ht]||Ht,line:nt.yylineno,loc:Ae,expected:qt})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+Ht);switch(Dt[0]){case 1:tt.push(Ht),xe.push(nt.yytext),ae.push(nt.yylloc),tt.push(Dt[1]),Ht=null,Ft?(Ht=Ft,Ft=null):(Re=nt.yyleng,Se=nt.yytext,Je=nt.yylineno,Ae=nt.yylloc,et>0&&et--);break;case 2:if(rr=this.productions_[Dt[1]][1],At.$=xe[xe.length-rr],At._$={first_line:ae[ae.length-(rr||1)].first_line,last_line:ae[ae.length-1].last_line,first_column:ae[ae.length-(rr||1)].first_column,last_column:ae[ae.length-1].last_column},ft&&(At._$.range=[ae[ae.length-(rr||1)].range[0],ae[ae.length-1].range[1]]),$t=this.performAction.apply(At,[Se,Re,Je,Te.yy,Dt[1],xe,ae].concat(We)),typeof $t<"u")return $t;rr&&(tt=tt.slice(0,-1*rr*2),xe=xe.slice(0,-1*rr),ae=ae.slice(0,-1*rr)),tt.push(this.productions_[Dt[1]][0]),xe.push(At.$),ae.push(At._$),ei=_e[tt[tt.length-2]][tt[tt.length-1]],tt.push(ei);break;case 3:return!0}}return!0},"parse")},kt=(function(){var lt={EOF:1,parseError:s(function(ve,tt){if(this.yy.parser)this.yy.parser.parseError(ve,tt);else throw new Error(ve)},"parseError"),setInput:s(function(ve,tt){return this.yy=tt||this.yy||{},this._input=ve,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 ve=this._input[0];this.yytext+=ve,this.yyleng++,this.offset++,this.match+=ve,this.matched+=ve;var tt=ve.match(/(?:\r\n?|\n).*/g);return tt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ve},"input"),unput:s(function(ve){var tt=ve.length,Q=ve.split(/(?:\r\n?|\n)/g);this._input=ve+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-tt),this.offset-=tt;var xe=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),Q.length-1&&(this.yylineno-=Q.length-1);var ae=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:Q?(Q.length===xe.length?this.yylloc.first_column:0)+xe[xe.length-Q.length].length-Q[0].length:this.yylloc.first_column-tt},this.options.ranges&&(this.yylloc.range=[ae[0],ae[0]+this.yyleng-tt]),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). 1746`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(ve){this.unput(this.match.slice(ve))},"less"),pastInput:s(function(){var ve=this.matched.substr(0,this.matched.length-this.match.length);return(ve.length>20?"...":"")+ve.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var ve=this.match;return ve.length<20&&(ve+=this._input.substr(0,20-ve.length)),(ve.substr(0,20)+(ve.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var ve=this.pastInput(),tt=new Array(ve.length+1).join("-");return ve+this.upcomingInput()+` 1747`+tt+"^"},"showPosition"),test_match:s(function(ve,tt){var Q,xe,ae;if(this.options.backtrack_lexer&&(ae={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&&(ae.yylloc.range=this.yylloc.range.slice(0))),xe=ve[0].match(/(?:\r\n?|\n).*/g),xe&&(this.yylineno+=xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xe?xe[xe.length-1].length-xe[xe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ve[0].length},this.yytext+=ve[0],this.match+=ve[0],this.matches=ve,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(ve[0].length),this.matched+=ve[0],Q=this.performAction.call(this,this.yy,this,tt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Q)return Q;if(this._backtrack){for(var _e in ae)this[_e]=ae[_e];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ve,tt,Q,xe;this._more||(this.yytext="",this.match="");for(var ae=this._currentRules(),_e=0;_e<ae.length;_e++)if(Q=this._input.match(this.rules[ae[_e]]),Q&&(!tt||Q[0].length>tt[0].length)){if(tt=Q,xe=_e,this.options.backtrack_lexer){if(ve=this.test_match(Q,ae[_e]),ve!==!1)return ve;if(this._backtrack){tt=!1;continue}else return!1}else if(!this.options.flex)break}return tt?(ve=this.test_match(tt,ae[xe]),ve!==!1?ve:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1748`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var ve=this.next();return ve||this.lex()},"lex"),begin:s(function(ve){this.conditionStack.push(ve)},"begin"),popState:s(function(){var ve=this.conditionStack.length-1;return ve>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(ve){return ve=this.conditionStack.length-1-Math.abs(ve||0),ve>=0?this.conditionStack[ve]:"INITIAL"},"topState"),pushState:s(function(ve){this.begin(ve)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(ve,tt,Q,xe){var ae=xe;switch(Q){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return tt.yytext=tt.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"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,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/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,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],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,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return lt})();at.lexer=kt;function Le(){this.yy={}}return f(Le,"Ue"),s(Le,"Parser"),Le.prototype=at,at.Parser=Le,new Le})(),IR.parser=IR,tst=IR}),rst,Bwt=Y(()=>{"use strict";var e;vr(),jt(),En(),rst=(e=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement
1748(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=wn,this.getAccTitle=Pn,this.setAccDescription=Fn,this.getAccDescription=zn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getConfig=s(()=>Ue().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(r){this.direction=r}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(r,i){return this.requirements.has(r)||this.requirements.set(r,{name:r,type:i,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(r)}getRequirements(){return this.requirements}setNewReqId(r){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=r)}setNewReqText(r){this.latestRequirement!==void 0&&(this.latestRequirement.text=r)}setNewReqRisk(r){this.latestRequirement!==void 0&&(this.latestRequirement.risk=r)}setNewReqVerifyMethod(r){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=r)}addElement(r){return this.elements.has(r)||(this.elements.set(r,{name:r,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ge.info("Added new element: ",r)),this.resetLatestElement(),this.elements.get(r)}getElements(){return this.elements}setNewElementType(r){this.latestElement!==void 0&&(this.latestElement.type=r)}setNewElementDocRef(r){this.latestElement!==void 0&&(this.latestElement.docRef=r)}addRelationship(r,i,n){this.relations.push({type:r,src:i,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Tn()}setCssStyle(r,i){var n;for(let a of r){let o=(n=this.requirements.get(a))!=null?n:this.elements.get(a);if(!i||!o)return;for(let l of i)l.includes(",")?o.cssStyles.push(...l.split(",")):o.cssStyles.push(l)}}setClass(r,i){var n,a;for(let o of r){let l=(n=this.requirements.get(o))!=null?n:this.elements.get(o);if(l)for(let h of i){l.classes.push(h);let u=(a=this.classes.get(h))==null?void 0:a.styles;u&&l.cssStyles.push(...u)}}}defineClass(r,i){for(let n of r){let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]}
1748,this.classes.set(n,a)),i&&i.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)}),this.requirements.forEach(o=>{o.classes.includes(n)&&o.cssStyles.push(...i.flatMap(l=>l.split(",")))}),this.elements.forEach(o=>{o.classes.includes(n)&&o.cssStyles.push(...i.flatMap(l=>l.split(",")))})}}getClasses(){return this.classes}getData(){var a,o,l,h,u,d;let r=Ue(),i=[],n=[];for(let p of this.requirements.values()){let g=p;g.id=p.name,g.cssStyles=p.cssStyles,g.cssClasses=p.classes.join(" "),g.shape="requirementBox",g.look=r.look,g.colorIndex=i.length,i.push(g)}for(let p of this.elements.values()){let g=p;g.shape="requirementBox",g.look=r.look,g.id=p.name,g.cssStyles=p.cssStyles,g.cssClasses=p.classes.join(" "),g.colorIndex=i.length,i.push(g)}for(let p of this.relations){let g=0,m=p.type===this.Relationships.CONTAINS,y={id:`${p.src}-${p.dst}-${g}`,start:(l=(a=this.requirements.get(p.src))==null?void 0:a.name)!=null?l:(o=this.elements.get(p.src))==null?void 0:o.name,end:(d=(h=this.requirements.get(p.dst))==null?void 0:h.name)!=null?d:(u
1748=this.elements.get(p.dst))==null?void 0:u.name,label:`<<${p.type}>>`,classes:"relationshipLine",style:["fill:none",m?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:m?"normal":"dashed",arrowTypeStart:m?"requirement_contains":"",arrowTypeEnd:m?"":"requirement_arrow",look:r.look,labelType:"markdown"};n.push(y),g++}return{nodes:i,edges:n,other:{},config:r,direction:this.getDirection()}}},f(e,"V6"),s(e,"RequirementDB"),e)}),ist,nst,ast,Pwt=Y(()=>{"use strict";ti(),ist=s(e=>{let t=Ir(),{themeVariables:r,look:i}=t,{bkgColorArray:n,borderColorArray:a}=r;if(!(a!=null&&a.length))return"";let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=` 1749 1750 [data-look="${i}"][data-color-id="color-${l}"].node path { 1751 stroke: ${a[l]}; 1752 fill: ${n!=null&&n.length?n[l]:""}; 1753 } 1754 1755 [data-look="${i}"][data-color-id="color-${l}"].node rect { 1756 stroke: ${a[l]}; 1757 fill: ${n!=null&&n.length?n[l]:""}; 1758 } 1759 `;return o},"genColor"),nst=s(e=>{let t=Ir(),{look:r,themeVariables:i}=t,{requirementEdgeLabelBackground:n}=i;return` 1760 ${ist(e)} 1761 marker { 1762 fill: ${e.relationColor}; 1763 stroke: ${e.relationColor}; 1764 } 1765 1766 marker.cross { 1767 stroke: ${e.lineColor}; 1768 } 1769 1770 svg { 1771 font-family: ${e.fontFamily}; 1772 font-size: ${e.fontSize}; 1773 } 1774 1775 .reqBox { 1776 fill: ${e.requirementBackground}; 1777 fill-opacity: 1.0; 1778 stroke: ${e.requirementBorderColor}; 1779 stroke-width: ${e.requirementBorderSize}; 1780 } 1781 1782 .reqTitle, .reqLabel{ 1783 fill: ${e.requirementTextColor}; 1784 } 1785 .reqLabelBox { 1786 fill: ${e.relationLabelBackground}; 1787 fill-opacity: 1.0; 1788 } 1789 1790 .req-title-line { 1791 stroke: ${e.requirementBorderColor}; 1792 stroke-width: ${e.requirementBorderSize}; 1793 } 1794 .relationshipLine { 1795 stroke: ${e.relationColor}; 1796 stroke-width: ${r==="neo"?e.strokeWidth:"1px"}; 1797 } 1798 .relationshipLabel { 1799 fill: ${e.relationLabelColor}; 1800 } 1801 .edgeLabel { 1802 background-color: ${e.edgeLabelBackground}; 1803 } 1804 .edgeLabel .label rect { 1805 fill: ${e.edgeLabelBackground}; 1806 } 1807 .edgeLabel .label text { 1808 fill: ${e.relationLabelColor}; 1809 } 1810 .divider { 1811 stroke: ${e.nodeBorder}; 1812 stroke-width: 1; 1813 } 1814 .label { 1815 font-family: ${e.fontFamily}; 1816 color: ${e.nodeTextColor||e.textColor}; 1817 } 1818 .label text,span { 1819 fill: ${e.nodeTextColor||e.textColor}; 1820 color: ${e.nodeTextColor||e.textColor}; 1821 } 1822 .labelBkg { 1823 background-color: ${n!=null?n:e.edgeLabelBackground}; 1824 } 1825 1826`},"getStyles"),ast=nst}),sst={};Jr(sst,{draw:f(()=>ost,"draw")});var ost,Fwt=Y(()=>{"use strict";vr(),jt(),ky(),Of(),$f(),wr(),ost=s(async function(e,t,r,i){var p,g,m,y;ge.info("REF0:"),ge.info("Drawing requirement diagram (unified)",t);let{securityLevel:n,state:a,layout:o,look:l}=Ue(),h=i.db.getData(),u=jg(t,n);h.type=i.type,h.layoutAlgorithm=T2(o),h.nodeSpacing=(p=a==null?void 0:a.nodeSpacing)!=null?p:50,h.rankSpacing=(g=a==null?void 0:a.rankSpacing)!=null?g:50,h.markers=l==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],h.diagramId=t,await Mf(h,u),ri.insertTitle(u,"requirementDiagramTitleText",(m=a==null?void 0:a.titleTopMargin)!=null?m:25,i.db.getDiagramTitle()),Hp(u,8,"requirementDiagram",(y=a==null?void 0:a.useMaxWidth)!=null?y:!0)},"draw")}),lst={};Jr(lst,{diagram:f(()=>cst,"diagram")});var cst,zwt=Y(()=>{"use strict";$wt(),Bwt(),Pwt(),Fwt(),cst={parser:tst,get db(){return new rst},renderer:sst,styles:ast}}),DR,hst,qwt=Y(()=>{"use strict";DR=(function(){var e=s(function(et,ze,Ke,We){for(Ke=Ke||{},We=et.length;We--;Ke[et[We]]=ze);return Ke},"o"),t=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],o=[1,11],l=[1,12],h=[1,14],u=[1,15],d=[1,17],p=[1,18],g=[1,19],m=[1,25],y=[1,26],x=[1,27],C=[1,28],w=[1,29],_=[1,30],S=[1,31],R=[1,32],b=[1,33],v=[1,34],k=[1,35],E=[1,36],A=[1,37],I=[1,38],$=[1,39],O=[1,40],j=[1,42],D=[1,43],P=[1,44],F=[1,45],U=[1,46],z=[1,47],V=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],W=[1,74],X=[1,80],J=[1,81],H=[1,82],te=[1,83],ie=[1,84],oe=[1,85],he=[1,86],pe=[1,87],se=[1,88],le=[1,89],ue=[1,90],de=[1,91],we=[1,92],De=[1,93],Ge=[1,94],be=[1,95],qe=[1,96],Ie=[1,97],Be=[1,98],ke=[1,99],Qe=[1,100],Pe=[1,101],ht=[1,102],Xe=[1,103],dt=[1,104],at=[1,105],kt=[2,78],Le=[4,5,17,51,53,54],lt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ve=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tt
vendor: 4,127 bytes, line 1826
1826=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Q=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],xe=[5,52],ae=[70,71,72,73],_e=[1,151],Se={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:s(function(et,ze,Ke,We,nt,Te,bt){var Ae=Te.length-1;switch(nt){case 3:return We.apply(Te[Ae]),Te[Ae];case 4:case 10:this.$=[];break;
vendor: 12,300 bytes, line 1826
1826case 5:case 11:Te[Ae-1].push(Te[Ae]),this.$=Te[Ae-1];break;case 6:case 7:case 12:case 13:this.$=Te[Ae];break;case 8:case 9:case 14:this.$=[];break;case 16:Te[Ae].type="createParticipant",this.$=Te[Ae];break;case 17:Te[Ae-1].unshift({type:"boxStart",boxData:We.parseBoxData(Te[Ae-2])}),Te[Ae-1].push({type:"boxEnd",boxText:Te[Ae-2]}),this.$=Te[Ae-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Te[Ae-2]),sequenceIndexStep:Number(Te[Ae-1]),sequenceVisible:!0,signalType:We.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(Te[Ae-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:We.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:We.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:We.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:We.LINETYPE.ACTIVE_START,actor:Te[Ae-1].actor};break;case 24:this.$={type:"activeEnd",signalType:We.LINETYPE.ACTIVE_END,actor:Te[Ae-1].actor};break;case 30:We.setDiagramTitle(Te[Ae].substring(6)),this.$=Te[Ae].substring(6);break;case 31:We.setDiagramTitle(Te[Ae].substring(7)),this.$=Te[Ae].substring(7);break;case 32:this.$=Te[Ae].trim(),We.setAccTitle(this.$);break;case 33:case 34:this.$=Te[Ae].trim(),We.setAccDescription(this.$);break;case 35:Te[Ae-1].unshift({type:"loopStart",loopText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.LOOP_START}),Te[Ae-1].push({type:"loopEnd",loopText:Te[Ae-2],signalType:We.LINETYPE.LOOP_END}),this.$=Te[Ae-1];break;case 36:Te[Ae-1].unshift({type:"rectStart",color:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.RECT_START}),Te[Ae-1].push({type:"rectEnd",color:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.RECT_END}),this.$=Te[Ae-1];break;case 37:Te[Ae-1].unshift({type:"optStart",optText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.OPT_START}),Te[Ae-1].push({type:"optEnd",optText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.OPT_END}),this.$=Te[Ae-1];break;case 38:Te[Ae-1].unshift({type:"altStart",altText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.ALT_START}),Te[Ae-1].push({type:"altEnd",signalType:We.LINETYPE.ALT_END}),this.$=Te[Ae-1];break;case 39:Te[Ae-1].unshift({type:"parStart",parText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.PAR_START}),Te[Ae-1].push({type:"parEnd",signalType:We.LINETYPE.PAR_END}),this.$=Te[Ae-1];break;case 40:Te[Ae-1].unshift({type:"parStart",parText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.PAR_OVER_START}),Te[Ae-1].push({type:"parEnd",signalType:We.LINETYPE.PAR_END}),this.$=Te[Ae-1];break;case 41:Te[Ae-1].unshift({type:"criticalStart",criticalText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.CRITICAL_START}),Te[Ae-1].push({type:"criticalEnd",signalType:We.LINETYPE.CRITICAL_END}),this.$=Te[Ae-1];break;case 42:Te[Ae-1].unshift({type:"breakStart",breakText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.BREAK_START}),Te[Ae-1].push({type:"breakEnd",optText:We.parseMessage(Te[Ae-2]),signalType:We.LINETYPE.BREAK_END}),this.$=Te[Ae-1];break;case 44:this.$=Te[Ae-3].concat([{type:"option",optionText:We.parseMessage(Te[Ae-1]),signalType:We.LINETYPE.CRITICAL_OPTION},Te[Ae]]);break;case 46:this.$=Te[Ae-3].concat([{type:"and",parText:We.parseMessage(Te[Ae-1]),signalType:We.LINETYPE.PAR_AND},Te[Ae]]);break;case 48:this.$=Te[Ae-3].concat([{type:"else",altText:We.parseMessage(Te[Ae-1]),signalType:We.LINETYPE.ALT_ELSE},Te[Ae]]);break;case 49:Te[Ae-3].draw="participant",Te[Ae-3].type="addParticipant",Te[Ae-3].description=We.parseMessage(Te[Ae-1]),this.$=Te[Ae-3];break;case 50:Te[Ae-1].draw="participant",Te[Ae-1].type="addParticipant",this.$=Te[Ae-1];break;case 51:Te[Ae-3].draw="actor",Te[Ae-3].type="addParticipant",Te[Ae-3].description=We.parseMessage(Te[Ae-1]),this.$=Te[Ae-3];break;case 52:case 57:Te[Ae-1].draw="actor",Te[Ae-1].type="addParticipant",this.$=Te[Ae-1];break;case 53:Te[Ae-1].type="destroyParticipant",this.$=Te[Ae-1];break;case 54:Te[Ae-3].draw="participant",Te[Ae-3].type="addParticipant",Te[Ae-3].description=We.parseMessage(Te[Ae-1]),this.$=Te[Ae-3];break;case 55:Te[Ae-1].draw="participant",Te[Ae-1].type="addParticipant",this.$=Te[Ae-1];break;case 56:Te[Ae-3].draw="actor",Te[Ae-3].type="addParticipant",Te[Ae-3].description=We.parseMessage(Te[Ae-1]),this.$=Te[Ae-3];break;case 58:this.$=[Te[Ae-1],{type:"addNote",placement:Te[Ae-2],actor:Te[Ae-1].actor,text:Te[Ae]}];break;case 59:Te[Ae-2]=[].concat(Te[Ae-1],Te[Ae-1]).slice(0,2),Te[Ae-2][0]=Te[Ae-2][0].actor,Te[Ae-2][1]=Te[Ae-2][1].actor,this.$=[Te[Ae-1],{type:"addNote",placement:We.PLACEMENT.OVER,actor:Te[Ae-2].slice(0,2),text:Te[Ae]}];break;case 60:this.$=[Te[Ae-1],{type:"addLinks",actor:Te[Ae-1].actor,text:Te[Ae]}];break;case 61:this.$=[Te[Ae-1],{type:"addALink",actor:Te[Ae-1].actor,text:Te[Ae]}];break;case 62:this.$=[Te[Ae-1],{type:"addProperties",actor:Te[Ae-1].actor,text:Te[Ae]}];break;case 63:this.$=[Te[Ae-1],{type:"addDetails",actor:Te[Ae-1].actor,text:Te[Ae]}];break;case 66:this.$=[Te[Ae-2],Te[Ae]];break;case 67:this.$=Te[Ae];break;case 68:this.$=We.PLACEMENT.LEFTOF;break;case 69:this.$=We.PLACEMENT.RIGHTOF;break;case 70:this.$=[Te[Ae-4],Te[Ae-1],{type:"addMessage",from:Te[Ae-4].actor,to:Te[Ae-1].actor,signalType:Te[Ae-3],msg:Te[Ae],activate:!0},{type:"activeStart",signalType:We.LINETYPE.ACTIVE_START,actor:Te[Ae-1].actor}];break;case 71:this.$=[Te[Ae-4],Te[Ae-1],{type:"addMessage",from:Te[Ae-4].actor,to:Te[Ae-1].actor,signalType:Te[Ae-3],msg:Te[Ae]},{type:"activeEnd",signalType:We.LINETYPE.ACTIVE_END,actor:Te[Ae-4].actor}];break;case 72:this.$=[Te[Ae-4],Te[Ae-1],{type:"addMessage",from:Te[Ae-4].actor,to:Te[Ae-1].actor,signalType:Te[Ae-3],msg:Te[Ae],activate:!0,centralConnection:We.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:We.LINETYPE.CENTRAL_CONNECTION,actor:Te[Ae-1].actor}];break;case 73:this.$=[Te[Ae-4],Te[Ae-1],{type:"addMessage",from:Te[Ae-4].actor,to:Te[Ae-1].actor,signalType:Te[Ae-2],msg:Te[Ae],activate:!1,centralConnection:We.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:We.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Te[Ae-4].actor}];break;case 74:this.$=[Te[Ae-5],Te[Ae-1],{type:"addMessage",from:Te[Ae-5].actor,to:Te[Ae-1].actor,signalType:Te[Ae-3],msg:Te[Ae],activate:!0,centralConnection:We.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:We.LINETYPE.CENTRAL_CONNECTION,actor:Te[Ae-1].actor},{type:"centralConnectionReverse",signalType:We.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Te[Ae-5].actor}];break;case 75:this.$=[Te[Ae-3],Te[Ae-1],{type:"addMessage",from:Te[Ae-3].actor,to:Te[Ae-1].actor,signalType:Te[Ae-2],msg:Te[Ae]}];break;case 76:this.$={type:"addParticipant",actor:Te[Ae-1],config:Te[Ae]};break;case 77:this.$=Te[Ae-1].trim();break;case 78:this.$={type:"addParticipant",actor:Te[Ae]};break;case 79:this.$=We.LINETYPE.SOLID_OPEN;break;case 80:this.$=We.LINETYPE.DOTTED_OPEN;break;case 81:this.$=We.LINETYPE.SOLID;break;case 82:this.$=We.LINETYPE.SOLID_TOP;break;case 83:this.$=We.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=We.LINETYPE.STICK_TOP;break;case 85:this.$=We.LINETYPE.STICK_BOTTOM;break;case 86:this.$=We.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=We.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=We.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=We.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=We.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=We.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=We.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=We.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=We.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=We.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=We.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=We.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=We.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=We.LINETYPE.DOTTED;break;case 100:this.$=We.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=We.LINETYPE.SOLID_CROSS;break;case 102:this.$=We.LINETYPE.DOTTED_CROSS;break;case 103:this.$=We.LINETYPE.SOLID_POINT;break;case 104:this.$=We.LINETYPE.DOTTED_POINT;break;case 105:this.$=We.parseMessage(Te[Ae].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:i},{1:[3]},{3:5,4:t,5:r,6:i},{3:6,4:t,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},e(V,[2,5]),{9:48,13:13,14:h,15:u,18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,15]),{13:49,51:I,53:$,54:O},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:z},{23:56,73:z},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(V,[2,30]),e(V,[2,31]),{33:[1,62]},{35:[1,63]},e(V,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:W},{23:75,55:76,73:W},{23:77,73:z},{69:78,72:[1,79],78:X,79:J,80:H,81:te,82:ie,83:oe,84:he,85:pe,86:se,87:le,88:ue,89:de,90:we,91:De,92:Ge,93:be,94:qe,95:Ie,96:Be,97:ke,98:Qe,99:Pe,100:ht,101:Xe,102:dt,103:at},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:z},{23:111,73:z},{23:112,73:z},{23:113,73:z},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],kt),e(V,[2,6]),e(V,[2,16]),e(Le,[2,10],{11:114}),e(V,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(V,[2,22]),{5:[1,118]},{5:[1,119]},e(V,[2,25]),e(V,[2,26]),e(V,[2,27]),e(V,[2,28]),e(V,[2,29]),e(V,[2,32]),e(V,[2,33]),e(lt,n,{7:120}),e(lt,n,{7:121}),e(lt,n,{7:122}),e(ve,n,{41:123,7:124}),e(tt,n,{43:125,7:126}),e(tt,n,{7:126,43:127}),e(Q,n,{46:128,7:129}),e(lt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(xe,kt,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:z},{69:146,78:X,79:J,80:H,81:te,82:ie,83:oe,84:he,85:pe,86:se,87:le,88:ue,89:de,90:we,91:De,92:Ge,93:be,94:qe,95:Ie,96:Be,97:ke,98:Qe,99:Pe,100:ht,101:Xe,102:dt,103:at},e(ae,[2,79]),e(ae,[2,80]),e(ae,[2,81]),e(ae,[2,82]),e(ae,[2,83]),e(ae,[2,84]),e(ae,[2,85]),e(ae,[2,86]),e(ae,[2,87]),e(ae,[2,88]),e(ae,[2,89]),e(ae,[2,90]),e(ae,[2,91]),e(ae,[2,92]),e(ae,[2,93]),e(ae,[2,94]),e(ae,[2,95]),e(ae,[2,96]),e(ae,[2,97]),e(ae,[2,98]),e(ae,[2,99]),e(ae,[2,100]),e(ae,[2,101]),e(ae,[2,102]),e(ae,[2,103]),e(ae,[2,104]),{23:147,73:z},{23:149,60:148,73:z},{73:[2,68]},{73:[2,69]},{58:150,104:_e},{58:152,104:_e},{58:153,104:_e},{58:154,104:_e},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:I,53:$,54:O},{5:[1,160]},e(V,[2,20]),e(V,[2,21]),e(V,[2,23]),e(V,[2,24]),{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[1,161],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[1,162],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[1,163],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{17:[1,164]},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[2,47],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,50:[1,165],51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{17:[1,166]},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[2,45],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,49:[1,167],51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{17:[1,168]},{17:[1,169]},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[2,43],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,48:[1,170
vendor: 8,105 bytes, lines 1826-1830
1826],51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{4:a,5:o,8:8,9:10,10:l,13:13,14:h,15:u,17:[1,171],18:16,19:d,22:p,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:y,32:x,34:C,36:w,37:_,38:S,39:R,40:b,42:v,44:k,45:E,47:A,51:I,53:$,54:O,56:j,61:D,62:P,63:F,64:U,73:z},{16:[1,172]},e(V,[2,50]),{16:[1,173]},e(V,[2,55]),e(xe,[2,76]),{76:[1,174]},{16:[1,175]},e(V,[2,52]),{16:[1,176]},e(V,[2,57]),e(V,[2,53]),{23:177,73:z},{23:178,73:z},{23:179,73:z},{58:180,104:_e},{23:181,72:[1,182],73:z},{58:183,104:_e},{58:184,104:_e},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(V,[2,17]),e(Le,[2,11]),{13:186,51:I,53:$,54:O},e(Le,[2,13]),e(Le,[2,14]),e(V,[2,19]),e(V,[2,35]),e(V,[2,36]),e(V,[2,37]),e(V,[2,38]),{16:[1,187]},e(V,[2,39]),{16:[1,188]},e(V,[2,40]),e(V,[2,41]),{16:[1,189]},e(V,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:_e},{58:196,104:_e},{58:197,104:_e},{5:[2,75]},{58:198,104:_e},{23:199,73:z},{5:[2,58]},{5:[2,59]},{23:200,73:z},e(Le,[2,12]),e(ve,n,{7:124,41:201}),e(tt,n,{7:126,43:202}),e(Q,n,{7:129,46:203}),e(V,[2,49]),e(V,[2,54]),e(xe,[2,77]),e(V,[2,51]),e(V,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:_e},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:s(function(et,ze){if(ze.recoverable)this.trace(et);else{var Ke=new Error(et);throw Ke.hash=ze,Ke}},"parseError"),parse:s(function(et){var ze=this,Ke=[0],We=[],nt=[null],Te=[],bt=this.table,Ae="",ft=0,Nt=0,Wt=0,Ht=2,Ft=1,Qt=Te.slice.call(arguments,1),Dt=Object.create(this.lexer),Mt={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(Mt.yy[$t]=this.yy[$t]);Dt.setInput(et,Mt.yy),Mt.yy.lexer=Dt,Mt.yy.parser=this,typeof Dt.yylloc>"u"&&(Dt.yylloc={});var At=Dt.yylloc;Te.push(At);var Kt=Dt.options&&Dt.options.ranges;typeof Mt.yy.parseError=="function"?this.parseError=Mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rr(Ti){Ke.length=Ke.length-2*Ti,nt.length=nt.length-Ti,Te.length=Te.length-Ti}f(rr,"Qe"),s(rr,"popStack");function ei(){var Ti;return Ti=We.pop()||Dt.lex()||Ft,typeof Ti!="number"&&(Ti instanceof Array&&(We=Ti,Ti=We.pop()),Ti=ze.symbols_[Ti]||Ti),Ti}f(ei,"nt"),s(ei,"lex");for(var qt,Qr,or,Ar,li,ki,$e={},zt,Rt,Or,ni;;){if(or=Ke[Ke.length-1],this.defaultActions[or]?Ar=this.defaultActions[or]:((qt===null||typeof qt>"u")&&(qt=ei()),Ar=bt[or]&&bt[or][qt]),typeof Ar>"u"||!Ar.length||!Ar[0]){var Wr="";ni=[];for(zt in bt[or])this.terminals_[zt]&&zt>Ht&&ni.push("'"+this.terminals_[zt]+"'");Dt.showPosition?Wr="Parse error on line "+(ft+1)+`: 1827`+Dt.showPosition()+` 1828Expecting `+ni.join(", ")+", got '"+(this.terminals_[qt]||qt)+"'":Wr="Parse error on line "+(ft+1)+": Unexpected "+(qt==Ft?"end of input":"'"+(this.terminals_[qt]||qt)+"'"),this.parseError(Wr,{text:Dt.match,token:this.terminals_[qt]||qt,line:Dt.yylineno,loc:At,expected:ni})}if(Ar[0]instanceof Array&&Ar.length>1)throw new Error("Parse Error: multiple actions possible at state: "+or+", token: "+qt);switch(Ar[0]){case 1:Ke.push(qt),nt.push(Dt.yytext),Te.push(Dt.yylloc),Ke.push(Ar[1]),qt=null,Qr?(qt=Qr,Qr=null):(Nt=Dt.yyleng,Ae=Dt.yytext,ft=Dt.yylineno,At=Dt.yylloc,Wt>0&&Wt--);break;case 2:if(Rt=this.productions_[Ar[1]][1],$e.$=nt[nt.length-Rt],$e._$={first_line:Te[Te.length-(Rt||1)].first_line,last_line:Te[Te.length-1].last_line,first_column:Te[Te.length-(Rt||1)].first_column,last_column:Te[Te.length-1].last_column},Kt&&($e._$.range=[Te[Te.length-(Rt||1)].range[0],Te[Te.length-1].range[1]]),ki=this.performAction.apply($e,[Ae,Nt,ft,Mt.yy,Ar[1],nt,Te].concat(Qt)),typeof ki<"u")return ki;Rt&&(Ke=Ke.slice(0,-1*Rt*2),nt=nt.slice(0,-1*Rt),Te=Te.slice(0,-1*Rt)),Ke.push(this.productions_[Ar[1]][0]),nt.push($e.$),Te.push($e._$),Or=bt[Ke[Ke.length-2]][Ke[Ke.length-1]],Ke.push(Or);break;case 3:return!0}}return!0},"parse")},Je=(function(){var et={EOF:1,parseError:s(function(ze,Ke){if(this.yy.parser)this.yy.parser.parseError(ze,Ke);else throw new Error(ze)},"parseError"),setInput:s(function(ze,Ke){return this.yy=Ke||this.yy||{},this._input=ze,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 ze=this._input[0];this.yytext+=ze,this.yyleng++,this.offset++,this.match+=ze,this.matched+=ze;var Ke=ze.match(/(?:\r\n?|\n).*/g);return Ke?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ze},"input"),unput:s(function(ze){var Ke=ze.length,We=ze.split(/(?:\r\n?|\n)/g);this._input=ze+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var nt=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),We.length-1&&(this.yylineno-=We.length-1);var Te=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:We?(We.length===nt.length?this.yylloc.first_column:0)+nt[nt.length-We.length].length-We[0].length:this.yylloc.first_column-Ke},this.options.ranges&&(this.yylloc.range=[Te[0],Te[0]+this.yyleng-Ke]),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). 1829`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(ze){this.unput(this.match.slice(ze))},"less"),pastInput:s(function(){var ze=this.matched.substr(0,this.matched.length-this.match.length);return(ze.length>20?"...":"")+ze.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var ze=this.match;return ze.length<20&&(ze+=this._input.substr(0,20-ze.length)),(ze.substr(0,20)+(ze.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var ze=this.pastInput(),Ke=new Array(ze.length+1).join("-");return ze+this.upcomingInput()+` 1830`+Ke+"^"},"showPosition"),test_match:s(function(ze,Ke){var We,nt,Te;if(this.options.backtrack_lexer&&(Te={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&&(Te.yylloc.range=this.yylloc.range.slice(0))),nt=ze[0].match(/(?:\r\n?|\n).*/g),nt&&(this.yylineno+=nt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nt?nt[nt.length-1].length-nt[nt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ze[0].length},this.yytext+=ze[0],this.match+=ze[0],this.matches=ze,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(ze[0].length),this.matched+=ze[0],We=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),We)return We;if(this._backtrack){for(var bt in Te)this[bt]=Te[bt];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ze,Ke,We,nt;this._more||(this.yytext="",this.match="");
vendor: 2,872 bytes, lines 1830-1831
1830for(var Te=this._currentRules(),bt=0;bt<Te.length;bt++)if(We=this._input.match(this.rules[Te[bt]]),We&&(!Ke||We[0].length>Ke[0].length)){if(Ke=We,nt=bt,this.options.backtrack_lexer){if(ze=this.test_match(We,Te[bt]),ze!==!1)return ze;if(this._backtrack){Ke=!1;continue}else return!1}else if(!this.options.flex)break}return Ke?(ze=this.test_match(Ke,Te[nt]),ze!==!1?ze:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1831`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var ze=this.next();return ze||this.lex()},"lex"),begin:s(function(ze){this.conditionStack.push(ze)},"begin"),popState:s(function(){var ze=this.conditionStack.length-1;return ze>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(ze){return ze=this.conditionStack.length-1-Math.abs(ze||0),ze>=0?this.conditionStack[ze]:"INITIAL"},"topState"),pushState:s(function(ze){this.begin(ze)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(ze,Ke,We,nt){var Te=nt;switch(We){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:return Ke.yytext=Ke.yytext.trim(),73;case 12:return Ke.yytext=Ke.yytext.trim(),this.begin("ALIAS"),73;case 13:return Ke.yytext=Ke.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return Ke.yytext=Ke.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;
1831case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return Ke.yytext=Ke.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return et})();Se.lexer=Je;function Re(){this.yy={}}return f(Re,"Oe"),s(Re,"Parser"),Re.prototype=Se,Se.Parser=Re,new Re})(),DR.parser=DR,hst=DR}),ust,dst,pst,kw,gst,fst=Y(()=>{"use strict";var e;vr(),cS(),jt(),eoe(),gi(),En(),ust={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,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},dst={FILLED:0,OPEN:1},pst={LEFTOF:0,RIGHTOF:1,OVER:2},kw={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},gst=(e=class{constructor(){this.state=new sR(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=wn,this.setAccDescription=Fn,this.setDiagramTitle=qn,this.getAccTitle=Pn,this.getAccDescription=zn,this.getDiagramTitle=Cn,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ue().wrap),this.LINETYPE=ust,this.ARROWTYPE=dst,this.PLACEMENT=pst}addBox(r){var i;this.state.records.boxes.push({name:r.text,wrap:(i=r.wrap)!=null?i:this.autoWrap(),fill:r.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(r,i,n,a,o){var d,p;let l=this.state.records.currentBox,h;if(o!==void 0){let g;o.includes(` 1832`)?g=o+` 1833`:g=`{ 1834`+o+` 1835}`,h=w4(g,{schema:T4})}a=(d=h==null?void 0:h.type)!=null?d:a,h!=null&&h.alias&&(!n||n.text===i)&&(n={text:h.alias,wrap:n==null?void 0:n.wrap,type:a});let u=this.state.records.actors.get(r);if(u){if(this.state.records.currentBox&&u.box&&this.state.records.currentBox!==u.box)throw new Error(`A same participant should only be defined in one Box: ${u.name} can't be in '${u.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(l=u.box?u.box:this.state.records.currentBox,u.box=l,u&&i===u.name&&n==null)return}if((n==null?void 0:n.text)==null&&(n={text:i,type:a}),(a==null||n.text==null)&&(n={text:i,type:a}),this.state.records.actors.set(r,{box:l,name:i,description:n.text,wrap:(p=n.wrap)!=null?p:this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a!=null?a:"participant"}),this.state.records.prevActor){let g=this.state.records.actors.get(this.state.records.prevActor);g&&(g.nextActor=r)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(r),this.state.records.prevActor=r}activationCount(r){let i,n=0;if(!r)return 0;for(i=0;i<this.state.records.messages.length;i++)this.state.records.messages[i].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[i].from===r&&n++,this.state.records.messages[i].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[i].from===r&&n--;return n}addMessage(r,i,n,a){var o;this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:i,message:n.text,wrap:(o=n.wrap)!=null?o:this.autoWrap(),answer:a})}addSignal(r,i,n,a,o=!1,l){var h,u;if(a===this.LINETYPE.ACTIVE_END&&this.activationCount(r!=null?r:"")<1){let d=new Error("Trying to inactivate an inactive participant ("+r+")");throw d.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},d}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:i,message:(h=n==null?void 0:n.text)!=null?h:"",wrap:(u=n==null?void 0:n.wrap)!=null?u:this.autoWrap(),type:a,activate:o,centralConnection:l!=null?l:0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(r=>r.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(r){return this.state.records.actors.get(r)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(r){this.state.records.wrapEnabled=r}extractWrap(r){if(r===void 0)return{};r=r.trim();let i=/^:?wrap:/.exec(r)!==null?!0:/^:?nowrap:/.exec(r)!==null?!1:void 0;return{cleanedText:(i===void 0?r:r.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:i}}autoWrap(){var r,i;return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:(i=(r=Ue().sequence)==null?void 0:r.wrap)!=null?i:!1}clear(){this.state.reset(),Tn()}parseMessage(r){let i=r.trim(),{wrap:n,cleanedText:a}=this.extractWrap(i),o={text:a,wrap:n};return ge.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(r){let i=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(r),n=i!=null&&i[1]?i[
vendor: 4,489 bytes, line 1835
18351].trim():"transparent",a=i!=null&&i[2]?i[2].trim():void 0;if(window!=null&&window.CSS)window.CSS.supports("color",n)||(n="transparent",a=r.trim());else{let h=new Option().style;h.color=n,h.color!==n&&(n="transparent",a=r.trim())}let{wrap:o,cleanedText:l}=this.extractWrap(a);return{text:l?Ei(l,Ue()):void 0,color:n,wrap:o}}addNote(r,i,n){var l,h;let a={actor:r,placement:i,message:n.text,wrap:(l=n.wrap)!=null?l:this.autoWrap()},o=[].concat(r,r);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:n.text,wrap:(h=n.wrap)!=null?h:this.autoWrap(),type:this.LINETYPE.NOTE,placement:i})}addLinks(r,i){let n=this.getActor(r);try{let a=Ei(i.text,Ue());a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");let o=JSON.parse(a);this.insertLinks(n,o)}catch(a){ge.error("error while parsing actor link text",a)}}addALink(r,i){let n=this.getActor(r);try{let a={},o=Ei(i.text,Ue()),l=o.indexOf("@");o=o.replace(/=/g,"="),o=o.replace(/&/g,"&");let h=o.slice(0,l-1).trim(),u=o.slice(l+1).trim();a[h]=u,this.insertLinks(n,a)}catch(a){ge.error("error while parsing actor link text",a)}}insertLinks(r,i){if(r.links==null)r.links=i;else for(let n in i)r.links[n]=i[n]}addProperties(r,i){let n=this.getActor(r);try{let a=Ei(i.text,Ue()),o=JSON.parse(a);this.insertProperties(n,o)}catch(a){ge.error("error while parsing actor properties text",a)}}insertProperties(r,i){if(r.properties==null)r.properties=i;else for(let n in i)r.properties[n]=i[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(r,i){let n=this.getActor(r),a=document.getElementById(i.text);try{let o=a.innerHTML,l=JSON.parse(o);l.properties&&this.insertProperties(n,l.properties),l.links&&this.insertLinks(n,l.links)}catch(o){ge.error("error while parsing actor details text",o)}}getActorProperty(r,i){if((r==null?void 0:r.properties)!==void 0)return r.properties[i]}apply(r){if(Array.isArray(r))r.forEach(i=>{this.apply(i)});else switch(r.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:r.sequenceIndex,step:r.sequenceIndexStep,visible:r.sequenceVisible},wrap:!1,type:r.signalType});break;case"addParticipant":this.addActor(r.actor,r.actor,r.description,r.draw,r.config);break;case"createParticipant":if(this.state.records.actors.has(r.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=r.actor,this.addActor(r.actor,r.actor,r.description,r.draw,r.config),this.state.records.createdActors.set(r.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=r.actor,this.state.records.destroyedActors.set(r.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnection":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnectionReverse":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"activeEnd":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"addNote":this.addNote(r.actor,r.placement,r.text);break;case"addLinks":this.addLinks(r.actor,r.text);break;case"addALink":this.addALink(r.actor,r.text);break;case"addProperties":this.addProperties(r.actor,r.text);break;case"addDetails":this.addDetails(r.actor,r.text);break;case"addMessage":if(this.state.records.lastCreated){if(r.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(r.to!==this.state.records.lastDestroyed&&r.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(r.from,r.to,r.msg,r.signalType,r.activate,r.centralConnection);break;case"boxStart":this.addBox(r.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,r.loopText,r.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;
1835case"rectStart":this.addSignal(void 0,void 0,r.color,r.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"optStart":this.addSignal(void 0,void 0,r.optText,r.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"altStart":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"else":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"setAccTitle":wn(r.text);break;case"parStart":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"and":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,r.criticalText,r.signalType);break;case"option":this.addSignal(void 0,void 0,r.optionText,r.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"breakStart":this.addSignal(void 0,void 0,r.breakText,r.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break}}getConfig(){return Ue().sequence}},f(e,"W6"),s(e,"SequenceDB"),e)}),mst,yst,jwt=Y(()=>{"use strict";vr(),mst=s(e=>{var i,n;let t=(i=e.dropShadow)!=null?i:"none",{look:r}=Ue();return`.actor { 1836 stroke: ${e.actorBorder}; 1837 fill: ${e.actorBkg}; 1838 stroke-width: ${(n=e.strokeWidth)!=null?n:1}; 1839 } 1840 1841 rect.actor.outer-path[data-look="neo"] { 1842 filter: ${t}; 1843 } 1844 1845 rect.note[data-look="neo"] { 1846 stroke:${e.noteBorderColor}; 1847 fill:${e.noteBkgColor}; 1848 filter: ${t}; 1849 } 1850 1851 text.actor > tspan { 1852 fill: ${e.actorTextColor}; 1853 stroke: none; 1854 } 1855 1856 .actor-line { 1857 stroke: ${e.actorLineColor}; 1858 } 1859 1860 .innerArc { 1861 stroke-width: 1.5; 1862 stroke-dasharray: none; 1863 } 1864 1865 .messageLine0 { 1866 stroke-width: 1.5; 1867 stroke-dasharray: none; 1868 stroke: ${e.signalColor}; 1869 } 1870 1871 .messageLine1 { 1872 stroke-width: 1.5; 1873 stroke-dasharray: 2, 2; 1874 stroke: ${e.signalColor}; 1875 } 1876 1877 [id$="-arrowhead"] path { 1878 fill: ${e.signalColor}; 1879 stroke: ${e.signalColor}; 1880 } 1881 1882 .sequenceNumber { 1883 fill: ${e.sequenceNumberColor}; 1884 } 1885 1886 [id$="-sequencenumber"] { 1887 fill: ${e.signalColor}; 1888 } 1889 1890 [id$="-crosshead"] path { 1891 fill: ${e.signalColor}; 1892 stroke: ${e.signalColor}; 1893 } 1894 1895 .messageText { 1896 fill: ${e.signalTextColor}; 1897 stroke: none; 1898 } 1899 1900 .labelBox { 1901 stroke: ${e.labelBoxBorderColor}; 1902 fill: ${e.labelBoxBkgColor}; 1903 filter: ${r==="neo"?t:"none"}; 1904 } 1905 1906 .labelText, .labelText > tspan { 1907 fill: ${e.labelTextColor}; 1908 stroke: none; 1909 } 1910 1911 .loopText, .loopText > tspan { 1912 fill: ${e.loopTextColor}; 1913 stroke: none; 1914 } 1915 1916 .sectionTitle, .sectionTitle > tspan { 1917 fill: ${e.loopTextColor}; 1918 stroke: none; 1919 } 1920 1921 .loopLine { 1922 stroke-width: 2px; 1923 stroke-dasharray: 2, 2; 1924 stroke: ${e.labelBoxBorderColor}; 1925 fill: ${e.labelBoxBorderColor}; 1926 } 1927 1928 .note { 1929 //stroke: #decc93; 1930 stroke: ${e.noteBorderColor}; 1931 fill: ${e.noteBkgColor}; 1932 } 1933 1934 .noteText, .noteText > tspan { 1935 fill: ${e.noteTextColor}; 1936 stroke: none; 1937 ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:""} 1938 } 1939 1940 .activation0 { 1941 fill: ${e.activationBkgColor}; 1942 stroke: ${e.activationBorderColor}; 1943 } 1944 1945 .activation1 { 1946 fill: ${e.activationBkgColor}; 1947 stroke: ${e.activationBorderColor}; 1948 } 1949 1950 .activation2 { 1951 fill: ${e.activationBkgColor}; 1952 stroke: ${e.activationBorderColor}; 1953 } 1954 1955 .actorPopupMenu { 1956 position: absolute; 1957 } 1958 1959 .actorPopupMenuPanel { 1960 position: absolute; 1961 fill: ${e.actorBkg}; 1962 box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 1963 filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); 1964} 1965 .actor-man circle, line { 1966 fill: ${e.actorBkg}; 1967 stroke-width: 2px; 1968 } 1969 1970 g rect.rect { 1971 filter: ${t}; 1972 stroke: ${e.nodeBorder}; 1973 } 1974`},"getStyles"),yst=mst}),zoe,X0,Gd,Ud,Tw,K0,fu,Qv,vst,ww,Cw,$1,qoe,Si,joe,bst,xst,kst,Tst,wst,Cst,Est,Sst,_st,Ast,Lst,Rst,Ist,Goe,Dst,Nst,Mst,Ost,$st,Bst,Pst,Fst,Uoe,zst,mu,qst,jst,Gst,Ust,Vst,vn,Gwt=Y(()=>{"use strict";zoe=_o(s4(),1),ti(),wr(),gi(),Km(),X0=36,Gd="actor-top",Ud="actor-bottom",Tw="actor-box",K0="actor-man",fu=new Set(["redux-color","redux-dark-color"]),Qv=s(function(e,t){let r=o4(e,t);
vendor: 4,819 bytes, line 1974
1974return Ir().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),vst=s(function(e,t,r,i,n){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,l=t.rectData;var h="none";n&&(h="block !important");let u=e.append("g");u.attr("id","actor"+o+"_popup"),u.attr("class","actorPopupMenu"),u.attr("display",h);var d="";l.class!==void 0&&(d=" "+l.class);let p=l.width>r?l.width:r,g=u.append("rect");if(g.attr("class","actorPopupMenuPanel"+d),g.attr("x",l.x),g.attr("y",l.height),g.attr("fill",l.fill),g.attr("stroke",l.stroke),g.attr("width",p),g.attr("height",l.height),g.attr("rx",l.rx),g.attr("ry",l.ry),a!=null){var m=20;for(let C in a){var y=u.append("a"),x=(0,zoe.sanitizeUrl)(a[C]);y.attr("xlink:href",x),y.attr("target","_blank"),qst(i)(C,y,l.x+10,l.height+m,p,20,{class:"actor"},i),m+=30}}return g.attr("height",m),{height:l.height+m,width:p}},"drawPopup"),ww=s(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Cw=s(async function(e,t,r=null){let i=e.append("foreignObject"),n=await fx(t.text,Ir()),a=i.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(n).node().getBoundingClientRect();if(i.attr("height",Math.round(a.height)).attr("width",Math.round(a.width)),t.class==="noteText"){let o=e.node().firstChild;o.setAttribute("height",a.height+2*t.textMargin);let l=o.getBBox();i.attr("x",Math.round(l.x+l.width/2-a.width/2)).attr("y",Math.round(l.y+l.height/2-a.height/2))}else if(r){let{startx:o,stopx:l,starty:h}=r;if(o>l){let u=o;o=l,l=u}i.attr("x",Math.round(o+Math.abs(o-l)/2-a.width/2)),t.class==="loopText"?i.attr("y",Math.round(h)):i.attr("y",Math.round(h-a.height))}return[i]},"drawKatex"),$1=s(function(e,t){let r=0,i=0,n=t.text.split(Vt.lineBreakRegex),[a,o]=Eh(t.fontSize),l=[],h=0,u=s(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":u=s(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":u=s(()=>Math.round(t.y+(r+i+t.textMargin)/2),"yfunc");break;case"bottom":case"end":u=s(()=>Math.round(t.y+(r+i+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[d,p]of n.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(h=d*a);let g=e.append("text");g.attr("x",t.x),g.attr("y",u()),t.anchor!==void 0&&g.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&g.style("font-family",t.fontFamily),o!==void 0&&g.style("font-size",o),t.fontWeight!==void 0&&g.style("font-weight",t.fontWeight),t.fill!==void 0&&g.attr("fill",t.fill),t.class!==void 0&&g.attr("class",t.class),t.dy!==void 0?g.attr("dy",t.dy):h!==0&&g.attr("dy",h);let m=p||MB;if(t.tspan){let y=g.append("tspan");y.attr("x",t.x),t.fill!==void 0&&y.attr("fill",t.fill),y.text(m)}else g.text(m);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(i+=(g._groups||g)[0][0].getBBox().height,r=i),l.push(g)}return l},"drawText"),qoe=s(function(e,t){function r(n,a,o,l,h){return n+","+a+" "+(n+o)+","+a+" "+(n+o)+","+(a+l-h)+" "+(n+o-h*1.2)+","+(a+l)+" "+n+","+(a+l)}f(r,"r"),s(r,"genPoints");let i=e.append("polygon");return i.attr("points",r(t.x,t.y,t.width,t.height,7)),i.attr("class","labelBox"),t.y=t.y+t.height/2,$1(e,t),i},"drawLabel"),Si=-1,joe=s((e,t,r,i)=>{e.select&&r.forEach(n=>{let a=t.get(n),o=e.select("#actor"+a.actorCnt);!i.mirrorActors&&a.stopy?o.attr("y2",a.stopy+a.height/2):i.mirrorActors&&o.attr("y2",a.stopy)})},"fixLifeLineHeights"),bst=s(function(e,t,r,i,n){var R,b,v;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+t.height,{look:h,theme:u,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:g}=d,m=e.append("g").lower();var y=m;i||(Si++,Object.keys(t.links||{}).length&&!r.forceMenus&&y.attr("onclick",ww(`actor${Si}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=m.append("g"),t.actorCnt=Si,t.links!=null&&y.attr("id","root-"+Si),h==="neo"&&y.attr("data-look","
1974neo"));let x=Io();var C="actor";(R=t.properties)!=null&&R.class?C=t.properties.class:x.fill="#eaeaea",i?C+=` ${Ud}`:C+=` ${Gd}`,x.x=t.x,x.y=a,x.width=t.width,x.height=t.height,x.class=C,x.rx=3,x.ry=3,x.name=t.name,h==="neo"&&(x.rx=6,x.ry=6);let w=Qv(y,x),_=(b=n.get(t.name))!=null?b:0;if(fu.has(u)&&(w.style("stroke",g[_%g.length]),w.style("fill",p[_%g.length])),h==="neo"&&w.attr("filter","url(#drop-shadow)"),t.rectData=x,(v=t.properties)==null?void 0:v.icon){let k=t.properties.icon.trim();k.charAt(0)==="@"?SE(y,x.x+x.width-20,x.y+10,k.substr(1)):EE(y,x.x+x.width-20,x.y+10,k)}i||(y.attr("data-et","participant"),y.attr("data-type","participant"),y.attr("data-id",t.name)),mu(r,ha(t.description))(t.description,y,x.x,x.y,x.width,x.height,{class:`actor ${Tw}`},r);let S=t.height;if(w.node){let k=w.node().getBBox();t.height=k.height,S=k.height}return S},"drawActorTypeParticipant"),xst=s(function(e,t,r,i,n){var k,E,A;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+t.height,{look:h,theme:u,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:g}=d,m=e.append("g").lower();var y=m;i||(Si++,Object.keys(t.links||{}).length&&!r.forceMenus&&y.attr("onclick",ww(`actor${Si}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=m.append("g"),t.actorCnt=Si,t.links!=null&&y.attr("id","root-"+Si),h==="neo"&&y.attr("data-look","neo"));let x=Io();var C="actor";(k=t.properties)!=null&&k.class?C=t.properties.class:x.fill="#eaeaea",i?C+=` ${Ud}`:C+=` ${Gd}`,x.x=t.x,x.y=a,x.width=t.width,x.height=t.height,x.class=C,x.name=t.name;let w=6,_=_r(Tt({},x),{x:x.x+-w,y:x.y+ +w,class:"actor"}),S=Qv(y,x),R=Qv(y,_);t.rectData=x,h==="neo"&&y.attr("filter","url(#drop-shadow)");let b=(E=n.get(t.name))!=null?E:0;if(fu.has(u)&&(S.style("stroke",g[b%g.length]),S.style("fill",p[b%g.length]),R.style("stroke",g[b%g.length]),R.style("fill",p[b%g.length])),(A=t.properties)==null?void 0:A.icon){let I=t.properties.icon.trim();I.charAt(0)==="@"?SE(y,x.x+x.width-20,x.y+10,I.substr(1)):EE(y,x.x+x.width-20,x.y+10,I)}mu(r,ha(t.description))(t.description,y,x.x-w,x.y+w,x.width,x.height,{class:`actor ${Tw}`},r);let v=t.height;if(S.node){let I=S.node().getBBox();t.height=I.height,v=I.height}return i||(y.attr("data-et","participant"),y.attr("data-type","collections"),y.attr("data-id",t.name)),v},"drawActorTypeCollections"),kst=s(function(e,t,r,i,n){var A,I,$;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+t.height,{look:h,theme:u,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:g}=d,m=e.append("g").lower(),y=m;i||(Si++,Object.keys(t.links||{}).length&&!r.forceMenus&&y.attr("onclick",ww(`actor${Si}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),y=m.append("g"),t.actorCnt=Si,t.links!=null&&y.attr("id","root-"+Si),h==="neo"&&y.attr("data-look","neo"));let x=Io(),C="actor";(A=t.properties)!=null&&A.class?C=t.properties.class:x.fill="#eaeaea",i?C+=` ${Ud}`:C+=` ${Gd}`,y.attr("class",C),x.x=t.x,x.y=a,x.width=t.width,x.height=t.height,x.name=t.name;let w=x.height/2,_=w/(2.5+x.height/50),S=y.append("g"),R=y.append("g"),b=`M ${x.x},${x.y+w} 1975 a ${_},${w} 0 0 0 0,${x.height} 1976 h ${x.width-2*_} 1977 a ${_},${w} 0 0 0 0,-${x.height} 1978 Z 1979 `;S.append("path").attr("d",b),R.append("path").attr("d",`M ${x.x},${x.y+w} 1980 a ${_},${w} 0 0 0 0,${x.height}`),S.attr("transform",`translate(${_}, ${-(x.height/2)})`),R.attr("transform",`translate(${x.width-_}, ${-x.height/2})`),t.rectData=x,h==="neo"&&S.attr("filter","url(#drop-shadow)");let v=(I=n.get(t.name))!=null?I:0;if(fu.has(u)&&(S.style("stroke",g[v%g.length]),S.style("fill",p[v%g.length]),R.style("stroke",g[v%g.length]),R.style("fill",p[v%g.length])),($=t.properties)==null?void 0:$.icon){let O=t.properties.icon.trim(),j=x.x+x.width-20,D=x.y+10;O.charAt(0)==="@"?SE(y,j,D,O.substr(1)):EE(y,j,D,O)}
vendor: 4,180 bytes, line 1980
1980mu(r,ha(t.description))(t.description,y,x.x,x.y,x.width,x.height,{class:`actor ${Tw}`},r);let k=t.height,E=S.select("path:last-child");if(E.node()){let O=E.node().getBBox();t.height=O.height,k=O.height}return i||(y.attr("data-et","participant"),y.attr("data-type","queue"),y.attr("data-id",t.name)),k},"drawActorTypeQueue"),Tst=s(function(e,t,r,i,n,a){var A,I,$;let o=i?t.stopy:t.starty,l=t.x+t.width/2,h=o+75,{look:u,theme:d,themeVariables:p}=r,{bkgColorArray:g,borderColorArray:m,actorBorder:y,actorBkg:x}=p,C=e.append("g").lower();i||(Si++,C.append("line").attr("id","actor"+Si).attr("x1",l).attr("y1",h).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Si);let w=e.append("g"),_=K0;i?_+=` ${Ud}`:_+=` ${Gd}`,w.attr("class",_),w.attr("name",t.name);let S=Io();S.x=t.x,S.y=o,S.fill="#eaeaea",S.width=t.width,S.height=t.height,S.class="actor";let R=t.x+t.width/2,b=o+32,v=22;w.append("defs").append("marker").attr("id",n+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),w.append("circle").attr("cx",R).attr("cy",b).attr("r",v).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),w.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform",`translate(${R}, ${b-v})`);let k=(A=a.get(t.name))!=null?A:0;fu.has(d)?(w.style("stroke",m[k%m.length]),w.style("fill",g[k%m.length])):(w.style("stroke",y),w.style("fill",x));let E=w.node().getBBox();return t.height=E.height+2*(($=(I=r==null?void 0:r.sequence)==null?void 0:I.labelBoxHeight)!=null?$:0),mu(r,ha(t.description))(t.description,w,S.x,S.y+v+(i?5:12),S.width,S.height,{class:`actor ${K0}`},r),i||(w.attr("data-et","participant"),w.attr("data-type","control"),w.attr("data-id",t.name)),t.height},"drawActorTypeControl"),wst=s(function(e,t,r,i,n){var v,k,E;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+75,{look:h,theme:u,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:g}=d,m=e.append("g").lower(),y=e.append("g"),x="actor";i?x+=` ${Ud}`:x+=` ${Gd}`,y.attr("class",x),y.attr("name",t.name);let C=Io();C.x=t.x,C.y=a,C.fill="#eaeaea",C.width=t.width,C.height=t.height,C.class="actor";let w=t.x+t.width/2,_=a+(i?10:25),S=22;y.append("circle").attr("cx",w).attr("cy",_).attr("r",S).attr("width",t.width).attr("height",t.height),y.append("line").attr("x1",w-S).attr("x2",w+S).attr("y1",_+S).attr("y2",_+S).attr("stroke-width",2),h==="neo"&&y.attr("filter","url(#drop-shadow)");let R=(v=n.get(t.name))!=null?v:0;fu.has(u)&&(y.style("stroke",g[R%g.length]),y.style("fill",p[R%g.length]));let b=y.node().getBBox();return t.height=b.height+((E=(k=r==null?void 0:r.sequence)==null?void 0:k.labelBoxHeight)!=null?E:0),i||(Si++,m.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Si),mu(r,ha(t.description))(t.description,y,C.x,C.y+(i?15:30),C.width,C.height,{class:`actor ${K0}`},r),i?y.attr("transform",`translate(0, ${S})`):(y.attr("transform",`translate(0, ${S/2-5})`),y.attr("data-et","participant"),y.attr("data-type","entity"),y.attr("data-id",t.name)),t.height},"drawActorTypeEntity"),Cst=s(function(e,t,r,i,n){var I,$,O;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+t.height+2*r.boxTextMargin,{theme:h,themeVariables:u,look:d}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=u,y=e.append("g").lower(),x=y;i||(Si++,Object.keys(t.links||{}).length&&!r.forceMenus&&x.attr("onclick",ww(`actor${Si}_popup`)).attr("cursor","pointer"),x.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),x=y.append("g"),t.actorCnt=Si,t.links!=null&&x.attr("id","root-"+Si),d==="neo"&&x.attr("data-look","
1980neo"));let C=Io(),w="actor";(I=t.properties)!=null&&I.class?w=t.properties.class:C.fill="#eaeaea",i?w+=` ${Ud}`:w+=` ${Gd}`,C.x=t.x,C.y=a,C.width=t.width,C.height=t.height,C.class=w,C.name=t.name,C.x=t.x,C.y=a;let _=C.width/3,S=C.width/3,R=_/2,b=R/(2.5+_/50),v=x.append("g");v.attr("class",w);let k=` 1981 M ${C.x},${C.y+b} 1982 a ${R},${b} 0 0 0 ${_},0 1983 a ${R},${b} 0 0 0 -${_},0 1984 l 0,${S-2*b} 1985 a ${R},${b} 0 0 0 ${_},0 1986 l 0,-${S-2*b} 1987`;v.append("path").attr("d",k),d==="neo"&&v.attr("filter","url(#drop-shadow)");let E=($=n.get(t.name))!=null?$:0;fu.has(h)?(v.style("stroke",g[E%g.length]),v.style("fill",p[E%g.length])):v.style("stroke",m),v.attr("transform",`translate(${_}, ${b})`),t.rectData=C,mu(r,ha(t.description))(t.description,x,C.x,C.y+35,C.width,C.height,{class:`actor ${Tw}`},r);let A=v.select("path:last-child");if(A.node()){let j=A.node().getBBox();t.height=j.height+((O=r.sequence.labelBoxHeight)!=null?O:0)}return i||(x.attr("data-et","participant"),x.attr("data-type","database"),x.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),Est=s(function(e,t,r,i,n){var b,v;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+80,h=22,u=e.append("g").lower(),{look:d,theme:p,themeVariables:g}=r,{bkgColorArray:m,borderColorArray:y,actorBorder:x}=g;i||(Si++,u.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Si);let C=e.append("g"),w=K0;i?w+=` ${Ud}`:w+=` ${Gd}`,C.attr("class",w),C.attr("name",t.name);let _=Io();_.x=t.x,_.y=a,_.fill="#eaeaea",_.width=t.width,_.height=t.height,_.class="actor",C.append("line").attr("id","actor-man-torso"+Si).attr("x1",t.x+t.width/2-h*2.5).attr("y1",a+12).attr("x2",t.x+t.width/2-15).attr("y2",a+12),C.append("line").attr("id","actor-man-arms"+Si).attr("x1",t.x+t.width/2-h*2.5).attr("y1",a+2).attr("x2",t.x+t.width/2-h*2.5).attr("y2",a+22),C.append("circle").attr("cx",t.x+t.width/2).attr("cy",a+12).attr("r",h),d==="neo"&&C.attr("filter","url(#drop-shadow)");let S=(b=n.get(t.name))!=null?b:0;fu.has(p)?(C.style("stroke",y[S%y.length]),C.style("fill",m[S%y.length])):C.style("stroke",x);let R=C.node().getBBox();return t.height=R.height+((v=r.sequence.labelBoxHeight)!=null?v:0),mu(r,ha(t.description))(t.description,C,_.x,_.y+15,_.width,_.height,{class:`actor ${K0}`},r),C.attr("transform",`translate(0,${h/2+10})`),i||(C.attr("data-et","participant"),C.attr("data-type","boundary"),C.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),Sst=s(function(e,t,r,i,n){var k;let a=i?t.stopy:t.starty,o=t.x+t.width/2,l=a+80,{look:h,theme:u,themeVariables:d}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=d,y=e.append("g").lower();i||(Si++,y.append("line").attr("id","actor"+Si).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=Si);let x=e.append("g"),C=K0;i?C+=` ${Ud}`:C+=` ${Gd}`,x.attr("class",C),x.attr("name",t.name),i||x.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let w=h==="neo"?.5:1,_=h==="neo"?a+(1-w)*30:a;x.append("line").attr("id","actor-man-torso"+Si).attr("x1",o).attr("y1",_+25*w).attr("x2",o).attr("y2",_+45*w),x.append("line").attr("id","actor-man-arms"+Si).attr("x1",o-X0/2*w).attr("y1",_+33*w).attr("x2",o+X0/2*w).attr("y2",_+33*w),x.append("line").attr("x1",o-X0/2*w).attr("y1",_+60*w).attr("x2",o).attr("y2",_+45*w),x.append("line").attr("x1",o).attr("y1",_+45*w).attr("x2",o+(X0/2-2)*w).attr("y2",_+60*w);let S=x.append("circle");S.attr("cx",t.x+t.width/2),S.attr("cy",_+10*w),S.attr("r",15*w),S.attr("width",t.width*w),S.attr("height",t.height*w);let R=x.node().getBBox();t.height=R.height;let b=Io();b.x=t.x,b.y=_,b.fill="#eaeaea",b.width=t.width,b.height=t.height/w,b.class="actor",b.rx=3,b.ry=3;let v=(k=n.get(t.name))!=null?k:0;return fu.has(u)?(x.style("stroke",g[v%g.length]),x.style("fill",p[v%g.length])):x.style("stroke",m),mu(r,ha(t.description))(t.description,x,b.x,_+35*w-(h==="neo"?10:0),b.width,b.height,{class:`actor ${K0}`},r),t.height},"drawActorTypeActor"),_st=s(async function(e,t,r,i,n,a,o){let l=o!=null?o:new Map([...a.db.getActors().values()].map((h,u)=>[h.name,u]));switch(t.type){case"actor":return await Sst(e,t,r,i,l);case"participant":return await bst(e,t,r,i,l);
vendor: 2,447 bytes, line 1987
1987case"boundary":return await Est(e,t,r,i,l);case"control":return await Tst(e,t,r,i,n,l);case"entity":return await wst(e,t,r,i,l);case"database":return await Cst(e,t,r,i,l);case"collections":return await xst(e,t,r,i,l);case"queue":return await kst(e,t,r,i,l)}},"drawActor"),Ast=s(function(e,t,r){let i=e.append("g");Goe(i,t),t.name&&mu(r)(t.name,i,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),i.lower()},"drawBox"),Lst=s(function(e){return e.append("g")},"anchorElement"),Rst=s(function(e,t,r,i,n,a,o){var w,_;let{theme:l,themeVariables:h}=i,{bkgColorArray:u,borderColorArray:d,mainBkg:p}=h,g=Io(),m=t.anchored,y=t.actor;g.x=t.startx,g.y=t.starty,g.class="activation"+n%3,g.width=t.stopx-t.startx,g.height=r-t.starty;let x=Qv(m,g),C=(w=(o!=null?o:new Map([...a.db.getActors().values()].map((S,R)=>[S.name,R]))).get(y))!=null?w:0;fu.has(l)&&(x.style("stroke",d[C%d.length]),x.style("fill",(_=u[C%d.length])!=null?_:p))},"drawActivation"),Ist=s(async function(e,t,r,i,n){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:l,labelBoxWidth:h,messageFontFamily:u,messageFontSize:d,messageFontWeight:p}=i,g=e.append("g").attr("data-et","control-structure").attr("data-id","i"+n.id),m=s(function(C,w,_,S){return g.append("line").attr("x1",C).attr("y1",w).attr("x2",_).attr("y2",S).attr("class","loopLine")},"drawLoopLine");m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(C){m(t.startx,C.y,t.stopx,C.y).style("stroke-dasharray","3, 3")});let y=_E();y.text=r,y.x=t.startx,y.y=t.starty,y.fontFamily=u,y.fontSize=d,y.fontWeight=p,y.anchor="middle",y.valign="middle",y.tspan=!1,y.width=Math.max(h!=null?h:0,50),y.height=l+(i.look==="neo"?15:0)||20,y.textMargin=o,y.class="labelText",qoe(g,y),y=Uoe(),y.text=t.title,y.x=t.startx+h/2+(t.stopx-t.startx)/2,y.y=t.starty+a+o,y.anchor="middle",y.valign="middle",y.textMargin=o,y.class="loopText",y.fontFamily=u,y.fontSize=d,y.fontWeight=p,y.wrap=!0;let x=ha(y.text)?await Cw(g,y,t):$1(g,y);if(t.sectionTitles!==void 0){for(let[C,w]of Object.entries(t.sectionTitles))if(w.message){y.text=w.message,y.x=t.startx+(t.stopx-t.startx)/2,y.y=t.sections[C].y+a+o,y.class="sectionTitle",y.anchor="middle",y.valign="middle",y.tspan=!1,y.fontFamily=u,y.fontSize=d,y.fontWeight=p,y.wrap=t.wrap,ha(y.text)?(t.starty=t.sections[C].y,await Cw(g,y,t)):$1(g,y
1987);let _=Math.round(x.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,R)=>S+R));t.sections[C].height+=_-(a+o)}}return t.height=Math.round(t.stopy-t.starty),g},"drawLoop"),Goe=s(function(e,t){cB(e,t)},"drawBackgroundRect"),Dst=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-
vendor: 13,283 bytes, line 1987
1987database").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"),
vendor: 13,503 bytes, line 1987
1987Nst=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-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"),Mst=s(function(e,t){e.append("defs").append("symbol").attr("id",t+"-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"),Ost=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),$st=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).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"),Bst=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-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)},"insertSequenceNumber"),Pst=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Fst=s(function(e,t){let{theme:r}=t;e.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),Uoe=s(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),zst=s(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mu=(function(){function e(a,o,l,h,u,d,p){let g=o.append("text").attr("x",l+u/2).attr("y",h+d/2+5).style("text-anchor","middle").text(a);n(g,p)}f(e,"e"),s(e,"byText");function t(a,o,l,h,u,d,p,g){let{actorFontSize:m,actorFontFamily:y,actorFontWeight:x}=g,[C,w]=Eh(m),_=a.split(Vt.lineBreakRegex);for(let S=0;S<_.length;S++){let R=S*C-C*(_.length-1)/2,b=o.append("text").attr("x",l+u/2).attr("y",h).style("text-anchor","middle").style("font-size",w).style("font-weight",x).style("font-family",y);b.append("tspan").attr("x",l+u/2).attr("dy",R).text(_[S]),b.attr("y",h+d/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(b,p)}}f(t,"t"),s(t,"byTspan");function r(a,o,l,h,u,d,p,g){let m=o.append("switch"),y=m.append("foreignObject").attr("x",l).attr("y",h).attr("width",u).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),t(a,m,l,h,u,d,p,g),n(y,p)}f(r,"r"),s(r,"byFo");async function i(a,o,l,h,u,d,p,g){let m=await wm(a,Ir()),y=o.append("switch"),x=y.append("foreignObject").attr("x",l+u/2-m.width/2).attr("y",h+d/2-m.height/2).attr("width",m.width).attr("height",m.height).append("xhtml:div").style("height","100%").style("width","100%");x.append("div").style("text-align","center").style("vertical-align","middle").html(await fx(a,Ir())),t(a,y,l,h,u,d,p,g),n(x,p)}f(i,"i"),s(i,"byKatex");function n(a,o){for(let l in o)o.hasOwnProperty(l)&&a.attr(l,o[l])}return f(n,"n"),s(n,"_setTextAttrs"),function(a,o=!1){return o?i:a.textPlacement==="fo"?r:a.textPlacement==="old"?e:t}})(),qst=(function(){function e(n,a,o,l,h,u,d){let p=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(n);i(p,d)}f(e,"e"),s(e,"byText");function t(n,a,o,l,h,u,d,p){let{actorFontSize:g,actorFontFamily:m,actorFontWeight:y}=p,x=n.split(Vt.lineBreakRegex);for(let C=0;C<x.length;C++){let w=C*g-g*(x.length-1)/2,_=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",g).style("font-weight",y).style("font-family",m);_.append("tspan").attr("x",o).attr("dy",w).text(x[C]),_.attr("y",l+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(_,d)}}f(t,"t"),s(t,"byTspan");function r(n,a,o,l,h,u,d,p){let g=a.append("switch"),m=g.append("foreignObject").attr("x",o).attr("y",l).attr("width",h).attr("height",u).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,g,o,l,h,u,d,p),i(m,d)}f(r,"r"),s(r,"byFo");function i(n,a){for(let o in a)a.hasOwnProperty(o)&&n.attr(o,a[o])}return f(i,"i"),s(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),jst=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),Gst=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),Ust=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),Vst=s(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),vn={drawRect:Qv,drawText:$1,drawLabel:qoe,drawActor:_st,drawBox:Ast,drawPopup:vst,anchorElement:Lst,drawActivation:Rst,drawLoop:Ist,drawBackgroundRect:Goe,insertArrowHead:Ost,insertArrowFilledHead:$st,insertSequenceNumber:Bst,insertArrowCrossHead:Pst,insertDatabaseIcon:Dst,insertComputerIcon:Nst,insertClockIcon:Mst,getTextObj:Uoe,getNoteRect:zst,fixLifeLineHeights:joe,sanitizeUrl:zoe.sanitizeUrl,insertDropShadow:Fst,insertSolidTopArrowHead:jst,insertSolidBottomArrowHead:Gst,insertStickTopArrowHead:Ust,insertStickBottomArrowHead:Vst}});async function Wst(e,t){Ot.bumpVerticalPos(10);let{startx:r,stopx:i,message:n}=t,a=Vt.splitBreaks(n).length,o=ha(n),l=o?await wm(n,Ue()):ri.calculateTextDimensions(n,Z0(rt));if(!o){let p=l.height/a;t.height+=p,Ot.bumpVerticalPos(p)}let h,u=l.height-10,d=l.width;if(r===i){h=Ot.getVerticalPos()+u,rt.rightAngles||(u+=rt.boxMargin,h=Ot.getVerticalPos()+u),u+=30;let p=Vt.getMax(d/2,rt.width/2);Ot.insert(r-p,Ot.getVerticalPos()-10+u,i+p,Ot.getVerticalPos()+30+u)}else u+=rt.boxMargin,h=Ot.getVerticalPos()+u,Ot.insert(r,h-10,i,h);return Ot.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,Ot.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),h}f(Wst,"rCt");function Qc(e,t,r,i,n){Ot.bumpVerticalPos(r);let a=i;if(t.id&&t.message&&e[t.id]){let o=e[t.id].width,l=Z0(rt);t.message=ri.wrapLabel(`[${t.message}]`,o-2*rt.wrapPadding,l),t.width=o,t.wrap=!0;let h=ri.calculateTextDimensions(t.message,l),u=Vt.getMax(h.height,rt.labelBoxHeight);a=i+u,ge.debug(`${u} - ${t.message}`)}n(t),Ot.bumpVerticalPos(a)}f(Qc,"lu");function Hst(e,t,r,i,n,a,o){function l(d,p){d.x<n.get(e.from).x?(Ot.insert(t.stopx-p,t.starty,t.startx,t.stopy+d.height/2+rt.noteMargin),t.stopx=t.stopx+p):(Ot.insert(t.startx,t.starty,t.stopx+p,t.stopy+d.height/2+rt.noteMargin),t.stopx=t.stopx-p)}f(l,"l"),s(l,"receiverAdjustment");function h(d,p){d.x<n.get(e.to).x?(Ot.insert(t.startx-p,t.starty,t.stopx,t.stopy+d.height/2+rt.noteMargin),t.startx=t.startx+p):(Ot.insert(t.stopx,t.starty,t.startx+p,t.stopy+d.height/2+rt.noteMargin),t.startx=t.startx-p)}f(h,"u"),s(h,"senderAdjustment");let u=[kw.ACTOR,kw.CONTROL,kw.ENTITY,kw.DATABASE];if(a.get(e.to)==i){let d=n.get(e.to),p=u.includes(d.type)?X0/2+3:d.width/2+3;l(d,p),d.starty=r-d.height/2,Ot.bumpVerticalPos(d.height/2)}else if(o.get(e.from)==i){let d=n.get(e.from);if(rt.mirrorActors){let p=u.includes(d.type)?X0/2:d.width/2;h(d,p)}d.stopy=r-d.height/2,Ot.bumpVerticalPos(d.height/2)}else if(o.get(e.to)==i){let d=n.get(e.to);if(rt.mirrorActors){let p=u.includes(d.type)?X0/2+3:d.width/2+3;l(d,p)}d.stopy=r-d.height/2,Ot.bumpVerticalPos(d.height/2)}}f(Hst,"aCt");async function Yst(e,t,r){let i={};for(let n of t)if(e.get(n.to)&&e.get(n.from)){let a=e.get(n.to);if(n.placement===r.db.PLACEMENT.LEFTOF&&!a.prevActor||n.placement===r.db.PLACEMENT.RIGHTOF&&!a.nextActor)continue;let o=n.placement!==void 0,l=!o,h=o?B1(rt):Z0(rt),u=n.wrap?ri.wrapLabel(n.message,rt.width-2*rt.wrapPadding,h):n.message,d=(ha(u)?await wm(n.message,Ue()):ri.calculateTextDimensions(u,h)).width+2*rt.wrapPadding;l&&n.from===a.nextActor?i[n.to]=Vt.getMax(i[n.to]||0,d):l&&n.from===a.prevActor?i[n.from]=Vt.getMax(i[n.from]||0,d):l&&n.from===n.to?(i[n.from]=Vt.getMax(i[n.from]||0,d/2),i[n.to]=Vt.getMax(i[n.to]||0,d/2)):n.placement===r.db.PLACEMENT.RIGHTOF?i[n.from]=Vt.getMax(i[n.from]||0,d):n.placement===r.db.PLACEMENT.LEFTOF?i[a.prevActor]=Vt.getMax(i[a.prevActor]||0,d):n.placement===r.db.PLACEMENT.OVER&&(a.prevActor&&(i[a.prevActor]=Vt.getMax(i[a.prevActor]||0,d/2)),a.nextActor&&(i[n.from]=Vt.getMax(i[n.from]||0,d/2)))}return ge.debug("maxMessageWidthPerActor:",i),i}f(Yst,"oCt");async function Xst(e,t,r){let i=0;for(let a of e.keys()){let o=e.get(a);o.wrap&&(o.description=ri.wrapLabel(o.description,rt.width-2*rt.wrapPadding,NR(rt)));let l=ha(o.description)?await wm(o.description,Ue()):ri.calculateTextDimensions(o.description,NR(rt));o.width=o.wrap?rt.width:Vt.getMax(rt.width,l.width+2*rt.wrapPadding),o.height=o.wrap?Vt.getMax(l.height,rt.height):rt.height,i=Vt.getMax(i,o.height)}for(let a in t){let o=e.get(a);if(!o)continue;let l=e.get(o.nextActor);if(!l){let u=t[a]+rt.actorMargin-o.width/2;o.margin=Vt.getMax(u,rt.actorMargin);continue}let h=t[a]+rt.actorMargin-o.width/2-l.width/2;o.margin=Vt.getMax(h,rt.actorMargin)}let n=0;return r.forEach(a=>{let o=Z0(rt),l=a.actorKeys.reduce((p,g)=>p+=e.get(g).width+(e.get(g).margin||0),0),h=rt.boxMargin*8;l+=h,l-=2*rt.boxTextMargin,a.wrap&&(a.name=ri.wrapLabel(a.name,l-2*rt.wrapPadding,o));let u=ri.calculateTextDimensions(a.name,o);n=Vt.getMax(u.height,n);let d=Vt.getMax(l,u.width+2*rt.wrapPadding);if(a.margin=rt.boxTextMargin,l<d){let p=(d-l)/2;a.margin+=p}}),r.forEach(a=>a.textMaxHeight=n),Vt.getMax(i,rt.height)}f(Xst,"cCt");var rt,Ot,Kst,Voe,Z0,B1,NR,Zst,Qst,MR,Woe,Hoe,Ew,Yoe,Jst,eot,tot,rot,iot,OR,not,Xoe,aot,sot,oot,lot,Uwt=Y(()=>{"use strict";ui(),Gwt(),jt(),gi(),gi(),Km(),vr(),Nb(),wr(),Bn(),fst(),rt={},Ot={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:s(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:s(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:s(function(e){this.boxes.push(e)},"addBox"),addActor:s(function(e){this.actors.push(e)},"addActor"),addLoop:s(function(e){this.loops.push(e)},"addLoop"),addMessage:s(function(e){this.messages.push(e)},"addMessage"),addNote:s(function(e){this.notes.push(e)},"addNote"),lastActor:s(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:s(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:s(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:s(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:s(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Hoe(Ue())},"init"),updateVal:s(function(e,t,r,i){e[t]===void 0?e[t]=r:e[t]=i(r,e[t])},"updateVal"),updateBounds:s(function(e,t,r,i){let n=this,a=0;function o(l){return s(function(h){a++;let u=n.sequenceItems.length-a+1;
vendor: 4,521 bytes, line 1987
1987n.updateVal(h,"starty",t-u*rt.boxMargin,Math.min),n.updateVal(h,"stopy",i+u*rt.boxMargin,Math.max),n.updateVal(Ot.data,"startx",e-u*rt.boxMargin,Math.min),n.updateVal(Ot.data,"stopx",r+u*rt.boxMargin,Math.max),l!=="activation"&&(n.updateVal(h,"startx",e-u*rt.boxMargin,Math.min),n.updateVal(h,"stopx",r+u*rt.boxMargin,Math.max),n.updateVal(Ot.data,"starty",t-u*rt.boxMargin,Math.min),n.updateVal(Ot.data,"stopy",i+u*rt.boxMargin,Math.max))},"updateItemBounds")}f(o,"s"),s(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:s(function(e,t,r,i){let n=Vt.getMin(e,r),a=Vt.getMax(e,r),o=Vt.getMin(t,i),l=Vt.getMax(t,i);this.updateVal(Ot.data,"startx",n,Math.min),this.updateVal(Ot.data,"starty",o,Math.min),this.updateVal(Ot.data,"stopx",a,Math.max),this.updateVal(Ot.data,"stopy",l,Math.max),this.updateBounds(n,o,a,l)},"insert"),newActivation:s(function(e,t,r){let i=r.get(e.from),n=Ew(e.from).length||0,a=i.x+i.width/2+(n-1)*rt.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+rt.activationWidth,stopy:void 0,actor:e.from,anchored:vn.anchorElement(t)})},"newActivation"),endActivation:s(function(e){let t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:s(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:s(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:s(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:s(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:s(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Ot.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:s(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:s(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:s(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=Vt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return{bounds:this.data,models:this.models}},"getBounds")},Kst=s(async function(e,t,r){Ot.bumpVerticalPos(rt.boxMargin),t.height=rt.boxMargin,t.starty=Ot.getVerticalPos();let i=Io();i.x=t.startx,i.y=t.starty,i.width=t.width||rt.width,i.class="note";let n=e.append("g");n.attr("data-et","note"),n.attr("data-id","i"+r);let a=vn.drawRect(n,i),o=_E();o.x=t.startx,o.y=t.starty,o.width=i.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=rt.noteFontFamily,o.fontSize=rt.noteFontSize,o.fontWeight=rt.noteFontWeight,o.anchor=rt.noteAlign,o.textMargin=rt.noteMargin,o.valign="center";let l=ha(o.text)?await Cw(n,o):$1(n,o),h=Math.round(l.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));a.attr("height",h+2*rt.noteMargin),t.height+=h+2*rt.noteMargin,Ot.bumpVerticalPos(h+2*rt.noteMargin),t.stopy=t.starty+h+2*rt.noteMargin,t.stopx=t.startx+i.width,Ot.insert(t.startx,t.starty,t.stopx,t.stopy),Ot.models.addNote(t)},"drawNote"),Voe=s(function(e,t,r,i,n,a,o){let l=i.db.getActors(),h=l.get(t.from),u=l.get(t.to),d=r.sequenceVisible,p=h.x+h.width/2,g=u.x+u.width/2,m=p<=g,y=Xoe(t,i),x=e.append("g"),C=16.5,w=s((v,k)=>{let E=v?C:-C;return k?-E:E},"getCircleOffset"),_=s(v=>{x.append("circle").attr("cx",v).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:S,CENTRAL_CONNECTION_REVERSE:R,CENTRAL_CONNECTION_DUAL:b}=i.db.LINETYPE;if(d)switch(t.centralConnection){case S:y&&(g+=w(m,!0));break;case R:y||(p+=w(m,!1));break;case b:y?g+=w(m,!0):p+=w(m,!1);break}switch(t.centralConnection){case S:_(g);break;case R:_(p);break;case b:_(p),_(g);break}},"drawCentralConnection"),Z0=s(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),B1=s(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),NR=s(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}
vendor: 21,544 bytes, line 1987
1987),"actorFont"),s(Wst,"boundMessage"),Zst=s(async function(e,t,r,i,n,a){let{startx:o,stopx:l,starty:h,message:u,type:d,sequenceIndex:p,sequenceVisible:g}=t,m=ri.calculateTextDimensions(u,Z0(rt)),y=_E();y.x=Math.min(o,l),y.y=h+10,y.width=Math.abs(l-o),y.class="messageText",y.dy="1em",y.text=u,y.fontFamily=rt.messageFontFamily,y.fontSize=rt.messageFontSize,y.fontWeight=rt.messageFontWeight,y.anchor=rt.messageAlign,y.valign="center",y.textMargin=rt.wrapPadding,y.tspan=!1,ha(y.text)?await Cw(e,y,{startx:o,stopx:l,starty:r}):$1(e,y);let x=m.width,C;if(o===l){let _=g||rt.showSequenceNumbers,S=Xoe(n,i),R=aot(n,i),b=o+(_&&(S||R)?10:0);rt.rightAngles?C=e.append("path").attr("d",`M ${b},${r} H ${o+Vt.getMax(rt.width/2,x/2)} V ${r+25} H ${o}`):C=e.append("path").attr("d","M "+b+","+r+" C "+(b+60)+","+(r-10)+" "+(o+60)+","+(r+30)+" "+o+","+(r+20)),OR(n,i)&&Voe(e,n,t,i,o,l,r)}else C=e.append("line"),C.attr("x1",o),C.attr("y1",r),C.attr("x2",l),C.attr("y2",r),OR(n,i)&&Voe(e,n,t,i,o,l,r);d===i.db.LINETYPE.DOTTED||d===i.db.LINETYPE.DOTTED_CROSS||d===i.db.LINETYPE.DOTTED_POINT||d===i.db.LINETYPE.DOTTED_OPEN||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===i.db.LINETYPE.SOLID_TOP_DOTTED||d===i.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===i.db.LINETYPE.STICK_TOP_DOTTED||d===i.db.LINETYPE.STICK_BOTTOM_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(C.style("stroke-dasharray","3, 3"),C.attr("class","messageLine1")):C.attr("class","messageLine0"),C.attr("data-et","message"),C.attr("data-id","i"+t.id),C.attr("data-from",t.from),C.attr("data-to",t.to);let w="";if(rt.arrowMarkerAbsolute&&(w=px(!0)),C.attr("stroke-width",2),C.attr("stroke","none"),C.style("fill","none"),(d===i.db.LINETYPE.SOLID_TOP||d===i.db.LINETYPE.SOLID_TOP_DOTTED)&&C.attr("marker-end","url("+w+"#"+a+"-solidTopArrowHead)"),(d===i.db.LINETYPE.SOLID_BOTTOM||d===i.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&C.attr("marker-end","url("+w+"#"+a+"-solidBottomArrowHead)"),(d===i.db.LINETYPE.STICK_TOP||d===i.db.LINETYPE.STICK_TOP_DOTTED)&&C.attr("marker-end","url("+w+"#"+a+"-stickTopArrowHead)"),(d===i.db.LINETYPE.STICK_BOTTOM||d===i.db.LINETYPE.STICK_BOTTOM_DOTTED)&&C.attr("marker-end","url("+w+"#"+a+"-stickBottomArrowHead)"),(d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&C.attr("marker-start","url("+w+"#"+a+"-solidBottomArrowHead)"),(d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&C.attr("marker-start","url("+w+"#"+a+"-solidTopArrowHead)"),(d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&C.attr("marker-start","url("+w+"#"+a+"-stickBottomArrowHead)"),(d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&C.attr("marker-start","url("+w+"#"+a+"-stickTopArrowHead)"),(d===i.db.LINETYPE.SOLID||d===i.db.LINETYPE.DOTTED)&&C.attr("marker-end","url("+w+"#"+a+"-arrowhead)"),(d===i.db.LINETYPE.BIDIRECTIONAL_SOLID||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(C.attr("marker-start","url("+w+"#"+a+"-arrowhead)"),C.attr("marker-end","url("+w+"#"+a+"-arrowhead)")),(d===i.db.LINETYPE.SOLID_POINT||d===i.db.LINETYPE.DOTTED_POINT)&&C.attr("marker-end","url("+w+"#"+a+"-filled-head)"),(d===i.db.LINETYPE.SOLID_CROSS||d===i.db.LINETYPE.DOTTED_CROSS)&&C.attr("marker-end","url("+w+"#"+a+"-crosshead)"),g||rt.showSequenceNumbers){let _=d===i.db.LINETYPE.BIDIRECTIONAL_SOLID||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED,S=d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,R=6,b=OR(n,i),v=o,k=l;_?(o<l?v=o+R*2:(v=o-R+(b?-5:0),v+=(n==null?void 0:n.centralConnection)===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(n==null?void 0:n.centralConnection)===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),C.attr("x1",v)):S?(l>o?k=l-2*R:(k=l-R,v+=(n==null?void 0:n.centralConnection)===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(n==null?void 0:n.centralConnection)===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),k+=b?15:0,C.attr("x2",k),C.attr("x1",v)):C.attr("x1",o+R);let E=0,A=o===l,I=o<=l;A?E=t.fromBounds+1:S?E=I?t.toBounds-1:t.fromBounds+1:E=I?t.fromBounds+1:t.toBounds-1;let $="12px",O=p.toString().length;O>5?$="7px":O>3&&($="9px"),e.append("line").attr("x1",E).attr("y1",r).attr("x2",E).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+w+"#"+a+"-sequencenumber)"),e.append("text").attr("x",E).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",$).attr("text-anchor","middle").attr("class","sequenceNumber").text(p)}},"drawMessage"),Qst=s(function(e,t,r,i,n,a,o){let l=0,h=0,u,d=0;for(let p of i){let g=t.get(p),m=g.box;u&&u!=m&&(o||Ot.models.addBox(u),h+=rt.boxMargin+u.margin),m&&m!=u&&(o||(m.x=l+h,m.y=n),h+=m.margin),g.width=Vt.getMax(g.width||rt.width,rt.width),g.height=Vt.getMax(g.height||rt.height,rt.height),g.margin=g.margin||rt.actorMargin,d=Vt.getMax(d,g.height),r.get(g.name)&&(h+=g.width/2),g.x=l+h,g.starty=Ot.getVerticalPos(),Ot.insert(g.x,n,g.x+g.width,g.height),l+=g.width+h,g.box&&(g.box.width=l+m.margin-g.box.x),h=g.margin,u=g.box,Ot.models.addActor(g)}u&&!o&&Ot.models.addBox(u),Ot.bumpVerticalPos(d)},"addActorRenderingData"),MR=s(async function(e,t,r,i,n,a,o){if(i){let l=0;Ot.bumpVerticalPos(rt.boxMargin*2);for(let h of r){let u=t.get(h);u.stopy||(u.stopy=Ot.getVerticalPos());let d=await vn.drawActor(e,u,rt,!0,n,a,o);l=Vt.getMax(l,d)}Ot.bumpVerticalPos(l+rt.boxMargin)}else for(let l of r){let h=t.get(l);await vn.drawActor(e,h,rt,!1,n,a,o)}},"drawActors"),Woe=s(function(e,t,r,i){let n=0,a=0;for(let o of r){let l=t.get(o),h=eot(l),u=vn.drawPopup(e,l,h,rt,rt.forceMenus,i);u.height>n&&(n=u.height),u.width+l.x>a&&(a=u.width+l.x)}return{maxHeight:n,maxWidth:a}},"drawActorsPopup"),Hoe=s(function(e){la(rt,e),e.fontFamily&&(rt.actorFontFamily=rt.noteFontFamily=rt.messageFontFamily=e.fontFamily),e.fontSize&&(rt.actorFontSize=rt.noteFontSize=rt.messageFontSize=e.fontSize),e.fontWeight&&(rt.actorFontWeight=rt.noteFontWeight=rt.messageFontWeight=e.fontWeight)},"setConf"),Ew=s(function(e){return Ot.activations.filter(function(t){return t.actor===e})},"actorActivations"),Yoe=s(function(e,t){let r=t.get(e),i=Ew(e),n=i.reduce(function(o,l){return Vt.getMin(o,l.startx)},r.x+r.width/2-1),a=i.reduce(function(o,l){return Vt.getMax(o,l.stopx)},r.x+r.width/2+1);return[n,a]},"activationBounds"),s(Qc,"adjustLoopHeightForWrap"),s(Hst,"adjustCreatedDestroyedData"),Jst=s(async function(e,t,r,i){let{securityLevel:n,sequence:a,look:o}=Ue();rt=a;let l;n==="sandbox"&&(l=Lt("#i"+t));let h=Lt(n==="sandbox"?l.nodes()[0].contentDocument.body:"body"),u=n==="sandbox"?l.nodes()[0].contentDocument:document;Ot.init(),ge.debug(i.db);let d=n==="sandbox"?h.select(`[id="${t}"]`):Lt(`[id="${t}"]`),p=i.db.getActors(),g=i.db.getCreatedActors(),m=i.db.getDestroyedActors(),y=i.db.getBoxes(),x=i.db.getActorKeys(),C=i.db.getMessages(),w=i.db.getDiagramTitle(),_=i.db.hasAtLeastOneBox(),S=i.db.hasAtLeastOneBoxWithTitle(),R=await Yst(p,C,i);if(rt.height=await Xst(p,R,y),vn.insertComputerIcon(d,t),vn.insertDatabaseIcon(d,t),vn.insertClockIcon(d,t),_&&(Ot.bumpVerticalPos(rt.boxMargin),S&&Ot.bumpVerticalPos(y[0].textMaxHeight)),rt.hideUnusedParticipants===!0){let X=new Set;C.forEach(J=>{X.add(J.from),X.add(J.to)}),x=x.filter(J=>X.has(J))}let b=new Map(x.map((X,J)=>{var H,te;return[(te=(H=p.get(X))==null?void 0:H.name)!=null?te:X,J]}));Qst(d,p,g,x,0,C,!1);let v=await oot(C,p,R,i);vn.insertArrowHead(d,t),vn.insertArrowCrossHead(d,t),vn.insertArrowFilledHead(d,t),vn.insertSequenceNumber(d,t),vn.insertSolidTopArrowHead(d,t),vn.insertSolidBottomArrowHead(d,t),vn.insertStickTopArrowHead(d,t),vn.insertStickBottomArrowHead(d,t),o==="neo"&&vn.insertDropShadow(d,rt);function k(X,J){let H=Ot.endActivation(X);H.starty+18>J&&(H.starty=J-6,J+=12),vn.drawActivation(d,H,J,rt,Ew(X.from).length,i,b),Ot.insert(H.startx,J-10,H.stopx,J)}f(k,"E"),s(k,"activeEnd");let E=1,A=1,I=[],$=[],O=0;for(let X of C){let J,H,te;switch(X.type){case i.db.LINETYPE.NOTE:Ot.resetVerticalPos(),H=X.noteModel,await Kst(d,H,X.id);break;case i.db.LINETYPE.ACTIVE_START:Ot.newActivation(X,d,p);break;case i.db.LINETYPE.CENTRAL_CONNECTION:Ot.newActivation(X,d,p);break;case i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Ot.newActivation(X,d,p);break;case i.db.LINETYPE.ACTIVE_END:k(X,Ot.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie));break;case i.db.LINETYPE.LOOP_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"loop",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;case i.db.LINETYPE.RECT_START:Qc(v,X,rt.boxMargin,rt.boxMargin,ie=>Ot.newLoop(void 0,ie.message));break;case i.db.LINETYPE.RECT_END:J=Ot.endLoop(),$.push(J),Ot.models.addLoop(J),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos());break;case i.db.LINETYPE.OPT_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie));break;case i.db.LINETYPE.OPT_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"opt",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;case i.db.LINETYPE.ALT_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie));break;case i.db.LINETYPE.ALT_ELSE:Qc(v,X,rt.boxMargin+rt.boxTextMargin,rt.boxMargin,ie=>Ot.addSectionToLoop(ie));break;case i.db.LINETYPE.ALT_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"alt",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie)),Ot.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:Qc(v,X,rt.boxMargin+rt.boxTextMargin,rt.boxMargin,ie=>Ot.addSectionToLoop(ie));break;case i.db.LINETYPE.PAR_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"par",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;case i.db.LINETYPE.AUTONUMBER:E=X.message.start||E,A=X.message.step||A,X.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie));break;case i.db.LINETYPE.CRITICAL_OPTION:Qc(v,X,rt.boxMargin+rt.boxTextMargin,rt.boxMargin,ie=>Ot.addSectionToLoop(ie));break;case i.db.LINETYPE.CRITICAL_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"critical",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;case i.db.LINETYPE.BREAK_START:Qc(v,X,rt.boxMargin,rt.boxMargin+rt.boxTextMargin,ie=>Ot.newLoop(ie));break;case i.db.LINETYPE.BREAK_END:J=Ot.endLoop(),await vn.drawLoop(d,J,"break",rt,X),Ot.bumpVerticalPos(J.stopy-Ot.getVerticalPos()),Ot.models.addLoop(J);break;default:try{te=X.msgModel,te.starty=Ot.getVerticalPos(),te.sequenceIndex=E,te.sequenceVisible=i.db.showSequenceNumbers(),te.id=X.id,te.from=X.from,te.to=X.to;let ie=await Wst(d,te);Hst(X,te,ie,O,p,g,m),I.push({messageModel:te,lineStartY:ie,msg:X}),Ot.models.addMessage(te)}catch(ie){ge.error("error while drawing message",ie)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.SOLID_TOP,i.db.LINETYPE.SOLID_BOTTOM,i.db.LINETYPE.STICK_TOP,i.db.LINETYPE.STICK_BOTTOM,i.db.LINETYPE.SOLID_TOP_DOTTED,i.db.LINETYPE.SOLID_BOTTOM_DOTTED,i.db.LINETYPE.STICK_TOP_DOTTED,i.db.LINETYPE.STICK_BOTTOM_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT,i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(X.type)&&(E=Math.round((E+A)*100)/100),O++}ge.debug("createdActors",g),ge.debug("destroyedActors",m),await MR(d,p,x,!1,t,i,b);for(let X of I)await Zst(d,X.messageModel,X.lineStartY,i,X.msg,t);rt.mirrorActors&&await MR(d,p,x,!0,t,i,b),$.forEach(X=>vn.drawBackgroundRect(d,X)),joe(d,p,x,rt);for(let X of Ot.models.boxes){X.height=Ot.getVerticalPos()-X.y,Ot.insert(X.x,X.y,X.x+X.width,X.height);let J=rt.boxMargin*2;X.startx=X.x-J,X.starty=X.y-J*.25,X.stopx=X.startx+X.width+2*J,X.stopy=X.starty+X.height+J*.75,X.stroke="rgb(0,0,0, 0.5)",vn.drawBox(d,X,rt)}_&&Ot.bumpVerticalPos(rt.boxMargin);let j=Woe(d,p,x,u),{bounds:D}=Ot.getBounds();D.startx===void 0&&(D.startx=0),D.starty===void 0&&(D.starty=0),D.stopx===void 0&&(D.stopx=0),D.stopy===void 0&&(D.stopy=0);let P=D.stopy-D.starty;P<j.maxHeight&&(P=j.maxHeight);let F=P+2*rt.diagramMarginY;rt.mirrorActors&&(F=F-rt.boxMargin+rt.bottomMarginAdj);let U=D.stopx-D.startx;U<j.maxWidth&&(U=j.maxWidth);let z=U+2*rt.diagramMarginX;w&&d.append("text").text(w).attr("x",(D.stopx-D.startx)/2-2*rt.diagramMarginX).attr("y",-25),Ta(d,F,z,rt.useMaxWidth);let V=w?40:0,W=p.size&&o==="neo"?30:0;d.attr("viewBox",D.startx-rt.diagramMarginX+" -"+(rt.diagramMarginY+V)+" "+z+" "+(F+V+W)),ge.debug("models:",Ot.models)},"draw"),s(Yst,"getMaxMessageWidthPerActor"),eot=s(function(e){let t=0,r=NR(rt);for(let i in e.links){let n=ri.calculateTextDimensions(i,r).width+2*rt.wrapPadding+2*rt.boxMargin;t<n&&(t=n)}return t},"getRequiredPopupWidth"),s(Xst,"calculateActorMargins"),tot=s(async function(e,t,r){let i=t.get(e.from),n=t.get(e.to),a=i.x,o=n.x,l=e.wrap&&e.message,h=ha(e.message)?await wm(e.message,Ue()):ri.calculateTextDimensions(l?ri.wrapLabel(e.message,rt.width,B1(rt)):e.message,B1(rt)),u={width:l?rt.width:Vt.getMax(rt.width,h.width+2*rt.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(u.width=l?Vt.getMax(rt.width,h.width):Vt.getMax(i.width/2+n.width/2,h.width+2*rt.noteMargin),u.startx=a+(i.width+rt.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(u.width=l?Vt.getMax(rt.width,h.width+2*rt.noteMargin):Vt.getMax(i.width/2+n.width/2,h.width+2*rt.noteMargin),u.startx=a-u.width+(i.width-rt.actorMargin)/2):e.to===e.from?(h=ri.calculateTextDimensions(l?ri.wrapLabel(e.message,Vt.getMax(rt.width,i.width),B1(rt)):e.message,B1(rt)),u.width=l?Vt.getMax(rt.width,i.width):Vt.getMax(i.width,rt.width,h.width+2*rt.noteMargin),u.startx=a+(i.width-u.width)/2):(u.width=Math.abs(a+i.width/2-(o+n.width/2))+rt.actorMargin,u.startx=a<o?a+i.width/2-rt.actorMargin/2:o+n.width/2-rt.actorMargin/2),l&&(u.message=ri.wrapLabel(e.message,u.width-2*rt.wrapPadding,B1(rt))),ge.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${e.message}]`),u},"buildNoteModel"),rot=4,iot=6,OR=s(function(e,t){let{CENTRAL_CONNECTION:r,CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:n}=t.db.LINETYPE;return[r,i,n].includes(e.centralConnection)},"hasCentralConnection"),not=s(function(e,t,r){let{CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:n,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,l=0;return(e.centralConnection===i||e.centralConnection===n)&&(l+=rot),(e.centralConnection===i||e.centralConnection===n)&&(e.type===a||e.type===o)&&(l+=r?0:-iot),l},"calculateCentralConnectionOffset"),Xoe=s(function(e,t){let{SOLID_ARROW_TOP_REVERSE:r,SOLID_ARROW_TOP_REVERSE_DOTTED:i,SOLID_ARROW_BOTTOM_REVERSE:n,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:l,STICK_ARROW_BOTTOM_REVERSE:h,STICK_ARROW_BOTTOM_REVERSE_DOTTED:u}=t.db.LINETYPE;return[r,i,n,a,o,l,h,u].includes(e.type)},"isReverseArrowType"),aot=s(function(e,t){let{BIDIRECTIONAL_SOLID:r,BIDIRECTIONAL_DOTTED:i}=t.db.LINETYPE;return[r,i].includes(e.type)},"isBidirectionalArrowType"),sot=s(function(e,t,r){let{look:i}=Ue();if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[n,a]=Yoe(e.from,t),[o,l]=Yoe(e.to,t),h=n<=o,u=h?a:n,d=h?o:l;i==="neo"&&(e.type!==r.db.LINETYPE.SOLID_OPEN&&(d+=h?-3:3),(e.type===r.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(u+=h?3:-3)),u+=not(e,r,h);let p=Math.abs(o-l)>2,g=s(C=>h?-C:C,"adjustValue");e.from===e.to?d=u:(e.activate&&!p&&(d+=g(rt.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=g(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=g(3)));let m=[n,a,o,l],y=Math.abs(u-d);e.wrap&&e.message&&(e.message=ri.wrapLabel(e.message,Vt.getMax(y+2*rt.wrapPadding,rt.width),Z0(rt)));let x=ri.calculateTextDimensions(e.message,Z0(rt));return{width:Vt.getMax(e.wrap?0:x.width+2*rt.wrapPadding,y+2*rt.wrapPadding,rt.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},"buildMessageModel"),oot=s(async function(e,t,r,i){let n={},a=[],o,l,h;for(let u of e){switch(u.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:a.push({id:u.id,msg:u.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:u.message&&(o=a.pop(),n[o.id]=o,n[u.id]=o,a.push(o));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:o=a.pop(),n[o.id]=o;break;case i.db.LINETYPE.ACTIVE_START:{let d=t.get(u.from?u.from:u.to.actor),p=Ew(u.from?u.from:u.to.actor).length,g=d.x+d.width/2+(p-1)*rt.activationWidth/2,m={startx:g,stopx:g+rt.activationWidth,actor:u.from,enabled:!0};Ot.activations.push(m)}break;case i.db.LINETYPE.ACTIVE_END:{let d=Ot.activations.map(p=>p.actor).lastIndexOf(u.from);Ot.activations.splice(d,1).splice(0,1)}break}u.placement!==void 0?(l=await tot(u,t,i),u.noteModel=l,a.forEach(d=>{o=d,o.from=Vt.getMin(o.from,l.startx),o.to=Vt.getMax(o.to,l.startx+l.width),o.width=Vt.getMax(o.width,Math.abs(o.from-o.to))-rt.labelBoxWidth})):(h=sot(u,t,i),u.msgModel=h,h.startx&&h.stopx&&a.length>0&&a.forEach(d=>{if(o=d,h.startx===h.stopx){let p=t.get(u.from),g=t.get(u.to);o.from=Vt.getMin(p.x-h.width/2,p.x-p.width/2,o.from),o.to=Vt.getMax(g.x+h.width/2,g.x+p.width/2,o.to),o.width=Vt.getMax(o.width,Math.abs(o.to-o.from))-rt.labelBoxWidth}else o.from=Vt.getMin(h.startx,o.from),o.to=Vt.getMax(h.stopx,o.to),o.width=Vt.getMax(o.width,h.width)-rt.labelBoxWidth}))}return Ot.activations=[],ge.debug("Loop type widths:",n),n},"calculateLoopBounds"),lot={bounds:Ot,drawActors:MR,drawActorsPopup:Woe,setConf:Hoe,draw:Jst}}),cot={};Jr(cot,{diagram:f(()=>hot,"diagram")});var hot,Vwt=Y(()=>{"use strict";qwt(),fst(),jwt(),vr(),Uwt(),hot={parser:hst,get db(){return new gst},renderer:lot,styles:yst,init:s(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,f6({sequence:{wrap:e.wrap}}))},"init")}}),$R,Koe,uot=Y(()=>{"use strict";$R=(function(){var e=s(function(kt,Le,lt,ve){for(lt=lt||{},ve=kt.length;ve--;lt[kt[ve]]=Le);return lt},"o"),t=[1,18],r=[1,19],i=[1,20],n=[1,41],a=[1,26],o=[1,42],l=[1,24],h=[1,25],u=[1,32],d=[1,33],p=[1,34],g=[1,45],m=[1,35],y=[1,36],x=[1,37],C=[1,38],w=[1,27],_=[1,28],S=[1,29],R=[1,30],b=[1,31],v=[1,44],k=[1,46],E=[1,43],A=[1,47],I=[1,9],$=[1,8,9],O=[1,58],j=[1,59],D=[1,60],P=[1,61],F=[1,62],U=[1,63],z=[1,64],V=[1,8,9,41],W=[1,77],X=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],J=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],H=[13,60,86,100,102,103],te=[13,60,73,74,86,100,102,103],ie=[13,60,68,69,70,71,72,86,100,102,103],oe=[1,103],he=[1,12
vendor: 13,076 bytes, line 1987
19871],pe=[1,117],se=[1,113],le=[1,119],ue=[1,114],de=[1,115],we=[1,116],De=[1,118],Ge=[1,120],be=[22,50,60,61,82,86,87,88,89,90],qe=[1,128],Ie=[12,39],Be=[1,8,9,39,41,44,46],ke=[1,8,9,22],Qe=[1,153],Pe=[1,8,9,61],ht=[1,8,9,22,50,60,61,82,86,87,88,89,90],Xe={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:s(function(kt,Le,lt,ve,tt,Q,xe){var ae=Q.length-1;switch(tt){case 8:this.$=Q[ae-1];break;case 9:case 10:case 13:case 15:this.$=Q[ae];break;case 11:case 14:this.$=Q[ae-2]+"."+Q[ae];break;case 12:case 16:this.$=Q[ae-1]+Q[ae];break;case 17:case 18:this.$=Q[ae-1]+"~"+Q[ae]+"~";break;case 19:ve.addRelation(Q[ae]);break;case 20:Q[ae-1].title=ve.cleanupLabel(Q[ae]),ve.addRelation(Q[ae-1]);break;case 31:this.$=Q[ae].trim(),ve.setAccTitle(this.$);break;case 32:case 33:this.$=Q[ae].trim(),ve.setAccDescription(this.$);break;case 34:ve.addClassesToNamespace(Q[ae-3],Q[ae-1][0],Q[ae-1][1]),ve.popNamespace();break;case 35:ve.addClassesToNamespace(Q[ae-4],Q[ae-1][0],Q[ae-1][1]),ve.popNamespace();break;case 36:this.$=ve.addNamespace(Q[ae]);break;case 37:this.$=ve.addNamespace(Q[ae-1],Q[ae]);break;case 38:this.$=[[Q[ae]],[]];break;case 39:this.$=[[Q[ae-1]],[]];break;case 40:Q[ae][0].unshift(Q[ae-2]),this.$=Q[ae];break;case 41:this.$=[[],[Q[ae]]];break;case 42:this.$=[[],[Q[ae-1]]];break;case 43:Q[ae][1].unshift(Q[ae-2]),this.$=Q[ae];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=Q[ae];break;case 48:ve.setCssClass(Q[ae-2],Q[ae]);break;case 49:ve.addMembers(Q[ae-3],Q[ae-1]);break;case 51:ve.setCssClass(Q[ae-5],Q[ae-3]),ve.addMembers(Q[ae-5],Q[ae-1]);break;case 52:ve.addAnnotation(Q[ae-3],Q[ae-1]);break;case 53:ve.addAnnotation(Q[ae-6],Q[ae-4]),ve.addMembers(Q[ae-6],Q[ae-1]);break;case 54:ve.addAnnotation(Q[ae-5],Q[ae-3]);break;case 55:this.$=Q[ae],ve.addClass(Q[ae]);break;case 56:this.$=Q[ae-1],ve.addClass(Q[ae-1]),ve.setClassLabel(Q[ae-1],Q[ae]);break;case 60:ve.addAnnotation(Q[ae],Q[ae-2]);break;case 61:case 74:this.$=[Q[ae]];break;case 62:Q[ae].push(Q[ae-1]),this.$=Q[ae];break;case 63:break;case 64:ve.addMember(Q[ae-1],ve.cleanupLabel(Q[ae]));break;case 65:break;case 66:break;case 67:this.$={id1:Q[ae-2],id2:Q[ae],relation:Q[ae-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:Q[ae-3],id2:Q[ae],relation:Q[ae-1],relationTitle1:Q[ae-2],relationTitle2:"none"};break;case 69:this.$={id1:Q[ae-3],id2:Q[ae],relation:Q[ae-2],relationTitle1:"none",relationTitle2:Q[ae-1]};break;case 70:this.$={id1:Q[ae-4],id2:Q[ae],relation:Q[ae-2],relationTitle1:Q[ae-3],relationTitle2:Q[ae-1]};break;case 71:this.$=ve.addNote(Q[ae],Q[ae-1]);break;case 72:this.$=ve.addNote(Q[ae]);break;case 73:this.$=Q[ae-2],ve.defineClass(Q[ae-1],Q[ae]);break;case 75:this.$=Q[ae-2].concat([Q[ae]]);break;case 76:ve.setDirection("TB");break;case 77:ve.setDirection("BT");break;case 78:ve.setDirection("RL");break;case 79:ve.setDirection("LR");break;case 80:this.$={type1:Q[ae-2],type2:Q[ae],lineType:Q[ae-1]};break;case 81:this.$={type1:"none",type2:Q[ae],lineType:Q[ae-1]};break;case 82:this.$={type1:Q[ae-1],type2:"none",lineType:Q[ae]};break;case 83:this.$={type1:"none",type2:"none",lineType:Q[ae]};break;case 84:this.$=ve.relationType.AGGREGATION;break;case 85:this.$=ve.relationType.EXTENSION;break;case 86:this.$=ve.relationType.COMPOSITION;break;case 87:this.$=ve.relationType.DEPENDENCY;break;case 88:this.$=ve.relationType.LOLLIPOP;break;case 89:this.$=ve.lineType.LINE;break;case 90:this.$=ve.lineType.DOTTED_LINE;break;case 91:case 97:this.$=Q[ae-2],ve.setClickEvent(Q[ae-1],Q[ae]);break;case 92:case 98:this.$=Q[ae-3],ve.setClickEvent(Q[ae-2],Q[ae-1]),ve.setTooltip(Q[ae-2],Q[ae]);break;case 93:this.$=Q[ae-2],ve.setLink(Q[ae-1],Q[ae]);break;case 94:this.$=Q[ae-3],ve.setLink(Q[ae-2],Q[ae-1],Q[ae]);break;case 95:this.$=Q[ae-3],ve.setLink(Q[ae-2],Q[ae-1]),ve.setTooltip(Q[ae-2],Q[ae]);break;case 96:this.$=Q[ae-4],ve.setLink(Q[ae-3],Q[ae-2],Q[ae]),ve.setTooltip(Q[ae-3],Q[ae-1]);break;case 99:this.$=Q[ae-3],ve.setClickEvent(Q[ae-2],Q[ae-1],Q[ae]);break;case 100:this.$=Q[ae-4],ve.setClickEvent(Q[ae-3],Q[ae-2],Q[ae-1]),ve.setTooltip(Q[ae-3],Q[ae]);break;case 101:this.$=Q[ae-3],ve.setLink(Q[ae-2],Q[ae]);break;case 102:this.$=Q[ae-4],ve.setLink(Q[ae-3],Q[ae-1],Q[ae]);break;case 103:this.$=Q[ae-4],ve.setLink(Q[ae-3],Q[ae-1]),ve.setTooltip(Q[ae-3],Q[ae]);break;case 104:this.$=Q[ae-5],ve.setLink(Q[ae-4],Q[ae-2],Q[ae]),ve.setTooltip(Q[ae-4],Q[ae-1]);break;case 105:this.$=Q[ae-2],ve.setCssStyle(Q[ae-1],Q[ae]);break;case 106:ve.setCssClass(Q[ae-1],Q[ae]);break;case 107:this.$=[Q[ae]];break;case 108:Q[ae-2].push(Q[ae]),this.$=Q[ae-2];break;case 110:this.$=Q[ae-1]+Q[ae];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:i,38:22,42:n,43:23,46:a,48:o,51:l,52:h,54:u,56:d,57:p,60:g,62:m,63:y,64:x,65:C,75:w,76:_,78:S,82:R,83:b,86:v,100:k,102:E,103:A},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(I,[2,5],{8:[1,48]}),{8:[1,49]},e($,[2,19],{22:[1,50]}),e($,[2,21]),e($,[2,22]),e($,[2,23]),e($,[2,24]),e($,[2,25]),e($,[2,26]),e($,[2,27]),e($,[2,28]),e($,[2,29]),e($,[2,30]),{34:[1,51]},{36:[1,52]},e($,[2,33]),e($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:O,69:j,70:D,71:P,72:F,73:U,74:z}),{39:[1,65]},e(V,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e($,[2,65]),e($,[2,66]),{16:69,60:g,86:v,100:k,102:E},{16:39,17:40,19:70,60:g,86:v,100:k,102:E,103:A},{16:39,17:40,19:71,60:g,86:v,100:k,102:E,103:A},{16:39,17:40,19:72,60:g,86:v,100:k,102:E,103:A},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:v,100:k,102:E,103:A},{13:W,55:76},{58:78,60:[1,79]},e($,[2,76]),e($,[2,77]),e($,[2,78]),e($,[2,79]),e(X,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:v,100:k,102:E,103:A}),e(X,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:v,100:k,102:E,103:A},{16:39,17:40,19:87,60:g,86:v,100:k,102:E,103:A},e(J,[2,133]),e(J,[2,134]),e(J,[2,135]),e(J,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(I,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:r,37:i,42:n,46:a,48:o,51:l,52:h,54:u,56:d,57:p,60:g,62:m,63:y,64:x,65:C,75:w,76:_,78:S,82:R,83:b,86:v,100:k,102:E,103:A}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:i,38:22,42:n,43:23,46:a,48:o,51:l,52:h,54:u,56:d,57:p,60:g,62:m,63:y,64:x,65:C,75:w,76:_,78:S,82:R,83:b,86:v,100:k,102:E,103:A},e($,[2,20]),e($,[2,31]),e($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:v,100:k,102:E,103:A},{53:92,66:56,67:57,68:O,69:j,70:D,71:P,72:F,73:U,74:z},e($,[2,64]),{67:93,73:U,74:z},e(H,[2,83],{66:94,68:O,69:j,70:D,71:P,72:F}),e(te,[2,84]),e(te,[2,85]),e(te,[2,86]),e(te,[2,87]),e(te,[2,88]),e(ie,[2,89]),e(ie,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:o,54:u,56:d},{16:100,60:g,86:v,100:k,102:E},{41:[1,102],45:101,51:oe},{16:104,60:g,86:v,100:k,102:E},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:he,50:pe,59:110,60:se,82:le,84:111,85:112,86:ue,87:de,88:we,89:De,90:Ge},{60:[1,122]},{13:W,55:123},e(V,[2,72]),e(V,[2,138]),{22:he,50:pe,59:124,60:se,61:[1,125],82:le,84:111,85:112,86:ue,87:de,88:we,89:De,90:Ge},e(be,[2,74]),{16:39,17:40,19:126,60:g,86:v,100:k,102:E,103:A},e(X,[2,16]),e(X,[2,17]),e(X,[2,18]),{11:127,12:qe,39:[2,36]},e(Ie,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:v,100:k,102:E,103:A}),e(Ie,[2,10]),e(Be,[2,55],{11:131,12:qe}),e(I,[2,7]),{9:[1,132]},e(ke,[2,67]),{16:39,17:40,19:133,60:g,86:v,100:k,102:E,103:A},{13:[1,135],16:39,17:40,19:134,60:g,86:v,100:k,102:E,103:A},e(H,[2,82],{66:136,68:O,69:j,70:D,71:P,72:F}),e(H,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(V,[2,48],{39:[1,142]}),{41:[1,143]},e(V,[2,50]),{41:[2,61],45:144,51:oe},{47:[1,145]},{16:39,17:40,19:146,60:g,86:v,100:k,102:E,103:A},e($,[2,91],{13:[1,147]}),e($,[2,93],{13:[1,149],77:[1,148]}),e($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e($,[2,105],{61:Qe}),e(Pe,[2,107],{85:154,22:he,50:pe,60:se,82:le,86:ue,87:de,88:we,89:De,90:Ge}),e(ht,[2,109]),e(ht,[2,111]),e(ht,[2,112]),e(ht,[2,113]),e(ht,[2,114]),e(ht,[2,115]),e(ht,[2,116]),e(ht,[2,117]),e(ht,[2,118]),e(ht,[2,119]),e($,[2,106]),e(V,[2,71]),e($,[2,73],{61:Qe}),{60:[1,155]},e(X,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:v,100:k,102:E,103:A},e(Ie,[2,12]),e(Be,[2,56]),{1:[2,4]},e(ke,[2,69]),e(ke,[2,68]),{16:39,17:40,19:158,60:g,86:v,100:k,102:E,103:A},e(H,[2,80]),e(V,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:o,54:u,56:d},{45:163,51:oe},e(V,[2,49]),{41:[2,62]},e(V,[2,52],{39:[1,164]}),e($,[2,60]),e($,[2,92]),e($,[2,94]),e($,[2,95],{77:[1,165]}),e($,[2,98]),e($,[2,99],{13:[1,166]}),e($,[2,101],{13:[1,168],77:[1,167]}),{22:he,50:pe,60:se,82:le,84:169,85:112,86:ue,87:de,88:we,89:De,90:Ge},e(ht,[2,110]),e(be,[2,75]),{14:[1,170]},e(Ie,[2,11]),e(ke,[2,70]),e(V,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:oe},e($,[2,96]),e($,[2,100]),e($,[2,102]),e($,[2,103],{77:[1,174]}),e(Pe,[2,108],{85:154,22:he,50:pe,60:se,82:le,86:ue,87:de,88:we,89:De,90:Ge}),e(Be,[2,8]),e(V,[2,51]),{41:[1,175]},e(V,[2,54]),e($,[2,104]),e(V,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:s(function(kt,Le){if(Le.recoverable)this.trace(kt);else{var lt=new Error(kt);throw lt.hash=Le,lt}},"parseError"),parse:s(function(kt){var Le=this,lt=[0],ve=[],tt=[null],Q=[],xe=this.table,ae="",_e=0,Se=0,Je=0,Re=2,et=1,ze=Q.slice.call(arguments,1
vendor: 8,407 bytes, lines 1987-1992
1987),Ke=Object.create(this.lexer),We={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(We.yy[nt]=this.yy[nt]);Ke.setInput(kt,We.yy),We.yy.lexer=Ke,We.yy.parser=this,typeof Ke.yylloc>"u"&&(Ke.yylloc={});var Te=Ke.yylloc;Q.push(Te);var bt=Ke.options&&Ke.options.ranges;typeof We.yy.parseError=="function"?this.parseError=We.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(qt){lt.length=lt.length-2*qt,tt.length=tt.length-qt,Q.length=Q.length-qt}f(Ae,"me"),s(Ae,"popStack");function ft(){var qt;return qt=ve.pop()||Ke.lex()||et,typeof qt!="number"&&(qt instanceof Array&&(ve=qt,qt=ve.pop()),qt=Le.symbols_[qt]||qt),qt}f(ft,"ot"),s(ft,"lex");for(var Nt,Wt,Ht,Ft,Qt,Dt,Mt={},$t,At,Kt,rr;;){if(Ht=lt[lt.length-1],this.defaultActions[Ht]?Ft=this.defaultActions[Ht]:((Nt===null||typeof Nt>"u")&&(Nt=ft()),Ft=xe[Ht]&&xe[Ht][Nt]),typeof Ft>"u"||!Ft.length||!Ft[0]){var ei="";rr=[];for($t in xe[Ht])this.terminals_[$t]&&$t>Re&&rr.push("'"+this.terminals_[$t]+"'");Ke.showPosition?ei="Parse error on line "+(_e+1)+`: 1988`+Ke.showPosition()+` 1989Expecting `+rr.join(", ")+", got '"+(this.terminals_[Nt]||Nt)+"'":ei="Parse error on line "+(_e+1)+": Unexpected "+(Nt==et?"end of input":"'"+(this.terminals_[Nt]||Nt)+"'"),this.parseError(ei,{text:Ke.match,token:this.terminals_[Nt]||Nt,line:Ke.yylineno,loc:Te,expected:rr})}if(Ft[0]instanceof Array&&Ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ht+", token: "+Nt);switch(Ft[0]){case 1:lt.push(Nt),tt.push(Ke.yytext),Q.push(Ke.yylloc),lt.push(Ft[1]),Nt=null,Wt?(Nt=Wt,Wt=null):(Se=Ke.yyleng,ae=Ke.yytext,_e=Ke.yylineno,Te=Ke.yylloc,Je>0&&Je--);break;case 2:if(At=this.productions_[Ft[1]][1],Mt.$=tt[tt.length-At],Mt._$={first_line:Q[Q.length-(At||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(At||1)].first_column,last_column:Q[Q.length-1].last_column},bt&&(Mt._$.range=[Q[Q.length-(At||1)].range[0],Q[Q.length-1].range[1]]),Dt=this.performAction.apply(Mt,[ae,Se,_e,We.yy,Ft[1],tt,Q].concat(ze)),typeof Dt<"u")return Dt;At&&(lt=lt.slice(0,-1*At*2),tt=tt.slice(0,-1*At),Q=Q.slice(0,-1*At)),lt.push(this.productions_[Ft[1]][0]),tt.push(Mt.$),Q.push(Mt._$),Kt=xe[lt[lt.length-2]][lt[lt.length-1]],lt.push(Kt);break;case 3:return!0}}return!0},"parse")},dt=(function(){var kt={EOF:1,parseError:s(function(Le,lt){if(this.yy.parser)this.yy.parser.parseError(Le,lt);else throw new Error(Le)},"parseError"),setInput:s(function(Le,lt){return this.yy=lt||this.yy||{},this._input=Le,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 Le=this._input[0];this.yytext+=Le,this.yyleng++,this.offset++,this.match+=Le,this.matched+=Le;var lt=Le.match(/(?:\r\n?|\n).*/g);return lt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Le},"input"),unput:s(function(Le){var lt=Le.length,ve=Le.split(/(?:\r\n?|\n)/g);this._input=Le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-lt),this.offset-=lt;var tt=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),ve.length-1&&(this.yylineno-=ve.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:ve?(ve.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-ve.length].length-ve[0].length:this.yylloc.first_column-lt},this.options.ranges&&(this.yylloc.range=[Q[0],Q[0]+this.yyleng-lt]),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). 1990`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(Le){this.unput(this.match.slice(Le))},"less"),pastInput:s(function(){var Le=this.matched.substr(0,this.matched.length-this.match.length);return(Le.length>20?"...":"")+Le.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var Le=this.match;return Le.length<20&&(Le+=this._input.substr(0,20-Le.length)),(Le.substr(0,20)+(Le.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var Le=this.pastInput(),lt=new Array(Le.length+1).join("-");return Le+this.upcomingInput()+` 1991`+lt+"^"},"showPosition"),test_match:s(function(Le,lt){var ve,tt,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))),tt=Le[0].match(/(?:\r\n?|\n).*/g),tt&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Le[0].length},this.yytext+=Le[0],this.match+=Le[0],this.matches=Le,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(Le[0].length),this.matched+=Le[0],ve=this.performAction.call(this,this.yy,this,lt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ve)return ve;if(this._backtrack){for(var xe in Q)this[xe]=Q[xe];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Le,lt,ve,tt;this._more||(this.yytext="",this.match="");for(var Q=this._currentRules(),xe=0;xe<Q.length;xe++)if(ve=this._input.match(this.rules[Q[xe]]),ve&&(!lt||ve[0].length>lt[0].length)){if(lt=ve,tt=xe,this.options.backtrack_lexer){if(Le=this.test_match(ve,Q[xe]),Le!==!1)return Le;if(this._backtrack){lt=!1;continue}else return!1}else if(!this.options.flex)break}return lt?(Le=this.test_match(lt,Q[tt]),Le!==!1?Le:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 1992`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var Le=this.next();return Le||this.lex()},"lex"),begin:s(function(Le){this.conditionStack.push(Le)},"begin"),popState:s(function(){var Le=this.conditionStack.length-1;return Le>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(Le){return Le=this.conditionStack.length-1-Math.abs(Le||0),Le>=0?this.conditionStack[Le]:"INITIAL"},"topState"),pushState:s(function(Le){this.begin(Le)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:s(function(Le,lt,ve,tt){var Q=tt;switch(ve){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";
vendor: 4,369 bytes, line 1992
1992case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-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
1992]|[\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])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return kt})();Xe.lexer=dt;function at(){this.yy={}}return f(at,"at"),s(at,"Parser"),at.prototype=Xe,Xe.Parser=at,new at})(),$R.parser=$R,Koe=$R}),Zoe,Qoe,Wwt=Y(()=>{"use strict";var e;vr(),gi(),Zoe=["#","+","~","-",""],Qoe=(e=class{constructor(r,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";let n=Ei(r,Ue());this.parseMember(n)}
vendor: 4,302 bytes, line 1992
1992getDisplayDetails(){let r=this.visibility+$u(this.id);this.memberType==="method"&&(r+=`(${$u(this.parameters.trim())})`,this.returnType&&(r+=" : "+$u(this.returnType))),r=r.trim();let i=this.parseClassifier();return{displayText:r,cssStyle:i}}parseMember(r){let i="";if(this.memberType==="method"){let a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(r);if(a){let o=a[1]?a[1].trim():"";if(Zoe.includes(o)&&(this.visibility=o),this.id=a[2],this.parameters=a[3]?a[3].trim():"",i=a[4]?a[4].trim():"",this.returnType=a[5]?a[5].trim():"",i===""){let l=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(l)&&(i=l,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let a=r.length,o=r.substring(0,1),l=r.substring(a-1);Zoe.includes(o)&&(this.visibility=o),/[$*]/.exec(l)&&(i=l),this.id=r.substring(this.visibility===""?0:1,i===""?a:a-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${$u(this.id)}${this.memberType==="method"?`(${$u(this.parameters)})${this.returnType?" : "+$u(this.returnType):""}`:""}`;this.text=n.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},f(e,"ZT"),s(e,"ClassMember"),e)}),Sw,Joe,Q0,ele,dot=Y(()=>{"use strict";var e;ui(),jt(),vr(),gi(),wr(),En(),Km(),Wwt(),mC(),Sw="classId-",Joe=0,Q0=s(t=>Vt.sanitizeText(t,Ue()),"sanitizeText"),ele=(e=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=s(r=>{let i=hB();Lt(r).select("svg").selectAll("g").filter(function(){return Lt(this).attr("title")!==null}).on("mouseover",n=>{let a=Lt(n.currentTarget),o=a.attr("title");if(!o)return;let l=n.currentTarget.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.html(Au.sanitize(o)).style("left",`${window.scrollX+l.left+l.width/2}px`).style("top",`${window.scrollY+l.bottom+4}px`),a.classed("hover",!0)}).on("mouseout",n=>{i.transition().duration(500).style("opacity",0),Lt(n.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=wn,this.getAccTitle=Pn,this.setAccDescription=Fn,this.getAccDescription=zn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getConfig=s(()=>Ue().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(r){let i=Vt.sanitizeText(r,Ue()),n="",a=i;if(i.indexOf("~")>0){let o=i.split("~");a=Q0(o[0]),n=Q0(o[1])}return{className:a,type:n}}setClassLabel(r,i){let n=Vt.sanitizeText(r,Ue());i&&(i=Q0(i));let{className:a}=this.splitClassNameAndType(n);this.classes.get(a).label=i,this.classes.get(a).text=`${i}${this.classes.get(a).type?`<${this.classes.get(a).type}>`:""}`}addClass(r){let i=Vt.sanitizeText(r,Ue()),{className:n,type:a}=this.splitClassNameAndType(i);if(this.classes.has(n))return;let o=Vt.sanitizeText(n,Ue());this.classes.set(o,{id:o,type:a,label:o,text:`${o}${a?`<${a}>`:""}
1992`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Sw+o+"-"+Joe}),Joe++}addInterface(r,i){let n={id:`interface${this.interfaces.length}`,label:r,classId:i};this.interfaces.push(n)}setDiagramId(r){this.diagramId=r}lookUpDomId(r){let i=Vt.sanitizeText(r,Ue());if(this.classes.has(i)){let n=this.classes.get(i).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+i)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Tn()}getClass(r){return this.classes.get(r)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(r){let i=typeof r=="number"?`note${r}`:r;return this.notes.get(i)}getNotes(){return this.notes}addRelation(r){ge.debug("Adding relation: "+JSON.stringify(r));let i=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];r.relation.type1===this.relationType.LOLLIPOP&&!i.includes(r.relation.type2)?(this.addClass(r.id2),this.addInterface(r.id1,r.id2),r.id1=`interface${this.interfaces.length-1}`):r.relation.type2===this.relationType.LOLLIPOP&&!i.includes(r.relation.type1)?(this.addClass(r.id1),this.addInterface(r.id2,r.id1),r.id2=`interface${this.interfaces.length-1}`):(this.addClass(r.id1),this.addClass(r.id2)),r.id1=this.splitClassNameAndType(r.id1).className,r.id2=this.splitClassNameAndType(r.id2).className,r.relationTitle1=Vt.sanitizeText(r.relationTitle1.trim(),Ue()),r.relationTitle2=Vt.sanitizeText(r.relationTitle2.trim(),Ue()),this.relations.push(r)}addAnnotation(r,i){let n=this.splitClassNameAndType(r).className;this.classes.get(n).annotations.push(i)}addMember(r,i){this.addClass(r);let n=this.splitClassNameAndType(r).className,a=this.classes.get(n);if(typeof i=="string"){let o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?a.annotations.push(Q0(o.substring(2,o.length-2))):o.indexOf(")")>0?a.methods.push(new Qoe(o,"method")):o&&a.members.push(new Qoe(o,"attribute"))}}
vendor: 1,754 bytes, line 1992
1992addMembers(r,i){Array.isArray(i)&&(i.reverse(),i.forEach(n=>this.addMember(r,n)))}addNote(r,i){let n=this.notes.size,a={id:`note${n}`,class:i,text:r,index:n};return this.notes.set(a.id,a),a.id}cleanupLabel(r){return r.startsWith(":")&&(r=r.substring(1)),Q0(r.trim())}setCssClass(r,i){r.split(",").forEach(n=>{let a=n;/\d/.exec(n[0])&&(a=Sw+a);let o=this.classes.get(a);o&&(o.cssClasses+=" "+i)})}defineClass(r,i){for(let n of r){let a=this.styleClasses.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,a)),i&&i.forEach(o=>{if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(n)&&o.styles.push(...i.flatMap(l=>l.split(",")))})}}setTooltip(r,i){r.split(",").forEach(n=>{i!==void 0&&(this.classes.get(n).tooltip=Q0(i))})}getTooltip(r,i){return i&&this.namespaces.has(i)?this.namespaces.get(i).classes.get(r).tooltip:this.classes.get(r).tooltip}setLink(r,i,n){let a=Ue();r.split(",").forEach(o=>{let l=o;/\d/.exec(o[0])&&(l=Sw+l);let h=this.classes.get(l);h&&(h.link=ri.formatUrl(i,a),a.securityLevel==="sandbox"?h.linkTarget="_top":typeof n=="string"?h.linkTarget=Q0(n):h.linkTarget="_blank")}),this.setCssClass(r,"clickable")}setClickEvent(r,i,n){r.split(",").forEach(a=>{this.setClickFunc(a,i,n),this.classes.get(a).haveCallback=!0}),this.setCssClass(r,"clickable")}setClickFunc(r,i,n){let a=Vt.sanitizeText(r,Ue());if(Ue().securityLevel!=="loose"||i===void 0)return;let o=a;if(this.classes.has(o)){let l=[];if(typeof n=="string"){l=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<l.length;h++){let u=l[h].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),l[h]=u}}l.length===0&&l.push(o),this.functions.push(()=>
1992{let h=this.lookUpDomId(o),u=document.querySelector(`[id="${h}"]`);u!==null&&u.addEventListener("click",()=>{ri.runFunc(i,...l)},!1)})}}bindFunctions(r){this.functions.forEach(i=>{i(r)})}escapeHtml(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(r){this.direction=r}static resolveQualifiedId(r,i){let n=i.at(-1);return n?`${n}.${r}`:r}static getAncestorIds(r){let i=r.split("."),n=new Array(i.length);n[0]=i[0];for(let a=1;a<i.length;a++)n[a]=`${n[a-1]}.${i[a]}`;return n}createNamespaceNode(r,i,n,a=!1){return{id:r,label:i,classes:new Map,notes:new Map,children:new Map,domId:Sw+r+"-"+this.namespaceCounter++,parent:n,explicit:a}}linkParentChild(r,i){var o;let n=this.namespaces.get(r),a=this.namespaces.get(i);!n||!a||(n.children.has(i)||n.children.set(i,a),(o=a.parent)!=null||(a.parent=r))}addNamespace(r,i){let n=e.resolveQualifiedId(r,this.namespaceStack);if(this.namespaceStack.push(n),this.namespaces.has(n)){let l=this.namespaces.get(n);return l.explicit=!0,i&&(l.label=i),n}let a=n.split("."),o=e.getAncestorIds(n);for(let l=0;l<o.length;l++){let h=o[l],u=l>0?o[l-1]:void 0,d=l===o.length-1,p=d&&i?i:a[l];this.namespaces.has(h)?d&&(this.namespaces.get(h).explicit=!0):this.namespaces.set(h,this.createNamespaceNode(h,p,u,d)),u&&this.linkParentChild(u,h)}return n}popNamespace(){this.namespaceStack.pop()}getNamespace(r){return this.namespaces.get(r)}getNamespaces(){return this.namespaces}addClassesToNamespace(r,i,n){if(this.namespaces.has(r)){for(let a of i){let{className:o}=this.splitClassNameAndType(a),l=this.getClass(o);l.parent=r,this.namespaces.get(r).classes.set(o,l)}for(let a of n){let o=this.getNote(a);o.parent=r,this.namespaces.get(r).notes.set(a,o)}}}setCssStyle(r,i){let n=this.classes.get(r);if(!(!i||!n))for(let a of i)a.includes(",")?n.styles.push(...a.split(",")):n.styles.push(a)}getArrowMarker(r){let i;switch(r){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}resolveExplicitAncestor(r){let i=r;for(;i;){let n=this.namespaces.get(i);if(!n)return;if(n.explicit)return i;i=n.parent}}getData(){var l,h,u,d,p;let r=[],i=[],n=Ue(),a=(h=(l=n.class)==null?void 0:l.hierarchicalNamespaces)!=null?h:!0;for(let g of this.namespaces.values()){if(!a&&!g.explicit)continue;let m={id:g.id,label:a?g.label:g.id,isGroup:!0,padding:(u=n.class.padding)!=null?u:16,shape:"rect",cssStyles:[],look:n.look,parentId:a?g.parent:void 0};r.push(m)}for(let g of this.classes.values()){let m=a?g.parent:this.resolveExplicitAncestor(g.parent),y=_r(Tt({},g),{type:void 0,isGroup:!1,parentId:m,look:n.look});r.push(y)}for(let g of this.notes.values()){let m=a?g.parent:this.resolveExplicitAncestor(g.parent),y={id:g.id,label:g.text,isGroup:!1,shape:"note",padding:(d=n.class.padding)!=null?d:6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:m,labelType:"markdown"};r.push(y);let x=(p=this.classes.get(g.class))==null?void 0:p.id;if(x){let C={id:`edgeNote${g.index}`,start:g.id,end:x,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};i.push(C)}}for(let g of this.interfaces){let m={id:g.id,label:g.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};r.push(m)}let o=0;for(let g of this.relations){o++;let m={id:Dg(g.id1,g.id2,{prefix:"id",counter:o}),start:g.id1,end:g.id2,type:"normal",label:g.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(g.relation.type1),arrowTypeEnd:this.getArrowMarker(g.relation.type2),startLabelRight:g.relationTitle1==="none"?"":g.relationTitle1,endLabelLeft:g.relationTitle2==="none"?"":g.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:g.style||"",pattern:g.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};i.push(m)}return{nodes:r,edges:i,other:{},config:n,direction:this.getDirection()}}},f(e,"e"),s(e,"ClassDB"),e)}),pot,tle,got=Y(()=>{"use strict";Sk(),pot=s(e=>`g.classGroup text { 1993 fill: ${e.nodeBorder||e.classText}; 1994 stroke: none; 1995 font-family: ${e.fontFamily}; 1996 font-size: 10px; 1997 1998 .title { 1999 font-weight: bolder; 2000 } 2001 2002} 2003 2004 .cluster-label text { 2005 fill: ${e.titleColor}; 2006 } 2007 .cluster-label span { 2008 color: ${e.titleColor}; 2009 } 2010 .cluster-label span p { 2011 background-color: transparent; 2012 } 2013 2014 .cluster rect { 2015 fill: ${e.clusterBkg}; 2016 stroke: ${e.clusterBorder}; 2017 stroke-width: 1px; 2018 } 2019 2020 .cluster text { 2021 fill: ${e.titleColor}; 2022 } 2023 2024 .cluster span { 2025 color: ${e.titleColor}; 2026 } 2027 2028.nodeLabel, .edgeLabel { 2029 color: ${e.classText}; 2030} 2031 2032.noteLabel .nodeLabel, .noteLabel .edgeLabel { 2033 color: ${e.noteTextColor}; 2034} 2035.edgeLabel .label rect { 2036 fill: ${e.mainBkg}; 2037} 2038.label text { 2039 fill: ${e.classText}; 2040} 2041 2042.labelBkg { 2043 background: ${e.mainBkg}; 2044} 2045.edgeLabel .label span { 2046 background: ${e.mainBkg}; 2047} 2048 2049.classTitle { 2050 font-weight: bolder; 2051} 2052.node rect,
2053 .node circle, 2054 .node ellipse, 2055 .node polygon, 2056 .node path { 2057 fill: ${e.mainBkg}; 2058 stroke: ${e.nodeBorder}; 2059 stroke-width: ${e.strokeWidth}; 2060 } 2061 2062 2063.divider { 2064 stroke: ${e.nodeBorder}; 2065 stroke-width: 1; 2066} 2067 2068g.clickable { 2069 cursor: pointer; 2070} 2071 2072g.classGroup rect { 2073 fill: ${e.mainBkg}; 2074 stroke: ${e.nodeBorder}; 2075} 2076 2077g.classGroup line { 2078 stroke: ${e.nodeBorder}; 2079 stroke-width: 1; 2080} 2081 2082.classLabel .box { 2083 stroke: none; 2084 stroke-width: 0; 2085 fill: ${e.mainBkg}; 2086 opacity: 0.5; 2087} 2088 2089.classLabel .label { 2090 fill: ${e.nodeBorder}; 2091 font-size: 10px; 2092} 2093 2094.relation { 2095 stroke: ${e.lineColor}; 2096 stroke-width: ${e.strokeWidth}; 2097 fill: none; 2098} 2099 2100.dashed-line{ 2101 stroke-dasharray: 3; 2102} 2103 2104.dotted-line{ 2105 stroke-dasharray: 1 2; 2106} 2107 2108[id$="-compositionStart"], .composition { 2109 fill: ${e.lineColor} !important; 2110 stroke: ${e.lineColor} !important; 2111 stroke-width: 1; 2112} 2113 2114[id$="-compositionEnd"], .composition { 2115 fill: ${e.lineColor} !important; 2116 stroke: ${e.lineColor} !important; 2117 stroke-width: 1; 2118} 2119 2120[id$="-dependencyStart"], .dependency { 2121 fill: ${e.lineColor} !important; 2122 stroke: ${e.lineColor} !important; 2123 stroke-width: 1; 2124} 2125 2126[id$="-dependencyEnd"], .dependency { 2127 fill: ${e.lineColor} !important; 2128 stroke: ${e.lineColor} !important; 2129 stroke-width: 1; 2130} 2131 2132[id$="-extensionStart"], .extension { 2133 fill: transparent !important; 2134 stroke: ${e.lineColor} !important; 2135 stroke-width: 1; 2136} 2137 2138[id$="-extensionEnd"], .extension { 2139 fill: transparent !important; 2140 stroke: ${e.lineColor} !important; 2141 stroke-width: 1; 2142} 2143 2144[id$="-aggregationStart"], .aggregation { 2145 fill: transparent !important; 2146 stroke: ${e.lineColor} !important; 2147 stroke-width: 1; 2148} 2149 2150[id$="-aggregationEnd"], .aggregation { 2151 fill: transparent !important; 2152 stroke: ${e.lineColor} !important; 2153 stroke-width: 1; 2154} 2155 2156[id$="-lollipopStart"], .lollipop { 2157 fill: ${e.mainBkg} !important; 2158 stroke: ${e.lineColor} !important; 2159 stroke-width: 1; 2160} 2161 2162[id$="-lollipopEnd"], .lollipop { 2163 fill: ${e.mainBkg} !important; 2164 stroke: ${e.lineColor} !important; 2165 stroke-width: 1; 2166} 2167 2168.edgeTerminals { 2169 font-size: 11px; 2170 line-height: initial; 2171} 2172 2173.classTitleText { 2174 text-anchor: middle; 2175 font-size: 18px; 2176 fill: ${e.textColor}; 2177} 2178 2179.edgeLabel[data-look="neo"] { 2180 background-color: ${e.edgeLabelBackground}; 2181 p { 2182 background-color: ${e.edgeLabelBackground}; 2183 } 2184 rect { 2185 opacity: 0.5; 2186 background-color: ${e.edgeLabelBackground}; 2187 fill: ${e.edgeLabelBackground}; 2188 } 2189 text-align: center; 2190} 2191 ${w2()} 2192`,"getStyles"),tle=pot}),fot,mot,yot,rle,vot=Y(()=>{"use strict";vr(),jt(),ky(),Of(),$f(),wr(),fot=s((e,t="TB")=>{if(!e.doc)return t;let r=t;for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),mot=s(function(e,t){return t.db.getClasses()},"getClasses"),yot=s(async function(e,t,r,i){var d,p;ge.info("REF0:"),ge.info("Drawing class diagram (v3)",t);let{securityLevel:n,state:a,layout:o}=Ue();i.db.setDiagramId(t);let l=i.db.getData(),h=jg(t,n);l.type=i.type,l.layoutAlgorithm=T2(o),l.nodeSpacing=(a==null?void 0:a.nodeSpacing)||50,l.rankSpacing=(a==null?void 0:a.rankSpacing)||50,l.markers=["aggregation","extension","composition","dependency","lollipop"],l.diagramId=t,await Mf(l,h),ri.insertTitle(h,"classDiagramTitleText",(d=a==null?void 0:a.titleTopMargin)!=null?d:25,i.db.getDiagramTitle()),Hp(h,8,"classDiagram",(p=a==null?void 0:a.useMaxWidth)!=null?p:!0)},"draw"),rle={getClasses:mot,draw:yot,getDir:fot}}),bot={};Jr(bot,{diagram:f(()=>xot,"diagram")});var xot,Hwt=Y(()=>{"use strict";uot(),dot(),got(),vot(),xot={parser:Koe,get db(){return new ele},renderer:rle,styles:tle,init:s(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),kot={};Jr(kot,{diagram:f(()=>Tot,"diagram")});var Tot,Ywt=Y(()=>{"use strict";uot(),dot(),got(),vot(),Tot={parser:Koe,get db(){return new ele},renderer:rle,styles:tle,init:s(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),BR,ile,wot=Y(()=>{"use strict";BR=(function(){var e=s(function(V,W,X,J){for(X=X||{},J=V.length;J--;X[V[J]]=W);return X},"o"),t=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],o=[1,11],l=[1,16],h=[1,17],u=[1,18],d=[1,19],p=[1,33],g=[1,20],m=[1,21],y=[1,22],x=[1,23],C=[1,24],w=[1,26],_=[1,27],S=[1,28],R=[1,29],b=[1,30],v=[1,31],k=[1,32],E=[1,35],A=[1,36],I=[1,37],$=[1,38],O=[1,34],j=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],D=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],P=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],F={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(V,W,X,J,H,te,ie){var oe=te.length-1;switch(H){case 3:return J.setRootDoc(te[oe]),te[oe];case 4:this.$=[];break;case 5:te[oe]!="nl"&&(te[oe-1].push(te[oe]),this.$=te[oe-1]);break;case 6:case 7:this.$=te[oe];break;case 8:this.$="nl";break;case 12:this.$=te[oe];break;case 13:let le=te[oe-1];le.description=J.trimColon(te[oe]),this.$=le;break;case 14:this.$={stmt:"relation",state1:te[oe-2],state2:te[oe]};break;case 15:let ue=J.trimColon(te[oe]);this.$={stmt:"relation",state1:te[oe-3],state2:te[oe-1],description:ue};break;case 19:this.$={stmt:"state",id:te[oe-3],type:"default",description:"",doc:te[oe-1]};break;case 20:var he=te[oe],pe=te[oe-2].trim();if(te[oe].match(":")){var se=te[oe].split(":");he=se[0],pe=[pe,se[1]]}this.$={stmt:"state",id:he,type:"default",description:pe};break;case 21:this.$={stmt:"state",id:te[oe-3],type:"default",description:te[oe-5],doc:te[oe-1]};break;case 22:this.$={stmt:"state",id:te[oe],type:"fork"};break;case 23:this.$={stmt:"state",id:te[oe],type:"join"};break;case 24:this.$={stmt:"state",id:te[oe],type:"choice"};break;case 25:this.$={stmt:"state",id:J.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:te[oe-1].trim(),note:{position:te[oe-2].trim(),text:te[oe].trim()}};break;case 29:this.$=te[oe].trim(),J.setAccTitle(this.$);break;case 30:case 31:this.$=te[oe].trim(),J.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:te[oe-3],url:te[oe-2],tooltip:te[oe-1]};break;case 33:this.$={stmt:"click",id:te[oe-3],url:te[oe-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:te[oe-1].trim(),classes:te[oe].trim()};break;case 36:this.$={stmt:"style",id:te[oe-1].trim(),styleClass:te[oe].trim()};break;case 37:this.$={stmt:"applyClass",id:te[oe-1].trim(),styleClass:te[oe].trim()};break;case 38:J.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:J.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:J.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:J.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:te[oe].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:te[oe-2].trim(),classes:[te[oe].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:te[oe-2].trim(),classes:[te[oe].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:r,6:i},{1:[3]},{3:5,4:t,5:r,6:i},{3:6,4:t,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:h,19:u,22:d,24:p,25:g,26:m,27:y,28:x,29:C,32:25,33:w,35:_,37:S,38:R,41:b,45:v,48:k,51:E,52:A,53:I,54:$,57:O},e(j,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:h,19:u,22:d,24:p,25:g,26:m,27:y,28:x,29:C,32:25,33:w,35:_,37:S,38:R,41:b,45:v,48:k,51:E,52:A,53:I,54:$,57:O},e(j,[2,7]),e(j,[2,8]),e(j,[2,9]),e(j,[2,10]),e(j,[2,11]),e(j,[2,12],{14:[1,40],15:[1,41]}),e(j,[2,16]),{18:[1,42]}
vendor: 2,967 bytes, lines 2192-2194
2192,e(j,[2,18],{20:[1,43]}),{23:[1,44]},e(j,[2,22]),e(j,[2,23]),e(j,[2,24]),e(j,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(j,[2,28]),{34:[1,49]},{36:[1,50]},e(j,[2,31]),{13:51,24:p,57:O},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(D,[2,44],{58:[1,56]}),e(D,[2,45],{58:[1,57]}),e(j,[2,38]),e(j,[2,39]),e(j,[2,40]),e(j,[2,41]),e(j,[2,6]),e(j,[2,13]),{13:58,24:p,57:O},e(j,[2,17]),e(P,n,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(j,[2,29]),e(j,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(j,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:h,19:u,21:[1,72],22:d,24:p,25:g,26:m,27:y,28:x,29:C,32:25,33:w,35:_,37:S,38:R,41:b,45:v,48:k,51:E,52:A,53:I,54:$,57:O},e(j,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),e(D,[2,46]),e(D,[2,47]),e(j,[2,15]),e(j,[2,19]),e(P,n,{7:78}),e(j,[2,26]),e(j,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:h,19:u,21:[1,81],22:d,24:p,25:g,26:m,27:y,28:x,29:C,32:25,33:w,35:_,37:S,38:R,41:b,45:v,48:k,51:E,52:A,53:I,54:$,57:O},e(j,[2,32]),e(j,[2,33]),e(j,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(V,W){if(W.recoverable)this.trace(V);else{var X=new Error(V);throw X.hash=W,X}},"parseError"),parse:s(function(V){var W=this,X=[0],J=[],H=[null],te=[],ie=this.table,oe="",he=0,pe=0,se=0,le=2,ue=1,de=te.slice.call(arguments,1),we=Object.create(this.lexer),De={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(De.yy[Ge]=this.yy[Ge]);we.setInput(V,De.yy),De.yy.lexer=we,De.yy.parser=this,typeof we.yylloc>"u"&&(we.yylloc={});var be=we.yylloc;te.push(be);var qe=we.options&&we.options.ranges;typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(Q){X.length=X.length-2*Q,H.length=H.length-Q,te.length=te.length-Q}f(Ie,"Me"),s(Ie,"popStack");function Be(){var Q;return Q=J.pop()||we.lex()||ue,typeof Q!="number"&&(Q instanceof Array&&(J=Q,Q=J.pop()),Q=W.symbols_[Q]||Q),Q}f(Be,"$e"),s(Be,"lex");for(var ke,Qe,Pe,ht,Xe,dt,at={},kt,Le,lt,ve;;){if(Pe=X[X.length-1],this.defaultActions[Pe]?ht=this.defaultActions[Pe]:((ke===null||typeof ke>"u")&&(ke=Be()),ht=ie[Pe]&&ie[Pe][ke]),typeof ht>"u"||!ht.length||!ht[0]){var tt="";ve=[];for(kt in ie[Pe])this.terminals_[kt]&&kt>le&&ve.push("'"+this.terminals_[kt]+"'");we.showPosition?tt="Parse error on line "+(he+1)+`: 2193`+we.showPosition()+` 2194Expecting `+ve.join(", ")+", got '"+(this.terminals_[ke]||ke)+"'":tt="Parse error on line "+(he+1)+": Unexpected "+(ke==ue?"end of input":"'"+(this.terminals_[ke]||ke)+"'"),this.parseError(tt,{text:we.match,token:this.terminals_[ke]||ke,line:we.yylineno,loc:be,expected:ve})}if(ht[0]instanceof Array&&ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pe+", token: "+ke);
vendor: 6,115 bytes, lines 2194-2197
2194switch(ht[0]){case 1:X.push(ke),H.push(we.yytext),te.push(we.yylloc),X.push(ht[1]),ke=null,Qe?(ke=Qe,Qe=null):(pe=we.yyleng,oe=we.yytext,he=we.yylineno,be=we.yylloc,se>0&&se--);break;case 2:if(Le=this.productions_[ht[1]][1],at.$=H[H.length-Le],at._$={first_line:te[te.length-(Le||1)].first_line,last_line:te[te.length-1].last_line,first_column:te[te.length-(Le||1)].first_column,last_column:te[te.length-1].last_column},qe&&(at._$.range=[te[te.length-(Le||1)].range[0],te[te.length-1].range[1]]),dt=this.performAction.apply(at,[oe,pe,he,De.yy,ht[1],H,te].concat(de)),typeof dt<"u")return dt;Le&&(X=X.slice(0,-1*Le*2),H=H.slice(0,-1*Le),te=te.slice(0,-1*Le)),X.push(this.productions_[ht[1]][0]),H.push(at.$),te.push(at._$),lt=ie[X[X.length-2]][X[X.length-1]],X.push(lt);break;case 3:return!0}}return!0},"parse")},U=(function(){var V={EOF:1,parseError:s(function(W,X){if(this.yy.parser)this.yy.parser.parseError(W,X);else throw new Error(W)},"parseError"),setInput:s(function(W,X){return this.yy=X||this.yy||{},this._input=W,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 W=this._input[0];this.yytext+=W,this.yyleng++,this.offset++,this.match+=W,this.matched+=W;var X=W.match(/(?:\r\n?|\n).*/g);return X?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),W},"input"),unput:s(function(W){var X=W.length,J=W.split(/(?:\r\n?|\n)/g);this._input=W+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;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),J.length-1&&(this.yylineno-=J.length-1);var te=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:J?(J.length===H.length?this.yylloc.first_column:0)+H[H.length-J.length].length-J[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-X]),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). 2195`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(W){this.unput(this.match.slice(W))},"less"),pastInput:s(function(){var W=this.matched.substr(0,this.matched.length-this.match.length);return(W.length>20?"...":"")+W.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var W=this.match;return W.length<20&&(W+=this._input.substr(0,20-W.length)),(W.substr(0,20)+(W.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var W=this.pastInput(),X=new Array(W.length+1).join("-");return W+this.upcomingInput()+` 2196`+X+"^"},"showPosition"),test_match:s(function(W,X){var J,H,te;if(this.options.backtrack_lexer&&(te={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&&(te.yylloc.range=this.yylloc.range.slice(0))),H=W[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+W[0].length},this.yytext+=W[0],this.match+=W[0],this.matches=W,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(W[0].length),this.matched+=W[0],J=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),J)return J;if(this._backtrack){for(var ie in te)this[ie]=te[ie];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var W,X,J,H;this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),ie=0;ie<te.length;ie++)if(J=this._input.match(this.rules[te[ie]]),J&&(!X||J[0].length>X[0].length)){if(X=J,H=ie,this.options.backtrack_lexer){if(W=this.test_match(J,te[ie]),W!==!1)return W;if(this._backtrack){X=!1;continue}else return!1}else if(!this.options.flex)break}return X?(W=this.test_match(X,te[H]),W!==!1?W:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2197`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var W=this.next();return W||this.lex()},"lex"),begin:s(function(W){this.conditionStack.push(W)},"begin"),popState:s(function(){var W=this.conditionStack.length-1;return W>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(W){return W=this.conditionStack.length-1-Math.abs(W||0),W>=0?this.conditionStack[W]:"INITIAL"},"topState"),pushState:s(function(W){this.begin(W)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(W,X,J,H){function te(){let oe=X.yytext.
2197indexOf("%%");if(oe===0)return!1;if(oe>0){let he=X.yytext.slice(0,oe),pe=X.yytext.slice(oe);pe&&W.lexer.unput(pe),X.yytext=he}return!0}f(te,"U"),s(te,"processId");var ie=H;switch(J){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),X.yytext=X.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),X.yytext=X.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),X.yytext=X.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),X.yytext=X.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),X.yytext=X.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),X.yytext=X.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return te()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return te()?(this.popState(),"ID"):void 0;case 65:return te()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),X.yytext=X.yytext.substr(2).trim(),31;case 67:return this.popState(),X.yytext=X.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return te()?24:void 0;case 73:return X.yytext=X.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return V})();F.lexer=U;function z(){this.yy={}}return f(z,"O"),s(z,"Parser"),z.prototype=F,F.Parser=z,new z})(),BR.parser=BR,ile=BR}),P1,F1,PR,Cot,Eot,Sot,Jv,nle,ale,sle,ole,lle,FR,zR,_ot,Aot,cle,hle,Lot,Rot,eb,Iot,Dot,ule,Not,Mot,Oot,$ot,Bot,Pot,Fot,zot,dle,ple,qot,qR,jot,gle,fle=Y(()=>{"use strict";P1="state",F1="root",PR="relation",Cot="classDef",Eot="style",Sot="applyClass",Jv="default",nle="divider",ale="fill:none",sle="fill: #333",ole="markdown",lle="normal",FR="rect",zR="rectWithTitle",_ot="stateStart",Aot="stateEnd",cle="divider",hle="roundedWithT
2197itle",Lot="note",Rot="noteGroup",eb="statediagram",Iot="state",Dot=`${eb}-${Iot}`,ule="transition",Not="note",Mot="note-edge",Oot=`${ule} ${Mot}`,$ot=`${eb}-${Not}`,Bot="cluster",Pot=`${eb}-${Bot}`,Fot="cluster-alt",zot=`${eb}-${Fot}`,dle="parent",ple="note",qot="state",qR="----",jot=`${qR}${ple}`,gle=`${qR}${dle}`});function jR(e="",t=0,r="",i=qR){let n=r!==null&&r.length>0?`${i}${r}`:"";return`${qot}-${e}${n}-${t}`}f(jR,"_W");function _w(e,t,r){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(n=>{var o;let a=r.get(n);a&&(t.cssCompiledStyles=[...(o=t.cssCompiledStyles)!=null?o:[],...a.styles])}));let i=e.find(n=>n.id===t.id);i?Object.assign(i,t):e.push(t)}f(_w,"i_");function Got(e){var t,r;return(r=(t=e==null?void 0:e.classes)==null?void 0:t.join(" "))!=null?r:""}f(Got,"$Ct");function Uot(e){var t;return(t=e==null?void 0:e.styles)!=null?t:[]}f(Uot,"zCt");var Aw,Vd,Vot,mle,tb,Wot,Xwt=Y(()=>{"use strict";vr(),jt(),gi(),fle(),Aw=new Map,Vd=0,s(jR,"stateDomId"),Vot=s((e,t,r,i,n,a,o,l)=>{ge.trace("items",t),t.forEach(h=>{var u;switch(h.stmt){case P1:tb(e,h,r,i,n,a,o,l);break;case Jv:tb(e,h,r,i,n,a,o,l);break;case PR:{tb(e,h.state1,r,i,n,a,o,l),tb(e,h.state2,r,i,n,a,o,l);let d=o==="neo",p={id:"edge"+Vd,start:h.state1.id,end:h.state2.id,arrowhead:"normal",arrowTypeEnd:d?"arrow_barb_neo":"arrow_barb",style:ale,labelStyle:"",label:Vt.sanitizeText((u=h.description)!=null?u:"",Ue()),arrowheadStyle:sle,labelpos:"c",labelType:ole,thickness:lle,classes:ule,look:o};n.push(p),Vd++}break}})},"setupDoc"),mle=s((e,t="TB")=>{let r=t;if(e.doc)for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),s(_w,"insertOrUpdateNode"),s(Got,"getClassesFromDbInfo"),s(Uot,"getStylesFromDbInfo"),tb=s((e,t,r,i,n,a,o,l)=>{var m,y,x;let h=t.id,u=r.get(h),d=Got(u),p=Uot(u),g=Ue();if(ge.info("dataFetcher parsedItem",t,u,p),h!=="root"){let C=FR;t.start===!0?C=_ot:t.start===!1&&(C=Aot),t.type!==Jv&&(C=t.type),Aw.get(h)||Aw.set(h,{id:h,shape:C,description:Vt.sanitizeText(h,g),cssClasses:`${d} ${Dot}`,cssStyles:p});let w=Aw.get(h);t.description&&(Array.isArray(w.description)?(w.shape=zR,w.description.push(t.description)):(m=w.description)!=null&&m.length&&w.description.length>0?(w.shape=zR,w.description===h?w.description=[t.description]:w.description=[w.description,t.description]):(w.shape=FR,w.description=t.description),w.description=Vt.sanitizeTextOrArray(w.description,g)),((y=w.description)==null?void 0:y.length)===1&&w.shape===zR&&(w.type==="group"?w.shape=hle:w.shape=FR),!w.type&&t.doc&&(ge.info("Setting cluster for XCX",h,mle(t)),w.type="group",w.isGroup=!0,w.dir=mle(t),w.shape=t.type===nle?cle:hle,w.cssClasses=`${w.cssClasse
2197s} ${Pot} ${a?zot:""}`);let _={labelStyle:"",shape:w.shape,label:w.description,cssClasses:w.cssClasses,cssCompiledStyles:[],cssStyles:w.cssStyles,id:h,dir:w.dir,domId:jR(h,Vd),type:w.type,isGroup:w.type==="group",padding:8,rx:10,ry:10,look:o,labelType:"markdown"};if(_.shape===cle&&(_.label=""),e&&e.id!=="root"&&(ge.trace("Setting node ",h," to be child of its parent ",e.id),_.parentId=e.id),_.centerLabel=!0,t.note){let S={labelStyle:"",shape:Lot,label:t.note.text,labelType:"markdown",cssClasses:$ot,cssStyles:[],cssCompiledStyles:[],id:h+jot+"-"+Vd,domId:jR(h,Vd,ple),type:w.type,isGroup:w.type==="group",padding:(x=g.flowchart)==null?void 0:x.padding,look:o,position:t.note.position},R=h+gle,b={labelStyle:"",shape:Rot,label:t.note.text,cssClasses:w.cssClasses,cssStyles:[],id:h+gle,domId:jR(h,Vd,dle),type:"group",isGroup:!0,padding:16,look:o,position:t.note.position};Vd++,b.id=R,S.parentId=R,_w(i,b,l),_w(i,S,l),_w(i,_,l);let v=h,k=S.id;t.note.position==="left of"&&(v=S.id,k=h),n.push({id:v+"-"+k,start:v,end:k,arrowhead:"none",arrowTypeEnd:"",style:ale,labelStyle:"",classes:Oot,arrowheadStyle:sle,labelpos:"c",labelType:ole,thickness:lle,look:o})}else _w(i,_,l)}t.doc&&(ge.trace("Adding nodes children "),Vot(t,t.doc,r,i,n,!a,o,l))},"dataFetcher"),Wot=s(()=>{Aw.clear(),Vd=0},"reset")}),yle,Hot,Yot,Xot,Kot=Y(()=>{"use strict";vr(),jt(),ky(),Of(),$f(),wr(),fle(),yle=s((e,t="TB")=>{if(!e.doc)return t;let r=t;for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),Hot=s(function(e,t){return t.db.getClasses()},"getClasses"),Yot=s(async function(e,t,r,i){var d,p;ge.info("REF0:"),ge.info("Drawing state diagram (v2)",t);let{securityLevel:n,state:a,layout:o}=Ue();i.db.extract(i.db.getRootDocV2());let l=i.db.getData(),h=jg(t,n);l.type=i.type,l.layoutAlgorithm=o,l.nodeSpacing=(a==null?void 0:a.nodeSpacing)||50,l.rankSpacing=(a==null?void 0:a.rankSpacing)||50,Ue().look==="neo"?l.markers=["barbNeo"]:l.markers=["barb"],l.diagramId=t,await Mf(l,h);let u=8;try{(typeof i.db.getLinks=="function"?i.db.getLinks():new Map).forEach((g,m)=>{var R;let y=typeof m=="string"?m:typeof(m==null?void 0:m.id)=="string"?m.id:"";if(!y){ge.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(m));return}let x=(R=h.node())==null?void 0:R.querySelectorAll("g"),C;if(x==null||x.forEach(b=>{var v;((v=b.textContent)==null?void 0:v.trim())===y&&(C=b)}),!C){ge.warn("\u26A0\uFE0F Could not find node matching text:",y);return}let w=C.parentNode;if(!w){ge.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",y);return}let _=document.createElementNS("http://www.w3.org/2000/svg","a"),S=g.url.replace(/^"+|"+$/g,"");if(_.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",S),_.setAttribute("target","_blank"),g.tooltip){let b=g.tooltip.replace(/^"+|"+$/g,"");_.setAttribute("title",b)}w.replaceChild(_,C),_.appendChild(C),ge.info("\u{1F517} Wrapped node in <a> tag for:",y,g.url)})}catch(g){ge.error("\u274C Error injecting clickable links:",g)}ri.insertTitle(h,"statediagramTitleText",(d=a==null?void 0:a.titleTopMargin)!=null?d:25,i.db.getDiagramTitle()),Hp(h,u,eb,(p=a==null?void 0:a.useMaxWidth)!=null?p:!0)},"draw"),Xot={getClasses:Hot,draw:Yot,getDir:yle}}),Js,vle,ble,Lw,J0,xle=Y(()=>{"use strict";var e;vr(),jt(),wr(),gi(),En(),Xwt(),Kot(),fle(),Js={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},vle=s(()=>new Map,"newClassesList"),ble=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Lw=s(t=>JSON.parse(JSON.stringify(t)),"clone"),J0=(e=class{constructor(r){this.version=r,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=vle(),this.documents={root:ble()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=Pn,this.setAccTitle=wn,this.getAccDescription=zn,this.setAccDescription=Fn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(r){this.clear(!0);for(let a of Array.isArray(r)?r:r.doc)switch(a.stmt){case P1:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case PR:this.addRelation(a.state1,a.state2,a.description);break;case Cot:this.addStyleClass(a.id.trim(),a.classes);break;case Eot:this.handleStyleDef(a);break;case Sot:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}let i=this.getStates(),n=Ue();Wot(),tb(void 0,this.getRootDocV2(),i,this.nodes,this.edges,!0,n.look,this.classes);for(let a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(r){let i=r.id.trim().split(","),n=r.styleClass.split(",");for(let a of i){let o=this.getState(a);if(!o){let l=a.trim();this.addState(l),o=this.getState(l)}o&&(o.styles=n.map(l=>{var h;
vendor: 16,624 bytes, lines 2197-2422
2197return(h=l.replace(/;/g,""))==null?void 0:h.trim()}))}}setRootDoc(r){ge.info("Setting root doc",r),this.rootDoc=r,this.version===1?this.extract(r):this.extract(this.getRootDocV2())}docTranslator(r,i,n){if(i.stmt===PR){this.docTranslator(r,i.state1,!0),this.docTranslator(r,i.state2,!1);return}if(i.stmt===P1&&(i.id===Js.START_NODE?(i.id=r.id+(n?"_start":"_end"),i.start=n):i.id=i.id.trim()),i.stmt!==F1&&i.stmt!==P1||!i.doc)return;let a=[],o=[];for(let l of i.doc)if(l.type===nle){let h=Lw(l);h.doc=Lw(o),a.push(h),o=[]}else o.push(l);if(a.length>0&&o.length>0){let l={stmt:P1,id:PB(),type:"divider",doc:Lw(o)};a.push(Lw(l)),i.doc=a}i.doc.forEach(l=>this.docTranslator(i,l,!0))}getRootDocV2(){return this.docTranslator({id:F1,stmt:F1},{id:F1,stmt:F1,doc:this.rootDoc},!0),{id:F1,doc:this.rootDoc}}addState(r,i=Jv,n=void 0,a=void 0,o=void 0,l=void 0,h=void 0,u=void 0){let d=r==null?void 0:r.trim();if(!this.currentDocument.states.has(d))ge.info("Adding state ",d,a),this.currentDocument.states.set(d,{stmt:P1,id:d,descriptions:[],type:i,doc:n,note:o,classes:[],styles:[],textStyles:[]});else{let p=this.currentDocument.states.get(d);if(!p)throw new Error(`State not found: ${d}`);p.doc||(p.doc=n),p.type||(p.type=i)}if(a&&(ge.info("Setting state description",d,a),(Array.isArray(a)?a:[a]).forEach(p=>this.addDescription(d,p.trim()))),o){let p=this.currentDocument.states.get(d);if(!p)throw new Error(`State not found: ${d}`);p.note=o,p.note.text=Vt.sanitizeText(p.note.text,Ue())}l&&(ge.info("Setting state classes",d,l),(Array.isArray(l)?l:[l]).forEach(p=>this.setCssClass(d,p.trim()))),h&&(ge.info("Setting state styles",d,h),(Array.isArray(h)?h:[h]).forEach(p=>this.setStyle(d,p.trim()))),u&&(ge.info("Setting state styles",d,h),(Array.isArray(u)?u:[u]).forEach(p=>this.setTextStyle(d,p.trim())))}clear(r){this.nodes=[],this.edges=[],this.documents={root:ble()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=vle(),r||(this.links=new Map,Tn())}getState(r){return this.currentDocument.states.get(r)}getStates(){return this.currentDocument.states}logDocuments(){ge.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(r,i,n){this.links.set(r,{url:i,tooltip:n}),ge.warn("Adding link",r,i,n)}getLinks(){return this.links}startIdIfNeeded(r=""){return r===Js.START_NODE?(this.startEndCount++,`${Js.START_TYPE}${this.startEndCount}`):r}startTypeIfNeeded(r="",i=Jv){return r===Js.START_NODE?Js.START_TYPE:i}endIdIfNeeded(r=""){return r===Js.END_NODE?(this.startEndCount++,`${Js.END_TYPE}${this.startEndCount}`):r}endTypeIfNeeded(r="",i=Jv){return r===Js.END_NODE?Js.END_TYPE:i}addRelationObjs(r,i,n=""){let a=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type),l=this.startIdIfNeeded(i.id.trim()),h=this.startTypeIfNeeded(i.id.trim(),i.type);this.addState(a,o,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.addState(l,h,i.doc,i.description,i.note,i.classes,i.styles,i.textStyles),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:Vt.sanitizeText(n,Ue())})}addRelation(r,i,n){if(typeof r=="object"&&typeof i=="object")this.addRelationObjs(r,i,n);else if(typeof r=="string"&&typeof i=="string"){let a=this.startIdIfNeeded(r.trim()),o=this.startTypeIfNeeded(r),l=this.endIdIfNeeded(i.trim()),h=this.endTypeIfNeeded(i);this.addState(a,o),this.addState(l,h),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:n?Vt.sanitizeText(n,Ue()):void 0})}}addDescription(r,i){var o;let n=this.currentDocument.states.get(r),a=i.startsWith(":")?i.replace(":","").trim():i;(o=n==null?void 0:n.descriptions)==null||o.push(Vt.sanitizeText(a,Ue()))}cleanupLabel(r){return r.startsWith(":")?r.slice(2).trim():r.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(r,i=""){this.classes.has(r)||this.classes.set(r,{id:r,styles:[],textStyles:[]});let n=this.classes.get(r);i&&n&&i.split(Js.STYLECLASS_SEP).forEach(a=>{let o=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Js.COLOR_KEYWORD).exec(a)){let l=o.replace(Js.FILL_KEYWORD,Js.BG_FILL).replace(Js.COLOR_KEYWORD,Js.FILL_KEYWORD);n.textStyles.push(l)}n.styles.push(o)})}getClasses(){return this.classes}setCssClass(r,i){r.split(",").forEach(n=>{var o;let a=this.getState(n);if(!a){let l=n.trim();this.addState(l),a=this.getState(l)}(o=a==null?void 0:a.classes)==null||o.push(i)})}setStyle(r,i){var n,a;(a=(n=this.getState(r))==null?void 0:n.styles)==null||a.push(i)}setTextStyle(r,i){var n,a;(a=(n=this.getState(r))==null?void 0:n.textStyles)==null||a.push(i)}getDirectionStatement(){return this.rootDoc.find(r=>r.stmt==="dir")}getDirection(){var r,i;return(i=(r=this.getDirectionStatement())==null?void 0:r.value)!=null?i:"TB"}setDirection(r){let i=this.getDirectionStatement();i?i.value=r:this.rootDoc.unshift({stmt:"dir",value:r})}trimColon(r){return r.startsWith(":")?r.slice(1).trim():r.trim()}getData(){let r=Ue();return{nodes:this.nodes,edges:this.edges,other:{},config:r,direction:yle(this.getRootDocV2())}}getConfig(){return Ue().state}},f(e,"ol"),s(e,"StateDB"),e.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},e)}),Zot,kle,Qot=Y(()=>{"use strict";Zot=s(e=>{var t;return` 2198defs [id$="-barbEnd"] { 2199 fill: ${e.transitionColor}; 2200 stroke: ${e.transitionColor}; 2201 } 2202g.stateGroup text { 2203 fill: ${e.nodeBorder}; 2204 stroke: none; 2205 font-size: 10px; 2206} 2207g.stateGroup text { 2208 fill: ${e.textColor}; 2209 stroke: none; 2210 font-size: 10px; 2211 2212} 2213g.stateGroup .state-title { 2214 font-weight: bolder; 2215 fill: ${e.stateLabelColor}; 2216} 2217 2218g.stateGroup rect { 2219 fill: ${e.mainBkg}; 2220 stroke: ${e.nodeBorder}; 2221} 2222 2223g.stateGroup line { 2224 stroke: ${e.lineColor}; 2225 stroke-width: ${e.strokeWidth||1}; 2226} 2227 2228.transition { 2229 stroke: ${e.transitionColor}; 2230 stroke-width: ${e.strokeWidth||1}; 2231 fill: none; 2232} 2233 2234.stateGroup .composit { 2235 fill: ${e.background}; 2236 border-bottom: 1px 2237} 2238 2239.stateGroup .alt-composit { 2240 fill: #e0e0e0; 2241 border-bottom: 1px 2242} 2243 2244.state-note { 2245 stroke: ${e.noteBorderColor}; 2246 fill: ${e.noteBkgColor}; 2247 2248 text { 2249 fill: ${e.noteTextColor}; 2250 stroke: none; 2251 font-size: 10px; 2252 } 2253} 2254 2255.stateLabel .box { 2256 stroke: none; 2257 stroke-width: 0; 2258 fill: ${e.mainBkg}; 2259 opacity: 0.5; 2260} 2261 2262.edgeLabel .label rect { 2263 fill: ${e.labelBackgroundColor}; 2264 opacity: 0.5; 2265} 2266.edgeLabel { 2267 background-color: ${e.edgeLabelBackground}; 2268 p { 2269 background-color: ${e.edgeLabelBackground}; 2270 } 2271 rect { 2272 opacity: 0.5; 2273 background-color: ${e.edgeLabelBackground}; 2274 fill: ${e.edgeLabelBackground}; 2275 } 2276 text-align: center; 2277} 2278.edgeLabel .label text { 2279 fill: ${e.transitionLabelColor||e.tertiaryTextColor}; 2280} 2281.label div .edgeLabel { 2282 color: ${e.transitionLabelColor||e.tertiaryTextColor}; 2283} 2284 2285.stateLabel text { 2286 fill: ${e.stateLabelColor}; 2287 font-size: 10px; 2288 font-weight: bold; 2289} 2290 2291.node circle.state-start { 2292 fill: ${e.specialStateColor}; 2293 stroke: ${e.specialStateColor}; 2294} 2295 2296.node .fork-join { 2297 fill: ${e.specialStateColor}; 2298 stroke: ${e.specialStateColor}; 2299} 2300 2301.node circle.state-end { 2302 fill: ${e.innerEndBackground}; 2303 stroke: ${e.background}; 2304 stroke-width: 1.5 2305} 2306.end-state-inner { 2307 fill: ${e.compositeBackground||e.background}; 2308 // stroke: ${e.background}; 2309 stroke-width: 1.5 2310} 2311 2312.node rect { 2313 fill: ${e.stateBkg||e.mainBkg}; 2314 stroke: ${e.stateBorder||e.nodeBorder}; 2315 stroke-width: ${e.strokeWidth||1}px; 2316} 2317.node polygon { 2318 fill: ${e.mainBkg}; 2319 stroke: ${e.stateBorder||e.nodeBorder};; 2320 stroke-width: ${e.strokeWidth||1}px; 2321} 2322[id$="-barbEnd"] { 2323 fill: ${e.lineColor}; 2324} 2325 2326.statediagram-cluster rect { 2327 fill: ${e.compositeTitleBackground}; 2328 stroke: ${e.stateBorder||e.nodeBorder}; 2329 stroke-width: ${e.strokeWidth||1}px; 2330} 2331 2332.cluster-label, .nodeLabel { 2333 color: ${e.stateLabelColor}; 2334 // line-height: 1; 2335} 2336 2337.statediagram-cluster rect.outer { 2338 rx: 5px; 2339 ry: 5px; 2340} 2341.statediagram-state .divider { 2342 stroke: ${e.stateBorder||e.nodeBorder}; 2343} 2344 2345.statediagram-state .title-state { 2346 rx: 5px; 2347 ry: 5px; 2348} 2349.statediagram-cluster.statediagram-cluster .inner { 2350 fill: ${e.compositeBackground||e.background}; 2351} 2352.statediagram-cluster.statediagram-cluster-alt .inner { 2353 fill: ${e.altBackground?e.altBackground:"#efefef"}; 2354} 2355 2356.statediagram-cluster .inner { 2357 rx:0; 2358 ry:0; 2359} 2360 2361.statediagram-state rect.basic { 2362 rx: 5px; 2363 ry: 5px; 2364} 2365.statediagram-state rect.divider { 2366 stroke-dasharray: 10,10; 2367 fill: ${e.altBackground?e.altBackground:"#efefef"}; 2368} 2369 2370.note-edge { 2371 stroke-dasharray: 5; 2372} 2373 2374.statediagram-note rect { 2375 fill: ${e.noteBkgColor}; 2376 stroke: ${e.noteBorderColor}; 2377 stroke-width: 1px; 2378 rx: 0; 2379 ry: 0; 2380} 2381.statediagram-note rect { 2382 fill: ${e.noteBkgColor}; 2383 stroke: ${e.noteBorderColor}; 2384 stroke-width: 1px; 2385 rx: 0; 2386 ry: 0; 2387} 2388 2389.statediagram-note text { 2390 fill: ${e.noteTextColor}; 2391} 2392 2393.statediagram-note .nodeLabel { 2394 color: ${e.noteTextColor}; 2395} 2396.statediagram .edgeLabel { 2397 color: red; // ${e.noteTextColor}; 2398} 2399 2400[id$="-dependencyStart"], [id$="-dependencyEnd"] { 2401 fill: ${e.lineColor}; 2402 stroke: ${e.lineColor}; 2403 stroke-width: ${e.strokeWidth||1}; 2404} 2405 2406.statediagramTitleText { 2407 text-anchor: middle; 2408 font-size: 18px; 2409 fill: ${e.textColor}; 2410} 2411 2412[data-look="neo"].statediagram-cluster rect { 2413 fill: ${e.mainBkg}; 2414 stroke: ${e.useGradient?"url("+e.svgId+"-gradient)":e.stateBorder||e.nodeBorder}; 2415 stroke-width: ${(t=e.strokeWidth)!=null?t:1}; 2416} 2417[data-look="neo"].statediagram-cluster rect.outer { 2418 rx: ${e.radius}px; 2419 ry: ${e.radius}px; 2420 filter: ${e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${e.svgId}-drop-shadow)`):"none"} 2421} 2422`},"getStyles"),kle=Zot}),Jot,elt,tlt,rlt,ilt,nlt,alt,slt,olt,Tle,wle,llt,Kwt=Y(()=>{"use strict";ui(),xle(),wr(),gi(),vr(),jt(),Jot=s(e=>e.append("circle").attr("class","start-state").attr("r",Ue().state.sizeUnit).attr("cx",Ue().state.padding+Ue().state.sizeUnit).attr("cy",Ue().state.padding+Ue().state.sizeUnit),"drawStartState"),elt=s(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ue().state.textHeight).attr("class","divider").attr("x2",Ue().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),tlt=s((e,t)=>{let r=e.append("text").attr("x",2*Ue().state.padding).attr("y",Ue().state.textHeight+2*Ue().state.padding).attr("font-size",Ue().state.fontSize).attr("class","state-title").text(t.id),i=r.node().getBBox();return e.insert("rect",":first-child").attr("x",Ue().state.padding).attr("y",Ue().state.padding).attr("width",i.width+2*Ue().state.padding).attr("height",i.height+2*Ue().state.padding).attr("rx",Ue().state.radius),r},"drawSimpleState"),rlt=s((e,t)=>{let r=s(function(p,g,m){let y=p.append("tspan").attr("x",2*Ue().state.padding).text(g);m||y.attr("dy",Ue().state.textHeight)},"addTspan"),i=e.append("text").attr("x",2*Ue().state.padding).attr("y",Ue().state.textHeight+1.3*Ue().state.padding).attr("font-size",Ue().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),n=i.height,a=e.append("text").attr("x",Ue().state.padding).attr("y",n+Ue().state.padding*.4+Ue().state.dividerMargin+Ue().state.textHeight).attr("class","state-description"),o=!0,l=!0;t.descriptions.forEach(function(p){o||(r(a,p,l),l=!1),o=!1});let h=e.append("line").attr("x1",Ue().state.padding).attr("y1",Ue().state.padding+n+Ue().state.dividerMargin/2).attr("y2",Ue().state.padding+n+Ue().state.dividerMargin/2).attr("class","descr-divider"),u=a.node().getBBox(),d=Math.max(u.width,i.width);return h.attr("x2",d+3*Ue().state.padding),e.insert("rect",":first-child").attr("x",Ue().state.padding).attr("y",Ue().state.padding).attr("width",d+2*Ue().state.padding).attr("height",u.height+n+2*Ue().state.padding).attr("rx",Ue().state.radius),e},"drawDescrState"),ilt=s((e,t,r)=>{let i=Ue().state.padding,n=2*Ue().state.padding,a=e.node().getBBox(),o=a.width,l=a.x,h=e.append("text").attr("x",0).attr("y",Ue().state.titleShift).attr("font-size",Ue().state.fontSize).attr("class","state-title").text(t.id),u=h.node().getBBox().width+n,d=Math.max(u,o);d===o&&(d=d+n);let p,g=e.node().getBBox();t.doc,p=l-i,u>o&&(p=(o-d)/2+i),Math.abs(l-g.x)<i&&u>o&&(p=l-(u-o)/2);let m=1-Ue().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",m).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",g.height+Ue().state.textHeight+Ue().state.titleShift+1).attr("rx","0"),h.attr("x",p+i),u<=o&&h.attr("x",l+(d-n)/2-u/2+i),e.insert("rect",":first-child").attr("x",p).attr("y",Ue().state.titleShift-Ue().state.textHeight-Ue().state.padding).attr("width",d).attr("height",Ue().state.textHeight*3).attr("rx",Ue().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",Ue().state.titleShift-Ue().state.textHeight-Ue().state.padding).attr("width",d).attr("height",g.height+3+2*Ue().state.textHeight).attr("rx",Ue().state.radius),e},"addTitleAndBox"),nlt=s(e=>(e.append("circle").attr("class","end-state-outer").attr("r",Ue().state.sizeUnit+Ue().state.miniPadding).attr("cx",Ue().state.padding+Ue().state.sizeUnit+Ue().state.miniPadding).attr("cy",Ue().state.padding+Ue().state.sizeUnit+Ue().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Ue().state.sizeUnit).attr("cx",Ue().state.padding+Ue().state.sizeUnit+2).attr("cy",Ue().state.padding+Ue().state.sizeUnit+2)),"drawEndState"),alt=s((e,t)=>{let r=Ue().state.forkWidth,i=Ue().state.forkHeight;if(t.parentId){let n=r;r=i,i=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",Ue().state.padding).attr("y",Ue().state.padding)},"drawForkJoinState"),slt=s((e,t,r,i)=>{let n=0,a=i.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let o=e.replace(/\r\n/g,"<br/>");o=o.replace(/\n/g,"<br/>");let l=o.split(Vt.lineBreakRegex),h=1.25*Ue().state.noteMargin;for(let u of l){let d=u.trim();if(d.length>0){let p=a.append("tspan");if(p.text(d),h===0){let g=p.node().getBBox();h+=g.height}n+=h,p.attr("x",t+Ue().state.noteMargin),p.attr("y",r+n+1.25*Ue().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:n}},"_drawLongText"),olt=s((e,t)=>{t.attr("class","state-note");let r=t.append("rect").attr("x",0).attr("y",Ue().state.padding),i=t.append("g"),{textWidth:n,textHeight:a}=slt(e,0,0,i);return r.attr("height",a+2*Ue().state.noteMargin),r.attr("width",n+Ue().state.noteMargin*2),r},"drawNote"),Tle=s(function(e,t){let r=t.id,i={id:r,label:t.id,width:0,height:0},n=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&Jot(n),t.type==="end"&&nlt(n),(t.type==="fork"||t.type==="join")&&alt(n,t),t.type==="note"&&olt(t.note.text,n),t.type==="divider"&&elt(n),t.type==="default"&&t.descriptions.length===0&&tlt(n,t),t.type==="default"&&t.descriptions.length>0&&rlt(n,t);let a=n.node().getBBox();return i.width=a.width+2*Ue().state.padding,i.height=a.height+2*Ue().state.padding,i},"drawState"),wle=0,llt=s(function(e,t,r){let i=s(function(h){switch(h){case J0.relationType.AGGREGATION:return"aggregation";case J0.relationType.EXTENSION:return"extension";case J0.relationType.COMPOSITION:return"composition";case J0.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(h=>!Number.isNaN(h.y));let n=t.points,a=Ym().x(function(h){return h.x}).y(function(h){return h.y}).curve(Xm),o=e.append("path").attr("d",a(n)).attr("id","edge"+wle).attr("class","transition"),l="";if(Ue().state.arrowMarkerAbsolute&&(l=px(!0)),o.attr("marker-end","url("+l+"#"+i(J0.relationType.DEPENDENCY)+"End)"),r.title!==void 0){let h=e.append("g").attr("class","stateLabel"),{x:u,y:d}=ri.calcLabelPosition(t.points),p=Vt.getRows(r.title),g=0,m=[],y=0,x=0;for(let _=0;_<=p.length;_++){let S=h.append("text").attr("text-anchor","middle").text(p[_]).attr("x",u).attr("y",d+g),R=S.node().getBBox();y=Math.max(y,R.width),x=Math.min(x,R.x),ge.info(R.x,u,d+g),g===0&&(g=S.node().getBBox().height,ge.info("Title height",g,d)),m.push(S)}let C=g*p.length;if(p.length>1){let _=(p.length-1)*g*.5;m.forEach((S,R)=>S.attr("y",d+R*g-_)),C=g*p.length}let w=h.node().getBBox();h.insert("rect",":first-child").attr("class","box").attr("x",u-y/2-Ue().state.padding/2).attr("y",d-C/2-Ue().state.padding/2-3.5).attr("width",y+Ue().state.padding).attr("height",C+Ue().state.padding),ge.info(w)}wle++},"drawEdge")}),yl,GR,clt,hlt,ult,dlt,Cle,plt,Zwt=Y(()=>{"use strict";ui(),BNe(),Sc(),jt(),gi(),Kwt(),vr(),Bn(),GR={},clt=s(function(){},"setConf"),hlt=s(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),ult=s(function(e,t,r,i){yl=Ue().state;let n=Ue().securityLevel,a;
vendor: 2,691 bytes, line 2422
2422n==="sandbox"&&(a=Lt("#i"+t));let o=Lt(n==="sandbox"?a.nodes()[0].contentDocument.body:"body"),l=n==="sandbox"?a.nodes()[0].contentDocument:document;ge.debug("Rendering diagram "+e);let h=o.select(`[id='${t}']`);hlt(h);let u=i.db.getRootDoc(),d=h.append("g").attr("id",t+"-root");Cle(u,d,void 0,!1,o,l,i);let p=yl.padding,g=h.node().getBBox(),m=g.width+p*2,y=g.height+p*2,x=m*1.75;Ta(h,y,x,yl.useMaxWidth),h.attr("viewBox",`${g.x-yl.padding} ${g.y-yl.padding} `+m+" "+y)},"draw"),dlt=s(e=>e?e.length*yl.fontSizeFactor:1,"getLabelWidth"),Cle=s((e,t,r,i,n,a,o)=>{let l=new co({compound:!0,multigraph:!0}),h,u=!0;for(h=0;h<e.length;h++)if(e[h].stmt==="relation"){u=!1;break}r?l.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:u?1:yl.edgeLengthFactor,nodeSep:u?1:50,isMultiGraph:!0}):l.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:u?1:yl.edgeLengthFactor,nodeSep:u?1:50,ranker:"tight-tree",isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let d=o.db.getStates(),p=o.db.getRelations(),g=Object.keys(d),m=!0;for(let _ of g){let S=d[_];r&&(S.parentId=r);let R;if(S.doc){let b=t.append("g").attr("id",S.id).attr("class","stateGroup");if(R=Cle(S.doc,b,S.id,!i,n,a,o),m){b=ilt(b,S,i);let v=b.node().getBBox();R.width=v.width,R.height=v.height+yl.padding/2,GR[S.id]={y:yl.compositTitleSize}}else{let v=b.node().getBBox();R.width=v.width,R.height=v.height}}else R=Tle(t,S,l);if(S.note){let b={descriptions:[],id:S.id+"-note",note:S.note,type:"note"},v=Tle(t,b,l);S.note.position==="left of"?(l.setNode(R.id+"-note",v),l.setNode(R.id,R)):(l.setNode(R.id,R),l.setNode(R.id+"-note",v)),l.setParent(R.id,R.id+"-group"),l.setParent(R.id+"-note",R.id+"-group")}else l.setNode(R.id,R)}ge.debug("Count=",l.nodeCount(),l);let y=0;p.forEach(function(_){y++,ge.debug("Setting edge",_),l.setEdge(_.id1,_.id2,{relation:_,width:dlt(_.title),height:yl.labelHeight*Vt.getRows(_.title).length,labelpos:"c"},"id"+y)}),mj(l),ge.debug("Graph after layout",l.nodes());let x=t.node();l.nodes().forEach(function(_){_!==void 0&&l.node(_)!==void 0?(ge.warn("Node "+_+": "+JSON.stringify(l.node(_))),n.select("#"+x.id+" #"+_).attr("transform","translate("+(l.node(_).x-l.node(_).width/2)+","+(l.node(_).y+(GR[_]?GR[_].y:0)-l.node(_).height/2)+" )"),n.select("#"+x.id+" #"+_).attr("data-x-shift",l.node(_).x-l.node(_).width/2),a.querySelectorAll("#"+x.id+" #"+_+" .divider").forEach(S=>{let R=S.parentElement,b=0,v=0;R&&(R.parentElement&&(b=R.parentElement.getBBox().width),v=parseInt(R.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),S.setAttribute("x1",0-v+8),S.setAttribute("x2",b-v-8)})):ge.debug("No Node "+_+": "+JSON.stringify(l.node(_)))});let C=x.getBBox();
vendor: 44,022 bytes, lines 2422-2565
2422l.edges().forEach(function(_){_!==void 0&&l.edge(_)!==void 0&&(ge.debug("Edge "+_.v+" -> "+_.w+": "+JSON.stringify(l.edge(_))),llt(t,l.edge(_),l.edge(_).relation))}),C=x.getBBox();let w={id:r||"root",label:r||"root",width:0,height:0};return w.width=C.width+2*yl.padding,w.height=C.height+2*yl.padding,ge.debug("Doc rendered",w,l),w},"renderDoc"),plt={setConf:clt,draw:ult}}),glt={};Jr(glt,{diagram:f(()=>flt,"diagram")});var flt,Qwt=Y(()=>{"use strict";wot(),xle(),Qot(),Zwt(),flt={parser:ile,get db(){return new J0(1)},renderer:plt,styles:kle,init:s(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),mlt={};Jr(mlt,{diagram:f(()=>ylt,"diagram")});var ylt,Jwt=Y(()=>{"use strict";wot(),xle(),Qot(),Kot(),ylt={parser:ile,get db(){return new J0(2)},renderer:Xot,styles:kle,init:s(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),UR,vlt,eCt=Y(()=>{"use strict";UR=(function(){var e=s(function(p,g,m,y){for(m=m||{},y=p.length;y--;m[p[y]]=g);return m},"o"),t=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],n=[1,11],a=[1,12],o=[1,13],l=[1,14],h={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(p,g,m,y,x,C,w){var _=C.length-1;switch(x){case 1:return C[_-1];case 2:this.$=[];break;case 3:C[_-1].push(C[_]),this.$=C[_-1];break;case 4:case 5:this.$=C[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(C[_].substr(6)),this.$=C[_].substr(6);break;case 9:this.$=C[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=C[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(C[_].substr(8)),this.$=C[_].substr(8);break;case 13:y.addTask(C[_-1],C[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:n,16:a,17:o,18:l},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:i,14:n,16:a,17:o,18:l},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:s(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:s(function(p){var g=this,m=[0],y=[],x=[null],C=[],w=this.table,_="",S=0,R=0,b=0,v=2,k=1,E=C.slice.call(arguments,1),A=Object.create(this.lexer),I={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(I.yy[$]=this.yy[$]);A.setInput(p,I.yy),I.yy.lexer=A,I.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var O=A.yylloc;C.push(O);var j=A.options&&A.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(pe){m.length=m.length-2*pe,x.length=x.length-pe,C.length=C.length-pe}f(D,"M"),s(D,"popStack");function P(){var pe;return pe=y.pop()||A.lex()||k,typeof pe!="number"&&(pe instanceof Array&&(y=pe,pe=y.pop()),pe=g.symbols_[pe]||pe),pe}f(P,"L"),s(P,"lex");for(var F,U,z,V,W,X,J={},H,te,ie,oe;;){if(z=m[m.length-1],this.defaultActions[z]?V=this.defaultActions[z]:((F===null||typeof F>"u")&&(F=P()),V=w[z]&&w[z][F]),typeof V>"u"||!V.length||!V[0]){var he="";oe=[];for(H in w[z])this.terminals_[H]&&H>v&&oe.push("'"+this.terminals_[H]+"'");A.showPosition?he="Parse error on line "+(S+1)+`: 2423`+A.showPosition()+` 2424Expecting `+oe.join(", ")+", got '"+(this.terminals_[F]||F)+"'":he="Parse error on line "+(S+1)+": Unexpected "+(F==k?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(he,{text:A.match,token:this.terminals_[F]||F,line:A.yylineno,loc:O,expected:oe})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+F);switch(V[0]){case 1:m.push(F),x.push(A.yytext),C.push(A.yylloc),m.push(V[1]),F=null,U?(F=U,U=null):(R=A.yyleng,_=A.yytext,S=A.yylineno,O=A.yylloc,b>0&&b--);break;case 2:if(te=this.productions_[V[1]][1],J.$=x[x.length-te],J._$={first_line:C[C.length-(te||1)].first_line,last_line:C[C.length-1].last_line,first_column:C[C.length-(te||1)].first_column,last_column:C[C.length-1].last_column},j&&(J._$.range=[C[C.length-(te||1)].range[0],C[C.length-1].range[1]]),X=this.performAction.apply(J,[_,R,S,I.yy,V[1],x,C].concat(E)),typeof X<"u")return X;te&&(m=m.slice(0,-1*te*2),x=x.slice(0,-1*te),C=C.slice(0,-1*te)),m.push(this.productions_[V[1]][0]),x.push(J.$),C.push(J._$),ie=w[m[m.length-2]][m[m.length-1]],m.push(ie);break;case 3:return!0}}return!0},"parse")},u=(function(){var p={EOF:1,parseError:s(function(g,m){if(this.yy.parser)this.yy.parser.parseError(g,m);else throw new Error(g)},"parseError"),setInput:s(function(g,m){return this.yy=m||this.yy||{},this._input=g,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 g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var m=g.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:s(function(g){var m=g.length,y=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===x.length?this.yylloc.first_column:0)+x[x.length-y.length].length-y[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-m]),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). 2425`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(g){this.unput(this.match.slice(g))},"less"),pastInput:s(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var g=this.pastInput(),m=new Array(g.length+1).join("-");return g+this.upcomingInput()+` 2426`+m+"^"},"showPosition"),test_match:s(function(g,m){var y,x,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),x=g[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,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(g[0].length),this.matched+=g[0],y=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var w in C)this[w]=C[w];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,m,y,x;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),w=0;w<C.length;w++)if(y=this._input.match(this.rules[C[w]]),y&&(!m||y[0].length>m[0].length)){if(m=y,x=w,this.options.backtrack_lexer){if(g=this.test_match(y,C[w]),g!==!1)return g;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(g=this.test_match(m,C[x]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2427`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var g=this.next();return g||this.lex()},"lex"),begin:s(function(g){this.conditionStack.push(g)},"begin"),popState:s(function(){var g=this.conditionStack.length-1;return g>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(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:s(function(g){this.begin(g)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(g,m,y,x){var C=x;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p})();h.lexer=u;function d(){this.yy={}}return f(d,"d"),s(d,"Parser"),d.prototype=h,h.Parser=d,new d})(),UR.parser=UR,vlt=UR}),z1,VR,rb,ib,blt,xlt,klt,Tlt,wlt,Clt,Elt,Ele,Slt,Sle,tCt=Y(()=>{"use strict";vr(),En(),z1="",VR=[],rb=[],ib=[],blt=s(function(){VR.length=0,rb.length=0,z1="",ib.length=0,Tn()},"clear"),xlt=s(function(e){z1=e,VR.push(e)},"addSection"),klt=s(function(){return VR},"getSections"),Tlt=s(function(){let e=Ele(),t=100,r=0;for(;!e&&r<t;)e=Ele(),r++;return rb.push(...ib),rb},"getTasks"),wlt=s(function(){let e=[];return rb.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},"updateActors"),Clt=s(function(e,t){let r=t.substr(1).split(":"),i=0,n=[];r.length===1?(i=Number(r[0]),n=[]):(i=Number(r[0]),n=r[1].split(","));let a=n.map(l=>l.trim()),o={section:z1,type:z1,people:a,task:e,score:i};ib.push(o)},"addTask"),Elt=s(function(e){let t={section:z1,type:z1,description:e,task:e,classes:[]};rb.push(t)},"addTaskOrg"),Ele=s(function(){let e=s(function(r){return ib[r].processed},"compileTask"),t=!0;for(let[r,i]of ib.entries())e(r),t=t&&i.processed;return t},"compileTasks"),Slt=s(function(){return wlt()},"getActors"),Sle={getConfig:s(()=>Ue().journey,"getConfig"),clear:blt,setDiagramTitle:qn,getDiagramTitle:Cn,setAccTitle:wn,getAccTitle:Pn,setAccDescription:Fn,getAccDescription:zn,addSection:xlt,getSections:klt,getTasks:Tlt,addTask:Clt,addTaskOrg:Elt,getActors:Slt}}),_lt,Alt,rCt=Y(()=>{"use strict";Sk(),_lt=s(e=>`.label { 2428 font-family: ${e.fontFamily}; 2429 color: ${e.textColor}; 2430 } 2431 .mouth { 2432 stroke: #666; 2433 } 2434 2435 line { 2436 stroke: ${e.textColor} 2437 } 2438 2439 .legend { 2440 fill: ${e.textColor}; 2441 font-family: ${e.fontFamily}; 2442 } 2443 2444 .label text { 2445 fill: #333; 2446 } 2447 .label { 2448 color: ${e.textColor} 2449 } 2450 2451 .face { 2452 ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"}; 2453 stroke: #999; 2454 } 2455 2456 .node rect, 2457 .node circle, 2458 .node ellipse, 2459 .node polygon, 2460 .node path { 2461 fill: ${e.mainBkg}; 2462 stroke: ${e.nodeBorder}; 2463 stroke-width: 1px; 2464 } 2465 2466 .node .label { 2467 text-align: center; 2468 } 2469 .node.clickable { 2470 cursor: pointer; 2471 } 2472 2473 .arrowheadPath { 2474 fill: ${e.arrowheadColor}; 2475 } 2476 2477 .edgePath .path { 2478 stroke: ${e.lineColor}; 2479 stroke-width: 1.5px; 2480 } 2481 2482 .flowchart-link { 2483 stroke: ${e.lineColor}; 2484 fill: none; 2485 } 2486 2487 .edgeLabel { 2488 background-color: ${e.edgeLabelBackground}; 2489 rect { 2490 opacity: 0.5; 2491 } 2492 text-align: center; 2493 } 2494 2495 .cluster rect { 2496 } 2497 2498 .cluster text { 2499 fill: ${e.titleColor}; 2500 } 2501 2502 div.mermaidTooltip { 2503 position: absolute; 2504 text-align: center; 2505 max-width: 200px; 2506 padding: 2px; 2507 font-family: ${e.fontFamily}; 2508 font-size: 12px; 2509 background: ${e.tertiaryColor}; 2510 border: 1px solid ${e.border2}; 2511 border-radius: 2px; 2512 pointer-events: none; 2513 z-index: 100; 2514 } 2515 2516 .task-type-0, .section-type-0 { 2517 ${e.fillType0?`fill: ${e.fillType0}`:""}; 2518 } 2519 .task-type-1, .section-type-1 { 2520 ${e.fillType0?`fill: ${e.fillType1}`:""}; 2521 } 2522 .task-type-2, .section-type-2 { 2523 ${e.fillType0?`fill: ${e.fillType2}`:""}; 2524 } 2525 .task-type-3, .section-type-3 { 2526 ${e.fillType0?`fill: ${e.fillType3}`:""}; 2527 } 2528 .task-type-4, .section-type-4 { 2529 ${e.fillType0?`fill: ${e.fillType4}`:""}; 2530 } 2531 .task-type-5, .section-type-5 { 2532 ${e.fillType0?`fill: ${e.fillType5}`:""}; 2533 } 2534 .task-type-6, .section-type-6 { 2535 ${e.fillType0?`fill: ${e.fillType6}`:""}; 2536 } 2537 .task-type-7, .section-type-7 { 2538 ${e.fillType0?`fill: ${e.fillType7}`:""}; 2539 } 2540 2541 .actor-0 { 2542 ${e.actor0?`fill: ${e.actor0}`:""}; 2543 } 2544 .actor-1 { 2545 ${e.actor1?`fill: ${e.actor1}`:""}; 2546 } 2547 .actor-2 { 2548 ${e.actor2?`fill: ${e.actor2}`:""}; 2549 } 2550 .actor-3 { 2551 ${e.actor3?`fill: ${e.actor3}`:""}; 2552 } 2553 .actor-4 { 2554 ${e.actor4?`fill: ${e.actor4}`:""}; 2555 } 2556 .actor-5 { 2557 ${e.actor5?`fill: ${e.actor5}`:""}; 2558 } 2559 ${w2()} 2560`,"getStyles"),Alt=_lt}),WR,Llt,_le,Ale,Rlt,Ilt,HR,Dlt,Nlt,Lle,Mlt,nb,iCt=Y(()=>{"use strict";ui(),Km(),WR=s(function(e,t){return o4(e,t)},"drawRect"),Llt=s(function(e,t){let r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function n(l){let h=Lg().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}f(n,"a"),s(n,"smile");function a(l){let h=Lg().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}f(a,"s"),s(a,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return f(o,"l"),s(o,"ambivalent"),t.score>3?n(i):t.score<3?a(i):o(i),r},"drawFace"),_le=s(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),Ale=s(function(e,t){return Ybe(e,t)},"drawText"),Rlt=s(function(e,t){function r(n,a,o,l,h){return n+","+a+" "+(n+o)+","+a+" "+(n+o)+","+(a+l-h)+" "+(n+o-h*1.2)+","+(a+l)+" "+n+","+(a+l)}f(r,"r"),s(r,"genPoints");let i=e.append("polygon");i.attr("points",r(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Ale(e,t)},"drawLabel"),Ilt=s(function(e,t,r){let i=e.append("g"),n=Io();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),n.height=r.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,WR(i,n),Lle(r)(t.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),HR=-1,Dlt=s(function(e,t,r,i){let n=t.x+r.width/2,a=e.append("g");HR++,a.append("line").attr("id",i+"-task"+HR).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Llt(a,{cx:n,cy:300+(5-t.score)*30,score:t.score});let o=Io();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,WR(a,o);let l=t.x+14;t.people.forEach(h=>{let u=t.actors[h].color,d={cx:l,cy:t.y,r:7,fill:u,stroke:"#000",title:h,pos:t.actors[h].position};_le(a,d),l+=10}),Lle(r)(t.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,t.colour)},"drawTask"),Nlt=s(function(e,t){cB(e,t)},"drawBackgroundRect"),Lle=(function(){function e(n,a,o,l,h,u,d,p){let g=a.append("text").attr("x",o+h/2).attr("y",l+u/2+5).style("font-color",p).style("text-anchor","middle").text(n);i(g,d)}f(e,"e"),s(e,"byText");function t(n,a,o,l,h,u,d,p,g){let{taskFontSize:m,taskFontFamily:y}=p,x=n.split(/<br\s*\/?>/gi);for(let C=0;C<x.length;C++){let w=C*m-m*(x.length-1)/2,_=a.append("text").attr("x",o+h/2).attr("y",l).attr("fill",g).style("text-anchor","middle").style("font-size",m).style("font-family",y);_.append("tspan").attr("x",o+h/2).attr("dy",w).text(x[C]),_.attr("y",l+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(_,d)}}f(t,"t"),s(t,"byTspan");function r(n,a,o,l,h,u,d,p){let g=a.append("switch"),m=g.append("foreignObject").attr("x",o).attr("y",l).attr("width",h).attr("height",u).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,g,o,l,h,u,d,p),i(m,d)}f(r,"r"),s(r,"byFo");function i(n,a){for(let o in a)o in a&&n.attr(o,a[o])}return f(i,"i"),s(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),Mlt=s(function(e,t){HR=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),nb={drawRect:WR,drawCircle:_le,drawSection:Ilt,drawText:Ale,drawLabel:Rlt,drawTask:Dlt,drawBackgroundRect:Nlt,initGraphics:Mlt}});function Olt(e){let t=Ue().journey,r=t.maxLabelWidth;Rw=0;let i=60;Object.keys(yu).forEach(n=>{let a=yu[n].color,o={cx:20,cy:i,r:7,fill:a,stroke:"#000",pos:yu[n].position};nb.drawCircle(e,o);let l=e.append("text").attr("visibility","hidden").text(n),h=l.node().getBoundingClientRect().width;l.remove();let u=[];if(h<=r)u=[n];else{let d=n.split(" "),p="";l=e.append("text").attr("visibility","hidden"),d.forEach(g=>{let m=p?`${p} ${g}`:g;if(l.text(m),l.node().getBoundingClientRect().width>r){if(p&&u.push(p),p=g,l.text(g),l.node().getBoundingClientRect().width>r){let y="";for(let x of g)y+=x,l.text(y+"-"),l.node().getBoundingClientRect().width>r&&(u.push(y.slice(0,-1)+"-"),y=x);p=y}}else p=m}),p&&u.push(p),l.remove()}u.forEach((d,p)=>{var y;let g={x:40,y:i+7+p*20,fill:"#666",text:d,textMargin:(y=t.boxTextMargin)!=null?y:5},m=nb.drawText(e,g).node().getBoundingClientRect().width;m>Rw&&m>t.leftMargin-m&&(Rw=m)}),i+=Math.max(20,u.length*20)})}f(Olt,"Akt");var $lt,yu,Rw,Zl,Wd,Blt,vl,YR,Rle,Plt,Ile,nCt=Y(()=>{"use strict";ui(),iCt(),vr(),Bn(),$lt=s(function(e){Object.keys(e).forEach(function(t){Zl[t]=e[t]})},"setConf"),yu={},Rw=0,s(Olt,"drawActorLegend"),Zl=Ue().journey,Wd=0,Blt=s(function(e,t,r,i){let n=Ue(),a=n.journey.titleColor,o=n.journey.titleFontSize,l=n.journey.titleFontFamily,h=n.securityLevel,u;h==="sandbox"&&(u=Lt("#i"+t));let d=Lt(h==="sandbox"?u.nodes()[0].contentDocument.body:"body");vl.init();let p=d.select("#"+t);nb.initGraphics(p,t);let g=i.db.getTasks(),m=i.db.getDiagramTitle(),y=i.db.getActors();for(let R in yu)delete yu[R];let x=0;y.forEach(R=>{yu[R]={color:Zl.actorColours[x%Zl.actorColours.length],position:x},x++}),Olt(p),Wd=Zl.leftMargin+Rw,vl.insert(0,0,Wd,Object.keys(yu).length*50),Plt(p,g,0,t);let C=vl.getBounds();m&&p.append("text").text(m).attr("x",Wd).attr("font-size",o).attr("font-weight","bold").attr("y",25).attr("fill",a).attr("font-family",l);let w=C.stopy-C.starty+2*Zl.diagramMarginY,_=Wd+C.stopx+2*Zl.diagramMarginX;Ta(p,w,_,Zl.useMaxWidth),p.append("line").attr("x1",Wd).attr("y1",Zl.height*4).attr("x2",_-Wd-4).attr("y2",Zl.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+t+"-arrowhead)");let S=m?70:0;p.attr("viewBox",`${C.startx} -25 ${_} ${w+S}`),p.attr("preserveAspectRatio","xMinYMin meet"),p.attr("height",w+S+25)},"draw"),vl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(e,t,r,i){e[t]===void 0?e[t]=r:e[t]=i(r,e[t])},"updateVal"),updateBounds:s(function(e,t,r,i){let n=Ue().journey,a=this,o=0;function l(h){return s(function(u){o++;let d=a.sequenceItems.length-o+1;a.updateVal(u,"starty",t-d*n.boxMargin,Math.min),a.updateVal(u,"stopy",i+d*n.boxMargin,Math.max),a.updateVal(vl.data,"startx",e-d*n.boxMargin,Math.min),a.updateVal(vl.data,"stopx",r+d*n.boxMargin,Math.max),h!=="activation"&&(a.updateVal(u,"startx",e-d*n.boxMargin,Math.min),a.updateVal(u,"stopx",r+d*n.boxMargin,Math.max),a.updateVal(vl.data,"starty",t-d*n.boxMargin,Math.min),a.updateVal(vl.data,"stopy",i+d*n.boxMargin,Math.max))},"updateItemBounds")}f(l,"l"),s(l,"updateFn"),this.sequenceItems.forEach(l())},"updateBounds"),insert:s(function(e,t,r,i){let n=Math.min(e,r),a=Math.max(e,r),o=Math.min(t,i),l=Math.max(t,i);this.updateVal(vl.data,"startx",n,Math.min),this.updateVal(vl.data,"starty",o,Math.min),this.updateVal(vl.data,"stopx",a,Math.max),this.updateVal(vl.data,"stopy",l,Math.max),this.updateBounds(n,o,a,l)},"insert"),bumpVerticalPos:s(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},YR=Zl.sectionFills,Rle=Zl.sectionColours,Plt=s(function(e,t,r,i){let n=Ue().journey,a="",o=n.height*2+n.diagramMarginY,l=r+o,h=0,u="#CCC",d="black",p=0;for(let[g,m]of t.entries()){if(a!==m.section){u=YR[h%YR.length],p=h%YR.length,d=Rle[h%Rle.length];let x=0,C=m.section;for(let _=g;_<t.length&&t[_].section==C;_++)x=x+1;let w={x:g*n.taskMargin+g*n.width+Wd,y:50,text:m.section,fill:u,num:p,colour:d,taskCount:x};nb.drawSection(e,w,n),a=m.section,h++}let y=m.people.reduce((x,C)=>(yu[C]&&(x[C]=yu[C]),x),{});m.x=g*n.taskMargin+g*n.width+Wd,m.y=l,m.width=n.diagramMarginX,m.height=n.diagramMarginY,m.colour=d,m.fill=u,m.num=p,m.actors=y,nb.drawTask(e,m,n,i),vl.insert(m.x,m.y,m.x+m.width+n.taskMargin,450)}},"drawTasks"),Ile={setConf:$lt,draw:Blt}}),Flt={};Jr(Flt,{diagram:f(()=>zlt,"diagram")});var zlt,aCt=Y(()=>{"use strict";eCt(),tCt(),rCt(),nCt(),zlt={parser:vlt,db:Sle,renderer:Ile,styles:Alt,init:s(e=>{Ile.setConf(e.journey),Sle.clear()},"init")}}),XR,qlt,sCt=Y(()=>{"use strict";XR=(function(){var e=s(function(g,m,y,x){for(y=y||{},x=g.length;x--;y[g[x]]=m);return y},"o"),t=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],n=[1,14],a=[1,15],o=[1,16],l=[1,19],h=[1,20],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:s(function(g,m,y,x,C,w,_){var S=w.length-1;switch(C){case 1:return w[S-1];case 3:x.setDirection("LR");break;case 4:x.setDirection("TD");break;case 5:this.$=[];break;case 6:w[S-1].push(w[S]),this.$=w[S-1];break;case 7:case 8:this.$=w[S];break;case 9:case 10:this.$=[];break;case 11:x.getCommonDb().setDiagramTitle(w[S].substr(6)),this.$=w[S].substr(6);break;case 12:this.$=w[S].trim(),x.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=w[S].trim(),x.getCommonDb().setAccDescription(this.$);break;case 15:x.addSection(w[S].substr(8)),this.$=w[S].substr(8);break;case 18:x.addTask(w[S],0,""),this.$=w[S];break;case 19:x.addEvent(w[S].substr(2)),this.$=w[S];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:n,19:a,20:o,21:17,22:18,23:l,24:h},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:r,15:i,17:n,19:a,20:o,21:17,22:18,23:l,24:h},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:s(function(g,m){if(m.recoverable)this.trace(g);else{var y=new Error(g);throw y.hash=m,y}},"parseError"),parse:s(function(g){var m=this,y=[0],x=[],C=[null],w=[],_=this.table,S="",R=0,b=0,v=0,k=2,E=1,A=w.slice.call(arguments,1),I=Object.create(this.lexer),$={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&($.yy[O]=this.yy[O]);I.setInput(g,$.yy),$.yy.lexer=I,$.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var j=I.yylloc;w.push(j);var D=I.options&&I.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function P(se){y.length=y.length-2*se,C.length=C.length-se,w.length=w.length-se}f(P,"L"),s(P,"popStack");function F(){var se;return se=x.pop()||I.lex()||E,typeof se!="number"&&(se instanceof Array&&(x=se,se=x.pop()),se=m.symbols_[se]||se),se}f(F,"B"),s(F,"lex");for(var U,z,V,W,X,J,H={},te,ie,oe,he;;){if(V=y[y.length-1],this.defaultActions[V]?W=this.defaultActions[V]:((U===null||typeof U>"u")&&(U=F()),W=_[V]&&_[V][U]),typeof W>"u"||!W.length||!W[0]){var pe="";he=[];for(te in _[V])this.terminals_[te]&&te>k&&he.push("'"+this.terminals_[te]+"'");I.showPosition?pe="Parse error on line "+(R+1)+`: 2561`+I.showPosition()+` 2562Expecting `+he.join(", ")+", got '"+(this.terminals_[U]||U)+"'":pe="Parse error on line "+(R+1)+": Unexpected "+(U==E?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(pe,{text:I.match,token:this.terminals_[U]||U,line:I.yylineno,loc:j,expected:he})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+U);switch(W[0]){case 1:y.push(U),C.push(I.yytext),w.push(I.yylloc),y.push(W[1]),U=null,z?(U=z,z=null):(b=I.yyleng,S=I.yytext,R=I.yylineno,j=I.yylloc,v>0&&v--);break;case 2:if(ie=this.productions_[W[1]][1],H.$=C[C.length-ie],H._$={first_line:w[w.length-(ie||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(ie||1)].first_column,last_column:w[w.length-1].last_column},D&&(H._$.range=[w[w.length-(ie||1)].range[0],w[w.length-1].range[1]]),J=this.performAction.apply(H,[S,b,R,$.yy,W[1],C,w].concat(A)),typeof J<"u")return J;ie&&(y=y.slice(0,-1*ie*2),C=C.slice(0,-1*ie),w=w.slice(0,-1*ie)),y.push(this.productions_[W[1]][0]),C.push(H.$),w.push(H._$),oe=_[y[y.length-2]][y[y.length-1]],y.push(oe);break;case 3:return!0}}return!0},"parse")},d=(function(){var g={EOF:1,parseError:s(function(m,y){if(this.yy.parser)this.yy.parser.parseError(m,y);else throw new Error(m)},"parseError"),setInput:s(function(m,y){return this.yy=y||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 y=m.match(/(?:\r\n?|\n).*/g);return y?(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 y=m.length,x=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var C=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),x.length-1&&(this.yylineno-=x.length-1);var w=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:x?(x.length===C.length?this.yylloc.first_column:0)+C[C.length-x.length].length-x[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-y]),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). 2563`+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(),y=new Array(m.length+1).join("-");return m+this.upcomingInput()+` 2564`+y+"^"},"showPosition"),test_match:s(function(m,y){var x,C,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),C=m[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.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],x=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var _ in w)this[_]=w[_];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,y,x,C;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),_=0;_<w.length;_++)if(x=this._input.match(this.rules[w[_]]),x&&(!y||x[0].length>y[0].length)){if(y=x,C=_,this.options.backtrack_lexer){if(m=this.test_match(x,w[_]),m!==!1)return m;if(this._backtrack){y=!1;continue}else return!1}else if(!this.options.flex)break}return y?(m=this.test_match(y,w[C]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2565`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var m=this.next();return m||this.lex()},"lex"),begin:s(function(m){this.conditionStack.push(m)},"begin"),popState:s(function(){var m=this.conditionStack.length-1;return m>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(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:s(function(m){this.begin(m)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(m,y,x,C){var w=C;switch(x){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return g})();u.lexer=d;function p(){this.yy={}}return f(p,"f"),s(p,"Parser"),p.prototype=u,u.Parser=p,new p})(),XR.parser=XR,qlt=XR}),jlt={};Jr(jlt,{addEvent:f(()=>qle,"addEvent"),addSection:f(()=>Ble,"addSection"),addTask:f(()=>zle,"addTask"),addTaskOrg:f(()=>jle,"addTaskOrg"),clear:f(()=>Mle,"clear"),default:f(()=>Glt,"default"),getCommonDb:f(()=>Nle,"getCommonDb"),getDirection:f(()=>$le,"getDirection"),getSections:f(()=>Ple,"getSections"),getTasks:f(()=>Fle,"getTasks"),setDirection:f(()=>Ole,"setDirection")});var q1,Dle,KR,ZR,Iw,j1,Nle,Mle,Ole,$le,Ble,Ple,Fle,zle,qle,jle,Gle,Glt,oCt=Y(()=>{"use strict";En(),q1="",Dle=0,KR="LR",ZR=[],Iw=[],j1=[],Nle=s(()=>MM,"getCommonDb"),Mle=s(function(){ZR.length=0,Iw.length=0,q1="",j1.length=0,KR="LR",Tn()},"clear"),Ole=s(function(e){KR=e},"setDirection"),$le=s(function(){return KR},"getDirection"),Ble=s(function(e){q1=e,ZR.push(e)},"addSection"),Ple=s(function(){return ZR},"getSections"),Fle=s(function(){let e=Gle(),t=100,r=0;for(;!e&&r<t;)e=Gle(),r++;return Iw.push(...j1),Iw},"getTasks"),zle=s(function(e,t,r){let i={id:Dle++,section:q1,type:q1,task:e,score:t||0,events:r?[r]:[]};j1.push(i)},"addTask"),qle=s(function(e){j1.find(t=>t.id===Dle-1).events.push(e)},"addEvent"),jle=s(function(e){let t={section:q1,type:q1,description:e,task:e,classes:[]};Iw.push(t)},"addTaskOrg"),Gle=s(function(){let e=s(function(r){return j1[r].processed},"compileTask"),t=!0;for(let[r,i]of j1.entries())e(r),t=t&&i.processed;return t},"compileTasks"),Glt={clear:Mle,getCommonDb:Nle,getDirection:$le,setDirection:Ole,addSection:Ble,getSections:Ple,getTasks:Fle,addTask:zle,addTaskOrg:jle,addEvent:qle}});function Ule(e,t){e.each(function(){var r=Lt(this),i=r.text().split(/(\s+|<br>)/).reverse(),n,a=[],o=1.1,l=r.attr("y"),h=parseFloat(r.attr("dy")),u=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",h+"em");for(let d=0;d<i.length;d++)n=i[i.length-1-d],a.push(n),u.text(a.join(" ").trim()),(u.node().getComputedTextLength()>t||n==="<br>")&&(a.pop(),u.text(a.join(" ").trim()),n==="<br>"?a=[""]:a=[n],u=r.append("tspan").attr("x",0).attr("y",l).attr("dy",o+"em").text(n))})}f(Ule,"r7e");var Vle,Dw,Ult,Vlt,Wle,Wlt,Hlt,QR,Ylt,Xlt,Klt,JR,Hle,Zlt,Qlt,Jlt,ect,Eo,tct=Y(()=>{"use strict";ui(),Vle=0,Dw=s(function(e,t){let r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},"drawRect"),Ult=s(function(e,t){let r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function n(l){let h=Lg().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}f(n,"a"),s(n,"smile");function a(l){let h=Lg().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);l.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}f(a,"s"),s(a,"sad");function o(l){l.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return f(o,"l"),s(o,"ambivalent"),t.score>3?n(i):t.score<3?a(i):o(i),r},"drawFace"),Vlt=s(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),Wle=s(function(e,t){let r=t.text.replace(/<br\s*\/?>/gi," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class!==void 0&&i.attr("class",t.class);let n=i.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),i},"drawText"),Wlt=s(function(e,t){function r(n,a,o,l,h){return n+","+a+" "+(n+o)+","+a+" "+(n+o)+","+(a+l-h)+" "+(n+o-h*1.2)+","+(a+l)+" "+n+","+(a+l)}f(r,"r"),s(r,"genPoints");let i=e.append("polygon");i.attr("points",r(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Wle(e,t)},"drawLabel"),Hlt=s(function(e,t,r){let i=e.append("g"),n=JR();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=r.width,n.height=r.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,Dw(i,n),Hle(r)(t.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),QR=-1,Ylt=s(function(e,t,r,i){let n=t.x+r.width/2,a=e.append("g");QR++,a.append("line").attr("id",i+"-task"+QR).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ult(a,{cx:n,cy:300+(5-t.score)*30,score:t.score});let o=JR();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,Dw(a,o),Hle(r)(t.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,t.colour)},"drawTask"),Xlt=s(function(e,t){Dw(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Klt=s(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),JR=s(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Hle=(function(){function e(n,a,o,l,h,u,d,p){let g=a.append("text").attr("x",o+h/2).attr("y",l+u/2+5).style("font-color",p).style("text-anchor","middle").text(n);i(g,d)}f(e,"e"),s(e,"byText");function t(n,a,o,l,h,u,d,p,g){let{taskFontSize:m,taskFontFamily:y}=p,x=n.split(/<br\s*\/?>/gi);for(let C=0;C<x.length;C++){let w=C*m-m*(x.length-1)/2,_=a.append("text").attr("x",o+h/2).attr("y",l).attr("fill",g).style("text-anchor","middle").style("font-size",m).style("font-family",y);_.append("tspan").attr("x",o+h/2).attr("dy",w).text(x[C]),_.attr("y",l+u/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(_,d)}}f(t,"t"),s(t,"byTspan");function r(n,a,o,l,h,u,d,p){let g=a.append("switch"),m=g.append("foreignObject").attr("x",o).attr("y",l).attr("width",h).attr("height",u).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,g,o,l,h,u,d,p),i(m,d)}f(r,"r"),s(r,"byFo");function i(n,a){for(let o in a)o in a&&n.attr(o,a[o])}return f(i,"i"),s(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),Zlt=s(function(e,t){Vle=0,QR=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),s(Ule,"wrap"),Qlt=s(function(e,t,r,i,n,a=!1){var C,w,_,S,R,b;let{theme:o,look:l}=i,h=o==null?void 0:o.includes("redux"),u=(w=(C=i==null?void 0:i.themeVariables)==null?void 0:C.THEME_COLOR_LIMIT)!=null?w:12,d=r%u-1,p=e.append("g");t.section=d,p.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+d));let g=p.append("g"),m=p.append("g"),y=m.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Ule,t.width).node().getBBox(),x=(_=i.fontSize)!=null&&_.replace?i.fontSize.replace("px",""):i.fontSize;if(t.height=y.height+x*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,m.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),h&&m.attr("transform",`translate(${t.width/2}, ${a?t.padding/2+3:t.padding}
2565)`),ect(g,t,d,n,i),l==="neo"&&(p.attr("data-look","neo"),h)){let v=o.includes("dark"),k=(R=(S=e.node())==null?void 0:S.ownerSVGElement)!=null?R:e.node(),E=Lt(k),A=(b=E.attr("id"))!=null?b:"",I=A?`${A}-drop-shadow`:"drop-shadow";if(E.select(`#${I}`).empty()){let $=E.select("defs");($.empty()?E.append("defs"):$).append("filter").attr("id",I).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}return t},"drawNode"),Jlt=s(function(e,t,r){var o;let i=e.append("g"),n=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Ule,t.width).node().getBBox(),a=(o=r.fontSize)!=null&&o.replace?r.fontSize.replace("px",""):r.fontSize;return i.remove(),n.height+a*1.1*.5+t.padding},"getVirtualNodeHeight"),ect=s(function(e,t,r,i,n){let{theme:a}=n,o=a!=null&&a.includes("redux")?0:5,l=5,h=o>0?`M0 ${t.height-l} v${-t.height+2*l} q0,-${o},${o},-${o} h${t.width-2*l} q${o},0,${o},${o} v${t.height-l} H0 Z`:`M0 ${t.height-l} v${-(t.height-l)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",i+"-node-"+Vle++).attr("class","node-bkg node-"+t.type).attr("d",h),a!=null&&a.includes("redux")||e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),Eo={drawRect:Dw,drawCircle:Vlt,drawSection:Hlt,drawText:Wle,drawLabel:Wlt,drawTask:Ylt,drawBackgroundRect:Xlt,getTextObj:Klt,getNoteRect:JR,initGraphics:Zlt,drawNode:Qlt,getVirtualNodeHeight:Jlt}}),rct,Yle,ict,nct,lCt=Y(()=>{"use strict";ui(),tct(),jt(),vr(),Bn(),rct=s(function(e,t,r,i){var j,D,P,F,U,z;let n=Ue(),{look:a,theme:o,themeVariables:l}=n,{useGradient:h,gradientStart:u,gradientStop:d}=l,p=(D=(j=n.timeline)==null?void 0:j.leftMargin)!=null?D:50;ge.debug("timeline",i.db);let g=n.securityLevel,m;g==="sandbox"&&(m=Lt("#i"+t));let y=Lt(g==="sandbox"?m.nodes()[0].contentDocument.body:"body").select("#"+t);y.append("g");let x=i.db.getTasks(),C=i.db.getCommonDb().getDiagramTitle();ge.debug("task",x),Eo.initGraphics(y,t);let w=i.db.getSections();ge.debug("sections",w);let _=0,S=0,R=0,b=0,v=50+p,k=50;b=50;let E=0,A=!0;w.forEach(function(V){let W={number:E,descr:V,section:E,width:150,padding:20,maxHeight:_},X=Eo.getVirtualNodeHeight(y,W,n);ge.debug("sectionHeight before draw",X),_=Math.max(_,X+20)});let I=0,$=0;ge.debug("tasks.length",x.length);for(let[V,W]of x.entries()){let X={number:V,descr:W,section:W.section,width:150,padding:20,maxHeight:S},J=Eo.getVirtualNodeHeight(y,X,n);ge.debug("taskHeight before draw",J),S=Math.max(S,J+20),I=Math.max(I,W.events.length);let H=0;for(let te of W.events){let ie={descr:te,section:W.section,number:W.section,width:150,padding:20,maxHeight:50};H+=Eo.getVirtualNodeHeight(y,ie,n)}W.events.length>0&&(H+=(W.events.length-1)*10),$=Math.max($,H)}ge.debug("maxSectionHeight before draw",_),ge.debug("maxTaskHeight before draw",S),w&&w.length>0?w.forEach(V=>{let W=x.filter(te=>te.section===V),X={number:E,descr:V,section:E,width:200*Math.max(W.length,1)-50,padding:20,maxHeight:_};ge.debug("sectionNode",X);let J=y.append("g"),H=Eo.drawNode(J,X,E,n,t);ge.debug("sectionNode output",H),J.attr("transform",`translate(${v}, ${b})`),k+=_+50,W.length>0&&Yle(y,W,E,v,k,S,n,I,$,_,!1,t),v+=200*Math.max(W.length,1),k=b,E++}):(A=!1,Yle(y,x,E,v,k,S,n,I,$,_,!0,t));let O=y.node().getBBox();if(ge.debug("bounds",O),C&&y.append("text").text(C).attr("x",a==="neo"?O.x*2+p:O.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),R=A?_+S+150:S+100,y.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",R).attr("x2",O.width+3*p).attr("y2",R).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),a==="neo"&&h&&o!=="neutral"){let V=y.select("defs"),W=(V.empty()?
2565y.append("defs"):V).append("linearGradient").attr("id",y.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");W.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),W.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}fg(void 0,y,(F=(P=n.timeline)==null?void 0:P.padding)!=null?F:50,(z=(U=n.timeline)==null?void 0:U.useMaxWidth)!=null?z:!1)},"draw"),Yle=s(function(e,t,r,i,n,a,o,l,h,u,d,p){var g;for(let m of t){let y={descr:m.task,section:r,number:r,width:150,padding:20,maxHeight:a};ge.debug("taskNode",y);let x=e.append("g").attr("class","taskWrapper"),C=Eo.drawNode(x,y,r,o,p).height;if(ge.debug("taskHeight after draw",C),x.attr("transform",`translate(${i}, ${n})`),a=Math.max(a,C),m.events){let w=e.append("g").attr("class","lineWrapper"),_=a;n+=100,_=_+ict(e,m.events,r,i,n,o,p),n-=100,w.append("line").attr("x1",i+190/2).attr("y1",n+a).attr("x2",i+190/2).attr("y2",n+a+100+h+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}i=i+200,d&&!((g=o.timeline)!=null&&g.disableMulticolor)&&r++}n=n-10},"drawTasks"),ict=s(function(e,t,r,i,n,a,o){let l=0,h=n;n=n+100;for(let u of t){let d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};ge.debug("eventNode",d);let p=e.append("g").attr("class","eventWrapper"),g=Eo.drawNode(p,d,r,a,o,!0).height;l=l+g,p.attr("transform",`translate(${i}, ${n})`),n=n+10+g}return n=h,l},"drawEvents"),nct={setConf:s(()=>{},"setConf"),draw:rct}}),Nw,vu,act,eI,sct,Xle,oct,Kle,Zle,Qle,Jle,lct,ece,cct,hct,cCt=Y(()=>{"use strict";tct(),jt(),vr(),Bn(),Ho(),wr(),Nw=200,vu=5,act=Nw+vu*2,eI=Nw+100,sct=eI+vu*2,Xle=10,oct=0,Kle=20,Zle=20,Qle=30,Jle=50,lct=s(function(e,t,r,i){var D,P,F,U,z,V,W,X;let n=Ue(),a=(P=(D=n.timeline)==null?void 0:D.leftMargin)!=null?P:50;ge.debug("timeline",i.db);let o=Co(t);o.append("g");let l=i.db.getTasks(),h=i.db.getCommonDb().getDiagramTitle();ge.debug("task",l),Eo.initGraphics(o);let u=i.db.getSections();ge.debug("sections",u);let d=0,p=0,g=50+a,m=50,y=m,x=g,C=act+Zle,w=sct+Jle,_=x+C,S=0,R=u&&u.length>
25650,b=R?_:g+C,v=Math.max(50,C+w-vu*2);u.forEach(function(J){let H={number:S,descr:J,section:S,width:v,padding:vu,maxHeight:d},te=Eo.getVirtualNodeHeight(o,H,n);ge.debug("sectionHeight before draw",te),d=Math.max(d,te)});let k=0;ge.debug("tasks.length",l.length);for(let[J,H]of l.entries()){let te={number:J,descr:H,section:H.section,width:Nw,padding:vu,maxHeight:p},ie=Eo.getVirtualNodeHeight(o,te,n);ge.debug("taskHeight before draw",ie),p=Math.max(p,ie);let oe=0;for(let he of H.events){let pe={descr:he,section:H.section,number:H.section,width:eI,padding:vu,maxHeight:50};oe+=Eo.getVirtualNodeHeight(o,pe,n)}H.events.length>0&&(oe+=(H.events.length-1)*Xle),k=Math.max(k,oe)+oct}ge.debug("maxSectionHeight before draw",d),ge.debug("maxTaskHeight before draw",p);let E=Math.max(p,k)+Qle;R?u.forEach(J=>{let H=l.filter(ue=>ue.section===J),te={number:S,descr:J,section:S,width:v,padding:vu,maxHeight:d};ge.debug("sectionNode",te);let ie=o.append("g"),oe=Eo.drawNode(ie,te,S,n);ge.debug("sectionNode output",oe);let he=b-C;ie.attr("transform",`translate(${he}, ${m})`);let pe=m+oe.height+Kle;H.length>0&&ece(o,H,S,b,pe,p,n,E,!1);let se=H.length,le=oe.height+Kle+E*Math.max(se,1)-(se>0?Qle*2:0);m+=le,S++}):ece(o,l,S,b,m,p,n,E,!0);let A=(F=o.node())==null?void 0:F.getBBox();if(!A)throw new Error("bbox not found");if(ge.debug("bounds",A),h){if(o.append("text").text(h).attr("x",A.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),A=(U=o.node())==null?void 0:U.getBBox(),!A)throw new Error("bbox not found");ge.debug("bounds after title",A)}let[I]=Eh(n.fontSize),$=(I!=null?I:16)*2,O=(I!=null?I:16)*.5+20,j=o.append("g").attr("class","lineWrapper");
2565j.append("line").attr("x1",b).attr("y1",y-$).attr("x2",b).attr("y2",A.y+A.height+O).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),j.lower(),fg(void 0,o,(V=(z=n.timeline)==null?void 0:z.padding)!=null?V:50,(X=(W=n.timeline)==null?void 0:W.useMaxWidth)!=null?X:!1)},"draw"),ece=s(function(e,t,r,i,n,a,o,l,h){var u;for(let d of t){let p={descr:d.task,section:r,number:r,width:Nw,padding:vu,maxHeight:a};ge.debug("taskNode",p);let g=e.append("g").attr("class","taskWrapper"),m=Eo.drawNode(g,p,r,o),y=m.height;ge.debug("taskHeight after draw",y);let x=i-Zle-m.width;if(g.attr("transform",`translate(${x}, ${n})`),a=Math.max(a,y),d.events&&d.events.length>0){let C=n,w=i+Jle;cct(e,d.events,r,i,w,C,o)}n=n+l,h&&!((u=o.timeline)!=null&&u.disableMulticolor)&&r++}},"drawTasks"),cct=s(function(e,t,r,i,n,a,o){let l=a;for(let h of t){let u={descr:h,section:r,number:r,width:eI,padding:vu,maxHeight:0};ge.debug("eventNode",u);let d=e.append("g").attr("class","eventWrapper"),p=Eo.drawNode(d,u,r,o).height;d.attr("transform",`translate(${n}, ${l})`);let g=e.append("g").attr("class","lineWrapper"),m=l+p/2;g.append("line").attr("x1",i).attr("y1",m).attr("x2",n).attr("y2",m).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+p+Xle}return l-a},"drawEvents"),hct={setConf:s(()=>{},"setConf"),draw:lct}}),uct,dct,pct,gct,hCt=Y(()=>{"use strict";Ya(),ti(),uct=s(e=>{var l,h,u,d,p;let{theme:t}=Ir(),r=t==null?void 0:t.includes("dark"),i=t==null?void 0:t.includes("color"),n=(h=(l=e.svgId)==null?void 0:l.replace(/^#/,""))!=null?h:"",a=n?`url(#${n}-drop-shadow)`:(u=e.dropShadow)!=null?u:"none",o="";for(let g=0;g<e.THEME_COLOR_LIMIT;g++){let m=`${17-3*g}`,y=i?e.borderColorArray[g]:e.mainBkg,x=i?e.borderColorArray[g]:e.nodeBorder;o+=` 2566 .section-${g-1} rect, 2567 .section-${g-1} path, 2568 .section-${g-1} circle { 2569 fill: ${r&&i?e.mainBkg:y}; 2570 stroke: ${x}; 2571 stroke-width: ${e.strokeWidth}; 2572 filter: ${a}; 2573 } 2574 2575 .section-${g-1} text { 2576 fill: ${e.nodeBorder}; 2577 font-weight: ${e.fontWeight} 2578 } 2579 2580 .node-icon-${g-1} { 2581 font-size: 40px; 2582 color: ${e["cScaleLabel"+g]}; 2583 } 2584 2585 .section-edge-${g-1} { 2586 stroke: ${e["cScale"+g]}; 2587 } 2588 2589 .edge-depth-${g-1} { 2590 stroke-width: ${m}; 2591 } 2592 2593 .section-${g-1} line { 2594 stroke: ${e["cScaleInv"+g]}; 2595 stroke-width: 3; 2596 } 2597 2598 .lineWrapper line { 2599 stroke: ${e.nodeBorder}; 2600 stroke-width:${e.strokeWidth} 2601 } 2602 2603 .disabled, 2604 .disabled circle, 2605 .disabled text { 2606 fill: ${(d=e.tertiaryColor)!=null?d:"lightgray"}; 2607 } 2608 2609 .disabled text { 2610 fill: ${(p=e.clusterBorder)!=null?p:"#efefef"}; 2611 } 2612 `}return o},"genReduxSections"),dct=s(e=>{var r,i;let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],Is(e["lineColor"+n])?e["lineColor"+n]=mt(e["lineColor"+n],20):e["lineColor"+n]=yt(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let a=""+(17-3*n);t+=` 2613 .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path { 2614 fill: ${e["cScale"+n]}; 2615 } 2616 .section-${n-1} text { 2617 fill: ${e["cScaleLabel"+n]}; 2618 } 2619 .node-icon-${n-1} { 2620 font-size: 40px; 2621 color: ${e["cScaleLabel"+n]}; 2622 } 2623 .section-edge-${n-1}{ 2624 stroke: ${e["cScale"+n]}; 2625 } 2626 .edge-depth-${n-1}{ 2627 stroke-width: ${a}; 2628 } 2629 .section-${n-1} line { 2630 stroke: ${e["cScaleInv"+n]} ; 2631 stroke-width: 3; 2632 } 2633 2634 .lineWrapper line{ 2635 stroke: ${e["cScaleLabel"+n]} ; 2636 } 2637 2638 .disabled, .disabled circle, .disabled text { 2639 fill: ${(r=e.tertiaryColor)!=null?r:"lightgray"}; 2640 } 2641 .disabled text { 2642 fill: ${(i=e.clusterBorder)!=null?i:"#efefef"}; 2643 } 2644 `}return t},"genSections"),pct=s(e=>{var o,l;let{theme:t}=Ir(),r=t==null?void 0:t.includes("redux"),i=t==="neutral",n=(l=(o=e.svgId)==null?void 0:o.replace(/^#/,""))!=null?l:"",a="";if(e.useGradient&&n&&e.THEME_COLOR_LIMIT&&!i)for(let h=0;h<e.THEME_COLOR_LIMIT;h++)a+=` 2645 .section-${h-1}[data-look="neo"] rect, 2646 .section-${h-1}[data-look="neo"] path, 2647 .section-${h-1}[data-look="neo"] circle { 2648 fill: ${e.mainBkg}; 2649 stroke: url(#${n}-gradient); 2650 stroke-width: 2; 2651 } 2652 .section-${h-1}[data-look="neo"] line { 2653 stroke: url(#${n}-gradient); 2654 stroke-width: 2; 2655 }`;return` 2656 .edge { 2657 stroke-width: 3; 2658 } 2659 ${r?uct(e):dct(e)} 2660 ${a} 2661 .section-root rect, .section-root path, .section-root circle { 2662 fill: ${e.git0}; 2663 } 2664 .section-root text { 2665 fill: ${e.gitBranchLabel0}; 2666 } 2667 .icon-container { 2668 height:100%; 2669 display: flex; 2670 justify-content: center;
2671 align-items: center; 2672 } 2673 .edge { 2674 fill: none; 2675 } 2676 .eventWrapper { 2677 filter: brightness(120%); 2678 } 2679`},"getStyles"),gct=pct}),fct={};Jr(fct,{diagram:f(()=>yct,"diagram")});var mct,yct,uCt=Y(()=>{"use strict";sCt(),oCt(),lCt(),cCt(),hCt(),mct={setConf:s(()=>{},"setConf"),draw:s((e,t,r,i)=>{var n,a,o;return((o=(a=(n=i==null?void 0:i.db)==null?void 0:n.getDirection)==null?void 0:a.call(n))!=null?o:"LR")==="TD"?hct.draw(e,t,r,i):nct.draw(e,t,r,i)},"draw")},yct={db:jlt,renderer:mct,parser:qlt,styles:gct}}),tI,vct,dCt=Y(()=>{"use strict";tI=(function(){var e=s(function(R,b,v,k){for(v=v||{},k=R.length;k--;v[R[k]]=b);return v},"o"),t=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],o=[1,20],l=[1,19],h=[6,7,8],u=[1,26],d=[1,24],p=[1,25],g=[6,7,11],m=[1,6,13,15,16,19,22],y=[1,33],x=[1,34],C=[1,6,7,11,13,15,16,19,22],w={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:s(function(R,b,v,k,E,A,I){var $=A.length-1;switch(E){case 6:case 7:return k;case 8:k.getLogger().trace("Stop NL ");break;case 9:k.getLogger().trace("Stop EOF ");break;case 11:k.getLogger().trace("Stop NL2 ");break;case 12:k.getLogger().trace("Stop EOF2 ");break;case 15:k.getLogger().info("Node: ",A[$].id),k.addNode(A[$-1].length,A[$].id,A[$].descr,A[$].type);break;case 16:k.getLogger().trace("Icon: ",A[$]),k.decorateNode({icon:A[$]});break;case 17:case 21:k.decorateNode({class:A[$]});break;case 18:k.getLogger().trace("SPACELIST");break;case 19:k.getLogger().trace("Node: ",A[$].id),k.addNode(0,A[$].id,A[$].descr,A[$].type);break;case 20:k.decorateNode({icon:A[$]});break;case 25:k.getLogger().trace("node found ..",A[$-2]),this.$={id:A[$-1],descr:A[$-1],type:k.getType(A[$-2],A[$])};break;case 26:this.$={id:A[$],descr:A[$],type:k.nodeType.DEFAULT};break;case 27:k.getLogger().trace("node found ..",A[$-3]),this.$={id:A[$-3],descr:A[$-1],type:k.getType(A[$-2],A[$])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:l},e(h,[2,3]),{1:[2,2]},e(h,[2,4]),e(h,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:l},{6:r,9:22,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:l},{6:u,7:d,10:23,11:p},e(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,23]),e(g,[2,24]),e(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:p},{1:[2,7],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:l},e(m,[2,14],{7:y,11:x}),e(C,[2,8]),e(C,[2,9]),e(C,[2,10]),e(g,[2,15]),e(g,[2,16]),e(g,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:y,11:x}),e(C,[2,11]),e(C,[2,12]),{21:[1,37]},e(g,[2,25]),e(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(R,b){if(b.recoverable)this.trace(R);else{var v=new Error(R);throw v.hash=b,v}},"parseError"),parse:s(function(R){var b=this,v=[0],k=[],E=[null],A=[],I=this.table,$="",O=0,j=0,D=0,P=2,F=1,U=A.slice.call(arguments,1),z=Object.create(this.lexer),V={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(V.yy[W]=this.yy[W]);z.setInput(R,V.yy),V.yy.lexer=z,V.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var X=z.yylloc;A.push(X);var J=z.options&&z.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(qe){v.length=v.length-2*qe,E.length=E.length-qe,A.length=A.length-qe}f(H,"j"),s(H,"popStack");function te(){var qe;return qe=k.pop()||z.lex()||F,typeof qe!="number"&&(qe instanceof Array&&(k=qe,qe=k.pop()),qe=b.symbols_[qe]||qe),qe}f(te,"U"),s(te,"lex");for(var ie,oe,he,pe,se,le,ue={},de,we,De,Ge;;){if(he=v[v.length-1],this.defaultActions[he]?pe=this.defaultActions[he]:((ie===null||typeof ie>"u")&&(ie=te()),pe=I[he]&&I[he][ie]),typeof pe>"u"||!pe.length||!pe[0]){var be="";Ge=[];for(de in I[he])this.terminals_[de]&&de>P&&Ge.push("'"+this.terminals_[de]+"'");z.showPosition?be="Parse error on line "+(O+1)+`: 2680`+z.showPosition()+` 2681Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":be="Parse error on line "+(O+1)+": Unexpected "+(ie==F?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(be,{text:z.match,token:this.terminals_[ie]||ie,line:z.yylineno,loc:X,expected:Ge})}if(pe[0]instanceof Array&&pe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+ie);switch(pe[0]){case 1:v.push(ie),E.push(z.yytext),A.push(z.yylloc),v.push(pe[1]),ie=null,oe?(ie=oe,oe=null):(j=z.yyleng,$=z.yytext,O=z.yylineno,X=z.yylloc,D>0&&D--);break;case 2:if(we=this.productions_[pe[1]][1],ue.$=E[E.length-we],ue._$={first_line:A[A.length-(we||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(we||1)].first_column,last_column:A[A.length-1].last_column},J&&(ue._$.range=[A[A.length-(we||1)].range[0],A[A.length-1].range[1]]),le=this.performAction.apply(ue,[$,j,O,V.yy,pe[1],E,A].concat(U)),typeof le<"u")return le;we&&(v=v.slice(0,-1*we*2),E=E.slice(0,-1*we),A=A.slice(0,-1*we)),v.push(this.productions_[pe[1]][0]),E.push(ue.$),A.push(ue._$),De=I[v[v.length-2]][v[v.length-1]],v.push(De);break;case 3:return!0}}return!0},"parse")},_=(function(){var R={EOF:1,parseError:s(function(b,v){if(this.yy.parser)this.yy.parser.parseError(b,v);else throw new Error(b)},"parseError"),setInput:s(function(b,v){return this.yy=v||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var v=b.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:s(function(b){var v=b.length,k=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var E=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),k.length-1&&(this.yylineno-=k.length-1);var A=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:k?(k.length===E.length?this.yylloc.first_column:0)+E[E.length-k.length].length-k[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-v]),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). 2682`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(b){this.unput(this.match.slice(b))},"less"),pastInput:s(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var b=this.match;
vendor: 4,080 bytes, lines 2682-2684
2682return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var b=this.pastInput(),v=new Array(b.length+1).join("-");return b+this.upcomingInput()+` 2683`+v+"^"},"showPosition"),test_match:s(function(b,v){var k,E,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),E=b[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],k=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var I in A)this[I]=A[I];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,v,k,E;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),I=0;I<A.length;I++)if(k=this._input.match(this.rules[A[I]]),k&&(!v||k[0].length>v[0].length)){if(v=k,E=I,this.options.backtrack_lexer){if(b=this.test_match(k,A[I]),b!==!1)return b;if(this._backtrack){v=!1;continue}else return!1}else if(!this.options.flex)break}return v?(b=this.test_match(v,A[E]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2684`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var b=this.next();return b||this.lex()},"lex"),begin:s(function(b){this.conditionStack.push(b)},"begin"),popState:s(function(){var b=this.conditionStack.length-1;return b>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(b){return b=this.conditionStack.length-1-Math.abs(b||0),b>=0?this.conditionStack[b]:"INITIAL"},"topState"),pushState:s(function(b){this.begin(b)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(b,v,k,E){var A=E;switch(k){case 0:return b.getLogger().trace("Found comment",v.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:b.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return b.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:b.getLogger().trace("end icon"),this.popState();break;case 10:return b.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return b.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return b.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return b.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:b.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;
2684case 25:return b.getLogger().trace("description:",v.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),b.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),b.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),b.getLogger().trace("node end ...",v.yytext),"NODE_DEND";case 30:return this.popState(),b.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),b.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),b.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),b.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),b.getLogger().trace("node end (("),"NODE_DEND";case 35:return b.getLogger().trace("Long description:",v.yytext),20;case 36:return b.getLogger().trace("Long description:",v.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return R})();w.lexer=_;function S(){this.yy={}}return f(S,"T"),s(S,"Parser"),S.prototype=w,w.Parser=S,new S})(),tI.parser=tI,vct=tI});function bct(e,t=0){return(gs[e[t+0]]+gs[e[t+1]]+gs[e[t+2]]+gs[e[t+3]]+"-"+gs[e[t+4]]+gs[e[t+5]]+"-"+gs[e[t+6]]+gs[e[t+7]]+"-"+gs[e[t+8]]+gs[e[t+9]]+"-"+gs[e[t+10]]+gs[e[t+11]]+gs[e[t+12]]+gs[e[t+13]]+gs[e[t+14]]+gs[e[t+15]]).toLowerCase()}f(bct,"C7e");var gs,pCt=Y(()=>{"use strict";gs=[];for(let e=0;e<256;++e)gs.push((e+256).toString(16).slice(1));s(bct,"unsafeStringify")});function xct(){return crypto.getRandomValues(kct)}f(xct,"QW");var kct,gCt=Y(()=>{"use strict";kct=new Uint8Array(16),s(xct,"rng")});function Tct(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():wct(e,t,r)}f(Tct,"fwt");function wct(e,t,r){var n,a,o;e=e||{};let i=(o=(a=e.random)!=null?a:(n=e.rng)==null?void 0:n.call(e))!=null?o:xct();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let l=0;l<16;++l)t[r+l]=i[l];return t}return bct(i)}f(wct,"pwt");var Cct,fCt=Y(()=>{"use strict";gCt(),pCt(),s(Tct,"v4"),s(wct,"_v4"),Cct=Tct}),mCt=Y(()=>{"use strict";fCt()}),Ect,yCt=Y(()=>{"use strict";nl(),wr(),Ect=12}),bu,Sct,vCt=Y(()=>{"use strict";var e;vr(),mCt(),gi(),jt(),rs(),ti(),yCt(),bu={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Sct=(e=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=bu,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(r){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<r)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(r,i,n,a){var p,g,m,y;ge.info("addNode",r,i,n,a);let o=!1;this.nodes.length===0?(this.baseLevel=r,r=0,o=!0):this.baseLevel!==void 0&&(r=r-this.baseLevel,o=!1);let l=Ue(),h=(g=(p=l.mindmap)==null?void 0:p.padding)!=null?g:bi.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2;break}
vendor: 5,084 bytes, lines 2684-2686
2684let u={id:this.count++,nodeId:Ei(i,l),level:r,descr:Ei(n,l),type:a,children:[],width:(y=(m=l.mindmap)==null?void 0:m.maxNodeWidth)!=null?y:bi.mindmap.maxNodeWidth,padding:h,isRoot:o},d=this.getParent(r);if(d)d.children.push(u),this.nodes.push(u);else if(o)this.nodes.push(u);else throw new Error(`There can be only one root. No parent could be found for ("${u.descr}")`)}getType(r,i){switch(ge.debug("In get type",r,i),r){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(r,i){this.elements[r]=i}getElementById(r){return this.elements[r]}decorateNode(r){if(!r)return;let i=Ue(),n=this.nodes[this.nodes.length-1];r.icon&&(n.icon=Ei(r.icon,i)),r.class&&(n.class=Ei(r.class,i))}type2Str(r){switch(r){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(r,i){if(r.level===0?r.section=void 0:r.section=i,r.children)for(let[n,a]of r.children.entries()){let o=r.level===0?n%(Ect-1):i;this.assignSections(a,o)}}flattenNodes(r,i){var u;let n=Ue(),a=["mindmap-node"];r.isRoot===!0?a.push("section-root","section--1"):r.section!==void 0&&a.push(`section-${r.section}`),r.class&&a.push(r.class);let o=a.join(" "),l=s(d=>{var g,m;let p=((m=(g=n.theme)==null?void 0:g.toLowerCase())!=null?m:"").includes("redux");switch(d){case bu.CIRCLE:return"mindmapCircle";case bu.RECT:return"rect";case bu.ROUNDED_RECT:return"rounded";case bu.CLOUD:return"cloud";case bu.BANG:return"bang";case bu.HEXAGON:return"hexagon";case bu.DEFAULT:return p?"rounded":"defaultMindmapNode";case bu.NO_BORDER:default:return"rect"}},"getShapeFromType"),h={id:r.id.toString(),domId:"node_"+r.id.toString(),label:r.descr,labelType:"markdown",isGroup:!1,shape:l(r.type),width:r.width,height:(u=r.height)!=null?u:0,padding:r.padding,cssClasses:o,cssStyles:[],look:n.look,icon:r.icon,x:r.x,y:r.y,level:r.level,nodeId:r.nodeId,type:r.type,section:r.section};if(i.push(h),r.children)for(let d of r.children)this.flattenNodes(d,i)}generateEdges(r,i){if(!r.children)return;let n=Ue();for(let a of r.children){let o="edge";a.section!==void 0&&(o+=` section-edge-${a.section}`);let l=r.level+1;o+=` edge-depth-${l}`;let h={id:`edge_${r.id}_${a.id}`,start:r.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:o,depth:r.level,section:a.section};i.push(h),this.generateEdges(a,i)}}getData(){let r=this.getMindmap(),i=Ue(),n=ode().layout!==void 0,a=i;if(n||(a.layout="cose-bilkent"),!r)return{nodes:[],edges:[],config:a};ge.debug("getData: mindmapRoot",r,i),this.assignSections(r);let o=[],l=[];this.flattenNodes(r,o),this.generateEdges(r,l),ge.debug(`getData: processed ${o.length} nodes and ${l.length} edges`);let h=new Map;for(let u of o)h.set(u.id,{shape:u.shape,width:u.width,height:u.height,padding:u.padding});return{nodes:o,edges:l,config:a,rootNode:r,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(h),type:"mindmap",diagramId:"mindmap-"+Cct()}}getLogger(){return ge}},f(e,"d_"),s(e,"MindmapDB"),e)}),_ct,Act,bCt=Y(()=>{"use strict";jt(),ky(),Of(),$f(),rs(),ti(),_ct=s(async(e,t,r,i)=>{var p,g,m,y;ge.debug(`Rendering mindmap diagram 2685`+e);let n=i.db,a=n.getData(),o=jg(t,a.config.securityLevel);if(a.type=i.type,a.layoutAlgorithm=T2(a.config.layout,{fallback:"cose-bilkent"}),a.diagramId=t,!n.getMindmap())return;a.nodes.forEach(x=>{x.shape==="rounded"?(x.radius=15,x.taper=15,x.stroke="none",x.width=0,x.padding=15):x.shape==="circle"?x.padding=10:x.shape==="rect"?(x.width=0,x.padding=10):x.shape==="hexagon"&&(x.width=0,x.height=0)}),await Mf(a,o);let{themeVariables:l}=Ir(),{useGradient:h,gradientStart:u,gradientStop:d}=l;if(h&&u&&d){let x=o.attr("id"),C=o.append("defs").append("linearGradient").attr("id",`${x}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");C.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),C.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}Hp(o,(g=(p=a.config.mindmap)==null?void 0:p.padding)!=null?g:bi.mindmap.padding,"mindmapDiagram",(y=(m=a.config.mindmap)==null?void 0:m.useMaxWidth)!=null?y:bi.mindmap.useMaxWidth)},"draw"),Act={draw:_ct}}),Lct,Rct,Ict,Dct,xCt=Y(()=>{"use strict";Ya(),Lct=s(e=>{var n;let{theme:t,look:r}=e,i="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)e["lineColor"+a]=e["lineColor"+a]||e["cScaleInv"+a],Is(e["lineColor"+a])?e["lineColor"+a]=mt(e["lineColor"+a],20):e["lineColor"+a]=yt(e["lineColor"+a],20);for(let a=0;a<e.THEME_COLOR_LIMIT;a++){let o=""+(r==="neo"?Math.max(10-(a-1)*2,2):17-3*a);i+=` 2686 .section-${a-1}
2686 rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path { 2687 fill: ${e["cScale"+a]}; 2688 } 2689 .section-${a-1} text { 2690 fill: ${e["cScaleLabel"+a]}; 2691 } 2692 .section-${a-1} span { 2693 color: ${e["cScaleLabel"+a]}; 2694 } 2695 .node-icon-${a-1} { 2696 font-size: 40px; 2697 color: ${e["cScaleLabel"+a]}; 2698 } 2699 .section-edge-${a-1}{ 2700 stroke: ${e["cScale"+a]}; 2701 } 2702 .edge-depth-${a-1}{ 2703 stroke-width: ${o}; 2704 } 2705 .section-${a-1} line { 2706 stroke: ${e["cScaleInv"+a]} ; 2707 stroke-width: 3; 2708 } 2709 2710 .disabled, .disabled circle, .disabled text { 2711 fill: lightgray; 2712 } 2713 .disabled text { 2714 fill: #efefef; 2715 } 2716 [data-look="neo"].mindmap-node.section-${a-1} rect, [data-look="neo"].mindmap-node.section-${a-1} path, [data-look="neo"].mindmap-node.section-${a-1} circle, [data-look="neo"].mindmap-node.section-${a-1} polygon { 2717 fill: ${t==="redux"||t==="redux-dark"||t==="neutral"?e.mainBkg:e["cScale"+a]}; 2718 stroke: ${t==="redux"||t==="redux-dark"?e.nodeBorder:e["cScale"+a]}; 2719 stroke-width: ${(n=e.strokeWidth)!=null?n:2}px; 2720 } 2721 [data-look="neo"].section-edge-${a-1}{ 2722 stroke: ${t!=null&&t.includes("redux")||t==="neo-dark"?e.nodeBorder:e["cScale"+a]}; 2723 } 2724 [data-look="neo"].mindmap-node.section-${a-1} text { 2725 fill: ${t==="redux"||t==="redux-dark"?e.nodeBorder:e["cScaleLabel"+(t==="neutral"?1:a)]}; 2726 } 2727 `}return i},"genSections"),Rct=s((e,t,r)=>{let i="";for(let n=0;n<e;n++)i+=` 2728 [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon { 2729 stroke: url(${t}-gradient); 2730 fill: ${r}; 2731 } 2732 .section-${n-1} line { 2733 stroke-width: 0; 2734 }`;return i},"genGradient"),Ict=s(e=>{let{theme:t}=e,r=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none";return` 2735 .edge { 2736 stroke-width: 3; 2737 } 2738 ${Lct(e)} 2739 .section-root rect, .section-root path, .section-root circle, .section-root polygon { 2740 fill: ${e.git0}; 2741 } 2742 .section-root text { 2743 fill: ${e.gitBranchLabel0}; 2744 } 2745 .section-root span { 2746 color: ${t!=null&&t.includes("redux")?e.nodeBorder:e.gitBranchLabel0}; 2747 } 2748 .icon-container { 2749 height:100%; 2750 display: flex; 2751 justify-content: center; 2752 align-items: center; 2753 } 2754 .edge { 2755 fill: none; 2756 } 2757 .mindmap-node-label { 2758 dy: 1em; 2759 alignment-baseline: middle; 2760 text-anchor: middle; 2761 dominant-baseline: middle; 2762 text-align: center; 2763 } 2764 [data-look="neo"].mindmap-node { 2765 filter: ${i}; 2766 } 2767 [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { 2768 fill: ${t!=null&&t.includes("redux")?e.mainBkg:e.git0}; 2769 } 2770 [data-look="neo"].mindmap-node.section-root .text-inner-tspan { 2771 fill: ${t!=null&&t.includes("redux")?e.nodeBorder:e["cScaleLabel"+(t==="neutral"?1:0)]}; 2772 } 2773 ${e.useGradient&&r&&e.mainBkg?Rct(e.THEME_COLOR_LIMIT,r,e.mainBkg):""} 2774`},"getStyles"),Dct=Ict}),Nct={};Jr(Nct,{diagram:f(()=>Mct,"diagram")});var Mct,kCt=Y(()=>{"use strict";dCt(),vCt(),bCt(),xCt(),Mct={get db(){return new Sct},renderer:Act,parser:vct,styles:Dct}}),rI,Oct,TCt=Y(()=>{"use strict";rI=(function(){var e=s(function(k,E,A,I){for(A=A||{},I=k.length;I--;A[k[I]]=E);return A},"o"),t=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],o=[1,20],l=[1,19],h=[6,7,8],u=[1,26],d=[1,24],p=[1,25],g=[6,7,11],m=[1,31],y=[6,7,11,24],x=[1,6,13,16,17,20,23],C=[1,35],w=[1,36],_=[1,6,7,11,13,16,17,20,23],S=[1,38],R={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:s(function(k,E,A,I,$,O,j){var D=O.length-1;switch($){case 6:case 7:return I;case 8:I.getLogger().trace("Stop NL ");break;case 9:I.getLogger().trace("Stop EOF ");break;case 11:I.getLogger().trace("Stop NL2 ");break;case 12:I.getLogger().trace("Stop EOF2 ");break;case 15:I.getLogger().info("Node: ",O[D-1].id),I.addNode(O[D-2].length,O[D-1].id,O[D-1].descr,O[D-1].type,O[D]);break;case 16:I.getLogger().info("Node: ",O[D].id),I.addNode(O[D-1].length,O[D].id,O[D].descr,O[D].type);break;case 17:I.getLogger().trace("Icon: ",O[D]),I.decorateNode({icon:O[D]});break;case 18:case 23:I.decorateNode({class:O[D]});break;case 19:I.getLogger().trace("SPACELIST");break;case 20:I.getLogger().trace("Node: ",O[D-1].id),I.addNode(0,O[D-1].id,O[D-1].descr,O[D-1].type,O[D]);break;case 21:I.getLogger().trace("Node: ",O[D].id),I.addNode(0,O[D].id,O[D].descr,O[D].type);break;case 22:I.decorateNode({icon:O[D]});break;case 27:I.getLogger().trace("node found ..",O[D-2]),this.$={id:O[D-1],descr:O[D-1],type:I.getType(O[D-2],O[D])};break;case 28:this.$={id:O[D],descr:O[D],type:0};break;case 29:I.getLogger().trace("node found ..",O[D-3]),this.$={id:O[D-3],descr:O[D-1],type:I.getType(O[D-2],O[D])};break;case 30:this.$=O[D-1]+O[D];break;case 31:this.$=O[D];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:l},e(h,[2,3]),{1:[2,2]},e(h,[2,4]),e(h,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:l},{6:r,9:22,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:l},{6:u,7:d,10:23,11:p},e(g,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),e(g,[2,19]),e(g,[2,21],{15:30,24:m}),e(g,[2,22]),e(g,[2,23]),e(y,[2,25]),e(y,[2,26]),e(y,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:p},{1:[2,7],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:l},e(x,[2,14],{7:C,11:w}
vendor: 9,305 bytes, lines 2774-2779
2774),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(g,[2,16],{15:37,24:m}),e(g,[2,17]),e(g,[2,18]),e(g,[2,20],{24:S}),e(y,[2,31]),{21:[1,39]},{22:[1,40]},e(x,[2,13],{7:C,11:w}),e(_,[2,11]),e(_,[2,12]),e(g,[2,15],{24:S}),e(y,[2,30]),{22:[1,41]},e(y,[2,27]),e(y,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(k,E){if(E.recoverable)this.trace(k);else{var A=new Error(k);throw A.hash=E,A}},"parseError"),parse:s(function(k){var E=this,A=[0],I=[],$=[null],O=[],j=this.table,D="",P=0,F=0,U=0,z=2,V=1,W=O.slice.call(arguments,1),X=Object.create(this.lexer),J={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(J.yy[H]=this.yy[H]);X.setInput(k,J.yy),J.yy.lexer=X,J.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var te=X.yylloc;O.push(te);var ie=X.options&&X.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(ke){A.length=A.length-2*ke,$.length=$.length-ke,O.length=O.length-ke}f(oe,"Y"),s(oe,"popStack");function he(){var ke;return ke=I.pop()||X.lex()||V,typeof ke!="number"&&(ke instanceof Array&&(I=ke,ke=I.pop()),ke=E.symbols_[ke]||ke),ke}f(he,"ae"),s(he,"lex");for(var pe,se,le,ue,de,we,De={},Ge,be,qe,Ie;;){if(le=A[A.length-1],this.defaultActions[le]?ue=this.defaultActions[le]:((pe===null||typeof pe>"u")&&(pe=he()),ue=j[le]&&j[le][pe]),typeof ue>"u"||!ue.length||!ue[0]){var Be="";Ie=[];for(Ge in j[le])this.terminals_[Ge]&&Ge>z&&Ie.push("'"+this.terminals_[Ge]+"'");X.showPosition?Be="Parse error on line "+(P+1)+`: 2775`+X.showPosition()+` 2776Expecting `+Ie.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Be="Parse error on line "+(P+1)+": Unexpected "+(pe==V?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Be,{text:X.match,token:this.terminals_[pe]||pe,line:X.yylineno,loc:te,expected:Ie})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+le+", token: "+pe);switch(ue[0]){case 1:A.push(pe),$.push(X.yytext),O.push(X.yylloc),A.push(ue[1]),pe=null,se?(pe=se,se=null):(F=X.yyleng,D=X.yytext,P=X.yylineno,te=X.yylloc,U>0&&U--);break;case 2:if(be=this.productions_[ue[1]][1],De.$=$[$.length-be],De._$={first_line:O[O.length-(be||1)].first_line,last_line:O[O.length-1].last_line,first_column:O[O.length-(be||1)].first_column,last_column:O[O.length-1].last_column},ie&&(De._$.range=[O[O.length-(be||1)].range[0],O[O.length-1].range[1]]),we=this.performAction.apply(De,[D,F,P,J.yy,ue[1],$,O].concat(W)),typeof we<"u")return we;be&&(A=A.slice(0,-1*be*2),$=$.slice(0,-1*be),O=O.slice(0,-1*be)),A.push(this.productions_[ue[1]][0]),$.push(De.$),O.push(De._$),qe=j[A[A.length-2]][A[A.length-1]],A.push(qe);break;case 3:return!0}}return!0},"parse")},b=(function(){var k={EOF:1,parseError:s(function(E,A){if(this.yy.parser)this.yy.parser.parseError(E,A);else throw new Error(E)},"parseError"),setInput:s(function(E,A){return this.yy=A||this.yy||{},this._input=E,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 E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var A=E.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:s(function(E){var A=E.length,I=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var $=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 O=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===$.length?this.yylloc.first_column:0)+$[$.length-I.length].length-I[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[O[0],O[0]+this.yyleng-A]),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). 2777`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(E){this.unput(this.match.slice(E))},"less"),pastInput:s(function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var E=this.pastInput(),A=new Array(E.length+1).join("-");return E+this.upcomingInput()+` 2778`+A+"^"},"showPosition"),test_match:s(function(E,A){var I,$,O;if(this.options.backtrack_lexer&&(O={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&&(O.yylloc.range=this.yylloc.range.slice(0))),$=E[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,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(E[0].length),this.matched+=E[0],I=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var j in O)this[j]=O[j];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,A,I,$;this._more||(this.yytext="",this.match="");for(var O=this._currentRules(),j=0;j<O.length;j++)if(I=this._input.match(this.rules[O[j]]),I&&(!A||I[0].length>A[0].length)){if(A=I,$=j,this.options.backtrack_lexer){if(E=this.test_match(I,O[j]),E!==!1)return E;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(E=this.test_match(A,O[$]),E!==!1?E:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2779`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var E=this.next();return E||this.lex()},"lex"),begin:s(function(E){this.conditionStack.push(E)},"begin"),popState:s(function(){var E=this.conditionStack.length-1;return E>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(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:s(function(E){this.begin(E)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(E,A,I,$){var O=$;switch(I){case 0:return this.pushState("shapeData"),A.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:let j=/\n\s*/g;return A.yytext=A.yytext.replace(j,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return E.getLogger().trace("Found comment",A.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:E.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return E.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:E.getLogger().trace("end icon"),this.popState();break;case 16:return E.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return E.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return E.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return E.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:E.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;
2779case 31:return E.getLogger().trace("description:",A.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),E.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),E.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),E.getLogger().trace("node end ...",A.yytext),"NODE_DEND";case 36:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";case 41:return E.getLogger().trace("Long description:",A.yytext),21;case 42:return E.getLogger().trace("Long description:",A.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return k})();R.lexer=b;function v(){this.yy={}}return f(v,"k"),s(v,"Parser"),v.prototype=R,R.Parser=v,new v})(),rI.parser=rI,Oct=rI}),bl,iI,nI,aI,$ct,Bct,tce,Pct,Fct,Va,zct,qct,jct,Gct,Uct,Vct,Wct,Hct,wCt=Y(()=>{"use strict";vr(),gi(),jt(),rs(),cS(),bl=[],iI=[],nI=0,aI={},$ct=s(()=>{bl=[],iI=[],nI=0,aI={}},"clear"),Bct=s(e=>{if(bl.length===0)return null;let t=bl[0].level,r=null;for(let i=bl.length-1;i>=0;i--)if(bl[i].level===t&&!r&&(r=bl[i]),bl[i].level<t)throw new Error('Items without section detected, found section ("'+bl[i].label+'")');return e===(r==null?void 0:r.level)?null:r},"getSection"),tce=s(function(){return iI},"getSections"),Pct=s(function(){var n,a;let e=[],t=[],r=tce(),i=Ue();for(let o of r){let l={id:o.id,label:Ei((n=o.label)!=null?n:"",i),labelType:"markdown",isGroup:!0,ticket:o.ticket,shape:"kanbanSection",level:o.level,look:i.look};t.push(l);let h=bl.filter(u=>u.parentId===o.id);for(let u of h){let d={id:u.id,parentId:o.id,label:Ei((a=u.label)!=null?a:"",i),labelType:"markdown",isGroup:!1,ticket:u==null?void 0:u.ticket,priority:u==null?void 0:u.priority,assigned:u==null?void 0:u.assigned,icon:u==null?void 0:u.icon,shape:"kanbanItem",level:u.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(d)}}return{nodes:t,edges:e,other:{},config:Ue()}},"getData"),Fct=s((e,t,r,i,n)=>{var u,d,p,g;let a=Ue(),o=(d=(u=a.mindmap)==null?void 0:u.padding)!=null?d:bi.mindmap.padding;switch(i){case Va.ROUNDED_RECT:case Va.RECT:case Va.HEXAGON:o*=2}let l={id:Ei(t,a)||"kbn"+nI++,level:e,label:Ei(r,a),width:(g=(p=a.mindmap)==null?void 0:p.maxNodeWidth)!=null?g:bi.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(n!==void 0){let m;n.includes(` 2780`)?m=n+` 2781`:m=`{ 2782`+n+` 2783}`;let y=w4(m,{schema:T4});if(y.shape&&(y.shape!==y.shape.toLowerCase()||y.shape.includes("_")))throw new Error(`No such shape: ${y.shape}. Shape names should be lowercase.`);y!=null&&y.shape&&y.shape==="kanbanItem"&&(l.shape=y==null?void 0:y.shape),y!=null&&y.label&&(l.label=y==null?void 0:y.label),y!=null&&y.icon&&(l.icon=y==null?void 0:y.icon.toString()),y!=null&&y.assigned&&(l.assigned=y==null?void 0:y.assigned.toString()),y!=null&&y.ticket&&(l.ticket=y==null?void 0:y.ticket.toString()),y!=null&&y.priority&&(l.priority=y==null?void 0:y.priority)}let h=Bct(e);h?l.parentId=h.id||"kbn"+nI++:iI.push(l),bl.push(l)},"addNode"),Va={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},zct=s((e,t)=>{switch(ge.debug("In get type",e,t),e){case"[":return Va.RECT;case"(":return t===")"?Va.ROUNDED_RECT:Va.CLOUD;case"((":return Va.CIRCLE;case")":return Va.CLOUD;case"))":return Va.BANG;case"{{":return Va.HEXAGON;default:return Va.DEFAULT}},"getType"),qct=s((e,t)=>{aI[e]=t},"setElementForId"),jct=s(e=>{if(!e)return;let t=Ue(),r=bl[bl.length-1];
vendor: 10,013 bytes, lines 2783-2865
2783e.icon&&(r.icon=Ei(e.icon,t)),e.class&&(r.cssClasses=Ei(e.class,t))},"decorateNode"),Gct=s(e=>{switch(e){case Va.DEFAULT:return"no-border";case Va.RECT:return"rect";case Va.ROUNDED_RECT:return"rounded-rect";case Va.CIRCLE:return"circle";case Va.CLOUD:return"cloud";case Va.BANG:return"bang";case Va.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Uct=s(()=>ge,"getLogger"),Vct=s(e=>aI[e],"getElementById"),Wct={clear:$ct,addNode:Fct,getSections:tce,getData:Pct,nodeType:Va,getType:zct,setElementForId:qct,decorateNode:jct,type2Str:Gct,getLogger:Uct,getElementById:Vct},Hct=Wct}),Yct,Xct,CCt=Y(()=>{"use strict";vr(),jt(),Ho(),Bn(),rs(),BF(),YF(),Yct=s(async(e,t,r,i)=>{var x,C,w,_,S,R,b;ge.debug(`Rendering kanban diagram 2784`+e);let n=i.db.getData(),a=Ue();a.htmlLabels=!1;let o=Co(t);for(let v of n.nodes)v.domId=`${t}-${v.id}`;let l=o.append("g");l.attr("class","sections");let h=o.append("g");h.attr("class","items");let u=n.nodes.filter(v=>v.isGroup),d=0,p=10,g=[],m=25;for(let v of u){let k=((x=a==null?void 0:a.kanban)==null?void 0:x.sectionWidth)||200;d=d+1,v.x=k*d+(d-1)*p/2,v.width=k,v.y=0,v.height=k*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+d;let E=await BS(l,v);m=Math.max(m,(C=E==null?void 0:E.labelBBox)==null?void 0:C.height),g.push(E)}let y=0;for(let v of u){let k=g[y];y=y+1;let E=((w=a==null?void 0:a.kanban)==null?void 0:w.sectionWidth)||200,A=-E*3/2+m,I=A,$=n.nodes.filter(D=>D.parentId===v.id);for(let D of $){if(D.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");D.x=v.x,D.width=E-1.5*p;let P=(await PS(h,D,{config:a})).node().getBBox();D.y=I+P.height/2,await FS(D),I=D.y+P.height/2+p/2}let O=k.cluster.select("rect"),j=Math.max(I-A+3*p,50)+(m-25);O.attr("height",j)}fg(void 0,o,(S=(_=a.mindmap)==null?void 0:_.padding)!=null?S:bi.kanban.padding,(b=(R=a.mindmap)==null?void 0:R.useMaxWidth)!=null?b:bi.kanban.useMaxWidth)},"draw"),Xct={draw:Yct}}),Kct,Zct,Qct,ECt=Y(()=>{"use strict";Ya(),Sk(),Kct=s(e=>{let t="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Is(e["lineColor"+i])?e["lineColor"+i]=mt(e["lineColor"+i],20):e["lineColor"+i]=yt(e["lineColor"+i],20);let r=s((i,n)=>e.darkMode?yt(i,n):mt(i,n),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let n=""+(17-3*i);t+=` 2785 .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path { 2786 fill: ${r(e["cScale"+i],10)}; 2787 stroke: ${r(e["cScale"+i],10)}; 2788 2789 } 2790 .section-${i-1} text { 2791 fill: ${e["cScaleLabel"+i]}; 2792 } 2793 .node-icon-${i-1} { 2794 font-size: 40px; 2795 color: ${e["cScaleLabel"+i]}; 2796 } 2797 .section-edge-${i-1}{ 2798 stroke: ${e["cScale"+i]}; 2799 } 2800 .edge-depth-${i-1}{ 2801 stroke-width: ${n}; 2802 } 2803 .section-${i-1} line { 2804 stroke: ${e["cScaleInv"+i]} ; 2805 stroke-width: 3; 2806 } 2807 2808 .disabled, .disabled circle, .disabled text { 2809 fill: lightgray; 2810 } 2811 .disabled text { 2812 fill: #efefef; 2813 } 2814 2815 .node rect, 2816 .node circle, 2817 .node ellipse, 2818 .node polygon, 2819 .node path { 2820 fill: ${e.background}; 2821 stroke: ${e.nodeBorder}; 2822 stroke-width: 1px; 2823 } 2824 2825 .kanban-ticket-link { 2826 fill: ${e.background}; 2827 stroke: ${e.nodeBorder}; 2828 text-decoration: underline; 2829 } 2830 `}return t},"genSections"),Zct=s(e=>` 2831 .edge { 2832 stroke-width: 3; 2833 } 2834 ${Kct(e)} 2835 .section-root rect, .section-root path, .section-root circle, .section-root polygon { 2836 fill: ${e.git0}; 2837 } 2838 .section-root text { 2839 fill: ${e.gitBranchLabel0}; 2840 } 2841 .icon-container { 2842 height:100%; 2843 display: flex; 2844 justify-content: center; 2845 align-items: center; 2846 } 2847 .edge { 2848 fill: none; 2849 } 2850 .cluster-label, .label { 2851 color: ${e.textColor}; 2852 fill: ${e.textColor}; 2853 } 2854 .kanban-label { 2855 dy: 1em; 2856 alignment-baseline: middle; 2857 text-anchor: middle; 2858 dominant-baseline: middle; 2859 text-align: center; 2860 } 2861 ${w2()} 2862`,"getStyles"),Qct=Zct}),Jct={};Jr(Jct,{diagram:f(()=>eht,"diagram")});var eht,SCt=Y(()=>{"use strict";TCt(),wCt(),CCt(),ECt(),eht={db:Hct,renderer:Xct,parser:Oct,styles:Qct}}),sI,Mw,_Ct=Y(()=>{"use strict";sI=(function(){var e=s(function(l,h,u,d){for(u=u||{},d=l.length;d--;u[l[d]]=h);return u},"o"),t=[1,9],r=[1,10],i=[1,5,10,12],n={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:s(function(l,h,u,d,p,g,m){var y=g.length-1;switch(p){case 7:let x=d.findOrCreateNode(g[y-4].trim().replaceAll('""','"')),C=d.findOrCreateNode(g[y-2].trim().replaceAll('""','"')),w=parseFloat(g[y].trim());d.addLink(x,C,w);break;case 8:case 9:case 11:this.$=g[y];break;case 10:this.$=g[y-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(i,[2,8]),e(i,[2,9]),{19:[1,16]},e(i,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(i,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:s(function(l,h){if(h.recoverable)this.trace(l);else{var u=new Error(l);throw u.hash=h,u}},"parseError"),parse:s(function(l){var h=this,u=[0],d=[],p=[null],g=[],m=this.table,y="",x=0,C=0,w=0,_=2,S=1,R=g.slice.call(arguments,1),b=Object.create(this.lexer),v={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(v.yy[k]=this.yy[k]);b.setInput(l,v.yy),v.yy.lexer=b,v.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var E=b.yylloc;g.push(E);var A=b.options&&b.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(te){u.length=u.length-2*te,p.length=p.length-te,g.length=g.length-te}f(I,"I"),s(I,"popStack");function $(){var te;return te=d.pop()||b.lex()||S,typeof te!="number"&&(te instanceof Array&&(d=te,te=d.pop()),te=h.symbols_[te]||te),te}f($,"D"),s($,"lex");for(var O,j,D,P,F,U,z={},V,W,X,J;;){if(D=u[u.length-1],this.defaultActions[D]?P=this.defaultActions[D]:((O===null||typeof O>"u")&&(O=$()),P=m[D]&&m[D][O]),typeof P>"u"||!P.length||!P[0]){var H="";J=[];for(V in m[D])this.terminals_[V]&&V>_&&J.push("'"+this.terminals_[V]+"'");b.showPosition?H="Parse error on line "+(x+1)+`: 2863`+b.showPosition()+` 2864Expecting `+J.join(", ")+", got '"+(this.terminals_[O]||O)+"'":H="Parse error on line "+(x+1)+": Unexpected "+(O==S?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(H,{text:b.match,token:this.terminals_[O]||O,line:b.yylineno,loc:E,expected:J})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+O);switch(P[0]){case 1:u.push(O),p.push(b.yytext),g.push(b.yylloc),u.push(P[1]),O=null,j?(O=j,j=null):(C=b.yyleng,y=b.yytext,x=b.yylineno,E=b.yylloc,w>0&&w--);break;case 2:if(W=this.productions_[P[1]][1],z.$=p[p.length-W],z._$={first_line:g[g.length-(W||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(W||1)].first_column,last_column:g[g.length-1].last_column},A&&(z._$.range=[g[g.length-(W||1)].range[0],g[g.length-1].range[1]]),U=this.performAction.apply(z,[y,C,x,v.yy,P[1],p,g].concat(R)),typeof U<"u")return U;W&&(u=u.slice(0,-1*W*2),p=p.slice(0,-1*W),g=g.slice(0,-1*W)),u.push(this.productions_[P[1]][0]),p.push(z.$),g.push(z._$),X=m[u[u.length-2]][u[u.length-1]],u.push(X);break;case 3:return!0}}return!0},"parse")},a=(function(){var l={EOF:1,parseError:s(function(h,u){if(this.yy.parser)this.yy.parser.parseError(h,u);else throw new Error(h)},"parseError"),setInput:s(function(h,u){return this.yy=u||this.yy||{},this._input=h,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 h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:s(function(h){var u=h.length,d=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var p=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 g=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===p.length?this.yylloc.first_column:0)+p[p.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-u]),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). 2865`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(h){this.unput(this.match.slice(h))},"less"),pastInput:s(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);
vendor: 4,874 bytes, lines 2865-2867
2865return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+` 2866`+u+"^"},"showPosition"),test_match:s(function(h,u){var d,p,g;if(this.options.backtrack_lexer&&(g={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&&(g.yylloc.range=this.yylloc.range.slice(0))),p=h[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,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(h[0].length),this.matched+=h[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var m in g)this[m]=g[m];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,u,d,p;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),m=0;m<g.length;m++)if(d=this._input.match(this.rules[g[m]]),d&&(!u||d[0].length>u[0].length)){if(u=d,p=m,this.options.backtrack_lexer){if(h=this.test_match(d,g[m]),h!==!1)return h;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(h=this.test_match(u,g[p]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2867`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var h=this.next();return h||this.lex()},"lex"),begin:s(function(h){this.conditionStack.push(h)},"begin"),popState:s(function(){var h=this.conditionStack.length-1;return h>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(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:s(function(h){this.begin(h)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(h,u,d,p){var g=p;switch(d){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return l})();n.lexer=a;function o(){this.yy={}}return f(o,"s"),s(o,"Parser"),o.prototype=n,n.Parser=o,new o})(),sI.parser=sI,Mw=sI}),Ow,$w,Bw,tht,rht,iht,nht,aht,sht,oht,lht,cht,ACt=Y(()=>{"use strict";var e,t;vr(),gi(),En(),Ow=[],$w=[],Bw=new Map,tht=s(()=>{Ow=[],$w=[],Bw=new Map,Tn()},"clear"),rht=(e=class{constructor(i,n,a=0){this.source=i,this.target=n,this.value=a}},f(e,"aq"),s(e,"SankeyLink"),e),iht=s((r,i,n)=>{Ow.push(new rht(r,i,n))},"addLink"),nht=(t=class{constructor(i){this.ID=i}},f(t,"sq"),s(t,"SankeyNode"),t),aht=s(r=>{r=Vt.sanitizeText(r,Ue());let i=Bw.get(r);return i===void 0&&(i=new nht(r),Bw.set(r,i),$w.push(i)),i},"findOrCreateNode"),sht=s(()=>$w,"getNodes"),oht=s(()=>Ow,"getLinks"),lht=s(()=>({nodes:$w.map(r=>({id:r.ID})),links:Ow.map(r=>({source:r.source.ID,target:r.target.ID,value:r.value}))}),"getGraph"),cht={nodesMap:Bw,getConfig:s(()=>Ue().sankey,"getConfig"),getNodes:sht,getLinks:oht,getGraph:lht,addLink:iht,findOrCreateNode:aht,getAccTitle:Pn,setA
vendor: 5,691 bytes, line 2867
2867ccTitle:wn,getAccDescription:zn,setAccDescription:Fn,getDiagramTitle:Cn,setDiagramTitle:qn,clear:tht}});function rce(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}f(rce,"rC");var LCt=Y(()=>{"use strict";s(rce,"max")});function ice(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}f(ice,"Dy");var RCt=Y(()=>{"use strict";s(ice,"min")});function oI(e,t){let r=0;if(t===void 0)for(let i of e)(i=+i)&&(r+=i);else{let i=-1;for(let n of e)(n=+t(n,++i,e))&&(r+=n)}return r}f(oI,"Ry");var ICt=Y(()=>{"use strict";s(oI,"sum")}),hht=Y(()=>{"use strict";LCt(),RCt(),ICt()});function uht(e){return e.target.depth}f(uht,"Ywt");function dht(e){return e.depth}f(dht,"lq");function pht(e,t){return t-1-e.height}f(pht,"cq");function nce(e,t){return e.sourceLinks.length?e.depth:t-1}f(nce,"iC");function ght(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?ice(e.sourceLinks,uht)-1:0}f(ght,"uq");var fht=Y(()=>{"use strict";hht(),s(uht,"targetDepth"),s(dht,"left"),s(pht,"right"),s(nce,"justify"),s(ght,"center")});function Pw(e){return function(){return e}}f(Pw,"Ly");var DCt=Y(()=>{"use strict";s(Pw,"constant")});function ace(e,t){return Fw(e.source,t.source)||e.index-t.index}f(ace,"nDe");function sce(e,t){return Fw(e.target,t.target)||e.index-t.index}f(sce,"aDe");function Fw(e,t){return e.y0-t.y0}f(Fw,"g_");function lI(e){return e.value}f(lI,"dq");function mht(e){return e.index}f(mht,"jwt");function yht(e){return e.nodes}f(yht,"Xwt");function vht(e){return e.links}f(vht,"Kwt");function oce(e,t){let r=e.get(t);if(!r)throw new Error("missing: "+t);return r}f(oce,"sDe");function lce({nodes:e}){for(let t of e){let r=t.y0,i=r;for(let n of t.sourceLinks)n.y0=r+n.width/2,r+=n.width;for(let n of t.targetLinks)n.y1=i+n.width/2,i+=n.width}}f(lce,"oDe");function bht(){let e=0,t=0,r=1,i=1,n=24,a=8,o,l=mht,h=nce,u,d,p=yht,g=vht,m=6;function y(){let P={nodes:p.apply(null,arguments),links:g.apply(null,arguments)};return x(P),C(P),w(P),_(P),b(P),lce(P),P}f(y,"g"),s(y,"sankey"),y.update=function(P){return lce(P),P},y.nodeId=function(P){return arguments.length?(l=typeof P=="function"?P:Pw(P),y):l},y.nodeAlign=function(P){return arguments.length?(h=typeof P=="function"?P:Pw(P),y):h},y.nodeSort=function(P){return arguments.length?(u=P,y):u},y.nodeWidth=function(P){return arguments.length?(n=+P,y):n},y.nodePadding=function(P){return arguments.length?(a=o=+P,y):a},y.nodes=function(P){return arguments.length?(p=typeof P=="function"?P:Pw(P),y):p},y.links=function(P){return arguments.length?(g=typeof P=="function"?P:Pw(P),y):g},y.linkSort=function(P){return arguments.length?(d=P,y):d},y.size=function(P){return arguments.length?(e=t=0,r=+P[0],i=+P[1],y):[r-e,i-t]},y.extent=function(P){return arguments.length?(e=+P[0][0],r=+P[1][0],t=+P[0][1],i=+P[1][1],y):[[e,t],[r,i]]},y.iterations=function(P){return arguments.length?(m=+P,y):m};function x({nodes:P,links:F}){for(let[z,V]of P.entries())V.index=z,V.sourceLinks=[],V.targetLinks=[];let U=new Map(P.map((z,V)=>[l(z,V,P),z]));for(let[z,V]of F.entries()){V.index=z;let{source:W,target:X}=V;typeof W!="object"&&(W=V.source=oce(U,W)),typeof X!="object"&&(X=V.target=oce(U,X)),W.sourceLinks.push(V),X.targetLinks.push(V)}if(d!=null)for(let{sourceLinks:z,targetLinks:V}of P)z.sort(d),V.sort(d)}f(x,"y"),s(x,"computeNodeLinks");function C({nodes:P}){for(let F of P)F.value=F.fixedValue===void 0?Math.max(oI(F.sourceLinks,lI),oI(F.targetLinks,lI)):F.fixedValue}f(C,"v"),s(C,"computeNodeValues");function w({nodes:P}){let F=P.length,U=new Set(P),z=new Set,V=0;for(;U.size;){for(let W of U){W.depth=V;for(let{target:X}of W.sourceLinks)z.add(X)}if(++V>F)throw new Error("circular link");U=z,z=new Set}}f(w,"x"),s(w,"computeNodeDepths");function _({nodes:P}){let F=P.length,U=new Set(P),z=new Set,V=0;for(;U.size;){for(let W of U){W.height=V;for(let{source:X}of W.targetLinks)z.add(X)}if(++V>F)throw new Error("circular link");U=z,z=new Set}}f(_,"b"),s(_,"computeNodeHeights");function S({nodes:P}){let F=rce(P,V=>V.depth)+1,U=(r-e-n)/(F-1),z=new Array(F);for(let V of P){let W=Math.max(0,Math.min(F-1,Math.floor(h.call(null,V,F))));V.layer=W,V.x0=e+W*U,V.x1=V.x0+n,z[W]?z[W].push(V):z[W]=[V]}if(u)for(let V of z)V.sort(u);return z}f(S,"T"),s(S,"computeNodeLayers");function R(P){let F=ice(P,U=>(i-t-(U.length-1)*o)/oI(U,lI));for(let U of P){let z=t;for(let V of U){V.y0=z,V.y1=z+V.value*F,z=V.y1+o;for(let W of V.sourceLinks)W.width=W.value*F}z=(i-z+o)/(U.length+1);for(let V=0;V<U.length;++V){let W=U[V];W.y0+=z*(V+1),W.y1+=z*(V+1)}O(U)}}f(R,"w"),s(R,"initializeNodeBreadths");function b(P){let F=S(P);o=Math.min(a,(i-t)/(rce(F,U=>U.length)-1)),R(F);for(let U=0;U<m;++U){let z=Math.pow(.99,U),V=Math.max(1-z,(U+1)/m);k(F,z,V),v(F,z,V)}}f(b,"C"),s(b,"computeNodeBreadths");function v(P,F,U){for(let z=1,V=P.length;z<V;++z){let W=P[z];for(let X of W){let J=0,H=0;for(let{source:ie,value:oe}of X.targetLinks){let he=oe*(X.layer-ie.layer);J+=j(ie,X)*he,H+=he}if(!(H>0))continue;let te=(J/H-X.y0)*F;X.y0+=te,X.y1+=te,$(X)}u===void 0&&W.sort(Fw),E(W,U)}}f(v,"k"),s(v,"relaxLeftToRight");function k(P,F,U){for(let z=P.length,V=z-2;V>=0;--V){let W=P[V];for(let X of W){let J=0,H=0;for(let{target:ie,value:oe}of X.sourceLinks){let he=oe*(ie.layer-X.layer);J+=D(X,ie)*he,H+=he}if(!(H>0))continue;let te=(J/H-X.y0)*F;X.y0+=te,X.y1+=te,$(X)}u===void 0&&W.sort(Fw),E(W,U)}}f(k,"E"),s(k,"relaxRightToLeft");function E(P,F){let U=P.length>>1,z=P[U];I(P,z.y0-o,U-1,F),A(P,z.y1+o,U+1,F),I(P,i,P.length-1,F),A(P,t,0,F)}
vendor: 2,683 bytes, line 2867
2867f(E,"A"),s(E,"resolveCollisions");function A(P,F,U,z){for(;U<P.length;++U){let V=P[U],W=(F-V.y0)*z;W>1e-6&&(V.y0+=W,V.y1+=W),F=V.y1+o}}f(A,"N"),s(A,"resolveCollisionsTopToBottom");function I(P,F,U,z){for(;U>=0;--U){let V=P[U],W=(V.y1-F)*z;W>1e-6&&(V.y0-=W,V.y1-=W),F=V.y0-o}}f(I,"P"),s(I,"resolveCollisionsBottomToTop");function $({sourceLinks:P,targetLinks:F}){if(d===void 0){for(let{source:{sourceLinks:U}}of F)U.sort(sce);for(let{target:{targetLinks:U}}of P)U.sort(ace)}}f($,"I"),s($,"reorderNodeLinks");function O(P){if(d===void 0)for(let{sourceLinks:F,targetLinks:U}of P)F.sort(sce),U.sort(ace)}f(O,"D"),s(O,"reorderLinks");function j(P,F){let U=P.y0-(P.sourceLinks.length-1)*o/2;for(let{target:z,width:V}of P.sourceLinks){if(z===F)break;U+=V+o}for(let{source:z,width:V}of F.targetLinks){if(z===P)break;U-=V}return U}f(j,"_"),s(j,"targetTop");function D(P,F){let U=F.y0-(F.targetLinks.length-1)*o/2;for(let{source:z,width:V}of F.targetLinks){if(z===P)break;U+=V+o}for(let{target:z,width:V}of P.sourceLinks){if(z===F)break;U-=V}return U}return f(D,"R"),s(D,"sourceTop"),y}f(bht,"y_");var NCt=Y(()=>{"use strict";hht(),fht(),DCt(),s(ace,"ascendingSourceBreadth"),s(sce,"ascendingTargetBreadth"),s(Fw,"ascendingBreadth"),s(lI,"value"),s(mht,"defaultId"),s(yht,"defaultNodes"),s(vht,"defaultLinks"),s(oce,"find"),s(lce,"computeLinkBreadths"),s(bht,"Sankey")});function cI(){this._x0=this._y0=this._x1=this._y1=null,this._=""}f(cI,"mq");function cce(){return new cI}f(cce,"cDe");var hI,uI,eg,xht,kht,MCt=Y(()=>{"use strict";hI=Math.PI,uI=2*hI,eg=1e-6,xht=uI-eg,s(cI,"Path"),s(cce,"path"),cI.prototype=cce.prototype={constructor:cI,moveTo:s(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:s(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:s(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:s(function(e,t,r,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+i)},"quadraticCurveTo"),bezierCurveTo:s(function(e,t,r,i,n,a){this._+="C"+ +e+","+ +t+","+ +r+","+ +i+","+(this._x1=+n)+","+(this._y1=+a)},"bezierCurveTo"),arcTo:s(function(e,t,r,i,n){e=+e,t=+t,r=+r,i=+i,n=+n;var a=this._x1,o=this._y1,l=r-e,h=i-t,u=a-e,d=o-t,p=u*u+d*d;if(n<0)throw new Error("negative radius: "+n);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>eg)if(!(Math.abs(d*l-h*u)>eg)||!n)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var g=r-a,m=i-o,y=l*l+h*h,x=g*g+m*m,C=Math.sqrt(y),w=Math.sqrt(p),_=n*Math.tan((hI-Math.acos((y+p-x)/(2*C*w)))/2),S=_/w,R=_/C;Math.abs(S-1)>eg&&(this._+="L"+(e+S*u)+","+(t+S*d)),this._+="A"+n+","+n+",0,0,"+ +(d*g>
2867u*m)+","+(this._x1=e+R*l)+","+(this._y1=t+R*h)}},"arcTo"),arc:s(function(e,t,r,i,n,a){e=+e,t=+t,r=+r,a=!!a;var o=r*Math.cos(i),l=r*Math.sin(i),h=e+o,u=t+l,d=1^a,p=a?i-n:n-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+h+","+u:(Math.abs(this._x1-h)>eg||Math.abs(this._y1-u)>eg)&&(this._+="L"+h+","+u),r&&(p<0&&(p=p%uI+uI),p>xht?this._+="A"+r+","+r+",0,1,"+d+","+(e-o)+","+(t-l)+"A"+r+","+r+",0,1,"+d+","+(this._x1=h)+","+(this._y1=u):p>eg&&(this._+="A"+r+","+r+",0,"+ +(p>=hI)+","+d+","+(this._x1=e+r*Math.cos(n))+","+(this._y1=t+r*Math.sin(n))))},"arc"),rect:s(function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},"rect"),toString:s(function(){return this._},"toString")},kht=cce}),OCt=Y(()=>{"use strict";MCt()});function hce(e){return s(function(){return e},"constant")}f(hce,"v_");var $Ct=Y(()=>{"use strict";s(hce,"default")});function Tht(e){return e[0]}f(Tht,"fDe");function wht(e){return e[1]}f(wht,"pDe");var BCt=Y(()=>{"use strict";s(Tht,"x"),s(wht,"y")}),Cht,PCt=Y(()=>{"use strict";Cht=Array.prototype.slice});function Eht(e){return e.source}f(Eht,"Qwt");function Sht(e){return e.target}f(Sht,"Jwt");function _ht(e){var t=Eht,r=Sht,i=Tht,n=wht,a=null;function o(){var l,h=Cht.call(arguments),u=t.apply(this,h),d=r.apply(this,h);if(a||(a=l=kht()),e(a,+i.apply(this,(h[0]=u,h)),+n.apply(this,h),+i.apply(this,(h[0]=d,h)),+n.apply(this,h)),l)return a=null,l+""||null}return f(o,"s"),s(o,"link"),o.source=function(l){return arguments.length?(t=l,o):t},o.target=function(l){return arguments.length?(r=l,o):r},o.x=function(l){return arguments.length?(i=typeof l=="function"?l:hce(+l),o):i},o.y=function(l){return arguments.length?(n=typeof l=="function"?l:hce(+l),o):n},o.context=function(l){return arguments.length?(a=l!=null?l:null,o):a},o}f(_ht,"e4t");function Aht(e,t,r,i,n){e.moveTo(t,r),e.bezierCurveTo(t=(t+i)/2,r,t,n,i,n)}f(Aht,"t4t");function Lht(){return _ht(Aht)}f(Lht,"yq");var FCt=Y(()=>{"use strict";OCt(),PCt(),$Ct(),BCt(),s(Eht,"linkSource"),s(Sht,"linkTarget"),s(_ht,"link"),s(Aht,"curveHorizontal"),s(Lht,"linkHorizontal")}),zCt=Y(()=>{"use strict";FCt()});function Rht(e){return[e.source.x1,e.y0]}f(Rht,"r4t");function Iht(e){return[e.target.x0,e.y1]}f(Iht,"i4t");function Dht(){return Lht().source(Rht).target(Iht)}f(Dht,"x_");var qCt=Y(()=>{"use strict";zCt(),s(Rht,"horizontalSource"),s(Iht,"horizontalTarget"),s(Dht,"default")}),jCt=Y(()=>{"use strict";NCt(),fht(),qCt()}),uce,GCt=Y(()=>{"use strict";var e;uce=(e=class{static next(r){return new e(r+ ++e.count)}constructor(r){this.id=r,this.href=`#${r}`}toString(){return"url("+this.href+")"}},f(e,"e"),s(e,"Uid"),e.count=0,e)}),Nht,Mht,Oht,$ht,UCt=Y(()=>{"use strict";vr(),ui(),jCt(),Bn(),GCt(),Nht={left:dht,right:pht,center:ght,justify:nce},Mht=s(e=>{var i,n;let t=0,r=0;for(let a of e){let o=(i=a.value)!=null?i:0;o>t&&(t=o,r=(n=a.layer)!=null?n:0)}return r},"findCentralNodeLayer"),Oht=s(function(e,t,r,i){var U,z,V,W,X,J,H,te,ie,oe,he,pe,se,le,ue;let{securityLevel:n,sankey:a}=Ue(),o=$M.sankey,l;n==="sandbox"&&(l=Lt("#i"+t));let h=Lt(n==="sandbox"?l.nodes()[0].contentDocument.body:"body"),u=n==="sandbox"?h.select(`[id="${t}"]`):Lt(`[id="${t}"]`),d=(U=a==null?void 0:a.width)!=null?U:o.width,p=(z=a==null?void 0:a.height)!=null?z:o.width,g=(V=a==null?void 0:a.useMaxWidth)!=null?V:o.useMaxWidth,m=(W=a==null?void 0:a.nodeAlignment)!=null?W:o.nodeAlignment,y=(X=a==null?void 0:a.prefix)!=null?X:o.prefix,x=(J=a==null?void 0:a.suffix)!=null?J:o.suffix,C=(H=a==null?void 0:a.showValues)!=null?H:o.showValues,w=(ie=(te=a==null?void 0:a.nodeWidth)!=null?te:o.nodeWidth)!=null?ie:10,_=(he=(oe=a==null?void 0:a.nodePadding)!=null?oe:o.nodePadding)!=null?he:12,S=(se=(pe=a==null?void 0:a.labelStyle)!=null?pe:o.labelStyle)!=null?se:"legacy",R=(le=a==null?void 0:a.nodeColors)!=null?le:{},b=i.db.getGraph(),v=Nht[m];bht().nodeId(de=>de.id).nodeWidth(w).nodePadding(_+(C?15:0)).nodeAlign(v).extent([[0,0],[d,p]])(b);let k=Mht(b.nodes),E=lp(vbe),A=s(de=>{var we;return(we=R[de])!=null?we:E(de)},"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(b.nodes).join("g").attr("class","node").attr("id",de=>(de.uid=uce.next("node-")).id).attr("transform",function(de){return"translate("+de.x0+","+de.y0+")"}).attr("x",de=>de.x0).attr("y",de=>de.y0).append("rect").attr("height",de=>
2867de.y1-de.y0).attr("width",de=>de.x1-de.x0).attr("fill",de=>A(de.id));let I=s(({id:de,value:we})=>C?`${de} 2868${y}${Math.round(we*100)/100}${x}`:de,"getText"),$=s(de=>{var we;return S==="outlined"?((we=de.layer)!=null?we:0)<k?{x:de.x0-6,anchor:"end"}:{x:de.x1+6,anchor:"start"}:de.x0<d/2?{x:de.x1+6,anchor:"start"}:{x:de.x0-6,anchor:"end"}},"getLabelPosition"),O=u.append("g").attr("class","node-labels").attr("font-size",14),j=s(de=>O.selectAll(de?`.${de}`:"text").data(b.nodes).join("text").attr("class",de!=null?de:null).attr("x",we=>$(we).x).attr("y",we=>(we.y1+we.y0)/2).attr("dy",`${C?"0":"0.35"}em`).attr("text-anchor",we=>$(we).anchor).text(I),"appendLabel");S==="outlined"?(j("sankey-label-bg"),j("sankey-label-fg")):j();let D=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(b.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(ue=a==null?void 0:a.linkColor)!=null?ue:"gradient";if(P==="gradient"){let de=D.append("linearGradient").attr("id",we=>(we.uid=uce.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",we=>we.source.x1).attr("x2",we=>we.target.x0);de.append("stop").attr("offset","0%").attr("stop-color",we=>A(we.source.id)),de.append("stop").attr("offset","100%").attr("stop-color",we=>A(we.target.id))}let F;switch(P){case"gradient":F=s(de=>de.uid,"coloring");break;case"source":F=s(de=>A(de.source.id),"coloring");break;case"target":F=s(de=>A(de.target.id),"coloring");break;default:F=P}D.append("path").attr("d",Dht()).attr("stroke",F).attr("stroke-width",de=>Math.max(1,de.width)),fg(void 0,u,0,g)},"draw"),$ht={draw:Oht}}),Bht,VCt=Y(()=>{"use strict";Bht=s(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` 2869`).trim(),"prepareTextForParsing")}),Pht,Fht,WCt=Y(()=>{"use strict";Pht=s(e=>`.label { 2870 font-family: ${e.fontFamily}; 2871 } 2872 2873 .node-labels { 2874 font-family: ${e.fontFamily}; 2875 } 2876 2877 /* Outlined label style - background stroke for better readability */ 2878 .sankey-label-bg { 2879 stroke: ${e.mainBkg||e.background||"#fff"}; 2880 stroke-width: 4px; 2881 stroke-linejoin: round; 2882 paint-order: stroke; 2883 } 2884 2885 /* Foreground label text */ 2886 .sankey-label-fg { 2887 fill: ${e.textColor}; 2888 } 2889 2890 /* Node styling */ 2891 .node rect { 2892 shape-rendering: crispEdges; 2893 } 2894 2895 /* Link styling */ 2896 .link { 2897 fill: none; 2898 stroke-opacity: 0.5; 2899 mix-blend-mode: multiply; 2900 } 2901`,"getStyles"),Fht=Pht}),zht={};Jr(zht,{diagram:f(()=>jht,"diagram")});var qht,jht,HCt=Y(()=>{"use strict";_Ct(),ACt(),UCt(),VCt(),WCt(),qht=Mw.parse.bind(Mw),Mw.parse=e=>qht(Bht(e)),jht={styles:Fht,parser:Mw,db:cht,renderer:$ht}}),Ght,dce,Uht=Y(()=>{"use strict";var e;ti(),rs(),wr(),En(),Ght=bi.packet,dce=(e=class{constructor(){this.packet=[],this.setAccTitle=wn,this.getAccTitle=Pn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getAccDescription=zn,this.setAccDescription=Fn}getConfig(){let r=da(Tt(Tt({},Ght),Ir().packet));return r.showBits&&(r.paddingY+=10),r}getPacket(){return this.packet}pushWord(r){r.length>0&&this.packet.push(r)}clear(){Tn(),this.packet=[]}},f(e,"My"),s(e,"PacketDB"),e)}),Vht,Wht,Hht,pce,YCt=Y(()=>{"use strict";Xc(),jt(),Fd(),Uht(),Vht=1e4,Wht=s((e,t)=>{uu(e,t);let r=-1,i=[],n=1,{bitsPerRow:a}=t.getConfig();for(let{start:o,end:l,bits:h,label:u}of e.blocks){if(o!==void 0&&l!==void 0&&l<o)throw new Error(`Packet block ${o} - ${l} is invalid. End must be greater than start.`);if(o!=null||(o=r+1),o!==r+1)throw new Error(`Packet block ${o} - ${l!=null?l:o} is not contiguous. It should start from ${r+1}.`);if(h===0)throw new Error(`Packet block ${o} is invalid. Cannot have a zero bit field.`);for(l!=null||(l=o+(h!=null?h:1)-1),h!=null||(h=l-o+1),r=l,ge.debug(`Packet block ${o} - ${r} with label ${u}`);i.length<=a+1&&t.getPacket().length<Vht;){let[d,p]=Hht({start:o,end:l,bits:h,label:u},n,a);if(i.push(d),d.end+1===n*a&&(t.pushWord(i),i=[],n++),!p)break;({start:o,end:l,bits:h,label:u}=p)}}t.pushWord(i)},"populate"),Hht=s((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];let i=t*r-1,n=t*r;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),pce={parser:{yy:void 0},parse:s(async e=>{var i;let t=await Kl("packet",e),r=(i=pce.parser)==null?void 0:i.yy;if(!(r instanceof dce))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ge.debug(t),Wht(t,r)},"parse")}}),Yht,Xht,Kht,XCt=Y(()=>{"use strict";Ho(),Bn(),Yht=s((e,t,r,i)=>{let n=i.db,a=n.getConfig(),{rowHeight:o,paddingY:l,bitWidth:h,bitsPerRow:u}=a,d=n.getPacket(),p=n.getDiagramTitle(),g=o+l,m=g*(d.length+1)-(p?0:o),y=h*u+2,x=Co(t);x.attr("viewBox",`0 0 ${y} ${m}`),Ta(x,m,y,a.useMaxWidth);for(let[C,w]of d.entries())Xht(x,w,C,a);x.append("text").text(p).attr("x",y/2).attr("y",m-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),Xht=s((e,t,r,{rowHeight:i,paddingX:n,paddingY:a,bitWidth:o,bitsPerRow:l,showBits:h})=>{let u=e.append("g"),d=r*(i+a)+a;for(let p of t){let g=p.start%l*o+1,m=(p.end-p.start+1)*o-n;
2901if(u.append("rect").attr("x",g).attr("y",d).attr("width",m).attr("height",i).attr("class","packetBlock"),u.append("text").attr("x",g+m/2).attr("y",d+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(p.label),!h)continue;let y=p.end===p.start,x=d-2;u.append("text").attr("x",g+(y?m/2:0)).attr("y",x).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",y?"middle":"start").text(p.start),y||u.append("text").attr("x",g+m).attr("y",x).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(p.end)}},"drawWord"),Kht={draw:Yht}}),Zht,Qht,KCt=Y(()=>{"use strict";wr(),Zht={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Qht=s(({packet:e}={})=>{let t=da(Zht,e);return` 2902 .packetByte { 2903 font-size: ${t.byteFontSize}; 2904 } 2905 .packetByte.start { 2906 fill: ${t.startByteColor}; 2907 } 2908 .packetByte.end { 2909 fill: ${t.endByteColor}; 2910 } 2911 .packetLabel { 2912 fill: ${t.labelColor}; 2913 font-size: ${t.labelFontSize}; 2914 } 2915 .packetTitle { 2916 fill: ${t.titleColor}; 2917 font-size: ${t.titleFontSize}; 2918 } 2919 .packetBlock { 2920 stroke: ${t.blockStrokeColor}; 2921 stroke-width: ${t.blockStrokeWidth}; 2922 fill: ${t.blockFillColor}; 2923 } 2924 `},"styles")}),Jht={};Jr(Jht,{diagram:f(()=>eut,"diagram")});var eut,ZCt=Y(()=>{"use strict";Uht(),YCt(),XCt(),KCt(),eut={parser:pce,get db(){return new dce},renderer:Kht,styles:Qht}}),G1,gce,tg,tut,rut,fce,iut,nut,aut,sut,out,lut,cut,ab,hut=Y(()=>{"use strict";ti(),rs(),wr(),En(),G1={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},gce={axes:[],curves:[],options:G1},tg=structuredClone(gce),tut=bi.radar,rut=s(()=>da(Tt(Tt({},tut),Ir().radar)),"getConfig"),fce=s(()=>tg.axes,"getAxes"),iut=s(()=>tg.curves,"getCurves"),nut=s(()=>tg.options,"getOptions"),aut=s(e=>{tg.axes=e.map(t=>{var r;return{name:t.name,label:(r=t.label)!=null?r:t.name}})},"setAxes"),sut=s(e=>{tg.curves=e.map(t=>{var r;return{name:t.name,label:(r=t.label)!=null?r:t.name,entries:out(t.entries)}})},"setCurves"),out=s(e=>{if(e[0].axis==null)return e.map(r=>r.value);let t=fce();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(r=>{let i=e.find(n=>{var a;return((a=n.axis)==null?void 0:a.$refText)===r.name});if(i===void 0)throw new Error("Missing entry for axis "+r.label);return i.value})},"computeCurveEntries"),lut=s(e=>{var r,i,n,a,o,l,h,u,d,p;let t=e.reduce((g,m)=>(g[m.name]=m,g),{});
2924tg.options={showLegend:(i=(r=t.showLegend)==null?void 0:r.value)!=null?i:G1.showLegend,ticks:(a=(n=t.ticks)==null?void 0:n.value)!=null?a:G1.ticks,max:(l=(o=t.max)==null?void 0:o.value)!=null?l:G1.max,min:(u=(h=t.min)==null?void 0:h.value)!=null?u:G1.min,graticule:(p=(d=t.graticule)==null?void 0:d.value)!=null?p:G1.graticule}},"setOptions"),cut=s(()=>{Tn(),tg=structuredClone(gce)},"clear"),ab={getAxes:fce,getCurves:iut,getOptions:nut,setAxes:aut,setCurves:sut,setOptions:lut,getConfig:rut,clear:cut,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,getAccDescription:zn,setAccDescription:Fn}}),uut,dut,QCt=Y(()=>{"use strict";Xc(),jt(),Fd(),hut(),uut=s(e=>{uu(e,ab);let{axes:t,curves:r,options:i}=e;ab.setAxes(t),ab.setCurves(r),ab.setOptions(i)},"populate"),dut={parse:s(async e=>{let t=await Kl("radar",e);ge.debug(t),uut(t)},"parse")}});function put(e,t,r,i,n,a,o){let l=t.length,h=Math.min(o.width,o.height)/2;r.forEach((u,d)=>{if(u.entries.length!==l)return;let p=u.entries.map((g,m)=>{let y=2*Math.PI*m/l-Math.PI/2,x=gut(g,i,n,h),C=x*Math.cos(y),w=x*Math.sin(y);return{x:C,y:w}});a==="circle"?e.append("path").attr("d",fut(p,o.curveTension)).attr("class",`radarCurve-${d}`):a==="polygon"&&e.append("polygon").attr("points",p.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}f(put,"B4t");function gut(e,t,r,i){let n=Math.min(Math.max(e,t),r);return i*(n-t)/(r-t)}f(gut,"F4t");function fut(e,t){let r=e.length,i=`M${e[0].x},${e[0].y}`;for(let n=0;n<r;n++){let a=e[(n-1+r)%r],o=e[n],l=e[(n+1)%r],h=e[(n+2)%r],u={x:o.x+(l.x-a.x)*t,y:o.y+(l.y-a.y)*t},d={x:l.x-(h.x-o.x)*t,y:l.y-(h.y-o.y)*t};i+=` C${u.x},${u.y} ${d.x},${d.y} ${l.x},${l.y}`}return`${i} Z`}f(fut,"$4t");function mut(e,t,r,i){if(!r)return;let n=(i.width/2+i.marginRight)*3/4,a=-(i.height/2+i.marginTop)*3/4,o=20;t.forEach((l,h)=>{let u=e.append("g").attr("transform",`translate(${n}, ${a+h*o})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${h}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(l.label)})}f(mut,"z4t");var yut,vut,but,xut,kut,JCt=Y(()=>{"use strict";Ho(),Bn(),yut=s((e,t,r,i)=>{var x;let n=i.db,a=n.getAxes(),o=n.getCurves(),l=n.getOptions(),h=n.getConfig(),u=n.getDiagramTitle(),d=Co(t),p=vut(d,h),g=(x=l.max)!=null?x:Math.max(...o.map(C=>Math.max(...C.entries))),m=l.min,y=Math.min(h.width,h.height)/2;but(p,a,y,l.ticks,l.graticule),xut(p,a,y,h),put(p,a,o,m,g,l.graticule,h),mut(p,o,l.showLegend,h),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-h.height/2-h.marginTop)},"draw"),vut=s((e,t)=>{var a;let r=t.width+t.marginLeft+t.marginRight,i=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return Ta(e,i,r,(a=t.useMaxWidth)!=null?a:!0),e.attr("viewBox",`0 0 ${r} ${i}`),e.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),but=s((e,t,r,i,n)=>{if(n==="circle")for(let a=0;a<i;a++){let o=r*(a+1)/i;e.append("circle").attr("r",o).attr("class","radarGraticule")}else if(n==="polygon"){let a=t.length;for(let o=0;o<i;o++){let l=r*(o+1)/i,h=t.map((u,d)=>{let p=2*d*Math.PI/a-Math.PI/2,g=l*Math.cos(p),m=l*Math.sin(p);return`${g},${m}`}).join(" ");e.append("polygon").attr("points",h).attr("class","radarGraticule")}}},"drawGraticule"),xut=s((e,t,r,i)=>{let n=t.length;for(let a=0;a<n;a++){let o=t[a].label,l=2*a*Math.PI/n-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",r*i.axisScaleFactor*Math.cos(l)).attr("y2",r*i.axisScaleFactor*Math.sin(l)).attr("class","radarAxisLine"),e.append("text").text(o).attr("x",r*i.axisLabelFactor*Math.cos(l)).attr("y",r*i.axisLabelFactor*Math.sin(l)).attr("class","radarAxisLabel")}},"drawAxes"),s(put,"drawCurves"),s(gut,"relativeRadius"),s(fut,"closedRoundCurve"),s(mut,"drawLegend"),kut={draw:yut}}),Tut,wut,Cut,e6t=Y(()=>{"use strict";wr(),om(),ti(),Tut=s((e,t)=>{let r="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let n=e[`cScale${i}`];r+=` 2925 .radarCurve-${i} { 2926 color: ${n}; 2927 fill: ${n}; 2928 fill-opacity: ${t.curveOpacity}; 2929 stroke: ${n}; 2930 stroke-width: ${t.curveStrokeWidth}; 2931 } 2932 .radarLegendBox-${i} { 2933 fill: ${n}; 2934 fill-opacity: ${t.curveOpacity}; 2935 stroke: ${n}; 2936 } 2937 `}return r},"genIndexStyles"),wut=s(e=>{let t=sg(),r=Ir(),i=da(t,r.themeVariables),n=da(i.radar,e);return{themeVariables:i,radarOptions:n}},"buildRadarStyleOptions"),Cut=s(({radar:e}={})=>{let{themeVariables:t,radarOptions:r}=wut(e);return` 2938 .radarTitle { 2939 font-size: ${t.fontSize}; 2940 color: ${t.titleColor}; 2941 dominant-baseline: hanging; 2942 text-anchor: middle; 2943 } 2944 .radarAxisLine { 2945 stroke: ${r.axisColor}; 2946 stroke-width: ${r.axisStrokeWidth}; 2947 } 2948 .radarAxisLabel { 2949 dominant-baseline: middle; 2950 text-anchor: middle; 2951 font-size: ${r.axisLabelFontSize}px; 2952 color: ${r.axisColor}; 2953 } 2954 .radarGraticule { 2955 fill: ${r.graticuleColor}; 2956 fill-opacity: ${r.graticuleOpacity}; 2957 stroke: ${r.graticuleColor}; 2958 stroke-width: ${r.graticuleStrokeWidth}; 2959 } 2960 .radarLegendText { 2961 text-anchor: start; 2962 font-size: ${r.legendFontSize}px; 2963 dominant-baseline: hanging; 2964 } 2965 ${Tut(t,r)} 2966 `},"styles")}),Eut={};
vendor: 14,370 bytes, lines 2966-2971
2966Jr(Eut,{diagram:f(()=>Sut,"diagram")});var Sut,t6t=Y(()=>{"use strict";hut(),QCt(),JCt(),e6t(),Sut={parser:dut,db:ab,renderer:kut,styles:Cut}}),dI,_ut,r6t=Y(()=>{"use strict";dI=(function(){var e=s(function(S,R,b,v){for(b=b||{},v=S.length;v--;b[S[v]]=R);return b},"o"),t=[1,15],r=[1,7],i=[1,13],n=[1,14],a=[1,19],o=[1,16],l=[1,17],h=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],p=[1,23],g=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],x=[1,49],C={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:s(function(S,R,b,v,k,E,A){var I=E.length-1;switch(k){case 4:v.getLogger().debug("Rule: separator (NL) ");break;case 5:v.getLogger().debug("Rule: separator (Space) ");break;case 6:v.getLogger().debug("Rule: separator (EOF) ");break;case 7:v.getLogger().debug("Rule: hierarchy: ",E[I-1]),v.setHierarchy(E[I-1]);break;case 8:v.getLogger().debug("Stop NL ");break;case 9:v.getLogger().debug("Stop EOF ");break;case 10:v.getLogger().debug("Stop NL2 ");break;case 11:v.getLogger().debug("Stop EOF2 ");break;case 12:v.getLogger().debug("Rule: statement: ",E[I]),typeof E[I].length=="number"?this.$=E[I]:this.$=[E[I]];break;case 13:v.getLogger().debug("Rule: statement #2: ",E[I-1]),this.$=[E[I-1]].concat(E[I]);break;case 14:v.getLogger().debug("Rule: link: ",E[I],S),this.$={edgeTypeStr:E[I],label:""};break;case 15:v.getLogger().debug("Rule: LABEL link: ",E[I-3],E[I-1],E[I]),this.$={edgeTypeStr:E[I],label:E[I-1]};break;case 18:let $=parseInt(E[I]),O=v.generateId();this.$={id:O,type:"space",label:"",width:$,children:[]};break;case 23:v.getLogger().debug("Rule: (nodeStatement link node) ",E[I-2],E[I-1],E[I]," typestr: ",E[I-1].edgeTypeStr);let j=v.edgeStrToEdgeData(E[I-1].edgeTypeStr),D=v.edgeStrToEdgeStartData(E[I-1].edgeTypeStr),P=v.edgeStrToThickness(E[I-1].edgeTypeStr),F=v.edgeStrToPattern(E[I-1].edgeTypeStr);this.$=[{id:E[I-2].id,label:E[I-2].label,type:E[I-2].type,directions:E[I-2].directions},{id:E[I-2].id+"-"+E[I].id,start:E[I-2].id,end:E[I].id,label:E[I-1].label,type:"edge",thickness:P,pattern:F,directions:E[I].directions,arrowTypeEnd:j,arrowTypeStart:D},{id:E[I].id,label:E[I].label,type:v.typeStr2Type(E[I].typeStr),directions:E[I].directions}];break;case 24:v.getLogger().debug("Rule: nodeStatement (abc88 node size) ",E[I-1],E[I]),this.$={id:E[I-1].id,label:E[I-1].label,type:v.typeStr2Type(E[I-1].typeStr),directions:E[I-1].directions,widthInColumns:parseInt(E[I],10)};break;case 25:v.getLogger().debug("Rule: nodeStatement (node) ",E[I]),this.$={id:E[I].id,label:E[I].label,type:v.typeStr2Type(E[I].typeStr),directions:E[I].directions,widthInColumns:1};break;case 26:v.getLogger().debug("APA123",this?this:"na"),v.getLogger().debug("COLUMNS: ",E[I]),this.$={type:"column-setting",columns:E[I]==="auto"?-1:parseInt(E[I])};break;case 27:v.getLogger().debug("Rule: id-block statement : ",E[I-2],E[I-1]);let U=v.generateId();this.$=_r(Tt({},E[I-2]),{type:"composite",children:E[I-1]});break;case 28:v.getLogger().debug("Rule: blockStatement : ",E[I-2],E[I-1],E[I]);let z=v.generateId();this.$={id:z,type:"composite",label:"",children:E[I-1]};break;case 29:v.getLogger().debug("Rule: node (NODE_ID separator): ",E[I]),this.$={id:E[I]};break;case 30:v.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",E[I-1],E[I]),this.$={id:E[I-1],label:E[I].label,typeStr:E[I].typeStr,directions:E[I].directions};break;case 31:v.getLogger().debug("Rule: dirList: ",E[I]),this.$=[E[I]];break;case 32:v.getLogger().debug("Rule: dirList: ",E[I-1],E[I]),this.$=[E[I-1]].concat(E[I]);break;case 33:v.getLogger().debug("Rule: nodeShapeNLabel: ",E[I-2],E[I-1],E[I]),this.$={typeStr:E[I-2]+E[I],label:E[I-1]};break;case 34:v.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",E[I-3],E[I-2]," #3:",E[I-1],E[I]),this.$={typeStr:E[I-3]+E[I],label:E[I-2],directions:E[I-1]};break;case 35:case 36:this.$={type:"classDef",id:E[I-1].trim(),css:E[I].trim()};break;case 37:this.$={type:"applyClass",id:E[I-1].trim(),styleClass:E[I].trim()};break;case 38:this.$={type:"applyStyles",id:E[I-1].trim(),stylesStr:E[I].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:l,46:h},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:i,29:n,31:a,39:o,43:l,46:h}),e(d,[2,16],{14:22,15:p,16:g}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:l,46:h},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:p,16:g,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:l,46:h},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:x},{15:[1,50]},e(d,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:x,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:s(function(S,R){if(R.recoverable)this.trace(S);else{var b=new Error(S);throw b.hash=R,b}},"parseError"),parse:s(function(S){var R=this,b=[0],v=[],k=[null],E=[],A=this.table,I="",$=0,O=0,j=0,D=2,P=1,F=E.slice.call(arguments,1),U=Object.create(this.lexer),z={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(z.yy[V]=this.yy[V]);U.setInput(S,z.yy),z.yy.lexer=U,z.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var W=U.yylloc;E.push(W);var X=U.options&&U.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function J(be){b.length=b.length-2*be,k.length=k.length-be,E.length=E.length-be}f(J,"H"),s(J,"popStack");function H(){var be;return be=v.pop()||U.lex()||P,typeof be!="number"&&(be instanceof Array&&(v=be,be=v.pop()),be=R.symbols_[be]||be),be}f(H,"j"),s(H,"lex");for(var te,ie,oe,he,pe,se,le={},ue,de,we,De;;){if(oe=b[b.length-1],this.defaultActions[oe]?he=this.defaultActions[oe]:((te===null||typeof te>"u")&&(te=H()),he=A[oe]&&A[oe][te]),typeof he>"u"||!he.length||!he[0]){var Ge="";De=[];for(ue in A[oe])this.terminals_[ue]&&ue>D&&De.push("'"+this.terminals_[ue]+"'");U.showPosition?Ge="Parse error on line "+($+1)+`: 2967`+U.showPosition()+` 2968Expecting `+De.join(", ")+", got '"+(this.terminals_[te]||te)+"'":Ge="Parse error on line "+($+1)+": Unexpected "+(te==P?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(Ge,{text:U.match,token:this.terminals_[te]||te,line:U.yylineno,loc:W,expected:De})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+te);switch(he[0]){case 1:b.push(te),k.push(U.yytext),E.push(U.yylloc),b.push(he[1]),te=null,ie?(te=ie,ie=null):(O=U.yyleng,I=U.yytext,$=U.yylineno,W=U.yylloc,j>0&&j--);break;case 2:if(de=this.productions_[he[1]][1],le.$=k[k.length-de],le._$={first_line:E[E.length-(de||1)].first_line,last_line:E[E.length-1].last_line,first_column:E[E.length-(de||1)].first_column,last_column:E[E.length-1].last_column},X&&(le._$.range=[E[E.length-(de||1)].range[0],E[E.length-1].range[1]]),se=this.performAction.apply(le,[I,O,$,z.yy,he[1],k,E].concat(F)),typeof se<"u")return se;de&&(b=b.slice(0,-1*de*2),k=k.slice(0,-1*de),E=E.slice(0,-1*de)),b.push(this.productions_[he[1]][0]),k.push(le.$),E.push(le._$),we=A[b[b.length-2]][b[b.length-1]],b.push(we);break;case 3:return!0}}return!0},"parse")},w=(function(){var S={EOF:1,parseError:s(function(R,b){if(this.yy.parser)this.yy.parser.parseError(R,b);else throw new Error(R)},"parseError"),setInput:s(function(R,b){return this.yy=b||this.yy||{},this._input=R,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 R=this._input[0];this.yytext+=R,this.yyleng++,this.offset++,this.match+=R,this.matched+=R;var b=R.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),R},"input"),unput:s(function(R){var b=R.length,v=R.split(/(?:\r\n?|\n)/g);this._input=R+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var k=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),v.length-1&&(this.yylineno-=v.length-1);var E=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:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-b]),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). 2969`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(R){this.unput(this.match.slice(R))},"less"),pastInput:s(function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var R=this.pastInput(),b=new Array(R.length+1).join("-");return R+this.upcomingInput()+` 2970`+b+"^"},"showPosition"),test_match:s(function(R,b){var v,k,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),k=R[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+R[0].length},this.yytext+=R[0],this.match+=R[0],this.matches=R,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(R[0].length),this.matched+=R[0],v=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var A in E)this[A]=E[A];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,b,v,k;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),A=0;A<E.length;A++)if(v=this._input.match(this.rules[E[A]]),v&&(!b||v[0].length>b[0].length)){if(b=v,k=A,this.options.backtrack_lexer){if(R=this.test_match(v,E[A]),R!==!1)return R;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(R=this.test_match(b,E[k]),R!==!1?R:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 2971`+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:{},performAction:s(function(R,b,v,k){var E=k;switch(v){case 0:return R.getLogger().debug("Found block-beta"),
vendor: 7,296 bytes, line 2971
297110;case 1:return R.getLogger().debug("Found id-block"),29;case 2:return R.getLogger().debug("Found block"),10;case 3:R.getLogger().debug(".",b.yytext);break;case 4:R.getLogger().debug("_",b.yytext);break;case 5:return 5;case 6:return b.yytext=-1,28;case 7:return b.yytext=b.yytext.replace(/columns\s+/,""),R.getLogger().debug("COLUMNS (LEX)",b.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:R.getLogger().debug("LEX: POPPING STR:",b.yytext),this.popState();break;case 13:return R.getLogger().debug("LEX: STR end:",b.yytext),"STR";case 14:return b.yytext=b.yytext.replace(/space\:/,""),R.getLogger().debug("SPACE NUM (LEX)",b.yytext),21;case 15:return b.yytext="1",R.getLogger().debug("COLUMNS (LEX)",b.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),R.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),R.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),R.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),R.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),R.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),R.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),R.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),R.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),R.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),R.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),R.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),R.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),R.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),R.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),R.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),R.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),R.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return R.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return R.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return R.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return R.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return R.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return R.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return R.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return R.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return R.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return R.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return R.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return R.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),R.getLogger().debug("LEX ARR START"),37;case 74:return R.getLogger().debug("Lex: NODE_ID",b.yytext),31;case 75:return R.getLogger().debug("Lex: EOF",b.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:R.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:R.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return R.getLogger().debug("LEX: NODE_DESCR:",b.yytext),"NODE_DESCR";case 83:R.getLogger().debug("LEX POPPING"),this.popState();break;case 84:R.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (right): dir:",b.yytext),"DIR";case 86:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (left):",b.yytext),"DIR";case 87:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (x):",b.yytext),"DIR";case 88:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (y):",b.yytext),"DIR";case 89:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (up):",b.yytext),"DIR";case 90:return b.yytext=b.yytext.replace(/^,\s*/,""),R.getLogger().debug("Lex (down):",b.yytext),"DIR";case 91:return b.yytext="]>",R.getLogger().debug("Lex (ARROW_DIR end):",b.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return R.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 93:return R.getLogger().debug("Lex: LINK",b.yytext),15;case 94:return R.getLogger().debug("Lex: LINK",b.yytext),15;case 95:return R.getLogger().debug("Lex: LINK",b.yytext),15;case 96:return R.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 97:return R.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 98:return R.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return R.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),R.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 102:return this.popState(),R.getLogger().debug("Lex: LINK",b.yytext),15;case 103:return this.popState(),R.getLogger().debug("Lex: LINK",b.yytext),15;case 104:return R.getLogger().debug("Lex: COLON",b.yytext),b.yytext=b.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}
2971]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return S})();C.lexer=w;function _(){this.yy={}}return f(_,"b"),s(_,"Parser"),_.prototype=C,C.Parser=_,new _})(),dI.parser=dI,_ut=dI});function Aut(e){switch(ge.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return ge.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}f(Aut,"J4t");function Lut(e){return(ge.debug("typeStr2Type",e),e)==="=="?"thick":"normal"}f(Lut,"eSt");function Rut(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}f(Rut,"tSt");function Iut(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}f(Iut,"rSt");function Dut(e){return e.includes("==")?"thick":"normal"}f(Dut,"iSt");function Nut(e){return e.includes(".-")?"dotted":"solid"}f(Nut,"nSt");var Ql,pI,gI,mce,yce,Mut,vce,Out,zw,fI,$ut,But,Put,Fut,bce,mI,sb,zut,xce,qut,jut,Gut,Uut,Vut,Wut,Hut,Yut,Xut,Kut,Zut,Qut,Jut,edt,i6t=Y(()=>{"use strict";LB(),ti(),vr(),jt(),gi(),En(),Ql=new Map,pI=[],gI=new Map,mce="color",yce="fill",Mut="bgFill",vce=",",Out=Ue(),zw=new Map,fI="",$ut=s(e=>Vt.sanitizeText(e,Out),"sanitizeText"),But=s(function(e,t=""){let r=zw.get(e);r||(r={id:e,styles:[],textStyles:[]},zw.set(e,r)),t==null||t.split(vce).forEach(i=>{let n=i.replace(/([^;]*);/,"$1").trim();if(RegExp(mce).exec(i)){let a=n.replace(yce,Mut).replace(mce,yce);r.textStyles.push(a)}r.styles.push(n)})},"addStyleClass"),Put=s(function(e,t=""){let r=Ql.get(e);t!=null&&(r.styles=t.split(vce))},"addStyle2Node"),Fut=s(function(e,t){e.split(",").forEach(function(r){let i=Ql.get(r);if(i===void 0){let n=r.trim();i={id:n,type:"na",children:[]},Ql.set(n,i)}i.classes||(i.classes=[]),i.classes.push(t)})},"setCssClass"),bce=s((e,t)=>{var a,o,l,h,u,d;let r=e.flat(),i=[],n=(o=(a=r.find(p=>(p==null?void 0:p.type)==="column-setting"))==null?void 0:a.columns)!=null?o:-1;for(let p of r){if(typeof n=="number"&&n>0&&p.type!=="column-setting"&&typeof p.widthInColumns=="number"&&p.widthInColumns>n&&ge.warn(`Block ${p.id} width ${p.widthInColumns} exceeds configured column width ${n}
2971`),p.label&&(p.label=$ut(p.label)),p.type==="classDef"){But(p.id,p.css);continue}if(p.type==="applyClass"){Fut(p.id,(l=p==null?void 0:p.styleClass)!=null?l:"");continue}if(p.type==="applyStyles"){p!=null&&p.stylesStr&&Put(p.id,p==null?void 0:p.stylesStr);continue}if(p.type==="column-setting")t.columns=(h=p.columns)!=null?h:-1;else if(p.type==="edge"){let g=((u=gI.get(p.id))!=null?u:0)+1;gI.set(p.id,g),p.id=g+"-"+p.id,pI.push(p)}else{p.label||(p.type==="composite"?p.label="":p.label=p.id);let g=Ql.get(p.id);if(g===void 0?Ql.set(p.id,p):(p.type!=="na"&&(g.type=p.type),p.label!==p.id&&(g.label=p.label)),p.children&&bce(p.children,p),p.type==="space"){let m=(d=p.width)!=null?d:1;for(let y=0;y<m;y++){let x=xxe(p);x.id=x.id+"-"+y,Ql.set(x.id,x),i.push(x)}}else g===void 0&&i.push(p)}}t.children=i},"populateBlockDatabase"),mI=[],sb={id:"root",type:"composite",children:[],columns:-1},zut=s(()=>{ge.debug("Clear called"),Tn(),sb={id:"root",type:"composite",children:[],columns:-1},Ql=new Map([["root",sb]]),mI=[],zw=new Map,pI=[],gI=new Map,fI=""},"clear"),s(Aut,"typeStr2Type"),s(Lut,"edgeTypeStr2Type"),s(Rut,"edgeStrToEdgeData"),s(Iut,"edgeStrToEdgeStartData"),s(Dut,"edgeStrToThickness"),s(Nut,"edgeStrToPattern"),xce=0,qut=s(()=>(xce++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xce),"generateId"),jut=s(e=>{sb.children=e,bce(e,sb),mI=sb.children},"setHierarchy"),Gut=s(e=>{let t=Ql.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),Uut=s(()=>[...Ql.values()],"getBlocksFlat"),Vut=s(()=>mI||[],"getBlocks"),Wut=s(()=>pI,"getEdges"),Hut=s(e=>Ql.get(e),"getBlock"),Yut=s(e=>{Ql.set(e.id,e)},"setBlock"),Xut=s(e=>{fI=e},"setDiagramId"),Kut=s(()=>fI,"getDiagramId"),Zut=s(()=>ge,"getLogger"),Qut=s(function(){return zw},"getClasses"),Jut={getConfig:s(()=>Ir().block,"getConfig"),typeStr2Type:Aut,edgeTypeStr2Type:Lut,edgeStrToEdgeData:Rut,edgeStrToEdgeStartData:Iut,edgeStrToThickness:Dut,edgeStrToPattern:Nut,getLogger:Zut,getBlocksFlat:Uut,getBlocks:Vut,getEdges:Wut,setHierarchy:jut,getBlock:Hut,setBlock:Yut,getColumns:Gut,getClasses:Qut,clear:zut,generateId:qut,setDiagramId:Xut,getDiagramId:Kut},edt=Jut}),yI,tdt,rdt,n6t=Y(()=>{"use strict";Ya(),Sk(),yI=s((e,t)=>{let r=aC,i=r(e,"r"),n=r(e,"g"),a=r(e,"b");return Cl(i,n,a,t)},"fade"),tdt=s(e=>`.label { 2972 font-family: ${e.fontFamily}; 2973 color: ${e.nodeTextColor||e.textColor}; 2974 } 2975 .cluster-label text { 2976 fill: ${e.titleColor}; 2977 } 2978 .cluster-label span,p { 2979 color: ${e.titleColor}; 2980 } 2981 2982 2983 2984 .label text,span,p { 2985 fill: ${e.nodeTextColor||e.textColor}; 2986 color: ${e.nodeTextColor||e.textColor}; 2987 } 2988 2989 .node rect, 2990 .node circle, 2991 .node ellipse, 2992 .node polygon, 2993 .node path { 2994 fill: ${e.mainBkg}; 2995 stroke: ${e.nodeBorder}; 2996 stroke-width: 1px; 2997 } 2998 .flowchart-label text { 2999 text-anchor: middle; 3000 } 3001 // .flowchart-label .text-outer-tspan { 3002 // text-anchor: middle; 3003 // } 3004 // .flowchart-label .text-inner-tspan { 3005 // text-anchor: start; 3006 // } 3007 3008 .node .label { 3009 text-align: center; 3010 } 3011 .node.clickable { 3012 cursor: pointer; 3013 } 3014 3015 .arrowheadPath { 3016 fill: ${e.arrowheadColor}; 3017 } 3018 3019 .edgePath .path { 3020 stroke: ${e.lineColor}; 3021 stroke-width: 2.0px; 3022 } 3023 3024 .flowchart-link { 3025 stroke: ${e.lineColor}; 3026 fill: none; 3027 } 3028 3029 .edgeLabel { 3030 background-color: ${e.edgeLabelBackground}; 3031 /* 3032 * This is for backward compatibility with existing code that didn't 3033 * add a \`<p>\` around edge labels. 3034 * 3035 * TODO: We should probably remove this in a future release. 3036 */ 3037 p { 3038 margin: 0; 3039 padding: 0; 3040 display: inline; 3041 } 3042 rect { 3043 opacity: 0.5; 3044 background-color: ${e.edgeLabelBackground}; 3045 fill: ${e.edgeLabelBackground}; 3046 } 3047 text-align: center; 3048 } 3049 3050 /* For html labels only */ 3051 .labelBkg { 3052 background-color: ${e.edgeLabelBackground}; 3053 } 3054 3055 .node .cluster { 3056 // fill: ${yI(e.mainBkg,.5)}; 3057 fill: ${yI(e.clusterBkg,.5)}; 3058 stroke: ${yI(e.clusterBorder,.2)}; 3059 box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; 3060 stroke-width: 1px; 3061 } 3062 3063 .cluster text { 3064 fill: ${e.titleColor}; 3065 } 3066 3067 .cluster span,p { 3068 color: ${e.titleColor}; 3069 } 3070 /* .cluster div { 3071 color: ${e.titleColor}; 3072 } */ 3073 3074 div.mermaidTooltip { 3075 position: absolute; 3076 text-align: center; 3077 max-width: 200px; 3078 padding: 2px; 3079 font-family: ${e.fontFamily}; 3080 font-size: 12px; 3081 background: ${e.tertiaryColor}; 3082 border: 1px solid ${e.border2}; 3083 border-radius: 2px; 3084 pointer-events: none; 3085 z-index: 100; 3086 } 3087 3088 .flowchartTitleText { 3089 text-anchor: middle; 3090 font-size: 18px; 3091 fill: ${e.textColor}; 3092 } 3093 ${w2()} 3094`,"getStyles"),rdt=tdt}),idt,ndt,adt,sdt,odt,ldt,cdt,hdt,udt,ddt,pdt,gdt,a6t=Y(()=>{"use strict";jt(),idt=s((e,t,r,i)=>{t.forEach(n=>{pdt[n](e,r,i)})},"insertMarkers"),ndt=s((e,t,r)=>{ge.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).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"),adt=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).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"),sdt=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).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"),odt=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).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"),ldt=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).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),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).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"),cdt=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).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"),hdt=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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"),udt=s((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),ddt=s((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),pdt={extension:ndt,composition:adt,aggregation:sdt,dependency:odt,lollipop:ldt,point:cdt,circle:hdt,cross:udt,barb:ddt},gdt=idt});function kce(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};let r=t%e,i=Math.floor(t/e);return{px:r,py:i}}f(kce,"f8e");function vI(e,t,r=0,i=0){var o,l,h,u,d,p,g,m,y,x,C,w,_,S,R;ge.debug("setBlockSizes abc95 (start)",e.id,(o=e==null?void 0:e.size)==null?void 0:o.x,"block width =",e==null?void 0:e.size,"siblingWidth",r),(l=e==null?void 0:e.size)!=null&&l.width||(e.size={width:r,height:i,x:0,y:0});let n=0,a=0;if(((h=e.children)==null?void 0:h.length)>0){for(let O of e.children)vI(O,t);let b=mdt(e);n=b.width,a=b.height,ge.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",n,a);for(let O of e.children)O.size&&(ge.debug(`abc95 Setting size of children of ${e.id} id=${O.id} ${n} ${a}
3094 ${JSON.stringify(O.size)}`),O.size.width=n*((u=O.widthInColumns)!=null?u:1)+ya*(((d=O.widthInColumns)!=null?d:1)-1),O.size.height=a,O.size.x=0,O.size.y=0,ge.debug(`abc95 updating size of ${e.id} children child:${O.id} maxWidth:${n} maxHeight:${a}`));for(let O of e.children)vI(O,t,n,a);let v=(p=e.columns)!=null?p:-1,k=0;for(let O of e.children)k+=(g=O.widthInColumns)!=null?g:1;let E=e.children.length;v>0&&v<k&&(E=v);let A=Math.ceil(k/E),I=E*(n+ya)+ya,$=A*(a+ya)+ya;if(I<r){ge.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${I}`),I=r,$=i;let O=(r-E*ya-ya)/E,j=(i-A*ya-ya)/A;ge.debug("Size indata abc88",e.id,"childWidth",O,"maxWidth",n),ge.debug("Size indata abc88",e.id,"childHeight",j,"maxHeight",a),ge.debug("Size indata abc88 xSize",E,"padding",ya);for(let D of e.children)D.size&&(D.size.width=O,D.size.height=j,D.size.x=0,D.size.y=0)}if(ge.debug(`abc95 (finale calc) ${e.id} xSize ${E} ySize ${A} columns ${v}${e.children.length} width=${Math.max(I,((m=e.size)==null?void 0:m.width)||0)}`),I<(((y=e==null?void 0:e.size)==null?void 0:y.width)||0)){I=((x=e==null?void 0:e.size)==null?void 0:x.width)||0;let O=v>0?Math.min(e.children.length,v):e.children.length;if(O>0){let j=(I-O*ya-ya)/O;ge.debug("abc95 (growing to fit) width",e.id,I,(C=e.size)==null?void 0:C.width,j);for(let D of e.children)D.size&&(D.size.width=j)}}e.size={width:I,height:$,x:0,y:0}}ge.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(_=e==null?void 0:e.size)==null?void 0:_.width,(S=e==null?void 0:e.size)==null?void 0:S.y,(R=e==null?void 0:e.size)==null?void 0:R.height)}f(vI,"Aq");function Tce(e,t){var i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j;ge.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(i=e==null?void 0:e.size)==null?void 0:i.x} y: ${(n=e==null?void 0:e.size)==null?void 0:n.y} width: ${(a=e==null?void 0:e.size)==null?void 0:a.width}`);let r=(o=e.columns)!=null?o:-1;if(ge.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){let D=(u=(h=(l=e==null?void 0:e.children[0])==null?void 0:l.size)==null?void 0:h.width)!=null?u:0,P=e.children.length*D+(e.children.length-1)*ya;ge.debug("widthOfChildren 88",P,"posX");let F=new Map;{let X=0;for(let J of e.children){if(!J.size)continue;let{py:H}=kce(r,X),te=(d=F.get(H))!=null?d:0;J.size.height>te&&F.set(H,J.size.height);let ie=(p=J==null?void 0:J.widthInColumns)!=null?p:1;r>0&&(ie=Math.min(ie,r-X%r)),X+=ie}}let U=new Map;{let X=0,J=[...F.keys()].sort((H,te)=>H-te);for(let H of J)U.set(H,X),X+=((g=F.get(H))!=null?g:0)+ya}let z=0;ge.debug("abc91 block?.size?.x",e.id,(m=e==null?void 0:e.size)==null?void 0:m.x);let V=(y=e==null?void 0:e.size)!=null&&y.x?((x=e==null?void 0:e.size)==null?void 0:x.x)+(-((C=e==null?void 0:e.size)==null?void 0:C.width)/2||0):-ya,W=0;for(let X of e.children){let J=e;if(!X.size)continue;let{width:H,height:te}=X.size,{px:ie,py:oe}=kce(r,z);if(oe!=W&&(W=oe,V=(w=e==null?void 0:e.size)!=null&&w.x?((_=e==null?void 0:e.size)==null?void 0:_.x)+(-((S=e==null?void 0:e.size)==null?void 0:S.width)/2||0):-ya,ge.debug("New row in layout for block",e.id," and child ",X.id,W)),ge.debug(`abc89 layout blocks (child) id: ${X.id} Pos: ${z} (px, py) ${ie},${oe} (${(R=J==null?void 0:J.size)==null?void 0:R.x},${(b=J==null?void 0:J.size)==null?void 0:b.y}) parent: ${J.id} width: ${H}${ya}`),J.size){let pe=H/2;X.size.x=V+ya+pe,ge.debug(`abc91 layout blocks (calc) px, pyid:${X.id} startingPos=X${V} new startingPosX${X.size.x} ${pe} padding=${ya} width=${H} halfWidth=${pe} => x:${X.size.x} y:${X.size.y} ${X.widthInColumns} (width * (child?.w || 1)) / 2 ${H*((v=X==null?void 0:X.widthInColumns)!=null?v:1)/2}`),V=X.size.x+pe;let se=(k=U.get(oe))!=null?k:0,le=(E=F.get(oe))!=null?E:te;X.size.y=J.size.y-J.size.height/2+se+le/2+ya,ge.debug(`abc88 layout blocks (calc) px, pyid:${X.id}startingPosX${V}${ya}${pe}=>x:${X.size.x}y:${X.size.y}${X.widthInColumns}(width * (child?.w || 1)) / 2${H*((A=X==null?void 0:X.widthInColumns)!=null?A:1)/2}`)}X.children&&Tce(X,t);let he=(I=X==null?void 0:X.widthInColumns)!=null?I:1;r>
30940&&(he=Math.min(he,r-z%r)),z+=he,ge.debug("abc88 columnsPos",X,z)}}ge.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${($=e==null?void 0:e.size)==null?void 0:$.x} y: ${(O=e==null?void 0:e.size)==null?void 0:O.y} width: ${(j=e==null?void 0:e.size)==null?void 0:j.width}`)}f(Tce,"p8e");function wce(e,{minX:t,minY:r,maxX:i,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:a,y:o,width:l,height:h}=e.size;a-l/2<t&&(t=a-l/2),o-h/2<r&&(r=o-h/2),a+l/2>i&&(i=a+l/2),o+h/2>n&&(n=o+h/2)}if(e.children)for(let a of e.children)({minX:t,minY:r,maxX:i,maxY:n}=wce(a,{minX:t,minY:r,maxX:i,maxY:n}));return{minX:t,minY:r,maxX:i,maxY:n}}f(wce,"m8e");function fdt(e){let t=e.getBlock("root");if(!t)return;vI(t,e,0,0),Tce(t,e),ge.debug("getBlocks",JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:n,maxY:a}=wce(t),o=a-i,l=n-r;return{x:r,y:i,width:l,height:o}}f(fdt,"g8e");var ya,mdt,s6t=Y(()=>{"use strict";var e,t,r;jt(),vr(),ya=(r=(t=(e=Ue())==null?void 0:e.block)==null?void 0:t.padding)!=null?r:8,s(kce,"calculateBlockPosition"),mdt=s(i=>{var o,l;let n=0,a=0;for(let h of i.children){let{width:u,height:d,x:p,y:g}=(o=h.size)!=null?o:{width:0,height:0,x:0,y:0};if(ge.debug("getMaxChildSize abc95 child:",h.id,"width:",u,"height:",d,"x:",p,"y:",g,h.type),h.type==="space")continue;let m=u/((l=h.widthInColumns)!=null?l:1);m>n&&(n=m),d>a&&(a=d)}return{width:n,height:a}},"getMaxChildSize"),s(vI,"setBlockSizes"),s(Tce,"layoutBlocks"),s(wce,"findBounds"),s(fdt,"layout")}),ydt,Jl,Cce=Y(()=>{"use strict";ti(),vr(),nl(),ydt=s(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);let o=Ue(),l=Vi(o);return await qs(e,a,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Jl=ydt}),vdt,bdt,Ece,o6t=Y(()=>{"use strict";jt(),vdt=s((e,t,r,i,n)=>{t.arrowTypeStart&&Ece(e,"start",t.arrowTypeStart,r,i,n),t.arrowTypeEnd&&Ece(e,"end",t.arrowTypeEnd,r,i,n)},"addEdgeMarkers"),bdt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Ece=s((e,t,r,i,n,a)=>{let o=bdt[r];if(!o){ge.warn(`Unknown arrow type: ${r}`);return}let l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${n}_${a}-${o}${l})`)},"addEdgeMarker")});function qw(e,t){Vi(Ue())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}f(qw,"C_");var bI,As,xdt,kdt,Tdt,wdt,Sce,Cdt,l6t=Y(()=>{"use strict";jt(),Cce(),nl(),Bwe(),ui(),vr(),ti(),wr(),gi(),Pwe(),$S(),o6t(),bI={},As={},xdt=s(async(e,t)=>{let r=Ue(),i=Vi(r),n=e.insert("g").attr("class","edgeLabel"),a=n.insert("g").attr("class","label"),o=t.labelType==="markdown",l=await qs(e,t.label,{style:t.labelStyle,useHtmlLabels:i,addSvgBackground:o,isNode:!1,markdown:o,width:o?void 0:Number.POSITIVE_INFINITY},r);a.node().appendChild(l);let h=l.getBBox(),u=h;if(i){let p=l.children[0],g=Lt(l);h=p.getBoundingClientRect(),u=h,g.attr("width",h.width),g.attr("height",h.height)}else{let p=Lt(l).select("text").node();p&&typeof p.getBBox=="function"&&(u=p.getBBox())}a.attr("transform",wc(u,i)),bI[t.id]=n,t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Jl(g,t.startLabelLeft,t.labelStyle);d=m;let y=m.getBBox();if(i){let x=m.children[0],C=Lt(m);y=x.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}g.attr("transform",wc(y,i)),As[t.id]||(As[t.id]={}),As[t.id].startLeft=p,qw(d,t.startLabelLeft)}if(t.startLabelRight){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Jl(g,t.startLabelRight,t.labelStyle);d=m;let y=m.getBBox();if(i){let x=m.children[0],C=Lt(m);y=x.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}g.attr("transform",wc(y,i)),As[t.id]||(As[t.id]={}),As[t.id].startRight=p,qw(d,t.startLabelRight)}if(t.endLabelLeft){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Jl(p,t.endLabelLeft,t.labelStyle);d=m;let y=m.getBBox();if(i){let x=m.children[0],C=Lt(m);y=x.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}g.attr("transform",wc(y,i)),As[t.id]||(As[t.id]={}),As[t.id].endLeft=p,qw(d,t.endLabelLeft)}if(t.endLabelRight){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Jl(p,t.endLabelRight,t.labelStyle);d=m;let y=m.getBBox();if(i){let x=m.children[0],C=Lt(m);y=x.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}g.attr("transform",wc(y,i)),As[t.id]||(As[t.id]={}),As[t.id].endRight=p,qw(d,t.endLabelRight)}return l},"insertEdgeLabel"),s(qw,"setTerminalWidth"),kdt=s((e,t)=>{ge.debug("Moving label abc88 ",e.id,e.label,bI[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath,i=Ue(),{subGraphTitleTotalMargin:n}=Ty(i);if(e.label){let a=bI[e.id],o=e.x,l=e.y;if(r){let h=ri.calcLabelPosition(r);ge.debug("Moving label "+e.label+" from (",o,",",l,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(o=h.x,l=h.y)}a.attr("transform",`translate(${o}, ${l+n/2})`)}if(e.startLabelLeft){let a=As[e.id].startLeft,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){let a=As[e.id].startRight,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);
vendor: 22,701 bytes, lines 3094-3097
3094o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){let a=As[e.id].endLeft,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){let a=As[e.id].endRight,o=e.x,l=e.y;if(r){let h=ri.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=h.x,l=h.y}a.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),Tdt=s((e,t)=>{let r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,l=e.height/2;return n>=o||a>=l},"outsideNode"),wdt=s((e,t,r)=>{ge.debug(`intersection calc abc89: 3095 outsidePoint: ${JSON.stringify(t)} 3096 insidePoint : ${JSON.stringify(r)} 3097 node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2,l=r.x<t.x?o-a:o+a,h=e.height/2,u=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*h){let p=r.y<t.y?t.y-h-n:n-h-t.y;l=d*p/u;let g={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+u-p:r.y-u+p};return l===0&&(g.x=t.x,g.y=t.y),d===0&&(g.x=t.x),u===0&&(g.y=t.y),ge.debug(`abc89 topp/bott calc, Q ${u}, q ${p}, R ${d}, r ${l}`,g),g}else{r.x<t.x?l=t.x-o-i:l=i-o-t.x;let p=u*l/d,g=r.x<t.x?r.x+d-l:r.x-d+l,m=r.y<t.y?r.y+p:r.y-p;return ge.debug(`sides calc abc89, Q ${u}, q ${p}, R ${d}, r ${l}`,{_x:g,_y:m}),l===0&&(g=t.x,m=t.y),d===0&&(g=t.x),u===0&&(m=t.y),{x:g,y:m}}},"intersection"),Sce=s((e,t)=>{ge.debug("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(!Tdt(t,a)&&!n){let o=wdt(t,i,a),l=!1;r.forEach(h=>{l=l||h.x===o.x&&h.y===o.y}),r.some(h=>h.x===o.x&&h.y===o.y)||r.push(o),n=!0}else i=a,n||r.push(a)}),r},"cutPathAtIntersect"),Cdt=s(function(e,t,r,i,n,a,o){let l=r.points;ge.debug("abc88 InsertEdge: edge=",r,"e=",t);let h=!1,u=a.node(t.v);var d=a.node(t.w);d!=null&&d.intersect&&(u!=null&&u.intersect)&&(l=l.slice(1,r.points.length-1),l.unshift(u.intersect(l[0])),l.push(d.intersect(l[l.length-1]))),r.toCluster&&(ge.debug("to cluster abc88",i[r.toCluster]),l=Sce(r.points,i[r.toCluster].node),h=!0),r.fromCluster&&(ge.debug("from cluster abc88",i[r.fromCluster]),l=Sce(l.reverse(),i[r.fromCluster].node).reverse(),h=!0);let p=l.filter(R=>!Number.isNaN(R.y)),g=Xm;r.curve&&(n==="graph"||n==="flowchart")&&(g=r.curve);let{x:m,y}=FF(r),x=Ym().x(m).y(y).curve(g),C;switch(r.thickness){case"normal":C="edge-thickness-normal";break;case"thick":C="edge-thickness-thick";break;case"invisible":C="edge-thickness-thick";break;default:C=""}switch(r.pattern){case"solid":C+=" edge-pattern-solid";break;case"dotted":C+=" edge-pattern-dotted";break;case"dashed":C+=" edge-pattern-dashed";break}let w=e.append("path").attr("d",x(p)).attr("id",r.id).attr("class"," "+C+(r.classes?" "+r.classes:"")).attr("style",r.style),_="";(Ue().flowchart.arrowMarkerAbsolute||Ue().state.arrowMarkerAbsolute)&&(_=px(!0)),vdt(w,r,_,o,n);let S={};return h&&(S.updatedPath=l),S.originalPath=r.points,S},"insertEdge")}),Edt,Sdt,c6t=Y(()=>{"use strict";Edt=s(e=>{let t=new Set;for(let r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),Sdt=s((e,t,r,i)=>{let n=Edt(e),a=2,o=t.height+2*r.padding,l=o/a,h=i!=null?i:t.width+2*l+r.padding,u=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:h/2,y:2*u},{x:h-l,y:0},{x:h,y:0},{x:h,y:-o/3},{x:h+2*u,y:-o/2},{x:h,y:-2*o/3},{x:h,y:-o},{x:h-l,y:-o},{x:h/2,y:-o-2*u},{x:l,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*u,y:-o/2},{x:0,y:-o/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:l,y:0},{x:h-l,y:0},{x:h,y:-o/2},{x:h-l,y:-o},{x:l,y:-o},{x:0,y:-o/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:l,y:-o},{x:h-l,y:-o},{x:h,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:h,y:-l},{x:h,y:-o+l},{x:0,y:-o}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:h,y:0},{x:0,y:-l},{x:0,y:-o+l},{x:h,y:-o}]:n.has("right")&&n.has("left")?[{x:l,y:0},{x:l,y:-u},{x:h-l,y:-u},{x:h-l,y:0},{x:h,y:-o/2},{x:h-l,y:-o},{x:h-l,y:-o+u},{x:l,y:-o+u},{x:l,y:-o},{x:0,y:-o/2}]:n.has("up")&&n.has("down")?[{x:h/2,y:0},{x:0,y:-u},{x:l,y:-u},{x:l,y:-o+u},{x:0,y:-o+u},{x:h/2,y:-o},{x:h,y:-o+u},{x:h-l,y:-o+u},{x:h-l,y:-u},{x:h,y:-u}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:h,y:-l},{x:0,y:-o}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-o}]:n.has("left")&&n.has("up")?[{x:h,y:0},{x:0,y:-l},{x:h,y:-o}]:n.has("left")&&n.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-o}]:n.has("right")?[{x:l,y:-u},{x:l,y:-u},{x:h-l,y:-u},{x:h-l,y:0},{x:h,y:-o/2},{x:h-l,y:-o},{x:h-l,y:-o+u},{x:l,y:-o+u},{x:l,y:-o+u}]:n.has("left")?[{x:l,y:0},{x:l,y:-u},{x:h-l,y:-u},{x:h-l,y:-o+u},{x:l,y:-o+u},{x:l,y:-o},{x:0,y:-o/2}]:n.has("up")?[{x:l,y:-u},{x:l,y:-o+u},{x:0,y:-o+u},{x:h/2,y:-o},{x:h,y:-o+u},{x:h-l,y:-o+u},{x:h-l,y:-u}]:n.has("down")?[{x:h/2,y:0},{x:0,y:-u},{x:l,y:-u},{x:l,y:-o+u},{x:h-l,y:-o+u},{x:h-l,y:-u},{x:h,y:-u}]:[{x:0,y:0}]},"getArrowPoints")});function _dt(e,t){return e.intersect(t)}f(_dt,"PSt");var Adt,h6t=Y(()=>{"use strict";s(_dt,"intersectNode"),Adt=_dt});function Ldt(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,l=a-i.y,h=Math.sqrt(t*t*l*l+r*r*o*o),u=Math.abs(t*r*o/h);i.x<n&&(u=-u);var d=Math.abs(t*r*l/h);return i.y<a&&(d=-d),{x:n+u,y:a+d}}f(Ldt,"BSt");var _ce,Rdt=Y(()=>{"use strict";s(Ldt,"intersectEllipse"),_ce=Ldt});function Idt(e,t,r){return _ce(e,t,t,r)}f(Idt,"FSt");var Ddt,u6t=Y(()=>{"use strict";Rdt(),s(Idt,"intersectCircle"),Ddt=Idt});function Ndt(e,t,r,i){var n,a,o,l,h,u,d,p,g,m,y,x,C,w,_;if(n=t.y-e.y,o=e.x-t.x,h=t.x*e.y-e.x*t.y,g=n*r.x+o*r.y+h,m=n*i.x+o*i.y+h,!(g!==0&&m!==0&&Ace(g,m))&&(a=i.y-r.y,l=r.x-i.x,u=i.x*r.y-r.x*i.y,d=a*e.x+l*e.y+u,p=a*t.x+l*t.y+u,!(d!==0&&p!==0&&Ace(d,p))&&(y=n*l-a*o,y!==0)))return x=Math.abs(y/2),C=o*u-l*h,w=C<0?(C-x)/y:(C+x)/y,C=a*h-n*u,_=C<0?(C-x)/y:(C+x)/y,{x:w,y:_}}f(Ndt,"$St");function Ace(e,t){return e*t>0}f(Ace,"M8e");var Mdt,d6t=Y(()=>{"use strict";s(Ndt,"intersectLine"),s(Ace,"sameSign"),Mdt=Ndt});function Odt(e,t,r){var i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(y){o=Math.min(o,y.x),l=Math.min(l,y.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));for(var h=i-e.width/2-o,u=n-e.height/2-l,d=0;d<t.length;d++){var p=t[d],g=t[d<t.length-1?d+1:0],m=Mdt(e,r,{x:h+p.x,y:u+p.y},{x:h+g.x,y:u+g.y});m&&a.push(m)}return a.length?(a.length>1&&a.sort(function(y,x){var C=y.x-r.x,w=y.y-r.y,_=Math.sqrt(C*C+w*w),S=x.x-r.x,R=x.y-r.y,b=Math.sqrt(S*S+R*R);return _<b?-1:_===b?0:1}),a[0]):e}f(Odt,"zSt");var $dt,p6t=Y(()=>{"use strict";d6t(),$dt=Odt,s(Odt,"intersectPolygon")}),Bdt,Pdt,g6t=Y(()=>{"use strict";Bdt=s((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,l=e.height/2,h,u;return Math.abs(a)*o>Math.abs(n)*l?(a<0&&(l=-l),h=a===0?0:l*n/a,u=l):(n<0&&(o=-o),h=o,u=n===0?0:o*a/n),{x:r+h,y:i+u}},"intersectRect"),Pdt=Bdt}),Vn,Fdt=Y(()=>{"use strict";h6t(),u6t(),Rdt(),p6t(),g6t(),Vn={node:Adt,circle:Ddt,ellipse:_ce,polygon:$dt,rect:Pdt}});function Jc(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}f(Jc,"Jl");var ts,na,zdt=Y(()=>{"use strict";Cce(),nl(),vr(),ti(),ui(),gi(),wr(),bTe(),ts=s(async(e,t,r,i)=>{let n=Ue(),a,o=t.useHtmlLabels||Vi(n);r?a=r:a="node default";let l=e.insert("g").attr("class",a).attr("id",t.domId||t.id),h=l.insert("g").attr("class","label").attr("style",t.labelStyle),u;t.labelText===void 0?u="":u=typeof t.labelText=="string"?t.labelText:t.labelText[0];let d;t.labelType==="markdown"?d=qs(h,Ei(Sh(u),n),{useHtmlLabels:o,width:t.width||n.flowchart.wrappingWidth,classes:"markdown-node-label"},n):d=await Jl(h,Ei(Sh(u),n),t.labelStyle,!1,i);let p=d.getBBox(),g=t.padding/2;if(Vi(n)){let m=d.children[0],y=Lt(d);await tF(m,u),p=m.getBoundingClientRect(),y.attr("width",p.width),y.attr("height",p.height)}return o?h.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):h.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&h.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:l,bbox:p,halfPadding:g,label:h}},"labelHelper"),na=s((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),s(Jc,"insertPolygonShape")}),qdt,jdt,f6t=Y(()=>{"use strict";zdt(),jt(),vr(),ti(),Fdt(),qdt=s(async(e,t)=>{t.useHtmlLabels||Vi(Ue())||(t.centerLabel=!0);let{shapeSvg:r,bbox:i,halfPadding:n}=await ts(e,t,"node "+t.classes,!0);ge.info("Classes = ",t.classes);let a=r.insert("rect",":first-child");return a.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-n).attr("y",-i.height/2-n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),na(t,a),t.intersect=function(o){return Vn.rect(t,o)},r},"note"),jdt=qdt});function xI(e,t,r,i){let n=[],a=s(l=>{n.push(l,0)},"addBorder"),o=s(l=>{n.push(0,l)},"skipBorder");t.includes("t")?(ge.debug("add top border"),a(r)):o(r),t.includes("r")?(ge.debug("add right border"),a(i)):o(i),t.includes("b")?(ge.debug("add bottom border"),a(r)):o(r),t.includes("l")?(ge.debug("add left border"),a(i)):o(i),e.attr("stroke-dasharray",n.join(" "))}f(xI,"Mq");var Lce,Yo,Rce,Gdt,Udt,Vdt,Wdt,Hdt,Ydt,Xdt,Kdt,Zdt,Qdt,Jdt,ept,tpt,rpt,ipt,npt,apt,spt,opt,Ice,lpt,cpt,Dce,jw,Nce,hpt,m6t=Y(()=>{"use strict";ui(),vr(),ti(),jt(),c6t(),Cce(),Fdt(),f6t(),zdt(),Lce=s(e=>e?" "+e:"","formatClass"),Yo=s((e,t)=>`${t||"node default"}${Lce(e.classes)} ${Lce(e.class)}`,"getClassesFromNode"),Rce=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=n+a,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];ge.info("Question main (Circle)");let h=Jc(r,o,o,l);return h.attr("style",t.style),na(t,h),t.intersect=function(u){return ge.warn("Intersect called"),Vn.polygon(t,l,u)},r},"question"),Gdt=s((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,n=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(a){return Vn.circle(t,14,a)},r},"choice"),Udt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=4,a=t.positioned?t.height:i.height+t.padding,o=a/n,l=t.positioned?t.width:i.width+2*o+t.padding,h=[{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}],u=Jc(r,l,a,h);return u.attr("style",t.style),na(t,u),t.intersect=function(d){return Vn.polygon(t,h,d)},r},"hexagon"),Vdt=s(async(e,t)=>{var p;let{shapeSvg:r,bbox:i}=await ts(e,t,void 0,!0),n=2,a=i.height+2*t.padding,o=a/n,l=i.width+2*o+t.padding,h=t.positioned&&((p=t.widthInColumns)!=null?p:1)>1&&t.width>l?t.width:l,u=Sdt(t.directions,i,t,h),d=Jc(r,h,a,u);return d.attr("style",t.style),na(t,d),t.intersect=function(g){return Vn.polygon(t,u,g)},r},"block_arrow"),Wdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Jc(r,n,a,o).attr("style",t.style),t.width=n+a,t.height=a,t.intersect=function(l){return Vn.polygon(t,o,l)},r},"rect_left_inv_arrow"),Hdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"lean_right"),Ydt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"lean_left"),Xdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"trapezoid"),Kdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"inv_trapezoid"),Zdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"rect_right_inv_arrow"),Qdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=n/2,o=a/(2.5+n/50),l=i.height+o+t.padding,h="M 0,"+o+" a "+a+","+o+" 0,0,0 "+n+" 0 a "+a+","+o+" 0,0,0 "+-n+" 0 l 0,"+l+" a "+a+","+o+" 0,0,0 "+n+" 0 l 0,"+-l,u=r.attr("label-offset-y",o).insert("path",":first-child").attr("style",t.style).attr("d",h).attr("transform","translate("+-n/2+","+-(l/2+o)+")");return na(t,u),t.intersect=function(d){let p=Vn.rect(t,d),g=p.x-t.x;if(a!=0&&(Math.abs(g)<t.width/2||Math.abs(g)==t.width/2&&Math.abs(p.y-t.y)>t.height/2-o)){let m=o*o*(1-g*g/(a*a));m!=0&&(m=Math.sqrt(m)),m=o-m,d.y-t.y>0&&(m=-m),p.y+=m}return p},r},"cylinder"),Jdt=s(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await ts(e,t,"node "+t.classes+" "+t.class,!0),a=r.insert("rect",":first-child"),o=t.positioned?t.width:i.width+t.padding,l=t.positioned?t.height:i.height+t.padding,h=t.positioned?-o/2:-i.width/2-n,u=t.positioned?-l/2:-i.height/2-n;if(a.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",u).attr("width",o).attr("height",l),t.props){let d=new Set(Object.keys(t.props));t.props.borders&&(xI(a,t.props.borders,o,l),d.delete("borders")),d.forEach(p=>{ge.warn(`Unknown node property ${p}`)})}return na(t,a),t.intersect=function(d){return Vn.rect(t,d)},r},"rect"),ept=s(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await ts(e,t,"node "+t.classes,!0),a=r.insert("rect",":first-child"),o=t.positioned?t.width:i.width+t.padding,l=t.positioned?t.height:i.height+t.padding,h=t.positioned?-o/2:-i.width/2-n,u=t.positioned?-l/2:-i.height/2-n;if(a.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",h).attr("y",u).attr("width",o).attr("height",l),t.props){let d=new Set(Object.keys(t.props));t.props.borders&&(xI(a,t.props.borders,o,l),d.delete("borders")),d.forEach(p=>{ge.warn(`Unknown node property ${p}`)})}return na(t,a),t.intersect=function(d){return Vn.rect(t,d)},r},"composite"),tpt=s(async(e,t)=>{let{shapeSvg:r}=await ts(e,t,"label",!0);ge.trace("Classes = ",t.class);let i=r.insert("rect",":first-child"),n=0,a=0;if(i.attr("width",n).attr("height",a),r.attr("class","label edgeLabel"),t.props){let o=new Set(Object.keys(t.props));t.props.borders&&(xI(i,t.props.borders,n,a),o.delete("borders")),o.forEach(l=>{ge.warn(`Unknown node property ${l}`)})}return na(t,i),t.intersect=function(o){return Vn.rect(t,o)},r},"labelRect"),s(xI,"applyNodePropertyBorders"),rpt=s(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";let i=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=i.insert("rect",":first-child"),a=i.insert("line"),o=i.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText,h="";typeof l=="object"?h=l[0]:h=l,ge.info("Label text abc79",h,l,typeof l=="object");let u=await Jl(o,h,t.labelStyle,!0,!0),d={width:0,height:0};if(Vi(Ue())){let x=u.children[0],C=Lt(u);d=x.getBoundingClientRect(),C.attr("width",d.width),C.attr("height",d.height)}ge.info("Text 2",l);let p=l.slice(1,l.length),g=u.getBBox(),m=await Jl(o,p.join?p.join("<br/>"):p,t.labelStyle,!0,!0);if(Vi(Ue())){let x=m.children[0],C=Lt(m);d=x.getBoundingClientRect(),C.attr("width",d.width),C.attr("height",d.height)}let y=t.padding/2;return Lt(m).attr("transform","translate( "+(d.width>g.width?0:(g.width-d.width)/2)+", "+(g.height+y+5)+")"),Lt(u).attr("transform","translate( "+(d.width<g.width?0:-(g.width-d.width)/2)+", 0)"),d=o.node().getBBox(),o.attr("transform","translate("+-d.width/2+", "+(-d.height/2-y+3)+")"),n.attr("class","outer title-state").attr("x",-d.width/2-y).attr("y",-d.height/2-y).attr("width",d.width+t.padding).attr("height",d.height+t.padding),a.attr("class","divider").attr("x1",-d.width/2-y).attr("x2",d.width/2+y).attr("y1",-d.height/2-y+g.height+y).attr("y2",-d.height/2-y+g.height+y),na(t,n),t.intersect=function(x){return Vn.rect(t,x)},i},"rectWithTitle"),ipt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.height+t.padding,a=i.width+n/4+t.padding,o=r.insert("rect",":first-child").attr("style",t.style).attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return na(t,o),t.intersect=function(l){return Vn.rect(t,l)},r},"stadium"),npt=s(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await ts(e,t,Yo(t,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),ge.info("Circle main"),na(t,a),t.intersect=function(o){return ge.info("Circle intersect",t,i.width/2+n,o),Vn.circle(t,i.width/2+n,o)},r},"circle"),apt=s(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await ts(e,t,Yo(t,void 0),!0),a=5,o=r.insert("g",":first-child"),l=o.insert("circle"),h=o.insert("circle");return o.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n+a).attr("width",i.width+t.padding+a*2).attr("height",i.height+t.padding+a*2),h.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),ge.info("DoubleCircle main"),na(t,l),t.intersect=function(u){return ge.info("DoubleCircle intersect",t,i.width/2+n+a,u),Vn.circle(t,i.width/2+n+a,u)},r},"doublecircle"),spt=s(async(e,t)=>{let{shapeSvg:r,bbox:i}=await ts(e,t,Yo(t,void 0),!0),n=i.width+t.padding,a=i.height+t.padding,o=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],l=Jc(r,n,a,o);return l.attr("style",t.style),na(t,l),t.intersect=function(h){return Vn.polygon(t,o,h)},r},"subroutine"),opt=s((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),na(t,i),t.intersect=function(n){return Vn.circle(t,7,n)},r},"start"),Ice=s((e,t,r)=>{let i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=70,a=10;r==="LR"&&(n=10,a=70);let o=i.append("rect").attr("x",-1*n/2).attr("y",-1*a/2).attr("width",n).attr("height",a).attr("class","fork-join");return na(t,o),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return Vn.rect(t,l)},i},"forkJoin"),lpt=s((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child"),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),na(t,n),t.intersect=function(a){return Vn.circle(t,7,a)},r},"end"),cpt=s(async(e,t)=>{var E;let r=t.padding/2,i=4,n=8,a;t.classes?a="node "+t.classes:a="node default";let o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=o.insert("rect",":first-child"),h=o.insert("line"),u=o.insert("line"),d=0,p=i,g=o.insert("g").attr("class","label"),m=0,y=(E=t.classData.annotations)==null?void 0:E[0],x=t.classData.annotations[0]?"\xAB"+t.classData.annotations[0]+"\xBB":"",C=await Jl(g,x,t.labelStyle,!0,!0),w=C.getBBox();if(Vi(Ue())){let A=C.children[0],I=Lt(C);w=A.getBoundingClientRect(),I.attr("width",w.width),I.attr("height",w.height)}t.classData.annotations[0]&&(p+=w.height+i,d+=w.width);let _=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(Vi(Ue())?_+="<"+t.classData.type+">":_+="<"+t.classData.type+">");let S=await Jl(g,_,t.labelStyle,!0,!0);Lt(S).attr("class","classTitle");let R=S.getBBox();if(Vi(Ue())){let A=S.children[0],I=Lt(S);R=A.getBoundingClientRect(),I.attr("width",R.width),I.attr("height",R.height)}p+=R.height+i,R.width>d&&(d=R.width);let b=[];t.classData.members.forEach(async A=>{let I=A.getDisplayDetails(),$=I.displayText;Vi(Ue())&&($=$.replace(/</g,"<").replace(/>/g,">"));let O=await Jl(g,$,I.cssStyle?I.cssStyle:t.labelStyle,!0,!0),j=O.getBBox();if(Vi(Ue())){let D=O.children[0],P=Lt(O);j=D.getBoundingClientRect(),P.attr("width",j.width),P.attr("height",j.height)}j.width>d&&(d=j.width),p+=j.height+i,b.push(O)}),p+=n;let v=[];if(t.classData.methods.forEach(async A=>{let I=A.getDisplayDetails(),$=I.displayText;Vi(Ue())&&($=$.replace(/</g,"<").replace(/>/g,">"));let O=await Jl(g,$,I.cssStyle?I.cssStyle:t.labelStyle,!0,!0),j=O.getBBox();if(Vi(Ue())){let D=O.children[0],P=Lt(O);j=D.getBoundingClientRect(),P.attr("width",j.width),P.attr("height",j.height)}j.width>d&&(d=j.width),p+=j.height+i,v.push(O)}),p+=n,y){let A=(d-w.width)/2;Lt(C).attr("transform","translate( "+(-1*d/2+A)+", "+-1*p/2+")"),m=w.height+i}let k=(d-R.width)/2;return Lt(S).attr("transform","translate( "+(-1*d/2+k)+", "+(-1*p/2+m)+")"),m+=R.height+i,h.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-p/2-r+n+m).attr("y2",-p/2-r+n+m),m+=n,b.forEach(A=>{var $;Lt(A).attr("transform","translate( "+-d/2+", "+(-1*p/2+m+n/2)+")");let I=A==null?void 0:A.getBBox();m+=(($=I==null?void 0:I.height)!=null?$:0)+i}),m+=n,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-p/2-r+n+m).attr("y2",-p/2-r+n+m),m+=n,v.forEach(A=>{var $;Lt(A).attr("transform","translate( "+-d/2+", "+(-1*p/2+m)+")");let I=A==null?void 0:A.getBBox();m+=(($=I==null?void 0:I.height)!=null?$:0)+i}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-d/2-r).attr("y",-(p/2)-r).attr("width",d+t.padding).attr("height",p+t.padding),na(t,l),t.intersect=function(A){return Vn.rect(t,A)},o},"class_box"),Dce={rhombus:Rce,composite:ept,question:Rce,rect:Jdt,labelRect:tpt,rectWithTitle:rpt,choice:Gdt,circle:npt,doublecircle:apt,stadium:ipt,hexagon:Udt,block_arrow:Vdt,rect_left_inv_arrow:Wdt,lean_right:Hdt,lean_left:Ydt,trapezoid:Xdt,inv_trapezoid:Kdt,rect_right_inv_arrow:Zdt,cylinder:Qdt,start:opt,end:lpt,note:jdt,subrout
3097ine:spt,fork:Ice,join:Ice,class_box:cpt},jw={},Nce=s(async(e,t,r)=>{let i,n;if(t.link){let a;Ue().securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a),n=await Dce[t.shape](i,t,r)}else n=await Dce[t.shape](e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),t.class&&n.attr("class","node default "+t.class),jw[t.id]=i,t.haveCallback&&jw[t.id].attr("class",jw[t.id].attr("class")+" clickable"),i},"insertNode"),hpt=s(e=>{let t=jw[e.id];ge.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")});function Mce(e,t,r=!1){var g,m,y,x,C,w,_,S;let i=e,n="default";(((g=i==null?void 0:i.classes)==null?void 0:g.length)||0)>0&&(n=((m=i==null?void 0:i.classes)!=null?m:[]).join(" ")),n=n+" flowchart-label";let a=0,o="",l;switch(i.type){case"round":a=5,o="rect";break;case"composite":a=0,o="composite",l=0;break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"block_arrow":o="block_arrow";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"rect_left_inv_arrow":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}let h=DB((y=i==null?void 0:i.styles)!=null?y:[]),u=i.label,d=(x=i.size)!=null?x:{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:h.labelStyle,shape:o,labelText:u,rx:a,ry:a,class:n,style:h.style,id:i.id,domId:p?`${p}-${i.id}`:i.id,directions:i.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:r,intersect:void 0,type:i.type,padding:(_=l!=null?l:(w=(C=Ir())==null?void 0:C.block)==null?void 0:w.padding)!=null?_:0,widthInColumns:(S=i.widthInColumns)!=null?S:1}}f(Mce,"Y8e");async function upt(e,t,r){let i=Mce(t,r,!1);if(i.type==="group")return;let n=Ir(),a=await Nce(e,i,{config:n}),o=a.node().getBBox(),l=r.getBlock(i.id);l.size={width:o.width,height:o.height,x:0,y:0,node:a},r.setBlock(l),a.remove()}f(upt,"u3t");async function dpt(e,t,r){let i=Mce(t,r,!0);if(r.getBlock(i.id).type!=="space"){let n=Ir();await Nce(e,i,{config:n}),t.intersect=i==null?void 0:i.intersect,hpt(i)}}f(dpt,"h3t");async function kI(e,t,r,i){for(let n of t)await i(e,n,r),n.children&&await kI(e,n.children,r,i)}f(kI,"Iq");async function ppt(e,t,r){await kI(e,t,r,upt)}f(ppt,"j8e");async function gpt(e,t,r){await kI(e,t,r,dpt)}f(gpt,"X8e");async function fpt(e,t,r,i,n){let a=new co({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let o of r)o.size&&a.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(let o of t)if(o.start&&o.end){let l=i.getBlock(o.start),h=i.getBlock(o.end);if(l!=null&&l.size&&(h!=null&&h.size)){let u=l.size,d=h.size,p=[{x:u.x,y:u.y},{x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2},{x:d.x,y:d.y}],g=n?`${n}-${o.id}`:o.id,m=o.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",y=o.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",x=`${m} ${y} flowchart-link LS-a1 LE-b1`;Cdt(e,{v:o.start,w:o.end,name:g},_r(Tt({},o),{id:g,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:p,classes:x}),void 0,"block",a,n),o.label&&(await xdt(e,_r(Tt({},o),{label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:p,classes:x})),kdt(_r(Tt({},o),{x:p[1].x,y:p[1].y}),{originalPath:p}))}}}f(fpt,"K8e");var y6t=Y(()=>{"use strict";Sc(),ti(),l6t(),m6t(),wr(),s(Mce,"getNodeFromBlock"),s(upt,"calculateBlockSize"),s(dpt,"insertBlockPositioned"),s(kI,"performOperations"),s(ppt,"calculateBlockSizes"),s(gpt,"insertBlocks"),s(fpt,"insertEdges")}),mpt,ypt,vpt,v6t=Y(()=>{"use strict";ui(),ti(),a6t(),jt(),Bn(),s6t(),y6t(),mpt=s(function(e,t){return t.db.getClasses()},"getClasses"),ypt=s(async function(e,t,r,i){let{securityLevel:n,block:a}=Ir(),o=i.db;o.setDiagramId(t);let l;n==="sandbox"&&(l=Lt("#i"+t));let h=Lt(n==="sandbox"?l.nodes()[0].contentDocument.body:"body"),u=n==="sandbox"?h.select(`[id="${t}"]`):Lt(`[id="${t}"]`);gdt(u,["point","circle","cross"],i.type,t);
3097let d=o.getBlocks(),p=o.getBlocksFlat(),g=o.getEdges(),m=u.insert("g").attr("class","block");await ppt(m,d,o);let y=fdt(o);if(await gpt(m,d,o),await fpt(m,g,p,o,t),y){let x=y,C=Math.max(1,Math.round(.125*(x.width/x.height))),w=x.height+C+10,_=x.width+10,{useMaxWidth:S}=a;Ta(u,w,_,!!S),ge.debug("Here Bounds",y,x),u.attr("viewBox",`${x.x-5} ${x.y-5} ${x.width+10} ${x.height+10}`)}},"draw"),vpt={draw:ypt,getClasses:mpt}}),bpt={};Jr(bpt,{diagram:f(()=>xpt,"diagram")});var xpt,b6t=Y(()=>{"use strict";r6t(),i6t(),n6t(),v6t(),xpt={parser:_ut,db:edt,renderer:vpt,styles:rdt}}),eh,kpt,Tpt,wpt,Cpt,Ept,Spt,_pt,TI,Apt=Y(()=>{"use strict";ti(),rs(),En(),wr(),eoe(),eh=new sR(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),kpt=s(()=>{eh.reset(),Tn()},"clear"),Tpt=s(()=>eh.records.stack[0],"getRoot"),wpt=s(()=>eh.records.cnt,"getCount"),Cpt=bi.treeView,Ept=s(()=>da(Cpt,Ir().treeView),"getConfig"),Spt=s((e,t)=>{for(;e<=eh.records.stack[eh.records.stack.length-1].level;)eh.records.stack.pop();let r={id:eh.records.cnt++,level:e,name:t,children:[]};eh.records.stack[eh.records.stack.length-1].children.push(r),eh.records.stack.push(r)},"addNode"),_pt={clear:kpt,addNode:Spt,getRoot:Tpt,getCount:wpt,getConfig:Ept,getAccTitle:Pn,getAccDescription:zn,getDiagramTitle:Cn,setAccDescription:Fn,setAccTitle:wn,setDiagramTitle:qn},TI=_pt}),Lpt,Rpt,x6t=Y(()=>{"use strict";jt(),Fd(),Apt(),Xc(),Lpt=s(e=>{uu(e,TI),e.nodes.map(t=>TI.addNode(t.indent?parseInt(t.indent):0,t.name))},"populate"),Rpt={parse:s(async e=>{let t=await Kl("treeView",e);ge.debug(t),Lpt(t)},"parse")}}),Ipt,Oce,Dpt,Npt,Mpt,Opt,k6t=Y(()=>{"use strict";jt(),Ho(),Bn(),Ipt=s((e,t,r,i,n)=>{let a=i.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:o,width:l}=a.node().getBBox(),h=o+n.paddingY*2,u=l+n.paddingX*2;a.attr("x",e+n.paddingX),a.attr("y",t+h/2),r.BBox={x:e,y:t,width:u,height:h}},"positionLabel"),Oce=s((e,t,r,i,n,a)=>e.append("line").attr("x1",t).attr("y1",r).attr("x2",i).attr("y2",n).attr("stroke-width",a).attr("class","treeView-node-line"),"positionLine"),Dpt=s((e,t,r)=>{let i=0,n=0,a=s((l,h,u,d)=>{let p=d*(u.rowIndent+u.paddingX);Ipt(p,i,h,l,u);let{height:g,width:m}=h.BBox;Oce(l,p-u.rowIndent,i+g/2,p,i+g/2,u.lineThickness),n=Math.max(n,p+m),i+=g},"drawNode"),o=s((l,h=0)=>{a(e,l,r,h),l.children.forEach(g=>{o(g,h+1)});let{x:u,y:d,height:p}=l.BBox;if(l.children.length){let{y:g,height:m}=l.children[l.children.length-1].BBox;Oce(e,u+r.paddingX,d+p,u+r.paddingX,g+m/2+r.lineThickness/2,r.lineThickness)}},"processNode");return o(t),{totalHeight:i,totalWidth:n}},"drawTree"),Npt=s((e,t,r,i)=>{ge.debug(`Rendering treeView diagram 3098`+e);let n=i.db,a=n.getRoot(),o=n.getConfig(),l=Co(t),h=l.append("g");h.attr("class","tree-view");let{totalHeight:u,totalWidth:d}=Dpt(h,a,o);l.attr("viewBox",`-${o.lineThickness/2} 0 ${d} ${u}`),Ta(l,u,d,o.useMaxWidth)},"draw"),Mpt={draw:Npt},Opt=Mpt}),$pt,Bpt,Ppt,T6t=Y(()=>{"use strict";wr(),$pt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},Bpt=s(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=da($pt,e);return` 3099 .treeView-node-label { 3100 font-size: ${t}; 3101 fill: ${r}; 3102 } 3103 .treeView-node-line { 3104 stroke: ${i}; 3105 } 3106 `},"styles"),Ppt=Bpt}),Fpt={};Jr(Fpt,{diagram:f(()=>zpt,"diagram")});var zpt,w6t=Y(()=>{"use strict";x6t(),Apt(),k6t(),T6t(),zpt={db:TI,renderer:Opt,parser:Rpt,styles:Ppt}}),$ce,Bce,Gw,qpt,Pce,eo,Hd,wI,jpt,Gpt,CI,Upt,Vpt,Wpt,Hpt,Ypt,Fce,U1,zce=Y(()=>{"use strict";$ce={L:"left",R:"right",T:"top",B:"bottom"},Bce={L:s(e=>`${e},${e/2} 0,${e} 0,0`,"L"),R:s(e=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:s(e=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:s(e=>`${e/2},0 ${e},${e} 0,${e}`,"B")},Gw={L:s((e,t)=>e-t+2,"L"),R:s((e,t)=>e-2,"R"),T:s((e,t)=>e-t+2,"T"),B:s((e,t)=>e-2,"B")},qpt=s(function(e){return eo(e)?e==="L"?"R":"L":e==="T"?"B":"T"},"getOppositeArchitectureDirection"),Pce=s(function(e){let t=e;return t==="L"||t==="R"||t==="T"||t==="B"},"isArchitectureDirection"),eo=s(function(e){let t=e;return t==="L"||t==="R"},"isArchitectureDirectionX"),Hd=s(function(e){let t=e;return t==="T"||t==="B"},"isArchitectureDirectionY"),wI=s(function(e,t){let r=eo(e)&&Hd(t),i=Hd(e)&&eo(t);return r||i},"isArchitectureDirectionXY"),jpt=s(function(e){let t=e[0],r=e[1],i=eo(t)&&Hd(r),n=Hd(t)&&eo(r);return i||n},"isArchitecturePairXY"),Gpt=s(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),CI=s(function(e,t){let r=`${e}${t}`;return Gpt(r)?r:void 0},"getArchitectureDirectionPair"),Upt=s(function([e,t],r){let i=r[0],n=r[1];return eo(i)?Hd(n)?[e+(i==="L"?-1:1),t+(n==="T"?1:-1)]:[e+(i==="L"?-1:1),t]:eo(n)?[e+(n==="L"?1:-1),t+(i==="T"?1:-1)]:[e,t+(i==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Vpt=s(function(e){return e==="LT"||e==="TL"?[1,1]:e==="BL"||e==="LB"?[1,-1]:e==="BR"||e==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Wpt=s(function(e,t){return wI(e,t)?"bend":eo(e)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Hpt=s(function(e){return e.type==="service"},"isArchitectureService"),Ypt=s(function(e){return e.type==="junction"},"isArchitectureJunction"),Fce=s(e=>e.data(),"edgeData"),U1=s(e=>e.data(),"nodeData")}),Xpt,qce,Kpt=Y(()=>{"use strict";var e;ti(),rs(),wr(),En(),zce(),Xpt=bi.architecture,qce=(e=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=wn,this.getAccTitle=Pn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getAccDescription=zn,this.setAccDescription=Fn,this.clear()}setDiagramId(r){this.diagramId=r}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",Tn()}addService({id:r,icon:i,in:n,title:a,iconText:o}){if(this.registeredIds[r]!==void 0)throw new Error(`The service id [${r}] is already in use by another ${this.registeredIds[r]}`);if(n!==void 0){if(r===n)throw new Error(`The service [${r}] cannot be placed within itself`);if(this.registeredIds[n]===void 0)throw new Error(`The service [${r}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[n]==="node")throw new Error(`The service [${r}]'s parent is not a group`)}this.registeredIds[r]="node",this.nodes[r]={id:r,type:"service",icon:i,iconText:o,title:a,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(Hpt)}addJunction({id:r,in:i}){if(this.registeredIds[r]!==void 0)throw new Error(`The junction id [${r}] is already in use by another ${this.registeredIds[r]}`);if(i!==void 0){if(r===i)throw new Error(`The junction [${r}] cannot be placed within itself`);if(this.registeredIds[i]===void 0)throw new Error(`The junction [${r}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[i]==="node")throw new Error(`The junction [${r}]'s parent is not a group`)}this.registeredIds[r]="node",this.nodes[r]={id:r,type:"junction",edges:[],in:i}}getJunctions(){return Object.values(this.nodes).filter(Ypt)}getNodes(){return Object.values(this.nodes)}getNode(r){var i;return(i=this.nodes[r])!=null?i:null}addGroup({id:r,icon:i,in:n,title:a}){var o,l,h;if(((o=this.registeredIds)==null?void 0:o[r])!==void 0)throw new Error(`The group id [${r}] is already in use by another ${this.registeredIds[r]}`);if(n!==void 0){if(r===n)throw new Error(`The group [${r}] cannot be placed within itself`);if(((l=this.registeredIds)==null?void 0:l[n])===void 0)throw new Error(`The group [${r}]'s parent does not exist. Please make sure the parent is created before this group`);if(((h=this.registeredIds)==null?void 0:h[n])==="node")throw new Error(`The group [${r}]'s parent is not a group`)}this.registeredIds[r]="group",this.groups[r]={id:r,icon:i,title:a,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:r,rhsId:i,lhsDir:n,rhsDir:a,lhsInto:o,rhsInto:l,lhsGroup:h,rhsGroup:u,title:d}){if(!Pce(n))throw new Error(`Invalid direction given for left hand side of edge ${r}--${i}. Expected (L,R,T,B) got ${String(n)}`);if(!Pce(a))throw new Error(`Invalid direction given for right hand side of edge ${r}--${i}. Expected (L,R,T,B) got ${String(a)}`);if(this.nodes[r]===void 0&&this.groups[r]===void 0)throw new Error(`The left-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[i]===void 0&&this.groups[i]===void 0)throw new Error(`The right-hand id [${i}] does not yet exist. Please create the service/group before declaring an edge to it.`);let p=this.nodes[r].in,g=this.nodes[i].in;if(h&&p&&g&&p==g)throw new Error(`The left-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(u&&p&&g&&p==g)throw new Error(`The right-hand id [${i}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let m={lhsId:r,lhsDir:n,lhsInto:o,lhsGroup:h,rhsId:i,rhsDir:a,rhsInto:l,rhsGroup:u,title:d};this.edges.push(m),this.nodes[r]&&this.nodes[i]&&(this.nodes[r].edges.push(this.edges[this.edges.length-1]),this.nodes[i].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let r={},i=Object.entries(this.nodes).reduce((u,[d,p])=>(u[d]=p.edges.reduce((g,m)=>{var C,w,_,S;let y=(C=this.getNode(m.lhsId))==null?void 0:C.in,x=(w=this.getNode(m.rhsId))==null?void 0:w.in;if(y&&x&&y!==x){let R=Wpt(m.lhsDir,m.rhsDir);R!=="bend"&&((_=r[y])!=null||(r[y]={}),r[y][x]=R,(S=r[x])!=null||(r[x]={}),r[x][y]=R)}if(m.lhsId===d){let R=CI(m.lhsDir,m.rhsDir);R&&(g[R]=m.rhsId)}else{let R=CI(m.rhsDir,m.lhsDir);R&&(g[R]=m.lhsId)}return g},{}),u),{}),n=Object.keys(i)[0],a={[n]:1},o=Object.keys(i).reduce((u,d)=>d===n?u:_r(Tt({},u),{[d]:1}),{}),l=s(u=>{let d={[u]:[0,0]},p=[u];for(;p.length>0;){let g=p.shift();if(g){a[g]=1,delete o[g];let m=i[g],[y,x]=d[g];Object.entries(m).forEach(([C,w])=>{a[w]||(d[w]=Upt([y,x],C),p.push(w))})}}return d},"BFS"),h=[l(n)];for(;Object.keys(o).length>0;)h.push(l(Object.keys(o)[0]));this.dataStructures={adjList:i,spatialMaps:h,groupAlignments:r}}return this.dataStructures}setElementForId(r,i){this.elements[r]=i}getElementById(r){return this.elements[r]}getConfig(){return da(Tt(Tt({},Xpt),Ir().architecture))}getConfigField(r){return this.getConfig()[r]}},f(e,"Iy"),s(e,"ArchitectureDB"),e)}),Zpt,jce,C6t=Y(()=>{"use strict";Xc(),jt(),Fd(),Kpt(),Zpt=s((e,t)=>{uu(e,t),e.groups.map(r=>t.addGroup(r)),e.services.map(r=>t.addService(_r(Tt({},r),{type:"service"}))),e.junctions.map(r=>t.addJunction(_r(Tt({},r),{type:"junction"}))),e.edges.map(r=>t.addEdge(r))},"populateDb"),jce={parser:{yy:void 0},parse:s(async e=>{var i;let t=await Kl("architecture",e);ge.debug(t);let r=(i=jce.parser)==null?void 0:i.yy;if(!(r instanceof qce))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Zpt(t,r)},"parse")}}),Qpt,Jpt,E6t=Y(()=>{"use strict";Qpt=s(e=>` 3107 .edge { 3108 stroke-width: ${e.archEdgeWidth}; 3109 stroke: ${e.archEdgeColor}; 3110 fill: none; 3111 } 3112 3113 .arrow { 3114 fill: ${e.archEdgeArrowColor}; 3115 } 3116 3117 .node-bkg { 3118 fill: none; 3119 stroke: ${e.archGroupBorderColor}; 3120 stroke-width: ${e.archGroupBorderWidth}; 3121 stroke-dasharray: 8; 3122 } 3123 .node-icon-text { 3124 display: flex;
3125 align-items: center; 3126 } 3127 3128 .node-icon-text > div { 3129 color: #fff; 3130 margin: 1px; 3131 height: fit-content; 3132 text-align: center; 3133 overflow: hidden; 3134 display: -webkit-box; 3135 -webkit-box-orient: vertical; 3136 } 3137`,"getStyles"),Jpt=Qpt}),e0t=Xo((e,t)=>{"use strict";s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i():typeof define=="function"&&define.amd?define([],i):typeof e=="object"?e.layoutBase=i():r.layoutBase=i()}),"webpackUniversalModuleDefinition")(e,function(){return(function(r){var i={};function n(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return f(n,"r"),s(n,"__webpack_require__"),n.m=r,n.c=i,n.i=function(a){return a},n.d=function(a,o,l){n.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},n.n=function(a){var o=a&&a.__esModule?s(function(){return a.default},"getDefault"):s(function(){return a},"getModuleExports");return n.d(o,"a",o),o},n.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},n.p="",n(n.s=28)})([(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"LayoutConstants"),a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(8),l=n(9);function h(d,p,g){a.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=d,this.target=p}f(h,"s"),s(h,"LEdge"),h.prototype=Object.create(a.prototype);for(var u in a)h[u]=a[u];h.prototype.getSource=function(){return this.source},h.prototype.getTarget=function(){return this.target},h.prototype.isInterGraph=function(){return this.isInterGraph},h.prototype.getLength=function(){return this.length},h.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},h.prototype.getBendpoints=function(){return this.bendpoints},h.prototype.getLca=function(){return this.lca},h.prototype.getSourceInLca=function(){return this.sourceInLca},h.prototype.getTargetInLca=function(){return this.targetInLca},h.prototype.getOtherEnd=function(d){if(this.source===d)return this.target;if(this.target===d)return this.source;throw"Node is not incident with this edge"},h.prototype.getOtherEndInGraph=function(d,p){for(var g=this.getOtherEnd(d),m=p.getGraphManager().getRoot();;){if(g.getOwner()==p)return g;if(g.getOwner()==m)break;g=g.getOwner().getParent()}return null},h.prototype.updateLength=function(){var d=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),d),this.isOverlapingSourceAndTarget||(this.lengthX=d[0]-d[2],this.lengthY=d[1]-d[3],Math.abs(this.lengthX)<1&&(this.lengthX=l.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=l.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},h.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=l.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=l.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=h}),(function(r,i,n){"use strict";function a(o){this.vGraphObject=o}f(a,"i"),s(a,"LGraphObject"),r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(10),l=n(13),h=n(0),u=n(16),d=n(5);function p(m,y,x,C){x==null&&C==null&&(C=y),a.call(this,C),m.graphManager!=null&&(m=m.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=C,this.edges=[],this.graphManager=m,x!=null&&y!=null?this.rect=new l(y.x,y.y,x.width,x.height):this.rect=new l}f(p,"h"),s(p,"LNode"),p.prototype=Object.create(a.prototype);for(var g in a)p[g]=a[g];p.prototype.getEdges=function(){return this.edges},p.prototype.getChild=function(){return this.child},p.prototype.getOwner=function(){return this.owner},p.prototype.getWidth=function(){return this.rect.width},p.prototype.setWidth=function(m){this.rect.width=m},p.prototype.getHeight=function(){return this.rect.height},p.prototype.setHeight=function(m){this.rect.height=m},p.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},p.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},p.prototype.getCenter=function(){return new d(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},p.prototype.getLocation=function(){return new d(this.rect.x,this.rect.y)},p.prototype.getRect=function(){return this.rect},p.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},p.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},p.prototype.setRect=function(m,y){this.rect.x=m.x,this.rect.y=m.y,this.rect.width=y.width,this.rect.height=y.height},p.prototype.setCenter=function(m,y){this.rect.x=m-this.rect.width/2,this.rect.y=y-this.rect.height/2},p.prototype.setLocation=function(m,y){this.rect.x=m,this.rect.y=y},p.prototype.moveBy=function(m,y){this.rect.x+=m,this.rect.y+=y},p.prototype.getEdgeListToNode=function(m){var y=[],x,C=this;
vendor: 6,310 bytes, line 3137
3137return C.edges.forEach(function(w){if(w.target==m){if(w.source!=C)throw"Incorrect edge source!";y.push(w)}}),y},p.prototype.getEdgesBetween=function(m){var y=[],x,C=this;return C.edges.forEach(function(w){if(!(w.source==C||w.target==C))throw"Incorrect edge source and/or target";(w.target==m||w.source==m)&&y.push(w)}),y},p.prototype.getNeighborsList=function(){var m=new Set,y=this;return y.edges.forEach(function(x){if(x.source==y)m.add(x.target);else{if(x.target!=y)throw"Incorrect incidency!";m.add(x.source)}}),m},p.prototype.withChildren=function(){var m=new Set,y,x;if(m.add(this),this.child!=null)for(var C=this.child.getNodes(),w=0;w<C.length;w++)y=C[w],x=y.withChildren(),x.forEach(function(_){m.add(_)});return m},p.prototype.getNoOfChildren=function(){var m=0,y;if(this.child==null)m=1;else for(var x=this.child.getNodes(),C=0;C<x.length;C++)y=x[C],m+=y.getNoOfChildren();return m==0&&(m=1),m},p.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},p.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},p.prototype.scatter=function(){var m,y,x=-h.INITIAL_WORLD_BOUNDARY,C=h.INITIAL_WORLD_BOUNDARY;m=h.WORLD_CENTER_X+u.nextDouble()*(C-x)+x;var w=-h.INITIAL_WORLD_BOUNDARY,_=h.INITIAL_WORLD_BOUNDARY;y=h.WORLD_CENTER_Y+u.nextDouble()*(_-w)+w,this.rect.x=m,this.rect.y=y},p.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var m=this.getChild();if(m.updateBounds(!0),this.rect.x=m.getLeft(),this.rect.y=m.getTop(),this.setWidth(m.getRight()-m.getLeft()),this.setHeight(m.getBottom()-m.getTop()),h.NODE_DIMENSIONS_INCLUDE_LABELS){var y=m.getRight()-m.getLeft(),x=m.getBottom()-m.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(y+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>y?(this.rect.x-=(this.labelWidth-y)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(y+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(x+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>x?(this.rect.y-=(this.labelHeight-x)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(x+this.labelHeight))}}},p.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},p.prototype.transform=function(m){var y=this.rect.x;y>h.WORLD_BOUNDARY?y=h.WORLD_BOUNDARY:y<-h.WORLD_BOUNDARY&&(y=-h.WORLD_BOUNDARY);var x=this.rect.y;x>h.WORLD_BOUNDARY?x=h.WORLD_BOUNDARY:x<-h.WORLD_BOUNDARY&&(x=-h.WORLD_BOUNDARY);var C=new d(y,x),w=m.inverseTransformPoint(C);this.setLocation(w.x,w.y)},p.prototype.getLeft=function(){return this.rect.x},p.prototype.getRight=function(){return this.rect.x+this.rect.width},p.prototype.getTop=function(){return this.rect.y},p.prototype.getBottom=function(){return this.rect.y+this.rect.height},p.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=p}),(function(r,i,n){"use strict";var a=n(0);function o(){}f(o,"n"),s(o,"FDLayoutConstants");for(var l in a)o[l]=a[l];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=o}),(function(r,i,n){"use strict";function a(o,l){o==null&&l==null?(this.x=0,this.y=0):(this.x=o,this.y=l)}f(a,"i"),s(a,"PointD"),a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},r.exports=a}),(function(r,i,n){"use strict";var a=n(2),o=n(10),l=n(0),h=n(7),u=n(3),d=n(1),p=n(13),g=n(12),m=n(11);function y(C,w,_){a.call(this,_),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=C,w!=null&&w instanceof h?this.graphManager=w:w!=null&&w instanceof Layout&&(this.graphManager=w.graphManager)}f(y,"p"),s(y,"LGraph"),y.prototype=Object.create(a.prototype);for(var x in a)y[x]=a[x];y.prototype.getNodes=function(){return this.nodes},y.prototype.getEdges=function(){return this.edges},y.prototype.getGraphManager=function(){return this.graphManager},y.prototype.getParent=function(){return this.parent},y.prototype.getLeft=function(){return this.left},y.prototype.getRight=function(){return this.right},y.prototype.getTop=function(){return this.top},y.prototype.getBottom=function(){return this.bottom},y.prototype.isConnected=function(){return this.isConnected},y.prototype.add=function(C,w,_){if(w==null&&_==null){var S=C;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(S)>-1)throw"Node already in graph!";return S.owner=this,this.getNodes().push(S),S}else{var R=C;if(!(this.getNodes().indexOf(w)>-1&&this.getNodes().indexOf(_)>-1))throw"Source or target not in graph!";if(!(w.owner==_.owner&&w.owner==this))throw"Both owners must be this graph!";return w.owner!=_.owner?null:(R.source=w,R.target=_,R.isInterGraph=!1,this.getEdges().push(R),w.edges.push(R),_!=w&&_.edges.push(R),R)}},y.prototype.remove=function(C){var w=C;
vendor: 4,231 bytes, line 3137
3137if(C instanceof u){if(w==null)throw"Node is null!";if(!(w.owner!=null&&w.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var _=w.edges.slice(),S,R=_.length,b=0;b<R;b++)S=_[b],S.isInterGraph?this.graphManager.remove(S):S.source.owner.remove(S);var v=this.nodes.indexOf(w);if(v==-1)throw"Node not in owner node list!";this.nodes.splice(v,1)}else if(C instanceof d){var S=C;if(S==null)throw"Edge is null!";if(!(S.source!=null&&S.target!=null))throw"Source and/or target is null!";if(!(S.source.owner!=null&&S.target.owner!=null&&S.source.owner==this&&S.target.owner==this))throw"Source and/or target owner is invalid!";var k=S.source.edges.indexOf(S),E=S.target.edges.indexOf(S);if(!(k>-1&&E>-1))throw"Source and/or target doesn't know this edge!";S.source.edges.splice(k,1),S.target!=S.source&&S.target.edges.splice(E,1);var v=S.source.owner.getEdges().indexOf(S);if(v==-1)throw"Not in owner's edge list!";S.source.owner.getEdges().splice(v,1)}},y.prototype.updateLeftTop=function(){for(var C=o.MAX_VALUE,w=o.MAX_VALUE,_,S,R,b=this.getNodes(),v=b.length,k=0;k<v;k++){var E=b[k];_=E.getTop(),S=E.getLeft(),C>_&&(C=_),w>S&&(w=S)}return C==o.MAX_VALUE?null:(b[0].getParent().paddingLeft!=null?R=b[0].getParent().paddingLeft:R=this.margin,this.left=w-R,this.top=C-R,new g(this.left,this.top))},y.prototype.updateBounds=function(C){for(var w=o.MAX_VALUE,_=-o.MAX_VALUE,S=o.MAX_VALUE,R=-o.MAX_VALUE,b,v,k,E,A,I=this.nodes,$=I.length,O=0;O<$;O++){var j=I[O];C&&j.child!=null&&j.updateBounds(),b=j.getLeft(),v=j.getRight(),k=j.getTop(),E=j.getBottom(),w>b&&(w=b),_<v&&(_=v),S>k&&(S=k),R<E&&(R=E)}var D=new p(w,S,_-w,R-S);w==o.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),I[0].getParent().paddingLeft!=null?A=I[0].getParent().paddingLeft:A=this.margin,this.left=D.x-A,this.right=D.x+D.width+A,this.top=D.y-A,this.bottom=D.y+D.height+A},y.calculateBounds=function(C){for(var w=o.MAX_VALUE,_=-o.MAX_VALUE,S=o.MAX_VALUE,R=-o.MAX_VALUE,b,v,k,E,A=C.length,I=0;I<A;I++){var $=C[I];b=$.getLeft(),v=$.getRight(),k=$.getTop(),E=$.getBottom(),w>b&&(w=b),_<v&&(_=v),S>k&&(S=k),R<E&&(R=E)}var O=new p(w,S,_-w,R-S);return O},y.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},y.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},y.prototype.calcEstimatedSize=function(){for(var C=0,w=this.nodes,_=w.length,S=0;S<_;S++){var R=w[S];C+=R.calcEstimatedSize()}return C==0?this.estimatedSize=l.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=C/Math.sqrt(this.nodes.length),this.estimatedSize},y.prototype.updateConnected=function(){var C=this;if(this.nodes.length==0){this.isConnected=!0;return}var w=new m,_=new Set,S=this.nodes[0],R,b,v=S.withChildren();for(v.forEach(function(O){w.push(O),_.add(O)});w.length!==0;){S=w.shift(),R=S.getEdges();for(var k=R.length,E=0;E<k;E++){var A=R[E];if(b=A.getOtherEndInGraph(S,this),b!=null&&!_.has(b)){var I=b.withChildren();I.forEach(function(O){w.push(O),_.add(O)})}}}if(this.isConnected=!1,_.size>=this.nodes.length){var $=0;_.forEach(function(O){O.owner==C&&$++}),$==this.nodes.length&&(this.isConnected=!0)}},r.exports=y}),(function(r,i,n){"use strict";var a,o=n(1);function l(h){a=n(6),this.layout=h,this.graphs=[],this.edges=[]}f(l,"a"),s(l,"LGraphManager"),l.prototype.addRoot=function(){var h=this.layout.newGraph(),u=this.layout.newNode(null),d=this.add(h,u);return this.setRootGraph(d),this.rootGraph},l.prototype.add=function(h,u,d,p,g){if(d==null&&p==null&&g==null){if(h==null)throw"Graph is null!";if(u==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(u.child!=null)throw"Already has a child!";return h.parent=u,u.child=h,h}else{g=d,p=u,d=h;var m=p.getOwner(),y=g.getOwner();if(!(m!=null&&m.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(y!=null&&y.getGraphManager()==this))throw"Target not in this graph mgr!";if(m==y)return d.isInterGraph=!1,m.add(d,p,g);
vendor: 49,954 bytes, line 3137
3137if(d.isInterGraph=!0,d.source=p,d.target=g,this.edges.indexOf(d)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(d),!(d.source!=null&&d.target!=null))throw"Edge source and/or target is null!";if(!(d.source.edges.indexOf(d)==-1&&d.target.edges.indexOf(d)==-1))throw"Edge already in source and/or target incidency list!";return d.source.edges.push(d),d.target.edges.push(d),d}},l.prototype.remove=function(h){if(h instanceof a){var u=h;if(u.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(u==this.rootGraph||u.parent!=null&&u.parent.graphManager==this))throw"Invalid parent node!";var d=[];d=d.concat(u.getEdges());for(var p,g=d.length,m=0;m<g;m++)p=d[m],u.remove(p);var y=[];y=y.concat(u.getNodes());var x;g=y.length;for(var m=0;m<g;m++)x=y[m],u.remove(x);u==this.rootGraph&&this.setRootGraph(null);var C=this.graphs.indexOf(u);this.graphs.splice(C,1),u.parent=null}else if(h instanceof o){if(p=h,p==null)throw"Edge is null!";if(!p.isInterGraph)throw"Not an inter-graph edge!";if(!(p.source!=null&&p.target!=null))throw"Source and/or target is null!";if(!(p.source.edges.indexOf(p)!=-1&&p.target.edges.indexOf(p)!=-1))throw"Source and/or target doesn't know this edge!";var C=p.source.edges.indexOf(p);if(p.source.edges.splice(C,1),C=p.target.edges.indexOf(p),p.target.edges.splice(C,1),!(p.source.owner!=null&&p.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(p.source.owner.getGraphManager().edges.indexOf(p)==-1)throw"Not in owner graph manager's edge list!";var C=p.source.owner.getGraphManager().edges.indexOf(p);p.source.owner.getGraphManager().edges.splice(C,1)}},l.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},l.prototype.getGraphs=function(){return this.graphs},l.prototype.getAllNodes=function(){if(this.allNodes==null){for(var h=[],u=this.getGraphs(),d=u.length,p=0;p<d;p++)h=h.concat(u[p].getNodes());this.allNodes=h}return this.allNodes},l.prototype.resetAllNodes=function(){this.allNodes=null},l.prototype.resetAllEdges=function(){this.allEdges=null},l.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},l.prototype.getAllEdges=function(){if(this.allEdges==null){for(var h=[],u=this.getGraphs(),d=u.length,p=0;p<u.length;p++)h=h.concat(u[p].getEdges());h=h.concat(this.edges),this.allEdges=h}return this.allEdges},l.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},l.prototype.setAllNodesToApplyGravitation=function(h){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=h},l.prototype.getRoot=function(){return this.rootGraph},l.prototype.setRootGraph=function(h){if(h.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=h,h.parent==null&&(h.parent=this.layout.newNode("Root node"))},l.prototype.getLayout=function(){return this.layout},l.prototype.isOneAncestorOfOther=function(h,u){if(!(h!=null&&u!=null))throw"assert failed";if(h==u)return!0;var d=h.getOwner(),p;do{if(p=d.getParent(),p==null)break;if(p==u)return!0;if(d=p.getOwner(),d==null)break}while(!0);d=u.getOwner();do{if(p=d.getParent(),p==null)break;if(p==h)return!0;if(d=p.getOwner(),d==null)break}while(!0);return!1},l.prototype.calcLowestCommonAncestors=function(){for(var h,u,d,p,g,m=this.getAllEdges(),y=m.length,x=0;x<y;x++){if(h=m[x],u=h.source,d=h.target,h.lca=null,h.sourceInLca=u,h.targetInLca=d,u==d){h.lca=u.getOwner();continue}for(p=u.getOwner();h.lca==null;){for(h.targetInLca=d,g=d.getOwner();h.lca==null;){if(g==p){h.lca=g;break}if(g==this.rootGraph)break;if(h.lca!=null)throw"assert failed";h.targetInLca=g.getParent(),g=h.targetInLca.getOwner()}if(p==this.rootGraph)break;h.lca==null&&(h.sourceInLca=p.getParent(),p=h.sourceInLca.getOwner())}if(h.lca==null)throw"assert failed"}},l.prototype.calcLowestCommonAncestor=function(h,u){if(h==u)return h.getOwner();var d=h.getOwner();do{if(d==null)break;var p=u.getOwner();do{if(p==null)break;if(p==d)return p;p=p.getParent().getOwner()}while(!0);d=d.getParent().getOwner()}while(!0);return d},l.prototype.calcInclusionTreeDepths=function(h,u){h==null&&u==null&&(h=this.rootGraph,u=1);for(var d,p=h.getNodes(),g=p.length,m=0;m<g;m++)d=p[m],d.inclusionTreeDepth=u,d.child!=null&&this.calcInclusionTreeDepths(d.child,u+1)},l.prototype.includesInvalidEdge=function(){for(var h,u=[],d=this.edges.length,p=0;p<d;p++)h=this.edges[p],this.isOneAncestorOfOther(h.source,h.target)&&u.push(h);for(var p=0;p<u.length;p++)this.remove(u[p]);return!1},r.exports=l}),(function(r,i,n){"use strict";var a=n(12);function o(){}f(o,"n"),s(o,"IGeometry"),o.calcSeparationAmount=function(l,h,u,d){if(!l.intersects(h))throw"assert failed";var p=new Array(2);this.decideDirectionsForOverlappingNodes(l,h,p),u[0]=Math.min(l.getRight(),h.getRight())-Math.max(l.x,h.x),u[1]=Math.min(l.getBottom(),h.getBottom())-Math.max(l.y,h.y),l.getX()<=h.getX()&&l.getRight()>=h.getRight()?u[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight()):h.getX()<=l.getX()&&h.getRight()>=l.getRight()&&(u[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight())),l.getY()<=h.getY()&&l.getBottom()>=h.getBottom()?u[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom()):h.getY()<=l.getY()&&h.getBottom()>=l.getBottom()&&(u[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom()));var g=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX()&&(g=1);var m=g*u[0],y=u[1]/g;u[0]<y?y=u[0]:m=u[1],u[0]=-1*p[0]*(y/2+d),u[1]=-1*p[1]*(m/2+d)},o.decideDirectionsForOverlappingNodes=function(l,h,u){l.getCenterX()<h.getCenterX()?u[0]=-1:u[0]=1,l.getCenterY()<h.getCenterY()?u[1]=-1:u[1]=1},o.getIntersection2=function(l,h,u){var d=l.getCenterX(),p=l.getCenterY(),g=h.getCenterX(),m=h.getCenterY();if(l.intersects(h))return u[0]=d,u[1]=p,u[2]=g,u[3]=m,!0;var y=l.getX(),x=l.getY(),C=l.getRight(),w=l.getX(),_=l.getBottom(),S=l.getRight(),R=l.getWidthHalf(),b=l.getHeightHalf(),v=h.getX(),k=h.getY(),E=h.getRight(),A=h.getX(),I=h.getBottom(),$=h.getRight(),O=h.getWidthHalf(),j=h.getHeightHalf(),D=!1,P=!1;if(d===g){if(p>m)return u[0]=d,u[1]=x,u[2]=g,u[3]=I,!1;if(p<m)return u[0]=d,u[1]=_,u[2]=g,u[3]=k,!1}else if(p===m){if(d>g)return u[0]=y,u[1]=p,u[2]=E,u[3]=m,!1;if(d<g)return u[0]=C,u[1]=p,u[2]=v,u[3]=m,!1}else{var F=l.height/l.width,U=h.height/h.width,z=(m-p)/(g-d),V=void 0,W=void 0,X=void 0,J=void 0,H=void 0,te=void 0;if(-F===z?d>g?(u[0]=w,u[1]=_,D=!0):(u[0]=C,u[1]=x,D=!0):F===z&&(d>g?(u[0]=y,u[1]=x,D=!0):(u[0]=S,u[1]=_,D=!0)),-U===z?g>d?(u[2]=A,u[3]=I,P=!0):(u[2]=E,u[3]=k,P=!0):U===z&&(g>d?(u[2]=v,u[3]=k,P=!0):(u[2]=$,u[3]=I,P=!0)),D&&P)return!1;if(d>g?p>m?(V=this.getCardinalDirection(F,z,4),W=this.getCardinalDirection(U,z,2)):(V=this.getCardinalDirection(-F,z,3),W=this.getCardinalDirection(-U,z,1)):p>m?(V=this.getCardinalDirection(-F,z,1),W=this.getCardinalDirection(-U,z,3)):(V=this.getCardinalDirection(F,z,2),W=this.getCardinalDirection(U,z,4)),!D)switch(V){case 1:J=x,X=d+-b/z,u[0]=X,u[1]=J;break;case 2:X=S,J=p+R*z,u[0]=X,u[1]=J;break;case 3:J=_,X=d+b/z,u[0]=X,u[1]=J;break;case 4:X=w,J=p+-R*z,u[0]=X,u[1]=J;break}if(!P)switch(W){case 1:te=k,H=g+-j/z,u[2]=H,u[3]=te;break;case 2:H=$,te=m+O*z,u[2]=H,u[3]=te;break;case 3:te=I,H=g+j/z,u[2]=H,u[3]=te;break;case 4:H=A,te=m+-O*z,u[2]=H,u[3]=te;break}}return!1},o.getCardinalDirection=function(l,h,u){return l>h?u:1+u%4},o.getIntersection=function(l,h,u,d){if(d==null)return this.getIntersection2(l,h,u);var p=l.x,g=l.y,m=h.x,y=h.y,x=u.x,C=u.y,w=d.x,_=d.y,S=void 0,R=void 0,b=void 0,v=void 0,k=void 0,E=void 0,A=void 0,I=void 0,$=void 0;return b=y-g,k=p-m,A=m*g-p*y,v=_-C,E=x-w,I=w*C-x*_,$=b*E-v*k,$===0?null:(S=(k*I-E*A)/$,R=(v*A-b*I)/$,new a(S,R))},o.angleOfVector=function(l,h,u,d){var p=void 0;return l!==u?(p=Math.atan((d-h)/(u-l)),u<l?p+=Math.PI:d<h&&(p+=this.TWO_PI)):d<h?p=this.ONE_AND_HALF_PI:p=this.HALF_PI,p},o.doIntersect=function(l,h,u,d){var p=l.x,g=l.y,m=h.x,y=h.y,x=u.x,C=u.y,w=d.x,_=d.y,S=(m-p)*(_-C)-(w-x)*(y-g);if(S===0)return!1;var R=((_-C)*(w-p)+(x-w)*(_-g))/S,b=((g-y)*(w-p)+(m-p)*(_-g))/S;return 0<R&&R<1&&0<b&&b<1},o.findCircleLineIntersections=function(l,h,u,d,p,g,m){var y=(u-l)*(u-l)+(d-h)*(d-h),x=2*((l-p)*(u-l)+(h-g)*(d-h)),C=(l-p)*(l-p)+(h-g)*(h-g)-m*m,w=x*x-4*y*C;if(w>=0){var _=(-x+Math.sqrt(x*x-4*y*C))/(2*y),S=(-x-Math.sqrt(x*x-4*y*C))/(2*y),R=null;return _>=0&&_<=1?[_]:S>=0&&S<=1?[S]:R}else return null},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,r.exports=o}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"IMath"),a.sign=function(o){return o>0?1:o<0?-1:0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},r.exports=a}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"Integer"),a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,i,n){"use strict";var a=(function(){function p(g,m){for(var y=0;y<m.length;y++){var x=m[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return f(p,"h"),s(p,"defineProperties"),function(g,m,y){return m&&p(g.prototype,m),y&&p(g,y),g}})();function o(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=s(function(p){return{value:p,next:null,prev:null}},"nodeFrom"),h=s(function(p,g,m,y){return p!==null?p.next=g:y.head=g,m!==null?m.prev=g:y.tail=g,g.prev=p,g.next=m,y.length++,g},"add"),u=s(function(p,g){var m=p.prev,y=p.next;return m!==null?m.next=y:g.head=y,y!==null?y.prev=m:g.tail=m,p.prev=p.next=null,g.length--,p},"_remove"),d=(function(){function p(g){var m=this;o(this,p),this.length=0,this.head=null,this.tail=null,g==null||g.forEach(function(y){return m.push(y)})}return f(p,"h"),s(p,"LinkedList"),a(p,[{key:"size",value:s(function(){return this.length},"size")},{key:"insertBefore",value:s(function(g,m){return h(m.prev,l(g),m,this)},"insertBefore")},{key:"insertAfter",value:s(function(g,m){return h(m,l(g),m.next,this)},"insertAfter")},{key:"insertNodeBefore",value:s(function(g,m){return h(m.prev,g,m,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:s(function(g,m){return h(m,g,m.next,this)},"insertNodeAfter")},{key:"push",value:s(function(g){return h(this.tail,l(g),null,this)},"push")},{key:"unshift",value:s(function(g){return h(null,l(g),this.head,this)},"unshift")},{key:"remove",value:s(function(g){return u(g,this)},"remove")},{key:"pop",value:s(function(){return u(this.tail,this).value},"pop")},{key:"popNode",value:s(function(){return u(this.tail,this)},"popNode")},{key:"shift",value:s(function(){return u(this.head,this).value},"shift")},{key:"shiftNode",value:s(function(){return u(this.head,this)},"shiftNode")},{key:"get_object_at",value:s(function(g){if(g<=this.length()){for(var m=1,y=this.head;m<g;)y=y.next,m++;return y.value}},"get_object_at")},{key:"set_object_at",value:s(function(g,m){if(g<=this.length()){for(var y=1,x=this.head;y<g;)x=x.next,y++;x.value=m}},"set_object_at")}]),p})();r.exports=d}),(function(r,i,n){"use strict";function a(o,l,h){this.x=null,this.y=null,o==null&&l==null&&h==null?(this.x=0,this.y=0):typeof o=="number"&&typeof l=="number"&&h==null?(this.x=o,this.y=l):o.constructor.name=="Point"&&l==null&&h==null&&(h=o,this.x=h.x,this.y=h.y)}f(a,"i"),s(a,"Point"),a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.getLocation=function(){return new a(this.x,this.y)},a.prototype.setLocation=function(o,l,h){o.constructor.name=="Point"&&l==null&&h==null?(h=o,this.setLocation(h.x,h.y)):typeof o=="number"&&typeof l=="number"&&h==null&&(parseInt(o)==o&&parseInt(l)==l?this.move(o,l):(this.x=Math.floor(o+.5),this.y=Math.floor(l+.5)))},a.prototype.move=function(o,l){this.x=o,this.y=l},a.prototype.translate=function(o,l){this.x+=o,this.y+=l},a.prototype.equals=function(o){if(o.constructor.name=="Point"){var l=o;return this.x==l.x&&this.y==l.y}return this==o},a.prototype.toString=function(){return new a().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=a}),(function(r,i,n){"use strict";function a(o,l,h,u){this.x=0,this.y=0,this.width=0,this.height=0,o!=null&&l!=null&&h!=null&&u!=null&&(this.x=o,this.y=l,this.width=h,this.height=u)}f(a,"i"),s(a,"RectangleD"),a.prototype.getX=function(){return this.x},a.prototype.setX=function(o){this.x=o},a.prototype.getY=function(){return this.y},a.prototype.setY=function(o){this.y=o},a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(o){this.width=o},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(o){this.height=o},a.prototype.getRight=function(){return this.x+this.width},a.prototype.getBottom=function(){return this.y+this.height},a.prototype.intersects=function(o){return!(this.getRight()<o.x||this.getBottom()<o.y||o.getRight()<this.x||o.getBottom()<this.y)},a.prototype.getCenterX=function(){return this.x+this.width/2},a.prototype.getMinX=function(){return this.getX()},a.prototype.getMaxX=function(){return this.getX()+this.width},a.prototype.getCenterY=function(){return this.y+this.height/2},a.prototype.getMinY=function(){return this.getY()},a.prototype.getMaxY=function(){return this.getY()+this.height},a.prototype.getWidthHalf=function(){return this.width/2},a.prototype.getHeightHalf=function(){return this.height/2},r.exports=a}),(function(r,i,n){"use strict";var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};function o(){}f(o,"n"),s(o,"UniqueIDGeneretor"),o.lastID=0,o.createID=function(l){return o.isPrimitive(l)?l:(l.uniqueID!=null||(l.uniqueID=o.getString(),o.lastID++),l.uniqueID)},o.getString=function(l){return l==null&&(l=o.lastID),"Object#"+l},o.isPrimitive=function(l){var h=typeof l>"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},r.exports=o}),(function(r,i,n){"use strict";function a(x){if(Array.isArray(x)){for(var C=0,w=Array(x.length);C<x.length;C++)w[C]=x[C];return w}else return Array.from(x)}f(a,"i"),s(a,"_toConsumableArray");var o=n(0),l=n(7),h=n(3),u=n(1),d=n(6),p=n(5),g=n(17),m=n(29);function y(x){m.call(this),this.layoutQuality=o.QUALITY,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=o.DEFAULT_INCREMENTAL,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new l(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,x!=null&&(this.isRemoteUse=x)}f(y,"p"),s(y,"Layout"),y.RANDOM_SEED=1,y.prototype=Object.create(m.prototype),y.prototype.getGraphManager=function(){return this.graphManager},y.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},y.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},y.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},y.prototype.newGraphManager=function(){var x=new l(this);return this.graphManager=x,x},y.prototype.newGraph=function(x){return new d(null,this.graphManager,x)},y.prototype.newNode=function(x){return new h(this.graphManager,x)},y.prototype.newEdge=function(x){return new u(null,null,x)},y.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},y.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var x;return this.checkLayoutSuccess()?x=!1:x=this.layout(),o.ANIMATE==="during"?!1:(x&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,x)},y.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},y.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var x,C=this.graphManager.getAllEdges(),w=0;w<C.length;w++)x=C[w];for(var _,S=this.graphManager.getRoot().getNodes(),w=0;w<S.length;w++)_=S[w];this.update(this.graphManager.getRoot())}},y.prototype.update=function(x){if(x==null)this.update2();else if(x instanceof h){var C=x;if(C.getChild()!=null)for(var w=C.getChild().getNodes(),_=0;_<w.length;_++)update(w[_]);if(C.vGraphObject!=null){var S=C.vGraphObject;S.update(C)}}else if(x instanceof u){var R=x;if(R.vGraphObject!=null){var b=R.vGraphObject;b.update(R)}}else if(x instanceof d){var v=x;if(v.vGraphObject!=null){var k=v.vGraphObject;k.update(v)}}},y.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=o.QUALITY,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=o.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},y.prototype.transform=function(x){if(x==null)this.transform(new p(0,0));else{var C=new g,w=this.graphManager.getRoot().updateLeftTop();if(w!=null){C.setWorldOrgX(x.x),C.setWorldOrgY(x.y),C.setDeviceOrgX(w.x),C.setDeviceOrgY(w.y);for(var _=this.getAllNodes(),S,R=0;R<_.length;R++)S=_[R],S.transform(C)}}},y.prototype.positionNodesRandomly=function(x){if(x==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var C,w,_=x.getNodes(),S=0;S<_.length;S++)C=_[S],w=C.getChild(),w==null||w.getNodes().length==0?C.scatter():(this.positionNodesRandomly(w),C.updateBounds())},y.prototype.getFlatForest=function(){for(var x=[],C=!0,w=this.graphManager.getRoot().getNodes(),_=!0,S=0;S<w.length;S++)w[S].getChild()!=null&&(_=!1);if(!_)return x;var R=new Set,b=[],v=new Map,k=[];for(k=k.concat(w);k.length>0&&C;){for(b.push(k[0]);b.length>0&&C;){var E=b[0];b.splice(0,1),R.add(E);for(var A=E.getEdges(),S=0;S<A.length;S++){var I=A[S].getOtherEnd(E);if(v.get(E)!=I)if(!R.has(I))b.push(I),v.set(I,E);else{C=!1;break}}}if(!C)x=[];else{var $=[].concat(a(R));x.push($);for(var S=0;S<$.length;S++){var O=$[S],j=k.indexOf(O);j>-1&&k.splice(j,1)}R=new Set,v=new Map}}return x},y.prototype.createDummyNodesForBendpoints=function(x){for(var C=[],w=x.source,_=this.graphManager.calcLowestCommonAncestor(x.source,x.target),S=0;S<x.bendpoints.length;S++){var R=this.newNode(null);R.setRect(new Point(0,0),new Dimension(1,1)),_.add(R);var b=this.newEdge(null);this.graphManager.add(b,w,R),C.add(R),w=R}var b=this.newEdge(null);return this.graphManager.add(b,w,x.target),this.edgeToDummyNodes.set(x,C),x.isInterGraph()?this.graphManager.remove(x):_.remove(x),C},y.prototype.createBendpointsFromDummyNodes=function(){var x=[];x=x.concat(this.graphManager.getAllEdges()),x=[].concat(a(this.edgeToDummyNodes.keys())).concat(x);for(var C=0;C<x.length;C++){var w=x[C];if(w.bendpoints.length>0){for(var _=this.edgeToDummyNodes.get(w),S=0;S<_.length;S++){var R=_[S],b=new p(R.getCenterX(),R.getCenterY()),v=w.bendpoints.get(S);v.x=b.x,v.y=b.y,R.getOwner().remove(R)}this.graphManager.add(w,w.source,w.target)}}},y.transform=function(x,C,w,_){if(w!=null&&_!=null){var S=C;if(x<=50){var R=C/w;S-=(C-R)/50*(50-x)}else{var b=C*_;S+=(b-C)/50*(x-50)}return S}else{var v,k;return x<=50?(v=9*C/500,k=C/10):(v=9*C/50,k=-8*C),v*x+k}},y.findCenterOfTree=function(x){var C=[];C=C.concat(x);var w=[],_=new Map,S=!1,R=null;(C.length==1||C.length==2)&&(S=!0,R=C[0]);for(var b=0;b<C.length;b++){var v=C[b],k=v.getNeighborsList().size;_.set(v,v.getNeighborsList().size),k==1&&w.push(v)}var E=[];for(E=E.concat(w);!S;){var A=[];A=A.concat(E),E=[];for(var b=0;b<C.length;b++){var v=C[b],I=C.indexOf(v);I>=0&&C.splice(I,1);var $=v.getNeighborsList();$.forEach(function(D){if(w.indexOf(D)<0){var P=_.get(D),F=P-1;F==1&&E.push(D),_.set(D,F)}})}w=w.concat(E),(C.length==1||C.length==2)&&(S=!0,R=C[0])}return R},y.prototype.setGraphManager=function(x){this.graphManager=x},r.exports=y}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"RandomSeed"),a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,i,n){"use strict";var a=n(5);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}f(o,"n"),s(o,"Transform"),o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,u=this.lworldExtX;return u!=0&&(h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/u),h},o.prototype.transformY=function(l){var h=0,u=this.lworldExtY;return u!=0&&(h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/u),h},o.prototype.inverseTransformX=function(l){var h=0,u=this.ldeviceExtX;return u!=0&&(h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/u),h},o.prototype.inverseTransformY=function(l){var h=0,u=this.ldeviceExtY;return u!=0&&(h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/u),h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},r.exports=o}),(function(r,i,n){"use strict";function a(m){if(Array.isArray(m)){for(var y=0,x=Array(m.length);y<m.length;y++)x[y]=m[y];return x}else return Array.from(m)}f(a,"i"),s(a,"_toConsumableArray");var o=n(15),l=n(4),h=n(0),u=n(8),d=n(9);function p(){o.call(this),this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*l.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=l.MAX_ITERATIONS}f(p,"h"),s(p,"FDLayout"),p.prototype=Object.create(o.prototype);for(var g in o)p[g]=o[g];p.prototype.initParameters=function(){o.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},p.prototype.calcIdealEdgeLengths=function(){for(var m,y,x,C,w,_,S,R=this.getGraphManager().getAllEdges(),b=0;b<R.length;b++)m=R[b],y=m.idealLength,m.isInterGraph&&(C=m.getSource(),w=m.getTarget(),_=m.getSourceInLca().getEstimatedSize(),S=m.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(m.idealLength+=_+S-2*h.SIMPLE_NODE_SIZE),x=m.getLca().getInclusionTreeDepth(),m.idealLength+=y*l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(C.getInclusionTreeDepth()+w.getInclusionTreeDepth()-2*x))},p.prototype.initSpringEmbedder=function(){var m=this.getAllNodes().length;this.incremental?(m>l.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(m-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL):(m>l.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(m-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*l.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},p.prototype.calcSpringForces=function(){for(var m=this.getAllEdges(),y,x=0;x<m.length;x++)y=m[x],this.calcSpringForce(y,y.idealLength)},p.prototype.calcRepulsionForces=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x,C,w,_,S=this.getAllNodes(),R;if(this.useFRGridVariant)for(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&m&&this.updateGrid(),R=new Set,x=0;x<S.length;x++)w=S[x],this.calculateRepulsionForceOfANode(w,R,m,y),R.add(w);else for(x=0;x<S.length;x++)for(w=S[x],C=x+1;C<S.length;C++)_=S[C],w.getOwner()==_.getOwner()&&this.calcRepulsionForce(w,_)},p.prototype.calcGravitationalForces=function(){for(var m,y=this.getAllNodesToApplyGravitation(),x=0;x<y.length;x++)m=y[x],this.calcGravitationalForce(m)},p.prototype.moveNodes=function(){for(var m=this.getAllNodes(),y,x=0;x<m.length;x++)y=m[x],y.move()},p.prototype.calcSpringForce=function(m,y){var x=m.getSource(),C=m.getTarget(),w,_,S,R;if(this.uniformLeafNodeSizes&&x.getChild()==null&&C.getChild()==null)m.updateLengthSimple();else if(m.updateLength(),m.isOverlapingSourceAndTarget)return;w=m.getLength(),w!=0&&(_=m.edgeElasticity*(w-y),S=_*(m.lengthX/w),R=_*(m.lengthY/w),x.springForceX+=S,x.springForceY+=R,C.springForceX-=S,C.springForceY-=R)},p.prototype.calcRepulsionForce=function(m,y){var x=m.getRect(),C=y.getRect(),w=new Array(2),_=new Array(4),S,R,b,v,k,E,A;if(x.intersects(C)){u.calcSeparationAmount(x,C,w,l.DEFAULT_EDGE_LENGTH/2),E=2*w[0],A=2*w[1];var I=m.noOfChildren*y.noOfChildren/(m.noOfChildren+y.noOfChildren);m.repulsionForceX-=I*E,m.repulsionForceY-=I*A,y.repulsionForceX+=I*E,y.repulsionForceY+=I*A}else this.uniformLeafNodeSizes&&m.getChild()==null&&y.getChild()==null?(S=C.getCenterX()-x.getCenterX(),R=C.getCenterY()-x.getCenterY()):(u.getIntersection(x,C,_),S=_[2]-_[0],R=_[3]-_[1]),Math.abs(S)<l.MIN_REPULSION_DIST&&(S=d.sign(S)*l.MIN_REPULSION_DIST),Math.abs(R)<l.MIN_REPULSION_DIST&&(R=d.sign(R)*l.MIN_REPULSION_DIST),b=S*S+R*R,v=Math.sqrt(b),k=(m.nodeRepulsion/2+y.nodeRepulsion/2)*m.noOfChildren*y.noOfChildren/b,E=k*S/v,A=k*R/v,m.repulsionForceX-=E,m.repulsionForceY-=A,y.repulsionForceX+=E,y.repulsionForceY+=A},p.prototype.calcGravitationalForce=function(m){var y,x,C,w,_,S,R,b;y=m.getOwner(),x=(y.getRight()+y.getLeft())/2,C=(y.getTop()+y.getBottom())/2,w=m.getCenterX()-x,_=m.getCenterY()-C,S=Math.abs(w)+m.getWidth()/2,R=Math.abs(_)+m.getHeight()/2,m.getOwner()==this.graphManager.getRoot()?(b=y.getEstimatedSize()*this.gravityRangeFactor,(S>b||R>b)&&(m.gravitationForceX=-this.gravityConstant*w,m.gravitationForceY=-this.gravityConstant*_)):(b=y.getEstimatedSize()*this.compoundGravityRangeFactor,(S>b||R>b)&&(m.gravitationForceX=-this.gravityConstant*w*this.compoundGravityConstant,m.gravitationForceY=-this.gravityConstant*_*this.compoundGravityConstant))},p.prototype.isConverged=function(){var m,y=!1;return this.totalIterations>this.maxIterations/3&&(y=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),m=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,m||y},p.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},p.prototype.calcNoOfChildrenForAllNodes=function(){for(var m,y=this.graphManager.getAllNodes(),x=0;x<y.length;x++)m=y[x],m.noOfChildren=m.getNoOfChildren()},p.prototype.calcGrid=function(m){var y=0,x=0;y=parseInt(Math.ceil((m.getRight()-m.getLeft())/this.repulsionRange)),x=parseInt(Math.ceil((m.getBottom()-m.getTop())/this.repulsionRange));for(var C=new Array(y),w=0;w<y;w++)C[w]=new Array(x);for(var w=0;w<y;w++)for(var _=0;_<x;_++)C[w][_]=new Array;return C},p.prototype.addNodeToGrid=function(m,y,x){var C=0,w=0,_=0,S=0;C=parseInt(Math.floor((m.getRect().x-y)/this.repulsionRange)),w=parseInt(Math.floor((m.getRect().width+m.getRect().x-y)/this.repulsionRange)),_=parseInt(Math.floor((m.getRect().y-x)/this.repulsionRange)),S=parseInt(Math.floor((m.getRect().height+m.getRect().y-x)/this.repulsionRange));for(var R=C;R<=w;R++)for(var b=_;b<=S;b++)this.grid[R][b].push(m),m.setGridCoordinates(C,w,_,S)},p.prototype.updateGrid=function(){var m,y,x=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),m=0;m<x.length;m++)y=x[m],this.addNodeToGrid(y,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},p.prototype.calculateRepulsionForceOfANode=function(m,y,x,C){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&x||C){var w=new Set;m.surrounding=new Array;for(var _,S=this.grid,R=m.startX-1;R<m.finishX+2;R++)for(var b=m.startY-1;b<m.finishY+2;b++)if(!(R<0||b<0||R>=S.length||b>=S[0].length)){for(var v=0;v<S[R][b].length;v++)if(_=S[R][b][v],!(m.getOwner()!=_.getOwner()||m==_)&&!y.has(_)&&!w.has(_)){var k=Math.abs(m.getCenterX()-_.getCenterX())-(m.getWidth()/2+_.getWidth()/2),E=Math.abs(m.getCenterY()-_.getCenterY())-(m.getHeight()/2+_.getHeight()/2);k<=this.repulsionRange&&E<=this.repulsionRange&&w.add(_)}}m.surrounding=[].concat(a(w))}for(R=0;R<m.surrounding.length;R++)this.calcRepulsionForce(m,m.surrounding[R])},p.prototype.calcRepulsionRange=function(){return 0},r.exports=p}),(function(r,i,n){"use strict";var a=n(1),o=n(4);function l(u,d,p){a.call(this,u,d,p),this.idealLength=o.DEFAULT_EDGE_LENGTH,this.edgeElasticity=o.DEFAULT_SPRING_STRENGTH}f(l,"a"),s(l,"FDLayoutEdge"),l.prototype=Object.create(a.prototype);for(var h in a)l[h]=a[h];r.exports=l}),(function(r,i,n){"use strict";var a=n(3),o=n(4);function l(u,d,p,g){a.call(this,u,d,p,g),this.nodeRepulsion=o.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}f(l,"a"),s(l,"FDLayoutNode"),l.prototype=Object.create(a.prototype);for(var h in a)l[h]=a[h];l.prototype.setGridCoordinates=function(u,d,p,g){this.startX=u,this.finishX=d,this.startY=p,this.finishY=g},r.exports=l}),(function(r,i,n){"use strict";function a(o,l){this.width=0,this.height=0,o!==null&&l!==null&&(this.height=l,this.width=o)}f(a,"i"),s(a,"DimensionD"),a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(o){this.width=o},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(o){this.height=o},r.exports=a}),(function(r,i,n){"use strict";var a=n(14);function o(){this.map={},this.keys=[]}f(o,"n"),s(o,"HashMap"),o.prototype.put=function(l,h){var u=a.createID(l);this.contains(u)||(this.map[u]=h,this.keys.push(l))},o.prototype.contains=function(l){var h=a.createID(l);return this.map[l]!=null},o.prototype.get=function(l){var h=a.createID(l);return this.map[h]},o.prototype.keySet=function(){return this.keys},r.exports=o}),(function(r,i,n){"use strict";var a=n(14);function o(){this.set={}}f(o,"n"),s(o,"HashSet"),o.prototype.add=function(l){var h=a.createID(l);this.contains(h)||(this.set[h]=l)},o.prototype.remove=function(l){delete this.set[a.createID(l)]},o.prototype.clear=function(){this.set={}},o.prototype.contains=function(l){return this.set[a.createID(l)]==l},o.prototype.isEmpty=function(){return this.size()===0},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAllTo=function(l){for(var h=Object.keys(this.set),u=h.length,d=0;d<u;d++)l.push(this.set[h[d]])},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAll=function(l){for(var h=l.length,u=0;u<h;u++){var d=l[u];this.add(d)}},r.exports=o}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"Matrix"),a.multMat=function(o,l){for(var h=[],u=0;u<o.length;u++){h[u]=[];for(var d=0;d<l[0].length;d++){h[u][d]=0;for(var p=0;p<o[0].length;p++)h[u][d]+=o[u][p]*l[p][d]}}return h},a.transpose=function(o){for(var l=[],h=0;h<o[0].length;h++){l[h]=[];for(var u=0;u<o.length;u++)l[h][u]=o[u][h]}return l},a.multCons=function(o,l){for(var h=[],u=0;u<o.length;u++)h[u]=o[u]*l;return h},a.minusOp=function(o,l){for(var h=[],u=0;u<o.length;u++)h[u]=o[u]-l[u];return h},a.dotProduct=function(o,l){for(var h=0,u=0;u<o.length;u++)h+=o[u]*l[u];return h},a.mag=function(o){return Math.sqrt(this.dotProduct(o,o))},a.normalize=function(o){for(var l=[],h=this.mag(o),u=0;u<o.length;u++)l[u]=o[u]/h;return l},a.multGamma=function(o){for(var l=[],h=0,u=0;u<o.length;u++)h+=o[u];h*=-1/o.length;for(var d=0;d<o.length;d++)l[d]=h+o[d];return l},a.multL=function(o,l,h){for(var u=[],d=[],p=[],g=0;g<l[0].length;g++){for(var m=0,y=0;y<l.length;y++)m+=-.5*l[y][g]*o[y];d[g]=m}for(var x=0;x<h.length;x++){for(var C=0,w=0;w<h.length;w++)C+=h[x][w]*d[w];p[x]=C}for(var _=0;_<l.length;_++){for(var S=0,R=0;R<l[0].length;R++)S+=l[_][R]*p[R];u[_]=S}return u},r.exports=a}),(function(r,i,n){"use strict";var a=(function(){function u(d,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return f(u,"l"),s(u,"defineProperties"),function(d,p,g){return p&&u(d.prototype,p),g&&u(d,g),d}})();function o(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=n(11),h=(function(){function u(d,p){o(this,u),(p!==null||p!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var g=void 0;d instanceof l?g=d.size():g=d.length,this._quicksort(d,0,g-1)}return f(u,"l"),s(u,"Quicksort"),a(u,[{key:"_quicksort",value:s(function(d,p,g){if(p<g){var m=this._partition(d,p,g);this._quicksort(d,p,m),this._quicksort(d,m+1,g)}},"_quicksort")},{key:"_partition",value:s(function(d,p,g){for(var m=this._get(d,p),y=p,x=g;;){for(;this.compareFunction(m,this._get(d,x));)x--;for(;this.compareFunction(this._get(d,y),m);)y++;if(y<x)this._swap(d,y,x),y++,x--;else return x}},"_partition")},{key:"_get",value:s(function(d,p){return d instanceof l?d.get_object_at(p):d[p]},"_get")},{key:"_set",value:s(function(d,p,g){d instanceof l?d.set_object_at(p,g):d[p]=g},"_set")},{key:"_swap",value:s(function(d,p,g){var m=this._get(d,p);this._set(d,p,this._get(d,g)),this._set(d,g,m)},"_swap")},{key:"_defaultCompareFunction",value:s(function(d,p){return p>d},"_defaultCompareFunction")}]),u})();r.exports=h}),(function(r,i,n){"use strict";function a(){}f(a,"i"),s(a,"SVD"),a.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var l=Math.min(this.m,this.n);this.s=(function(Mt){for(var $t=[];Mt-- >0;)$t.push(0);return $t})(Math.min(this.m+1,this.n)),this.U=(function(Mt){var $t=s(f(function At(Kt){if(Kt.length==0)return 0;for(var rr=[],ei=0;ei<Kt[0];ei++)rr.push(At(Kt.slice(1)));return rr},"oe"),"allocate");return $t(Mt)})([this.m,l]),this.V=(function(Mt){var $t=s(f(function At(Kt){if(Kt.length==0)return 0;for(var rr=[],ei=0;ei<Kt[0];ei++)rr.push(At(Kt.slice(1)));return rr},"oe"),"allocate");return $t(Mt)})([this.n,this.n]);for(var h=(function(Mt){for(var $t=[];Mt-- >0;)$t.push(0);return $t})(this.n),u=(function(Mt){for(var $t=[];Mt-- >0;)$t.push(0);return $t})(this.m),d=!0,p=!0,g=Math.min(this.m-1,this.n),m=Math.max(0,Math.min(this.n-2,this.m)),y=0;y<Math.max(g,m);y++){if(y<g){this.s[y]=0;for(var x=y;x<this.m;x++)this.s[y]=a.hypot(this.s[y],o[x][y]);if(this.s[y]!==0){o[y][y]<0&&(this.s[y]=-this.s[y]);for(var C=y;C<this.m;C++)o[C][y]/=this.s[y];o[y][y]+=1}this.s[y]=-this.s[y]}for(var w=y+1;w<this.n;w++){if((function(Mt,$t){return Mt&&$t})(y<g,this.s[y]!==0)){for(var _=0,S=y;S<this.m;S++)_+=o[S][y]*o[S][w];_=-_/o[y][y];for(var R=y;R<this.m;R++)o[R][w]+=_*o[R][y]}h[w]=o[y][w]}if((function(Mt,$t){return Mt&&$t})(d,y<g))for(var b=y;b<this.m;b++)this.U[b][y]=o[b][y];if(y<m){h[y]=0;for(var v=y+1;v<this.n;v++)h[y]=a.hypot(h[y],h[v]);if(h[y]!==0){h[y+1]<0&&(h[y]=-h[y]);for(var k=y+1;k<this.n;k++)h[k]/=h[y];h[y+1]+=1}if(h[y]=-h[y],(function(Mt,$t){return Mt&&$t})(y+1<this.m,h[y]!==0)){for(var E=y+1;E<this.m;E++)u[E]=0;for(var A=y+1;A<this.n;A++)for(var I=y+1;I<this.m;I++)u[I]+=h[A]*o[I][A];for(var $=y+1;$<this.n;$++)for(var O=-h[$]/h[y+1],j=y+1;j<this.m;j++)o[j][$]+=O*u[j]}if(p)for(var D=y+1;D<this.n;D++)this.V[D][y]=h[D]}}var P=Math.min(this.n,this.m+1);if(g<this.n&&(this.s[g]=o[g][g]),this.m<P&&(this.s[P-1]=0),m+1<P&&(h[m]=o[m][P-1]),h[P-1]=0,d){for(var F=g;F<l;F++){for(var U=0;U<this.m;U++)this.U[U][F]=0;this.U[F][F]=1}for(var z=g-1;z>=0;z--)if(this.s[z]!==0){for(var V=z+1;V<l;V++){for(var W=0,X=z;X<this.m;X++)W+=this.U[X][z]*this.U[X][V];W=-W/this.U[z][z];for(var J=z;J<this.m;J++)this.U[J][V]+=W*this.U[J][z]}for(var H=z;H<this.m;H++)this.U[H][z]=-this.U[H][z];this.U[z][z]=1+this.U[z][z];for(var te=0;te<z-1;te++)this.U[te][z]=0}else{for(var ie=0;ie<this.m;ie++)this.U[ie][z]=0;this.U[z][z]=1}}if(p)for(var oe=this.n-1;oe>=0;oe--){if((function(Mt,$t){return Mt&&$t})(oe<m,h[oe]!==0))for(var he=oe+1;he<l;he++){for(var pe=0,se=oe+1;se<this.n;se++)pe+=this.V[se][oe]*this.V[se][he];pe=-pe/this.V[oe+1][oe];for(var le=oe+1;le<this.n;le++)this.V[le][he]+=pe*this.V[le][oe]}for(var ue=0;ue<this.n;ue++)this.V[ue][oe]=0;this.V[oe][oe]=1}for(var de=P-1,we=0,De=Math.pow(2,-52),Ge=Math.pow(2,-966);P>0;){var be=void 0,qe=void 0;for(be=P-2;be>=-1&&be!==-1;be--)if(Math.abs(h[be])<=Ge+De*(Math.abs(this.s[be])+Math.abs(this.s[be+1]))){h[be]=0;break}if(be===P-2)qe=4;else{var Ie=void 0;for(Ie=P-1;Ie>=be&&Ie!==be;Ie--){var Be=(Ie!==P?Math.abs(h[Ie]):0)+(Ie!==be+1?Math.abs(h[Ie-1]):0);if(Math.abs(this.s[Ie])<=Ge+De*Be){this.s[Ie]=0;break}}Ie===be?qe=3:Ie===P-1?qe=1:(qe=2,be=Ie)}switch(be++,qe){case 1:{var ke=h[P-2];h[P-2]=0;for(var Qe=P-2;Qe>=be;Qe--){var Pe=a.hypot(this.s[Qe],ke),ht=this.s[Qe]/Pe,Xe=ke/Pe;if(this.s[Qe]=Pe,Qe!==be&&(ke=-Xe*h[Qe-1],h[Qe-1]=ht*h[Qe-1]),p)for(var dt=0;dt<this.n;dt++)Pe=ht*this.V[dt][Qe]+Xe*this.V[dt][P-1],this.V[dt][P-1]=-Xe*this.V[dt][Qe]+ht*this.V[dt][P-1],this.V[dt][Qe]=Pe}}break;case 2:{var at=h[be-1];h[be-1]=0;for(var kt=be;kt<P;kt++){var Le=a.hypot(this.s[kt],at),lt=this.s[kt]/Le,ve=at/Le;if(this.s[kt]=Le,at=-ve*h[kt],h[kt]=lt*h[kt],d)for(var tt=0;tt<this.m;tt++)Le=lt*this.U[tt][kt]+ve*this.U[tt][be-1],this.U[tt][be-1]=-ve*this.U[tt][kt]+lt*this.U[tt][be-1],this.U[tt][kt]=Le}}break;case 3:{var Q=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[P-1]),Math.abs(this.s[P-2])),Math.abs(h[P-2])),Math.abs(this.s[be])),Math.abs(h[be])),xe=this.s[P-1]/Q,ae=this.s[P-2]/Q,_e=h[P-2]/Q,Se=this.s[be]/Q,Je=h[be]/Q,Re=((ae+xe)*(ae-xe)+_e*_e)/2,et=xe*_e*(xe*_e),ze=0;(function(Mt,$t){return Mt||$t})(Re!==0,et!==0)&&(ze=Math.sqrt(Re*Re+et),Re<0&&(ze=-ze),ze=et/(Re+ze));for(var Ke=(Se+xe)*(Se-xe)+ze,We=Se*Je,nt=be;nt<P-1;nt++){var Te=a.hypot(Ke,We),bt=Ke/Te,Ae=We/Te;if(nt!==be&&(h[nt-1]=Te),Ke=bt*this.s[nt]+Ae*h[nt],h[nt]=bt*h[nt]-Ae*this.s[nt],We=Ae*this.s[nt+1],this.s[nt+1]=bt*this.s[nt+1],p)for(var ft=0;ft<this.n;ft++)Te=bt*this.V[ft][nt]+Ae*this.V[ft][nt+1],this.V[ft][nt+1]=-Ae*this.V[ft][nt]+bt*this.V[ft][nt+1],this.V[ft][nt]=Te;if(Te=a.hypot(Ke,We),bt=Ke/Te,Ae=We/Te,this.s[nt]=Te,Ke=bt*h[nt]+Ae*this.s[nt+1],this.s[nt+1]=-Ae*h[nt]+bt*this.s[nt+1],We=Ae*h[nt+1],h[nt+1]=bt*h[nt+1],d&&nt<this.m-1)for(var Nt=0;Nt<this.m;Nt++)Te=bt*this.U[Nt][nt]+Ae*this.U[Nt][nt+1],this.U[Nt][nt+1]=-Ae*this.U[Nt][nt]+bt*this.U[Nt][nt+1],this.U[Nt][nt]=Te}h[P-2]=Ke,we=we+1}break;case 4:{if(this.s[be]<=0&&(this.s[be]=this.s[be]<0?-this.s[be]:0,p))for(var Wt=0;Wt<=de;Wt++)this.V[Wt][be]=-this.V[Wt][be];for(;be<de&&!(this.s[be]>=this.s[be+1]);){var Ht=this.s[be];if(this.s[be]=this.s[be+1],this.s[be+1]=Ht,p&&be<this.n-1)for(var Ft=0;Ft<this.n;Ft++)Ht=this.V[Ft][be+1],this.V[Ft][be+1]=this.V[Ft][be],this.V[Ft][be]=Ht;if(d&&be<this.m-1)for(var Qt=0;Qt<this.m;Qt++)Ht=this.U[Qt][be+1],this.U[Qt][be+1]=this.U[Qt][be],this.U[Qt][be]=Ht;be++}we=0,P--}break}}var Dt={U:this.U,V:this.V,S:this.s};return Dt},a.hypot=function(o,l){var h=void 0;return Math.abs(o)>Math.abs(l)?(h=l/o,h=Math.abs(o)*Math.sqrt(1+h*h)):l!=0?(h=o/l,h=Math.abs(l)*Math.sqrt(1+h*h)):h=0,h},r.exports=a}),(function(r,i,n){"use strict";var a=(function(){function h(u,d){for(var p=0;p<d.length;p++){var g=d[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(u,g.key,g)}}return f(h,"s"),s(h,"defineProperties"),function(u,d,p){return d&&h(u.prototype,d),p&&h(u,p),u}})();function o(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}f(o,"n"),s(o,"_classCallCheck");var l=(function(){function h(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=u,this.sequence2=d,this.match_score=p,this.mismatch_penalty=g,this.gap_penalty=m,this.iMax=u.length+1,this.jMax=d.length+1,this.grid=new Array(this.iMax);for(var y=0;y<this.iMax;y++){this.grid[y]=new Array(this.jMax);for(var x=0;x<this.jMax;x++)this.grid[y][x]=0}this.tracebackGrid=new Array(this.iMax);for(var C=0;C<this.iMax;C++){this.tracebackGrid[C]=new Array(this.jMax);for(var w=0;w<this.jMax;w++)this.tracebackGrid[C][w]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return f(h,"s"),s(h,"NeedlemanWunsch"),a(h,[{key:"getScore",value:s(function(){return this.score},"getScore")},{key:"getAlignments",value:s(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:s(function(){for(var u=1;u<this.jMax;u++)this.grid[0][u]=this.grid[0][u-1]+this.gap_penalty,this.tracebackGrid[0][u]=[!1,!1,!0];for(var d=1;d<this.iMax;d++)this.grid[d][0]=this.grid[d-1][0]+this.gap_penalty,this.tracebackGrid[d][0]=[!1,!0,!1];for(var p=1;p<this.iMax;p++)for(var g=1;g<this.jMax;g++){var m=void 0;this.sequence1[p-1]===this.sequence2[g-1]?m=this.grid[p-1][g-1]+this.match_score:m=this.grid[p-1][g-1]+this.mismatch_penalty;var y=this.grid[p-1][g]+this.gap_penalty,x=this.grid[p][g-1]+this.gap_penalty,C=[m,y,x],w=this.arrayAllMaxIndexes(C);this.grid[p][g]=C[w[0]],this.tracebackGrid[p][g]=[w.includes(0),w.includes(1),w.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:s(function(){var u=[];for(u.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});u[0];){var d=u[0],p=this.tracebackGrid[d.pos[0]][d.pos[1]];p[0]&&u.push({pos:[d.pos[0]-1,d.pos[1]-1],seq1:this.sequence1[d.pos[0]-1]+d.seq1,seq2:this.sequence2[d.pos[1]-1]+d.seq2}),p[1]&&u.push({pos:[d.pos[0]-1,d.pos[1]],seq1:this.sequence1[d.pos[0]-1]+d.seq1,seq2:"-"+d.seq2}),p[2]&&u.push({pos:[d.pos[0],d.pos[1]-1],seq1:"-"+d.seq1,seq2:this.sequence2[d.pos[1]-1]+d.seq2}),d.pos[0]===0&&d.pos[1]===0&&this.alignments.push({sequence1:d.seq1,sequence2:d.seq2}),u.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:s(function(u,d){for(var p=[],g=-1;(g=u.indexOf(d,g+1))!==-1;)p.push(g);return p},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:s(function(u){return this.getAllIndexes(u,Math.max.apply(null,u))},"arrayAllMaxIndexes")}]),h})();r.exports=l}),(function(r,i,n){"use strict";var a=s(function(){},"layoutBase");a.FDLayout=n(18),a.FDLayoutConstants=n(4),a.FDLayoutEdge=n(19),a.FDLayoutNode=n(20),a.DimensionD=n(21),a.HashMap=n(22),a.HashSet=n(23),a.IGeometry=n(8),a.IMath=n(9),a.Integer=n(10),a.Point=n(12),a.PointD=n(5),a.RandomSeed=n(16),a.RectangleD=n(13),a.Transform=n(17),a.UniqueIDGeneretor=n(14),a.Quicksort=n(25),a.LinkedList=n(11),a.LGraphObject=n(2),a.LGraph=n(6),a.LEdge=n(1),a.LGraphManager=n(7),a.LNode=n(3),a.Layout=n(15),a.LayoutConstants=n(0),a.NeedlemanWunsch=n(27),a.Matrix=n(24),a.SVD=n(26),r.exports=a}),(function(r,i,n){"use strict";function a(){this.listeners=[]}f(a,"i"),s(a,"Emitter");var o=a.prototype;o.addListener=function(l,h){this.listeners.push({event:l,callback:h})},o.removeListener=function(l,h){for(var u=this.listeners.length;u>=0;u--){var d=this.listeners[u];d.event===l&&d.callback===h&&this.listeners.splice(u,1)}},o.emit=function(l,h){for(var u=0;u<this.listeners.length;u++){var d=this.listeners[u];l===d.event&&d.callback(h)}},r.exports=a})])})}),t0t=Xo((e,t)=>{"use strict";s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i(e0t()):typeof define=="function"&&define.amd?define(["layout-base"],i):typeof e=="object"?e.coseBase=i(e0t()):r.coseBase=i(r.layoutBase)}),"webpackUniversalModuleDefinition")(e,function(r){return(()=>{"use strict";var i={45:((l,h,u)=>{var d={};d.layoutBase=u(551),d.CoSEConstants=u(806),d.CoSEEdge=u(767),d.CoSEGraph=u(880),d.CoSEGraphManager=u(578),d.CoSELayout=u(765),d.CoSENode=u(991),d.ConstraintHandler=u(902),l.exports=d}),806:((l,h,u)=>{var d=u(551).FDLayoutConstants;function p(){}f(p,"h"),s(p,"CoSEConstants");for(var g in d)p[g]=d[g];p.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,p.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH,p.DEFAULT_COMPONENT_SEPERATION=60,p.TILE=!0,p.TILING_PADDING_VERTICAL=10,p.TILING_PADDING_HORIZONTAL=10,p.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,p.ENFORCE_CONSTRAINTS=!0,p.APPLY_LAYOUT=!0,p.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,p.TREE_REDUCTION_ON_INCREMENTAL=!0,p.PURE_INCREMENTAL=p.DEFAULT_INCREMENTAL,l.exports=p}),767:((l,h,u)=>{var d=u(551).FDLayoutEdge;function p(m,y,x){d.call(this,m,y,x)}f(p,"h"),s(p,"CoSEEdge"),p.prototype=Object.create(d.prototype);for(var g in d)p[g]=d[g];l.exports=p}),880:((l,h,u)=>{var d=u(551).LGraph;function p(m,y,x){d.call(this,m,y,x)}f(p,"h"),s(p,"CoSEGraph"),p.prototype=Object.create(d.prototype);for(var g in d)p[g]=d[g];l.exports=p}),578:((l,h,u)=>{var d=u(551).LGraphManager;function p(m){d.call(this,m)}f(p,"h"),s(p,"CoSEGraphManager"),p.prototype=Object.create(d.prototype);for(var g in d)p[g]=d[g];l.exports=p}),765:((l,h,u)=>{var d=u(551).FDLayout,p=u(578),g=u(880),m=u(991),y=u(767),x=u(806),C=u(902),w=u(551).FDLayoutConstants,_=u(551).LayoutConstants,S=u(551).Point,R=u(551).PointD,b=u(551).DimensionD,v=u(551).Layout,k=u(551).Integer,E=u(551).IGeometry,A=u(551).LGraph,I=u(551).Transform,$=u(551).LinkedList;function O(){d.call(this),this.toBeTiled={},this.constraints={}}f(O,"P"),s(O,"CoSELayout"),O.prototype=Object.create(d.prototype);for(var j in d)O[j]=d[j];O.prototype.newGraphManager=function(){var D=new p(this);return this.graphManager=D,D},O.prototype.newGraph=function(D){return new g(null,this.graphManager,D)},O.prototype.newNode=function(D){return new m(this.graphManager,D)},O.prototype.newEdge=function(D){return new y(null,null,D)},O.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.isSubLayout||(x.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=w.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=w.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=w.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=w.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){d.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/w.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var D=_.DEFAULT_CREATE_BENDS_AS_NEEDED;return D&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(x.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(U){return D.has(U)});this.graphManager.setAllNodesToApplyGravitation(P)}}else{var F=this.getFlatForest();if(F.length>0)this.positionNodesRadially(F);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(V){return D.has(V)});this.graphManager.setAllNodesToApplyGravitation(P),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(C.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),x.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;
vendor: 26,517 bytes, line 3137
3137if(this.totalIterations%w.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(z){return D.has(z)});this.graphManager.setAllNodesToApplyGravitation(P),this.graphManager.updateBounds(),this.updateGrid(),x.PURE_INCREMENTAL?this.coolingFactor=w.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=w.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),x.PURE_INCREMENTAL?this.coolingFactor=w.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=w.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var F=!this.isTreeGrowing&&!this.isGrowthFinished,U=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(F,U),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var D=this.graphManager.getAllNodes(),P={},F=0;F<D.length;F++){var U=D[F].rect,z=D[F].id;P[z]={id:z,x:U.getCenterX(),y:U.getCenterY(),w:U.width,h:U.height}}return P},O.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var D=!1;if(w.ANIMATE==="during")this.emit("layoutstarted");else{for(;!D;)D=this.tick();this.graphManager.updateBounds()}},O.prototype.moveNodes=function(){for(var D=this.getAllNodes(),P,F=0;F<D.length;F++)P=D[F],P.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var F=0;F<D.length;F++)P=D[F],P.move()},O.prototype.initConstraintVariables=function(){var D=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var P=this.graphManager.getAllNodes(),F=0;F<P.length;F++){var U=P[F];this.idToNodeMap.set(U.id,U)}var z=s(f(function se(le){for(var ue=le.getChild().getNodes(),de,we=0,De=0;De<ue.length;De++)de=ue[De],de.getChild()==null?D.fixedNodeSet.has(de.id)&&(we+=100):we+=se(de);return we},"Y"),"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(se){D.fixedNodeSet.add(se.nodeId)});for(var P=this.graphManager.getAllNodes(),U,F=0;F<P.length;F++)if(U=P[F],U.getChild()!=null){var V=z(U);V>0&&(U.fixedNodeWeight=V)}}if(this.constraints.relativePlacementConstraint){var W=new Map,X=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(se){D.fixedNodesOnHorizontal.add(se),D.fixedNodesOnVertical.add(se)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var J=this.constraints.alignmentConstraint.vertical,F=0;F<J.length;F++)this.dummyToNodeForVerticalAlignment.set("dummy"+F,[]),J[F].forEach(function(le){W.set(le,"dummy"+F),D.dummyToNodeForVerticalAlignment.get("dummy"+F).push(le),D.fixedNodeSet.has(le)&&D.fixedNodesOnHorizontal.add("dummy"+F)});if(this.constraints.alignmentConstraint.horizontal)for(var H=this.constraints.alignmentConstraint.horizontal,F=0;F<H.length;F++)this.dummyToNodeForHorizontalAlignment.set("dummy"+F,[]),H[F].forEach(function(le){X.set(le,"dummy"+F),D.dummyToNodeForHorizontalAlignment.get("dummy"+F).push(le),D.fixedNodeSet.has(le)&&D.fixedNodesOnVertical.add("dummy"+F)})}if(x.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(se){var le,ue,de;for(de=se.length-1;de>=2*se.length/3;de--)le=Math.floor(Math.random()*(de+1)),ue=se[de],se[de]=se[le],se[le]=ue;return se},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(se){if(se.left){var le=W.has(se.left)?W.get(se.left):se.left,ue=W.has(se.right)?W.get(se.right):se.right;D.nodesInRelativeHorizontal.includes(le)||(D.nodesInRelativeHorizontal.push(le),D.nodeToRelativeConstraintMapHorizontal.set(le,[]),D.dummyToNodeForVerticalAlignment.has(le)?D.nodeToTempPositionMapHorizontal.set(le,D.idToNodeMap.get(D.dummyToNodeForVerticalAlignment.get(le)[0]).getCenterX()):D.nodeToTempPositionMapHorizontal.set(le,D.idToNodeMap.get(le).getCenterX())),D.nodesInRelativeHorizontal.includes(ue)||(D.nodesInRelativeHorizontal.push(ue),D.nodeToRelativeConstraintMapHorizontal.set(ue,[]),D.dummyToNodeForVerticalAlignment.has(ue)?D.nodeToTempPositionMapHorizontal.set(ue,D.idToNodeMap.get(D.dummyToNodeForVerticalAlignment.get(ue)[0]).getCenterX()):D.nodeToTempPositionMapHorizontal.set(ue,D.idToNodeMap.get(ue).getCenterX())),D.nodeToRelativeConstraintMapHorizontal.get(le).push({right:ue,gap:se.gap}),D.nodeToRelativeConstraintMapHorizontal.get(ue).push({left:le,gap:se.gap})}else{var de=X.has(se.top)?X.get(se.top):se.top,we=X.has(se.bottom)?X.get(se.bottom):se.bottom;D.nodesInRelativeVertical.includes(de)||(D.nodesInRelativeVertical.push(de),D.nodeToRelativeConstraintMapVertical.set(de,[]),D.dummyToNodeForHorizontalAlignment.has(de)?D.nodeToTempPositionMapVertical.set(de,D.idToNodeMap.get(D.dummyToNodeForHorizontalAlignment.get(de)[0]).getCenterY()):D.nodeToTempPositionMapVertical.set(de,D.idToNodeMap.get(de).getCenterY())),D.nodesInRelativeVertical.includes(we)||(D.nodesInRelativeVertical.push(we),D.nodeToRelativeConstraintMapVertical.set(we,[]),D.dummyToNodeForHorizontalAlignment.has(we)?D.nodeToTempPositionMapVertical.set(we,D.idToNodeMap.get(D.dummyToNodeForHorizontalAlignment.get(we)[0]).getCenterY()):D.nodeToTempPositionMapVertical.set(we,D.idToNodeMap.get(we).getCenterY())),D.nodeToRelativeConstraintMapVertical.get(de).push({bottom:we,gap:se.gap}),D.nodeToRelativeConstraintMapVertical.get(we).push({top:de,gap:se.gap})}});else{var te=new Map,ie=new Map;this.constraints.relativePlacementConstraint.forEach(function(se){if(se.left){var le=W.has(se.left)?W.get(se.left):se.left,ue=W.has(se.right)?W.get(se.right):se.right;te.has(le)?te.get(le).push(ue):te.set(le,[ue]),te.has(ue)?te.get(ue).push(le):te.set(ue,[le])}else{var de=X.has(se.top)?X.get(se.top):se.top,we=X.has(se.bottom)?X.get(se.bottom):se.bottom;ie.has(de)?ie.get(de).push(we):ie.set(de,[we]),ie.has(we)?ie.get(we).push(de):ie.set(we,[de])}});var oe=s(function(se,le){var ue=[],de=[],we=new $,De=new Set,Ge=0;return se.forEach(function(be,qe){if(!De.has(qe)){ue[Ge]=[],de[Ge]=!1;var Ie=qe;for(we.push(Ie),De.add(Ie),ue[Ge].push(Ie);we.length!=0;){Ie=we.shift(),le.has(Ie)&&(de[Ge]=!0);var Be=se.get(Ie);Be.forEach(function(ke){De.has(ke)||(we.push(ke),De.add(ke),ue[Ge].push(ke))})}Ge++}}),{components:ue,isFixed:de}},"constructComponents"),he=oe(te,D.fixedNodesOnHorizontal);this.componentsOnHorizontal=he.components,this.fixedComponentsOnHorizontal=he.isFixed;var pe=oe(ie,D.fixedNodesOnVertical);this.componentsOnVertical=pe.components,this.fixedComponentsOnVertical=pe.isFixed}}},O.prototype.updateDisplacements=function(){var D=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(pe){var se=D.idToNodeMap.get(pe.nodeId);se.displacementX=0,se.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var P=this.constraints.alignmentConstraint.vertical,F=0;F<P.length;F++){for(var U=0,z=0;z<P[F].length;z++){if(this.fixedNodeSet.has(P[F][z])){U=0;break}U+=this.idToNodeMap.get(P[F][z]).displacementX}for(var V=U/P[F].length,z=0;z<P[F].length;z++)this.idToNodeMap.get(P[F][z]).displacementX=V}if(this.constraints.alignmentConstraint.horizontal)for(var W=this.constraints.alignmentConstraint.horizontal,F=0;F<W.length;F++){for(var X=0,z=0;z<W[F].length;z++){if(this.fixedNodeSet.has(W[F][z])){X=0;break}X+=this.idToNodeMap.get(W[F][z]).displacementY}for(var J=X/W[F].length,z=0;z<W[F].length;z++)this.idToNodeMap.get(W[F][z]).displacementY=J}}if(this.constraints.relativePlacementConstraint)if(x.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(pe){if(!D.fixedNodesOnHorizontal.has(pe)){var se=0;D.dummyToNodeForVerticalAlignment.has(pe)?se=D.idToNodeMap.get(D.dummyToNodeForVerticalAlignment.get(pe)[0]).displacementX:se=D.idToNodeMap.get(pe).displacementX,D.nodeToRelativeConstraintMapHorizontal.get(pe).forEach(function(le){if(le.right){var ue=D.nodeToTempPositionMapHorizontal.get(le.right)-D.nodeToTempPositionMapHorizontal.get(pe)-se;ue<le.gap&&(se-=le.gap-ue)}else{var ue=D.nodeToTempPositionMapHorizontal.get(pe)-D.nodeToTempPositionMapHorizontal.get(le.left)+se;ue<le.gap&&(se+=le.gap-ue)}}),D.nodeToTempPositionMapHorizontal.set(pe,D.nodeToTempPositionMapHorizontal.get(pe)+se),D.dummyToNodeForVerticalAlignment.has(pe)?D.dummyToNodeForVerticalAlignment.get(pe).forEach(function(le){D.idToNodeMap.get(le).displacementX=se}):D.idToNodeMap.get(pe).displacementX=se}}),this.nodesInRelativeVertical.forEach(function(pe){if(!D.fixedNodesOnHorizontal.has(pe)){var se=0;D.dummyToNodeForHorizontalAlignment.has(pe)?se=D.idToNodeMap.get(D.dummyToNodeForHorizontalAlignment.get(pe)[0]).displacementY:se=D.idToNodeMap.get(pe).displacementY,D.nodeToRelativeConstraintMapVertical.get(pe).forEach(function(le){if(le.bottom){var ue=D.nodeToTempPositionMapVertical.get(le.bottom)-D.nodeToTempPositionMapVertical.get(pe)-se;ue<le.gap&&(se-=le.gap-ue)}else{var ue=D.nodeToTempPositionMapVertical.get(pe)-D.nodeToTempPositionMapVertical.get(le.top)+se;ue<le.gap&&(se+=le.gap-ue)}}),D.nodeToTempPositionMapVertical.set(pe,D.nodeToTempPositionMapVertical.get(pe)+se),D.dummyToNodeForHorizontalAlignment.has(pe)?D.dummyToNodeForHorizontalAlignment.get(pe).forEach(function(le){D.idToNodeMap.get(le).displacementY=se}):D.idToNodeMap.get(pe).displacementY=se}});else{for(var F=0;F<this.componentsOnHorizontal.length;F++){var H=this.componentsOnHorizontal[F];if(this.fixedComponentsOnHorizontal[F])for(var z=0;z<H.length;z++)this.dummyToNodeForVerticalAlignment.has(H[z])?this.dummyToNodeForVerticalAlignment.get(H[z]).forEach(function(le){D.idToNodeMap.get(le).displacementX=0}):this.idToNodeMap.get(H[z]).displacementX=0;else{for(var te=0,ie=0,z=0;z<H.length;z++)if(this.dummyToNodeForVerticalAlignment.has(H[z])){var oe=this.dummyToNodeForVerticalAlignment.get(H[z]);te+=oe.length*this.idToNodeMap.get(oe[0]).displacementX,ie+=oe.length}else te+=this.idToNodeMap.get(H[z]).displacementX,ie++;for(var he=te/ie,z=0;z<H.length;z++)this.dummyToNodeForVerticalAlignment.has(H[z])?this.dummyToNodeForVerticalAlignment.get(H[z]).forEach(function(le){D.idToNodeMap.get(le).displacementX=he}):this.idToNodeMap.get(H[z]).displacementX=he}}for(var F=0;F<this.componentsOnVertical.length;F++){var H=this.componentsOnVertical[F];if(this.fixedComponentsOnVertical[F])for(var z=0;z<H.length;z++)this.dummyToNodeForHorizontalAlignment.has(H[z])?this.dummyToNodeForHorizontalAlignment.get(H[z]).forEach(function(ue){D.idToNodeMap.get(ue).displacementY=0}):this.idToNodeMap.get(H[z]).displacementY=0;else{for(var te=0,ie=0,z=0;z<H.length;z++)if(this.dummyToNodeForHorizontalAlignment.has(H[z])){var oe=this.dummyToNodeForHorizontalAlignment.get(H[z]);te+=oe.length*this.idToNodeMap.get(oe[0]).displacementY,ie+=oe.length}else te+=this.idToNodeMap.get(H[z]).displacementY,ie++;for(var he=te/ie,z=0;z<H.length;z++)this.dummyToNodeForHorizontalAlignment.has(H[z])?this.dummyToNodeForHorizontalAlignment.get(H[z]).forEach(function(de){D.idToNodeMap.get(de).displacementY=he}):this.idToNodeMap.get(H[z]).displacementY=he}}}},O.prototype.calculateNodesToApplyGravitationTo=function(){var D=[],P,F=this.graphManager.getGraphs(),U=F.length,z;for(z=0;z<U;z++)P=F[z],P.updateConnected(),P.isConnected||(D=D.concat(P.getNodes()));return D},O.prototype.createBendpoints=function(){var D=[];D=D.concat(this.graphManager.getAllEdges());var P=new Set,F;for(F=0;F<D.length;F++){var U=D[F];if(!P.has(U)){var z=U.getSource(),V=U.getTarget();if(z==V)U.getBendpoints().push(new R),U.getBendpoints().push(new R),this.createDummyNodesForBendpoints(U),P.add(U);else{var W=[];if(W=W.concat(z.getEdgeListToNode(V)),W=W.concat(V.getEdgeListToNode(z)),!P.has(W[0])){if(W.length>1){var X;for(X=0;X<W.length;X++){var J=W[X];J.getBendpoints().push(new R),this.createDummyNodesForBendpoints(J)}}W.forEach(function(H){P.add(H)})}}}if(P.size==D.length)break}},O.prototype.positionNodesRadially=function(D){for(var P=new S(0,0),F=Math.ceil(Math.sqrt(D.length)),U=0,z=0,V=0,W=new R(0,0),X=0;X<D.length;X++){X%F==0&&(V=0,z=U,X!=0&&(z+=x.DEFAULT_COMPONENT_SEPERATION),U=0);var J=D[X],H=v.findCenterOfTree(J);P.x=V,P.y=z,W=O.radialLayout(J,H,P),W.y>U&&(U=Math.floor(W.y)),V=Math.floor(W.x+x.DEFAULT_COMPONENT_SEPERATION)}this.transform(new R(_.WORLD_CENTER_X-W.x/2,_.WORLD_CENTER_Y-W.y/2))},O.radialLayout=function(D,P,F){var U=Math.max(this.maxDiagonalInTree(D),x.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(P,null,0,359,0,U);var z=A.calculateBounds(D),V=new I;V.setDeviceOrgX(z.getMinX()),V.setDeviceOrgY(z.getMinY()),V.setWorldOrgX(F.x),V.setWorldOrgY(F.y);for(var W=0;W<D.length;W++){var X=D[W];X.transform(V)}var J=new R(z.getMaxX(),z.getMaxY());return V.inverseTransformPoint(J)},O.branchRadialLayout=function(D,P,F,U,z,V){var W=(U-F+1)/2;W<0&&(W+=180);var X=(W+F)%360,J=X*E.TWO_PI/360,H=Math.cos(J),te=z*Math.cos(J),ie=z*Math.sin(J);D.setCenter(te,ie);var oe=[];oe=oe.concat(D.getEdges());var he=oe.length;P!=null&&he--;for(var pe=0,se=oe.length,le,ue=D.getEdgesBetween(P);ue.length>1;){var de=ue[0];ue.splice(0,1);var we=oe.indexOf(de);we>=0&&oe.splice(we,1),se--,he--}P!=null?le=(oe.indexOf(ue[0])+1)%se:le=0;for(var De=Math.abs(U-F)/he,Ge=le;pe!=he;Ge=++Ge%se){var be=oe[Ge].getOtherEnd(D);if(be!=P){var qe=(F+pe*De)%360,Ie=(qe+De)%360;O.branchRadialLayout(be,D,qe,Ie,z+V,V),pe++}}},O.maxDiagonalInTree=function(D){for(var P=k.MIN_VALUE,F=0;F<D.length;F++){var U=D[F],z=U.getDiagonal();z>P&&(P=z)}return P},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var D=this,P={};this.memberGroups={},this.idToDummyNode={};for(var F=[],U=this.graphManager.getAllNodes(),z=0;z<U.length;z++){var V=U[z],W=V.getParent();this.getNodeDegreeWithChildren(V)===0&&(W.id==null||!this.getToBeTiled(W))&&F.push(V)}for(var z=0;z<F.length;z++){var V=F[z],X=V.getParent().id;typeof P[X]>"u"&&(P[X]=[]),P[X]=P[X].concat(V)}Object.keys(P).forEach(function(J){if(P[J].length>1){var H="DummyCompound_"+J;D.memberGroups[H]=P[J];var te=P[J][0].getParent(),ie=new m(D.graphManager);ie.id=H,ie.paddingLeft=te.paddingLeft||0,ie.paddingRight=te.paddingRight||0,ie.paddingBottom=te.paddingBottom||0,ie.paddingTop=te.paddingTop||0,D.idToDummyNode[H]=ie;var oe=D.getGraphManager().add(D.newGraph(),ie),he=te.getChild();he.add(ie);for(var pe=0;pe<P[J].length;pe++){var se=P[J][pe];he.remove(se),oe.add(se)}}})},O.prototype.clearCompounds=function(){var D={},P={};this.performDFSOnCompounds();for(var F=0;F<this.compoundOrder.length;F++)P[this.compoundOrder[F].id]=this.compoundOrder[F],D[this.compoundOrder[F].id]=[].concat(this.compoundOrder[F].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[F].getChild()),this.compoundOrder[F].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(D,P)},O.prototype.clearZeroDegreeMembers=function(){var D=this,P=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(F){var U=D.idToDummyNode[F];if(P[F]=D.tileNodes(D.memberGroups[F],U.paddingLeft+U.paddingRight),U.rect.width=P[F].width,U.rect.height=P[F].height,U.setCenter(P[F].centerX,P[F].centerY),U.labelMarginLeft=0,U.labelMarginTop=0,x.NODE_DIMENSIONS_INCLUDE_LABELS){var z=U.rect.width,V=U.rect.height;U.labelWidth&&(U.labelPosHorizontal=="left"?(U.rect.x-=U.labelWidth,U.setWidth(z+U.labelWidth),U.labelMarginLeft=U.labelWidth):U.labelPosHorizontal=="center"&&U.labelWidth>z?(U.rect.x-=(U.labelWidth-z)/2,U.setWidth(U.labelWidth),U.labelMarginLeft=(U.labelWidth-z)/2):U.labelPosHorizontal=="right"&&U.setWidth(z+U.labelWidth)),U.labelHeight&&(U.labelPosVertical=="top"?(U.rect.y-=U.labelHeight,U.setHeight(V+U.labelHeight),U.labelMarginTop=U.labelHeight):U.labelPosVertical=="center"&&U.labelHeight>V?(U.rect.y-=(U.labelHeight-V)/2,U.setHeight(U.labelHeight),U.labelMarginTop=(U.labelHeight-V)/2):U.labelPosVertical=="bottom"&&U.setHeight(V+U.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var D=this.compoundOrder.length-1;D>=0;D--){var P=this.compoundOrder[D],F=P.id,U=P.paddingLeft,z=P.paddingTop,V=P.labelMarginLeft,W=P.labelMarginTop;this.adjustLocations(this.tiledMemberPack[F],P.rect.x,P.rect.y,U,z,V,W)}},O.prototype.repopulateZeroDegreeMembers=function(){var D=this,P=this.tiledZeroDegreePack;Object.keys(P).forEach(function(F){var U=D.idToDummyNode[F],z=U.paddingLeft,V=U.paddingTop,W=U.labelMarginLeft,X=U.labelMarginTop;D.adjustLocations(P[F],U.rect.x,U.rect.y,z,V,W,X)})},O.prototype.getToBeTiled=function(D){var P=D.id;if(this.toBeTiled[P]!=null)return this.toBeTiled[P];var F=D.getChild();if(F==null)return this.toBeTiled[P]=!1,!1;for(var U=F.getNodes(),z=0;z<U.length;z++){var V=U[z];if(this.getNodeDegree(V)>0)return this.toBeTiled[P]=!1,!1;if(V.getChild()==null){this.toBeTiled[V.id]=!1;continue}if(!this.getToBeTiled(V))return this.toBeTiled[P]=!1,!1}return this.toBeTiled[P]=!0,!0},O.prototype.getNodeDegree=function(D){for(var P=D.id,F=D.getEdges(),U=0,z=0;z<F.length;z++){var V=F[z];V.getSource().id!==V.getTarget().id&&(U=U+1)}return U},O.prototype.getNodeDegreeWithChildren=function(D){var P=this.getNodeDegree(D);if(D.getChild()==null)return P;for(var F=D.getChild().getNodes(),U=0;U<F.length;U++){var z=F[U];P+=this.getNodeDegreeWithChildren(z)}return P},O.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},O.prototype.fillCompexOrderByDFS=function(D){for(var P=0;P<D.length;P++){var F=D[P];F.getChild()!=null&&this.fillCompexOrderByDFS(F.getChild().getNodes()),this.getToBeTiled(F)&&this.compoundOrder.push(F)}},O.prototype.adjustLocations=function(D,P,F,U,z,V,W){P+=U+V,F+=z+W;for(var X=P,J=0;J<D.rows.length;J++){var H=D.rows[J];P=X;for(var te=0,ie=0;ie<H.length;ie++){var oe=H[ie];oe.rect.x=P,oe.rect.y=F,P+=oe.rect.width+D.horizontalPadding,oe.rect.height>te&&(te=oe.rect.height)}F+=te+D.verticalPadding}},O.prototype.tileCompoundMembers=function(D,P){var F=this;this.tiledMemberPack=[],Object.keys(D).forEach(function(U){var z=P[U];if(F.tiledMemberPack[U]=F.tileNodes(D[U],z.paddingLeft+z.paddingRight),z.rect.width=F.tiledMemberPack[U].width,z.rect.height=F.tiledMemberPack[U].height,z.setCenter(F.tiledMemberPack[U].centerX,F.tiledMemberPack[U].centerY),z.labelMarginLeft=0,z.labelMarginTop=0,x.NODE_DIMENSIONS_INCLUDE_LABELS){var V=z.rect.width,W=z.rect.height;z.labelWidth&&(z.labelPosHorizontal=="left"?(z.rect.x-=z.labelWidth,z.setWidth(V+z.labelWidth),z.labelMarginLeft=z.labelWidth):z.labelPosHorizontal=="center"&&z.labelWidth>V?(z.rect.x-=(z.labelWidth-V)/2,z.setWidth(z.labelWidth),z.labelMarginLeft=(z.labelWidth-V)/2):z.labelPosHorizontal=="right"&&z.setWidth(V+z.labelWidth)),z.labelHeight&&(z.labelPosVertical=="top"?(z.rect.y-=z.labelHeight,z.setHeight(W+z.labelHeight),z.labelMarginTop=z.labelHeight):z.labelPosVertical=="center"&&z.labelHeight>W?(z.rect.y-=(z.labelHeight-W)/2,z.setHeight(z.labelHeight),z.labelMarginTop=(z.labelHeight-W)/2):z.labelPosVertical=="bottom"&&z.setHeight(W+z.labelHeight))}})},O.prototype.tileNodes=function(D,P){var F=this.tileNodesByFavoringDim(D,P,!0),U=this.tileNodesByFavoringDim(D,P,!1),z=this.getOrgRatio(F),V=this.getOrgRatio(U),W;return V<z?W=U:W=F,W},O.prototype.getOrgRatio=function(D){var P=D.width,F=D.height,U=P/F;return U<1&&(U=1/U),U},O.prototype.calcIdealRowWidth=function(D,P){var F=x.TILING_PADDING_VERTICAL,U=x.TILING_PADDING_HORIZONTAL,z=D.length,V=0,W=0,X=0;D.forEach(function(pe){V+=pe.getWidth(),W+=pe.getHeight(),pe.getWidth()>X&&(X=pe.getWidth())});var J=V/z,H=W/z,te=Math.pow(F-U,2)+4*(J+U)*(H+F)*z,ie=(U-F+Math.sqrt(te))/(2*(J+U)),oe;P?(oe=Math.ceil(ie),oe==ie&&oe++):oe=Math.floor(ie);var he=oe*(J+U)-U;return X>he&&(he=X),he+=U*2,he},O.prototype.tileNodesByFavoringDim=function(D,P,F){var U=x.TILING_PADDING_VERTICAL,z=x.TILING_PADDING_HORIZONTAL,V=x.TILING_COMPARE_BY,W={rows:[],rowWidth:[],rowHeight:[],width:0,height:P,verticalPadding:U,horizontalPadding:z,centerX:0,centerY:0};V&&(W.idealRowWidth=this.calcIdealRowWidth(D,F));var X=s(function(pe){return pe.rect.width*pe.rect.height},"getNodeArea"),J=s(function(pe,se){return X(se)-X(pe)},"areaCompareFcn");D.sort(function(pe,se){var le=J;return W.idealRowWidth?(le=V,le(pe.id,se.id)):le(pe,se)});for(var H=0,te=0,ie=0;ie<D.length;ie++){var oe=D[ie];H+=oe.getCenterX(),te+=oe.getCenterY()}W.centerX=H/D.length,W.centerY=te/D.length;for(var ie=0;ie<D.length;ie++){var oe=D[ie];if(W.rows.length==0)this.insertNodeToRow(W,oe,0,P);else if(this.canAddHorizontal(W,oe.rect.width,oe.rect.height)){var he=W.rows.length-1;W.idealRowWidth||(he=this.getShortestRowIndex(W)),this.insertNodeToRow(W,oe,he,P)}else this.insertNodeToRow(W,oe,W.rows.length,P);this.shiftToLastRow(W)}return W},O.prototype.insertNodeToRow=function(D,P,F,U){var z=U;if(F==D.rows.length){var V=[];D.rows.push(V),D.rowWidth.push(z),D.rowHeight.push(0)}var W=D.rowWidth[F]+P.rect.width;D.rows[F].length>0&&(W+=D.horizontalPadding),D.rowWidth[F]=W,D.width<W&&(D.width=W);var X=P.rect.height;F>0&&(X+=D.verticalPadding);var J=0;X>D.rowHeight[F]&&(J=D.rowHeight[F],D.rowHeight[F]=X,J=D.rowHeight[F]-J),D.height+=J,D.rows[F].push(P)},O.prototype.getShortestRowIndex=function(D){for(var P=-1,F=Number.MAX_VALUE,U=0;U<D.rows.length;U++)D.rowWidth[U]<F&&(P=U,F=D.rowWidth[U]);return P},O.prototype.getLongestRowIndex=function(D){for(var P=-1,F=Number.MIN_VALUE,U=0;U<D.rows.length;U++)D.rowWidth[U]>F&&(P=U,F=D.rowWidth[U]);return P},O.prototype.canAddHorizontal=function(D,P,F){if(D.idealRowWidth){var U=D.rows.length-1,z=D.rowWidth[U];return z+P+D.horizontalPadding<=D.idealRowWidth}var V=this.getShortestRowIndex(D);if(V<0)return!0;var W=D.rowWidth[V];if(W+D.horizontalPadding+P<=D.width)return!0;var X=0;D.rowHeight[V]<F&&V>0&&(X=F+D.verticalPadding-D.rowHeight[V]);var J;D.width-W>=P+D.horizontalPadding?J=(D.height+X)/(W+P+D.horizontalPadding):J=(D.height+X)/D.width,X=F+D.verticalPadding;var H;return D.width<P?H=(D.height+X)/P:H=(D.height+X)/D.width,H<1&&(H=1/H),J<1&&(J=1/J),J<H},O.prototype.shiftToLastRow=function(D){var P=this.getLongestRowIndex(D),F=D.rowWidth.length-1,U=D.rows[P],z=U[U.length-1],V=z.width+D.horizontalPadding;if(D.width-D.rowWidth[F]>V&&P!=F){U.splice(-1,1),D.rows[F].push(z),D.rowWidth[P]=D.rowWidth[P]-V,D.rowWidth[F]=D.rowWidth[F]+V,D.width=D.rowWidth[instance.getLongestRowIndex(D)];for(var W=Number.MIN_VALUE,X=0;X<U.length;X++)U[X].height>W&&(W=U[X].height);P>0&&(W+=D.verticalPadding);var J=D.rowHeight[P]+D.rowHeight[F];D.rowHeight[P]=W,D.rowHeight[F]<z.height+D.verticalPadding&&(D.rowHeight[F]=z.height+D.verticalPadding);var H=D.rowHeight[P]+D.rowHeight[F];D.height+=H-J,this.shiftToLastRow(D)}},O.prototype.tilingPreLayout=function(){x.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},O.prototype.tilingPostLayout=function(){x.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},O.prototype.reduceTrees=function(){for(var D=[],P=!0,F;P;){var U=this.graphManager.getAllNodes(),z=[];P=!1;for(var V=0;V<U.length;V++)if(F=U[V],F.getEdges().length==1&&!F.getEdges()[0].isInterGraph&&F.getChild()==null){if(x.PURE_INCREMENTAL){var W=F.getEdges()[0].getOtherEnd(F),X=new b(F.getCenterX()-W.getCenterX(),F.getCenterY()-W.getCenterY());z.push([F,F.getEdges()[0],F.getOwner(),X])}else z.push([F,F.getEdges()[0],F.getOwner()]);P=!0}if(P==!0){for(var J=[],H=0;H<z.length;H++)z[H][0].getEdges().length==1&&(J.push(z[H]),z[H][0].getOwner().remove(z[H][0]));D.push(J),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=D},O.prototype.growTree=function(D){for(var P=D.length,F=D[P-1],U,z=0;z<F.length;z++)U=F[z],this.findPlaceforPrunedNode(U),U[2].add(U[0]),U[2].add(U[1],U[1].source,U[1].target);D.splice(D.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},O.prototype.findPlaceforPrunedNode=function(D){var P,F,U=D[0];if(U==D[1].source?F=D[1].target:F=D[1].source,x.PURE_INCREMENTAL)U.setCenter(F.getCenterX()+D[3].getWidth(),F.getCenterY()+D[3].getHeight());else{var z=F.startX,V=F.finishX,W=F.startY,X=F.finishY,J=0,H=0,te=0,ie=0,oe=[J,te,H,ie];if(W>0)for(var he=z;he<=V;he++)oe[0]+=this.grid[he][W-1].length+this.grid[he][W].length-1;if(V<this.grid.length-1)for(var he=W;he<=X;he++)oe[1]+=this.grid[V+1][he].length+this.grid[V][he].length-1;if(X<this.grid[0].length-1)for(var he=z;he<=V;he++)oe[2]+=this.grid[he][X+1].length+this.grid[he][X].length-1;if(z>0)for(var he=W;he<=X;he++)oe[3]+=this.grid[z-1][he].length+this.grid[z][he].length-1;for(var pe=k.MAX_VALUE,se,le,ue=0;ue<oe.length;ue++)oe[ue]<pe?(pe=oe[ue],se=1,le=ue):oe[ue]==pe&&se++;if(se==3&&pe==0)oe[0]==0&&oe[1]==0&&oe[2]==0?P=1:oe[0]==0&&oe[1]==0&&oe[3]==0?P=0:oe[0]==0&&oe[2]==0&&oe[3]==0?P=3:oe[1]==0&&oe[2]==0&&oe[3]==0&&(P=2);else if(se==2&&pe==0){var de=Math.floor(Math.random()*2);oe[0]==0&&oe[1]==0?de==0?P=0:P=1:oe[0]==0&&oe[2]==0?de==0?P=0:P=2:oe[0]==0&&oe[3]==0?de==0?P=0:P=3:
vendor: 4,745 bytes, line 3137
3137oe[1]==0&&oe[2]==0?de==0?P=1:P=2:oe[1]==0&&oe[3]==0?de==0?P=1:P=3:de==0?P=2:P=3}else if(se==4&&pe==0){var de=Math.floor(Math.random()*4);P=de}else P=le;P==0?U.setCenter(F.getCenterX(),F.getCenterY()-F.getHeight()/2-w.DEFAULT_EDGE_LENGTH-U.getHeight()/2):P==1?U.setCenter(F.getCenterX()+F.getWidth()/2+w.DEFAULT_EDGE_LENGTH+U.getWidth()/2,F.getCenterY()):P==2?U.setCenter(F.getCenterX(),F.getCenterY()+F.getHeight()/2+w.DEFAULT_EDGE_LENGTH+U.getHeight()/2):U.setCenter(F.getCenterX()-F.getWidth()/2-w.DEFAULT_EDGE_LENGTH-U.getWidth()/2,F.getCenterY())}},l.exports=O}),991:((l,h,u)=>{var d=u(551).FDLayoutNode,p=u(551).IMath;function g(y,x,C,w){d.call(this,y,x,C,w)}f(g,"d"),s(g,"CoSENode"),g.prototype=Object.create(d.prototype);for(var m in d)g[m]=d[m];g.prototype.calculateDisplacement=function(){var y=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=y.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=y.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=y.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=y.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>y.coolingFactor*y.maxNodeDisplacement&&(this.displacementX=y.coolingFactor*y.maxNodeDisplacement*p.sign(this.displacementX)),Math.abs(this.displacementY)>y.coolingFactor*y.maxNodeDisplacement&&(this.displacementY=y.coolingFactor*y.maxNodeDisplacement*p.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(y,x){for(var C=this.getChild().getNodes(),w,_=0;_<C.length;_++)w=C[_],w.getChild()==null?(w.displacementX+=y,w.displacementY+=x):w.propogateDisplacementToChildren(y,x)},g.prototype.move=function(){var y=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),y.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},g.prototype.setPred1=function(y){this.pred1=y},g.prototype.getPred1=function(){return pred1},g.prototype.getPred2=function(){return pred2},g.prototype.setNext=function(y){this.next=y},g.prototype.getNext=function(){return next},g.prototype.setProcessed=function(y){this.processed=y},g.prototype.isProcessed=function(){return processed},l.exports=g}),902:((l,h,u)=>{function d(C){if(Array.isArray(C)){for(var w=0,_=Array(C.length);w<C.length;w++)_[w]=C[w];return _}else return Array.from(C)}f(d,"u"),s(d,"_toConsumableArray");var p=u(806),g=u(551).LinkedList,m=u(551).Matrix,y=u(551).SVD;function x(){}f(x,"m"),s(x,"ConstraintHandler"),x.handleConstraints=function(C){var w={};w.fixedNodeConstraint=C.constraints.fixedNodeConstraint,w.alignmentConstraint=C.constraints.alignmentConstraint,w.relativePlacementConstraint=C.constraints.relativePlacementConstraint;for(var _=new Map,S=new Map,R=[],b=[],v=C.getAllNodes(),k=0,E=0;E<v.length;E++){var A=v[E];A.getChild()==null&&(S.set(A.id,k++),R.push(A.getCenterX()),b.push(A.getCenterY()),_.set(A.id,A))}w.relativePlacementConstraint&&w.relativePlacementConstraint.forEach(function(Q){!Q.gap&&Q.gap!=0&&(Q.left?Q.gap=p.DEFAULT_EDGE_LENGTH+_.get(Q.left).getWidth()/2+_.get(Q.right).getWidth()/2:Q.gap=p.DEFAULT_EDGE_LENGTH+_.get(Q.top).getHeight()/2+_.get(Q.bottom).getHeight()/2)});var I=s(function(Q,xe){return{x:Q.x-xe.x,y:Q.y-xe.y}},"calculatePositionDiff"),$=s(function(Q){var xe=0,ae=0;return Q.forEach(function(_e){xe+=R[S.get(_e)],ae+=b[S.get(_e)]}),{x:xe/Q.size,y:ae/Q.size}},"calculateAvgPosition"),O=s(function(Q,xe,ae,_e,Se){function Je(bt,Ae){var ft=new Set(bt),Nt=!0,Wt=!1,Ht=void 0;try{for(var Ft=Ae[Symbol.iterator](),Qt;!(Nt=(Qt=Ft.next()).done);Nt=!0){var Dt=Qt.value;ft.add(Dt)}}catch(Mt){Wt=!0,Ht=Mt}finally{try{!Nt&&Ft.return&&Ft.return()}finally{if(Wt)throw Ht}}return ft}f(Je,"Re"),s(Je,"setUnion");var Re=new Map;Q.forEach(function(bt,Ae){Re.set(Ae,0)}),Q.forEach(function(bt,Ae){bt.forEach(function(ft){Re.set(ft.id,Re.get(ft.id)+1)})});var et=new Map,ze=new Map,Ke=new g;Re.forEach(function(bt,Ae){bt==0?(Ke.push(Ae),ae||(xe=="horizontal"?et.set(Ae,S.has(Ae)?R[S.get(Ae)]:_e.get(Ae)):et.set(Ae,S.has(Ae)?b[S.get(Ae)]:_e.get(Ae)))):et.set(Ae,Number.NEGATIVE_INFINITY),ae&&ze.set(Ae,new Set([Ae]))}),ae&&Se.forEach(function(bt){var Ae=[];
vendor: 6,780 bytes, line 3137
3137if(bt.forEach(function(Wt){ae.has(Wt)&&Ae.push(Wt)}),Ae.length>0){var ft=0;Ae.forEach(function(Wt){xe=="horizontal"?(et.set(Wt,S.has(Wt)?R[S.get(Wt)]:_e.get(Wt)),ft+=et.get(Wt)):(et.set(Wt,S.has(Wt)?b[S.get(Wt)]:_e.get(Wt)),ft+=et.get(Wt))}),ft=ft/Ae.length,bt.forEach(function(Wt){ae.has(Wt)||et.set(Wt,ft)})}else{var Nt=0;bt.forEach(function(Wt){xe=="horizontal"?Nt+=S.has(Wt)?R[S.get(Wt)]:_e.get(Wt):Nt+=S.has(Wt)?b[S.get(Wt)]:_e.get(Wt)}),Nt=Nt/bt.length,bt.forEach(function(Wt){et.set(Wt,Nt)})}});for(var We=s(function(){var bt=Ke.shift(),Ae=Q.get(bt);Ae.forEach(function(ft){if(et.get(ft.id)<et.get(bt)+ft.gap)if(ae&&ae.has(ft.id)){var Nt=void 0;if(xe=="horizontal"?Nt=S.has(ft.id)?R[S.get(ft.id)]:_e.get(ft.id):Nt=S.has(ft.id)?b[S.get(ft.id)]:_e.get(ft.id),et.set(ft.id,Nt),Nt<et.get(bt)+ft.gap){var Wt=et.get(bt)+ft.gap-Nt;ze.get(bt).forEach(function(Ht){et.set(Ht,et.get(Ht)-Wt)})}}else et.set(ft.id,et.get(bt)+ft.gap);Re.set(ft.id,Re.get(ft.id)-1),Re.get(ft.id)==0&&Ke.push(ft.id),ae&&ze.set(ft.id,Je(ze.get(bt),ze.get(ft.id)))})},"_loop");Ke.length!=0;)We();if(ae){var nt=new Set;Q.forEach(function(bt,Ae){bt.length==0&&nt.add(Ae)});var Te=[];ze.forEach(function(bt,Ae){if(nt.has(Ae)){var ft=!1,Nt=!0,Wt=!1,Ht=void 0;try{for(var Ft=bt[Symbol.iterator](),Qt;!(Nt=(Qt=Ft.next()).done);Nt=!0){var Dt=Qt.value;ae.has(Dt)&&(ft=!0)}}catch(At){Wt=!0,Ht=At}finally{try{!Nt&&Ft.return&&Ft.return()}finally{if(Wt)throw Ht}}if(!ft){var Mt=!1,$t=void 0;Te.forEach(function(At,Kt){At.has([].concat(d(bt))[0])&&(Mt=!0,$t=Kt)}),Mt?bt.forEach(function(At){Te[$t].add(At)}):Te.push(new Set(bt))}}}),Te.forEach(function(bt,Ae){var ft=Number.POSITIVE_INFINITY,Nt=Number.POSITIVE_INFINITY,Wt=Number.NEGATIVE_INFINITY,Ht=Number.NEGATIVE_INFINITY,Ft=!0,Qt=!1,Dt=void 0;try{for(var Mt=bt[Symbol.iterator](),$t;!(Ft=($t=Mt.next()).done);Ft=!0){var At=$t.value,Kt=void 0;xe=="horizontal"?Kt=S.has(At)?R[S.get(At)]:_e.get(At):Kt=S.has(At)?b[S.get(At)]:_e.get(At);var rr=et.get(At);Kt<ft&&(ft=Kt),Kt>Wt&&(Wt=Kt),rr<Nt&&(Nt=rr),rr>Ht&&(Ht=rr)}}catch($e){Qt=!0,Dt=$e}finally{try{!Ft&&Mt.return&&Mt.return()}finally{if(Qt)throw Dt}}var ei=(ft+Wt)/2-(Nt+Ht)/2,qt=!0,Qr=!1,or=void 0;try{for(var Ar=bt[Symbol.iterator](),li;!(qt=(li=Ar.next()).done);qt=!0){var ki=li.value;et.set(ki,et.get(ki)+ei)}}catch($e){Qr=!0,or=$e}finally{try{!qt&&Ar.return&&Ar.return()}finally{if(Qr)throw or}}})}return et},"findAppropriatePositionForRelativePlacement"),j=s(function(Q){var xe=0,ae=0,_e=0,Se=0;if(Q.forEach(function(ze){ze.left?R[S.get(ze.left)]-R[S.get(ze.right)]>=0?xe++:ae++:b[S.get(ze.top)]-b[S.get(ze.bottom)]>=0?_e++:Se++}),xe>ae&&_e>Se)for(var Je=0;Je<S.size;Je++)R[Je]=-1*R[Je],b[Je]=-1*b[Je];else if(xe>ae)for(var Re=0;Re<S.size;Re++)R[Re]=-1*R[Re];else if(_e>Se)for(var et=0;et<S.size;et++)b[et]=-1*b[et]},"applyReflectionForRelativePlacement"),D=s(function(Q){var xe=[],ae=new g,_e=new Set,Se=0;return Q.forEach(function(Je,Re){if(!_e.has(Re)){xe[Se]=[];var et=Re;for(ae.push(et),_e.add(et),xe[Se].push(et);ae.length!=0;){et=ae.shift();var ze=Q.get(et);ze.forEach(function(Ke){_e.has(Ke.id)||(ae.push(Ke.id),_e.add(Ke.id),xe[Se].push(Ke.id))})}Se++}}),xe},"findComponents"),P=s(function(Q){var xe=new Map;return Q.forEach(function(ae,_e){xe.set(_e,[])}),Q.forEach(function(ae,_e){ae.forEach(function(Se){xe.get(_e).push(Se),xe.get(Se.id).push({id:_e,gap:Se.gap,direction:Se.direction})})}),xe},"dagToUndirected"),F=s(function(Q){var xe=new Map;return Q.forEach(function(ae,_e){xe.set(_e,[])}),Q.forEach(function(ae,_e){ae.forEach(function(Se){xe.get(Se.id).push({id:_e,gap:Se.gap,direction:Se.direction})})}),xe},"dagToReversed"),U=[],z=[],V=!1,W=!1,X=new Set,J=new Map,H=new Map,te=[];if(w.fixedNodeConstraint&&w.fixedNodeConstraint.forEach(function(Q){X.add(Q.nodeId)}),w.relativePlacementConstraint&&(w.relativePlacementConstraint.forEach(function(Q){Q.left?(J.has(Q.left)?J.get(Q.left).push({id:Q.right,gap:Q.gap,direction:"horizontal"}):J.set(Q.left,[{id:Q.right,gap:Q.gap,direction:"horizontal"}]),J.has(Q.right)||J.set(Q.right,[])):(J.has(Q.top)?J.get(Q.top).push({id:Q.bottom,gap:Q.gap,direction:"vertical"}):J.set(Q.top,[{id:Q.bottom,gap:Q.gap,direction:"vertical"}]),J.has(Q.bottom)||J.set(Q.bottom,[]))}),H=P(J),te=D(H)),p.TRANSFORM_ON_CONSTRAINT_HANDLING){if(w.fixedNodeConstraint&&w.fixedNodeConstraint.length>1)w.fixedNodeConstraint.forEach(function(Q,xe){U[xe]=[Q.position.x,Q.position.y],z[xe]=[R[S.get(Q.nodeId)],b[S.get(Q.nodeId)]]}),V=!0;else if(w.alignmentConstraint)(function(){var Q=0;if(w.alignmentConstraint.vertical){for(var xe=w.alignmentConstraint.vertical,ae=s(function(et){var ze=new Set;xe[et].forEach(function(nt){ze.add(nt)});var Ke=new Set([].concat(d(ze)).filter(function(nt){return X.has(nt)})),We=void 0;Ke.size>0?We=R[S.get(Ke.values().next().value)]:We=$(ze).x,xe[et].forEach(function(nt){U[Q]=[We,b[S.get(nt)]],z[Q]=[R[S.get(nt)],b[S.get(nt)]],Q++})},"_loop2"),_e=0;_e<xe.length;_e++)ae(_e);V=!0}if(w.alignmentConstraint.horizontal){for(var Se=w.alignmentConstraint.horizontal,Je=s(function(et){var ze=new Set;Se[et].forEach(function(nt){ze.add(nt)});var Ke=new Set([].concat(d(ze)).filter(function(nt){return X.has(nt)})),We=void 0;Ke.size>0?We=R[S.get(Ke.values().next().value)]:We=$(ze).y,Se[et].forEach(function(nt){U[Q]=[R[S.get(nt)],We],z[Q]=[R[S.get(nt)],b[S.get(nt)]],Q++})},"_loop3"),Re=0;Re<Se.length;Re++)Je(Re);V=!0}w.relativePlacementConstraint&&(W=!0)})();else if(w.relativePlacementConstraint){for(var ie=0,oe=0,he=0;he<te.length;he++)te[he].length>ie&&(ie=te[he].length,oe=he);if(ie<H.size/2)j(w.relativePlacementConstraint),V=!1,W=!1;else{var pe=new Map,se=new Map,le=[];te[oe].forEach(function(Q){J.get(Q).forEach(function(xe){xe.direction=="horizontal"?(pe.has(Q)?pe.get(Q).push(xe):pe.set(Q,[xe]),pe.has(xe.id)||pe.set(xe.id,[]),le.push({left:Q,right:xe.id})):(se.has(Q)?se.get(Q).push(xe):se.set(Q,[xe]),se.has(xe.id)||se.set(xe.id,[]),le.push({top:Q,bottom:xe.id}))})}),j(le),W=!1;var ue=O(pe,"horizontal"),de=O(se,"vertical");te[oe].forEach(function(Q,xe){z[xe]=[R[S.get(Q)],b[S.get(Q)]],U[xe]=[],ue.has(Q)?U[xe][0]=ue.get(Q):U[xe][0]=R[S.get(Q)],de.has(Q)?U[xe][1]=de.get(Q):U[xe][1]=b[S.get(Q)]}),V=!0}}if(V){for(var we=void 0,De=m.transpose(U),Ge=m.transpose(z),be=0;be<De.length;be++)De[be]=m.multGamma(De[be]),Ge[be]=m.multGamma(Ge[be]);var qe=m.multMat(De,m.transpose(Ge)),Ie=y.svd(qe);we=m.multMat(Ie.V,m.transpose(Ie.U));for(var Be=0;Be<S.size;Be++){var ke=[R[Be],b[Be]],Qe=[we[0][0],we[1][0]],Pe=[we[0][1],we[1][1]];R[Be]=m.dotProduct(ke,Qe),b[Be]=m.dotProduct(ke,Pe)}W&&j(w.relativePlacementConstraint)}}if(p.ENFORCE_CONSTRAINTS){if(w.fixedNodeConstraint&&w.fixedNodeConstraint.length>0){var ht={x:0,y:0};w.fixedNodeConstraint.forEach(function(Q,xe){var ae={x:R[S.get(Q.nodeId)],y:b[S.get(Q.nodeId)]},_e=Q.position,Se=I(_e,ae);
vendor: 6,146 bytes, line 3137
3137ht.x+=Se.x,ht.y+=Se.y}),ht.x/=w.fixedNodeConstraint.length,ht.y/=w.fixedNodeConstraint.length,R.forEach(function(Q,xe){R[xe]+=ht.x}),b.forEach(function(Q,xe){b[xe]+=ht.y}),w.fixedNodeConstraint.forEach(function(Q){R[S.get(Q.nodeId)]=Q.position.x,b[S.get(Q.nodeId)]=Q.position.y})}if(w.alignmentConstraint){if(w.alignmentConstraint.vertical)for(var Xe=w.alignmentConstraint.vertical,dt=s(function(Q){var xe=new Set;Xe[Q].forEach(function(Se){xe.add(Se)});var ae=new Set([].concat(d(xe)).filter(function(Se){return X.has(Se)})),_e=void 0;ae.size>0?_e=R[S.get(ae.values().next().value)]:_e=$(xe).x,xe.forEach(function(Se){X.has(Se)||(R[S.get(Se)]=_e)})},"_loop4"),at=0;at<Xe.length;at++)dt(at);if(w.alignmentConstraint.horizontal)for(var kt=w.alignmentConstraint.horizontal,Le=s(function(Q){var xe=new Set;kt[Q].forEach(function(Se){xe.add(Se)});var ae=new Set([].concat(d(xe)).filter(function(Se){return X.has(Se)})),_e=void 0;ae.size>0?_e=b[S.get(ae.values().next().value)]:_e=$(xe).y,xe.forEach(function(Se){X.has(Se)||(b[S.get(Se)]=_e)})},"_loop5"),lt=0;lt<kt.length;lt++)Le(lt)}w.relativePlacementConstraint&&(function(){var Q=new Map,xe=new Map,ae=new Map,_e=new Map,Se=new Map,Je=new Map,Re=new Set,et=new Set;if(X.forEach(function(Ct){Re.add(Ct),et.add(Ct)}),w.alignmentConstraint){if(w.alignmentConstraint.vertical)for(var ze=w.alignmentConstraint.vertical,Ke=s(function(Ct){ae.set("dummy"+Ct,[]),ze[Ct].forEach(function(Zt){Q.set(Zt,"dummy"+Ct),ae.get("dummy"+Ct).push(Zt),X.has(Zt)&&Re.add("dummy"+Ct)}),Se.set("dummy"+Ct,R[S.get(ze[Ct][0])])},"_loop6"),We=0;We<ze.length;We++)Ke(We);if(w.alignmentConstraint.horizontal)for(var nt=w.alignmentConstraint.horizontal,Te=s(function(Ct){_e.set("dummy"+Ct,[]),nt[Ct].forEach(function(Zt){xe.set(Zt,"dummy"+Ct),_e.get("dummy"+Ct).push(Zt),X.has(Zt)&&et.add("dummy"+Ct)}),Je.set("dummy"+Ct,b[S.get(nt[Ct][0])])},"_loop7"),bt=0;bt<nt.length;bt++)Te(bt)}var Ae=new Map,ft=new Map,Nt=s(function(Ct){J.get(Ct).forEach(function(Zt){var St=void 0,$r=void 0;Zt.direction=="horizontal"?(St=Q.get(Ct)?Q.get(Ct):Ct,Q.get(Zt.id)?$r={id:Q.get(Zt.id),gap:Zt.gap,direction:Zt.direction}:$r=Zt,Ae.has(St)?Ae.get(St).push($r):Ae.set(St,[$r]),Ae.has($r.id)||Ae.set($r.id,[])):(St=xe.get(Ct)?xe.get(Ct):Ct,xe.get(Zt.id)?$r={id:xe.get(Zt.id),gap:Zt.gap,direction:Zt.direction}:$r=Zt,ft.has(St)?ft.get(St).push($r):ft.set(St,[$r]),ft.has($r.id)||ft.set($r.id,[]))})},"_loop8"),Wt=!0,Ht=!1,Ft=void 0;try{for(var Qt=J.keys()[Symbol.iterator](),Dt;!(Wt=(Dt=Qt.next()).done);Wt=!0){var Mt=Dt.value;Nt(Mt)}}catch(Ct){Ht=!0,Ft=Ct}finally{try{!Wt&&Qt.return&&Qt.return()}finally{if(Ht)throw Ft}}var $t=P(Ae),At=P(ft),Kt=D($t),rr=D(At),ei=F(Ae),qt=F(ft),Qr=[],or=[];Kt.forEach(function(Ct,Zt){Qr[Zt]=[],Ct.forEach(function(St){ei.get(St).length==0&&Qr[Zt].push(St)})}),rr.forEach(function(Ct,Zt){or[Zt]=[],Ct.forEach(function(St){qt.get(St).length==0&&or[Zt].push(St)})});var Ar=O(Ae,"horizontal",Re,Se,Qr),li=O(ft,"vertical",et,Je,or),ki=s(function(Ct){ae.get(Ct)?ae.get(Ct).forEach(function(Zt){R[S.get(Zt)]=Ar.get(Ct)}):R[S.get(Ct)]=Ar.get(Ct)},"_loop9"),$e=!0,zt=!1,Rt=void 0;try{for(var Or=Ar.keys()[Symbol.iterator](),ni;!($e=(ni=Or.next()).done);$e=!0){var Wr=ni.value;ki(Wr)}}catch(Ct){zt=!0,Rt=Ct}finally{try{!$e&&Or.return&&Or.return()}finally{if(zt)throw Rt}}var Ti=s(function(Ct){_e.get(Ct)?_e.get(Ct).forEach(function(Zt){b[S.get(Zt)]=li.get(Ct)}):b[S.get(Ct)]=li.get(Ct)},"_loop10"),_i=!0,Ai=!1,aa=void 0;try{for(var yi=li.keys()[Symbol.iterator](),hn;!(_i=(hn=yi.next()).done);_i=!0){var Wr=hn.value;Ti(Wr)}}catch(Ct){Ai=!0,aa=Ct}finally{try{!_i&&yi.return&&yi.return()}finally{if(Ai)throw aa}}})()}for(var ve=0;ve<v.length;ve++){var tt=v[ve];tt.getChild()==null&&tt.setCenter(R[S.get(tt.id)],b[S.get(tt.id)])}},l.exports=x}),551:(l=>{l.exports=r})},n={};function a(l){var h=n[l];if(h!==void 0)return h.exports;var u=n[l]={exports:{}};return i[l](u,u.exports,a),u.exports}f(a,"i"),s(a,"__webpack_require__");var o=a(45);return o})()})}),S6t=Xo((e,t)=>{"use strict";s((function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i(t0t()):typeof define=="function"&&define.amd?define(["cose-base"],i):typeof e=="object"?e.cytoscapeFcose=i(t0t()):r.cytoscapeFcose=i(r.coseBase)}),"webpackUniversalModuleDefinition")(e,function(r){return(()=>{"use strict";var i={658:(l=>{l.exports=Object.assign!=null?Object.assign.bind(Object):function(h){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return d.forEach(function(g){Object.keys(g).forEach(function(m){return h[m]=g[m]})}),h}}),548:((l,h,u)=>{var d=(function(){function m(y,x){var C=[],w=!0,_=!1,S=void 0;try{for(var R=y[Symbol.iterator](),b;!(w=(b=R.next()).done)&&(C.push(b.value),!(x&&C.length===x));w=!0);}catch(v){_=!0,S=v}finally{try{!w&&R.return&&R.return()}finally{if(_)throw S}}return C}return f(m,"f"),s(m,"sliceIterator"),function(y,x){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=u(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(m){for(var y={},x=0;x<m.length;x++)y[m[x].id()]=!0;var C=m.filter(function(w,_){typeof w=="number"&&(w=_);for(var S=w.parent()[0];S!=null;){if(y[S.id()])return!1;S=S.parent()[0]}return!0});return C},g.connectComponents=function(m,y,x,C){var w=new p,_=new Set,S=[],R=void 0,b=void 0,v=void 0,k=!1,E=1,A=[],I=[],$=s(function(){var O=m.collection();I.push(O);var j=x[0],D=m.collection();D.merge(j).merge(j.descendants().intersection(y)),S.push(j),D.forEach(function(U){w.push(U),_.add(U),O.merge(U)});for(var P=s(function(){j=w.shift();var U=m.collection();j.neighborhood().nodes().forEach(function(X){y.intersection(j.edgesWith(X)).length>0&&U.merge(X)});for(var z=0;z<U.length;z++){var V=U[z];if(R=x.intersection(V.union(V.ancestors())),R!=null&&!_.has(R[0])){var W=R.union(R.descendants());W.forEach(function(X){w.push(X),_.add(X),O.merge(X),x.has(X)&&S.push(X)})}}},"_loop2");w.length!=0;)P();if(O.forEach(function(U){y.intersection(U.connectedEdges()).forEach(function(z){O.has(z.source())&&O.has(z.target())&&O.merge(z)})}),S.length==x.length&&(k=!0),!k||k&&E>
vendor: 2,006 bytes, line 3137
31371){b=S[0],v=b.connectedEdges().length,S.forEach(function(U){U.connectedEdges().length<v&&(v=U.connectedEdges().length,b=U)}),A.push(b.id());var F=m.collection();F.merge(S[0]),S.forEach(function(U){F.merge(U)}),S=[],x=x.difference(F),E++}},"_loop");do $();while(!k);return C&&A.length>0&&C.set("dummy"+(C.size+1),A),I},g.relocateComponent=function(m,y,x){if(!x.fixedNodeConstraint){var C=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY;if(x.quality=="draft"){var R=!0,b=!1,v=void 0;try{for(var k=y.nodeIndexes[Symbol.iterator](),E;!(R=(E=k.next()).done);R=!0){var A=E.value,I=d(A,2),$=I[0],O=I[1],j=x.cy.getElementById($);if(j){var D=j.boundingBox(),P=y.xCoords[O]-D.w/2,F=y.xCoords[O]+D.w/2,U=y.yCoords[O]-D.h/2,z=y.yCoords[O]+D.h/2;P<C&&(C=P),F>w&&(w=F),U<_&&(_=U),z>S&&(S=z)}}}catch(H){b=!0,v=H}finally{try{!R&&k.return&&k.return()}finally{if(b)throw v}}var V=m.x-(w+C)/2,W=m.y-(S+_)/2;y.xCoords=y.xCoords.map(function(H){return H+V}),y.yCoords=y.yCoords.map(function(H){return H+W})}else{Object.keys(y).forEach(function(H){var te=y[H],ie=te.getRect().x,oe=te.getRect().x+te.getRect().width,he=te.getRect().y,pe=te.getRect().y+te.getRect().height;ie<C&&(C=ie),oe>w&&(w=oe),he<_&&(_=he),pe>S&&(S=pe)});var X=m.x-(w+C)/2,J=m.y-(S+_)/2;Object.keys(y).forEach(function(H){var te=y[H];te.setCenter(te.getCenterX()+X,te.getCenterY()+J)})}}},g.calcBoundingBox=function(m,y,x,C){for(var w=Number.MAX_SAFE_INTEGER,_=Number.MIN_SAFE_INTEGER,S=Number.MAX_SAFE_INTEGER,R=Number.MIN_SAFE_INTEGER,b=void 0,v=void 0,k=void 0,E=void 0,A=m.descendants().not(":parent"),I=A.length,$=0;$<I;$++){var O=A[$];b=y[C.get(O.id())]-O.width()/2,v=y[C.get(O.id())]+O.width()/2,k=x[C.get(O.id())]-O.height()/2,E=x[C.get(O.id())]+O.height()/2,w>b&&(w=b),_<v&&(_=v),S>k&&(S=k),R<E&&(R=E)}var j={};return j.topLeftX=w,j.topLeftY=S,j.width=_-w,j.height=R-S,j},g.calcParentsWithoutChildren=function(m,y){var x=m.collection();return y.nodes(":parent").forEach(function(C){var w=!1;
vendor: 9,415 bytes, line 3137
3137C.children().forEach(function(_){_.css("display")!="none"&&(w=!0)}),w||x.merge(C)}),x},l.exports=g}),816:((l,h,u)=>{var d=u(548),p=u(140).CoSELayout,g=u(140).CoSENode,m=u(140).layoutBase.PointD,y=u(140).layoutBase.DimensionD,x=u(140).layoutBase.LayoutConstants,C=u(140).layoutBase.FDLayoutConstants,w=u(140).CoSEConstants,_=s(function(S,R){var b=S.cy,v=S.eles,k=v.nodes(),E=v.edges(),A=void 0,I=void 0,$=void 0,O={};S.randomize&&(A=R.nodeIndexes,I=R.xCoords,$=R.yCoords);var j=s(function(X){return typeof X=="function"},"isFn"),D=s(function(X,J){return j(X)?X(J):X},"optFn"),P=d.calcParentsWithoutChildren(b,v),F=s(f(function X(J,H,te,ie){for(var oe=H.length,he=0;he<oe;he++){var pe=H[he],se=null;pe.intersection(P).length==0&&(se=pe.children());var le=void 0,ue=pe.layoutDimensions({nodeDimensionsIncludeLabels:ie.nodeDimensionsIncludeLabels});if(pe.outerWidth()!=null&&pe.outerHeight()!=null)if(ie.randomize)if(!pe.isParent())le=J.add(new g(te.graphManager,new m(I[A.get(pe.id())]-ue.w/2,$[A.get(pe.id())]-ue.h/2),new y(parseFloat(ue.w),parseFloat(ue.h))));else{var de=d.calcBoundingBox(pe,I,$,A);pe.intersection(P).length==0?le=J.add(new g(te.graphManager,new m(de.topLeftX,de.topLeftY),new y(de.width,de.height))):le=J.add(new g(te.graphManager,new m(de.topLeftX,de.topLeftY),new y(parseFloat(ue.w),parseFloat(ue.h))))}else le=J.add(new g(te.graphManager,new m(pe.position("x")-ue.w/2,pe.position("y")-ue.h/2),new y(parseFloat(ue.w),parseFloat(ue.h))));else le=J.add(new g(this.graphManager));if(le.id=pe.data("id"),le.nodeRepulsion=D(ie.nodeRepulsion,pe),le.paddingLeft=parseInt(pe.css("padding")),le.paddingTop=parseInt(pe.css("padding")),le.paddingRight=parseInt(pe.css("padding")),le.paddingBottom=parseInt(pe.css("padding")),ie.nodeDimensionsIncludeLabels&&(le.labelWidth=pe.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,le.labelHeight=pe.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,le.labelPosVertical=pe.css("text-valign"),le.labelPosHorizontal=pe.css("text-halign")),O[pe.data("id")]=le,isNaN(le.rect.x)&&(le.rect.x=0),isNaN(le.rect.y)&&(le.rect.y=0),se!=null&&se.length>0){var we=void 0;we=te.getGraphManager().add(te.newGraph(),le),X(we,se,te,ie)}}},"G"),"processChildrenList"),U=s(function(X,J,H){for(var te=0,ie=0,oe=0;oe<H.length;oe++){var he=H[oe],pe=O[he.data("source")],se=O[he.data("target")];if(pe&&se&&pe!==se&&pe.getEdgesBetween(se).length==0){var le=J.add(X.newEdge(),pe,se);le.id=he.id(),le.idealLength=D(S.idealEdgeLength,he),le.edgeElasticity=D(S.edgeElasticity,he),te+=le.idealLength,ie++}}S.idealEdgeLength!=null&&(ie>0?w.DEFAULT_EDGE_LENGTH=C.DEFAULT_EDGE_LENGTH=te/ie:j(S.idealEdgeLength)?w.DEFAULT_EDGE_LENGTH=C.DEFAULT_EDGE_LENGTH=50:w.DEFAULT_EDGE_LENGTH=C.DEFAULT_EDGE_LENGTH=S.idealEdgeLength,w.MIN_REPULSION_DIST=C.MIN_REPULSION_DIST=C.DEFAULT_EDGE_LENGTH/10,w.DEFAULT_RADIAL_SEPARATION=C.DEFAULT_EDGE_LENGTH)},"processEdges"),z=s(function(X,J){J.fixedNodeConstraint&&(X.constraints.fixedNodeConstraint=J.fixedNodeConstraint),J.alignmentConstraint&&(X.constraints.alignmentConstraint=J.alignmentConstraint),J.relativePlacementConstraint&&(X.constraints.relativePlacementConstraint=J.relativePlacementConstraint)},"processConstraints");S.nestingFactor!=null&&(w.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=C.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=S.nestingFactor),S.gravity!=null&&(w.DEFAULT_GRAVITY_STRENGTH=C.DEFAULT_GRAVITY_STRENGTH=S.gravity),S.numIter!=null&&(w.MAX_ITERATIONS=C.MAX_ITERATIONS=S.numIter),S.gravityRange!=null&&(w.DEFAULT_GRAVITY_RANGE_FACTOR=C.DEFAULT_GRAVITY_RANGE_FACTOR=S.gravityRange),S.gravityCompound!=null&&(w.DEFAULT_COMPOUND_GRAVITY_STRENGTH=C.DEFAULT_COMPOUND_GRAVITY_STRENGTH=S.gravityCompound),S.gravityRangeCompound!=null&&(w.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=C.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=S.gravityRangeCompound),S.initialEnergyOnIncremental!=null&&(w.DEFAULT_COOLING_FACTOR_INCREMENTAL=C.DEFAULT_COOLING_FACTOR_INCREMENTAL=S.initialEnergyOnIncremental),S.tilingCompareBy!=null&&(w.TILING_COMPARE_BY=S.tilingCompareBy),S.quality=="proof"?x.QUALITY=2:x.QUALITY=0,w.NODE_DIMENSIONS_INCLUDE_LABELS=C.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=S.nodeDimensionsIncludeLabels,w.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=!S.randomize,w.ANIMATE=C.ANIMATE=x.ANIMATE=S.animate,w.TILE=S.tile,w.TILING_PADDING_VERTICAL=typeof S.tilingPaddingVertical=="function"?S.tilingPaddingVertical.call():S.tilingPaddingVertical,w.TILING_PADDING_HORIZONTAL=typeof S.tilingPaddingHorizontal=="function"?S.tilingPaddingHorizontal.call():S.tilingPaddingHorizontal,w.DEFAULT_INCREMENTAL=C.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=!0,w.PURE_INCREMENTAL=!S.randomize,x.DEFAULT_UNIFORM_LEAF_NODE_SIZES=S.uniformNodeDimensions,S.step=="transformed"&&(w.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,w.ENFORCE_CONSTRAINTS=!1,w.APPLY_LAYOUT=!1),S.step=="enforced"&&(w.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,w.ENFORCE_CONSTRAINTS=!0,w.APPLY_LAYOUT=!1),S.step=="cose"&&(w.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,w.ENFORCE_CONSTRAINTS=!1,w.APPLY_LAYOUT=!0),S.step=="all"&&(S.randomize?w.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:w.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,w.ENFORCE_CONSTRAINTS=!0,w.APPLY_LAYOUT=!0),S.fixedNodeConstraint||S.alignmentConstraint||S.relativePlacementConstraint?w.TREE_REDUCTION_ON_INCREMENTAL=!1:w.TREE_REDUCTION_ON_INCREMENTAL=!0;var V=new p,W=V.newGraphManager();return F(W.addRoot(),d.getTopMostNodes(k),V,S),U(V,W,E),z(V,S),V.runLayout(),O},"coseLayout");l.exports={coseLayout:_}}),212:((l,h,u)=>{var d=(function(){function R(b,v){for(var k=0;k<v.length;k++){var E=v[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return f(R,"b"),s(R,"defineProperties"),function(b,v,k){return v&&R(b.prototype,v),k&&R(b,k),b}})();function p(R,b){if(!(R instanceof b))throw new TypeError("Cannot call a class as a function")}f(p,"h"),s(p,"_classCallCheck");var g=u(658),m=u(548),y=u(657),x=y.spectralLayout,C=u(816),w=C.coseLayout,_=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:s(function(R){return 4500},"nodeRepulsion"),idealEdgeLength:s(function(R){return 50},"idealEdgeLength"),edgeElasticity:s(function(R){return .45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:s(function(){},"ready"),stop:s(function(){},"stop")}),S=(function(){function R(b){p(this,R),this.options=g({},_,b)}return f(R,"b"),s(R,"Layout"),d(R,[{key:"run",value:s(function(){var b=this,v=this.options,k=v.cy,E=v.eles,A=[],I=void 0,$=void 0,O=[],j=void 0,D=[];v.fixedNodeConstraint&&(!Array.isArray(v.fixedNodeConstraint)||v.fixedNodeConstraint.length==0)&&(v.fixedNodeConstraint=void 0),v.alignmentConstraint&&(v.alignmentConstraint.vertical&&(!Array.isArray(v.alignmentConstraint.vertical)||v.alignmentConstraint.vertical.length==0)&&(v.alignmentConstraint.vertical=void 0),v.alignmentConstraint.horizontal&&(!Array.isArray(v.alignmentConstraint.horizontal)||v.alignmentConstraint.horizontal.length==0)&&(v.alignmentConstraint.horizontal=void 0)),v.relativePlacementConstraint&&(!Array.isArray(v.relativePlacementConstraint)||v.relativePlacementConstraint.length==0)&&(v.relativePlacementConstraint=void 0);var P=v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint;P&&(v.tile=!1,v.packComponents=!1);var F=void 0,U=!1;if(k.layoutUtilities&&v.packComponents&&(F=k.layoutUtilities("get"),F||(F=k.layoutUtilities()),U=!0),E.nodes().length>0)if(U){var z=m.getTopMostNodes(v.eles.nodes());if(j=m.connectComponents(k,v.eles,z),j.forEach(function(Ie){var Be=Ie.boundingBox();D.push({x:Be.x1+Be.w/2,y:Be.y1+Be.h/2})}),v.randomize&&j.forEach(function(Ie){v.eles=Ie,A.push(x(v))}),v.quality=="default"||v.quality=="proof"){var V=k.collection();if(v.tile){var W=new Map,X=[],J=[],H=0,te={nodeIndexes:W,xCoords:X,yCoords:J},ie=[];if(j.forEach(function(Ie,Be){Ie.edges().length==0&&(Ie.nodes().forEach(function(ke,Qe){V.merge(Ie.nodes()[Qe]),ke.isParent()||(te.nodeIndexes.set(Ie.nodes()[Qe].id(),H++),te.xCoords.push(Ie.nodes()[0].position().x),te.yCoords.push(Ie.nodes()[0].position().y))}),ie.push(Be))}),V.length>1){var oe=V.boundingBox();D.push({x:oe.x1+oe.w/2,y:oe.y1+oe.h/2}),j.push(V),A.push(te);for(var he=ie.length-1;he>=0;he--)j.splice(ie[he],1),A.splice(ie[he],1),D.splice(ie[he],1)}}j.forEach(function(Ie,Be){v.eles=Ie,O.push(w(v,A[Be])),m.relocateComponent(D[Be],O[Be],v)})}else j.forEach(function(Ie,Be){m.relocateComponent(D[Be],A[Be],v)});var pe=new Set;if(j.length>1){var se=[],le=E.filter(function(Ie){return Ie.css("display")=="none"});j.forEach(function(Ie,Be){var ke=void 0;if(v.quality=="draft"&&(ke=A[Be].nodeIndexes),Ie.nodes().not(le).length>0){var Qe={};Qe.edges=[],Qe.nodes=[];var Pe=void 0;Ie.nodes().not(le).forEach(function(ht){if(v.quality=="draft")if(!ht.isParent())Pe=ke.get(ht.id()),Qe.nodes.push({x:A[Be].xCoords[Pe]-ht.boundingbox().w/2,y:A[Be].yCoords[Pe]-ht.boundingbox().h/2,width:ht.boun
vendor: 6,218 bytes, line 3137
3137dingbox().w,height:ht.boundingbox().h});else{var Xe=m.calcBoundingBox(ht,A[Be].xCoords,A[Be].yCoords,ke);Qe.nodes.push({x:Xe.topLeftX,y:Xe.topLeftY,width:Xe.width,height:Xe.height})}else O[Be][ht.id()]&&Qe.nodes.push({x:O[Be][ht.id()].getLeft(),y:O[Be][ht.id()].getTop(),width:O[Be][ht.id()].getWidth(),height:O[Be][ht.id()].getHeight()})}),Ie.edges().forEach(function(ht){var Xe=ht.source(),dt=ht.target();if(Xe.css("display")!="none"&&dt.css("display")!="none")if(v.quality=="draft"){var at=ke.get(Xe.id()),kt=ke.get(dt.id()),Le=[],lt=[];if(Xe.isParent()){var ve=m.calcBoundingBox(Xe,A[Be].xCoords,A[Be].yCoords,ke);Le.push(ve.topLeftX+ve.width/2),Le.push(ve.topLeftY+ve.height/2)}else Le.push(A[Be].xCoords[at]),Le.push(A[Be].yCoords[at]);if(dt.isParent()){var tt=m.calcBoundingBox(dt,A[Be].xCoords,A[Be].yCoords,ke);lt.push(tt.topLeftX+tt.width/2),lt.push(tt.topLeftY+tt.height/2)}else lt.push(A[Be].xCoords[kt]),lt.push(A[Be].yCoords[kt]);Qe.edges.push({startX:Le[0],startY:Le[1],endX:lt[0],endY:lt[1]})}else O[Be][Xe.id()]&&O[Be][dt.id()]&&Qe.edges.push({startX:O[Be][Xe.id()].getCenterX(),startY:O[Be][Xe.id()].getCenterY(),endX:O[Be][dt.id()].getCenterX(),endY:O[Be][dt.id()].getCenterY()})}),Qe.nodes.length>0&&(se.push(Qe),pe.add(Be))}});var ue=F.packComponents(se,v.randomize).shifts;if(v.quality=="draft")A.forEach(function(Ie,Be){var ke=Ie.xCoords.map(function(Pe){return Pe+ue[Be].dx}),Qe=Ie.yCoords.map(function(Pe){return Pe+ue[Be].dy});Ie.xCoords=ke,Ie.yCoords=Qe});else{var de=0;pe.forEach(function(Ie){Object.keys(O[Ie]).forEach(function(Be){var ke=O[Ie][Be];ke.setCenter(ke.getCenterX()+ue[de].dx,ke.getCenterY()+ue[de].dy)}),de++})}}}else{var we=v.eles.boundingBox();if(D.push({x:we.x1+we.w/2,y:we.y1+we.h/2}),v.randomize){var De=x(v);A.push(De)}v.quality=="default"||v.quality=="proof"?(O.push(w(v,A[0])),m.relocateComponent(D[0],O[0],v)):m.relocateComponent(D[0],A[0],v)}var Ge=s(function(Ie,Be){if(v.quality=="default"||v.quality=="proof"){typeof Ie=="number"&&(Ie=Be);var ke=void 0,Qe=void 0,Pe=Ie.data("id");return O.forEach(function(Xe){Pe in Xe&&(ke={x:Xe[Pe].getRect().getCenterX(),y:Xe[Pe].getRect().getCenterY()},Qe=Xe[Pe])}),v.nodeDimensionsIncludeLabels&&(Qe.labelWidth&&(Qe.labelPosHorizontal=="left"?ke.x+=Qe.labelWidth/2:Qe.labelPosHorizontal=="right"&&(ke.x-=Qe.labelWidth/2)),Qe.labelHeight&&(Qe.labelPosVertical=="top"?ke.y+=Qe.labelHeight/2:Qe.labelPosVertical=="bottom"&&(ke.y-=Qe.labelHeight/2))),ke==null&&(ke={x:Ie.position("x"),y:Ie.position("y")}),{x:ke.x,y:ke.y}}else{var ht=void 0;return A.forEach(function(Xe){var dt=Xe.nodeIndexes.get(Ie.id());dt!=null&&(ht={x:Xe.xCoords[dt],y:Xe.yCoords[dt]})}),ht==null&&(ht={x:Ie.position("x"),y:Ie.position("y")}),{x:ht.x,y:ht.y}}},"getPositions");if(v.quality=="default"||v.quality=="proof"||v.randomize){var be=m.calcParentsWithoutChildren(k,E),qe=E.filter(function(Ie){return Ie.css("display")=="none"});v.eles=E.not(qe),E.nodes().not(":parent").not(qe).layoutPositions(b,v,Ge),be.length>0&&be.forEach(function(Ie){Ie.position(Ge(Ie))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),R})();l.exports=S}),657:((l,h,u)=>{var d=u(548),p=u(140).layoutBase.Matrix,g=u(140).layoutBase.SVD,m=s(function(y){var x=y.cy,C=y.eles,w=C.nodes(),_=C.nodes(":parent"),S=new Map,R=new Map,b=new Map,v=[],k=[],E=[],A=[],I=[],$=[],O=[],j=[],D=void 0,P=void 0,F=1e8,U=1e-9,z=y.piTol,V=y.samplingType,W=y.nodeSeparation,X=void 0,J=s(function(){for(var Q=0,xe=0,ae=!1;xe<X;){Q=Math.floor(Math.random()*P),ae=!1;for(var _e=0;_e<xe;_e++)if(A[_e]==Q){ae=!0;break}if(!ae)A[xe]=Q,xe++;else continue}},"randomSampleCR"),H=s(function(Q,xe,ae){for(var _e=[],Se=0,Je=0,Re=0,et=void 0,ze=[],Ke=0,We=1,nt=0;nt<P;nt++)ze[nt]=F;for(_e[Je]=Q,ze[Q]=0;Je>=Se;){Re=_e[Se++];for(var Te=v[Re],bt=0;bt<Te.length;bt++)et=R.get(Te[bt]),ze[et]==F&&(ze[et]=ze[Re]+1,_e[++Je]=et);$[Re][xe]=ze[Re]*W}if(ae){for(var Ae=0;Ae<P;Ae++)$[Ae][xe]<I[Ae]&&(I[Ae]=$[Ae][xe]);for(var ft=0;ft<P;ft++)I[ft]>Ke&&(Ke=I[ft],We=ft)}return We},"BFS"),te=s(function(Q){var xe=void 0;if(Q){xe=Math.floor(Math.random()*P),D=xe;for(var ae=0;ae<P;ae++)I[ae]=F;for(var _e=0;_e<X;_e++)A[_e]=xe,xe=H(xe,_e,Q)}else{J();for(var Se=0;Se<X;Se++)H(A[Se],Se,Q,!1)}for(var Je=0;Je<P;Je++)for(var Re=0;Re<X;Re++)$[Je][Re]*=$[Je][Re];for(var et=0;et<X;et++)O[et]=[];for(var ze=0;ze<X;ze++)for(var Ke=0;Ke<X;Ke++)O[ze][Ke]=$[A[Ke]][ze]},"allBFS"),ie=s(function(){for(var Q=g.svd(O),xe=Q.S,ae=Q.U,_e=Q.V,Se=xe[0]*xe[0]*xe[0],Je=[],Re=0;Re<X;Re++){Je[Re]=[];for(var et=0;et<X;et++)Je[Re][et]=0,Re==et&&(Je[Re][et]=xe[Re]/(xe[Re]*xe[Re]+Se/(xe[Re]*xe[Re])))}j=p.multMat(p.multMat(_e,Je),p.transpose(ae))},"sample"),oe=s(function(){for(var Q=void 0,xe=void 0,ae=[],_e=[],Se=[],Je=[],Re=0;Re<P;Re++)ae[Re]=Math.random(),_e[Re]=Math.random();ae=p.normalize(ae),_e=p.normalize(_e);for(var et=0,ze=U,Ke=U,We=void 0;;){et++;for(var nt=0;nt<P;nt++)Se[nt]=ae[nt];if(ae=p.multGamma(p.multL(p.multGamma(Se),$,j)),Q=p.dotProduct(Se,ae),ae=p.normalize(ae),ze=p.dotProduct(Se,ae),We=Math.abs(ze/Ke),We<=1+z&&We>=1)break;Ke=ze}for(var Te=0;Te<P;Te++)Se[Te]=ae[Te];for(et=0,Ke=U;;){et++;for(var bt=0;bt<P;bt++)Je[bt]=_e[bt];if(Je=p.minusOp(Je,p.multCons(Se,p.dotProduct(Se,Je))),_e=p.multGamma(p.multL(p.multGamma(Je),$,j)),xe=p.dotProduct(Je,_e),_e=p.normalize(_e),ze=p.dotProduct(Je,_e),We=Math.abs(ze/Ke),We<=1+z&&We>=1)break;Ke=ze}for(var Ae=0;Ae<P;Ae++)Je[Ae]=_e[Ae];k=p.multCons(Se,Math.sqrt(Math.abs(Q))),E=p.multCons(Je,Math.sqrt(Math.abs(xe)))},"powerIteration");d.connectComponents(x,C,d.getTopMostNodes(w),S),_.forEach(function(Q){d.connectComponents(x,C,d.getTopMostNodes(Q.descendants().intersection(C)),S)});for(var he=0,pe=0;pe<w.length;pe++)w[pe].isParent()||R.set(w[pe].id(),he++);var se=!0,le=!1,ue=void 0;try{for(var de=S.keys()[Symbol.iterator](),we;!(se=(we=de.next()).done);se=!0){var De=we.value;R.set(De,he++)}}catch(Q){le=!0,ue=Q}finally{try{!se&&de.return&&de.return()}finally{if(le)throw ue}}for(var Ge=0;Ge<R.size;Ge++)v[Ge]=[];_.forEach(function(Q){for(var xe=Q.children().intersection(C);xe.nodes(":childless").length==0;)xe=xe.nodes()[0].children().intersection(C);var ae=0,_e=xe.nodes(":childless")[0].connectedEdges().length;
vendor: 8,404 bytes, line 3137
3137xe.nodes(":childless").forEach(function(Se,Je){Se.connectedEdges().length<_e&&(_e=Se.connectedEdges().length,ae=Je)}),b.set(Q.id(),xe.nodes(":childless")[ae].id())}),w.forEach(function(Q){var xe=void 0;Q.isParent()?xe=R.get(b.get(Q.id())):xe=R.get(Q.id()),Q.neighborhood().nodes().forEach(function(ae){C.intersection(Q.edgesWith(ae)).length>0&&(ae.isParent()?v[xe].push(b.get(ae.id())):v[xe].push(ae.id()))})});var be=s(function(Q){var xe=R.get(Q),ae=void 0;S.get(Q).forEach(function(_e){x.getElementById(_e).isParent()?ae=b.get(_e):ae=_e,v[xe].push(ae),v[R.get(ae)].push(Q)})},"_loop"),qe=!0,Ie=!1,Be=void 0;try{for(var ke=S.keys()[Symbol.iterator](),Qe;!(qe=(Qe=ke.next()).done);qe=!0){var Pe=Qe.value;be(Pe)}}catch(Q){Ie=!0,Be=Q}finally{try{!qe&&ke.return&&ke.return()}finally{if(Ie)throw Be}}P=R.size;var ht=void 0;if(P>2){X=P<y.sampleSize?P:y.sampleSize;for(var Xe=0;Xe<P;Xe++)$[Xe]=[];for(var dt=0;dt<X;dt++)j[dt]=[];return y.quality=="draft"||y.step=="all"?(te(V),ie(),oe(),ht={nodeIndexes:R,xCoords:k,yCoords:E}):(R.forEach(function(Q,xe){k.push(x.getElementById(xe).position("x")),E.push(x.getElementById(xe).position("y"))}),ht={nodeIndexes:R,xCoords:k,yCoords:E}),ht}else{var at=R.keys(),kt=x.getElementById(at.next().value),Le=kt.position(),lt=kt.outerWidth();if(k.push(Le.x),E.push(Le.y),P==2){var ve=x.getElementById(at.next().value),tt=ve.outerWidth();k.push(Le.x+lt/2+tt/2+y.idealEdgeLength),E.push(Le.y)}return ht={nodeIndexes:R,xCoords:k,yCoords:E},ht}},"spectralLayout");l.exports={spectralLayout:m}}),579:((l,h,u)=>{var d=u(212),p=s(function(g){g&&g("layout","fcose",d)},"register");typeof cytoscape<"u"&&p(cytoscape),l.exports=p}),140:(l=>{l.exports=r})},n={};function a(l){var h=n[l];if(h!==void 0)return h.exports;var u=n[l]={exports:{}};return i[l](u,u.exports,a),u.exports}f(a,"i"),s(a,"__webpack_require__");var o=a(579);return o})()})}),V1,ob,r0t=Y(()=>{"use strict";Pu(),V1=s(e=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),ob={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:V1('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:V1('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:V1('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:V1('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:V1('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:CM,blank:{body:V1("")}}}}),i0t,n0t,a0t,s0t,_6t=Y(()=>{"use strict";vr(),nl(),Pu(),gi(),r0t(),zce(),wr(),i0t=s(async function(e,t,r,i){let n=r.getConfigField("padding"),a=r.getConfigField("iconSize"),o=a/2,l=a/6,h=l/2;await Promise.all(t.edges().map(async u=>{var I,$;let{source:d,sourceDir:p,sourceArrow:g,sourceGroup:m,target:y,targetDir:x,targetArrow:C,targetGroup:w,label:_}=Fce(u),{x:S,y:R}=u[0].sourceEndpoint(),{x:b,y:v}=u[0].midpoint(),{x:k,y:E}=u[0].targetEndpoint(),A=n+4;if(m&&(eo(p)?S+=p==="L"?-A:A:R+=p==="T"?-A:A+18),w&&(eo(x)?k+=x==="L"?-A:A:E+=x==="T"?-A:A+18),!m&&((I=r.getNode(d))==null?void 0:I.type)==="junction"&&(eo(p)?S+=p==="L"?o:-o:R+=p==="T"?o:-o),!w&&(($=r.getNode(y))==null?void 0:$.type)==="junction"&&(eo(x)?k+=x==="L"?o:-o:E+=x==="T"?o:-o),u[0]._private.rscratch){let O=e.insert("g");if(O.insert("path").attr("d",`M ${S},${R} L ${b},${v} L${k},${E} `).attr("class","edge").attr("id",`${i}-${Dg(d,y,{prefix:"L"})}
3137`),g){let j=eo(p)?Gw[p](S,l):S-h,D=Hd(p)?Gw[p](R,l):R-h;O.insert("polygon").attr("points",Bce[p](l)).attr("transform",`translate(${j},${D})`).attr("class","arrow")}if(C){let j=eo(x)?Gw[x](k,l):k-h,D=Hd(x)?Gw[x](E,l):E-h;O.insert("polygon").attr("points",Bce[x](l)).attr("transform",`translate(${j},${D})`).attr("class","arrow")}if(_){let j=wI(p,x)?"XY":eo(p)?"X":"Y",D=0;j==="X"?D=Math.abs(S-k):j==="Y"?D=Math.abs(R-E)/1.5:D=Math.abs(S-k)/2;let P=O.append("g");if(await qs(P,_,{useHtmlLabels:!1,width:D,classes:"architecture-service-label"},Ue()),P.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),j==="X")P.attr("transform","translate("+b+", "+v+")");else if(j==="Y")P.attr("transform","translate("+b+", "+v+") rotate(-90)");else if(j==="XY"){let F=CI(p,x);if(F&&jpt(F)){let U=P.node().getBoundingClientRect(),[z,V]=Vpt(F);P.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*z*V*45})`);let W=P.node().getBoundingClientRect();P.attr("transform",` 3138 translate(${b}, ${v-U.height/2}) 3139 translate(${z*W.width/2}, ${V*W.height/2}) 3140 rotate(${-1*z*V*45}, 0, ${U.height/2}) 3141 `)}}}}}))},"drawEdges"),n0t=s(async function(e,t,r,i){let n=r.getConfigField("padding")*.75,a=r.getConfigField("fontSize"),o=r.getConfigField("iconSize")/2;await Promise.all(t.nodes().map(async l=>{let h=U1(l);if(h.type==="group"){let{h:u,w:d,x1:p,y1:g}=l.boundingBox(),m=e.append("rect");m.attr("id",`${i}-group-${h.id}`).attr("x",p+o).attr("y",g+o).attr("width",d).attr("height",u).attr("class","node-bkg");let y=e.append("g"),x=p,C=g;if(h.icon){let w=y.append("g");w.html(`<g>${await Bu(h.icon,{height:n,width:n,fallbackPrefix:ob.prefix})}</g>`),w.attr("transform","translate("+(x+o+1)+", "+(C+o+1)+")"),x+=n,C+=a/2-1-2}if(h.label){let w=y.append("g");await qs(w,h.label,{useHtmlLabels:!1,width:d,classes:"architecture-service-label"},Ue()),w.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),w.attr("transform","translate("+(x+o+4)+", "+(C+o+2)+")")}r.setElementForId(h.id,m)}}))},"drawGroups"),a0t=s(async function(e,t,r,i){var a;let n=Ue();for(let o of r){let l=t.append("g"),h=e.getConfigField("iconSize");if(o.title){let g=l.append("g");await qs(g,o.title,{useHtmlLabels:!1,width:h*1.5,classes:"architecture-service-label"},n),g.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),g.attr("transform","translate("+h/2+", "+h+")")}let u=l.append("g");if(o.icon)u.html(`<g>${await Bu(o.icon,{height:h,width:h,fallbackPrefix:ob.prefix})}</g>`);else if(o.iconText){u.html(`<g>${await Bu("blank",{height:h,width:h,fallbackPrefix:ob.prefix})}</g>`);let g=u.append("g").append("foreignObject").attr("width",h).attr("height",h).append("div").attr("class","node-icon-text").attr("style",`height: ${h}px;`).append("div").html(Ei(o.iconText,n)),m=(a=parseInt(window.getComputedStyle(g.node(),null).getPropertyValue("font-size").replace(/\D/g,"")))!=null?a:16;g.attr("style",`-webkit-line-clamp: ${Math.floor((h-2)/m)};`)}else u.append("path").attr("class","node-bkg").attr("id",`${i}-node-${o.id}`).attr("d",`M0,${h} V5 Q0,0 5,0 H${h-5} Q${h},0 ${h},5 V${h} Z`);l.attr("id",`${i}-service-${o.id}`).attr("class","architecture-service");let{width:d,height:p}=l.node().getBBox();o.width=d,o.height=p,e.setElementForId(o.id,l)}return 0},"drawServices"),s0t=s(function(e,t,r,i){r.forEach(n=>{let a=t.append("g"),o=e.getConfigField("iconSize");a.append("g").append("rect").attr("id",`${i}-node-${n.id}`).attr("fill-opacity","0").attr("width",o).attr("height",o),a.attr("class","architecture-junction");let{width:l,height:h}=a._groups[0][0].getBBox();a.width=l,a.height=h,e.setElementForId(n.id,a)})},"drawJunctions")});function o0t(e,t,r){e.forEach(i=>{t.add({group:"nodes",data:{type:"service",id:i.id,icon:i.icon,label:i.title,parent:i.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}f(o0t,"z3t");function l0t(e,t,r){e.forEach(i=>
3141{t.add({group:"nodes",data:{type:"junction",id:i.id,parent:i.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}f(l0t,"G3t");function c0t(e,t){t.nodes().map(r=>{let i=U1(r);i.type!=="group"&&(i.x=r.position().x,i.y=r.position().y,e.getElementById(i.id).attr("transform","translate("+(i.x||0)+","+(i.y||0)+")"))})}f(c0t,"V3t");function h0t(e,t){e.forEach(r=>{t.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}f(h0t,"W3t");function u0t(e,t){e.forEach(r=>{let{lhsId:i,rhsId:n,lhsInto:a,lhsGroup:o,rhsInto:l,lhsDir:h,rhsDir:u,rhsGroup:d,title:p}=r,g=wI(r.lhsDir,r.rhsDir)?"segments":"straight",m={id:`${i}-${n}`,label:p,source:i,sourceDir:h,sourceArrow:a,sourceGroup:o,sourceEndpoint:h==="L"?"0 50%":h==="R"?"100% 50%":h==="T"?"50% 0":"50% 100%",target:n,targetDir:u,targetArrow:l,targetGroup:d,targetEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%"};t.add({group:"edges",data:m,classes:g})})}f(u0t,"q3t");function d0t(e,t,r){let i=s((l,h)=>Object.entries(l).reduce((u,[d,p])=>{var y,x,C;let g=0,m=Object.entries(p);if(m.length===1)return u[d]=m[0][1],u;for(let w=0;w<m.length-1;w++)for(let _=w+1;_<m.length;_++){let[S,R]=m[w],[b,v]=m[_];if(((y=r[S])==null?void 0:y[b])===h)(x=u[d])!=null||(u[d]=[]),u[d]=[...u[d],...R,...v];else if(S==="default"||b==="default")(C=u[d])!=null||(u[d]=[]),u[d]=[...u[d],...R,...v];else{let k=`${d}-${g++}`;u[k]=R;let E=`${d}-${g++}`;u[E]=v}}return u},{}),"flattenAlignments"),n=t.map(l=>{let h={},u={};return Object.entries(l).forEach(([d,[p,g]])=>{var y,x,C,w,_,S,R,b;let m=(x=(y=e.getNode(d))==null?void 0:y.in)!=null?x:"default";(C=h[g])!=null||(h[g]={}),(_=(w=h[g])[m])!=null||(w[m]=[]),h[g][m].push(d),(S=u[p])!=null||(u[p]={}),(b=(R=u[p])[m])!=null||(R[m]=[]),u[p][m].push(d)}),{horiz:Object.values(i(h,"horizontal")).filter(d=>d.length>1),vert:Object.values(i(u,"vertical")).filter(d=>d.length>1)}}),[a,o]=n.reduce(([l,h],{horiz:u,vert:d})=>[[...l,...u],[...h,...d]],[[],[]]);return{horizontal:a,vertical:o}}f(d0t,"U3t");function p0t(e,t){let r=[],i=s(a=>`${a[0]},${a[1]}`,"posToStr"),n=s(a=>a.split(",").map(o=>parseInt(o)),"strToPos");return e.forEach(a=>{let o=Object.fromEntries(Object.entries(a).map(([d,p])=>[i(p),d])),l=[i([0,0])],h={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;l.length>0;){let d=l.shift();if(d){h[d]=1;let p=o[d];if(p){let g=n(d);Object.entries(u).forEach(([m,y])=>{let x=i([g[0]+y[0],g[1]+y[1]]),C=o[x];C&&!h[x]&&(l.push(x),r.push({[$ce[m]]:C,[$ce[qpt(m)]]:p,gap:1.5*t.getConfigField("iconSize")}))})}}}}),r}f(p0t,"H3t");function g0t(e,t,r,i,n,{spatialMaps:a,groupAlignments:o}){return new Promise(l=>{let h=Lt("body").append("div").attr("id","cy").attr("style","display:none"),u=Oc({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${n.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${n.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});h.remove(),h0t(r,u),o0t(e,u,n),l0t(t,u,n),u0t(i,u);let d=d0t(n,a,o),p=p0t(a,n),g=n.getConfigField("iconSize"),m=n.getConfigField("idealEdgeLengthMultiplier")*g,y=.5*g,x=n.getConfigField("edgeElasticity"),C=u.layout({name:"fcose",quality:"proof",randomize:n.getConfigField("randomize"),nodeSeparation:n.getConfigField("nodeSeparation"),numIter:n.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(w){let[_,S]=w.connectedNodes(),{parent:R}=U1(_),{parent:b}=U1(S);return R===b?m:y},edgeElasticity(w){let[_,S]=w.connectedNodes(),{parent:R}=U1(_),{parent:b}=U1(S);return R===b?x:.001},alignmentConstraint:d,relativePlacementConstraint:p});C.one("layoutstop",()=>{var _;function w(S,R,b,v){let k,E,{x:A,y:I}=S,{x:$,y:O}=R;E=(v-I+(A-b)*(I-O)/(A-$))/Math.sqrt(1+Math.pow((I-O)/(A-$),2)),k=Math.sqrt(Math.pow(v-I,2)+Math.pow(b-A,2)-Math.pow(E,2));let j=Math.sqrt(Math.pow($-A,2)+Math.pow(O-I,2));k=k/j;let D=($-A)*(v-I)-(O-I)*(b-A);switch(!0){case D>=0:D=1;break;case D<0:D=-1;break}
3141let P=($-A)*(b-A)+(O-I)*(v-I);switch(!0){case P>=0:P=1;break;case P<0:P=-1;break}return E=Math.abs(E)*D,k=k*P,{distances:E,weights:k}}f(w,"x"),s(w,"getSegmentWeights"),u.startBatch();for(let S of Object.values(u.edges()))if((_=S.data)!=null&&_.call(S)){let{x:R,y:b}=S.source().position(),{x:v,y:k}=S.target().position();if(R!==v&&b!==k){let E=S.sourceEndpoint(),A=S.targetEndpoint(),{sourceDir:I}=Fce(S),[$,O]=Hd(I)?[E.x,A.y]:[A.x,E.y],{weights:j,distances:D}=w(E,A,$,O);S.style("segment-distances",D),S.style("segment-weights",j)}}u.endBatch(),C.run()}),C.run(),u.ready(w=>{ge.info("Ready",w),l(u)})})}f(g0t,"Y3t");var f0t,m0t,y0t,A6t=Y(()=>{"use strict";Vqe(),f0t=_o(S6t(),1),ui(),jt(),Pu(),Ho(),Bn(),r0t(),zce(),_6t(),SM([{name:ob.prefix,icons:ob}]),Oc.use(f0t.default),s(o0t,"addServices"),s(l0t,"addJunctions"),s(c0t,"positionNodes"),s(h0t,"addGroups"),s(u0t,"addEdges"),s(d0t,"getAlignments"),s(p0t,"getRelativeConstraints"),s(g0t,"layoutArchitecture"),m0t=s(async(e,t,r,i)=>{let n=i.db;n.setDiagramId(t);let a=n.getServices(),o=n.getJunctions(),l=n.getGroups(),h=n.getEdges(),u=n.getDataStructures(),d=Co(t),p=d.append("g");p.attr("class","architecture-edges");let g=d.append("g");g.attr("class","architecture-services");let m=d.append("g");m.attr("class","architecture-groups"),await a0t(n,g,a,t),s0t(n,g,o,t);let y=await g0t(a,o,l,h,n,u);await i0t(p,y,n,t),await n0t(m,y,n,t),c0t(n,y),fg(void 0,d,n.getConfigField("padding"),n.getConfigField("useMaxWidth"))},"draw"),y0t={draw:m0t}}),v0t={};Jr(v0t,{diagram:f(()=>b0t,"diagram")});var b0t,L6t=Y(()=>{"use strict";C6t(),Kpt(),E6t(),A6t(),b0t={parser:jce,get db(){return new qce},renderer:y0t,styles:Jpt}}),Gce,Uce,EI,Vce,R6t=Y(()=>{"use strict";Gce="position frame",Uce="frame positioned",EI="position relation",Vce="relation positioned"});function x0t(){AI={}}f(x0t,"rEt");function k0t(){let e=V0t,{ast:t}=AI,r=Wce();if(!t)throw new Error("No data for EventModel");return t.frames.forEach((i,n)=>{let a=A0t(i,t.dataEntities,r);e=_I(e,{$kind:Gce,index:n,frame:i,textProps:a});let o;M0t(i)?(ge.debug("source frame",i.sourceFrames),o=t.frames.filter(l=>i.sourceFrames.some(h=>h.$refText===l.name)),o.forEach(l=>{e=_I(e,{$kind:EI,index:n,frame:i,sourceFrame:l})})):e=_I(e,{$kind:EI,index:n,frame:i})}),e=_r(Tt({},e),{sortedSwimlanesArray:Hce(e.swimlanes)}),e}f(k0t,"aEt");function T0t(e){AI.ast=e}f(T0t,"sEt");function Wce(){return ji}f(Wce,"zRe");function w0t(e){let t=e.split(".");if(t.length===2)return t[0]}f(w0t,"lEt");function C0t(e){let t=e.split(".");return t.length===2?t[1]:e}f(C0t,"cEt");function E0t(e,t){if(!(!t||t.length===0))return Object.values(e).find(r=>r.namespace===t)}f(E0t,"uEt");function SI(e,t,r){return Math.max(t,...Object.keys(e).filter(i=>{let n=Number.parseInt(i);return n>t&&n<r}).map(i=>Number.parseInt(i)))+1}f(SI,"Kq");function S0t(e,t){let r=w0t(e.entityIdentifier),i=E0t(t,r);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||ji.labelUiAutomation}:r?{index:SI(t,0,100),label:ji.labelUiAutomationPrefix+r}:{index:0,label:ji.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||ji.labelCommandReadModel}:r?{index:SI(t,100,200),label:ji.labelCommandReadModelPrefix+r}:{index:100,label:ji.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||ji.labelEvents}:r?{index:SI(t,200,300),label:ji.labelEventsPrefix+r}:{index:200,label:ji.labelEvents}}}f(S0t,"hEt");function _0t(e){var r,i,n,a,o,l,h,u,d,p;let{themeVariables:t}=Ir();switch(e.modelEntityType){case"ui":return{fill:(r=t.emUiFill)!=null?r:"white",stroke:(i=t.emUiStroke)!=null?i:"#dbdada"};case"pcr":case"processor":return{fill:(n=t.emProcessorFill)!=null?n:"#edb3f6",stroke:(a=t.emProcessorStroke)!=null?a:"#b88cbf"};case"rmo":case"readmodel":return{fill:(o=t.emReadModelFill)!=null?o:"#d3f1a2",stroke:(l=t.emReadModelStroke)!=null?l:"#a3b732"};case"cmd":case"command":return{fill:(h=t.emCommandFill)!=null?h:"#bcd6fe",stroke:(u=t.emCommandStroke)!=null?u:"#679ac3"};case"evt":case"event":return{fill:(d=t.emEventFill)!=null?d:"#ffb778",stroke:(p=t.emEventStroke)!=null?p:"#c19a0f"};default:return{fill:"red",stroke:"black"}}}f(_0t,"dEt");function A0t(e,t,r){var m;let i=Ir(),n=Ei((m=C0t(e.entityIdentifier))!=null?m:"",i),a,o={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},l=`<b>${ty(n,r.textMaxWidth,o)}</b>`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf("{")+1),a=a.substring(0,a.lastIndexOf("}")-1),a=Ei(a,i),a=ty(a,r.textMaxWidth,o),a=a.replaceAll(" "," ")),e.dataReference){let y=t.find(x=>{var C;return x.name===((C=e.dataReference)==null?void 0:C.$refText)});y&&(a=y.dataBlockValue,a=a.substring(a.indexOf(`{ 3142`)+2),a=a.substring(0,a.lastIndexOf("}")-1),a=Ei(a,i),a=ty(a,r.textMaxWidth,o),a=a.replaceAll(" "," "),a+="<br/>")}let h=a!==void 0;h&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${r.textMaxWidth}px">${a}</code>`);let u={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},d=d4(l,u),p=h?d.width/3:d.width,g={content:l,width:p,height:d.height};return ge.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}f(A0t,"fEt");function L0t(e,t){let r=t,i=_0t(r.frame),n={width:r.textProps.width+2*ji.boxTextPadding,height:r.textProps.height+2*ji.boxTextPadding};return[{$kind:Uce,frame:r.frame,index:r.index,visual:i,dimension:n,textProps:r.textProps}]}f(L0t,"pEt");function R0t(e,t,r){return t===void 0?ji.contentStartX:t.index===e.index&&e.r?e.r+ji.boxPadding:r===void 0?ji.contentStartX:r.r-ji.boxOverlap+ji.boxPadding}f(R0t,"mEt");function I0t(e,t){let r=[...e.map(i=>i.r),t];return Math.max(...r)}f(I0t,"gEt");function Hce(e){return Object.values(e).sort((t,r)=>t.index-r.index)}f(Hce,"GRe");function D0t(e,t){let r=t,i=S0t(r.frame,e.swimlanes),n;i.index in e.swimlanes?n=e.swimlanes[i.index]:n={index:i.index,label:i.label,r:0,y:i.index*ji.swimlaneMinHeight+ji.swimlaneGap,height:ji.swimlaneMinHeight,maxHeight:ji.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(ji.boxMinWidth,Math.min(ji.boxMaxWidth,r.dimension.width))+2*ji.boxPadding,height:Math.max(ji.boxMinHeight,Math.min(ji.boxMaxHeight,r.dimension.height))+2*ji.boxPadding},h=R0t(n,o,a),u=h+l.width+ji.boxPadding,d=I0t(Object.values(e.swimlanes),u);n.r=h+l.width,n.maxHeight=Math.max(n.maxHeight,l.height),n.height=Math.max(ji.swimlaneMinHeight,n.maxHeight)+2*ji.swimlanePadding;let p={x:h,y:ji.swimlanePadding+n.y,r:u,dimension:l,leftSibling:!1,swimlane:n,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},g=_r(Tt({},e),{boxes:[...e.boxes,p],swimlanes:_r(Tt({},e.swimlanes),{[`${n.index}`]:n}),previousSwimlaneNumber:i.index,previousFrame:r.frame,maxR:d}),m=Hce(g.swimlanes);m.length>0&&(m[0].y=0);for(let y=1;y<m.length;y++){let x=m[y],C=m[y-1];x.y=C.y+C.height+ji.swimlaneGap}return g}f(D0t,"yEt");function N0t(e,t){return e===0&&t.sourceFrames.length===0}f(N0t,"vEt");function M0t(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}f(M0t,"xEt");function Yce(e,t){if(t!=null)return e.find(r=>r.frame.name===t.name)}f(Yce,"$Re");function O0t(e,t,r){if(!(r<0))for(let i=r;i>=0;i--){let n=e[i];if(n.swimlane.index!==t)return n}}f(O0t,"bEt");function $0t(e,t){let r=t;if(wte(r.frame)||N0t(r.index,r.frame))return[];let i=Yce(e.boxes,r.frame);if(i===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let n;
3142return r.sourceFrame?n=Yce(e.boxes,r.sourceFrame):n=O0t(e.boxes,i.swimlane.index,r.index-1),n===void 0?[]:[{$kind:Vce,frame:r.frame,index:r.index,sourceBox:n,targetBox:i}]}f($0t,"TEt");function B0t(e,t){let r=t,i={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return _r(Tt({},e),{relations:[...e.relations,i]})}f(B0t,"CEt");function P0t(e,t){let r=W0t[t.$kind];if(r==null)return[];let i=r(e,t);return ge.debug("decided events",i),i}f(P0t,"SEt");function F0t(e,t){let r=t.reduce((i,n)=>{let a=H0t[n.$kind];return a==null?i:a(i,n)},e);return ge.debug("evolve events",{state:e,newState:r,events:t}),r}f(F0t,"EEt");function _I(e,t){let r=P0t(e,t);return F0t(e,r)}f(_I,"Zq");var z0t,q0t,j0t,G0t,U0t,AI,ji,V0t,W0t,H0t,LI,Y0t=Y(()=>{"use strict";jt(),wr(),wr(),ti(),En(),gi(),rs(),Xc(),R6t(),z0t=s(function(e){ge.debug("options str",e)},"setOptions"),q0t=s(function(){return{}},"getOptions"),j0t=s(function(){x0t(),Tn()},"clear"),s(x0t,"reset"),G0t=bi.eventmodeling,U0t=s(()=>da(Tt(Tt({},G0t),Ir().eventmodeling)),"getConfig"),AI={},s(k0t,"getState"),s(T0t,"setAst"),ji={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "},s(Wce,"getDiagramProps"),V0t={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]},s(w0t,"extractNamespace"),s(C0t,"extractName"),s(E0t,"findSwimlaneByNamespace"),s(SI,"findNextAvailableIndex"),s(S0t,"calculateSwimlaneProps"),s(_0t,"calculateEntityVisualProps"),s(A0t,"calculateTextProps"),s(L0t,"decidePositionFrame"),s(R0t,"calculateX"),s(I0t,"calculateMaxRight"),s(Hce,"sortedSwimlanesArray"),s(D0t,"evolveFramePositioned"),s(N0t,"isFirstFrame"),s(M0t,"hasSourceFrame"),s(Yce,"findBoxByFrame"),s(O0t,"findBoxByLineIndex"),s($0t,"decidePositionRelation"),s(B0t,"evolveRelationPositioned"),W0t={[Gce]:L0t,[EI]:$0t},H0t={[Uce]:D0t,[Vce]:B0t}
3142,s(P0t,"decide"),s(F0t,"evolve"),s(_I,"dispatch"),LI={getConfig:U0t,setOptions:z0t,getOptions:q0t,clear:j0t,setAccTitle:wn,getAccTitle:Pn,getAccDescription:zn,setAccDescription:Fn,setDiagramTitle:qn,getDiagramTitle:Cn,setAst:T0t,getDiagramProps:Wce,getState:k0t}}),X0t,I6t=Y(()=>{"use strict";Xc(),jt(),Fd(),Y0t(),X0t={parse:s(async e=>{let t=await Kl("eventmodeling",e);ge.debug(t),LI.setAst(t),uu(t,LI)},"parse")}});function K0t(e,t){return r=>{let i=r.swimlane.y+t.swimlanePadding,n=e.append("g").attr("class","em-box");n.append("rect").attr("x",r.x).attr("y",i).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),n.append("foreignObject").attr("x",r.x+t.boxPadding).attr("y",i+10).attr("width",r.dimension.width-2*t.boxPadding).attr("height",r.dimension.height-2*t.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}f(K0t,"DEt");function Z0t(e,t){return e>t}f(Z0t,"REt");function Q0t(e,t,r,i){return n=>{var m;let a=n.sourceBox.swimlane.y+t.swimlanePadding,o=n.targetBox.swimlane.y+t.swimlanePadding,l=Z0t(a,o),h=n.sourceBox.x+n.sourceBox.dimension.width*2/3,u=n.targetBox.x+n.targetBox.dimension.width/3,d,p;ge.debug(`rendering relation up=${l} for `,{sourceBox:n.sourceBox,targetBox:n.targetBox}),l?(d=a,p=o+n.targetBox.dimension.height):(d=a+n.sourceBox.dimension.height,p=o);let g=(m=i.emRelationStroke)!=null?m:n.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",n.visual.fill).attr("stroke",g).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${h} ${d} L${u} ${p}`)}}f(Q0t,"LEt");function J0t(e,t,r,i){return n=>{var h,u;let a=e.append("g").attr("class","em-swimlane"),o=(h=i.emSwimlaneBackgroundOdd)!=null?h:"rgb(250,250,250)",l=(u=i.emSwimlaneBackgroundStroke)!=null?u:"rgb(240,240,240)";a.append("rect").attr("x",0).attr("y",n.y).attr("rx","3").attr("width",t+r.swimlanePadding).attr("height",n.height).attr("fill",o).attr("stroke",l),a.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",n.y+30).text(n.label)}}f(J0t,"MEt");var RI,egt,tgt,rgt,D6t=Y(()=>{"use strict";ui(),vr(),jt(),RI=Ue(),egt=RI==null?void 0:RI.eventmodeling,s(K0t,"renderD3Box"),s(Z0t,"dirUpwards"),s(Q0t,"renderD3Relation"),s(J0t,"renderD3Swimlane"),tgt=s(function(e,t,r,i){var g,m;if(ge.debug("in eventmodeling renderer",e+` 3143`,"id:",t,r),!egt)throw new Error("EventModeling config not found");let n=i.db,{themeVariables:a,eventmodeling:o}=Ue(),l=Lt(`[id="${t}"]`),h=n.getDiagramProps(),u=n.getState(),d=`em-arrowhead-${t}`,p=(g=a.emArrowhead)!=null?g:"#000000";u.sortedSwimlanesArray.forEach(J0t(l,u.maxR,h,a)),u.boxes.forEach(K0t(l,h)),u.relations.forEach(Q0t(l,h,d,a)),l.append("defs").append("marker").attr("id",d).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",p),y6(void 0,l,(m=o==null?void 0:o.padding)!=null?m:30,o==null?void 0:o.useMaxWidth)},"draw"),rgt={draw:tgt}}),igt,ngt,N6t=Y(()=>{"use strict";igt=s(e=>"","getStyles"),ngt=igt}),agt={};Jr(agt,{diagram:f(()=>sgt,"diagram")});var sgt,M6t=Y(()=>{"use strict";I6t(),Y0t(),D6t(),N6t(),sgt={parser:X0t,db:LI,renderer:rgt,styles:ngt}}),II,ogt,O6t=Y(()=>{"use strict";II=(function(){var e=s(function(w,_,S,R){for(S=S||{},R=w.length;R--;S[w[R]]=_);return S},"o"),t=[1,4],r=[1,14],i=[1,12],n=[1,13],a=[6,7,8],o=[1,20],l=[1,18],h=[1,19],u=[6,7,11],d=[1,6,13,14],p=[1,23],g=[1,24],m=[1,6,7,11,13,14],y={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:s(function(w,_,S,R,b,v,k){var E=v.length-1;switch(b){case 6:case 7:return R;case 15:R.addNode(v[E-1].length,v[E].trim());break;case 16:R.addNode(0,v[E].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:n},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:r,12:15,13:i,14:n},{6:r,9:16,12:11,13:i,14:n},{6:o,7:l,10:17,11:h},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:l,10:22,11:h},{1:[2,7],6:r,12:15,13:i,14:n},e(d,[2,14],{7:p,11:g}
vendor: 34,030 bytes, lines 3143-3239
3143),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:p,11:g}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(w,_){if(_.recoverable)this.trace(w);else{var S=new Error(w);throw S.hash=_,S}},"parseError"),parse:s(function(w){var _=this,S=[0],R=[],b=[null],v=[],k=this.table,E="",A=0,I=0,$=0,O=2,j=1,D=v.slice.call(arguments,1),P=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&(F.yy[U]=this.yy[U]);P.setInput(w,F.yy),F.yy.lexer=P,F.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var z=P.yylloc;v.push(z);var V=P.options&&P.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(De){S.length=S.length-2*De,b.length=b.length-De,v.length=v.length-De}f(W,"F"),s(W,"popStack");function X(){var De;return De=R.pop()||P.lex()||j,typeof De!="number"&&(De instanceof Array&&(R=De,De=R.pop()),De=_.symbols_[De]||De),De}f(X,"V"),s(X,"lex");for(var J,H,te,ie,oe,he,pe={},se,le,ue,de;;){if(te=S[S.length-1],this.defaultActions[te]?ie=this.defaultActions[te]:((J===null||typeof J>"u")&&(J=X()),ie=k[te]&&k[te][J]),typeof ie>"u"||!ie.length||!ie[0]){var we="";de=[];for(se in k[te])this.terminals_[se]&&se>O&&de.push("'"+this.terminals_[se]+"'");P.showPosition?we="Parse error on line "+(A+1)+`: 3144`+P.showPosition()+` 3145Expecting `+de.join(", ")+", got '"+(this.terminals_[J]||J)+"'":we="Parse error on line "+(A+1)+": Unexpected "+(J==j?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(we,{text:P.match,token:this.terminals_[J]||J,line:P.yylineno,loc:z,expected:de})}if(ie[0]instanceof Array&&ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+J);switch(ie[0]){case 1:S.push(J),b.push(P.yytext),v.push(P.yylloc),S.push(ie[1]),J=null,H?(J=H,H=null):(I=P.yyleng,E=P.yytext,A=P.yylineno,z=P.yylloc,$>0&&$--);break;case 2:if(le=this.productions_[ie[1]][1],pe.$=b[b.length-le],pe._$={first_line:v[v.length-(le||1)].first_line,last_line:v[v.length-1].last_line,first_column:v[v.length-(le||1)].first_column,last_column:v[v.length-1].last_column},V&&(pe._$.range=[v[v.length-(le||1)].range[0],v[v.length-1].range[1]]),he=this.performAction.apply(pe,[E,I,A,F.yy,ie[1],b,v].concat(D)),typeof he<"u")return he;le&&(S=S.slice(0,-1*le*2),b=b.slice(0,-1*le),v=v.slice(0,-1*le)),S.push(this.productions_[ie[1]][0]),b.push(pe.$),v.push(pe._$),ue=k[S[S.length-2]][S[S.length-1]],S.push(ue);break;case 3:return!0}}return!0},"parse")},x=(function(){var w={EOF:1,parseError:s(function(_,S){if(this.yy.parser)this.yy.parser.parseError(_,S);else throw new Error(_)},"parseError"),setInput:s(function(_,S){return this.yy=S||this.yy||{},this._input=_,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 _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var S=_.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:s(function(_){var S=_.length,R=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var b=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),R.length-1&&(this.yylineno-=R.length-1);var v=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:R?(R.length===b.length?this.yylloc.first_column:0)+b[b.length-R.length].length-R[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-S]),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). 3146`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(_){this.unput(this.match.slice(_))},"less"),pastInput:s(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var _=this.pastInput(),S=new Array(_.length+1).join("-");return _+this.upcomingInput()+` 3147`+S+"^"},"showPosition"),test_match:s(function(_,S){var R,b,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),b=_[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],R=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var k in v)this[k]=v[k];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,S,R,b;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),k=0;k<v.length;k++)if(R=this._input.match(this.rules[v[k]]),R&&(!S||R[0].length>S[0].length)){if(S=R,b=k,this.options.backtrack_lexer){if(_=this.test_match(R,v[k]),_!==!1)return _;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(_=this.test_match(S,v[b]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 3148`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var _=this.next();return _||this.lex()},"lex"),begin:s(function(_){this.conditionStack.push(_)},"begin"),popState:s(function(){var _=this.conditionStack.length-1;return _>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(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:s(function(_){this.begin(_)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(_,S,R,b){var v=b;switch(R){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return w})();y.lexer=x;function C(){this.yy={}}return f(C,"v"),s(C,"Parser"),C.prototype=y,y.Parser=C,new C})(),II.parser=II,ogt=II}),lgt,$6t=Y(()=>{"use strict";var e;vr(),gi(),En(),lgt=(e=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,Tn()}getRoot(){return this.root}addNode(r,i){var h;let n=Vt.sanitizeText(i,Ue());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],qn(n);return}(h=this.baseLevel)!=null||(this.baseLevel=r);let a=r-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();let o=this.stack[this.stack.length-1].node,l={text:n,children:[]};o.children.push(l),this.stack.push({level:a,node:l})}getAccTitle(){return Pn()}setAccTitle(r){wn(r)}getAccDescription(){return zn()}setAccDescription(r){Fn(r)}getDiagramTitle(){return Cn()}setDiagramTitle(r){qn(r)}},f(e,"__"),s(e,"IshikawaDB"),e)}),cgt,W1,hgt,ugt,dgt,Xce,Kce,Zce,Qce,pgt,Jce,ggt,fgt,mgt,DI,ygt,vgt,ehe,Uw,the,H1,bgt,B6t=Y(()=>{"use strict";vr(),Ho(),Bn(),wr(),Tr(),cgt=14,W1=250,hgt=30,ugt=60,dgt=5,Xce=82*Math.PI/180,Kce=Math.cos(Xce),Zce=Math.sin(Xce),Qce=s((e,t,r)=>{let i=e.node().getBBox(),n=i.width+t*2,a=i.height+t*2;Ta(e,a,n,r),e.attr("viewBox",`${i.x-t} ${i.y-t} ${n} ${a}`)},"applyPaddedViewBox"),pgt=s((e,t,r,i)=>{var P,F,U,z,V,W,X,J;let n=i.db.getRoot();if(!n)return;let a=Ue(),{look:o,handDrawnSeed:l,themeVariables:h}=a,u=(P=Eh(a.fontSize)[0])!=null?P:cgt,d=o==="handDrawn",p=(F=n.children)!=null?F:[],g=(z=(U=a.ishikawa)==null?void 0:U.diagramPadding)!=null?z:20,m=(W=(V=a.ishikawa)==null?void 0:V.useMaxWidth)!=null?W:!1,y=Co(t),x=y.append("g").attr("class","ishikawa"),C=d?fr.svg(y.node()):void 0,w=C?{roughSvg:C,seed:l!=null?l:0,lineColor:(X=h==null?void 0:h.lineColor)!=null?X:"#333",fillColor:(J=h==null?void 0:h.mainBkg)!=null?J:"#fff"}:void 0,_=`ishikawa-arrow-${t}`;d||x.append("defs").append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let S=0,R=W1,b=d?void 0:H1(x,S,R,S,R,"ishikawa-spine");if(ggt(x,S,R,n.text,u,w),!p.length){d&&H1(x,S,R,S,R,"ishikawa-spine",w),Qce(y,g,m);return}S-=20;let v=p.filter((H,te)=>te%2===0),k=p.filter((H,te)=>te%2===1),E=Jce(v),A=Jce(k),I=E.total+A.total,$=W1,O=W1;if(I>0){let H=W1*2,te=W1*.3;$=Math.max(te,H*(E.total/I)),O=Math.max(te,H*(A.total/I))}let j=u*2;$=Math.max($,E.max*j),O=Math.max(O,A.max*j),R=Math.max($,W1),b&&b.attr("y1",R).attr("y2",R),x.select(".ishikawa-head-group").attr("transform",`translate(0,${R})`);let D=Math.ceil(p.length/2);for(let H=0;H<D;H++){let te=x.append("g").attr("class","ishikawa-pair");for(let[ie,oe,he]of[[p[H*2],-1,$],[p[H*2+1],1,O]])ie&&ygt(te,ie,S,R,oe,he,u,w);S=te.selectAll("text").nodes().reduce((ie,oe)=>Math.min(ie,oe.getBBox().x),1/0)}if(d)H1(x,S,R,0,R,"ishikawa-spine",w);else{b.attr("x1",S);let H=`url(#${_})`;x.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",H)}Qce(y,g,m)},"draw"),Jce=s(e=>{let t=s(r=>r.children.reduce((i,n)=>i+1+t(n),0),"countDescendants");return e.reduce((r,i)=>{let n=t(i);return r.total+=n,r.max=Math.max(r.max,n),r},{total:0,max:0})},"sideStats"),ggt=s((e,t,r,i,n,a)=>{let o=Math.max(6,Math.floor(110/(n*.6))),l=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${t},${r})`),h=Uw(l,ehe(i,o),0,0,"ishikawa-head-label","start",n),u=h.node().getBBox(),d=Math.max(60,u.width+6),p=Math.max(40,u.height*2+40),g=`M 0 ${-p/2} L 0 ${p/2} Q ${d*2.4} 0 0 ${-p/2} Z`;if(a){let m=a.roughSvg.path(g,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});l.insert(()=>m,":first-child").attr("class","ishikawa-head")}else l.insert("path",":first-child").attr("class","ishikawa-head").attr("d",g);h.attr("transform",`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},"drawHead"),fgt=s((e,t)=>{let r=[],i=[],n=s((a,o,l)=>{var u;let h=t===-1?[...a].reverse():a;for(let d of h){let p=r.length,g=(u=d.children)!=null?u:[];r.push({depth:l,text:ehe(d.text,15),parentIndex:o,childCount:g.length}),l%2===0?(i.push(p),g.length&&n(g,p,l+1)):(g.length&&n(g,p,l+1),i.push(p))}},"walk");return n(e,-1,2),{entries:r,yOrder:i}},"flattenTree"),mgt=s((e,t,r,i,n,a,o)=>{let l=e.append("g").attr("class","ishikawa-label-group"),h=Uw(l,t,r,i+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(o){let u=o.roughSvg.rectangle(h.x-20,h.y-2,h.width+40,h.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});l.insert(()=>u,":first-child").attr("class","ishikawa-label-box")}else l.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",h.x-20).attr("y",h.y-2).attr("width",h.width+40).attr("height",h.height+4)},"drawCauseLabel"),DI=s((e,t,r,i,n,a)=>{let o=Math.sqrt(i*i+n*n);if(o===0)return;let l=i/o,h=n/o,u=6,d=-h*u,p=l*u,g=t,m=r,y=`M ${g} ${m} L ${g-l*u*2+d} ${m-h*u*2+p} L ${g-l*u*2-d} ${m-h*u*2-p} Z`,x=a.roughSvg.path(y,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});e.append(()=>x)},"drawArrowMarker"),ygt=s((e,t,r,i,n,a,o,l)=>{var v;let h=(v=t.children)!=null?v:[],u=a*(h.length?1:.2),d=-Kce*u,p=Zce*u*n,g=r+d,m=i+p;if(H1(e,r,i,g,m,"ishikawa-branch",l),l&&DI(e,r,i,r-g,i-m,l),mgt(e,t.text,g,m,n,o,l),!h.length)return;let{entries:y,yOrder:x}=fgt(h,n),C=y.length,w=new Array(C);for(let[k,E]of x.entries())w[E]=i+p*((k+1)/(C+1));let _=new Map;_.set(-1,{x0:r,y0:i,x1:g,y1:m,childCount:h.length,childrenDrawn:0});let S=-Kce,R=Zce*n,b=n<0?"ishikawa-label up":"ishikawa-label down";for(let[k,E]of y.entries()){let A=w[k],I=_.get(E.parentIndex),$=e.append("g").attr("class","ishikawa-sub-group"),O=0,j=0,D=0;if(E.depth%2===0){let P=I.y1-I.y0;O=the(I.x0,I.x1,P?(A-I.y0)/P:.5),j=A,D=O-(E.childCount>0?ugt+E.childCount*dgt:hgt),H1($,O,A,D,A,"ishikawa-sub-branch",l),l&&DI($,O,A,1,0,l),Uw($,E.text,D,A,"ishikawa-label align","end",o)}else{let P=I.childrenDrawn++;O=the(I.x0,I.x1,(I.childCount-P)/(I.childCount+1)),j=I.y0,D=O+S*((A-j)/R),H1($,O,j,D,A,"ishikawa-sub-branch",l),l&&DI($,O,j,O-D,j-A,l),Uw($,E.text,D,A,b,"end",o)}E.childCount>0&&_.set(k,{x0:O,y0:j,x1:D,y1:A,childCount:E.childCount,childrenDrawn:0})}},"drawBranch"),vgt=s(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),ehe=s((e,t)=>{if(e.length<=t)return e;let r=[];for(let i of e.split(/\s+/)){let n=r.length-1;n>=0&&r[n].length+1+i.length<=t?r[n]+=" "+i:r.push(i)}return r.join(` 3149`)},"wrapText"),Uw=s((e,t,r,i,n,a,o)=>{let l=vgt(t),h=o*1.05,u=e.append("text").attr("class",n).attr("text-anchor",a).attr("x",r).attr("y",i-(l.length-1)*h/2);for(let[d,p]of l.entries())u.append("tspan").attr("x",r).attr("dy",d===0?0:h).text(p);return u},"drawMultilineText"),the=s((e,t,r)=>e+(t-e)*r,"lerp"),H1=s((e,t,r,i,n,a,o)=>{if(o){let l=o.roughSvg.line(t,r,i,n,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>l).attr("class",a);return}return e.append("line").attr("class",a).attr("x1",t).attr("y1",r).attr("x2",i).attr("y2",n)},"drawLine"),bgt={draw:pgt}}),xgt,kgt,P6t=Y(()=>{"use strict";xgt=s(e=>` 3150.ishikawa .ishikawa-spine, 3151.ishikawa .ishikawa-branch, 3152.ishikawa .ishikawa-sub-branch { 3153 stroke: ${e.lineColor}; 3154 stroke-width: 2; 3155 fill: none; 3156} 3157 3158.ishikawa .ishikawa-sub-branch { 3159 stroke-width: 1; 3160} 3161 3162.ishikawa .ishikawa-arrow { 3163 fill: ${e.lineColor}; 3164} 3165 3166.ishikawa .ishikawa-head { 3167 fill: ${e.mainBkg}; 3168 stroke: ${e.lineColor}; 3169 stroke-width: 2; 3170} 3171 3172.ishikawa .ishikawa-label-box { 3173 fill: ${e.mainBkg}; 3174 stroke: ${e.lineColor}; 3175 stroke-width: 2; 3176} 3177 3178.ishikawa text { 3179 font-family: ${e.fontFamily}; 3180 font-size: ${e.fontSize}; 3181 fill: ${e.textColor}; 3182} 3183 3184.ishikawa .ishikawa-head-label { 3185 font-weight: 600; 3186 text-anchor: middle; 3187 dominant-baseline: middle; 3188 font-size: 14px; 3189} 3190 3191.ishikawa .ishikawa-label { 3192 text-anchor: end; 3193} 3194 3195.ishikawa .ishikawa-label.cause { 3196 text-anchor: middle; 3197 dominant-baseline: middle; 3198} 3199 3200.ishikawa .ishikawa-label.align { 3201 text-anchor: end; 3202 dominant-baseline: middle; 3203} 3204 3205.ishikawa .ishikawa-label.up { 3206 dominant-baseline: baseline; 3207} 3208 3209.ishikawa .ishikawa-label.down { 3210 dominant-baseline: hanging; 3211} 3212`,"getStyles"),kgt=xgt}),Tgt={};Jr(Tgt,{diagram:f(()=>wgt,"diagram")});var wgt,F6t=Y(()=>{"use strict";O6t(),$6t(),B6t(),P6t(),wgt={parser:ogt,get db(){return new lgt},renderer:bgt,styles:kgt}}),NI,Cgt,z6t=Y(()=>{"use strict";NI=(function(){var e=s(function(_,S,R,b){for(R=R||{},b=_.length;b--;R[_[b]]=S);return R},"o"),t=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],n=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],l=[1,39],h=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],p=[1,58],g=[1,59],m=[1,60],y=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],x={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:s(function(_,S,R,b,v,k,E){var A=k.length-1;switch(v){case 1:return k[A-1];case 2:case 3:case 4:this.$=[];break;case 5:k[A-1].push(k[A]),this.$=k[A-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=k[A];break;case 8:b.setDiagramTitle(k[A].substr(6)),this.$=k[A].substr(6);break;case 9:b.addSubsetData([k[A]],void 0,void 0),b.setIndentMode&&b.setIndentMode(!0);break;case 10:b.addSubsetData([k[A-1]],k[A],void 0),b.setIndentMode&&b.setIndentMode(!0);break;case 11:b.addSubsetData([k[A-2]],void 0,parseFloat(k[A])),b.setIndentMode&&b.setIndentMode(!0);break;case 12:b.addSubsetData([k[A-3]],k[A-2],parseFloat(k[A])),b.setIndentMode&&b.setIndentMode(!0);break;case 13:if(k[A].length<2)throw new Error("union requires multiple identifiers");b.validateUnionIdentifiers&&b.validateUnionIdentifiers(k[A]),b.addSubsetData(k[A],void 0,void 0),b.setIndentMode&&b.setIndentMode(!0);break;case 14:if(k[A-1].length<2)throw new Error("union requires multiple identifiers");b.validateUnionIdentifiers&&b.validateUnionIdentifiers(k[A-1]),b.addSubsetData(k[A-1],k[A],void 0),b.setIndentMode&&b.setIndentMode(!0);break;case 15:if(k[A-2].length<2)throw new Error("union requires multiple identifiers");b.validateUnionIdentifiers&&b.validateUnionIdentifiers(k[A-2]),b.addSubsetData(k[A-2],void 0,parseFloat(k[A])),b.setIndentMode&&b.setIndentMode(!0);break;case 16:if(k[A-3].length<2)throw new Error("union requires multiple identifiers");b.validateUnionIdentifiers&&b.validateUnionIdentifiers(k[A-3]),b.addSubsetData(k[A-3],k[A-2],parseFloat(k[A])),b.setIndentMode&&b.setIndentMode(!0);break;case 17:case 18:case 19:b.addTextData(k[A-1],k[A],void 0);break;case 20:case 21:b.addTextData(k[A-2],k[A-1],k[A]);break;case 23:b.addStyleData(k[A-1],k[A]);break;case 24:case 25:case 26:var I=b.getCurrentSets();if(!I)throw new Error("text requires set");b.addTextData(I,k[A],void 0);break;case 27:case 28:var I=b.getCurrentSets();if(!I)throw new Error("text requires set");b.addTextData(I,k[A-1],k[A]);break;case 29:case 41:this.$=[k[A]];break;case 30:case 42:this.$=[...k[A-2],k[A]];break;case 31:this.$=[k[A-2],k[A]];break;case 33:this.$=k[A].join(" ");break;case 34:this.$=[k[A]];break;case 35:k[A-1].push(k[A]),this.$=k[A-1];break;case 43:case 44:this.$=k[A];break}},"anonymous"),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(r,[2,4],{6:5}),e(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(r,[2,5]),e(r,[2,6]),e(r,[2,7]),e(r,[2,8]),{13:16,20:i,21:n},{13:20,18:19,20:i,21:n},{13:20,18:21,20:i,21:n},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:n},e(r,[2,9],{14:[1,27],15:[1,28]}),e(a,[2,43]),e(a,[2,44]),e(r,[2,13],{14:[1,29],15:[1,30],27:o}),e(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(r,[2,22]),e(r,[2,24],{14:[1,35]}),e(r,[2,25],{14:[1,36]}),e(r,[2,26]),{20:l,25:37,26:38,27:o},e(r,[2,10],{15:[1,40]}),{16:[1,41]},e(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:n},e(r,[2,17],{14:[1,45]}),e(r,[2,18],{14:[1,46]}),e(r,[2,19]),e(r,[2,27]),e(r,[2,28]),e(r,[2,23],{27:[1,47]}),e(h,[2,29]),{15:[1,48]},{16:[1,49]},e(r,[2,11]),{16:[1,50]},e(r,[2,15]),e(a,[2,42]),e(r,[2,20]),e(r,[2,21]),{20:l,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:p,32:g,33:m},e(r,[2,12]),e(r,[2,16]),e(h,[2,30]),e(h,[2,31]),e(h,[2,32]),e(h,[2,33],{30:61,16:u,20:d,31:p,32:g,33:m}),e(y,[2,34]),e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,35])],defaultActions:{6:[2,1]},parseError:s(function(_,S){if(S.recoverable)this.trace(_);else{var R=new Error(_);throw R.hash=S,R}},"parseError"),parse:s(function(_){var S=this,R=[0],b=[],v=[null],k=[],E=this.table,A="",I=0,$=0,O=0,j=2,D=1,P=k.slice.call(arguments,1),F=Object.create(this.lexer),U={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(U.yy[z]=this.yy[z]);F.setInput(_,U.yy),U.yy.lexer=F,U.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var V=F.yylloc;k.push(V);var W=F.options&&F.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(Ge){R.length=R.length-2*Ge,v.length=v.length-Ge,k.length=k.length-Ge}f(X,"V"),s(X,"popStack");function J(){var Ge;return Ge=b.pop()||F.lex()||D,typeof Ge!="number"&&(Ge instanceof Array&&(b=Ge,Ge=b.pop()),Ge=S.symbols_[Ge]||Ge),Ge}f(J,"H"),s(J,"lex");for(var H,te,ie,oe,he,pe,se={},le,ue,de,we;;){if(ie=R[R.length-1],this.defaultActions[ie]?oe=this.defaultActions[ie]:((H===null||typeof H>"u")&&(H=J()),oe=E[ie]&&E[ie][H]),typeof oe>"u"||!oe.length||!oe[0]){var De="";we=[];for(le in E[ie])this.terminals_[le]&&le>j&&we.push("'"+this.terminals_[le]+"'");F.showPosition?De="Parse error on line "+(I+1)+`: 3213`+F.showPosition()+` 3214Expecting `+we.join(", ")+", got '"+(this.terminals_[H]||H)+"'":De="Parse error on line "+(I+1)+": Unexpected "+(H==D?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(De,{text:F.match,token:this.terminals_[H]||H,line:F.yylineno,loc:V,expected:we})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ie+", token: "+H);switch(oe[0]){case 1:R.push(H),v.push(F.yytext),k.push(F.yylloc),R.push(oe[1]),H=null,te?(H=te,te=null):($=F.yyleng,A=F.yytext,I=F.yylineno,V=F.yylloc,O>0&&O--);break;case 2:if(ue=this.productions_[oe[1]][1],se.$=v[v.length-ue],se._$={first_line:k[k.length-(ue||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(ue||1)].first_column,last_column:k[k.length-1].last_column},W&&(se._$.range=[k[k.length-(ue||1)].range[0],k[k.length-1].range[1]]),pe=this.performAction.apply(se,[A,$,I,U.yy,oe[1],v,k].concat(P)),typeof pe<"u")return pe;ue&&(R=R.slice(0,-1*ue*2),v=v.slice(0,-1*ue),k=k.slice(0,-1*ue)),R.push(this.productions_[oe[1]][0]),v.push(se.$),k.push(se._$),de=E[R[R.length-2]][R[R.length-1]],R.push(de);break;case 3:return!0}}return!0},"parse")},C=(function(){var _={EOF:1,parseError:s(function(S,R){if(this.yy.parser)this.yy.parser.parseError(S,R);else throw new Error(S)},"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,b=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 v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var k=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:b?(b.length===v.length?this.yylloc.first_column:0)+v[v.length-b.length].length-b[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[k[0],k[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). 3215`+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()+` 3216`+R+"^"},"showPosition"),test_match:s(function(S,R){var b,v,k;if(this.options.backtrack_lexer&&(k={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&&(k.yylloc.range=this.yylloc.range.slice(0))),v=S[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],b=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var E in k)this[E]=k[E];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,R,b,v;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),E=0;E<k.length;E++)if(b=this._input.match(this.rules[k[E]]),b&&(!R||b[0].length>R[0].length)){if(R=b,v=E,this.options.backtrack_lexer){if(S=this.test_match(b,k[E]),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,k[v]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 3217`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var S=this.next();return S||this.lex()},"lex"),begin:s(function(S){this.conditionStack.push(S)},"begin"),popState:s(function(){var S=this.conditionStack.length-1;return S>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(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:s(function(S){this.begin(S)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(S,R,b,v){var k=v;switch(b){case 0:break;case 1:break;case 2:break;case 3:if(S.getIndentMode&&S.getIndentMode())return S.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:S.setIndentMode&&S.setIndentMode(!1),this.begin("INITIAL"),this.unput(R.yytext);break;case 6:return this.begin("bol"),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(S.consumeIndentText)S.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return R.yytext=R.yytext.slice(2,-2),14;case 17:return R.yytext=R.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return _})();x.lexer=C;function w(){this.yy={}}return f(w,"x"),s(w,"Parser"),w.prototype=x,x.Parser=w,new w})(),NI.parser=NI,Cgt=NI});function Egt(){return da(Bgt,Ir().venn)}f(Egt,"h5t");var MI,OI,$I,BI,rhe,PI,Sgt,_gt,lb,Agt,Lgt,Rgt,Igt,Vw,Dgt,Ngt,Mgt,Ogt,$gt,Bgt,Pgt,Fgt,q6t=Y(()=>{"use strict";wr(),ti(),En(),rs(),MI=[],OI=[],$I=[],BI=new Set,PI=!1,Sgt=s((e,t,r)=>{let i=Vw(e).sort(),n=r!=null?r:10/Math.pow(e.length,2);rhe=i,i.length===1&&BI.add(i[0]),MI.push({sets:i,size:n,label:t?lb(t):void 0})},"addSubsetData"),_gt=s(()=>MI,"getSubsetData"),lb=s(e=>{let t=e.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t},"normalizeText"),Agt=s(e=>e&&lb(e),"normalizeStyleValue"),Lgt=s((e,t,r)=>{let i=lb(t);OI.push({sets:Vw(e).sort(),id:i,label:r?lb(r):void 0})},"addTextData"),Rgt=s((e,t)=>{var n;let r=Vw(e).sort(),i={};for(let[a,o]of t)i[a]=(n=Agt(o))!=null?n:o;$I.push({targets:r,styles:i})},"addStyleData"),Igt=s(()=>$I,"getStyleData"),Vw=s(e=>e.map(t=>lb(t)),"normalizeIdentifierList"),Dgt=s(e=>{let t=Vw(e).filter(r=>!BI.has(r));if(t.length>0)throw new Error(`unknown set identifier: ${t.join(", ")}`)},"validateUnionIdentifiers"),Ngt=s(()=>OI,"getTextData"),Mgt=s(()=>rhe,"getCurrentSets"),Ogt=s(()=>PI,"getIndentMode"),$gt=s(e=>{PI=e},"setIndentMode"),Bgt=bi.venn,s(Egt,"getConfig"),Pgt=s(()=>{Tn(),MI.length=0,OI.length=0,$I.length=0,BI.clear(),rhe=void 0,PI=!1},"customClear"),Fgt={getConfig:Egt,clear:Pgt,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,getAccDescription:zn,setAccDescription:Fn,addSubsetData:Sgt,getSubsetData:_gt,addTextData:Lgt,addStyleData:Rgt,validateUnionIdentifiers:Dgt,getTextData:Ngt,getStyleData:Igt,getCurrentSets:Mgt,getIndentMode:Ogt,setIndentMode:$gt}}),zgt,qgt,j6t=Y(()=>{"use strict";zgt=s(e=>` 3218 .venn-title { 3219 font-size: 32px; 3220 fill: ${e.vennTitleTextColor}; 3221 font-family: ${e.fontFamily}; 3222 } 3223 3224 .venn-circle text { 3225 font-size: 48px; 3226 font-family: ${e.fontFamily}; 3227 } 3228 3229 .venn-intersection text { 3230 font-size: 48px; 3231 fill: ${e.vennSetTextColor}; 3232 font-family: ${e.fontFamily}; 3233 } 3234 3235 .venn-text-node { 3236 font-family: ${e.fontFamily}; 3237 color: ${e.vennSetTextColor}; 3238 } 3239`,"getStyles"),qgt=zgt});function Ww(e,t){let r=Ggt(e),i=r.filter(l=>jgt(l,e)),n=0,a=0,o=[];if(i.length>1){let l=nhe(i);for(let u=0;u<i.length;++u){let d=i[u];d.angle=Math.atan2(d.x-l.x,d.y-l.y)}i.sort((u,d)=>d.angle-u.angle);let h=i[i.length-1];for(let u=0;u<i.length;++u){let d=i[u];a+=(h.x+d.x)*(d.y-h.y);let p={x:(d.x+h.x)/2,y:(d.y+h.y)/2},g=null;for(let m=0;m<d.parentIndex.length;++m)if(h.parentIndex.includes(d.parentIndex[m])){let y=e[d.parentIndex[m]],x=Math.atan2(d.x-y.x,d.y-y.y),C=Math.atan2(h.x-y.x,h.y-y.y),w=C-x;w<0&&(w+=2*Math.PI);let _=C-w/2,S=So(p,{x:y.x+y.radius*Math.sin(_),y:y.y+y.radius*Math.cos(_)});S>y.radius*2&&(S=y.radius*2),(g==null||g.width>S)&&(g={circle:y,width:S,p1:d,p2:h,large:S>y.radius,sweep:!0})}g!=null&&(o.push(g),n+=FI(g.circle.radius,g.width),h=d)}}else{let l=e[0];for(let u=1;u<e.length;++u)e[u].radius<l.radius&&(l=e[u]);let h=!1;for(let u=0;u<e.length;++u)if(So(e[u],l)>Math.abs(l.radius-e[u].radius)){h=!0;break}
vendor: 21,400 bytes, lines 3239-3245
3239h?n=a=0:(n=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-1e-10,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=n+a,t.arcArea=n,t.polygonArea=a,t.arcs=o,t.innerPoints=i,t.intersectionPoints=r),n+a}f(Ww,"L_");function jgt(e,t){return t.every(r=>So(e,r)<r.radius+1e-10)}f(jgt,"p5t");function Ggt(e){let t=[];for(let r=0;r<e.length;++r)for(let i=r+1;i<e.length;++i){let n=ihe(e[r],e[i]);for(let a of n)a.parentIndex=[r,i],t.push(a)}return t}f(Ggt,"m5t");function FI(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}f(FI,"hU");function So(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}f(So,"Xs");function zI(e,t,r){if(r>=e+t)return 0;if(r<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let i=e-(r*r-t*t+e*e)/(2*r),n=t-(r*r-e*e+t*t)/(2*r);return FI(e,i)+FI(t,n)}f(zI,"yU");function ihe(e,t){let r=So(e,t),i=e.radius,n=t.radius;if(r>=i+n||r<=Math.abs(i-n))return[];let a=(i*i-n*n+r*r)/(2*r),o=Math.sqrt(i*i-a*a),l=e.x+a*(t.x-e.x)/r,h=e.y+a*(t.y-e.y)/r,u=-(t.y-e.y)*(o/r),d=-(t.x-e.x)*(o/r);return[{x:l+u,y:h-d},{x:l-u,y:h+d}]}f(ihe,"wLe");function nhe(e){let t={x:0,y:0};for(let r of e)t.x+=r.x,t.y+=r.y;return t.x/=e.length,t.y/=e.length,t}f(nhe,"SLe");function Ugt(e,t,r,i){i=i||{};let n=i.maxIterations||100,a=i.tolerance||1e-10,o=e(t),l=e(r),h=r-t;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return t;if(l===0)return r;for(let u=0;u<n;++u){h/=2;let d=t+h,p=e(d);if(p*o>=0&&(t=d),Math.abs(h)<a||p===0)return d}return t+h}f(Ugt,"g5t");function qI(e){let t=new Array(e);for(let r=0;r<e;++r)t[r]=0;return t}f(qI,"dU");function ahe(e,t){return qI(e).map(()=>qI(t))}f(ahe,"CLe");function Y1(e,t){let r=0;for(let i=0;i<e.length;++i)r+=e[i]*t[i];return r}f(Y1,"Fy");function jI(e){return Math.sqrt(Y1(e,e))}f(jI,"fU");function GI(e,t,r){for(let i=0;i<t.length;++i)e[i]=t[i]*r}f(GI,"pU");function xu(e,t,r,i,n){for(let a=0;a<e.length;++a)e[a]=t*r[a]+i*n[a]}f(xu,"Rh");function she(e,t,r){r=r||{};let i=r.maxIterations||t.length*200,n=r.nonZeroDelta||1.05,a=r.zeroDelta||.001,o=r.minErrorDelta||1e-6,l=r.minErrorDelta||1e-5,h=r.rho!==void 0?r.rho:1,u=r.chi!==void 0?r.chi:2,d=r.psi!==void 0?r.psi:-.5,p=r.sigma!==void 0?r.sigma:.5,g,m=t.length,y=new Array(m+1);y[0]=t,y[0].fx=e(t),y[0].id=0;for(let b=0;b<m;++b){let v=t.slice();v[b]=v[b]?v[b]*n:a,y[b+1]=v,y[b+1].fx=e(v),y[b+1].id=b+1}function x(b){for(let v=0;v<b.length;v++)y[m][v]=b[v];y[m].fx=b.fx}f(x,"y"),s(x,"updateSimplex");let C=s((b,v)=>b.fx-v.fx,"sortOrder"),w=t.slice(),_=t.slice(),S=t.slice(),R=t.slice();for(let b=0;b<i;++b){if(y.sort(C),r.history){let k=y.map(E=>{let A=E.slice();return A.fx=E.fx,A.id=E.id,A});k.sort((E,A)=>E.id-A.id),r.history.push({x:y[0].slice(),fx:y[0].fx,simplex:k})}g=0;for(let k=0;k<m;++k)g=Math.max(g,Math.abs(y[0][k]-y[1][k]));if(Math.abs(y[0].fx-y[m].fx)<o&&g<l)break;for(let k=0;k<m;++k){w[k]=0;for(let E=0;E<m;++E)w[k]+=y[E][k];w[k]/=m}let v=y[m];if(xu(_,1+h,w,-h,v),_.fx=e(_),_.fx<y[0].fx)xu(R,1+u,w,-u,v),R.fx=e(R),R.fx<_.fx?x(R):x(_);else if(_.fx>=y[m-1].fx){let k=!1;if(_.fx>v.fx?(xu(S,1+d,w,-d,v),S.fx=e(S),S.fx<v.fx?x(S):k=!0):(xu(S,1-d*h,w,d*h,v),S.fx=e(S),S.fx<_.fx?x(S):k=!0),k){if(p>=1)break;for(let E=1;E<y.length;++E)xu(y[E],1-p,y[0],p,y[E]),y[E].fx=e(y[E])}}else x(_)}return y.sort(C),{fx:y[0].fx,x:y[0]}}f(she,"ELe");function Vgt(e,t,r,i,n,a,o){let l=r.fx,h=Y1(r.fxprime,t),u=l,d=l,p=h,g=0;n=n||1,a=a||1e-6,o=o||.1;function m(y,x,C){for(let w=0;w<16;++w)if(n=(y+x)/2,xu(i.x,1,r.x,n,t),u=i.fx=e(i.x,i.fxprime),p=Y1(i.fxprime,t),u>l+a*n*h||u>=C)x=n;else{if(Math.abs(p)<=-o*h)return n;p*(x-y)>=0&&(x=y),y=n,C=u}return 0}f(m,"m"),s(m,"zoom");for(let y=0;y<10;++y){if(xu(i.x,1,r.x,n,t),u=i.fx=e(i.x,i.fxprime),p=Y1(i.fxprime,t),u>l+a*n*h||y&&u>=d)return m(g,n,d);if(Math.abs(p)<=-o*h)return n;if(p>=0)return m(n,g,u);d=u,g=n,n*=2}return n}f(Vgt,"y5t");function Wgt(e,t,r){let i={x:t.slice(),fx:0,fxprime:t.slice()},n={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,l,h=1,u;r=r||{},u=r.maxIterations||t.length*20,i.fx=e(i.x,i.fxprime),o=i.fxprime.slice(),GI(o,i.fxprime,-1);for(let d=0;d<u;++d){if(h=Vgt(e,o,i,n,h),r.history&&r.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:h}),!h)GI(o,i.fxprime,-1);else{xu(a,1,n.fxprime,-1,i.fxprime);let p=Y1(i.fxprime,i.fxprime),g=Math.max(0,Y1(a,n.fxprime)/p);xu(o,g,o,-1,n.fxprime),l=i,i=n,n=l}if(jI(i.fxprime)<=1e-5)break}return r.history&&r.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:h}),i}f(Wgt,"v5t");function ohe(e,t={}){t.maxIterations=t.maxIterations||500;let r=t.initialLayout||Kgt,i=t.lossFunction||X1,n=Hgt(e,t),a=r(n,t),o=Object.keys(a),l=[];for(let u of o)l.push(a[u].x),l.push(a[u].y);let h=she(u=>{let d={};for(let p=0;p<o.length;++p){let g=o[p];d[g]={x:u[2*p],y:u[2*p+1],radius:a[g].radius}}return i(d,n)},l,t).x;for(let u=0;u<o.length;++u){let d=o[u];a[d].x=h[2*u],a[d].y=h[2*u+1]}return a}f(ohe,"ALe");function UI(e,t,r){return Math.min(e,t)*Math.min(e,t)*Math.PI<=r+vhe?Math.abs(e-t):Ugt(i=>zI(e,t,i)-r,0,e+t)}f(UI,"mU");function Hgt(e,t={}){let r=t.distinct,i=e.map(l=>Object.assign({},l));function n(l){return l.join(";")}if(f(n,"n"),s(n,"toKey"),r){let l=new Map;for(let h of i)for(let u=0;u<h.sets.length;u++){let d=String(h.sets[u]);l.set(d,h.size+(l.get(d)||0));for(let p=u+1;p<h.sets.length;p++){let g=String(h.sets[p]),m=`${d};${g}`,y=`${g};${d}`;l.set(m,h.size+(l.get(m)||0)),l.set(y,h.size+(l.get(y)||0))}}for(let h of i)h.sets.length<3&&(h.size=l.get(n(h.sets)))}let a=[],o=new Set;for(let l of i)if(l.sets.length===1)a.push(l.sets[0]);else if(l.sets.length===2){let h=l.sets[0],u=l.sets[1];o.add(n(l.sets)),o.add(n([u,h]))}a.sort((l,h)=>l===h?0:l<h?-1:1);for(let l=0;l<a.length;++l){let h=a[l];for(let u=l+1;u<a.length;++u){let d=a[u];o.has(n([h,d]))||i.push({sets:[h,d],size:0})}}return i}f(Hgt,"x5t");function Ygt(e,t,r){let i=ahe(t.length,t.length),n=ahe(t.length,t.length);return e.filter(a=>a.sets.length===2).forEach(a=>{let o=r[a.sets[0]],l=r[a.sets[1]],h=Math.sqrt(t[o].size/Math.PI),u=Math.sqrt(t[l].size/Math.PI),d=UI(h,u,a.size);i[o][l]=i[l][o]=d;let p=0;a.size+1e-10>=Math.min(t[o].size,t[l].size)?p=1:a.size<=1e-10&&(p=-1),n[o][l]=n[l][o]=p}),{distances:i,constraints:n}}f(Ygt,"b5t");function Xgt(e,t,r,i){for(let a=0;a<t.length;++a)t[a]=0;let n=0;for(let a=0;a<r.length;++a){let o=e[2*a],l=e[2*a+1];for(let h=a+1;h<r.length;++h){let u=e[2*h],d=e[2*h+1],p=r[a][h],g=i[a][h],m=(u-o)*(u-o)+(d-l)*(d-l),y=Math.sqrt(m),x=m-p*p;g>0&&y<=p||g<0&&y>=p||(n+=2*x*x,t[2*a]+=4*x*(o-u),t[2*a+1]+=4*x*(l-d),t[2*h]+=4*x*(u-o),t[2*h+1]+=4*x*(d-l))}}return n}f(Xgt,"T5t");function Kgt(e,t={}){let r=Qgt(e,t),i=t.lossFunction||X1;if(e.length>=8){let n=Zgt(e,t),a=i(n,e),o=i(r,e);a+1e-8<o&&(r=n)}return r}f(Kgt,"C5t");function Zgt(e,t={}){let r=t.restarts||10,i=[],n={};for(let g of e)g.sets.length===1&&(n[g.sets[0]]=i.length,i.push(g));let{distances:a,constraints:o}=Ygt(e,i,n),l=jI(a.map(jI))/a.length;a=a.map(g=>g.map(m=>m/l));let h=s((g,m)=>Xgt(g,m,a,o),"obj"),u=null;for(let g=0;g<r;++g){let m=qI(a.length*2).map(Math.random),y=Wgt(h,m,t);(!u||y.fx<u.fx)&&(u=y)}let d=u.x,p={};for(let g=0;g<i.length;++g){let m=i[g];p[m.sets[0]]={x:d[2*g]*l,y:d[2*g+1]*l,radius:Math.sqrt(m.size/Math.PI)}}if(t.history)for(let g of t.history)GI(g.x,l);return p}f(Zgt,"k5t");function Qgt(e,t){let r=t&&t.lossFunction?t.lossFunction:X1,i={},n={};for(let p of e)if(p.sets.length===1){let g=p.sets[0];i[g]={x:1e10,y:1e10,rowid:i.length,size:p.size,radius:Math.sqrt(p.size/Math.PI)},n[g]=[]}e=e.filter(p=>p.sets.length===2);for(let p of e){let g=p.weight!=null?p.weight:1,m=p.sets[0],y=p.sets[1];p.size+vhe>=Math.min(i[m].size,i[y].size)&&(g=0),n[m].push({set:y,size:p.size,weight:g}),n[y].push({set:m,size:p.size,weight:g})}let a=[];Object.keys(n).forEach(p=>{let g=0;for(let m=0;m<n[p].length;++m)g+=n[p][m].size*n[p][m].weight;a.push({set:p,size:g})});function o(p,g){return g.size-p.size}f(o,"s"),s(o,"sortOrder"),a.sort(o);let l={};function h(p){return p.set in l}f(h,"u"),s(h,"isPositioned");function u(p,g){i[g].x=p.x,i[g].y=p.y,l[g]=!0}f(u,"h"),s(u,"positionSet"),u({x:0,y:0},a[0].set);for(let p=1;p<a.length;++p){let g=a[p].set,m=n[g].filter(h),y=i[g];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";let x=[];for(var d=0;d<m.length;++d){let _=i[m[d].set],S=UI(y.radius,_.radius,m[d].size);x.push({x:_.x+S,y:_.y}),x.push({x:_.x-S,y:_.y}),x.push({y:_.y+S,x:_.x}),x.push({y:_.y-S,x:_.x});for(let R=d+1;R<m.length;++R){let b=i[m[R].set],v=UI(y.radius,b.radius,m[R].size),k=ihe({x:_.x,y:_.y,radius:S},{x:b.x,y:b.y,radius:v});x.push(...k)}}let C=1e50,w=x[0];for(let _ of x){i[g].x=_.x,i[g].y=_.y;let S=r(i,e);S<C&&(C=S,w=_)}u(w,g)}return i}f(Qgt,"w5t");function X1(e,t){let r=0;for(let i of t){if(i.sets.length===1)continue;let n;if(i.sets.length===2){let o=e[i.sets[0]],l=e[i.sets[1]];n=zI(o.radius,l.radius,So(o,l))}else n=Ww(i.sets.map(o=>e[o]));let a=i.weight!=null?i.weight:1;r+=a*(n-i.size)*(n-i.size)}return r}f(X1,"$y");function lhe(e,t){let r=0;for(let i of t){if(i.sets.length===1)continue;let n;if(i.sets.length===2){let l=e[i.sets[0]],h=e[i.sets[1]];n=zI(l.radius,h.radius,So(l,h))}else n=Ww(i.sets.map(l=>e[l]));let a=i.weight!=null?i.weight:1,o=Math.log((n+1)/(i.size+1));r+=a*o*o}return r}f(lhe,"DLe");function Jgt(e,t,r){if(r==null?e.sort((n,a)=>a.radius-n.radius):e.sort(r),e.length>0){let n=e[0].x,a=e[0].y;for(let o of e)o.x-=n,o.y-=a}if(e.length===2&&So(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,a=Math.cos(n),o=Math.sin(n);for(let l of e){let h=l.x,u=l.y;l.x=a*h-o*u,l.y=o*h+a*u}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let a=e[1].y/(1e-10+e[1].x);for(let o of e){var i=(o.x+a*o.y)/(1+a*a);o.x=2*i-o.x,o.y=2*i*a-o.y}}}}f(Jgt,"S5t");function eft(e){e.forEach(n=>{n.parent=n});function t(n){return n.parent!==n&&(n.parent=t(n.parent)),n.parent}f(t,"t"),s(t,"find");function r(n,a){let o=t(n),l=t(a);o.parent=l}f(r,"r"),s(r,"union");for(let n=0;n<e.length;++n)for(let a=n+1;a<e.length;++a){let o=e[n].radius+e[a].radius;So(e[n],e[a])+1e-10<o&&r(e[a],e[n])}let i=new Map;for(let n=0;n<e.length;++n){let a=t(e[n]).parent.setid;i.has(a)||i.set(a,[]),i.get(a).push(e[n])}return e.forEach(n=>{delete n.parent}),Array.from(i.values())}f(eft,"E5t");function VI(e){let t=s(r=>{let i=e.reduce((a,o)=>Math.max(a,o[r]+o.radius),Number.NEGATIVE_INFINITY),n=e.reduce((a,o)=>Math.min(a,o[r]-o.radius),Number.POSITIVE_INFINITY);return{max:i,min:n}},"minMax");return{xRange:t("x"),yRange:t("y")}}f(VI,"gU");function che(e,t,r){t==null&&(t=Math.PI/2);let i=dhe(e).map(u=>Object.assign({},u)),n=eft(i);for(let u of n){Jgt(u,t,r);let d=VI(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}n.sort((u,d)=>d.size-u.size),i=n[0];let a=i.bounds,o=(a.xRange.max-a.xRange.min)/50;function l(u,d,p){if(!u)return;let g=u.bounds,m,y;if(d)m=a.xRange.max-g.xRange.min+o;else{m=a.xRange.max-g.xRange.max;let x=(g.xRange.max-g.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;x<0&&(m+=x)}if(p)y=a.yRange.max-g.yRange.min+o;else{y=a.yRange.max-g.yRange.max;let x=(g.yRange.max-g.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;x<0&&(y+=x)}for(let x of u)x.x+=m,x.y+=y,i.push(x)}f(l,"l"),s(l,"addCluster");let h=1;for(;h<n.length;)l(n[h],!0,!1),l(n[h+1],!1,!0),l(n[h+2],!0,!0),h+=3,a=VI(i);return uhe(i)}f(che,"RLe");function hhe(e,t,r,i,n){let a=dhe(e);t-=2*i,r-=2*i;let{xRange:o,yRange:l}=VI(a);if(o.max===o.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),e;let h,u;if(n){let m=Math.sqrt(n/Math.PI)*2;h=t/m,u=r/m}else h=t/(o.max-o.min),u=r/(l.max-l.min);let d=Math.min(u,h),p=(t-(o.max-o.min)*d)/2,g=(r-(l.max-l.min)*d)/2;return uhe(a.map(m=>({radius:d*m.radius,x:i+p+(m.x-o.min)*d,y:i+g+(m.y-l.min)*d,setid:m.setid})))}f(hhe,"LLe");function uhe(e){let t={};for(let r of e)t[r.setid]=r;return t}f(uhe,"MLe");function dhe(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}f(dhe,"NLe");function tft(e={}){let t=!1,r=600,i=350,n=15,a=1e3,o=Math.PI/2,l=!0,h=null,u=!0,d=!0,p=null,g=null,m=!1,y=null,x=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,C={},w=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],_=0,S=s(function(k){if(k in C)return C[k];var E=C[k]=w[_];return _+=1,_>=w.length&&(_=0),E},"colours"),R=ohe,b=X1;function v(k){let E=k.datum(),A=new Set;E.forEach(he=>{he.size==0&&he.sets.length==1&&A.add(he.sets[0])}),E=E.filter(he=>!he.sets.some(pe=>A.has(pe)));let I={},$={};if(E.length>0){let he=R(E,{lossFunction:b,distinct:m});l&&(he=che(he,o,g)),I=hhe(he,r,i,n,h),$=ghe(I,E,x)}let O={};E.forEach(he=>{he.label&&(O[he.sets]=he.label)});function j(he){if(he.sets in O)return O[he.sets];if(he.sets.length==1)return""+he.sets[0]}f(j,"_"),s(j,"label"),k.selectAll("svg").data([I]).enter().append("svg");let D=k.select("svg");t?D.attr("viewBox",`0 0 ${r} ${i}`):D.attr("width",r).attr("height",i);let P={},F=!1;D.selectAll(".venn-area path").each(function(he){let pe=this.getAttribute("d");he.sets.length==1&&pe&&!m&&(F=!0,P[he.sets[0]]=nft(pe))});function U(he){return pe=>{let se=he.sets.map(le=>{let ue=P[le],de=I[le];return ue||(ue={x:r/2,y:i/2,radius:1}),de||(de={x:r/2,y:i/2,radius:1}),{x:ue.x*(1-pe)+de.x*pe,y:ue.y*(1-pe)+de.y*pe,radius:ue.radius*(1-pe)+de.radius*pe}});return yhe(se,y)}}f(U,"B"),s(U,"pathTween");let z=D.selectAll(".venn-area").data(E,he=>he.sets),V=z.enter().append("g").attr("class",he=>`venn-area venn-${he.sets.length==1?"circle":"intersection"}${he.colour||he.color?" venn-coloured":""}`).attr("data-venn-sets",he=>he.sets.join("_")),W=V.append("path"),X=V.append("text").attr("class","label").text(he=>j(he)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",i/2);d&&(W.style("fill-opacity","0").filter(he=>he.sets.length==1).style("fill",he=>he.colour?he.colour:he.color?he.color:S(he.sets)).style("fill-opacity",".25"),X.style("fill",he=>he.colour||he.color?"#FFF":e.textFill?e.textFill:he.sets.length==1?S(he.sets):"#444"));function J(he){return typeof he.transition=="function"?he.transition("venn").duration(a):he}f(J,"V"),s(J,"asTransition");let H=k;F&&typeof H.transition=="function"?(H=J(k),H.selectAll("path").attrTween("d",U)):H.selectAll("path").attr("d",he=>yhe(he.sets.map(pe=>I[pe])),y);let te=H.selectAll("text").filter(he=>he.sets in $).text(he=>j(he)).attr("x",he=>Math.floor($[he.sets].x)).attr("y",he=>Math.floor($[he.sets].y));u&&(F?"on"in te?te.on("end",WI(I,j)):te.each("end",WI(I,j)):te.each(WI(I,j)));let ie=J(z.exit()).remove();typeof z.transition=="function"&&ie.selectAll("path").attrTween("d",U);let oe=ie.selectAll("text").attr("x",r/2).attr("y",i/2);return p!==null&&(X.style("font-size","0px"),te.style("font-size",p),oe.style("font-size","0px")),{circles:I,textCentres:$,nodes:z,enter:V,update:H,exit:ie}}return f(v,"k"),s(v,"chart"),v.wrap=function(k){return arguments.length?(u=k,v):u},v.useViewBox=function(){return t=!0,v},v.width=function(k){return arguments.length?(r=k,v):r},v.height=function(k){return arguments.length?(i=k,v):i},v.padding=function(k){return arguments.length?(n=k,v):n},v.distinct=function(k){return arguments.length?(m=k,v):m},v.colours=function(k){return arguments.length?(S=k,v):S},v.colors=function(k){return arguments.length?(S=k,v):S},v.fontSize=function(k){return arguments.length?(p=k,v):p},v.round=function(k){return arguments.length?(y=k,v):y},v.duration=function(k){return arguments.length?(a=k,v):a},v.layoutFunction=function(k){return arguments.length?(R=k,v):R},v.normalize=function(k){return arguments.length?(l=k,v):l},v.scaleToFit=function(k){return arguments.length?(h=k,v):h},v.styled=function(k){return arguments.length?(d=k,v):d},v.orientation=function(k){return arguments.length?(o=k,v):o},v.orientationOrder=function(k){return arguments.length?(g=k,v):g},v.lossFunction=function(k){return arguments.length?(b=k==="default"?X1:k==="logRatio"?lhe:k,v):b},v}f(tft,"ILe");function WI(e,t){return function(r){let i=this,n=e[r.sets[0]].radius||50,a=t(r)||"",o=a.split(/\s+/).reverse(),l=(a.length+o.length)/3,h=o.pop(),u=[h],d=0,p=1.1;i.textContent=null;let g=[];function m(_){let S=i.ownerDocument.createElementNS(i.namespaceURI,"tspan");return S.textContent=_,g.push(S),i.append(S),S}f(m,"g"),s(m,"append");let y=m(h);for(;h=o.pop(),!!h;){u.push(h);let _=u.join(" ");y.textContent=_,_.length>l&&y.getComputedTextLength()>n&&(u.pop(),y.textContent=u.join(" "),u=[h],y=m(h),d++)}let x=.35-d*p/2,C=i.getAttribute("x"),w=i.getAttribute("y");g.forEach((_,S)=>{_.setAttribute("x",C),_.setAttribute("y",w),_.setAttribute("dy",`${x+S*p}em`)})}}f(WI,"cU");function HI(e,t,r){let i=t[0].radius-So(t[0],e);for(let n=1;n<t.length;++n){let a=t[n].radius-So(t[n],e);a<=i&&(i=a)}for(let n=0;n<r.length;++n){let a=So(r[n],e)-r[n].radius;a<=i&&(i=a)}return i}f(HI,"uU");function phe(e,t,r){let i=[];for(let d of e)i.push({x:d.x,y:d.y}),i.push({x:d.x+d.radius/2,y:d.y}),i.push({x:d.x-d.radius/2,y:d.y}),i.push({x:d.x,y:d.y+d.radius/2}),i.push({x:d.x,y:d.y-d.radius/2});let n=i[0],a=HI(i[0],e,t);for(let d=1;d<i.length;++d){let p=HI(i[d],e,t);p>=a&&(n=i[d],a=p)}let o=she(d=>-1*HI({x:d[0],y:d[1]},e,t),[n.x,n.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:r?0:o[0],y:o[1]},h=!0;for(let d of e)if(So(l,d)>d.radius){h=!1;break}for(let d of t)if(So(l,d)<d.radius){h=!1;break}if(h)return l;if(e.length==1)return{x:e[0].x,y:e[0].y};let u={};return Ww(e,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:t.length?phe(e,[]):nhe(u.arcs.map(d=>d.p1))}f(phe,"OLe");function rft(e){let t={},r=Object.keys(e);for(let i of r)t[i]=[];for(let i=0;i<r.length;i++){let n=r[i],a=e[n];for(let o=i+1;o<r.length;++o){let l=r[o],h=e[l],u=So(a,h);u+h.radius<=a.radius+1e-10?t[l].push(n):u+a.radius<=h.radius+1e-10&&t[n].push(l)}}return t}f(rft,"A5t");function ghe(e,t,r){let i={},n=rft(e);for(let a=0;a<t.length;++a){let o=t[a].sets,l={},h={};for(let g=0;g<o.length;++g){l[o[g]]=!0;let m=n[o[g]];for(let y=0;y<m.length;++y)h[m[y]]=!0}let u=[],d=[];for(let g in e)g in l?u.push(e[g]):g in h||d.push(e[g]);let p=phe(u,d,r);i[o]=p,p.disjoint&&t[a].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return i}f(ghe,"PLe");function ift(e,t,r){let i=[];return i.push(` 3240M`,e,t),i.push(` 3241m`,-r,0),i.push(` 3242a`,r,r,0,1,0,r*2,0),i.push(` 3243a`,r,r,0,1,0,-r*2,0),i.join(" ")}f(ift,"_5t");function nft(e){let t=e.split(" ");return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}f(nft,"D5t");function fhe(e){if(e.length===0)return[];let t={};return Ww(e,t),t.arcs}f(fhe,"BLe");function mhe(e,t){if(e.length===0)return"M 0 0";let r=Math.pow(10,t||0),i=t!=null?a=>Math.round(a*r)/r:a=>a;if(e.length==1){let a=e[0].circle;return ift(i(a.x),i(a.y),i(a.radius))}let n=[` 3244M`,i(e[0].p2.x),i(e[0].p2.y)];for(let a of e){let o=i(a.circle.radius);n.push(` 3245A`,o,o,0,a.large?1:0,a.sweep?1:0,i(a.p1.x),i(a.p1.y))}return n.join(" ")}f(mhe,"FLe");function yhe(e,t){return mhe(fhe(e),t)}f(yhe,"kLe");function aft(e,t={}){let{lossFunction:r,layoutFunction:i=ohe,normalize:n=!0,orientation:a=Math.PI/2,orientationOrder:o,width:l=600,height:h=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:p=!1,distinct:g,round:m=2}=t,y=i(e,{lossFunction:r==="default"||!r?X1:r==="logRatio"?lhe:r,distinct:g});n&&(y=che(y,a,o));let x=hhe(y,l,h,u,d),C=ghe(x,e,p),w=new Map(Object.keys(x).map(R=>[R,{set:R,x:x[R].x,y:x[R].y,radius:x[R].radius}])),_=e.map(R=>{let b=R.sets.map(E=>w.get(E)),v=fhe(b),k=mhe(v,m);return{circles:b,arcs:v,path:k,area:R,has:new Set(R.sets)}});function S(R){let b="";for(let v of _)v.has.size>R.length&&R.every(k=>v.has.has(k))&&(b+=" "+v.path);return b}return f(S,"T"),s(S,"genDistinctPath"),_.map(({circles:R,arcs:b,path:v,area:k})=>({data:k,text:C[k.sets],circles:R,arcs:b,path:v,distinctPath:v+S(k.sets)}))}f(aft,"$Le");var vhe,G6t=Y(()=>{"use strict";s(Ww,"intersectionArea"),s(jgt,"containedInCircles"),s(Ggt,"getIntersectionPoints"),s(FI,"circleArea"),s(So,"distance"),s(zI,"circleOverlap"),s(ihe,"circleCircleIntersection"),s(nhe,"getCenter"),s(Ugt,"bisect"),s(qI,"zeros"),s(ahe,"zerosM"),s(Y1,"dot"),s(jI,"norm2"),s(GI,"scale"),s(xu,"weightedSum"),s(she,"nelderMead"),s(Vgt,"wolfeLineSearch"),s(Wgt,"conjugateGradient"),s(ohe,"venn"),vhe=1e-10,s(UI,"distanceFromIntersectArea"),s(Hgt,"addMissingAreas"),s(Ygt,"getDistanceMatrices"),s(Xgt,"constrainedMDSGradient"),s(Kgt,"bestInitialLayout"),s(Zgt,"constrainedMDSLayout"),s(Qgt,"greedyLayout"),s(X1,"lossFunction"),s(lhe,"logRatioLossFunction"),s(Jgt,"orientateCircles"),s(eft,"disjointCluster"),s(VI,"getBoundingBox"),s(che,"normalizeSolution"),s(hhe,"scaleSolution"),s(uhe,"toObjectNotation"),s(dhe,"fromObjectNotation"),s(tft,"VennDiagram"),s(WI,"wrapText"),s(HI,"circleMargin"),s(phe,"computeTextCentre"),s(rft,"getOverlappingCircles"),s(ghe,"computeTextCentres"),s(ift,"circlePath"),s(nft,"circleFromPath"),s(fhe,"intersectionAreaArcs"),s(mhe,"arcsToPath"),s(yhe,"intersectionAreaPath"),s(aft,"layout")});function sft(e){let t=new Map;for(let r of e){let i=r.targets.join("|"),n=t.get(i);n?Object.assign(n,r.styles):t.set(i,Tt({},r.styles))}return t}f(sft,"L5t");function rg(e){return e.join("|")}f(rg,"Sm");function oft(e,t,r,i,n,a){var u,d,p;
3245let o=(u=e==null?void 0:e.useDebugLayout)!=null?u:!1,l=r.select("svg").append("g").attr("class","venn-text-nodes"),h=new Map;for(let g of i){let m=rg(g.sets),y=h.get(m);y?y.push(g):h.set(m,[g])}for(let[g,m]of h.entries()){let y=t.get(g);if(!(y!=null&&y.text))continue;let x=y.text.x,C=y.text.y,w=Math.min(...y.circles.map(D=>D.radius)),_=Math.min(...y.circles.map(D=>D.radius-Math.hypot(x-D.x,C-D.y))),S=Number.isFinite(_)?Math.max(0,_):0;S===0&&Number.isFinite(w)&&(S=w*.6);let R=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*n}px`);o&&R.append("circle").attr("class","venn-text-debug-circle").attr("cx",x).attr("cy",C).attr("r",S).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*n).attr("stroke-dasharray",`${6*n} ${4*n}`);let b=Math.max(80*n,S*2*.95),v=Math.max(60*n,S*2*.95),k=(y.data.label&&y.data.label.length>0?Math.min(32*n,S*.25):0)+(m.length<=2?30*n:0),E=x-b/2,A=C-v/2+k,I=Math.max(1,Math.ceil(Math.sqrt(m.length))),$=Math.max(1,Math.ceil(m.length/I)),O=b/I,j=v/$;for(let[D,P]of m.entries()){let F=D%I,U=Math.floor(D/I),z=E+O*(F+.5),V=A+j*(U+.5);o&&R.append("rect").attr("class","venn-text-debug-cell").attr("x",E+O*F).attr("y",A+j*U).attr("width",O).attr("height",j).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*n).attr("stroke-dasharray",`${4*n} ${3*n}`);let W=O*.9,X=j*.9,J=R.append("foreignObject").attr("class","venn-text-node-fo").attr("width",W).attr("height",X).attr("x",z-W/2).attr("y",V-X/2).attr("overflow","visible"),H=(d=a.get(P.id))==null?void 0:d.color,te=J.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text((p=P.label)!=null?p:P.id);H&&te.style("color",H)}}}f(oft,"N5t");var lft,cft,U6t=Y(()=>{"use strict";ui(),Ya(),ti(),Ho(),G6t(),Bn(),Tr(),s(sft,"buildStyleByKey"),lft=s((e,t,r,i)=>{var j,D,P,F,U,z,V,W;let n=i.db,a=(j=n.getConfig)==null?void 0:j.call(n),{themeVariables:o,look:l,handDrawnSeed:h}=Ir(),u=l==="handDrawn",d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),p=(D=n.getDiagramTitle)==null?void 0:D.call(n),g=n.getSubsetData(),m=n.getTextData(),y=sft(n.getStyleData()),x=(P=a==null?void 0:a.width)!=null?P:800,C=(F=a==null?void 0:a.height)!=null?F:450,w=x/1600,_=p?48*w:0,S=(U=o.primaryTextColor)!=null?U:o.textColor,R=Co(t);R.attr("viewBox",`0 0 ${x} ${C}`),p&&R.append("text").text(p).attr("class","venn-title").attr("font-size",`${32*w}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*w).style("fill",o.vennTitleTextColor||o.titleColor);let b=Lt(document.createElement("div")),v=tft().width(x).height(C-_);b.datum(g).call(v);let k=u?fr.svg(b.select("svg").node()):void 0,E=aft(g,{width:x,height:C-_,padding:(z=a==null?void 0:a.padding)!=null?z:15}),A=new Map;for(let X of E){let J=rg([...X.data.sets].sort());A.set(J,X)}m.length>0&&oft(a,A,b,m,w,y);let I=Is(o.background||"#f4f4f4");b.selectAll(".venn-circle").each(function(X,J){var ue,de;let H=Lt(this),te=rg([...X.sets].sort()),ie=y.get(te),oe=(ie==null?void 0:ie.fill)||d[J%d.length]||o.primaryColor;H.classed(`venn-set-${J%8}`,!0);let he=(ue=ie==null?void 0:ie["fill-opacity"])!=null?ue:.1,pe=(ie==null?void 0:ie.stroke)||oe,se=(ie==null?void 0:ie["stroke-width"])||`${5*w}`;if(u&&k){let we=A.get(te);if(we&&we.circles.length>0){let De=we.circles[0],Ge=k.circle(De.x,De.y,De.radius*2,{roughness:.7,seed:h,fill:gD(oe,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+J*60,stroke:pe,strokeWidth:parseFloat(String(se))});H.select("path").remove(),(de=H.node())==null||de.insertBefore(Ge,H.select("text").node())}}else H.select("path").style("fill",oe).style("fill-opacity",he).style("stroke",pe).style("stroke-width",se).style("stroke-opacity",.95);let le=(ie==null?void 0:ie.color)||(I?mt(oe,30):yt(oe,30));H.select("text").style("font-size",`${48*w}px`).style("fill",le)}),u&&k?b.selectAll(".venn-intersection").each(function(X){var oe,he,pe;let J=Lt(this),H=rg([...X.sets].sort()),te=y.get(H),ie=te==null?void 0:te.fill;if(ie){let se=J.select("path"),le=se.attr("d");if(le){let ue=k.path(le,{roughness:.7,seed:h,fill:gD(ie,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),de=se.node();(oe=de==null?void 0:de.parentNode)==null||oe.insertBefore(ue,de),se.remove()}}else J.select("path").style("fill-opacity",0);J.select("text").style("font-size",`${48*w}px`).style("fill",(pe=(he=te==null?void 0:te.color)!=null?he:o.vennSetTextColor)!=null?pe
3245:S)}):(b.selectAll(".venn-intersection text").style("font-size",`${48*w}px`).style("fill",X=>{var H,te,ie;let J=rg([...X.sets].sort());return(ie=(te=(H=y.get(J))==null?void 0:H.color)!=null?te:o.vennSetTextColor)!=null?ie:S}),b.selectAll(".venn-intersection path").style("fill-opacity",X=>{var H;let J=rg([...X.sets].sort());return(H=y.get(J))!=null&&H.fill?1:0}).style("fill",X=>{var H,te;let J=rg([...X.sets].sort());return(te=(H=y.get(J))==null?void 0:H.fill)!=null?te:"transparent"}));let $=R.append("g").attr("transform",`translate(0, ${_})`),O=b.select("svg").node();if(O&&"childNodes"in O)for(let X of[...O.childNodes])(V=$.node())==null||V.appendChild(X);Ta(R,C,x,(W=a==null?void 0:a.useMaxWidth)!=null?W:!0)},"draw"),s(rg,"stableSetsKey"),s(oft,"renderTextNodes"),cft={draw:lft}}),hft={};Jr(hft,{diagram:f(()=>uft,"diagram")});var uft,V6t=Y(()=>{"use strict";z6t(),q6t(),j6t(),U6t(),uft={parser:Cgt,db:Fgt,renderer:cft,styles:qgt}}),bhe,dft=Y(()=>{"use strict";var e;rs(),ti(),wr(),br(),En(),bhe=(e=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=wn,this.getAccTitle=Pn,this.setDiagramTitle=qn,this.getDiagramTitle=Cn,this.getAccDescription=zn,this.setAccDescription=Fn}getNodes(){return this.nodes}getConfig(){var n;let r=bi,i=Ir();return da(Tt(Tt({},r.treemap),(n=i.treemap)!=null?n:{}))}addNode(r,i){var n;this.nodes.push(r),this.levels.set(r,i),i===0&&(this.outerNodes.push(r),(n=this.root)!=null||(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,i){var o;let n=(o=this.classes.get(r))!=null?o:{id:r,styles:[],textStyles:[]},a=i.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");a&&a.forEach(l=>{CS(l)&&(n!=null&&n.textStyles?n.textStyles.push(l):n.textStyles=[l]),n!=null&&n.styles?n.styles.push(l):n.styles=[l]}),this.classes.set(r,n)}getClasses(){return this.classes}getStylesForClass(r){var i,n;return(n=(i=this.classes.get(r))==null?void 0:i.styles)!=null?n:[]}clear(){Tn(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},f(e,"zy"),s(e,"TreeMapDB"),e)});function pft(e){if(!e.length)return[];let t=[],r=[];return e.forEach(i=>{let n={name:i.name,children:i.type==="Leaf"?void 0:[]};for(n.classSelector=i==null?void 0:i.classSelector,i!=null&&i.cssCompiledStyles&&(n.cssCompiledStyles=i.cssCompiledStyles),i.type==="Leaf"&&i.value!==void 0&&(n.value=i.value);r.length>0&&r[r.length-1].level>=i.level;)r.pop();if(r.length===0)t.push(n);else{let a=r[r.length-1].node;a.children?a.children.push(n):a.children=[n]}i.type!=="Leaf"&&r.push({node:n,level:i.level})}),t}f(pft,"YLe");var W6t=Y(()=>{"use strict";s(pft,"buildHierarchy")}),gft,fft,xhe,H6t=Y(()=>{"use strict";Xc(),jt(),Fd(),W6t(),dft(),gft=s((e,t)=>{var a,o,l,h;uu(e,t);let r=[];for(let u of(a=e.TreemapRows)!=null?a:[])u.$type==="ClassDefStatement"&&t.addClass((o=u.className)!=null?o:"",(l=u.styleText)!=null?l:"");for(let u of(h=e.TreemapRows)!=null?h:[]){let d=u.item;if(!d)continue;let p=u.indent?parseInt(u.indent):0,g=fft(d),m=d.classSelector?t.getStylesForClass(d.classSelector):[],y=m.length>0?m:void 0,x={level:p,name:g,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:y};r.push(x)}let i=pft(r),n=s((u,d)=>{for(let p of u)t.addNode(p,d),p.children&&p.children.length>0&&n(p.children,d+1)},"addNodesRecursively");n(i,0)},"populate"),fft=s(e=>e.name?String(e.name):"","getItemName"),xhe={parser:{yy:void 0},parse:s(async e=>{var t;try{let r=await Kl("treemap",e);ge.debug("Treemap AST:",r);let i=(t=xhe.parser)==null?void 0:t.yy;if(!(i instanceof bhe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");gft(r,i)}catch(r){throw ge.error("Error parsing treemap:",r),r}},"parse")}}),mft,K1,cb,yft,vft,bft,Y6t=Y(()=>{"use strict";Ho(),$f(),Bn(),ui(),br(),ti(),jt(),mft=10,K1=10,cb=25,yft=s((e,t,r,i)=>{var O,j;let n=i.db,a=n.getConfig(),o=(O=a.padding)!=null?O:mft,l=n.getDiagramTitle(),h=n.getRoot(),{themeVariables:u}=Ir();if(!h)return;
3245let d=l?30:0,p=Co(t),g=a.nodeWidth?a.nodeWidth*K1:960,m=a.nodeHeight?a.nodeHeight*K1:500,y=g,x=m+d;p.attr("viewBox",`0 0 ${y} ${x}`),Ta(p,x,y,a.useMaxWidth);let C;try{let D=a.valueFormat||",";if(D==="$0,0")C=s(P=>"$"+wg(",")(P),"valueFormat");else if(D.startsWith("$")&&D.includes(",")){let P=/\.\d+/.exec(D),F=P?P[0]:"";C=s(U=>"$"+wg(","+F)(U),"valueFormat")}else if(D.startsWith("$")){let P=D.substring(1);C=s(F=>"$"+wg(P||"")(F),"valueFormat")}else C=wg(D)}catch(D){ge.error("Error creating format function:",D),C=wg(",")}let w=lp().range(["transparent",u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),_=lp().range(["transparent",u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),S=lp().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);l&&p.append("text").attr("x",y/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(l);let R=p.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),b=aE(h).sum(D=>{var P;return(P=D.value)!=null?P:0}).sort((D,P)=>{var F,U;return((F=P.value)!=null?F:0)-((U=D.value)!=null?U:0)}),v=z2e().size([g,m]).paddingTop(D=>D.children&&D.children.length>0?cb+K1:0).paddingInner(o).paddingLeft(D=>D.children&&D.children.length>0?K1:0).paddingRight(D=>D.children&&D.children.length>0?K1:0).paddingBottom(D=>D.children&&D.children.length>
vendor: 6,280 bytes, lines 3245-3268
32450?K1:0).round(!0)(b),k=v.descendants().filter(D=>D.children&&D.children.length>0),E=R.selectAll(".treemapSection").data(k).enter().append("g").attr("class","treemapSection").attr("transform",D=>`translate(${D.x0},${D.y0})`);E.append("rect").attr("width",D=>D.x1-D.x0).attr("height",cb).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",D=>D.depth===0?"display: none;":""),E.append("clipPath").attr("id",(D,P)=>`clip-section-${t}-${P}`).append("rect").attr("width",D=>Math.max(0,D.x1-D.x0-12)).attr("height",cb),E.append("rect").attr("width",D=>D.x1-D.x0).attr("height",D=>D.y1-D.y0).attr("class",(D,P)=>`treemapSection section${P}`).attr("fill",D=>w(D.data.name)).attr("fill-opacity",.6).attr("stroke",D=>_(D.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",D=>{if(D.depth===0)return"display: none;";let P=pr({cssCompiledStyles:D.data.cssCompiledStyles});return P.nodeStyles+";"+P.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",cb/2).attr("dominant-baseline","middle").text(D=>D.depth===0?"":D.data.name).attr("font-weight","bold").attr("style",D=>{if(D.depth===0)return"display: none;";let P="dominant-baseline: middle; font-size: 12px; fill:"+S(D.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",F=pr({cssCompiledStyles:D.data.cssCompiledStyles});return P+F.labelStyles.replace("color:","fill:")}).each(function(D){if(D.depth===0)return;let P=Lt(this),F=D.data.name;P.text(F);let U=D.x1-D.x0,z=6,V;a.showValues!==!1&&D.value?V=U-10-30-10-z:V=U-z-6;let W=Math.max(15,V),X=P.node();if(X.getComputedTextLength()>W){let J=F;for(;J.length>0;){if(J=F.substring(0,J.length-1),J.length===0){P.text("..."),X.getComputedTextLength()>W&&P.text("");break}if(P.text(J+"..."),X.getComputedTextLength()<=W)break}}}),a.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",D=>D.x1-D.x0-10).attr("y",cb/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(D=>D.value?C(D.value):"").attr("font-style","italic").attr("style",D=>{if(D.depth===0)return"display: none;";let P="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+S(D.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",F=pr({cssCompiledStyles:D.data.cssCompiledStyles});return P+F.labelStyles.replace("color:","fill:")});let A=v.leaves(),I=R.selectAll(".treemapLeafGroup").data(A).enter().append("g").attr("class",(D,P)=>`treemapNode treemapLeafGroup leaf${P}${D.data.classSelector?` ${D.data.classSelector}`:""}x`).attr("transform",D=>`translate(${D.x0},${D.y0})`);I.append("rect").attr("width",D=>D.x1-D.x0).attr("height",D=>D.y1-D.y0).attr("class","treemapLeaf").attr("fill",D=>D.parent?w(D.parent.data.name):w(D.data.name)).attr("style",D=>pr({cssCompiledStyles:D.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",D=>D.parent?w(D.parent.data.name):w(D.data.name)).attr("stroke-width",3),I.append("clipPath").attr("id",(D,P)=>`clip-${t}-${P}`).append("rect").attr("width",D=>Math.max(0,D.x1-D.x0-4)).attr("height",D=>Math.max(0,D.y1-D.y0-4)),I.append("text").attr("class","treemapLabel").attr("x",D=>(D.x1-D.x0)/2).attr("y",D=>(D.y1-D.y0)/2).attr("style",D=>{let P="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+S(D.data.name)+";",F=pr({cssCompiledStyles:D.data.cssCompiledStyles});return P+F.labelStyles.replace("color:","fill:")}).attr("clip-path",(D,P)=>`url(#clip-${t}-${P})`).text(D=>D.data.name).each(function(D){let P=Lt(this),F=D.x1-D.x0,U=D.y1-D.y0,z=P.node(),V=4,W=F-2*V,X=U-2*V;if(W<10||X<10){P.style("display","none");return}let J=parseInt(P.style("font-size"),10),H=8,te=28,ie=.6,oe=6,he=2;for(;z.getComputedTextLength()>W&&J>H;)J--,P.style("font-size",`${J}px`);let pe=Math.max(oe,Math.min(te,Math.round(J*ie))),se=J+he+pe;for(;se>X&&J>H&&(J--,pe=Math.max(oe,Math.min(te,Math.round(J*ie))),!(pe<oe&&J===H));)P.style("font-size",`${J}px`),se=J+he+pe,pe<=oe&&se>X;P.style("font-size",`${J}px`),(z.getComputedTextLength()>W||J<H||X<J)&&P.style("display","none")}),a.showValues!==!1&&I.append("text").attr("class","treemapValue").attr("x",D=>(D.x1-D.x0)/2).attr("y",function(D){return(D.y1-D.y0)/2}).attr("style",D=>{let P="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+S(D.data.name)+";",F=pr({cssCompiledStyles:D.data.cssCompiledStyles});return P+F.labelStyles.replace("color:","fill:")}).attr("clip-path",(D,P)=>`url(#clip-${t}-${P})`).text(D=>D.value?C(D.value):"").each(function(D){let P=Lt(this),F=this.parentNode;if(!F){P.style("display","none");return}let U=Lt(F).select(".treemapLabel");if(U.empty()||U.style("display")==="none"){P.style("display","none");return}let z=parseFloat(U.style("font-size")),V=28,W=.6,X=6,J=2,H=Math.max(X,Math.min(V,Math.round(z*W)));P.style("font-size",`${H}px`);let te=(D.y1-D.y0)/2+z/2+J;P.attr("y",te);let ie=D.x1-D.x0,oe=D.y1-D.y0-4,he=ie-8;P.node().getComputedTextLength()>he||te+H>oe||H<X?P.style("display","none"):P.style("display",null)});let $=(j=a.diagramPadding)!=null?j:8;Hp(p,$,"flowchart",(a==null?void 0:a.useMaxWidth)||!1)},"draw"),vft=s(function(e,t){return t.db.getClasses()},"getClasses"),bft={draw:yft,getClasses:vft}}),xft,kft,Tft,X6t=Y(()=>{"use strict";wr(),om(),ti(),xft={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},kft=s(({treemap:e}={})=>{var h,u,d;let t=sg(),r=Ir(),i=da(t,r.themeVariables),n=da(xft,e),a=(h=n.titleColor)!=null?h:i.titleColor,o=(u=n.labelColor)!=null?u:i.textColor,l=(d=n.valueColor)!=null?d:i.textColor;return` 3246 .treemapNode.section { 3247 stroke: ${n.sectionStrokeColor}; 3248 stroke-width: ${n.sectionStrokeWidth}; 3249 fill: ${n.sectionFillColor}; 3250 } 3251 .treemapNode.leaf { 3252 stroke: ${n.leafStrokeColor}; 3253 stroke-width: ${n.leafStrokeWidth}; 3254 fill: ${n.leafFillColor}; 3255 } 3256 .treemapLabel { 3257 fill: ${o}; 3258 font-size: ${n.labelFontSize}; 3259 } 3260 .treemapValue { 3261 fill: ${l}; 3262 font-size: ${n.valueFontSize}; 3263 } 3264 .treemapTitle { 3265 fill: ${a}; 3266 font-size: ${n.titleFontSize}; 3267 } 3268 `},"getStyles"),Tft=kft}),wft={};
3268Jr(wft,{diagram:f(()=>Cft,"diagram")});var Cft,K6t=Y(()=>{"use strict";dft(),H6t(),Y6t(),X6t(),Cft={parser:xhe,get db(){return new bhe},renderer:bft,styles:Tft}}),Hw,ig,khe,Eft,Sft,The,Z6t=Y(()=>{"use strict";Xc(),jt(),Fd(),Hw=s((e,t)=>{let r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),ig=s((e,t,r)=>({x:Hw(t,`${r} evolution`),y:Hw(e,`${r} visibility`)}),"toCoordinates"),khe=s(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Eft=s(e=>{var r;if(!(e!=null&&e.startsWith("+")))return{};let t=(r=/^\+'([^']*)'/.exec(e))==null?void 0:r[1];return e.includes("<>")?{flow:"bidirectional",label:t}:e.includes("<")?{flow:"backward",label:t}:e.includes(">")?{flow:"forward",label:t}:{label:t}},"extractFlowFromArrow"),Sft=s((e,t)=>{if(uu(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),i=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);t.updateAxes({stages:r,stageBoundaries:i})}if(e.anchors.forEach(r=>{let i=ig(r.visibility,r.evolution,`Anchor "${r.name}"`);t.addNode(r.name,r.name,i.x,i.y,"anchor")}),e.components.forEach(r=>{var l;let i=ig(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,a=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,o=(l=r.decorator)==null?void 0:l.strategy;t.addNode(r.name,r.name,i.x,i.y,"component",n,a,r.inertia,o)}),e.notes.forEach(r=>{let i=ig(r.visibility,r.evolution,`Note "${r.text}"`);t.addNote(r.text,i.x,i.y)}),e.pipelines.forEach(r=>{let i=t.getNode(r.parent);if(!i||typeof i.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);let n=i.y;t.startPipeline(r.parent),r.components.forEach(a=>{let o=`${r.parent}_${a.name}`,l=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,h=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,u=Hw(a.evolution,`Pipeline component "${a.name}" evolution`);t.addNode(o,a.name,u,n,"pipeline-component",l,h),t.addPipelineComponent(r.parent,o)})}),e.links.forEach(r=>{var u;let i=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-.")),n=(u=khe(r.fromPort))!=null?u:khe(r.toPort),{flow:a,label:o}=Eft(r.arrow);!n&&a&&(n=a);let l=r.linkLabel,h=o!=null?o:l;t.addLink(t.resolveNodeId(r.from),t.resolveNodeId(r.to),i,h,n)}),e.evolves.forEach(r=>{let i=t.getNode(r.component);if((i==null?void 0:i.y)!==void 0){let n=Hw(r.target,`Evolve target for "${r.component}"`);t.addTrend(r.component,n,i.y)}}),e.annotations.length>0){let r=e.annotations[0],i=ig(r.x,r.y,"Annotations box");t.setAnnotationsBox(i.x,i.y)}e.annotation.forEach(r=>{let i=ig(r.x,r.y,`Annotation ${r.number}`);t.addAnnotation(r.number,[{x:i.x,y:i.y}],r.text)}),e.accelerators.forEach(r=>{let i=ig(r.x,r.y,`Accelerator "${r.name}"`);t.addAccelerator(r.name,i.x,i.y)}),e.deaccelerators.forEach(r=>{let i=ig(r.x,r.y,`Deaccelerator "${r.name}"`);t.addDeaccelerator(r.name,i.x,i.y)})},"populateDb"),The={parser:{yy:void 0},parse:s(async e=>{var i;let t=await Kl("wardley",e);ge.debug(t);let r=(i=The.parser)==null?void 0:i.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Sft(t,r)},"parse")}}),_ft,Q6t=Y(()=>{"use strict";var e;_ft=(e=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){var a,o,l,h;let i=(a=this.nodes.get(r.id))!=null?a:{id:r.id,label:r.label},n=_r(Tt(Tt({},i),r),{className:(o=r.className)!=null?o:i.className,labelOffsetX:(l=r.labelOffsetX)!=null?l:i.labelOffsetX,labelOffsetY:(h=r.labelOffsetY)!=null?h:i.labelOffsetY});this.nodes.set(r.id,n)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});let i=this.nodes.get(r);i&&(i.isPipelineParent=!0)}addPipelineComponent(r,i){let n=this.pipelines.get(r);n&&n.componentIds.push(i);let a=this.nodes.get(i);a&&(a.inPipeline=!0)}
3268addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,i){this.annotationsBox={x:r,y:i}}setAxes(r){this.axes=Tt(Tt({},this.axes),r)}setSize(r,i){this.size={width:r,height:i}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(let[i,n]of this.nodes)if(n.label===r)return i;return r}build(){let r=[];for(let i of this.nodes.values()){if(typeof i.x!="number"||typeof i.y!="number")throw new Error(`Node "${i.label}" is missing coordinates`);r.push(i)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:Tt({},this.axes),size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},f(e,"N_"),s(e,"WardleyBuilder"),e)});function Aft(){return Ue()["wardley-beta"]}f(Aft,"K5t");function Lft(e,t,r,i,n,a,o,l,h){Ls.addNode({id:e,label:t,x:r,y:i,className:n,labelOffsetX:a,labelOffsetY:o,inertia:l,sourceStrategy:h})}f(Lft,"Z5t");function Rft(e,t,r=!1,i,n){Ls.addLink({source:e,target:t,dashed:r,label:i,flow:n})}f(Rft,"Q5t");function Ift(e,t,r){Ls.addTrend({nodeId:e,targetX:t,targetY:r})}f(Ift,"J5t");function Dft(e,t,r){Ls.addAnnotation({number:e,coordinates:t,text:r})}f(Dft,"eAt");function Nft(e,t,r){Ls.addNote({text:e,x:t,y:r})}f(Nft,"tAt");function Mft(e,t,r){Ls.addAccelerator({name:e,x:t,y:r})}f(Mft,"rAt");function Oft(e,t,r){Ls.addDeaccelerator({name:e,x:t,y:r})}f(Oft,"iAt");function $ft(e,t){Ls.setAnnotationsBox(e,t)}f($ft,"nAt");function Bft(e,t){Ls.setSize(e,t)}f(Bft,"aAt");function Pft(e){Ls.startPipeline(e)}f(Pft,"sAt");function Fft(e,t){Ls.addPipelineComponent(e,t)}f(Fft,"oAt");function zft(e){Ls.setAxes(e)}f(zft,"lAt");function qft(e){return Ls.getNode(e)}f(qft,"cAt");function jft(e){return Ls.resolveNodeId(e)}f(jft,"uAt");function Gft(){return Ls.build()}f(Gft,"hAt");function Uft(){Ls.clear(),Tn()}f(Uft,"dAt");var Ls,Vft,J6t=Y(()=>{"use strict";vr(),En(),Q6t(),Ls=new _ft,s(Aft,"getConfig"),s(Lft,"addNode"),s(Rft,"addLink"),s(Ift,"addTrend"),s(Dft,"addAnnotation"),s(Nft,"addNote"),s(Mft,"addAccelerator"),s(Oft,"addDeaccelerator"),s($ft,"setAnnotationsBox"),s(Bft,"setSize"),s(Pft,"startPipeline"),s(Fft,"addPipelineComponent"),s(zft,"updateAxes"),s(qft,"getNode"),s(jft,"resolveNodeId"),s(Gft,"getWardleyData"),s(Uft,"clear"),Vft={getConfig:Aft,addNode:Lft,addLink:Rft,addTrend:Ift,addAnnotation:Dft,addNote:Nft,addAccelerator:Mft,addDeaccelerator:Oft,setAnnotationsBox:$ft,setSize:Bft,startPipeline:Pft,addPipelineComponent:Fft,updateAxes:zft,getNode:qft,resolveNodeId:jft,getWardleyData:Gft,clear:Uft,setAccTitle:wn,getAccTitle:Pn,setDiagramTitle:qn,getDiagramTitle:Cn,getAccDescription:zn,setAccDescription:Fn}}),Wft,Hft,Yft,Xft,Kft,eEt=Y(()=>{"use strict";vr(),jt(),Ho(),Bn(),Wft=["Genesis","Custom Built","Product","Commodity"],Hft=s(()=>{var t,r,i,n,a,o,l,h,u,d,p,g,m,y,x,C,w,_,S,R,b,v,k,E,A,I,$,O,j;let{themeVariables:e}=Ue();return{backgroundColor:(i=(r=(t=e.wardley)==null?void 0:t.backgroundColor)!=null?r:e.background)!=null?i:"#fff",axisColor:(a=(n=e.wardley)==null?void 0:n.axisColor)!=null?a:"#000",axisTextColor:(h=(l=(o=e.wardley)==null?void 0:o.axisTextColor)!=null?l:e.primaryTextColor)!=null?h:"#222",gridColor:(d=(u=e.wardley)==null?void 0:u.gridColor)!=null?d:"rgba(100, 100, 100, 0.2)",componentFill:(g=(p=e.wardley)==null?void 0:p.componentFill)!=null?g:"#fff",componentStroke:(y=(m=e.wardley)==null?void 0:m.componentStroke)!=null?y:"#000",componentLabelColor:(w=(C=(x=e.wardley)==null?void 0:x.componentLabelColor)!=null?C:e.primaryTextColor)!=null?w:"#222",linkStroke:(S=(_=e.wardley)==null?void 0:_.linkStroke)!=null?S:"#000",evolutionStroke:(b=(R=e.wardley)==null?void 0:R.evolutionStroke)!=null?b:"#dc3545",annotationStroke:(k=(v=e.wardley)==null?void 0:v.annotationStroke)!=null?k:"#000",annotationTextColor:(I=(A=(E=e.wardley)==null?void 0:E.annotationTextColor)!=null?A:e.primaryTextColor)!=null?I:"#222",annotationFill:(j=(O=($=e.wardley)==null?void 0:$.annotationFill)!=null?O:e.background)!=null?j:"#fff"}},"getTheme"),Yft=s(()=>{var t,r,i,n,a,o,l,h,u;let e=Ue()["wardley-beta"];return{width:(t=e==null?void 0:e.width)!=null?t:900,height:(r=e==null?void 0:e.he
vendor: 4,242 bytes, lines 3268-3269
3268ight)!=null?r:600,padding:(i=e==null?void 0:e.padding)!=null?i:48,nodeRadius:(n=e==null?void 0:e.nodeRadius)!=null?n:6,nodeLabelOffset:(a=e==null?void 0:e.nodeLabelOffset)!=null?a:8,axisFontSize:(o=e==null?void 0:e.axisFontSize)!=null?o:12,labelFontSize:(l=e==null?void 0:e.labelFontSize)!=null?l:10,showGrid:(h=e==null?void 0:e.showGrid)!=null?h:!1,useMaxWidth:(u=e==null?void 0:e.useMaxWidth)!=null?u:!0}},"getConfigValues"),Xft=s((e,t,r,i)=>{var U,z,V,W,X,J;ge.debug(`Rendering Wardley map 3269`+e);let n=Yft(),a=Hft(),o=n.nodeRadius*1.6,l=i.db,h=l.getWardleyData(),u=l.getDiagramTitle(),d=(z=(U=h.size)==null?void 0:U.width)!=null?z:n.width,p=(W=(V=h.size)==null?void 0:V.height)!=null?W:n.height,g=Co(t);g.selectAll("*").remove(),Ta(g,p,d,n.useMaxWidth),g.attr("viewBox",`0 0 ${d} ${p}`);let m=g.append("g").attr("class","wardley-map"),y=g.append("defs");y.append("marker").attr("id",`arrow-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.evolutionStroke).attr("stroke","none"),y.append("marker").attr("id",`link-arrow-end-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",a.linkStroke).attr("stroke","none"),y.append("marker").attr("id",`link-arrow-start-${t}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",a.linkStroke).attr("stroke","none"),m.append("rect").attr("class","wardley-background").attr("width",d).attr("height",p).attr("fill",a.backgroundColor);let x=d-n.padding*2,C=p-n.padding*2;u&&m.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",n.padding/2).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);let w=s(H=>n.padding+H/100*x,"projectX"),_=s(H=>p-n.padding-H/100*C,"projectY"),S=m.append("g").attr("class","wardley-axes");S.append("line").attr("x1",n.padding).attr("x2",d-n.padding).attr("y1",p-n.padding).attr("y2",p-n.padding).attr("stroke",a.axisColor).attr("stroke-width",1),S.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",p-n.padding).attr("stroke",a.axisColor).attr("stroke-width",1);let R=(X=h.axes.xLabel)!=null?X:"Evolution",b=(J=h.axes.yLabel)!=null?J:"Visibility";S.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+x/2).attr("y",p-n.padding/4).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(R),S.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+C/2).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+C/2})`).text(b);let v=h.axes.stages&&h.axes.stages.length>0?h.axes.stages:Wft;if(v.length>0){let H=m.append("g").attr("class","wardley-stages"),te=h.axes.stageBoundaries,ie=[];if(te&&te.length===v.length){let oe=0;te.forEach(he=>{ie.push({start:oe,end:he}),oe=he})}else{let oe=1/v.length;v.forEach((he,pe)=>{ie.push({start:pe*oe,end:(pe+1)*oe})})}v.forEach((oe,he)=>{let pe=ie[he],se=n.padding+pe.start*x,le=n.padding+pe.end*x,ue=(se+le)/2;he>0&&H.append("line").attr("x1",se).attr("x2",se).attr("y1",n.padding).attr("y2",p-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),H.append("text").attr("class","wardley-stage-label").attr("x",ue).attr("y",p-n.padding/1.5).attr("fill",a.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(oe)})}if(n.showGrid){let H=m.append("g").attr("class","wardley-grid");for(let te=1;te<4;te++){let ie=te/4,oe=n.padding+x*ie;H.append("line").attr("x1",oe).attr("x2",oe).attr("y1",n.padding).attr("y2",p-n.padding).attr("stroke",a.gridColor).attr("stroke-dasharray","2
32696"),H.append("line").attr("x1",n.padding).attr("x2",d-n.padding).attr("y1",p-n.padding-C*ie).attr("y2",p-n.padding-C*ie).attr("stroke",a.gridColor).attr("stroke-dasharray","2 6")}}let k=new Map;if(h.nodes.forEach(H=>{k.set(H.id,{x:w(H.x),y:_(H.y),node:H})}),h.pipelines.length>0){let H=m.append("g").attr("class","wardley-pipelines"),te=m.append("g").attr("class","wardley-pipeline-links");h.pipelines.forEach(ie=>{if(ie.componentIds.length===0)return;let oe=ie.componentIds.map(le=>({id:le,pos:k.get(le),node:h.nodes.find(ue=>ue.id===le)})).filter(le=>le.pos&&le.node).sort((le,ue)=>le.node.x-ue.node.x);for(let le=0;le<oe.length-1;le++){let ue=oe[le],de=oe[le+1];te.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",ue.pos.x).attr("y1",ue.pos.y).attr("x2",de.pos.x).attr("y2",de.pos.y).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let he=1/0,pe=-1/0,se=0;if(ie.componentIds.forEach(le=>{let ue=k.get(le);ue&&(he=Math.min(he,ue.x),pe=Math.max(pe,ue.x),se=ue.y)}),he!==1/0&&pe!==-1/0){let le=n.nodeRadius*4,ue=se-le/2,de=k.get(ie.nodeId);if(de){let we=(he+pe)/2;de.x=we,de.y=ue-o/6}H.append("rect").attr("class","wardley-pipeline-box").attr("x",he-15).attr("y",ue).attr("width",pe-he+30).attr("height",le).attr("fill","none").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let E=m.append("g").attr("class","wardley-links"),A=new Map;h.pipelines.forEach(H=>{A.set(H.nodeId,new Set(H.componentIds))});let I=h.links.filter(H=>{var te;return!(!k.has(H.source)||!k.has(H.target)||(te=A.get(H.target))!=null&&te.has(H.source))});E.selectAll("line").data(I).enter().append("line").attr("class",H=>`wardley-link${H.dashed?" wardley-link--dashed":""}`).attr("x1",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=h.nodes.find(le=>le.id===H.source).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,he=ie.x-te.x,pe=ie.y-te.y,se=Math.sqrt(he*he+pe*pe);return te.x+he/se*oe}).attr("y1",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=h.nodes.find(le=>le.id===H.source).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,he=ie.x-te.x,pe=ie.y-te.y,se=Math.sqrt(he*he+pe*pe);return te.y+pe/se*oe}).attr("x2",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=h.nodes.find(le=>le.id===H.target).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,he=te.x-ie.x,pe=te.y-ie.
vendor: 6,956 bytes, line 3269
3269y,se=Math.sqrt(he*he+pe*pe);return ie.x+he/se*oe}).attr("y2",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=h.nodes.find(le=>le.id===H.target).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,he=te.x-ie.x,pe=te.y-ie.y,se=Math.sqrt(he*he+pe*pe);return ie.y+pe/se*oe}).attr("stroke",a.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",H=>H.dashed?"6 6":null).attr("marker-end",H=>H.flow==="forward"||H.flow==="bidirectional"?`url(#link-arrow-end-${t})`:null).attr("marker-start",H=>H.flow==="backward"||H.flow==="bidirectional"?`url(#link-arrow-start-${t})`:null),E.selectAll("text").data(I.filter(H=>H.label)).enter().append("text").attr("class","wardley-link-label").attr("x",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=(te.x+ie.x)/2,he=ie.y-te.y,pe=ie.x-te.x,se=Math.sqrt(pe*pe+he*he),le=8,ue=he/se;return oe+ue*le}).attr("y",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=(te.y+ie.y)/2,he=ie.x-te.x,pe=ie.y-te.y,se=Math.sqrt(he*he+pe*pe),le=8,ue=-he/se;return oe+ue*le}).attr("fill",a.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",H=>{let te=k.get(H.source),ie=k.get(H.target),oe=(te.x+ie.x)/2,he=(te.y+ie.y)/2,pe=ie.x-te.x,se=ie.y-te.y,le=Math.sqrt(pe*pe+se*se),ue=8,de=se/le,we=-pe/le,De=oe+de*ue,Ge=he+we*ue,be=Math.atan2(se,pe)*180/Math.PI;return(be>90||be<-90)&&(be+=180),`rotate(${be} ${De} ${Ge})`}).text(H=>H.label);let $=m.append("g").attr("class","wardley-trends"),O=h.trends.map(H=>{let te=k.get(H.nodeId);if(!te)return null;let ie=w(H.targetX),oe=_(H.targetY),he=ie-te.x,pe=oe-te.y,se=Math.sqrt(he*he+pe*pe),le=n.nodeRadius+2,ue=se>le?ie-he/se*le:ie,de=se>le?oe-pe/se*le:oe;return{origin:te,targetX:ie,targetY:oe,adjustedX2:ue,adjustedY2:de}}).filter(H=>H!==null);$.selectAll("line").data(O).enter().append("line").attr("class","wardley-trend").attr("x1",H=>H.origin.x).attr("y1",H=>H.origin.y).attr("x2",H=>H.adjustedX2).attr("y2",H=>H.adjustedY2).attr("stroke",a.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${t})`);let j=m.append("g").attr("class","wardley-nodes").selectAll("g").data(h.nodes).enter().append("g").attr("class",H=>["wardley-node",H.className?`wardley-node--${H.className}`:""].filter(Boolean).join(" "));j.filter(H=>H.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y).attr("r",n.nodeRadius*2).attr("fill","#666").attr("stroke",a.componentStroke).attr("stroke-width",1),j.filter(H=>H.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y).attr("r",n.nodeRadius*2).attr("fill","#ccc").attr("stroke",a.componentStroke).attr("stroke-width",1),j.filter(H=>H.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y).attr("r",n.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let D=j.filter(H=>H.sourceStrategy==="market");D.append("circle").attr("class","wardley-market-overlay").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y).attr("r",n.nodeRadius*2).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),j.filter(H=>!H.isPipelineParent&&H.sourceStrategy!=="market"&&H.className!=="anchor").append("circle").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y).attr("r",n.nodeRadius).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1);let P=n.nodeRadius*.7,F=n.nodeRadius*1.2;if(D.append("line").attr("class","wardley-market-line").attr("x1",H=>k.get(H.id).x).attr("y1",H=>k.get(H.id).y-F).attr("x2",H=>k.get(H.id).x-F*Math.cos(Math.PI/6)).attr("y2",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",H=>k.get(H.id).x-F*Math.cos(Math.PI/6)).attr("y1",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("x2",H=>k.get(H.id).x+F*Math.cos(Math.PI/6)).attr("y2",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",H=>k.get(H.id).x+F*Math.cos(Math.PI/6)).attr("y1",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("x2",H=>k.get(H.id).x).attr("y2",H=>k.get(H.id).y-F).attr("stroke",a.componentStroke).attr("stroke-width",1),D.append("circle").attr("class","wardley-market-dot").attr("cx",H=>k.get(H.id).x).attr("cy",H=>k.get(H.id).y-F).attr("r",P).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",H=>k.get(H.id).x-F*Math.cos(Math.PI/6)).attr("cy",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("r",P).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",H=>k.get(H.id).x+F*Math.cos(Math.PI/6)).attr("cy",H=>k.get(H.id).y+F*Math.sin(Math.PI/6)).attr("r",P).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",2),j.filter(H=>H.isPipelineParent===!0).append("rect").attr("x",H=>k.get(H.id).x-o/2).attr("y",H=>k.get(H.id).y-o/2).attr("width",o).attr("height",o).attr("fill",a.componentFill).attr("stroke",a.componentStroke).attr("stroke-width",1),j.filter(H=>H.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",H=>{let te=k.get(H.id),ie=H.isPipelineParent?o/2+15:n.nodeRadius+15;return H.sourceStrategy&&(ie+=n.nodeRadius+10),te.x+ie}).attr("y1",H=>{let te=k.get(H.id),ie=H.isPipelineParent?o:n.nodeRadius*2;return te.y-ie/2}).attr("x2",H=>{let te=k.get(H.id),ie=H.isPipelineParent?o/2+15:n.nodeRadius+15;return H.sourceStrategy&&(ie+=n.nodeRadius+10),te.x+ie}).attr("y2",H=>{let te=k.get(H.id),ie=H.isPipelineParent?o:n.nodeRadius*2;return te.y+ie/2}).attr("stroke",a.componentStroke).attr("stroke-width",6),j.append("text").attr("x",H=>{var he;let te=k.get(H.id);if(H.className==="anchor")return H.labelOffsetX!==void 0?te.x+H.labelOffsetX:te.x;let ie=n.nodeLabelOffset;H.sourceStrategy&&H.labelOffsetX===void 0&&(ie+=10);let oe=(he=H.labelOffsetX)!=null?he:ie;return te.x+oe}).attr("y",H=>{var he;let te=k.get(H.id);if(H.className==="anchor")return H.labelOffsetY!==void 0?te.y+H.labelOffsetY:te.y-3;let ie=-n.nodeLabelOffset;H.sourceStrategy&&H.labelOffsetY===void 0&&(ie-=10);let oe=(he=H.labelOffsetY)!=null?he:ie;return te.y+oe}).attr("class","wardley-node-label").attr("fill",H=>H.className==="evolved"?a.evolutionStroke:H.className==="anchor"?"#000":a.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",H=>H.className==="anchor"?"bold":"normal").attr("text-anchor",H=>H.className==="anchor"?"middle":"start").attr("dominant-baseline",H=>H.className==="anchor"?"middle":"auto").text(H=>H.label),h.annotations.length>0){let H=m.append("g").attr("class","wardley-annotations");
vendor: 4,898 bytes, lines 3269-3345
3269if(h.annotations.forEach(te=>{let ie=te.coordinates.map(oe=>({x:w(oe.x),y:_(oe.y)}));if(ie.length>1)for(let oe=0;oe<ie.length-1;oe++)H.append("line").attr("class","wardley-annotation-line").attr("x1",ie[oe].x).attr("y1",ie[oe].y).attr("x2",ie[oe+1].x).attr("y2",ie[oe+1].y).attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");ie.forEach(oe=>{let he=H.append("g").attr("class","wardley-annotation");he.append("circle").attr("cx",oe.x).attr("cy",oe.y).attr("r",10).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5),he.append("text").attr("x",oe.x).attr("y",oe.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(te.number)})}),h.annotationsBox){let te=w(h.annotationsBox.x),ie=_(h.annotationsBox.y),oe=10,he=16,pe=11,se=H.append("g").attr("class","wardley-annotations-box"),le=[...h.annotations].filter(de=>de.text).sort((de,we)=>de.number-we.number),ue=[];if(le.forEach((de,we)=>{let De=se.append("text").attr("x",te+oe).attr("y",ie+oe+(we+1)*he).attr("font-size",pe).attr("fill",a.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${de.number}. ${de.text}`);ue.push(De)}),ue.length>0){let de=0,we=0;ue.forEach(ke=>{let Qe=ke.node(),Pe=Qe.getComputedTextLength();de=Math.max(de,Pe);let ht=Qe.getBBox();we=Math.max(we,ht.height)});let De=de+oe*2+105,Ge=le.length*he+oe*2+we/2,be=n.padding,qe=d-n.padding-De,Ie=n.padding,Be=p-n.padding-Ge;te=Math.max(be,Math.min(te,qe)),ie=Math.max(Ie,Math.min(ie,Be)),ue.forEach((ke,Qe)=>{ke.attr("x",te+oe).attr("y",ie+oe+(Qe+1)*he)}),se.insert("rect","text").attr("x",te).attr("y",ie).attr("width",De).attr("height",Ge).attr("fill","white").attr("stroke",a.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(h.notes.length>0){let H=m.append("g").attr("class","wardley-notes");h.notes.forEach(te=>{let ie=w(te.x),oe=_(te.y);H.append("text").attr("x",ie).attr("y",oe).attr("text-anchor","start").attr("font-size",11).attr("fill",a.axisTextColor).attr("font-weight","bold").text(te.text)})}if(h.accelerators.length>0){let H=m.append("g").attr("class","wardley-accelerators");h.accelerators.forEach(te=>{let ie=w(te.x),oe=_(te.y),he=60,pe=30,se=20,le=` 3270 M ${ie} ${oe-pe/2} 3271 L ${ie+he-se} ${oe-pe/2} 3272 L ${ie+he-se} ${oe-pe/2-8} 3273 L ${ie+he} ${oe} 3274 L ${ie+he-se} ${oe+pe/2+8} 3275 L ${ie+he-se} ${oe+pe/2} 3276 L ${ie} ${oe+pe/2} 3277 Z 3278 `;H.append("path").attr("d",le).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),H.append("text").attr("x",ie+he/2).attr("y",oe+pe/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(te.name)})}if(h.deaccelerators.length>0){let H=m.append("g").attr("class","wardley-deaccelerators");h.deaccelerators.forEach(te=>{let ie=w(te.x),oe=_(te.y),he=60,pe=30,se=20,le=` 3279 M ${ie+he} ${oe-pe/2} 3280 L ${ie+se} ${oe-pe/2} 3281 L ${ie+se} ${oe-pe/2-8} 3282 L ${ie} ${oe} 3283 L ${ie+se} ${oe+pe/2+8} 3284 L ${ie+se} ${oe+pe/2} 3285 L ${ie+he} ${oe+pe/2} 3286 Z 3287 `;H.append("path").attr("d",le).attr("fill","white").attr("stroke",a.componentStroke).attr("stroke-width",1),H.append("text").attr("x",ie+he/2).attr("y",oe+pe/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",a.axisTextColor).attr("font-weight","bold").text(te.name)})}},"draw"),Kft={draw:Xft}}),Zft,tEt=Y(()=>{"use strict";wr(),om(),ti(),Zft=s(({wardley:e}={})=>{let t=sg(),r=Ir(),i=da(t,r.themeVariables),n=da(i.wardley,e);return` 3288 .wardley-background { 3289 fill: ${n.backgroundColor}; 3290 } 3291 .wardley-axes line, .wardley-axes path { 3292 stroke: ${n.axisColor}; 3293 } 3294 .wardley-axis-label { 3295 fill: ${n.axisTextColor}; 3296 } 3297 .wardley-stage-label { 3298 fill: ${n.axisTextColor}; 3299 } 3300 .wardley-grid line { 3301 stroke: ${n.gridColor}; 3302 } 3303 .wardley-node circle { 3304 fill: ${n.componentFill}; 3305 stroke: ${n.componentStroke}; 3306 } 3307 .wardley-node-label { 3308 fill: ${n.componentLabelColor}; 3309 } 3310 .wardley-link { 3311 stroke: ${n.linkStroke}; 3312 } 3313 .wardley-link--dashed { 3314 stroke-dasharray: 4 4; 3315 } 3316 .wardley-link-label { 3317 fill: ${n.axisTextColor}; 3318 } 3319 .wardley-trend line { 3320 stroke: ${n.evolutionStroke}; 3321 } 3322 .wardley-annotation-line { 3323 stroke: ${n.annotationStroke}; 3324 } 3325 .wardley-annotation circle { 3326 fill: ${n.annotationFill}; 3327 stroke: ${n.annotationStroke}; 3328 } 3329 .wardley-annotation text { 3330 fill: ${n.annotationTextColor}; 3331 } 3332 .wardley-annotations-box rect { 3333 fill: ${n.annotationFill}; 3334 stroke: ${n.annotationStroke}; 3335 } 3336 .wardley-annotations-box text { 3337 fill: ${n.annotationTextColor}; 3338 } 3339 .wardley-pipeline-box { 3340 stroke: ${n.componentStroke}; 3341 } 3342 .wardley-notes text { 3343 fill: ${n.axisTextColor}; 3344 } 3345 `},"styles")}),Qft={};
3345Jr(Qft,{diagram:f(()=>Jft,"diagram")});var Jft,rEt=Y(()=>{"use strict";Z6t(),J6t(),eEt(),tEt(),Jft={parser:The,db:Vft,renderer:Kft,styles:Zft}}),e1t={};Jr(e1t,{default:f(()=>l7t,"default")}),Pu(),B0e(),Em();var iEt=s(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),nEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ext(),t4e));return{id:"c4",diagram:e}},"loader"),aEt={id:"c4",detector:iEt,loader:nEt},sEt=aEt,t1t="flowchart",oEt=s((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),lEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jW(),K7));return{id:t1t,diagram:e}},"loader"),cEt={id:t1t,detector:oEt,loader:lEt},hEt=cEt,r1t="flowchart-v2",uEt=s((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),dEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jW(),K7));return{id:r1t,diagram:e}},"loader"),pEt={id:r1t,detector:uEt,loader:dEt},gEt=pEt,fEt=s(e=>/^\s*erDiagram/.test(e),"detector"),mEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($5t(),wje));return{id:"er",diagram:e}},"loader"),yEt={id:"er",detector:fEt,loader:mEt},vEt=yEt,i1t="gitGraph",bEt=s(e=>/^\s*gitGraph/.test(e),"detector"),xEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(J5t(),Ait));return{id:i1t,diagram:e}},"loader"),kEt={id:i1t,detector:bEt,loader:xEt},TEt=kEt,n1t="gantt",wEt=s(e=>/^\s*gantt/.test(e),"detector"),CEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(lwt(),Ent));return{id:n1t,diagram:e}},"loader"),EEt={id:n1t,detector:wEt,loader:CEt},SEt=EEt,a1t="info",_Et=s(e=>/^\s*info/.test(e),"detector"),AEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(dwt(),Nnt));return{id:a1t,diagram:e}},"loader"),LEt={id:a1t,detector:_Et,loader:AEt},REt=s(e=>/^\s*pie/.test(e),"detector"),IEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(mwt(),Knt));return{id:"pie",diagram:e}},"loader"),DEt={id:"pie",detector:REt,loader:IEt},s1t="quadrantChart",NEt=s(e=>/^\s*quadrantChart/.test(e),"detector"),MEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Twt(),xat));return{id:s1t,diagram:e}},"loader"),OEt={id:s1t,detector:NEt,loader:MEt},$Et=OEt,o1t="xychart",BEt=s(e=>/^\s*xychart(-beta)?/.test(e),"detector"),PEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Owt(),Jat));return{id:o1t,diagram:e}},"loader"),FEt={id:o1t,detector:BEt,loader:PEt},zEt=FEt,l1t="requirement",qEt=s(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),jEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(zwt(),lst));return{id:l1t,diagram:e}},"loader"),GEt={id:l1t,detector:qEt,loader:jEt},UEt=GEt,c1t="sequence",VEt=s(e=>/^\s*sequenceDiagram/.test(e),"detector"),WEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Vwt(),cot));return{id:c1t,diagram:e}},"loader"),HEt={id:c1t,detector:VEt,loader:WEt},YEt=HEt,h1t="class",XEt=s((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),KEt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Hwt(),bot));return{id:h1t,diagram:e}},"loader"),ZEt={id:h1t,detector:XEt,loader:KEt},QEt=ZEt,u1t="classDiagram",JEt=s((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),eSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ywt(),kot));return{id:u1t,diagram:e}},"loader"),tSt={id:u1t,detector:JEt,loader:eSt},rSt=tSt,d1t="state",iSt=s((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),nSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Qwt(),glt));return{id:d1t,diagram:e}},"loader"),aSt={id:d1t,detector:iSt,loader:nSt},sSt=aSt,p1t="stateDiagram",oSt=s((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),lSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Jwt(),mlt));return{id:p1t,diagram:e}},"loader"),cSt={id:p1t,detector:oSt,loader:lSt},hSt=cSt,g1t="journey",uSt=s(e=>/^\s*journey/.test(e),"detector"),dSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(aCt(),Flt));return{id:g1t,diagram:e}},"loader"),pSt={id:g1t,detector:uSt,loader:dSt},gSt=pSt;jt(),Ho(),Bn();var fSt=s((e,t,r)=>{ge.debug(`rendering svg for syntax error 3346`);let i=Co(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Ta(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
3346164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),f1t={draw:fSt},mSt=f1t,ySt={db:{},renderer:f1t,parser:{parse:s(()=>{},"parse")}},vSt=ySt,m1t="flowchart-elk",bSt=s((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),xSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jW(),K7));return{id:m1t,diagram:e}},"loader"),kSt={id:m1t,detector:bSt,loader:xSt},TSt=kSt,y1t="timeline",wSt=s(e=>/^\s*timeline/.test(e),"detector"),CSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(uCt(),fct));return{id:y1t,diagram:e}},"loader"),ESt={id:y1t,detector:wSt,loader:CSt},SSt=ESt,v1t="mindmap",_St=s(e=>/^\s*mindmap/.test(e),"detector"),ASt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(kCt(),Nct));return{id:v1t,diagram:e}},"loader"),LSt={id:v1t,detector:_St,loader:ASt},RSt=LSt,b1t="kanban",ISt=s(e=>/^\s*kanban/.test(e),"detector"),DSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(SCt(),Jct));return{id:b1t,diagram:e}},"loader"),NSt={id:b1t,detector:ISt,loader:DSt},MSt=NSt,x1t="sankey",OSt=s(e=>/^\s*sankey(-beta)?/.test(e),"detector"),$St=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(HCt(),zht));return{id:x1t,diagram:e}},"loader"),BSt={id:x1t,detector:OSt,loader:$St},PSt=BSt,k1t="packet",FSt=s(e=>/^\s*packet(-beta)?/.test(e),"detector"),zSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ZCt(),Jht));return{id:k1t,diagram:e}},"loader"),qSt={id:k1t,detector:FSt,loader:zSt},T1t="radar",jSt=s(e=>/^\s*radar-beta/.test(e),"detector"),GSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(t6t(),Eut));return{id:T1t,diagram:e}},"loader"),USt={id:T1t,detector:jSt,loader:GSt},w1t="block",VSt=s(e=>/^\s*block(-beta)?/.test(e),"detector"),WSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(b6t(),bpt));return{id:w1t,diagram:e}},"loader"),HSt={id:w1t,detector:VSt,loader:WSt},YSt=HSt,C1t="treeView",XSt=s(e=>/^\s*treeView-beta/.test(e),"detector"),KSt=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(w6t(),Fpt));return{id:C1t,diagram:e}},"loader"),ZSt={id:C1t,detector:XSt,loader:KSt},QSt=ZSt,E1t="architecture",JSt=s(e=>/^\s*architecture/.test(e),"detector"),e_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(L6t(),v0t));return{id:E1t,diagram:e}},"loader"),t_t={id:E1t,detector:JSt,loader:e_t},r_t=t_t,S1t="eventmodeling",i_t=s(e=>/^\s*eventmodeling/.test(e),"detector"),n_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(M6t(),agt));return{id:S1t,diagram:e}},"loader"),a_t={id:S1t,detector:i_t,loader:n_t},s_t=a_t,_1t="ishikawa",o_t=s(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),l_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(F6t(),Tgt));return{id:_1t,diagram:e}},"loader"),c_t={id:_1t,detector:o_t,loader:l_t},A1t="venn",h_t=s(e=>/^\s*venn-beta/.test(e),"detector"),u_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(V6t(),hft));return{id:A1t,diagram:e}},"loader"),d_t={id:A1t,detector:h_t,loader:u_t},p_t=d_t;Em(),vr();var L1t="treemap",g_t=s(e=>/^\s*treemap/.test(e),"detector"),f_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(K6t(),wft));return{id:L1t,diagram:e}},"loader"),m_t={id:L1t,detector:g_t,loader:f_t},R1t="wardley-beta",y_t=s(e=>/^\s*wardley-beta/i.test(e),"detector"),v_t=s(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(rEt(),Qft));return{id:R1t,diagram:e}},"loader"),b_t={id:R1t,detector:y_t,loader:v_t},x_t=b_t,I1t=!1,YI=s(()=>{I1t||(I1t=!0,bx("error",vSt,e=>e.toLowerCase().trim()==="error"),bx("---",{db:{clear:s(()=>{},"clear")},styles:{},renderer:{draw:s(()=>{},"draw")},parser:{parse:s(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:s(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),h6(TSt,RSt,r_t),h6(sEt,MSt,rSt,QEt,vEt,SEt,LEt,DEt,UEt,YEt,gEt,hEt,SSt,TEt,hSt,sSt,gSt,$Et,PSt,qSt,zEt,YSt,s_t,QSt,USt,c_t,m_t,p_t,x_t))},"addDiagrams");jt(),Em(),vr();var k_t=s(async()=>{ge.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(tp).map(async([t,{detector:r,loader:i}])=>{if(i)try{v6(t)}catch(n){try{let{diagram:a,id:o}=await i();bx(o,a,r)}catch(a){throw ge.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete tp[t],a}}}))).filter(t=>t.status==="rejected");if(e.length>0){ge.error(`Failed to load ${e.length} external diagrams`);for(let t of e)ge.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");jt(),ui();var whe="comm",D1t="rule",N1t="decl",T_t="@media",w_t="@import",C_t
vendor: 5,236 bytes, line 3346
3346="@supports",E_t="@namespace",Che="@keyframes",M1t="@layer",S_t="@scope",O1t=Math.abs,Ehe=String.fromCharCode;function She(e){return e.trim()}f(She,"B_"),s(She,"trim");function Yw(e,t,r){return e.replace(t,r)}f(Yw,"qy"),s(Yw,"replace");function $1t(e,t,r){return e.indexOf(t,r)}f($1t,"wMe"),s($1t,"indexof");function Z1(e,t){return e.charCodeAt(t)|0}f(Z1,"Lh"),s(Z1,"charat");function Q1(e,t,r){return e.slice(t,r)}f(Q1,"Mh"),s(Q1,"substr");function th(e){return e.length}f(th,"Ks"),s(th,"strlen");function _he(e){return e.length}f(_he,"F_"),s(_he,"sizeof");function Xw(e,t){return t.push(e),e}f(Xw,"Uy"),s(Xw,"append");var XI=1,hb=1,B1t=0,ec=0,Wa=0,ub="";function KI(e,t,r,i,n,a,o,l){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:XI,column:hb,length:o,return:"",siblings:l}}f(KI,"z_"),s(KI,"node");function P1t(){return Wa}f(P1t,"EMe"),s(P1t,"char");function F1t(){return Wa=ec>0?Z1(ub,--ec):0,hb--,Wa===10&&(hb=1,XI--),Wa}f(F1t,"AMe"),s(F1t,"prev");function tc(){return Wa=ec<B1t?Z1(ub,ec++):0,hb++,Wa===10&&(hb=1,XI++),Wa}f(tc,"hl"),s(tc,"next");function Yd(){return Z1(ub,ec)}f(Yd,"Nh"),s(Yd,"peek");function Kw(){return ec}f(Kw,"vC"),s(Kw,"caret");function Zw(e,t){return Q1(ub,e,t)}f(Zw,"G_"),s(Zw,"slice");function db(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}f(db,"Yy"),s(db,"token");function z1t(e){return XI=hb=1,B1t=th(ub=e),ec=0,[]}f(z1t,"_Me"),s(z1t,"alloc");function q1t(e){return ub="",e}f(q1t,"DMe"),s(q1t,"dealloc");function ZI(e){return She(Zw(ec-1,QI(e===91?e+2:e===40?e+1:e)))}f(ZI,"V_"),s(ZI,"delimit");function j1t(e){for(;(Wa=Yd())&&Wa<33;)tc();return db(e)>2||db(Wa)>3?"":" "}f(j1t,"RMe"),s(j1t,"whitespace");function G1t(e,t){for(;--t&&tc()&&!(Wa<48||Wa>102||Wa>57&&Wa<65||Wa>70&&Wa<97););return Zw(e,Kw()+(t<6&&Yd()==32&&tc()==32))}f(G1t,"LMe"),s(G1t,"escaping");function QI(e){for(;tc();)switch(Wa){case e:return ec;case 34:case 39:e!==34&&e!==39&&QI(Wa);break;case 40:e===41&&QI(e);break;case 92:tc();break}return ec}f(QI,"CU"),s(QI,"delimiter");function U1t(e,t){for(;tc()&&e+Wa!==57&&!(e+Wa===84&&Yd()===47););return"/*"+Zw(t,ec-1)+"*"+Ehe(e===47?e:tc())}f(U1t,"MMe"),s(U1t,"commenter");function V1t(e){for(;!db(Yd());)tc();return Zw(e,ec)}f(V1t,"NMe"),s(V1t,"identifier");function W1t(e){return q1t(Qw("",null,null,null,[""],e=z1t(e),0,[0],e))}f(W1t,"PMe"),s(W1t,"compile");function Qw(e,t,r,i,n,a,o,l,h){for(var u=0,d=0,p=o,g=0,m=0,y=0,x=1,C=1,w=1,_=0,S="",R=n,b=a,v=i,k=S;C;)switch(y=_,_=tc()){case 40:if(y!=108&&Z1(k,p-1)==58){$1t(k+=Yw(ZI(_),"&","&\f"),"&\f",O1t(u?l[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:k+=ZI(_);break;case 9:case 10:case 13:case 32:k+=j1t(y);break;case 92:k+=G1t(Kw()-1,7);continue;case 47:switch(Yd()){case 42:case 47:Xw(H1t(U1t(tc(),Kw()),t,r,h),h),(db(y||1)==5||db(Yd()||1)==5)&&th(k)&&Q1(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*x:l[u++]=th(k)*w;case 125*x:case 59:case 0:switch(_){case 0:case 125:C=0;case 59+d:w==-1&&(k=Yw(k,/\f/g,"")),m>0&&(th(k)-p||x===0&&y===47)&&Xw(m>32?Lhe(k+";",i,r,p-1,h):Lhe(Yw(k," ","")+";",i,r,p-2,h),h);break;case 59:k+=";";default:if(Xw(v=Ahe(k,t,r,u,d,n,l,S,R=[],b=[],p,a),a),_===123)if(d===0)Qw(k,t,v,v,R,a,p,l,b);else{switch(g){case 99:if(Z1(k,3)===110)break;case 108:if(Z1(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Qw(e,v,v,i&&Xw(Ahe(e,v,v,0,0,n,l,S,n,R=[],p,b),b),n,b,p,l,i?R:b):Qw(k,v,v,v,[""],b,0,l,b)}}u=d=m=0,x=w=1,S=k="",p=o;break;case 58:p=1+th(k),m=y;default:if(x<1){if(_==123)--x;else if(_==125&&x++==0&&F1t()==125)continue}switch(k+=Ehe(_),_*x){case 38:w=d>0?1:(k+="\f",-1);break;case 44:l[u++]=(th(k)-1)*w,w=1;break;case 64:Yd()===45&&(k+=ZI(tc())),g=Yd(),d=p=th(S=k+=V1t(Kw())),_++;break;case 45:y===45&&th(k)==2&&(x=0)}}return a}f(Qw,"W_"),s(Qw,"parse");function Ahe(e,t,r,i,n,a,o,l,h,u,d,p){for(var g=n-1,m=n===0?a:[""],y=_he(m),x=0,C=0,w=0;x<i;++x)for(var _=0,S=Q1(e,g+1,g=O1t(C=o[x])),R=e;_<y;++_)(R=She(C>0?m[_]+" "+S:Yw(S,/&\f/g,m[_])))&&(h[w++]=R);return KI(e,t,r,n===0?D1t:l,h,u,d,p)}f(Ahe,"IMe"),s(Ahe,"ruleset");function H1t(e,t,r,i){return KI(e,t,r,whe,Ehe(P1t()),Q1(e,2,-2),0,i)}f(H1t,"CAt"),s(H1t,"comment");function Lhe(e,t,r,i,n){return KI(e,t,r,N1t,Q1(e,0,i),Q1(e,i+1,-1),i,n)}f(Lhe,"OMe"),s(Lhe,"declaration");function JI(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}f(JI,"q_"),s(JI,"serialize");function Y1t(e,t,r,i){switch(e.type){case M1t:if(e.children.length)break;case w_t:case E_t:case N1t:return e.return=e.return||e.value;case whe:return"";case Che:return e.return=e.value+"{"+JI(e.children,i)+"}";case D1t:if(!th(e.value=e.props.join(",")))return""}return th(r=JI(e.children,i))?e.return=e.value+"{"+r+"}":""}f(Y1t,"BMe"),s(Y1t,"stringify");function X1t(e){var t=_he(e);return function(r,i,n,a){for(var o="",l=0;l<t;l++)o+=e[l](r,i,n,a)||"";return o}}f(X1t,"FMe"),s(X1t,"middleware"),mC(),LB();var __t="graphics-document document";function K1t(e,t){e.attr("role",__t),t!==""&&e.attr("aria-roledescription",t)}f(K1t,"$Me"),s(K1t,"setA11yDiagramInfo");function Z1t(e,t,r,i){if(e.insert!==void 0){if(r){let n=`chart
3346-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){let n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}f(Z1t,"zMe"),s(Z1t,"addSVGa11yTitleDescription"),Nb(),ti(),ti(),ti(),vr(),Em(),F0e(),wr();var Rhe=(ng=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var u,d;let i=Ir(),n=c6(t,i);t=Yxe(t)+` 3347`;try{v6(n)}catch(p){let g=z0e(n);if(!g)throw new IM(`Diagram ${n} not found.`);let{id:m,diagram:y}=await g();bx(m,y)}let{db:a,parser:o,renderer:l,init:h}=v6(n);return o.parser&&(o.parser.yy=a),(u=a.clear)==null||u.call(a),h==null||h(i),r.title&&((d=a.setDiagramTitle)==null||d.call(a,r.title)),await o.parse(t),new ng(n,t,a,o,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},f(ng,"e"),s(ng,"Diagram"),ng);gi();var Q1t=[],A_t=s(()=>{Q1t.forEach(e=>{e()}),Q1t=[]},"attachFunctions");jt();var L_t=s(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");RM(),cS();function J1t(e){var n;let t=e.match(LM);if(!t)return{text:e,metadata:{}};let r=(n=w4(t[1],{schema:T4}))!=null?n:{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}f(J1t,"qMe"),s(J1t,"extractFrontMatter"),wr();var R_t=s(e=>e.replace(/\r\n?/g,` 3348`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),I_t=s(e=>{let{text:t,metadata:r}=J1t(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),D_t=s(e=>{var i;let t=(i=ri.detectInit(e))!=null?i:{},r=ri.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:Pxe(e),directive:t}},"processDirectives");function Ihe(e){let t=R_t(e),r=I_t(t),i=D_t(r.text),n=da(r.config,i.directive);return e=L_t(i.text),{code:e,title:r.title,config:n}}f(Ihe,"kU"),s(Ihe,"preprocessDiagram"),Y0e(),fD(),wr();function emt(e){let t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}f(emt,"UMe"),s(emt,"toBase64"),bD();var N_t=5e4,M_t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",O_t="sandbox",$_t="loose",B_t="http://www.w3.org/2000/svg",P_t="http://www.w3.org/1999/xlink",F_t="http://www.w3.org/1999/xhtml",z_t="100%",q_t="100%",j_t="border:0;margin:0;",G_t="margin:0",U_t="allow-top-navigation-by-user-activation allow-popups",V_t='The "iframe" tag is not supported by your browser.',W_t=["foreignobject"],H_t=["dominant-baseline"];function Dhe(e){var r;let t=Ihe(e);return jb(),ade((r=t.config)!=null?r:{}),t}f(Dhe,"XMe"),s(Dhe,"processAndSetConfigs");async function tmt(e,t){YI();try{let{code:r,config:i}=Dhe(e);return{diagramType:(await amt(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}f(tmt,"VAt"),s(tmt,"parse");var rmt=s((e,t,r=[])=>{let i=vD(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),Y_t=s((e,t=new Map)=>{let r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let n=Vi(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(a=>{AB(a.styles)||n.forEach(o=>{r.insertRule(rmt(a.id,o,a.styles),r.cssRules.length)}),AB(a.textStyles)||r.insertRule(rmt(a.id,"tspan",((a==null?void 0:a.textStyles)||[]).map(o=>o.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){let n=new CSSStyleSheet;n.replaceSync(e.themeCSS),i=NM(n)+` 3349`}else i+=`${e.themeCSS} 3350`;return i+NM(r)},"createCssStyles"),X_t=s((e,t)=>JI(W1t(`${e}{${t}}`),X1t([s(function(r,i,n,a){if(r.type==="rule"&&Array.isArray(r.props)){if
3350(r.parent&&r.parent.type===Che)return;r.props=r.props.map(o=>o.startsWith(e)?o:`${e} ${o}`)}else r.type.startsWith("@")&&([T_t,C_t,M1t,S_t,"@container","@starting-style",Che].includes(r.type)||(ge.warn(`Removing unsupported at-rule ${r.type} from CSS`),r.type=whe))},"addNamespace"),Y1t])),"compileCSS"),K_t=s((e,t,r,i)=>{let n=Y_t(e,r),a=H0e(t,n,_r(Tt({},e.themeVariables),{theme:e.theme,look:e.look}),i);return X_t(i,a)},"createUserStyles"),Z_t=s((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Sh(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Q_t=s((e="",t)=>{var n,a;let r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":q_t,i=emt(`<body style="${G_t}">${e}</body>`);return`<iframe style="width:${z_t};height:${r};${j_t}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${U_t}"> 3351 ${V_t} 3352</iframe>`},"putIntoIFrame"),imt=s((e,t,r,i,n)=>{let a=e.append("div");a.attr("id",r),i&&a.attr("style",i);let o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",B_t);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function Nhe(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}f(Nhe,"jMe"),s(Nhe,"sandboxedIframe");var J_t=s((e,t,r,i)=>{var n,a,o;
3352(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),e7t=s(async function(e,t,r){var O,j,D,P,F,U,z;YI();let i=Dhe(t);t=i.code;let n=Ir();ge.debug(n),t.length>((O=n==null?void 0:n.maxTextSize)!=null?O:N_t)&&(t=M_t);let a=`#${e}`,o="i"+e,l="#"+o,h="d"+e,u="#"+h,d=s(()=>{let V=Lt(g?l:u).node();V&&"remove"in V&&V.remove()},"removeTempElements"),p=Lt(document.body),g=n.securityLevel===O_t,m=n.securityLevel===$_t,y=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),g){let V=Nhe(Lt(r),o);p=Lt(V.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=Lt(r);imt(p,e,h,`font-family: ${y}`,P_t)}else{if(J_t(document,e,h,o),g){let V=Nhe(Lt(document.body),o);p=Lt(V.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=Lt("body");imt(p,e,h)}let x,C;try{x=await Rhe.fromText(t,{title:i.title})}catch(V){if(n.suppressErrorRendering)throw d(),V;x=await Rhe.fromText("error"),C=V}let w=p.select(u).node(),_=x.type,S=w.firstChild,R=S.firstChild,b=(D=(j=x.renderer).getClasses)==null?void 0:D.call(j,t,x),v=K_t(n,_,b,a),k=document.createElement("style");k.innerHTML=v,S.insertBefore(k,R);try{await x.renderer.draw(t,e,"11.15.0",x)}catch(V){throw n.suppressErrorRendering?d():mSt.draw(t,e,"11.15.0"),V}let E=p.select(`${u} svg`),A=(F=(P=x.db).getAccTitle)==null?void 0:F.call(P),I=(z=(U=x.db).getAccDescription)==null?void 0:z.call(U);smt(_,E,A,I),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",F_t);let $=p.select(u).node().innerHTML;if(ge.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),$=Z_t($,g,hh(n.arrowMarkerAbsolute)),g){let V=p.select(u+" svg").node();$=Q_t($,V)}else m||($=Au.sanitize($,{ADD_TAGS:W_t,ADD_ATTR:H_t,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(A_t(),C)throw C;return d(),{diagramType:_,svg:$,bindFunctions:x.db.bindFunctions}},"render");function nmt(e={}){var i;let t=la({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),ide(t),t!=null&&t.theme&&t.theme in ch?t.themeVariables=ch[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ch.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?rde(t):xD();rC(r.logLevel),YI()}f(nmt,"KAt"),s(nmt,"initialize");var amt=s((e,t={})=>{let{code:r}=Ihe(e);return Rhe.fromText(r,t)},"getDiagramFromText");function smt(e,t,r,i){K1t(t,e),Z1t(t,r,i,t.attr("id"))}f(smt,"ZAt"),s(smt,"addA11yInfo");var J1=Object.freeze({render:e7t,parse:tmt,getDiagramFromText:amt,initialize:nmt,getConfig:Ir,setConfig:kD,getSiteConfig:xD,updateSiteConfig:nde,reset:s(()=>{jb()},"reset"),globalReset:s(()=>{jb(og)},"globalReset"),defaultConfig:og});rC(Ir().logLevel),jb(Ir()),Of(),wr();var t7t=s((e,t,r)=>{ge.warn(e),NB(e)?(r&&r(e.str,e.hash),t.push(_r(Tt({},e),{message:e.str,error:e}))):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),omt=s(async function(e={querySelector:".mermaid"}){try{await r7t(e)}catch(t){if(NB(t)&&ge.error(t.str),xl.parseError&&xl.parseError(t),!e.suppressErrors)throw ge.error("Use the suppressErrors option to suppress these errors"),t}},"run"),r7t=s(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let i=J1.getConfig();ge.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ge.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(ge.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),J1.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));let a=new ri.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o,l=[];for(let h of Array.from(n)){if(ge.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");let u=`mermaid-${a.next()}`;o=h.innerHTML,o=AM(ri.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=ri.detectInit(o);d&&ge.debug("Detected early reinit: ",d);try{let{svg:p,bindFunctions:g}=await umt(u,o,h);h.innerHTML=p,e&&await e(u),g&&g(h)}catch(p){t7t(p,l,xl.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),lmt=s(function(e){J1.initialize(e)},"initialize"),i7t=s(async function(e,t,r){ge.warn("mermaid.init is deprecated. Please use run instead."),e&&lmt(e);let i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await omt(i)},"init"),n7t=s(async(e,{lazyLoad:t=!0}={})=>{YI(),h6(...e),t===!1&&await k_t()},"registerExternalDiagrams"),cmt=s(function(){if(xl.startOnLoad){let{startOnLoad:e}=J1.getConfig();e&&xl.run().catch(t=>ge.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",cmt,!1);var a7t=s(function(e){xl.parseError=e},"setParseErrorHandler"),eD=[],Mhe=!1,hmt=s(async()=>
3352{if(!Mhe){for(Mhe=!0;eD.length>0;){let e=eD.shift();if(e)try{await e()}catch(t){ge.error("Error executing queue",t)}}Mhe=!1}},"executeQueue"),s7t=s(async(e,t)=>new Promise((r,i)=>{let n=s(()=>new Promise((a,o)=>{J1.parse(e,t).then(l=>{a(l),r(l)},l=>{var h;ge.error("Error parsing",l),(h=xl.parseError)==null||h.call(xl,l),o(l),i(l)})}),"performCall");eD.push(n),hmt().catch(i)}),"parse"),umt=s((e,t,r)=>new Promise((i,n)=>{let a=s(()=>new Promise((o,l)=>{J1.render(e,t,r).then(h=>{o(h),i(h)},h=>{var u;ge.error("Error parsing",h),(u=xl.parseError)==null||u.call(xl,h),l(h),n(h)})}),"performCall");eD.push(a),hmt().catch(n)}),"render"),o7t=s(()=>Object.keys(tp).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),xl={startOnLoad:!0,mermaidAPI:J1,parse:s7t,render:umt,init:i7t,run:omt,registerExternalDiagrams:n7t,registerLayoutLoaders:FW,initialize:lmt,parseError:void 0,contentLoaded:cmt,setParseErrorHandler:a7t,detectType:c6,registerIconPacks:SM,getRegisteredDiagramsMetadata:o7t},l7t=xl;return ymt(e1t)})();globalThis.__esbuild_esm_mermaid_nm=typeof rD!="undefined"?rD:{};var Jw=rD.mermaid;Jw&&Jw.default&&(Jw=Jw.default);var h7t=Jw;export{h7t as default,Jw as mermaid}; 3353/*! Bundled license information: 3354 3355lodash-es/lodash.js: 3356 (** 3357 * @license 3358 * Lodash (Custom Build) <https://lodash.com/> 3359 * Build: `lodash modularize exports="es" -o ./` 3360 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 3361 * Released under MIT license <https://lodash.com/license> 3362 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 3363 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 3364 *) 3365*/ 3366/*! Check if previously processed */ 3367/*! 3368 * Wait for document loaded before starting the execution 3369 */ 3370/*! Bundled license information: 3371 3372dompurify/dist/purify.es.mjs: 3373 (*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE *) 3374 3375js-yaml/dist/js-yaml.mjs: 3376 (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *) 3377 3378lodash-es/lodash.js: 3379 (** 3380 * @license 3381 * Lodash (Custom Build) <https://lodash.com/> 3382 * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./` 3383 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 3384 * Released under MIT license <https://lodash.com/license> 3385 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 3386 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 3387 *) 3388 3389cytoscape/dist/cytoscape.esm.mjs: 3390 (*! 3391 Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable 3392 Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) 3393 Licensed under The MIT License (http://opensource.org/licenses/MIT) 3394 *) 3395 (*! 3396 Event object based on jQuery events, MIT license 3397 3398 https://jquery.org/license/ 3399 https://tldrlegal.com/license/mit-license 3400 https://github.com/jquery/jquery/blob/master/src/event.js 3401 *) 3402 (*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *) 3403 (*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *) 3404*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.