diff --git a/CHANGELOG.md b/CHANGELOG.md index e8b5e20..d431f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 0.5.1 + +* Update dependencies. + * mermaid `10.3.1` from `10.9.1` + * mscgenjs `6.0.2` from `7.0.0` + * Update for NPM package vulnerabilities. + ## 0.5.0 * Support for Mermaid v10 syntax. diff --git a/README.md b/README.md index 1ba4079..0102ca3 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,13 @@ This is usefull to avoid multipicate the same code on many files. [CHANGELOG.md](CHANGELOG.md) +## 0.5.1 + +* Update dependencies. + * mermaid `10.3.1` from `10.9.1` + * mscgenjs `6.0.2` from `7.0.0` + * Update for NPM package vulnerabilities. + ## 0.5.0 * Support for Mermaid v10 syntax. diff --git a/dist/mermaid/mermaid.min.js b/dist/mermaid/mermaid.min.js index cfb8097..ec3930a 100644 --- a/dist/mermaid/mermaid.min.js +++ b/dist/mermaid/mermaid.min.js @@ -1,2 +1,2 @@ /*! For license information please see mermaid.min.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&typeof module<"u"?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).mermaid=e()}(this,(function(){"use strict";function t(t){for(var e=[],n=1;n=e?t:""+Array(e+1-i.length).join(n)+t},w={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+b(i,2,"0")+":"+b(r,2,"0")},m:function t(e,n){if(e.date()1)return t(o[0])}else{var s=e.name;m[s]=e,r=s}return!i&&r&&(y=r),r||!i&&y},k=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},_=w;_.l=x,_.i=v,_.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t)}var b=p.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},b.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},b.$utils=function(){return _},b.isValid=function(){return this.$d.toString()!==f},b.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return k(t){},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},s=function(t="fatal"){let e=a.fatal;"string"==typeof t?(t=t.toLowerCase())in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"",u("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"",u("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"",u("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"",u("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"",u("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,u("TRACE"),"color: lightgreen"):console.log.bind(console,"",u("TRACE")))},u=t=>`%c${r().format("ss.SSS")} : ${t} : `;var l={};Object.defineProperty(l,"__esModule",{value:!0});var h=l.sanitizeUrl=void 0,f=/^([^\w]*)(javascript|data|vbscript)/im,d=/&#(\w+)(^\w|;)?/g,g=/&tab;/gi,p=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,b=/^.+(:|:)/gim,w=[".","/"];function y(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function m(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function v(t){let e,n,i;function r(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<0?r=e+1:a=e}while(ry(t(e),n),i=(e,n)=>t(e)-n):(e=t===y||t===m?t:x,n=t,i=t),{left:r,center:function(t,e,n=0,a=t.length){const o=r(t,e,n,a-1);return o>n&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<=0?r=e+1:a=e}while(r-1}(e))return e;var n=e.match(b);if(!n)return e;var i=n[0];return f.test(i)?"about:blank":e};const k=v(y).right;v((function(t){return null===t?NaN:+t})).center;const _=k;class E extends Map{constructor(t,e=C){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(T(this,t))}has(t){return super.has(T(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}(this,t))}}function T({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function C(t){return null!==t&&"object"==typeof t?t.valueOf():t}var S=Math.sqrt(50),A=Math.sqrt(10),M=Math.sqrt(2);function I(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=S?10:a>=A?5:a>=M?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=S?10:a>=A?5:a>=M?2:1)}function L(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/r;return a>=S?r*=10:a>=A?r*=5:a>=M&&(r*=2),e=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function D(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function N(t){return t}var P=1e-6;function B(t){return"translate("+t+",0)"}function F(t){return"translate(0,"+t+")"}function j(t){return e=>+t(e)}function R(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function $(){return!this.__axis}function z(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",h=1===t||3===t?B:F;function f(f){var d=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):N),p=Math.max(a,0)+s,b=e.range(),w=+b[0]+c,y=+b[b.length-1]+c,m=(e.bandwidth?R:j)(e.copy(),c),v=f.selection?f.selection():f,x=v.selectAll(".domain").data([null]),k=v.selectAll(".tick").data(d,e).order(),_=k.exit(),E=k.enter().append("g").attr("class","tick"),T=k.select("line"),C=k.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",u*a)),C=C.merge(E.append("text").attr("fill","currentColor").attr(l,u*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==v&&(x=x.transition(f),k=k.transition(f),T=T.transition(f),C=C.transition(f),_=_.transition(f).attr("opacity",P).attr("transform",(function(t){return isFinite(t=m(t))?h(t+c):this.getAttribute("transform")})),E.attr("opacity",P).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:m(t))+c)}))),_.remove(),x.attr("d",4===t||2===t?o?"M"+u*o+","+w+"H"+c+"V"+y+"H"+u*o:"M"+c+","+w+"V"+y:o?"M"+w+","+u*o+"V"+c+"H"+y+"V"+u*o:"M"+w+","+c+"H"+y),k.attr("opacity",1).attr("transform",(function(t){return h(m(t)+c)})),T.attr(l+"2",u*a),C.attr(l,u*p).text(g),v.filter($).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each((function(){this.__axis=m}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),f):i&&i.slice()},f.tickFormat=function(t){return arguments.length?(r=t,f):r},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(c=+t,f):c},f}var q={value:()=>{}};function H(){for(var t,e=0,n=arguments.length,i={};e=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",i),a=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,i,r=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),W.hasOwnProperty(e)?{space:W[e],local:t}:t}function V(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===K&&e.documentElement.namespaceURI===K?e.createElement(t):e.createElementNS(n,t)}}function Q(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Z(t){var e=X(t);return(e.local?Q:V)(e)}function J(){}function tt(t){return null==t?J:function(){return this.querySelector(t)}}function et(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function nt(){return[]}function it(t){return null==t?nt:function(){return this.querySelectorAll(t)}}function rt(t){return function(){return this.matches(t)}}function at(t){return function(e){return e.matches(t)}}var ot=Array.prototype.find;function st(){return this.firstElementChild}var ct=Array.prototype.filter;function ut(){return Array.from(this.children)}function lt(t){return new Array(t.length)}function ht(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ft(t,e,n,i,r,a){for(var o,s=0,c=e.length,u=a.length;se?1:t>=e?0:NaN}function wt(t){return function(){this.removeAttribute(t)}}function yt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mt(t,e){return function(){this.setAttribute(t,e)}}function vt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function kt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function _t(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Et(t){return function(){this.style.removeProperty(t)}}function Tt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ct(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function St(t,e){return t.style.getPropertyValue(e)||_t(t).getComputedStyle(t,null).getPropertyValue(e)}function At(t){return function(){delete this[t]}}function Mt(t,e){return function(){this[t]=e}}function It(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Lt(t){return t.trim().split(/^|\s+/)}function Ot(t){return t.classList||new Dt(t)}function Dt(t){this._node=t,this._names=Lt(t.getAttribute("class")||"")}function Nt(t,e){for(var n=Ot(t),i=-1,r=e.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ne=[null];function ie(t,e){this._groups=t,this._parents=e}function re(){return new ie([[document.documentElement]],ne)}function ae(t){return"string"==typeof t?new ie([[document.querySelector(t)]],[document.documentElement]):new ie([[t]],ne)}function oe(t){return"string"==typeof t?new ie([document.querySelectorAll(t)],[document.documentElement]):new ie([et(t)],ne)}function se(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ce(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ue(){}ie.prototype=re.prototype={constructor:ie,select:function(t){"function"!=typeof t&&(t=tt(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r=v&&(v=m+1);!(y=b[v])&&++v=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bt);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a1?this.each((null==e?Et:"function"==typeof e?Ct:Tt)(t,e,n??"")):St(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?At:"function"==typeof e?It:Mt)(t,e)):this.node()[t]},classed:function(t,e){var n=Lt(t+"");if(arguments.length<2){for(var i=Ot(this.node()),r=-1,a=n.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Zt:Qt,i=0;i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=be.exec(t))?new Ie(e[1],e[2],e[3],1):(e=we.exec(t))?new Ie(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ye.exec(t))?Se(e[1],e[2],e[3],e[4]):(e=me.exec(t))?Se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ve.exec(t))?Be(e[1],e[2]/100,e[3]/100,1):(e=xe.exec(t))?Be(e[1],e[2]/100,e[3]/100,e[4]):ke.hasOwnProperty(t)?Ce(ke[t]):"transparent"===t?new Ie(NaN,NaN,NaN,0):null}function Ce(t){return new Ie(t>>16&255,t>>8&255,255&t,1)}function Se(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ie(t,e,n,i)}function Ae(t){return t instanceof ue||(t=Te(t)),t?new Ie((t=t.rgb()).r,t.g,t.b,t.opacity):new Ie}function Me(t,e,n,i){return 1===arguments.length?Ae(t):new Ie(t,e,n,i??1)}function Ie(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Le(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}function Oe(){const t=De(this.opacity);return`${1===t?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===t?")":`, ${t})`}`}function De(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Pe(t){return((t=Ne(t))<16?"0":"")+t.toString(16)}function Be(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new je(t,e,n,i)}function Fe(t){if(t instanceof je)return new je(t.h,t.s,t.l,t.opacity);if(t instanceof ue||(t=Te(t)),!t)return new je;if(t instanceof je)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,c=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n0&&c<1?0:o,new je(o,s,c,t.opacity)}function je(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Re(t){return(t=(t||0)%360)<0?t+360:t}function $e(t){return Math.max(0,Math.min(1,t||0))}function ze(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}se(ue,Te,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fe(this).formatHsl()},formatRgb:Ee,toString:Ee}),se(Ie,Me,ce(ue,{brighter(t){return t=null==t?he:Math.pow(he,t),new Ie(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?le:Math.pow(le,t),new Ie(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ie(Ne(this.r),Ne(this.g),Ne(this.b),De(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:Le,formatHex:Le,formatHex8:function(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Oe,toString:Oe})),se(je,(function(t,e,n,i){return 1===arguments.length?Fe(t):new je(t,e,n,i??1)}),ce(ue,{brighter(t){return t=null==t?he:Math.pow(he,t),new je(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?le:Math.pow(le,t),new je(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ie(ze(t>=240?t-240:t+120,r,i),ze(t,r,i),ze(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new je(Re(this.h),$e(this.s),$e(this.l),De(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=De(this.opacity);return`${1===t?"hsl(":"hsla("}${Re(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===t?")":`, ${t})`}`}}));const qe=Math.PI/180,He=180/Math.PI,Ue=.96422,Ge=1,Ye=.82521,Ke=4/29,We=6/29,Xe=3*We*We,Ve=We*We*We;function Qe(t){if(t instanceof Ze)return new Ze(t.l,t.a,t.b,t.opacity);if(t instanceof an)return on(t);t instanceof Ie||(t=Ae(t));var e,n,i=nn(t.r),r=nn(t.g),a=nn(t.b),o=Je((.2225045*i+.7168786*r+.0606169*a)/Ge);return i===r&&r===a?e=n=o:(e=Je((.4360747*i+.3850649*r+.1430804*a)/Ue),n=Je((.0139322*i+.0971045*r+.7141733*a)/Ye)),new Ze(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Ze(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function Je(t){return t>Ve?Math.pow(t,1/3):t/Xe+Ke}function tn(t){return t>We?t*t*t:Xe*(t-Ke)}function en(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function nn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rn(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof an)return new an(t.h,t.c,t.l,t.opacity);if(t instanceof Ze||(t=Qe(t)),0===t.a&&0===t.b)return new an(NaN,0()=>t;function cn(t,e){return function(n){return t+n*e}}function un(t,e){var n=e-t;return n?cn(t,n):sn(isNaN(t)?e:t)}const ln=function t(e){var n=function(t){return 1==(t=+t)?un:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):sn(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Me(t)).r,(e=Me(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=un(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function hn(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;na&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:gn(n,i)})),a=wn.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:gn(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:gn(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,o.skewX,s,c),function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:gn(t,n)},{i:s-2,x:gn(e,i)})}else(1!==n||1!==i)&&a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,i=c.length;++n180||n<-180?n-360*Math.round(n/360):n):sn(isNaN(t)?e:t)}((t=rn(t)).h,(e=rn(e)).h),i=un(t.c,e.c),r=un(t.l,e.l),a=un(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=i(e),t.l=r(e),t.opacity=a(e),t+""}};var Mn,In,Ln=0,On=0,Dn=0,Nn=1e3,Pn=0,Bn=0,Fn=0,jn="object"==typeof performance&&performance.now?performance:Date,Rn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $n(){return Bn||(Rn(zn),Bn=jn.now()+Fn)}function zn(){Bn=0}function qn(){this._call=this._time=this._next=null}function Hn(t,e,n){var i=new qn;return i.restart(t,e,n),i}function Un(){Bn=(Pn=jn.now())+Fn,Ln=On=0;try{!function(){$n(),++Ln;for(var t,e=Mn;e;)(t=Bn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ln}()}finally{Ln=0,function(){for(var t,e,n=Mn,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Mn=e);In=t,Yn(i)}(),Bn=0}}function Gn(){var t=jn.now(),e=t-Pn;e>Nn&&(Fn-=e,Pn=t)}function Yn(t){Ln||(On&&(On=clearTimeout(On)),t-Bn>24?(t<1/0&&(On=setTimeout(Un,t-jn.now()-Fn)),Dn&&(Dn=clearInterval(Dn))):(Dn||(Pn=jn.now(),Dn=setInterval(Gn,Nn)),Ln=1,Rn(Un)))}function Kn(t,e,n){var i=new qn;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}qn.prototype=Hn.prototype={constructor:qn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?$n():+n)+(null==e?0:+e),!this._next&&In!==this&&(In?In._next=this:Mn=this,In=this),this._call=t,this._time=n,Yn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yn())}};var Wn=H("start","end","cancel","interrupt"),Xn=[],Vn=0,Qn=3;function Zn(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in r)if((f=r[u]).name===n.name){if(f.state===Qn)return Kn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+uVn)throw new Error("too late; already scheduled");return n}function ti(t,e){var n=ei(t,e);if(n.state>Qn)throw new Error("too late; already running");return n}function ei(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ni(t,e){var n,i;return function(){var r=ti(this,t),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Jn:ti;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}(n,t,e))},attr:function(t,e){var n=X(t),i="transform"===n?Sn:ai;return this.attrTween(t,"function"==typeof e?(n.local?hi:li)(n,i,ri(this,"attr."+t,e)):null==e?(n.local?si:oi)(n):(n.local?ui:ci)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=X(t);return this.tween(n,(i.local?fi:di)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Cn:ai;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=St(this,t),o=(this.style.removeProperty(t),St(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,mi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=St(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=St(this,t)),o===c?null:o===i&&c===r?a:(r=c,a=e(i=o,s))}}(t,i,ri(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e,s="end."+o;return function(){var c=ti(this,t),u=c.on,l=null==c.value[o]?a||(a=mi(e)):void 0;(u!==n||r!==l)&&(i=(n=u).copy()).on(s,r=l),c.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var o=St(this,t);return o===a?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,a,n)),i}return a._value=e,a}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ri(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=ei(this.node(),n).tween,a=0,o=r.length;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete t.__transition}}(this,t)}))},re.prototype.transition=function(t){var e,n;t instanceof xi?(e=t._id,t=t._name):(e=ki(),(n=Ei).time=$n(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Di(t){return(t=Oi(Math.abs(t)))?t[1]:NaN}Ii.prototype=Li.prototype={constructor:Ii,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,c=i-e,u=a-t,l=o-e,h=u*u+l*l;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Ai)if(Math.abs(l*s-c*u)>Ai&&r){var f=n-a,d=i-o,g=s*s+c*c,p=f*f+d*d,b=Math.sqrt(g),w=Math.sqrt(h),y=r*Math.tan((Ci-Math.acos((g+h-p)/(2*b*w)))/2),m=y/w,v=y/b;Math.abs(m-1)>Ai&&(this._+="L"+(t+m*u)+","+(e+m*l)),this._+="A"+r+","+r+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+v*s)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=t+o,u=e+s,l=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>Ai||Math.abs(this._y1-u)>Ai)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%Si+Si),h>Mi?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>Ai&&(this._+="A"+n+","+n+",0,"+ +(h>=Ci)+","+l+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Ni,Pi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bi(t){if(!(e=Pi.exec(t)))throw new Error("invalid format: "+t);var e;return new Fi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Fi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ji(t,e){var n=Oi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}Bi.prototype=Fi.prototype,Fi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ri={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ji(100*t,e),r:ji,s:function(t,e){var n=Oi(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Ni=3*Math.max(-8,Math.min(8,Math.floor(r/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")+Oi(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $i(t){return t}var zi,qi,Hi,Ui=Array.prototype.map,Gi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}zi=function(t){var e=void 0===t.grouping||void 0===t.thousands?$i:function(t,e){return function(n,i){for(var r=n.length,a=[],o=0,s=t[0],c=0;r>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),a.push(n.substring(r-=s,r+s)),!((c+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}(Ui.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?$i:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ui.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function u(t){var u=(t=Bi(t)).fill,l=t.align,h=t.sign,f=t.symbol,d=t.zero,g=t.width,p=t.comma,b=t.precision,w=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Ri[y]||(void 0===b&&(b=12),w=!0,y="g"),(d||"0"===u&&"="===l)&&(d=!0,u="0",l="=");var m="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===f?i:/[%p]/.test(y)?o:"",x=Ri[y],k=/[defgprs%]/.test(y);function _(t){var n,i,o,f=m,_=v;if("c"===y)_=x(t)+_,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),b),w&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,_=("s"===y?Gi[8+Ni/3]:"")+_+(E&&"("===h?")":""),k)for(n=-1,i=t.length;++n(o=t.charCodeAt(n))||o>57){_=(46===o?r+t.slice(n+1):t.slice(n))+_,t=t.slice(0,n);break}}p&&!d&&(t=e(t,1/0));var T=f.length+t.length+_.length,C=T>1)+f+t+_+C.slice(T);break;default:t=C+f+t+_}return a(t)}return b=void 0===b?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),_.toString=function(){return t+""},_}return{format:u,formatPrefix:function(t,e){var n=u(((t=Bi(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Di(e)/3))),r=Math.pow(10,-i),a=Gi[8+i/3];return function(t){return n(r*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),qi=zi.format,Hi=zi.formatPrefix;const Ki=Symbol("implicit");function Wi(){var t=new E,e=[],n=[],i=Ki;function r(r){let a=t.get(r);if(void 0===a){if(i!==Ki)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new E;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Wi(e,n).unknown(i)},Yi.apply(r,arguments),r}function Xi(t){return+t}var Vi=[0,1];function Qi(t){return t}function Zi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ji(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];return re&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(o[0],o[t-1])),i=t>2?tr:Ji,r=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=i(s,o.map(t),gn)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,Xi),l()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=vn,l()},h.clamp=function(t){return arguments.length?(u=!!t||Qi,l()):u!==Qi},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,l()}}()(Qi,Qi)}function ir(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,r,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e0){let n=Math.round(t/o),i=Math.round(e/o);for(n*oe&&--i,a=new Array(r=i-n+1);++se&&--i,a=new Array(r=i-n+1);++s0;){if((r=I(c,u,n))===i)return a[o]=c,a[s]=u,e(a);if(r>0)c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r}i=r}return t},t}function rr(){var t=nr();return t.copy=function(){return er(t,rr())},Yi.apply(t,arguments),ir(t)}var ar=new Date,or=new Date;function sr(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return ar.setTime(+e),or.setTime(+i),t(ar),t(or),Math.floor(n(ar,or))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var cr=sr((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));cr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sr((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):cr:null};const ur=cr;cr.range;const lr=1e3,hr=6e4,fr=60*hr,dr=24*fr,gr=7*dr,pr=30*dr,br=365*dr;var wr=sr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*lr)}),(function(t,e){return(e-t)/lr}),(function(t){return t.getUTCSeconds()}));const yr=wr;wr.range;var mr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*lr)}),(function(t,e){t.setTime(+t+e*hr)}),(function(t,e){return(e-t)/hr}),(function(t){return t.getMinutes()}));const vr=mr;mr.range;var xr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*lr-t.getMinutes()*hr)}),(function(t,e){t.setTime(+t+e*fr)}),(function(t,e){return(e-t)/fr}),(function(t){return t.getHours()}));const kr=xr;xr.range;var _r=sr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hr)/dr),(t=>t.getDate()-1));const Er=_r;function Tr(t){return sr((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hr)/gr}))}_r.range;var Cr=Tr(0),Sr=Tr(1),Ar=Tr(2),Mr=Tr(3),Ir=Tr(4),Lr=Tr(5),Or=Tr(6);Cr.range,Sr.range,Ar.range,Mr.range,Ir.range,Lr.range,Or.range;var Dr=sr((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Nr=Dr;Dr.range;var Pr=sr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Pr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Br=Pr;Pr.range;var Fr=sr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/dr}),(function(t){return t.getUTCDate()-1}));const jr=Fr;function Rr(t){return sr((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/gr}))}Fr.range;var $r=Rr(0),zr=Rr(1),qr=Rr(2),Hr=Rr(3),Ur=Rr(4),Gr=Rr(5),Yr=Rr(6);$r.range,zr.range,qr.range,Hr.range,Ur.range,Gr.range,Yr.range;var Kr=sr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Kr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Wr=Kr;Kr.range;const[Xr,Vr]=function(t,e,n,i,r,a){const o=[[yr,1,lr],[yr,5,5e3],[yr,15,15e3],[yr,30,3e4],[a,1,hr],[a,5,5*hr],[a,15,15*hr],[a,30,30*hr],[r,1,fr],[r,3,3*fr],[r,6,6*fr],[r,12,12*fr],[i,1,dr],[i,2,2*dr],[n,1,gr],[e,1,pr],[e,3,3*pr],[t,1,br]];function s(e,n,i){const r=Math.abs(n-e)/i,a=v((([,,t])=>t)).right(o,r);if(a===o.length)return t.every(L(e/br,n/br,i));if(0===a)return ur.every(Math.max(L(e,n,i),1));const[s,c]=o[r/o[a-1][2][t.toLowerCase(),e])))}function la(t,e,n){var i=ia.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function ha(t,e,n){var i=ia.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function fa(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function da(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ga(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function pa(t,e,n){var i=ia.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ba(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function wa(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ya(t,e,n){var i=ia.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function ma(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function va(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function xa(t,e,n){var i=ia.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function ka(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function _a(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Ea(t,e,n){var i=ia.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Ta(t,e,n){var i=ia.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Ca(t,e,n){var i=ia.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Sa(t,e,n){var i=ra.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Aa(t,e,n){var i=ia.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Ma(t,e,n){var i=ia.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ia(t,e){return oa(t.getDate(),e,2)}function La(t,e){return oa(t.getHours(),e,2)}function Oa(t,e){return oa(t.getHours()%12||12,e,2)}function Da(t,e){return oa(1+Er.count(Br(t),t),e,3)}function Na(t,e){return oa(t.getMilliseconds(),e,3)}function Pa(t,e){return Na(t,e)+"000"}function Ba(t,e){return oa(t.getMonth()+1,e,2)}function Fa(t,e){return oa(t.getMinutes(),e,2)}function ja(t,e){return oa(t.getSeconds(),e,2)}function Ra(t){var e=t.getDay();return 0===e?7:e}function $a(t,e){return oa(Cr.count(Br(t)-1,t),e,2)}function za(t){var e=t.getDay();return e>=4||0===e?Ir(t):Ir.ceil(t)}function qa(t,e){return t=za(t),oa(Ir.count(Br(t),t)+(4===Br(t).getDay()),e,2)}function Ha(t){return t.getDay()}function Ua(t,e){return oa(Sr.count(Br(t)-1,t),e,2)}function Ga(t,e){return oa(t.getFullYear()%100,e,2)}function Ya(t,e){return oa((t=za(t)).getFullYear()%100,e,2)}function Ka(t,e){return oa(t.getFullYear()%1e4,e,4)}function Wa(t,e){var n=t.getDay();return oa((t=n>=4||0===n?Ir(t):Ir.ceil(t)).getFullYear()%1e4,e,4)}function Xa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+oa(e/60|0,"0",2)+oa(e%60,"0",2)}function Va(t,e){return oa(t.getUTCDate(),e,2)}function Qa(t,e){return oa(t.getUTCHours(),e,2)}function Za(t,e){return oa(t.getUTCHours()%12||12,e,2)}function Ja(t,e){return oa(1+jr.count(Wr(t),t),e,3)}function to(t,e){return oa(t.getUTCMilliseconds(),e,3)}function eo(t,e){return to(t,e)+"000"}function no(t,e){return oa(t.getUTCMonth()+1,e,2)}function io(t,e){return oa(t.getUTCMinutes(),e,2)}function ro(t,e){return oa(t.getUTCSeconds(),e,2)}function ao(t){var e=t.getUTCDay();return 0===e?7:e}function oo(t,e){return oa($r.count(Wr(t)-1,t),e,2)}function so(t){var e=t.getUTCDay();return e>=4||0===e?Ur(t):Ur.ceil(t)}function co(t,e){return t=so(t),oa(Ur.count(Wr(t),t)+(4===Wr(t).getUTCDay()),e,2)}function uo(t){return t.getUTCDay()}function lo(t,e){return oa(zr.count(Wr(t)-1,t),e,2)}function ho(t,e){return oa(t.getUTCFullYear()%100,e,2)}function fo(t,e){return oa((t=so(t)).getUTCFullYear()%100,e,2)}function go(t,e){return oa(t.getUTCFullYear()%1e4,e,4)}function po(t,e){var n=t.getUTCDay();return oa((t=n>=4||0===n?Ur(t):Ur.ceil(t)).getUTCFullYear()%1e4,e,4)}function bo(){return"+0000"}function wo(){return"%"}function yo(t){return+t}function mo(t){return Math.floor(+t/1e3)}function vo(t){return new Date(t)}function xo(t){return t instanceof Date?+t:+new Date(+t)}function ko(t,e,n,i,r,a,o,s,c,u){var l=nr(),h=l.invert,f=l.domain,d=u(".%L"),g=u(":%S"),p=u("%I:%M"),b=u("%I %p"),w=u("%a %d"),y=u("%b %d"),m=u("%B"),v=u("%Y");function x(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:yo,s:mo,S:ja,u:Ra,U:$a,V:qa,w:Ha,W:Ua,x:null,X:null,y:Ga,Y:Ka,Z:Xa,"%":wo},v={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Va,e:Va,f:eo,g:fo,G:po,H:Qa,I:Za,j:Ja,L:to,m:no,M:io,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:yo,s:mo,S:ro,u:ao,U:oo,V:co,w:uo,W:lo,x:null,X:null,y:ho,Y:go,Z:bo,"%":wo},x={a:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=w.exec(e.slice(n));return i?(t.m=y.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return E(t,e,n,i)},d:va,e:va,f:Ca,g:ba,G:pa,H:ka,I:ka,j:xa,L:Ta,m:ma,M:_a,p:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.p=l.get(i[0].toLowerCase()),n+i[0].length):-1},q:ya,Q:Aa,s:Ma,S:Ea,u:ha,U:fa,V:da,w:la,W:ga,x:function(t,e,i){return E(t,n,e,i)},X:function(t,e,n){return E(t,i,e,n)},y:ba,Y:pa,Z:wa,"%":Sa};function k(t,e){return function(n){var i,r,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=Zr(Jr(a.y,0,1))).getUTCDay(),i=r>4||0===r?zr.ceil(i):zr(i),i=jr.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=Qr(Jr(a.y,0,1))).getDay(),i=r>4||0===r?Sr.ceil(i):Sr(i),i=Er.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?Zr(Jr(a.y,0,1)).getUTCDay():Qr(Jr(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Zr(a)):Qr(a)}}function E(t,e,n,i){for(var r,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(a=x[r in na?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return m.x=k(n,m),m.X=k(i,m),m.c=k(e,m),v.x=k(n,v),v.X=k(i,v),v.c=k(e,v),{format:function(t){var e=k(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),ea=ta.format,ta.parse,ta.utcFormat,ta.utcParse;const Eo=function(t){for(var e=new Array(10),n=0;n<10;)e[n]="#"+t.slice(6*n,6*++n);return e}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function To(t){return function(){return t}}const Co=Math.abs,So=Math.atan2,Ao=Math.cos,Mo=Math.max,Io=Math.min,Lo=Math.sin,Oo=Math.sqrt,Do=1e-12,No=Math.PI,Po=No/2,Bo=2*No;function Fo(t){return t>=1?Po:t<=-1?-Po:Math.asin(t)}function jo(t){return t.innerRadius}function Ro(t){return t.outerRadius}function $o(t){return t.startAngle}function zo(t){return t.endAngle}function qo(t){return t&&t.padAngle}function Ho(t,e,n,i,r,a,o){var s=t-n,c=e-i,u=(o?a:-a)/Oo(s*s+c*c),l=u*c,h=-u*s,f=t+l,d=e+h,g=n+l,p=i+h,b=(f+g)/2,w=(d+p)/2,y=g-f,m=p-d,v=y*y+m*m,x=r-a,k=f*p-g*d,_=(m<0?-1:1)*Oo(Mo(0,x*x*v-k*k)),E=(k*m-y*_)/v,T=(-k*y-m*_)/v,C=(k*m+y*_)/v,S=(-k*y+m*_)/v,A=E-b,M=T-w,I=C-b,L=S-w;return A*A+M*M>I*I+L*L&&(E=C,T=S),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(r/x-1),y11:T*(r/x-1)}}function Uo(){var t=jo,e=Ro,n=To(0),i=null,r=$o,a=zo,o=qo,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=r.apply(this,arguments)-Po,d=a.apply(this,arguments)-Po,g=Co(d-f),p=d>f;if(s||(s=c=Li()),hDo)if(g>Bo-Do)s.moveTo(h*Ao(f),h*Lo(f)),s.arc(0,0,h,f,d,!p),l>Do&&(s.moveTo(l*Ao(d),l*Lo(d)),s.arc(0,0,l,d,f,p));else{var b,w,y=f,m=d,v=f,x=d,k=g,_=g,E=o.apply(this,arguments)/2,T=E>Do&&(i?+i.apply(this,arguments):Oo(l*l+h*h)),C=Io(Co(h-l)/2,+n.apply(this,arguments)),S=C,A=C;if(T>Do){var M=Fo(T/l*Lo(E)),I=Fo(T/h*Lo(E));(k-=2*M)>Do?(v+=M*=p?1:-1,x-=M):(k=0,v=x=(f+d)/2),(_-=2*I)>Do?(y+=I*=p?1:-1,m-=I):(_=0,y=m=(f+d)/2)}var L=h*Ao(y),O=h*Lo(y),D=l*Ao(x),N=l*Lo(x);if(C>Do){var P,B=h*Ao(m),F=h*Lo(m),j=l*Ao(v),R=l*Lo(v);if(g1?0:t<-1?No:Math.acos(t)}(($*q+z*H)/(Oo($*$+z*z)*Oo(q*q+H*H)))/2),G=Oo(P[0]*P[0]+P[1]*P[1]);S=Io(C,(l-G)/(U-1)),A=Io(C,(h-G)/(U+1))}}_>Do?A>Do?(b=Ho(j,R,L,O,h,A,p),w=Ho(B,F,D,N,h,A,p),s.moveTo(b.cx+b.x01,b.cy+b.y01),ADo&&k>Do?S>Do?(b=Ho(D,N,B,F,l,-S,p),w=Ho(L,O,j,R,l,-S,p),s.lineTo(b.cx+b.x01,b.cy+b.y01),St?1:e>=t?0:NaN}function Zo(t){return t}Yo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class Jo{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ts(){}function es(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ns(t){this._context=t}function is(t){return new ns(t)}function rs(t){this._context=t}function as(t){this._context=t}function os(t,e){this._basis=new ns(t),this._beta=e}ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:es(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:es(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rs.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:es(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:es(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},os.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],a=e[0],o=t[n]-r,s=e[n]-a,c=-1;++c<=n;)i=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(r+i*o),this._beta*e[c]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ss=function t(e){function n(t){return 1===e?new ns(t):new os(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function cs(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function us(t,e){this._context=t,this._k=(1-e)/6}us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:cs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:cs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ls=function t(e){function n(t){return new us(t,e)}return n.tension=function(e){return t(+e)},n}(0);function hs(t,e){this._context=t,this._k=(1-e)/6}hs.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:cs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fs=function t(e){function n(t){return new hs(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ds(t,e){this._context=t,this._k=(1-e)/6}ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:cs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gs=function t(e){function n(t){return new ds(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ps(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Do){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Do){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function bs(t,e){this._context=t,this._alpha=e}bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ps(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ws=function t(e){function n(t){return e?new bs(t,e):new us(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ys(t,e){this._context=t,this._alpha=e}ys.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ps(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ms=function t(e){function n(t){return e?new ys(t,e):new hs(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function vs(t,e){this._context=t,this._alpha=e}vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:ps(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xs=function t(e){function n(t){return e?new vs(t,e):new ds(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ks(t){this._context=t}function _s(t){return t<0?-1:1}function Es(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(_s(a)+_s(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ts(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cs(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function Ss(t){this._context=t}function As(t){this._context=new Ms(t)}function Ms(t){this._context=t}function Is(t){this._context=t}function Ls(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),o=new Array(i);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Ds.prototype={constructor:Ds,scale:function(t){return 1===t?this:new Ds(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ds(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Ds.prototype;const{entries:Ns,setPrototypeOf:Ps,isFrozen:Bs,getPrototypeOf:Fs,getOwnPropertyDescriptor:js}=Object;let{freeze:Rs,seal:$s,create:zs}=Object,{apply:qs,construct:Hs}=typeof Reflect<"u"&&Reflect;qs||(qs=function(t,e,n){return t.apply(e,n)}),Rs||(Rs=function(t){return t}),$s||($s=function(t){return t}),Hs||(Hs=function(t,e){return new t(...e)});const Us=nc(Array.prototype.forEach),Gs=nc(Array.prototype.pop),Ys=nc(Array.prototype.push),Ks=nc(String.prototype.toLowerCase),Ws=nc(String.prototype.toString),Xs=nc(String.prototype.match),Vs=nc(String.prototype.replace),Qs=nc(String.prototype.indexOf),Zs=nc(String.prototype.trim),Js=nc(RegExp.prototype.test),tc=(ec=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r/gm),mc=$s(/\${[\w\W]*}/gm),vc=$s(/^data-[\-\w.\u00B7-\uFFFF]/),xc=$s(/^aria-[\-\w]+$/),kc=$s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_c=$s(/^(?:\w+script|data):/i),Ec=$s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tc=$s(/^html$/i);var Cc=Object.freeze({__proto__:null,MUSTACHE_EXPR:wc,ERB_EXPR:yc,TMPLIT_EXPR:mc,DATA_ATTR:vc,ARIA_ATTR:xc,IS_ALLOWED_URI:kc,IS_SCRIPT_OR_DATA:_c,ATTR_WHITESPACE:Ec,DOCTYPE_NAME:Tc}),Sc=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window;const n=e=>t(e);if(n.version="3.0.5",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;const i=e.document,r=i.currentScript;let{document:a}=e;const{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:l,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:g}=e,p=u.prototype,b=ac(p,"cloneNode"),w=ac(p,"nextSibling"),y=ac(p,"childNodes"),m=ac(p,"parentNode");if("function"==typeof s){const t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:_,createDocumentFragment:E,getElementsByTagName:T}=a,{importNode:C}=i;let S={};n.isSupported="function"==typeof Ns&&"function"==typeof m&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:N}=Cc;let{IS_ALLOWED_URI:P}=Cc,B=null;const F=ic({},[...oc,...sc,...cc,...lc,...fc]);let j=null;const R=ic({},[...dc,...gc,...pc,...bc]);let $=Object.seal(Object.create(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}})),z=null,q=null,H=!0,U=!0,G=!1,Y=!0,K=!1,W=!1,X=!1,V=!1,Q=!1,Z=!1,J=!1,tt=!0,et=!1,nt=!0,it=!1,rt={},at=null;const ot=ic({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const ct=ic({},["audio","video","img","source","image","track"]);let ut=null;const lt=ic({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let gt=dt,pt=!1,bt=null;const wt=ic({},[ht,ft,dt],Ws);let yt;const mt=["application/xhtml+xml","text/html"];let vt,xt=null;const kt=a.createElement("form"),_t=function(t){return t instanceof RegExp||t instanceof Function},Et=function(t){if(!xt||xt!==t){if((!t||"object"!=typeof t)&&(t={}),t=rc(t),yt=yt=-1===mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,vt="application/xhtml+xml"===yt?Ws:Ks,B="ALLOWED_TAGS"in t?ic({},t.ALLOWED_TAGS,vt):F,j="ALLOWED_ATTR"in t?ic({},t.ALLOWED_ATTR,vt):R,bt="ALLOWED_NAMESPACES"in t?ic({},t.ALLOWED_NAMESPACES,Ws):wt,ut="ADD_URI_SAFE_ATTR"in t?ic(rc(lt),t.ADD_URI_SAFE_ATTR,vt):lt,st="ADD_DATA_URI_TAGS"in t?ic(rc(ct),t.ADD_DATA_URI_TAGS,vt):ct,at="FORBID_CONTENTS"in t?ic({},t.FORBID_CONTENTS,vt):ot,z="FORBID_TAGS"in t?ic({},t.FORBID_TAGS,vt):{},q="FORBID_ATTR"in t?ic({},t.FORBID_ATTR,vt):{},rt="USE_PROFILES"in t&&t.USE_PROFILES,H=!1!==t.ALLOW_ARIA_ATTR,U=!1!==t.ALLOW_DATA_ATTR,G=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,W=t.WHOLE_DOCUMENT||!1,Q=t.RETURN_DOM||!1,Z=t.RETURN_DOM_FRAGMENT||!1,J=t.RETURN_TRUSTED_TYPE||!1,V=t.FORCE_BODY||!1,tt=!1!==t.SANITIZE_DOM,et=t.SANITIZE_NAMED_PROPS||!1,nt=!1!==t.KEEP_CONTENT,it=t.IN_PLACE||!1,P=t.ALLOWED_URI_REGEXP||kc,gt=t.NAMESPACE||dt,$=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&_t(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&_t(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(U=!1),Z&&(Q=!0),rt&&(B=ic({},[...fc]),j=[],!0===rt.html&&(ic(B,oc),ic(j,dc)),!0===rt.svg&&(ic(B,sc),ic(j,gc),ic(j,bc)),!0===rt.svgFilters&&(ic(B,cc),ic(j,gc),ic(j,bc)),!0===rt.mathMl&&(ic(B,lc),ic(j,pc),ic(j,bc))),t.ADD_TAGS&&(B===F&&(B=rc(B)),ic(B,t.ADD_TAGS,vt)),t.ADD_ATTR&&(j===R&&(j=rc(j)),ic(j,t.ADD_ATTR,vt)),t.ADD_URI_SAFE_ATTR&&ic(ut,t.ADD_URI_SAFE_ATTR,vt),t.FORBID_CONTENTS&&(at===ot&&(at=rc(at)),ic(at,t.FORBID_CONTENTS,vt)),nt&&(B["#text"]=!0),W&&ic(B,["html","head","body"]),B.table&&(ic(B,["tbody"]),delete z.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw tc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw tc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=t.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(g,r)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));Rs&&Rs(t),xt=t}},Tt=ic({},["mi","mo","mn","ms","mtext"]),Ct=ic({},["foreignobject","desc","title","annotation-xml"]),St=ic({},["title","style","font","a","script"]),At=ic({},sc);ic(At,cc),ic(At,uc);const Mt=ic({},lc);ic(Mt,hc);const It=function(t){Ys(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch{t.remove()}},Lt=function(t,e){try{Ys(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch{Ys(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!j[t])if(Q||Z)try{It(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Ot=function(t){let e,n;if(V)t=""+t;else{const e=Xs(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===yt&>===dt&&(t=''+t+"");const i=v?v.createHTML(t):t;if(gt===dt)try{e=(new d).parseFromString(i,yt)}catch{}if(!e||!e.documentElement){e=k.createDocument(gt,"template",null);try{e.documentElement.innerHTML=pt?x:i}catch{}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),gt===dt?T.call(e,W?"html":"body")[0]:W?e.documentElement:r},Dt=function(t){return _.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Nt=function(t){return"object"==typeof c?t instanceof c:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Pt=function(t,e,i){S[t]&&Us(S[t],(t=>{t.call(n,e,i,xt)}))},Bt=function(t){let e;if(Pt("beforeSanitizeElements",t,null),function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)}(t))return It(t),!0;const i=vt(t.nodeName);if(Pt("uponSanitizeElement",t,{tagName:i,allowedTags:B}),t.hasChildNodes()&&!Nt(t.firstElementChild)&&(!Nt(t.content)||!Nt(t.content.firstElementChild))&&Js(/<[/\w]/g,t.innerHTML)&&Js(/<[/\w]/g,t.textContent))return It(t),!0;if(!B[i]||z[i]){if(!z[i]&&jt(i)&&($.tagNameCheck instanceof RegExp&&Js($.tagNameCheck,i)||$.tagNameCheck instanceof Function&&$.tagNameCheck(i)))return!1;if(nt&&!at[i]){const e=m(t)||t.parentNode,n=y(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i)e.insertBefore(b(n[i],!0),w(t))}return It(t),!0}return t instanceof u&&!function(t){let e=m(t);(!e||!e.tagName)&&(e={namespaceURI:gt,tagName:"template"});const n=Ks(t.tagName),i=Ks(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===ft?e.namespaceURI===dt?"svg"===n:e.namespaceURI===ht?"svg"===n&&("annotation-xml"===i||Tt[i]):!!At[n]:t.namespaceURI===ht?e.namespaceURI===dt?"math"===n:e.namespaceURI===ft?"math"===n&&Ct[i]:!!Mt[n]:t.namespaceURI===dt?!(e.namespaceURI===ft&&!Ct[i]||e.namespaceURI===ht&&!Tt[i])&&!Mt[n]&&(St[n]||!At[n]):!("application/xhtml+xml"!==yt||!bt[t.namespaceURI]))}(t)||("noscript"===i||"noembed"===i||"noframes"===i)&&Js(/<\/no(script|embed|frames)/i,t.innerHTML)?(It(t),!0):(K&&3===t.nodeType&&(e=t.textContent,e=Vs(e,A," "),e=Vs(e,M," "),e=Vs(e,I," "),t.textContent!==e&&(Ys(n.removed,{element:t.cloneNode()}),t.textContent=e)),Pt("afterSanitizeElements",t,null),!1)},Ft=function(t,e,n){if(tt&&("id"===e||"name"===e)&&(n in a||n in kt))return!1;if((!U||q[e]||!Js(L,e))&&(!H||!Js(O,e)))if(!j[e]||q[e]){if(!(jt(t)&&($.tagNameCheck instanceof RegExp&&Js($.tagNameCheck,t)||$.tagNameCheck instanceof Function&&$.tagNameCheck(t))&&($.attributeNameCheck instanceof RegExp&&Js($.attributeNameCheck,e)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(e))||"is"===e&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Js($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(!ut[e]&&!Js(P,Vs(n,N,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Qs(n,"data:")||!st[t])&&(!G||Js(D,Vs(n,N,"")))&&n)return!1;return!0},jt=function(t){return t.indexOf("-")>0},Rt=function(t){let e,i,r,a;Pt("beforeSanitizeAttributes",t,null);const{attributes:o}=t;if(!o)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};for(a=o.length;a--;){e=o[a];const{name:c,namespaceURI:u}=e;if(i="value"===c?e.value:Zs(e.value),r=vt(c),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,Pt("uponSanitizeAttribute",t,s),i=s.attrValue,s.forceKeepAttr||(Lt(c,t),!s.keepAttr))continue;if(!Y&&Js(/\/>/i,i)){Lt(c,t);continue}K&&(i=Vs(i,A," "),i=Vs(i,M," "),i=Vs(i,I," "));const l=vt(t.nodeName);if(Ft(l,r,i)){if(et&&("id"===r||"name"===r)&&(Lt(c,t),i="user-content-"+i),v&&"object"==typeof g&&"function"==typeof g.getAttributeType&&!u)switch(g.getAttributeType(l,r)){case"TrustedHTML":i=v.createHTML(i);break;case"TrustedScriptURL":i=v.createScriptURL(i)}try{u?t.setAttributeNS(u,c,i):t.setAttribute(c,i),Gs(n.removed)}catch{}}}Pt("afterSanitizeAttributes",t,null)},$t=function t(e){let n;const i=Dt(e);for(Pt("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)Pt("uponSanitizeShadowNode",n,null),!Bt(n)&&(n.content instanceof o&&t(n.content),Rt(n));Pt("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e,r,a,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(pt=!t,pt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Nt(t)){if("function"!=typeof t.toString)throw tc("toString is not a function");if("string"!=typeof(t=t.toString()))throw tc("dirty is not a string, aborting")}if(!n.isSupported)return t;if(X||Et(u),n.removed=[],"string"==typeof t&&(it=!1),it){if(t.nodeName){const e=vt(t.nodeName);if(!B[e]||z[e])throw tc("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)e=Ot("\x3c!----\x3e"),r=e.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?e=r:e.appendChild(r);else{if(!Q&&!K&&!W&&-1===t.indexOf("<"))return v&&J?v.createHTML(t):t;if(e=Ot(t),!e)return Q?null:J?x:""}e&&V&&It(e.firstChild);const l=Dt(it?t:e);for(;a=l.nextNode();)Bt(a)||(a.content instanceof o&&$t(a.content),Rt(a));if(it)return t;if(Q){if(Z)for(s=E.call(e.ownerDocument);e.firstChild;)s.appendChild(e.firstChild);else s=e;return(j.shadowroot||j.shadowrootmode)&&(s=C.call(i,s,!0)),s}let h=W?e.outerHTML:e.innerHTML;return W&&B["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&Js(Tc,e.ownerDocument.doctype.name)&&(h="\n"+h),K&&(h=Vs(h,A," "),h=Vs(h,M," "),h=Vs(h,I," ")),v&&J?v.createHTML(h):h},n.setConfig=function(t){Et(t),X=!0},n.clearConfig=function(){xt=null,X=!1},n.isValidAttribute=function(t,e,n){xt||Et({});const i=vt(t),r=vt(e);return Ft(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&(S[t]=S[t]||[],Ys(S[t],e))},n.removeHook=function(t){if(S[t])return Gs(S[t])},n.removeHooks=function(t){S[t]&&(S[t]=[])},n.removeAllHooks=function(){S={}},n}();const Ac=//gi,Mc=t=>Sc.sanitize(t),Ic=(t,e)=>{var n;if(!1!==(null==(n=e.flowchart)?void 0:n.htmlLabels)){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=Mc(t):"loose"!==n&&(t=(t=(t=Dc(t)).replace(//g,">")).replace(/=/g,"="),t=Oc(t))}return t},Lc=(t,e)=>t&&(e.dompurifyConfig?Sc.sanitize(Ic(t,e),e.dompurifyConfig).toString():Sc.sanitize(Ic(t,e),{FORBID_TAGS:["style"]}).toString()),Oc=t=>t.replace(/#br#/g,"
"),Dc=t=>t.replace(Ac,"#br#"),Nc=t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),Pc=function(t){let e=t;if(t.split("~").length-1>=2){let t=e;do{e=t,t=e.replace(/~([^\s,:;]+)~/,"<$1>")}while(t!=e);return Pc(t)}return e},Bc={getRows:t=>t?Dc(t).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:Lc,sanitizeTextOrArray:(t,e)=>"string"==typeof t?Lc(t,e):t.flat().map((t=>Lc(t,e))),hasBreaks:t=>Ac.test(t),splitBreaks:t=>t.split(Ac),lineBreakRegex:Ac,removeScript:Mc,getUrl:t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},evaluate:Nc,getMax:function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)},getMin:function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}},Fc={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const r=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-r;switch(i){case"r":return 255*Fc.hue2rgb(a,r,t+1/3);case"g":return 255*Fc.hue2rgb(a,r,t);case"b":return 255*Fc.hue2rgb(a,r,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),a=Math.min(t,e,n),o=(r+a)/2;if("l"===i)return 100*o;if(r===a)return 0;const s=r-a;if("s"===i)return 100*(o>.5?s/(2-r-a):s/(r+a));switch(r){case t:return 60*((e-n)/s+(ee>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},Rc={};for(let t=0;t<=255;t++)Rc[t]=jc.unit.dec2hex(t);const $c=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=jc.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=jc.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=jc.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=jc.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=jc.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=jc.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),jc.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),jc.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),jc.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),jc.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),jc.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),jc.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),zc={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(zc.re);if(!e)return;const n=e[1],i=parseInt(n,16),r=n.length,a=r%4==0,o=r>4,s=o?1:17,c=o?8:4,u=a?0:-1,l=o?255:15;return $c.set({r:(i>>c*(u+3)&l)*s,g:(i>>c*(u+2)&l)*s,b:(i>>c*(u+1)&l)*s,a:a?(i&l)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`#${Rc[Math.round(e)]}${Rc[Math.round(n)]}${Rc[Math.round(i)]}${Rc[Math.round(255*r)]}`:`#${Rc[Math.round(e)]}${Rc[Math.round(n)]}${Rc[Math.round(i)]}`}},qc=zc,Hc={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Hc.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return jc.channel.clamp.h(.9*parseFloat(t));case"rad":return jc.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return jc.channel.clamp.h(360*parseFloat(t))}}return jc.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(Hc.re);if(!n)return;const[,i,r,a,o,s]=n;return $c.set({h:Hc._hue2deg(i),s:jc.channel.clamp.s(parseFloat(r)),l:jc.channel.clamp.l(parseFloat(a)),a:o?jc.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:i,a:r}=t;return r<1?`hsla(${jc.lang.round(e)}, ${jc.lang.round(n)}%, ${jc.lang.round(i)}%, ${r})`:`hsl(${jc.lang.round(e)}, ${jc.lang.round(n)}%, ${jc.lang.round(i)}%)`}},Uc=Hc,Gc={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Gc.colors[t];if(e)return qc.parse(e)},stringify:t=>{const e=qc.stringify(t);for(const t in Gc.colors)if(Gc.colors[t]===e)return t}},Yc=Gc,Kc={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(Kc.re);if(!n)return;const[,i,r,a,o,s,c,u,l]=n;return $c.set({r:jc.channel.clamp.r(r?2.55*parseFloat(i):parseFloat(i)),g:jc.channel.clamp.g(o?2.55*parseFloat(a):parseFloat(a)),b:jc.channel.clamp.b(c?2.55*parseFloat(s):parseFloat(s)),a:u?jc.channel.clamp.a(l?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`rgba(${jc.lang.round(e)}, ${jc.lang.round(n)}, ${jc.lang.round(i)}, ${jc.lang.round(r)})`:`rgb(${jc.lang.round(e)}, ${jc.lang.round(n)}, ${jc.lang.round(i)})`}},Wc=Kc,Xc=t=>{if("string"!=typeof t)return t;const e=qc.parse(t)||Wc.parse(t)||Uc.parse(t)||Yc.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},Vc=t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?Uc.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Wc.stringify(t):qc.stringify(t),Qc=(t,e)=>{const n=Xc(t);for(const t in e)n[t]=jc.channel.clamp[t](e[t]);return Vc(n)},Zc=(t,e,n=0,i=1)=>{if("number"!=typeof t)return Qc(t,{a:e});const r=$c.set({r:jc.channel.clamp.r(t),g:jc.channel.clamp.g(e),b:jc.channel.clamp.b(n),a:jc.channel.clamp.a(i)});return Vc(r)},Jc=(t,e)=>jc.lang.round(Xc(t)[e]),tu=t=>!(t=>(t=>{const{r:e,g:n,b:i}=Xc(t),r=.2126*jc.channel.toLinear(e)+.7152*jc.channel.toLinear(n)+.0722*jc.channel.toLinear(i);return jc.lang.round(r)})(t)>=.5)(t),eu=(t,e,n)=>{const i=Xc(t),r=i[e],a=jc.channel.clamp[e](r+n);return r!==a&&(i[e]=a),Vc(i)},nu=(t,e)=>eu(t,"l",e),iu=(t,e)=>eu(t,"l",-e),ru=(t,e)=>{const n=Xc(t),i={};for(const t in e)e[t]&&(i[t]=n[t]+e[t]);return Qc(t,i)},au=(t,e=100)=>{const n=Xc(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((t,e,n=50)=>{const{r:i,g:r,b:a,a:o}=Xc(t),{r:s,g:c,b:u,a:l}=Xc(e),h=n/100,f=2*h-1,d=o-l,g=((f*d==-1?f:(f+d)/(1+f*d))+1)/2,p=1-g;return Zc(i*g+s*p,r*g+c*p,a*g+u*p,o*h+l*(1-h))})(n,t,e)},ou=(t,e)=>ru(t,e?{s:-40,l:10}:{s:-40,l:-10}),su="#ffffff",cu="#f2f2f2",uu=t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ru(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ru(this.primaryColor,{h:-160}),this.primaryBorderColor=ou(this.primaryColor,this.darkMode),this.secondaryBorderColor=ou(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ou(this.tertiaryColor,this.darkMode),this.primaryTextColor=au(this.primaryColor),this.secondaryTextColor=au(this.secondaryColor),this.tertiaryTextColor=au(this.tertiaryColor),this.lineColor=au(this.background),this.textColor=au(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Zc(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ru(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ru(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ru(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ru(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ru(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ru(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ru(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ru(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ru(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||iu(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||iu(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e};class lu{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=nu(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ru(this.primaryColor,{h:-160}),this.primaryBorderColor=ou(this.primaryColor,this.darkMode),this.secondaryBorderColor=ou(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ou(this.tertiaryColor,this.darkMode),this.primaryTextColor=au(this.primaryColor),this.secondaryTextColor=au(this.secondaryColor),this.tertiaryTextColor=au(this.tertiaryColor),this.lineColor=au(this.background),this.textColor=au(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=nu(this.contrast,55),this.border2=this.contrast,this.actorBorder=nu(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const hu={base:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ru(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ru(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ou(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ou(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ou(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ou(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||au(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||au(this.tertiaryColor),this.lineColor=this.lineColor||au(this.background),this.arrowheadColor=this.arrowheadColor||au(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?iu(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||"grey",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||iu(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||au(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||nu(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ru(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ru(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ru(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ru(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ru(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ru(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ru(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ru(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ru(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},dark:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nu(this.primaryColor,16),this.tertiaryColor=ru(this.primaryColor,{h:-160}),this.primaryBorderColor=au(this.background),this.secondaryBorderColor=ou(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ou(this.tertiaryColor,this.darkMode),this.primaryTextColor=au(this.primaryColor),this.secondaryTextColor=au(this.secondaryColor),this.tertiaryTextColor=au(this.tertiaryColor),this.lineColor=au(this.background),this.textColor=au(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nu(au("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Zc(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=iu("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=iu(this.sectionBkgColor,10),this.taskBorderColor=Zc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Zc(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=nu(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=nu(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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=nu(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ru(this.primaryColor,{h:64}),this.fillType3=ru(this.secondaryColor,{h:64}),this.fillType4=ru(this.primaryColor,{h:-64}),this.fillType5=ru(this.secondaryColor,{h:-64}),this.fillType6=ru(this.primaryColor,{h:128}),this.fillType7=ru(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||ru(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ru(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ru(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ru(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ru(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ru(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ru(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ru(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ru(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},default:{getThemeVariables:uu},forest:{getThemeVariables:t=>{const e=new 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=nu("#cde498",10),this.primaryBorderColor=ou(this.primaryColor,this.darkMode),this.secondaryBorderColor=ou(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ou(this.tertiaryColor,this.darkMode),this.primaryTextColor=au(this.primaryColor),this.secondaryTextColor=au(this.secondaryColor),this.tertiaryTextColor=au(this.primaryColor),this.lineColor=au(this.background),this.textColor=au(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=iu(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ru(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ru(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ru(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ru(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ru(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ru(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ru(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ru(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ru(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||iu(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||iu(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},neutral:{getThemeVariables:t=>{const e=new lu;return e.calculate(t),e}}},fu={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,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"},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},du={...fu,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:hu.default.getThemeVariables(),sequence:{...fu.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...fu.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fu.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...fu.pie,useWidth:void 0},requirement:{...fu.requirement,useWidth:void 0},gitGraph:{...fu.gitGraph,useMaxWidth:!1},sankey:{...fu.sankey,useMaxWidth:!1}},gu=(t,e="")=>Object.keys(t).reduce(((n,i)=>Array.isArray(t[i])?n:"object"==typeof t[i]&&null!==t[i]?[...n,e+i,...gu(t[i],"")]:[...n,e+i]),[]),pu=gu(du,""),bu=du;function wu(t){return typeof t>"u"||null===t}var yu={isNothing:wu,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:wu(t)?[]:[t]},repeat:function(t,e){var n,i="";for(n=0;ns&&(e=i-s+(a=" ... ").length),n-i>s&&(n=i+s-(o=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+o,pos:i-e+a.length}}function _u(t,e){return yu.repeat(" ",e-t.length)+t}var Eu=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],a=[],o=-1;n=i.exec(t.buffer);)a.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s,c,u="",l=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+l+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)c=ku(t.buffer,r[o-s],a[o-s],t.position-(r[o]-r[o-s]),h),u=yu.repeat(" ",e.indent)+_u((t.line-s+1).toString(),l)+" | "+c.str+"\n"+u;for(c=ku(t.buffer,r[o],a[o],t.position,h),u+=yu.repeat(" ",e.indent)+_u((t.line+1).toString(),l)+" | "+c.str+"\n",u+=yu.repeat("-",e.indent+l+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)c=ku(t.buffer,r[o+s],a[o+s],t.position-(r[o]-r[o+s]),h),u+=yu.repeat(" ",e.indent)+_u((t.line+s+1).toString(),l)+" | "+c.str+"\n";return u.replace(/\n$/,"")},Tu=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Cu=["scalar","sequence","mapping"],Su=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===Tu.indexOf(e))throw new xu('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}(e.styleAliases||null),-1===Cu.indexOf(this.kind))throw new xu('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function Au(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function Mu(t){return this.extend(t)}Mu.prototype.extend=function(t){var e=[],n=[];if(t instanceof Su)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new xu("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof Su))throw new xu("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new xu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new xu("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof Su))throw new xu("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(Mu.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Au(i,"implicit"),i.compiledExplicit=Au(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),zu=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),qu=/^[-+]?[0-9]+e/,Hu=new Su("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return!(null===t||!zu.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||yu.isNegativeZero(t))},represent:function(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(yu.isNegativeZero(t))return"-0.0";return n=t.toString(10),qu.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),Uu=Nu.extend({implicit:[Pu,Bu,$u,Hu]}),Gu=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Yu=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]))?))?$"),Ku=new Su("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==Gu.exec(t)||null!==Yu.exec(t))},construct:function(t){var e,n,i,r,a,o,s,c,u=0,l=null;if(null===(e=Gu.exec(t))&&(e=Yu.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(l=-l)),c=new Date(Date.UTC(n,i,r,a,o,s,u)),l&&c.setTime(c.getTime()-l),c},instanceOf:Date,represent:function(t){return t.toISOString()}}),Wu=new Su("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Vu=new Su("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=0,r=t.length,a=Xu;for(n=0;n64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,a=Xu,o=0,s=[];for(e=0;e>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(i.charAt(e));return 0==(n=r%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===n?(s.push(o>>10&255),s.push(o>>2&255)):12===n&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,a=t.length,o=Xu;for(e=0;e>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]),r=(r<<8)+t[e];return 0==(n=a%3)?(i+=o[r>>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]):2===n?(i+=o[r>>10&63],i+=o[r>>4&63],i+=o[r<<2&63],i+=o[64]):1===n&&(i+=o[r>>2&63],i+=o[r<<4&63],i+=o[64],i+=o[64]),i}}),Qu=Object.prototype.hasOwnProperty,Zu=Object.prototype.toString,Ju=new Su("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,a,o=[],s=t;for(e=0,n=s.length;e>10),56320+(t-65536&1023))}for(var Al=new Array(256),Ml=new Array(256),Il=0;Il<256;Il++)Al[Il]=Cl(Il)?1:0,Ml[Il]=Cl(Il);function Ll(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||rl,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ol(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=Eu(n),new xu(e,n)}function Dl(t,e){throw Ol(t,e)}function Nl(t,e){t.onWarning&&t.onWarning.call(null,Ol(t,e))}var Pl={YAML:function(t,e,n){var i,r,a;null!==t.version&&Dl(t,"duplication of %YAML directive"),1!==n.length&&Dl(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Dl(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),a=parseInt(i[2],10),1!==r&&Dl(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&Nl(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&Dl(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],bl.test(i)||Dl(t,"ill-formed tag handle (first argument) of the TAG directive"),al.call(t.tagMap,i)&&Dl(t,'there is a previously declared suffix for "'+i+'" tag handle'),wl.test(r)||Dl(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{Dl(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Bl(t,e,n,i){var r,a,o,s;if(e1&&(t.result+=yu.repeat("\n",e-1))}function Hl(t,e){var n,i,r=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Dl(t,"tab characters must not be used in indentation")),45===i&&xl(t.input.charCodeAt(t.position+1)));)if(s=!0,t.position++,$l(t,!0,-1)&&t.lineIndent<=e)o.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,Yl(t,e,cl,!1,!0),o.push(t.result),$l(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)Dl(t,"bad indentation of a sequence entry");else if(t.lineIndente?g=1:t.lineIndent===e?g=0:t.lineIndente?g=1:t.lineIndent===e?g=0:t.lineIndente)&&(w&&(o=t.line,s=t.lineStart,c=t.position),Yl(t,e,ul,!0,r)&&(w?p=t.result:b=t.result),w||(jl(t,f,d,g,p,b,o,s,c),g=p=b=null),$l(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==u)Dl(t,"bad indentation of a mapping entry");else if(t.lineIndent=0))break;0===r?Dl(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Dl(t,"repeat of an indentation width identifier"):(u=e+r-1,c=!0)}if(vl(a)){do{a=t.input.charCodeAt(++t.position)}while(vl(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!ml(a)&&0!==a)}for(;0!==a;){for(Rl(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!c||t.lineIndentu&&(u=t.lineIndent),ml(a))l++;else{if(t.lineIndent0){for(r=o,a=0;r>0;r--)(o=_l(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:Dl(t,"expected hexadecimal character");t.result+=Sl(a),t.position++}else Dl(t,"unknown escape sequence");n=i=t.position}else ml(s)?(Bl(t,n,i,!0),ql(t,$l(t,!1,e)),n=i=t.position):t.position===t.lineStart&&zl(t)?Dl(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Dl(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?b=!0:function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!xl(i)&&!kl(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Dl(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),al.call(t.anchorMap,n)||Dl(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],$l(t,!0,-1),!0}(t)?(b=!0,(null!==t.tag||null!==t.anchor)&&Dl(t,"alias node should not have any properties")):function(t,e,n){var i,r,a,o,s,c,u,l,h=t.kind,f=t.result;if(xl(l=t.input.charCodeAt(t.position))||kl(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l||(63===l||45===l)&&(xl(i=t.input.charCodeAt(t.position+1))||n&&kl(i)))return!1;for(t.kind="scalar",t.result="",r=a=t.position,o=!1;0!==l;){if(58===l){if(xl(i=t.input.charCodeAt(t.position+1))||n&&kl(i))break}else if(35===l){if(xl(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&zl(t)||n&&kl(l))break;if(ml(l)){if(s=t.line,c=t.lineStart,u=t.lineIndent,$l(t,!1,-1),t.lineIndent>=e){o=!0,l=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=c,t.lineIndent=u;break}}o&&(Bl(t,r,a,!1),ql(t,t.line-s),r=a=t.position,o=!1),vl(l)||(a=t.position+1),l=t.input.charCodeAt(++t.position)}return Bl(t,r,a,!1),!!t.result||(t.kind=h,t.result=f,!1)}(t,f,ol===n)&&(b=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(b=s&&Hl(t,d))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Dl(t,'unacceptable node kind for ! tag; it should be "scalar", not "'+t.kind+'"'),c=0,u=t.implicitTypes.length;c"),null!==t.result&&h.kind!==t.kind&&Dl(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Dl(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||b}function Kl(t){var e,n,i,r,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&($l(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(o=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!xl(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&Dl(t,"directive name must not be less than one character in length");0!==r;){for(;vl(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!ml(r));break}if(ml(r))break;for(e=t.position;0!==r&&!xl(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&Rl(t),al.call(Pl,n)?Pl[n](t,n,i):Nl(t,'unknown document directive "'+n+'"')}$l(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,$l(t,!0,-1)):o&&Dl(t,"directives end mark is expected"),Yl(t,t.lineIndent-1,ul,!1,!0),$l(t,!0,-1),t.checkLineBreaks&&gl.test(t.input.slice(a,t.position))&&Nl(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&zl(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,$l(t,!0,-1)):t.positionZl(t,e,n))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||i<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((n=>{"object"!=typeof e[n]||void 0!==t[n]&&"object"!=typeof t[n]?(r||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n]):(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Zl(t[n],e[n],{depth:i-1,clobber:r}))})),t)},Jl=Zl,th=Object.freeze(bu);let eh,nh=Jl({},th),ih=[],rh=Jl({},th);const ah=(t,e)=>{let n=Jl({},t),i={};for(const t of e)uh(t),i=Jl(i,t);if(n=Jl(n,i),i.theme&&i.theme in hu){const t=Jl({},eh),e=Jl(t.themeVariables||{},i.themeVariables);n.theme&&n.theme in hu&&(n.themeVariables=hu[n.theme].getThemeVariables(e))}return rh=n,gh(rh),rh},oh=()=>Jl({},nh),sh=t=>(gh(t),Jl(rh,t),ch()),ch=()=>Jl({},rh),uh=t=>{["secure",...nh.secure??[]].forEach((e=>{void 0!==t[e]&&(o.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{0===e.indexOf("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&uh(t[e])}))},lh=t=>{t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),ih.push(t),ah(nh,ih)},hh=(t=nh)=>{ih=[],ah(t,ih)},fh={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},dh={},gh=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&(t=>{dh[t]||(o.warn(fh[t]),dh[t]=!0)})("LAZY_LOAD_DEPRECATED")},ph=function(t,e,n,i){const r=function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i}(e,n,i);!function(t,e){for(let n of e)t.attr(n[0],n[1])}(t,r)},bh=function(t,e,n,i){const r=e.node().getBBox(),a=r.width,s=r.height;o.info(`SVG bounds: ${a}x${s}`,r);let c=0,u=0;o.info(`Graph bounds: ${c}x${u}`,t),c=a+2*n,u=s+2*n,o.info(`Calculated bounds: ${c}x${u}`),ph(e,u,c,i);const l=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",l)},wh={};let yh="",mh="",vh="";const xh=t=>Lc(t,ch()),kh=function(){yh="",vh="",mh=""},_h=function(t){yh=xh(t).replace(/^\s+/g,"")},Eh=function(){return yh||mh},Th=function(t){vh=xh(t).replace(/\n\s+/g,"\n")},Ch=function(){return vh},Sh=function(t){mh=xh(t)},Ah=function(){return mh},Mh=Object.freeze(Object.defineProperty({__proto__:null,clear:kh,default:{getAccTitle:Eh,setAccTitle:_h,getDiagramTitle:Ah,setDiagramTitle:Sh,getAccDescription:Ch,setAccDescription:Th,clear:kh},getAccDescription:Ch,getAccTitle:Eh,getDiagramTitle:Ah,setAccDescription:Th,setAccTitle:_h,setDiagramTitle:Sh},Symbol.toStringTag,{value:"Module"}));let Ih={};const Lh=function(t,e,n,i){o.debug("parseDirective is being called",e,n,i);try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":Ih={};break;case"type_directive":if(!Ih)throw new Error("currentDirective is undefined");Ih.type=e.toLowerCase();break;case"arg_directive":if(!Ih)throw new Error("currentDirective is undefined");Ih.args=JSON.parse(e);break;case"close_directive":Oh(t,Ih,i),Ih=void 0}}catch(t){o.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${n}`),o.error(t.message)}},Oh=function(t,e,n){switch(o.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":["config"].forEach((t=>{void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),o.info("sanitize in handleDirective",e.args),nd(e.args),o.info("sanitize in handleDirective (done)",e.args),lh(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.warn("themeCss encountered");break;default:o.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}},Dh=o,Nh=s,Ph=ch,Bh=t=>Lc(t,Ph()),Fh=bh,jh=(t,e,n,i)=>Lh(t,e,n,i),Rh={},$h=(t,e,n)=>{if(Rh[t])throw new Error(`Diagram ${t} already registered.`);Rh[t]=e,n&&Xh(t,n),((t,e)=>{void 0!==e&&(wh[t]=e)})(t,e.styles),e.injectUtils&&e.injectUtils(Dh,Nh,Ph,Bh,Fh,Mh,jh)},zh=t=>{if(t in Rh)return Rh[t];throw new qh(t)};class qh extends Error{constructor(t){super(`Diagram ${t} not found.`)}}class Hh extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const Uh=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Gh=/\s*%%.*\n/gm,Yh={},Kh=function(t,e){t=t.replace(Ql,"").replace(Uh,"").replace(Gh,"\n");for(const[n,{detector:i}]of Object.entries(Yh))if(i(t,e))return n;throw new Hh(`No diagram type detected matching given configuration for text: ${t}`)},Wh=(...t)=>{for(const{id:e,detector:n,loader:i}of t)Xh(e,n,i)},Xh=(t,e,n)=>{Yh[t]?o.error(`Detector with key ${t} already exists`):Yh[t]={detector:e,loader:n},o.debug(`Detector with key ${t} added${n?" with loader":""}`)},Vh="object"==typeof global&&global&&global.Object===Object&&global;var Qh="object"==typeof self&&self&&self.Object===Object&&self;const Zh=Vh||Qh||Function("return this")(),Jh=Zh.Symbol;var tf=Object.prototype,ef=tf.hasOwnProperty,nf=tf.toString,rf=Jh?Jh.toStringTag:void 0,af=Object.prototype.toString,of="[object Null]",sf="[object Undefined]",cf=Jh?Jh.toStringTag:void 0;function uf(t){return null==t?void 0===t?sf:of:cf&&cf in Object(t)?function(t){var e=ef.call(t,rf),n=t[rf];try{t[rf]=void 0;var i=!0}catch{}var r=nf.call(t);return i&&(e?t[rf]=n:delete t[rf]),r}(t):function(t){return af.call(t)}(t)}function lf(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var hf="[object AsyncFunction]",ff="[object Function]",df="[object GeneratorFunction]",gf="[object Proxy]";function pf(t){if(!lf(t))return!1;var e=uf(t);return e==ff||e==df||e==hf||e==gf}const bf=Zh["__core-js_shared__"];var wf=function(){var t=/[^.]+$/.exec(bf&&bf.keys&&bf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),yf=Function.prototype.toString;function mf(t){if(null!=t){try{return yf.call(t)}catch{}try{return t+""}catch{}}return""}var vf=/^\[object .+?Constructor\]$/,xf=Function.prototype,kf=Object.prototype,_f=xf.toString,Ef=kf.hasOwnProperty,Tf=RegExp("^"+_f.call(Ef).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cf(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!lf(t)||function(t){return!!wf&&wf in t}(t))&&(pf(t)?Tf:vf).test(mf(t))}(n)?n:void 0}const Sf=Cf(Object,"create");var Af=Object.prototype.hasOwnProperty,Mf=Object.prototype.hasOwnProperty;function If(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},Nf.prototype.set=function(t,e){var n=this.__data__,i=Of(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};const Pf=Cf(Zh,"Map");function Bf(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Ff(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e(Yf++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Yf),Wf=t=>function(t){let e="";for(let n=0;n{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),Bc.lineBreakRegex.test(t)))return t;const i=t.split(" "),r=[];let a="";return i.forEach(((t,o)=>{const s=Jf(`${t} `,n),c=Jf(a,n);if(s>e){const{hyphenatedStrings:i,remainingWord:o}=Qf(t,e,"-",n);r.push(a,...i),a=o}else c+s>=e?(r.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===i.length&&r.push(a)})),r.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),Qf=jf(((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...t],a=[];let o="";return r.forEach(((t,s)=>{const c=`${o}${t}`;if(Jf(c,i)>=e){const t=s+1,e=r.length===t,i=`${c}${n}`;a.push(e?c:i),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),((t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function Zf(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),td(t,e).height}function Jf(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),td(t,e).width}const td=jf(((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:n,fontFamily:i,fontWeight:r}=e;if(!t)return{width:0,height:0};const[,a]=ad(n),o=["sans-serif",i],s=t.split(Bc.lineBreakRegex),c=[],u=ae("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const l=u.append("svg");for(const t of o){let e=0;const n={width:0,height:0,lineHeight:0};for(const i of s){const o={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};o.text=i||"​";const s=Xf(l,o).style("font-size",a).style("font-weight",r).style("font-family",t),c=(s._groups||s)[0][0].getBBox();if(0===c.width&&0===c.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,c.width)),e=Math.round(c.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}c.push(n)}return l.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));let ed;const nd=t=>{if(o.debug("directiveSanitizer called with",t),"object"==typeof t&&(t.length?t.forEach((t=>nd(t))):Object.keys(t).forEach((e=>{o.debug("Checking key",e),e.startsWith("__")&&(o.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(o.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(o.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(o.debug("sanitizing themeCss option"),t[e]=id(t[e])),e.includes("fontFamily")&&(o.debug("sanitizing fontFamily option"),t[e]=id(t[e])),e.includes("altFontFamily")&&(o.debug("sanitizing altFontFamily option"),t[e]=id(t[e])),pu.includes(e)?"object"==typeof t[e]&&(o.debug("sanitize deleting object",e),nd(t[e])):(o.debug("sanitize deleting option",e),delete t[e])}))),t.themeVariables){const e=Object.keys(t.themeVariables);for(const n of e){const e=t.themeVariables[n];e&&e.match&&!e.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[n]="")}}o.debug("After sanitization",t)},id=t=>{let e=0,n=0;for(const i of t){if(e{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},od={assignWithDepth:Jl,wrapLabel:Vf,calculateTextHeight:Zf,calculateTextWidth:Jf,calculateTextDimensions:td,detectInit:function(t,e){const n=qf(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));nd(t),i=Jl(i,[...t])}else i=n.args;if(i){let n=Kh(t,e);["config"].forEach((t=>{void 0!==i[t]&&("flowchart-v2"===n&&(n="flowchart"),i[n]=i[t],delete i[t])}))}return i},detectDirective:qf,isSubstringInArray:function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1},interpolateToCurve:Hf,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,n=0;t.forEach((t=>{n+=Uf(t,e),e=t}));let i,r=n/2;return e=void 0,t.forEach((t=>{if(e&&!i){const n=Uf(t,e);if(n=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:(t,e,n)=>{let i;o.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());let r,a=25;i=void 0,e.forEach((t=>{if(i&&!r){const e=Uf(t,i);if(e=1&&(r={x:t.x,y:t.y}),n>0&&n<1&&(r={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const s=t?10:5,c=Math.atan2(e[0].y-r.y,e[0].x-r.x),u={x:0,y:0};return u.x=Math.sin(c)*s+(e[0].x+r.x)/2,u.y=-Math.cos(c)*s+(e[0].y+r.y)/2,u},calcTerminalLabelPosition:function(t,e,n){let i,r=JSON.parse(JSON.stringify(n));o.info("our points",r),"start_left"!==e&&"start_right"!==e&&(r=r.reverse()),r.forEach((t=>{i=t}));let a,s=25+t;i=void 0,r.forEach((t=>{if(i&&!a){const e=Uf(t,i);if(e=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const c=10+.5*t,u=Math.atan2(r[0].y-a.y,r[0].x-a.x),l={x:0,y:0};return l.x=Math.sin(u)*c+(r[0].x+a.x)/2,l.y=-Math.cos(u)*c+(r[0].y+a.y)/2,"start_left"===e&&(l.x=Math.sin(u+Math.PI)*c+(r[0].x+a.x)/2,l.y=-Math.cos(u+Math.PI)*c+(r[0].y+a.y)/2),"end_right"===e&&(l.x=Math.sin(u-Math.PI)*c+(r[0].x+a.x)/2-5,l.y=-Math.cos(u-Math.PI)*c+(r[0].y+a.y)/2-5),"end_left"===e&&(l.x=Math.sin(u)*c+(r[0].x+a.x)/2-5,l.y=-Math.cos(u)*c+(r[0].y+a.y)/2-5),l},formatUrl:function(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?h(n):n},getStylesFromArray:Gf,generateId:Kf,random:Wf,runFunc:(t,...e)=>{const n=t.split("."),i=n.length-1,r=n[i];let a=window;for(let t=0;t{if(!i)return;const r=t.node().getBBox();t.append("text").text(i).attr("x",r.x+r.width/2).attr("y",-n).attr("class",e)},parseFontSize:ad};var sd="comm",cd="rule",ud="decl",ld=Math.abs,hd=String.fromCharCode;function fd(t){return t.trim()}function dd(t,e,n){return t.replace(e,n)}function gd(t,e){return t.indexOf(e)}function pd(t,e){return 0|t.charCodeAt(e)}function bd(t,e,n){return t.slice(e,n)}function wd(t){return t.length}function yd(t){return t.length}function md(t,e){return e.push(t),t}var vd=1,xd=1,kd=0,_d=0,Ed=0,Td="";function Cd(t,e,n,i,r,a,o){return{value:t,root:e,parent:n,type:i,props:r,children:a,line:vd,column:xd,length:o,return:""}}function Sd(){return Ed=_d2||Ld(Ed)>3?"":" "}function Nd(t,e){for(;--e&&Sd()&&!(Ed<48||Ed>102||Ed>57&&Ed<65||Ed>70&&Ed<97););return Id(t,Md()+(e<6&&32==Ad()&&32==Sd()))}function Pd(t){for(;Sd();)switch(Ed){case t:return _d;case 34:case 39:34!==t&&39!==t&&Pd(Ed);break;case 40:41===t&&Pd(t);break;case 92:Sd()}return _d}function Bd(t,e){for(;Sd()&&t+Ed!==57&&(t+Ed!==84||47!==Ad()););return"/*"+Id(e,_d-1)+"*"+hd(47===t?t:Sd())}function Fd(t){for(;!Ld(Ad());)Sd();return Id(t,_d)}function jd(t){return function(t){return Td="",t}(Rd("",null,null,null,[""],t=function(t){return vd=xd=1,kd=wd(Td=t),_d=0,[]}(t),0,[0],t))}function Rd(t,e,n,i,r,a,o,s,c){for(var u=0,l=0,h=o,f=0,d=0,g=0,p=1,b=1,w=1,y=0,m="",v=r,x=a,k=i,_=m;b;)switch(g=y,y=Sd()){case 40:if(108!=g&&58==pd(_,h-1)){-1!=gd(_+=dd(Od(y),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:_+=Od(y);break;case 9:case 10:case 13:case 32:_+=Dd(g);break;case 92:_+=Nd(Md()-1,7);continue;case 47:switch(Ad()){case 42:case 47:md(zd(Bd(Sd(),Md()),e,n),c);break;default:_+="/"}break;case 123*p:s[u++]=wd(_)*w;case 125*p:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+l:d>0&&wd(_)-h&&md(d>32?qd(_+";",i,n,h-1):qd(dd(_," ","")+";",i,n,h-2),c);break;case 59:_+=";";default:if(md(k=$d(_,e,n,u,l,r,s,m,v=[],x=[],h),a),123===y)if(0===l)Rd(_,e,k,k,v,a,h,s,x);else switch(99===f&&110===pd(_,3)?100:f){case 100:case 109:case 115:Rd(t,k,k,i&&md($d(t,k,k,0,0,r,s,m,r,v=[],h),x),r,x,h,s,i?v:x);break;default:Rd(_,k,k,k,[""],x,0,s,x)}}u=l=d=0,p=w=1,m=_="",h=o;break;case 58:h=1+wd(_),d=g;default:if(p<1)if(123==y)--p;else if(125==y&&0==p++&&125==(Ed=_d>0?pd(Td,--_d):0,xd--,10===Ed&&(xd=1,vd--),Ed))continue;switch(_+=hd(y),y*p){case 38:w=l>0?1:(_+="\f",-1);break;case 44:s[u++]=(wd(_)-1)*w,w=1;break;case 64:45===Ad()&&(_+=Od(Sd())),f=Ad(),l=h=wd(m=_+=Fd(Md())),y++;break;case 45:45===g&&2==wd(_)&&(p=0)}}return a}function $d(t,e,n,i,r,a,o,s,c,u,l){for(var h=r-1,f=0===r?a:[""],d=yd(f),g=0,p=0,b=0;g0?f[w]+" "+y:dd(y,/&\f/g,f[w])))&&(c[b++]=m);return Cd(t,e,n,0===r?cd:s,c,u,l)}function zd(t,e,n){return Cd(t,e,n,sd,hd(Ed),bd(t,2,-2),0)}function qd(t,e,n,i){return Cd(t,e,n,ud,bd(t,0,i),bd(t,i+1,-1),i)}function Hd(t,e){for(var n="",i=yd(t),r=0;r/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>Pb));return{id:"c4",diagram:t}}},Kd="flowchart",Wd={id:Kd,detector:(t,e)=>{var n,i;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&/^\s*graph/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>dC));return{id:Kd,diagram:t}}},Xd="flowchart-v2",Vd={id:Xd,detector:(t,e)=>{var n,i,r;return"dagre-d3"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&(!(!/^\s*graph/.test(t)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer))||/^\s*flowchart/.test(t))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>gC));return{id:Xd,diagram:t}}},Qd={id:"er",detector:t=>/^\s*erDiagram/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>PC));return{id:"er",diagram:t}}},Zd="gitGraph",Jd={id:Zd,detector:t=>/^\s*gitGraph/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>lS));return{id:Zd,diagram:t}}},tg="gantt",eg={id:tg,detector:t=>/^\s*gantt/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>iA));return{id:tg,diagram:t}}},ng="info",ig={id:ng,detector:t=>/^\s*info/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>sA));return{id:ng,diagram:t}}},rg={id:"pie",detector:t=>/^\s*pie/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>pA));return{id:"pie",diagram:t}}},ag="quadrantChart",og={id:ag,detector:t=>/^\s*quadrantChart/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>kA));return{id:ag,diagram:t}}},sg="requirement",cg={id:sg,detector:t=>/^\s*requirement(Diagram)?/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>RA));return{id:sg,diagram:t}}},ug="sequence",lg={id:ug,detector:t=>/^\s*sequenceDiagram/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>VM));return{id:ug,diagram:t}}},hg="class",fg={id:hg,detector:(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)&&/^\s*classDiagram/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>mI));return{id:hg,diagram:t}}},dg="classDiagram",gg={id:dg,detector:(t,e)=>{var n;return!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer))||/^\s*classDiagram-v2/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>EI));return{id:dg,diagram:t}}},pg="state",bg={id:pg,detector:(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer)&&/^\s*stateDiagram/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>fL));return{id:pg,diagram:t}}},wg="stateDiagram",yg={id:wg,detector:(t,e)=>{var n;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>FL));return{id:wg,diagram:t}}},mg="journey",vg={id:mg,detector:t=>/^\s*journey/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>sO));return{id:mg,diagram:t}}},xg=t=>{var e;const{securityLevel:n}=ch();let i=ae("body");if("sandbox"===n){const n=(null==(e=ae(`#i${t}`).node())?void 0:e.contentDocument)??document;i=ae(n.body)}return i.select(`#${t}`)},kg={draw:(t,e,n)=>{o.debug("renering svg for syntax error\n");const i=xg(e);i.attr("viewBox","0 0 2412 512"),ph(i,100,512,!0);const r=i.append("g");r.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"),r.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"),r.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"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.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"),r.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"),r.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"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}},_g=kg,Eg={db:{},renderer:kg,parser:{parser:{yy:{}},parse:()=>{}}},Tg="flowchart-elk",Cg={id:Tg,detector:(t,e)=>{var n;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>vO));return{id:Tg,diagram:t}}},Sg="timeline",Ag={id:Sg,detector:t=>/^\s*timeline/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>GO));return{id:Sg,diagram:t}}},Mg="mindmap",Ig={id:Mg,detector:t=>/^\s*mindmap/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>wD));return{id:Mg,diagram:t}}},Lg="sankey",Og={id:Lg,detector:t=>/^\s*sankey-beta/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>sN));return{id:Lg,diagram:t}}};let Dg=!1;const Ng=()=>{Dg||(Dg=!0,$h("error",Eg,(t=>"error"===t.toLowerCase().trim())),$h("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),Wh(Yd,gg,fg,Qd,eg,ig,rg,cg,lg,Cg,Vd,Wd,Ig,Ag,Jd,yg,bg,vg,og,Og))};class Pg{constructor(t){this.text=t,this.type="graph",this.text+="\n";const e=ch();try{this.type=Kh(t,e)}catch(t){this.type="error",this.detectError=t}const n=zh(this.type);o.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser;const i=this.parser.parse.bind(this.parser);this.parser.parse=t=>i((t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,""))(function(t,e){var n,i;const r=t.match(Ql);if(r){const a=Vl(r[1],{schema:Xl});return null!=a&&a.title&&(null==(n=e.setDiagramTitle)||n.call(e,a.title)),null!=a&&a.displayMode&&(null==(i=e.setDisplayMode)||i.call(e,a.displayMode)),t.slice(r[0].length)}return t}(t,this.db))),this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var t,e,n;if(this.detectError)throw this.detectError;null==(e=(t=this.db).clear)||e.call(t),null==(n=this.init)||n.call(this,ch()),this.parser.parse(this.text)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}}const Bg=async t=>{const e=Kh(t,ch());try{zh(e)}catch{const t=(t=>Yh[t].loader)(e);if(!t)throw new Hh(`Diagram ${e} not found.`);const{id:n,diagram:i}=await t();$h(n,i)}return new Pg(t)};let Fg=[];var jg=Object.prototype;function Rg(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||jg)}function $g(t,e){return function(n){return t(e(n))}}const zg=$g(Object.keys,Object);var qg=Object.prototype.hasOwnProperty;function Hg(t){if(!Rg(t))return zg(t);var e=[];for(var n in Object(t))qg.call(t,n)&&"constructor"!=n&&e.push(n);return e}const Ug=Cf(Zh,"DataView"),Gg=Cf(Zh,"Promise"),Yg=Cf(Zh,"Set"),Kg=Cf(Zh,"WeakMap");var Wg="[object Map]",Xg="[object Promise]",Vg="[object Set]",Qg="[object WeakMap]",Zg="[object DataView]",Jg=mf(Ug),tp=mf(Pf),ep=mf(Gg),np=mf(Yg),ip=mf(Kg),rp=uf;(Ug&&rp(new Ug(new ArrayBuffer(1)))!=Zg||Pf&&rp(new Pf)!=Wg||Gg&&rp(Gg.resolve())!=Xg||Yg&&rp(new Yg)!=Vg||Kg&&rp(new Kg)!=Qg)&&(rp=function(t){var e=uf(t),n="[object Object]"==e?t.constructor:void 0,i=n?mf(n):"";if(i)switch(i){case Jg:return Zg;case tp:return Wg;case ep:return Xg;case np:return Vg;case ip:return Qg}return e});const ap=rp;function op(t){return null!=t&&"object"==typeof t}function sp(t){return op(t)&&"[object Arguments]"==uf(t)}var cp=Object.prototype,up=cp.hasOwnProperty,lp=cp.propertyIsEnumerable,hp=sp(function(){return arguments}())?sp:function(t){return op(t)&&up.call(t,"callee")&&!lp.call(t,"callee")};const fp=hp,dp=Array.isArray;var gp=9007199254740991;function pp(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gp}function bp(t){return null!=t&&pp(t.length)&&!pf(t)}var wp="object"==typeof exports&&exports&&!exports.nodeType&&exports,yp=wp&&"object"==typeof module&&module&&!module.nodeType&&module,mp=yp&&yp.exports===wp?Zh.Buffer:void 0;const vp=(mp?mp.isBuffer:void 0)||function(){return!1};var xp={};function kp(t){return function(e){return t(e)}}xp["[object Float32Array]"]=xp["[object Float64Array]"]=xp["[object Int8Array]"]=xp["[object Int16Array]"]=xp["[object Int32Array]"]=xp["[object Uint8Array]"]=xp["[object Uint8ClampedArray]"]=xp["[object Uint16Array]"]=xp["[object Uint32Array]"]=!0,xp["[object Arguments]"]=xp["[object Array]"]=xp["[object ArrayBuffer]"]=xp["[object Boolean]"]=xp["[object DataView]"]=xp["[object Date]"]=xp["[object Error]"]=xp["[object Function]"]=xp["[object Map]"]=xp["[object Number]"]=xp["[object Object]"]=xp["[object RegExp]"]=xp["[object Set]"]=xp["[object String]"]=xp["[object WeakMap]"]=!1;var _p="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ep=_p&&"object"==typeof module&&module&&!module.nodeType&&module,Tp=Ep&&Ep.exports===_p&&Vh.process;const Cp=function(){try{return Ep&&Ep.require&&Ep.require("util").types||Tp&&Tp.binding&&Tp.binding("util")}catch{}}();var Sp=Cp&&Cp.isTypedArray,Ap=Sp?kp(Sp):function(t){return op(t)&&pp(t.length)&&!!xp[uf(t)]};const Mp=Ap;var Ip=Object.prototype.hasOwnProperty;function Lp(t){if(null==t)return!0;if(bp(t)&&(dp(t)||"string"==typeof t||"function"==typeof t.splice||vp(t)||Mp(t)||fp(t)))return!t.length;var e=ap(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Rg(t))return!Hg(t).length;for(var n in t)if(Ip.call(t,n))return!1;return!0}const Op=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],Dp=["foreignobject"],Np=["dominant-baseline"],Pp=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Bp=(t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`,Fp=(t,e,n,i)=>{const r=((t,e,n={})=>{var i;let r="";if(void 0!==t.themeCSS&&(r+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Lp(n)&&Op.includes(e)){const e=t.htmlLabels||(null==(i=t.flowchart)?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in n){const i=n[t];Lp(i.styles)||e.forEach((t=>{r+=Bp(i.id,t,i.styles)})),Lp(i.textStyles)||(r+=Bp(i.id,"tspan",i.textStyles))}}return r})(t,e,n);return Hd(jd(`${i}{${((t,e,n)=>{let i="";return t in wh&&wh[t]?i=wh[t](n):o.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${i}\n\n ${e}\n`})(e,r,t.themeVariables)}}`),Ud)},jp=(t,e,n,i,r)=>{const a=t.append("div");a.attr("id",n),i&&a.attr("style",i);const o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return r&&o.attr("xmlns:xlink",r),o.append("g"),t};function Rp(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const $p=Object.freeze({render:async function(t,e,n){var i,r,a,s;Ng(),hh();const c=od.detectInit(e);c&&(nd(c),lh(c));const u=ch();o.debug(u),e.length>((null==u?void 0:u.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),e=(e=e.replace(/\r\n?/g,"\n")).replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">"));const l="#"+t,h="i"+t,f="#"+h,d="d"+t,g="#"+d;let p=ae("body");const b="sandbox"===u.securityLevel,w="loose"===u.securityLevel,y=u.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),b){const t=Rp(ae(n),h);p=ae(t.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=ae(n);jp(p,t,d,`font-family: ${y}`,"http://www.w3.org/1999/xlink")}else{if(((t,e,n,i)=>{var r,a,o;null==(r=t.getElementById(e))||r.remove(),null==(a=t.getElementById(n))||a.remove(),null==(o=t.getElementById(i))||o.remove()})(document,t,d,h),b){const t=Rp(ae("body"),h);p=ae(t.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=ae("body");jp(p,t,d)}let m,v;e=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}(e);try{m=await Bg(e)}catch(t){m=new Pg("error"),v=t}const x=p.select(g).node(),k=m.type,_=x.firstChild,E=_.firstChild,T=Op.includes(k)?m.renderer.getClasses(e,m):{},C=Fp(u,k,T,l),S=document.createElement("style");S.innerHTML=C,_.insertBefore(S,E);try{await m.renderer.draw(e,t,Gd,m)}catch(n){throw _g.draw(e,t,Gd),n}(function(t,e,n,i){(function(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)})(e,t),function(t,e,n,i){if(void 0!==t.insert){if(n){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(e,n,i,e.attr("id"))})(k,p.select(`${g} svg`),null==(r=(i=m.db).getAccTitle)?void 0:r.call(i),null==(s=(a=m.db).getAccDescription)?void 0:s.call(a)),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=p.select(g).node().innerHTML;if(o.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),A=((t="",e,n)=>{let i=t;return!n&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Pp(i),i=i.replace(/
/g,"
"),i})(A,b,Nc(u.arrowMarkerAbsolute)),b?A=((t="",e)=>{var n,i;return``})(A,p.select(g+" svg").node()):w||(A=Sc.sanitize(A,{ADD_TAGS:Dp,ADD_ATTR:Np})),Fg.forEach((t=>{t()})),Fg=[],v)throw v;const M=ae(b?f:g).node();return M&&"remove"in M&&M.remove(),{svg:A,bindFunctions:m.db.bindFunctions}},parse:async function(t,e){Ng();try{await Bg(t)}catch(t){if(null!=e&&e.suppressErrors)return!1;throw t}return!0},parseDirective:Lh,getDiagramFromText:Bg,initialize:function(t={}){var e;null!=t&&t.fontFamily&&!(null!=(e=t.themeVariables)&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(t=>{eh=Jl({},t)})(t),null!=t&&t.theme&&t.theme in hu?t.themeVariables=hu[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=hu.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?(t=>(nh=Jl({},th),nh=Jl(nh,t),t.theme&&hu[t.theme]&&(nh.themeVariables=hu[t.theme].getThemeVariables(t.themeVariables)),ah(nh,ih),nh))(t):oh();s(n.logLevel),Ng()},getConfig:ch,setConfig:sh,getSiteConfig:oh,updateSiteConfig:t=>(nh=Jl(nh,t),ah(nh,ih),nh),reset:()=>{hh()},globalReset:()=>{hh(th)},defaultConfig:th});s(ch().logLevel),hh(ch());const zp=(t,e,n)=>{o.warn(t),rd(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},qp=async function(t={querySelector:".mermaid"}){try{await Hp(t)}catch(e){if(rd(e)&&o.error(e.str),Vp.parseError&&Vp.parseError(e),!t.suppressErrors)throw o.error("Use the suppressErrors option to suppress these errors"),e}},Hp=async function({postRenderCallback:e,querySelector:n,nodes:i}={querySelector:".mermaid"}){const r=$p.getConfig();let a;if(o.debug((e?"":"No ")+"Callback function found"),i)a=i;else{if(!n)throw new Error("Nodes and querySelector are both undefined");a=document.querySelectorAll(n)}o.debug(`Found ${a.length} diagrams`),void 0!==(null==r?void 0:r.startOnLoad)&&(o.debug("Start On Load: "+(null==r?void 0:r.startOnLoad)),$p.updateSiteConfig({startOnLoad:null==r?void 0:r.startOnLoad}));const s=new od.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let c;const u=[];for(const n of Array.from(a)){if(o.info("Rendering diagram: "+n.id),n.getAttribute("data-processed"))continue;n.setAttribute("data-processed","true");const i=`mermaid-${s.next()}`;c=n.innerHTML,c=t(od.entityDecode(c)).trim().replace(//gi,"
");const r=od.detectInit(c);r&&o.debug("Detected early reinit: ",r);try{const{svg:t,bindFunctions:r}=await Xp(i,c,n);n.innerHTML=t,e&&await e(i),r&&r(n)}catch(t){zp(t,u,Vp.parseError)}}if(u.length>0)throw u[0]},Up=function(t){$p.initialize(t)},Gp=function(){if(Vp.startOnLoad){const{startOnLoad:t}=$p.getConfig();t&&Vp.run().catch((t=>o.error("Mermaid failed to initialize",t)))}};typeof document<"u"&&window.addEventListener("load",Gp,!1);const Yp=[];let Kp=!1;const Wp=async()=>{if(!Kp){for(Kp=!0;Yp.length>0;){const t=Yp.shift();if(t)try{await t()}catch(t){o.error("Error executing queue",t)}}Kp=!1}},Xp=(t,e,n)=>new Promise(((i,r)=>{Yp.push((()=>new Promise(((a,s)=>{$p.render(t,e,n).then((t=>{a(t),i(t)}),(t=>{var e;o.error("Error parsing",t),null==(e=Vp.parseError)||e.call(Vp,t),s(t),r(t)}))})))),Wp().catch(r)})),Vp={startOnLoad:!0,mermaidAPI:$p,parse:async(t,e)=>new Promise(((n,i)=>{Yp.push((()=>new Promise(((r,a)=>{$p.parse(t,e).then((t=>{r(t),n(t)}),(t=>{var e;o.error("Error parsing",t),null==(e=Vp.parseError)||e.call(Vp,t),a(t),i(t)}))})))),Wp().catch(i)})),render:Xp,init:async function(t,e,n){o.warn("mermaid.init is deprecated. Please use run instead."),t&&Up(t);const i={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await qp(i)},run:qp,registerExternalDiagrams:async(t,{lazyLoad:e=!0}={})=>{Wh(...t),!1===e&&await(async()=>{o.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Yh).map((async([t,{detector:e,loader:n}])=>{if(n)try{zh(t)}catch{try{const{diagram:t,id:i}=await n();$h(i,t,e)}catch(e){throw o.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete Yh[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){o.error(`Failed to load ${t.length} external diagrams`);for(const e of t)o.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}})()},initialize:Up,parseError:void 0,contentLoaded:Gp,setParseErrorHandler:function(t){Vp.parseError=t},detectType:Kh};var Qp=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,6],n=[1,7],i=[1,8],r=[1,9],a=[1,16],o=[1,11],s=[1,12],u=[1,13],l=[1,14],h=[1,15],f=[1,27],d=[1,33],g=[1,34],p=[1,35],b=[1,36],w=[1,37],y=[1,72],m=[1,73],v=[1,74],x=[1,75],k=[1,76],_=[1,77],E=[1,78],T=[1,38],C=[1,39],S=[1,40],A=[1,41],M=[1,42],I=[1,43],L=[1,44],O=[1,45],D=[1,46],N=[1,47],P=[1,48],B=[1,49],F=[1,50],j=[1,51],R=[1,52],$=[1,53],z=[1,54],q=[1,55],H=[1,56],U=[1,57],G=[1,59],Y=[1,60],K=[1,61],W=[1,62],X=[1,63],V=[1,64],Q=[1,65],Z=[1,66],J=[1,67],tt=[1,68],et=[1,69],nt=[24,52],it=[24,44,46,47,48,49,50,51,52,54,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],rt=[15,24,44,46,47,48,49,50,51,52,54,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],at=[1,94],ot=[1,95],st=[1,96],ct=[1,97],ut=[15,24,52],lt=[7,8,9,10,18,22,25,26,27,28],ht=[15,24,43,52],ft=[15,24,43,52,86,87,89,90],dt=[15,43],gt=[44,46,47,48,49,50,51,54,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],pt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:i.setC4Type(a[s-3]);break;case 26:i.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 27:i.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 28:this.$=a[s].trim(),i.setTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 35:case 36:a[s].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 37:i.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 38:a[s].splice(2,0,"CONTAINER"),i.addContainerBoundary(...a[s]),this.$=a[s];break;case 39:i.addDeploymentNode("node",...a[s]),this.$=a[s];break;case 40:i.addDeploymentNode("nodeL",...a[s]),this.$=a[s];break;case 41:i.addDeploymentNode("nodeR",...a[s]),this.$=a[s];break;case 42:i.popBoundaryParseStack();break;case 46:i.addPersonOrSystem("person",...a[s]),this.$=a[s];break;case 47:i.addPersonOrSystem("external_person",...a[s]),this.$=a[s];break;case 48:i.addPersonOrSystem("system",...a[s]),this.$=a[s];break;case 49:i.addPersonOrSystem("system_db",...a[s]),this.$=a[s];break;case 50:i.addPersonOrSystem("system_queue",...a[s]),this.$=a[s];break;case 51:i.addPersonOrSystem("external_system",...a[s]),this.$=a[s];break;case 52:i.addPersonOrSystem("external_system_db",...a[s]),this.$=a[s];break;case 53:i.addPersonOrSystem("external_system_queue",...a[s]),this.$=a[s];break;case 54:i.addContainer("container",...a[s]),this.$=a[s];break;case 55:i.addContainer("container_db",...a[s]),this.$=a[s];break;case 56:i.addContainer("container_queue",...a[s]),this.$=a[s];break;case 57:i.addContainer("external_container",...a[s]),this.$=a[s];break;case 58:i.addContainer("external_container_db",...a[s]),this.$=a[s];break;case 59:i.addContainer("external_container_queue",...a[s]),this.$=a[s];break;case 60:i.addComponent("component",...a[s]),this.$=a[s];break;case 61:i.addComponent("component_db",...a[s]),this.$=a[s];break;case 62:i.addComponent("component_queue",...a[s]),this.$=a[s];break;case 63:i.addComponent("external_component",...a[s]),this.$=a[s];break;case 64:i.addComponent("external_component_db",...a[s]),this.$=a[s];break;case 65:i.addComponent("external_component_queue",...a[s]),this.$=a[s];break;case 67:i.addRel("rel",...a[s]),this.$=a[s];break;case 68:i.addRel("birel",...a[s]),this.$=a[s];break;case 69:i.addRel("rel_u",...a[s]),this.$=a[s];break;case 70:i.addRel("rel_d",...a[s]),this.$=a[s];break;case 71:i.addRel("rel_l",...a[s]),this.$=a[s];break;case 72:i.addRel("rel_r",...a[s]),this.$=a[s];break;case 73:i.addRel("rel_b",...a[s]),this.$=a[s];break;case 74:a[s].splice(0,1),i.addRel("rel",...a[s]),this.$=a[s];break;case 75:i.updateElStyle("update_el_style",...a[s]),this.$=a[s];break;case 76:i.updateRelStyle("update_rel_style",...a[s]),this.$=a[s];break;case 77:i.updateLayoutConfig("update_layout_config",...a[s]),this.$=a[s];break;case 78:this.$=[a[s]];break;case 79:a[s].unshift(a[s-1]),this.$=a[s];break;case 80:case 82:this.$=a[s].trim();break;case 81:let t={};t[a[s-1].trim()]=a[s].trim(),this.$=t;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:i,10:r,11:5,12:10,18:a,22:o,25:s,26:u,27:l,28:h},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:e,8:n,9:i,10:r,11:5,12:10,18:a,22:o,25:s,26:u,27:l,28:h},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:f},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:d,33:g,34:p,36:b,38:w,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{23:79,29:29,30:30,31:31,32:d,33:g,34:p,36:b,38:w,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{23:80,29:29,30:30,31:31,32:d,33:g,34:p,36:b,38:w,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{23:81,29:29,30:30,31:31,32:d,33:g,34:p,36:b,38:w,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{23:82,29:29,30:30,31:31,32:d,33:g,34:p,36:b,38:w,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(nt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:y,46:m,47:v,48:x,49:k,50:_,51:E,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et}),t(nt,[2,21]),t(it,[2,23],{15:[1,88]}),t(nt,[2,43],{15:[1,89]}),t(rt,[2,26]),t(rt,[2,27]),{35:[1,90]},{37:[1,91]},t(rt,[2,30]),{45:92,85:93,86:at,87:ot,89:st,90:ct},{45:98,85:93,86:at,87:ot,89:st,90:ct},{45:99,85:93,86:at,87:ot,89:st,90:ct},{45:100,85:93,86:at,87:ot,89:st,90:ct},{45:101,85:93,86:at,87:ot,89:st,90:ct},{45:102,85:93,86:at,87:ot,89:st,90:ct},{45:103,85:93,86:at,87:ot,89:st,90:ct},{45:104,85:93,86:at,87:ot,89:st,90:ct},{45:105,85:93,86:at,87:ot,89:st,90:ct},{45:106,85:93,86:at,87:ot,89:st,90:ct},{45:107,85:93,86:at,87:ot,89:st,90:ct},{45:108,85:93,86:at,87:ot,89:st,90:ct},{45:109,85:93,86:at,87:ot,89:st,90:ct},{45:110,85:93,86:at,87:ot,89:st,90:ct},{45:111,85:93,86:at,87:ot,89:st,90:ct},{45:112,85:93,86:at,87:ot,89:st,90:ct},{45:113,85:93,86:at,87:ot,89:st,90:ct},{45:114,85:93,86:at,87:ot,89:st,90:ct},{45:115,85:93,86:at,87:ot,89:st,90:ct},{45:116,85:93,86:at,87:ot,89:st,90:ct},t(ut,[2,66]),{45:117,85:93,86:at,87:ot,89:st,90:ct},{45:118,85:93,86:at,87:ot,89:st,90:ct},{45:119,85:93,86:at,87:ot,89:st,90:ct},{45:120,85:93,86:at,87:ot,89:st,90:ct},{45:121,85:93,86:at,87:ot,89:st,90:ct},{45:122,85:93,86:at,87:ot,89:st,90:ct},{45:123,85:93,86:at,87:ot,89:st,90:ct},{45:124,85:93,86:at,87:ot,89:st,90:ct},{45:125,85:93,86:at,87:ot,89:st,90:ct},{45:126,85:93,86:at,87:ot,89:st,90:ct},{45:127,85:93,86:at,87:ot,89:st,90:ct},{30:128,39:58,40:70,42:71,44:y,46:m,47:v,48:x,49:k,50:_,51:E,53:32,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et},{15:[1,130],43:[1,129]},{45:131,85:93,86:at,87:ot,89:st,90:ct},{45:132,85:93,86:at,87:ot,89:st,90:ct},{45:133,85:93,86:at,87:ot,89:st,90:ct},{45:134,85:93,86:at,87:ot,89:st,90:ct},{45:135,85:93,86:at,87:ot,89:st,90:ct},{45:136,85:93,86:at,87:ot,89:st,90:ct},{45:137,85:93,86:at,87:ot,89:st,90:ct},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(lt,[2,9]),{14:142,21:f},{21:[2,13]},{1:[2,15]},t(nt,[2,22]),t(it,[2,24],{31:31,29:143,32:d,33:g,34:p,36:b,38:w}),t(nt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:d,33:g,34:p,36:b,38:w,44:y,46:m,47:v,48:x,49:k,50:_,51:E,54:T,55:C,56:S,57:A,58:M,59:I,60:L,61:O,62:D,63:N,64:P,65:B,66:F,67:j,68:R,69:$,70:z,71:q,72:H,73:U,74:G,75:Y,76:K,77:W,78:X,79:V,80:Q,81:Z,82:J,83:tt,84:et}),t(rt,[2,28]),t(rt,[2,29]),t(ut,[2,46]),t(ht,[2,78],{85:93,45:145,86:at,87:ot,89:st,90:ct}),t(ft,[2,80]),{88:[1,146]},t(ft,[2,82]),t(ft,[2,83]),t(ut,[2,47]),t(ut,[2,48]),t(ut,[2,49]),t(ut,[2,50]),t(ut,[2,51]),t(ut,[2,52]),t(ut,[2,53]),t(ut,[2,54]),t(ut,[2,55]),t(ut,[2,56]),t(ut,[2,57]),t(ut,[2,58]),t(ut,[2,59]),t(ut,[2,60]),t(ut,[2,61]),t(ut,[2,62]),t(ut,[2,63]),t(ut,[2,64]),t(ut,[2,65]),t(ut,[2,67]),t(ut,[2,68]),t(ut,[2,69]),t(ut,[2,70]),t(ut,[2,71]),t(ut,[2,72]),t(ut,[2,73]),t(ut,[2,74]),t(ut,[2,75]),t(ut,[2,76]),t(ut,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(dt,[2,35]),t(dt,[2,36]),t(dt,[2,37]),t(dt,[2,38]),t(dt,[2,39]),t(dt,[2,40]),t(dt,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(it,[2,25]),t(nt,[2,45]),t(ht,[2,79]),t(ft,[2,81]),t(ut,[2,31]),t(ut,[2,42]),t(gt,[2,32]),t(gt,[2,33],{15:[1,152]}),t(lt,[2,10]),t(gt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 78:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:case 75:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:case 84:this.popState(),this.popState();break;case 74:case 76:return 90;case 77:this.begin("string");break;case 79:case 85:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[70,71,72,73],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,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,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function wt(){this.yy={}}return pt.lexer=bt,wt.prototype=pt,pt.Parser=wt,new wt}();Qp.parser=Qp;const Zp=Qp;let Jp=[],tb=[""],eb="global",nb="",ib=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rb=[],ab="",ob=!1,sb=4,cb=2;var ub;const lb=function(t){return null==t?Jp:Jp.filter((e=>e.parentBoundary===t))},hb=function(){return ob},fb={addPersonOrSystem:function(t,e,n,i,r,a,o){if(null===e||null===n)return;let s={};const c=Jp.find((t=>t.alias===e));if(c&&e===c.alias?s=c:(s.alias=e,Jp.push(s)),s.label=null==n?{text:""}:{text:n},null==i)s.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]={text:e}}else s.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.sprite=r;if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.tags=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=e}else s.link=o;s.typeC4Shape={text:t},s.parentBoundary=eb,s.wrap=hb()},addPersonOrSystemBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const o=ib.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,ib.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=eb,a.wrap=hb(),nb=eb,eb=t,tb.push(nb)},addContainer:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const u=Jp.find((t=>t.alias===e));if(u&&e===u.alias?c=u:(c.alias=e,Jp.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.sprite=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=hb(),c.typeC4Shape={text:t},c.parentBoundary=eb},addContainerBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const o=ib.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,ib.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=eb,a.wrap=hb(),nb=eb,eb=t,tb.push(nb)},addComponent:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const u=Jp.find((t=>t.alias===e));if(u&&e===u.alias?c=u:(c.alias=e,Jp.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.sprite=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=hb(),c.typeC4Shape={text:t},c.parentBoundary=eb},addDeploymentNode:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const u=ib.find((t=>t.alias===e));if(u&&e===u.alias?c=u:(c.alias=e,ib.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.type={text:"node"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.type={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.nodeType=t,c.parentBoundary=eb,c.wrap=hb(),nb=eb,eb=e,tb.push(nb)},popBoundaryParseStack:function(){eb=nb,tb.pop(),nb=tb.pop(),tb.push(nb)},addRel:function(t,e,n,i,r,a,o,s,c){if(null==t||null==e||null==n||null==i)return;let u={};const l=rb.find((t=>t.from===e&&t.to===n));if(l?u=l:rb.push(u),u.type=t,u.from=e,u.to=n,u.label={text:i},null==r)u.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];u[t]={text:e}}else u.techn={text:r};if(null==a)u.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];u[t]={text:e}}else u.descr={text:a};if("object"==typeof o){let[t,e]=Object.entries(o)[0];u[t]=e}else u.sprite=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];u[t]=e}else u.tags=s;if("object"==typeof c){let[t,e]=Object.entries(c)[0];u[t]=e}else u.link=c;u.wrap=hb()},updateElStyle:function(t,e,n,i,r,a,o,s,c,u,l){let h=Jp.find((t=>t.alias===e));if(void 0!==h||(h=ib.find((t=>t.alias===e)),void 0!==h)){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];h[t]=e}else h.bgColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]=e}else h.fontColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]=e}else h.borderColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];h[t]=e}else h.shadowing=a;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];h[t]=e}else h.shape=o;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];h[t]=e}else h.sprite=s;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];h[t]=e}else h.techn=c;if(null!=u)if("object"==typeof u){let[t,e]=Object.entries(u)[0];h[t]=e}else h.legendText=u;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];h[t]=e}else h.legendSprite=l}},updateRelStyle:function(t,e,n,i,r,a,o){const s=rb.find((t=>t.from===e&&t.to===n));if(void 0!==s){if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.textColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.lineColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=parseInt(e)}else s.offsetX=parseInt(a);if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=parseInt(e)}else s.offsetY=parseInt(o)}},updateLayoutConfig:function(t,e,n){let i=sb,r=cb;if("object"==typeof e){const t=Object.values(e)[0];i=parseInt(t)}else i=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];r=parseInt(t)}else r=parseInt(n);i>=1&&(sb=i),r>=1&&(cb=r)},autoWrap:hb,setWrap:function(t){ob=t},getC4ShapeArray:lb,getC4Shape:function(t){return Jp.find((e=>e.alias===t))},getC4ShapeKeys:function(t){return Object.keys(lb(t))},getBoundarys:function(t){return null==t?ib:ib.filter((e=>e.parentBoundary===t))},getCurrentBoundaryParse:function(){return eb},getParentBoundaryParse:function(){return nb},getRels:function(){return rb},getTitle:function(){return ab},getC4Type:function(){return ub},getC4ShapeInRow:function(){return sb},getC4BoundaryInRow:function(){return cb},setAccTitle:_h,getAccTitle:Eh,getAccDescription:Ch,setAccDescription:Th,parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().c4,clear:function(){Jp=[],ib=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],nb="",eb="global",tb=[""],rb=[],tb=[""],ab="",ob=!1,sb=4,cb=2},LINETYPE:{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},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){ab=Lc(t,ch())},setC4Type:function(t){ub=Lc(t,ch())}},db=function(t,e){const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let t in e.attrs)n.attr(t,e.attrs[t]);return"undefined"!==e.class&&n.attr("class",e.class),n},gb=function(t,e){return db(t,e)},pb=function(){function t(t,e,n,r,a,o,s){i(e.append("text").attr("x",n+a/2).attr("y",r+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,a,o,s,c){const{fontSize:u,fontFamily:l,fontWeight:h}=c,f=t.split(Bc.lineBreakRegex);for(let t=0;t({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}))(n,e.typeC4Shape.text);switch(c.append("text").attr("fill",o).attr("font-family",l.fontFamily).attr("font-size",l.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":!function(t,e,n,i,r,a){const o=t.append("image");o.attr("width",e),o.attr("height",n),o.attr("x",i),o.attr("y",r);let s=a.startsWith("data:image/png;base64")?a:h(a);o.attr("xlink:href",s)}(c,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}let f=n[e.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=o,pb(n)(e.label.text,c,e.x,e.y+e.label.Y,e.width,e.height,{fill:o},f),f=n[e.typeC4Shape.text+"Font"](),f.fontColor=o,e.techn&&""!==(null==(i=e.techn)?void 0:i.text)?pb(n)(e.techn.text,c,e.x,e.y+e.techn.Y,e.width,e.height,{fill:o,"font-style":"italic"},f):e.type&&""!==e.type.text&&pb(n)(e.type.text,c,e.x,e.y+e.type.Y,e.width,e.height,{fill:o,"font-style":"italic"},f),e.descr&&""!==e.descr.text&&(f=n.personFont(),f.fontColor=o,pb(n)(e.descr.text,c,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},f)),e.height};let wb=0,yb=0,mb=4,vb=2;Qp.yy=fb;let xb={};class kb{constructor(t){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,_b(t.db.getConfig())}setData(t,e,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,i=this.nextData.starty+2*t.margin,r=i+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>mb)&&(e=this.nextData.startx+t.margin+xb.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=i+t.height,this.nextData.cnt=1),t.x=e,t.y=i,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(t){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},_b(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const _b=function(t){Jl(xb,t),t.fontFamily&&(xb.personFontFamily=xb.systemFontFamily=xb.messageFontFamily=t.fontFamily),t.fontSize&&(xb.personFontSize=xb.systemFontSize=xb.messageFontSize=t.fontSize),t.fontWeight&&(xb.personFontWeight=xb.systemFontWeight=xb.messageFontWeight=t.fontWeight)},Eb=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),Tb=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),Cb=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight});function Sb(t,e,n,i,r){if(!e[t].width)if(n)e[t].text=Vf(e[t].text,r,i),e[t].textLines=e[t].text.split(Bc.lineBreakRegex).length,e[t].width=r,e[t].height=Zf(e[t].text,i);else{let n=e[t].text.split(Bc.lineBreakRegex);e[t].textLines=n.length;let r=0;e[t].height=0,e[t].width=0;for(const a of n)e[t].width=Math.max(Jf(a,i),e[t].width),r=Zf(a,i),e[t].height=e[t].height+r}}const Ab=function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=xb.c4ShapeMargin-35;let i=e.wrap&&xb.wrap,r=Tb(xb);r.fontSize=r.fontSize+2,r.fontWeight="bold",Sb("label",e,i,r,Jf(e.label.text,r)),function(t,e,n){const i=t.append("g");let r=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});let c={x:e.x,y:e.y,fill:r,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};gb(i,c);let u=n.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=o,pb(n)(e.label.text,i,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},u),e.type&&""!==e.type.text&&(u=n.boundaryFont(),u.fontColor=o,pb(n)(e.type.text,i,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},u)),e.descr&&""!==e.descr.text&&(u=n.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=o,pb(n)(e.descr.text,i,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))}(t,e,xb)},Mb=function(t,e,n,i){let r=0;for(const a of i){r=0;const i=n[a];let o=Eb(xb,i.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,i.typeC4Shape.width=Jf("«"+i.typeC4Shape.text+"»",o),i.typeC4Shape.height=o.fontSize+2,i.typeC4Shape.Y=xb.c4ShapePadding,r=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height);let s=i.wrap&&xb.wrap,c=xb.width-2*xb.c4ShapePadding,u=Eb(xb,i.typeC4Shape.text);u.fontSize=u.fontSize+2,u.fontWeight="bold",Sb("label",i,s,u,c),i.label.Y=r+8,r=i.label.Y+i.label.height,i.type&&""!==i.type.text?(i.type.text="["+i.type.text+"]",Sb("type",i,s,Eb(xb,i.typeC4Shape.text),c),i.type.Y=r+5,r=i.type.Y+i.type.height):i.techn&&""!==i.techn.text&&(i.techn.text="["+i.techn.text+"]",Sb("techn",i,s,Eb(xb,i.techn.text),c),i.techn.Y=r+5,r=i.techn.Y+i.techn.height);let l=r,h=i.label.width;i.descr&&""!==i.descr.text&&(Sb("descr",i,s,Eb(xb,i.typeC4Shape.text),c),i.descr.Y=r+20,r=i.descr.Y+i.descr.height,h=Math.max(i.label.width,i.descr.width),l=r-5*i.descr.textLines),h+=xb.c4ShapePadding,i.width=Math.max(i.width||xb.width,h,xb.width),i.height=Math.max(i.height||xb.height,l,xb.height),i.margin=i.margin||xb.c4ShapeMargin,t.insert(i),bb(e,i,xb)}t.bumpLastMargin(xb.c4ShapeMargin)};let Ib=class{constructor(t,e){this.x=t,this.y=e}},Lb=function(t,e){let n=t.x,i=t.y,r=e.x,a=e.y,o=n+t.width/2,s=i+t.height/2,c=Math.abs(n-r),u=Math.abs(i-a),l=u/c,h=t.height/t.width,f=null;return i==a&&nr?f=new Ib(n,s):n==r&&ia&&(f=new Ib(o,i)),n>r&&i=l?new Ib(n,s+l*t.width/2):new Ib(o-c/u*t.height/2,i+t.height):n=l?new Ib(n+t.width,s+l*t.width/2):new Ib(o+c/u*t.height/2,i+t.height):na?f=h>=l?new Ib(n+t.width,s-l*t.width/2):new Ib(o+t.height/2*c/u,i):n>r&&i>a&&(f=h>=l?new Ib(n,s-t.width/2*l):new Ib(o-t.height/2*c/u,i)),f},Ob=function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let i=Lb(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:i,endPoint:Lb(e,n)}};function Db(t,e,n,i,r){let a=new kb(r);a.data.widthLimit=n.data.widthLimit/Math.min(vb,i.length);for(let[o,s]of i.entries()){let i=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let c=s.wrap&&xb.wrap,u=Tb(xb);if(u.fontSize=u.fontSize+2,u.fontWeight="bold",Sb("label",s,c,u,a.data.widthLimit),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Sb("type",s,c,Tb(xb),a.data.widthLimit),s.type.Y=i+5,i=s.type.Y+s.type.height),s.descr&&""!==s.descr.text){let t=Tb(xb);t.fontSize=t.fontSize-2,Sb("descr",s,c,t,a.data.widthLimit),s.descr.Y=i+20,i=s.descr.Y+s.descr.height}if(0==o||o%vb==0){let t=n.data.startx+xb.diagramMarginX,e=n.data.stopy+xb.diagramMarginY+i;a.setData(t,t,e,e)}else{let t=a.data.stopx!==a.data.startx?a.data.stopx+xb.diagramMarginX:a.data.startx,e=a.data.starty;a.setData(t,t,e,e)}a.name=s.alias;let l=r.db.getC4ShapeArray(s.alias),h=r.db.getC4ShapeKeys(s.alias);h.length>0&&Mb(a,t,l,h),e=s.alias;let f=r.db.getBoundarys(e);f.length>0&&Db(t,e,a,f,r),"global"!==s.alias&&Ab(t,s,a),n.data.stopy=Math.max(a.data.stopy+xb.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+xb.c4ShapeMargin,n.data.stopx),wb=Math.max(wb,n.data.stopx),yb=Math.max(yb,n.data.stopy)}}const Nb={drawPersonOrSystemArray:Mb,drawBoundary:Ab,setConf:_b,draw:function(t,e,n,i){xb=ch().c4;const r=ch().securityLevel;let a;"sandbox"===r&&(a=ae("#i"+e));const s=ae("sandbox"===r?a.nodes()[0].contentDocument.body:"body");let c=i.db;i.db.setWrap(xb.wrap),mb=c.getC4ShapeInRow(),vb=c.getC4BoundaryInRow(),o.debug(`C:${JSON.stringify(xb,null,2)}`);const u="sandbox"===r?s.select(`[id="${e}"]`):ae(`[id="${e}"]`);(function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")})(u),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(u),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(u);let l=new kb(i);l.setData(xb.diagramMarginX,xb.diagramMarginX,xb.diagramMarginY,xb.diagramMarginY),l.data.widthLimit=screen.availWidth,wb=xb.diagramMarginX,yb=xb.diagramMarginY;const h=i.db.getTitle();Db(u,"",l,i.db.getBoundarys(""),i),function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(u),function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(u),function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.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"),e.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")}(u),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(u),function(t,e,n,i){let r=0;for(let t of e){r+=1;let e=t.wrap&&xb.wrap,a=Cb(xb);"C4Dynamic"===i.db.getC4Type()&&(t.label.text=r+": "+t.label.text);let o=Jf(t.label.text,a);Sb("label",t,e,a,o),t.techn&&""!==t.techn.text&&(o=Jf(t.techn.text,a),Sb("techn",t,e,a,o)),t.descr&&""!==t.descr.text&&(o=Jf(t.descr.text,a),Sb("descr",t,e,a,o));let s=n(t.from),c=n(t.to),u=Ob(s,c);t.startPoint=u.startPoint,t.endPoint=u.endPoint}((t,e,n)=>{const i=t.append("g");let r=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",a=t.lineColor?t.lineColor:"#444444",o=t.offsetX?parseInt(t.offsetX):0,s=t.offsetY?parseInt(t.offsetY):0,c="";if(0===r){let e=i.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",a),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url("+c+"#arrowend)"),r=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",a).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url("+c+"#arrowend)")}let u=n.messageFont();pb(n)(t.label.text,i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+s,t.label.width,t.label.height,{fill:e},u),t.techn&&""!==t.techn.text&&(u=n.messageFont(),pb(n)("["+t.techn.text+"]",i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+s,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},u))}})(t,e,xb)}(u,i.db.getRels(),i.db.getC4Shape,i),l.data.stopx=wb,l.data.stopy=yb;const f=l.data;let d=f.stopy-f.starty+2*xb.diagramMarginY;const g=f.stopx-f.startx+2*xb.diagramMarginX;h&&u.append("text").text(h).attr("x",(f.stopx-f.startx)/2-4*xb.diagramMarginX).attr("y",f.starty+xb.diagramMarginY),ph(u,d,g,xb.useMaxWidth);const p=h?60:0;u.attr("viewBox",f.startx-xb.diagramMarginX+" -"+(xb.diagramMarginY+p)+" "+g+" "+(d+p)),o.debug("models:",f)}},Pb=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Zp,db:fb,renderer:Nb,styles:t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,init:t=>{Nb.setConf(t.c4)}}},Symbol.toStringTag,{value:"Module"}));var Bb=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,9],n=[1,7],i=[1,6],r=[1,8],a=[1,20,21,22,23,38,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],o=[2,10],s=[1,20],c=[1,21],u=[1,22],l=[1,23],h=[1,30],f=[1,32],d=[1,33],g=[1,34],p=[1,56],b=[1,55],w=[1,36],y=[1,37],m=[1,38],v=[1,39],x=[1,40],k=[1,51],_=[1,53],E=[1,49],T=[1,54],C=[1,50],S=[1,57],A=[1,52],M=[1,58],I=[1,59],L=[1,41],O=[1,42],D=[1,43],N=[1,44],P=[1,62],B=[1,67],F=[1,20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],j=[1,71],R=[1,70],$=[1,72],z=[20,21,23,84,86],q=[1,98],H=[1,103],U=[1,102],G=[1,99],Y=[1,95],K=[1,101],W=[1,97],X=[1,104],V=[1,100],Q=[1,105],Z=[1,96],J=[20,21,22,23,84,86],tt=[20,21,22,23,55,84,86],et=[20,21,22,23,40,53,55,57,59,61,63,65,67,69,72,74,76,77,79,84,86,97,110,113,114,117,119,122,123,124],nt=[20,21,23],it=[20,21,23,53,69,84,86,97,110,113,114,117,119,122,123,124],rt=[1,12,20,21,22,23,24,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],at=[53,69,97,110,113,114,117,119,122,123,124],ot=[1,134],st=[1,133],ct=[1,141],ut=[1,155],lt=[1,156],ht=[1,157],ft=[1,158],dt=[1,143],gt=[1,145],pt=[1,149],bt=[1,150],wt=[1,151],yt=[1,152],mt=[1,153],vt=[1,154],xt=[1,159],kt=[1,160],_t=[1,139],Et=[1,140],Tt=[1,147],Ct=[1,142],St=[1,146],At=[1,144],Mt=[20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],It=[1,162],Lt=[20,21,22,23,26,53,69,97,113,114,117,119,122,123,124],Ot=[1,182],Dt=[1,178],Nt=[1,179],Pt=[1,183],Bt=[1,180],Ft=[1,181],jt=[12,21,22,24],Rt=[86,124,127],$t=[20,21,22,23,24,26,38,40,43,53,69,84,92,93,94,95,96,97,98,113,117,119,122,123,124],zt=[22,114],qt=[42,58,60,62,64,66,71,73,75,76,78,80,124,125,126],Ht=[1,250],Ut=[1,248],Gt=[1,252],Yt=[1,246],Kt=[1,247],Wt=[1,249],Xt=[1,251],Vt=[1,253],Qt=[1,270],Zt=[20,21,23,114],Jt=[20,21,22,23,69,92,113,114,117,118,119,120],te={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,textNoTags:39,SQS:40,text:41,SQE:42,end:43,direction:44,acc_title:45,acc_title_value:46,acc_descr:47,acc_descr_value:48,acc_descr_multiline_value:49,link:50,node:51,styledVertex:52,AMP:53,vertex:54,STYLE_SEPARATOR:55,idString:56,DOUBLECIRCLESTART:57,DOUBLECIRCLEEND:58,PS:59,PE:60,"(-":61,"-)":62,STADIUMSTART:63,STADIUMEND:64,SUBROUTINESTART:65,SUBROUTINEEND:66,VERTEX_WITH_PROPS_START:67,"NODE_STRING[field]":68,COLON:69,"NODE_STRING[value]":70,PIPE:71,CYLINDERSTART:72,CYLINDEREND:73,DIAMOND_START:74,DIAMOND_STOP:75,TAGEND:76,TRAPSTART:77,TRAPEND:78,INVTRAPSTART:79,INVTRAPEND:80,linkStatement:81,arrowText:82,TESTSTR:83,START_LINK:84,edgeText:85,LINK:86,edgeTextToken:87,STR:88,MD_STR:89,textToken:90,keywords:91,STYLE:92,LINKSTYLE:93,CLASSDEF:94,CLASS:95,CLICK:96,DOWN:97,UP:98,textNoTagsToken:99,stylesOpt:100,"idString[vertex]":101,"idString[class]":102,CALLBACKNAME:103,CALLBACKARGS:104,HREF:105,LINK_TARGET:106,"STR[link]":107,"STR[tooltip]":108,alphaNum:109,DEFAULT:110,numList:111,INTERPOLATE:112,NUM:113,COMMA:114,style:115,styleComponent:116,NODE_STRING:117,UNIT:118,BRKT:119,PCT:120,idStringToken:121,MINUS:122,MULT:123,UNICODE_TEXT:124,TEXT:125,TAGSTART:126,EDGE_TEXT:127,alphaNumToken:128,direction_tb:129,direction_bt:130,direction_rl:131,direction_lr:132,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",42:"SQE",43:"end",45:"acc_title",46:"acc_title_value",47:"acc_descr",48:"acc_descr_value",49:"acc_descr_multiline_value",53:"AMP",55:"STYLE_SEPARATOR",57:"DOUBLECIRCLESTART",58:"DOUBLECIRCLEEND",59:"PS",60:"PE",61:"(-",62:"-)",63:"STADIUMSTART",64:"STADIUMEND",65:"SUBROUTINESTART",66:"SUBROUTINEEND",67:"VERTEX_WITH_PROPS_START",68:"NODE_STRING[field]",69:"COLON",70:"NODE_STRING[value]",71:"PIPE",72:"CYLINDERSTART",73:"CYLINDEREND",74:"DIAMOND_START",75:"DIAMOND_STOP",76:"TAGEND",77:"TRAPSTART",78:"TRAPEND",79:"INVTRAPSTART",80:"INVTRAPEND",83:"TESTSTR",84:"START_LINK",86:"LINK",88:"STR",89:"MD_STR",92:"STYLE",93:"LINKSTYLE",94:"CLASSDEF",95:"CLASS",96:"CLICK",97:"DOWN",98:"UP",101:"idString[vertex]",102:"idString[class]",103:"CALLBACKNAME",104:"CALLBACKARGS",105:"HREF",106:"LINK_TARGET",107:"STR[link]",108:"STR[tooltip]",110:"DEFAULT",112:"INTERPOLATE",113:"NUM",114:"COMMA",117:"NODE_STRING",118:"UNIT",119:"BRKT",120:"PCT",122:"MINUS",123:"MULT",124:"UNICODE_TEXT",125:"TEXT",126:"TAGSTART",127:"EDGE_TEXT",129:"direction_tb",130:"direction_bt",131:"direction_rl",132:"direction_lr"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[51,1],[51,5],[52,1],[52,3],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,8],[54,4],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,4],[54,4],[54,1],[50,2],[50,3],[50,3],[50,1],[50,3],[85,1],[85,2],[85,1],[85,1],[81,1],[82,3],[41,1],[41,2],[41,1],[41,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[39,1],[39,2],[39,1],[39,1],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,3],[37,5],[37,5],[37,7],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[111,1],[111,3],[100,1],[100,3],[115,1],[115,2],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[90,1],[90,1],[90,1],[90,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[87,1],[87,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[56,1],[56,2],[109,1],[109,2],[44,1],[44,1],[44,1],[44,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 5:i.parseDirective("%%{","open_directive");break;case 6:i.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 8:i.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 184:case 57:case 79:case 182:this.$=a[s];break;case 19:i.setDirection("TB"),this.$="TB";break;case 20:i.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=i.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=i.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=i.addSubGraph(void 0,a[s-1],void 0);break;case 45:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 46:case 47:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 51:i.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 52:i.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 53:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 54:this.$={stmt:a[s],nodes:a[s]};break;case 55:case 129:case 131:this.$=[a[s]];break;case 56:this.$=a[s-4].concat(a[s]);break;case 58:this.$=a[s-2],i.setClass(a[s-2],a[s]);break;case 59:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"square");break;case 60:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"doublecircle");break;case 61:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"circle");break;case 62:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"ellipse");break;case 63:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"stadium");break;case 64:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"subroutine");break;case 65:this.$=a[s-7],i.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 66:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"cylinder");break;case 67:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"round");break;case 68:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"diamond");break;case 69:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"hexagon");break;case 70:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"odd");break;case 71:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"trapezoid");break;case 72:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 73:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_right");break;case 74:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_left");break;case 75:this.$=a[s],i.addVertex(a[s]);break;case 76:a[s-1].text=a[s],this.$=a[s-1];break;case 77:case 78:a[s-2].text=a[s-1],this.$=a[s-2];break;case 80:var c=i.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 81:case 87:case 102:case 104:this.$={text:a[s],type:"text"};break;case 82:case 88:case 103:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 83:case 89:this.$={text:a[s],type:"string"};break;case 84:case 90:case 105:this.$={text:a[s],type:"markdown"};break;case 85:c=i.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 86:this.$=a[s-1];break;case 106:this.$=a[s-4],i.addClass(a[s-2],a[s]);break;case 107:this.$=a[s-4],i.setClass(a[s-2],a[s]);break;case 108:case 116:this.$=a[s-1],i.setClickEvent(a[s-1],a[s]);break;case 109:case 117:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 110:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 111:this.$=a[s-4],i.setClickEvent(a[s-4],a[s-3],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 112:this.$=a[s-2],i.setLink(a[s-2],a[s]);break;case 113:this.$=a[s-4],i.setLink(a[s-4],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 114:this.$=a[s-4],i.setLink(a[s-4],a[s-2],a[s]);break;case 115:this.$=a[s-6],i.setLink(a[s-6],a[s-4],a[s]),i.setTooltip(a[s-6],a[s-2]);break;case 118:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 119:this.$=a[s-3],i.setLink(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 120:this.$=a[s-3],i.setLink(a[s-3],a[s-2],a[s]);break;case 121:this.$=a[s-5],i.setLink(a[s-5],a[s-4],a[s]),i.setTooltip(a[s-5],a[s-2]);break;case 122:this.$=a[s-4],i.addVertex(a[s-2],void 0,void 0,a[s]);break;case 123:this.$=a[s-4],i.updateLink([a[s-2]],a[s]);break;case 124:this.$=a[s-4],i.updateLink(a[s-2],a[s]);break;case 125:this.$=a[s-8],i.updateLinkInterpolate([a[s-6]],a[s-2]),i.updateLink([a[s-6]],a[s]);break;case 126:this.$=a[s-8],i.updateLinkInterpolate(a[s-6],a[s-2]),i.updateLink(a[s-6],a[s]);break;case 127:this.$=a[s-6],i.updateLinkInterpolate([a[s-4]],a[s]);break;case 128:this.$=a[s-6],i.updateLinkInterpolate(a[s-4],a[s]);break;case 130:case 132:a[s-2].push(a[s]),this.$=a[s-2];break;case 134:this.$=a[s-1]+a[s];break;case 183:case 185:this.$=a[s-1]+""+a[s];break;case 186:this.$={stmt:"dir",value:"TB"};break;case 187:this.$={stmt:"dir",value:"BT"};break;case 188:this.$={stmt:"dir",value:"RL"};break;case 189:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:i,24:r},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:i,24:r},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:i,24:r},{16:15,21:n,22:i,24:r},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,44:31,45:f,47:d,49:g,51:35,52:45,53:p,54:46,56:47,69:b,92:w,93:y,94:m,95:v,96:x,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I,129:L,130:O,131:D,132:N},{8:60,10:[1,61],15:P},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,64],21:[1,65],22:B,27:63,30:66},t(F,[2,11]),t(F,[2,12]),t(F,[2,13]),t(F,[2,14]),t(F,[2,15]),t(F,[2,16]),{9:68,20:j,21:R,23:$,50:69,81:73,84:[1,74],86:[1,75]},{9:76,20:j,21:R,23:$},{9:77,20:j,21:R,23:$},{9:78,20:j,21:R,23:$},{9:79,20:j,21:R,23:$},{9:80,20:j,21:R,23:$},{9:82,20:j,21:R,22:[1,81],23:$},t(F,[2,44]),{46:[1,83]},{48:[1,84]},t(F,[2,47]),t(z,[2,54],{30:85,22:B}),{22:[1,86]},{22:[1,87]},{22:[1,88]},{22:[1,89]},{26:q,53:H,69:U,88:[1,93],97:G,103:[1,90],105:[1,91],109:92,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z,128:94},t(F,[2,186]),t(F,[2,187]),t(F,[2,188]),t(F,[2,189]),t(J,[2,55]),t(J,[2,57],{55:[1,106]}),t(tt,[2,75],{121:119,40:[1,107],53:p,57:[1,108],59:[1,109],61:[1,110],63:[1,111],65:[1,112],67:[1,113],69:b,72:[1,114],74:[1,115],76:[1,116],77:[1,117],79:[1,118],97:k,110:_,113:E,114:T,117:C,119:S,122:A,123:M,124:I}),t(et,[2,182]),t(et,[2,143]),t(et,[2,144]),t(et,[2,145]),t(et,[2,146]),t(et,[2,147]),t(et,[2,148]),t(et,[2,149]),t(et,[2,150]),t(et,[2,151]),t(et,[2,152]),t(et,[2,153]),{9:120,20:j,21:R,23:$},{11:121,14:[1,122]},t(nt,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,123]},t(it,[2,34],{30:124,22:B}),t(F,[2,35]),{51:125,52:45,53:p,54:46,56:47,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},t(rt,[2,48]),t(rt,[2,49]),t(rt,[2,50]),t(at,[2,79],{82:126,71:[1,128],83:[1,127]}),{85:129,87:130,88:[1,131],89:[1,132],124:ot,127:st},t([53,69,71,83,97,110,113,114,117,119,122,123,124],[2,85]),t(F,[2,36]),t(F,[2,37]),t(F,[2,38]),t(F,[2,39]),t(F,[2,40]),{22:ct,24:ut,26:lt,38:ht,39:135,43:ft,53:dt,69:gt,84:pt,88:[1,137],89:[1,138],91:148,92:bt,93:wt,94:yt,95:mt,96:vt,97:xt,98:kt,99:136,113:_t,117:Et,119:Tt,122:Ct,123:St,124:At},t(Mt,o,{17:161}),t(F,[2,45]),t(F,[2,46]),t(z,[2,53],{53:It}),{53:p,56:163,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},{110:[1,164],111:165,113:[1,166]},{53:p,56:167,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},{53:p,56:168,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},t(nt,[2,108],{22:[1,169],104:[1,170]}),{88:[1,171]},t(nt,[2,116],{128:173,22:[1,172],26:q,53:H,69:U,97:G,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z}),t(nt,[2,118],{22:[1,174]}),t(Lt,[2,184]),t(Lt,[2,171]),t(Lt,[2,172]),t(Lt,[2,173]),t(Lt,[2,174]),t(Lt,[2,175]),t(Lt,[2,176]),t(Lt,[2,177]),t(Lt,[2,178]),t(Lt,[2,179]),t(Lt,[2,180]),t(Lt,[2,181]),{53:p,56:175,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},{41:176,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:184,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:186,59:[1,185],76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:187,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:188,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:189,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{117:[1,190]},{41:191,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:192,74:[1,193],76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:194,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:195,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{41:196,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},t(et,[2,183]),t(jt,[2,3]),{8:197,15:P},{15:[2,7]},t(a,[2,28]),t(it,[2,33]),t(z,[2,51],{30:198,22:B}),t(at,[2,76],{22:[1,199]}),{22:[1,200]},{41:201,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{86:[1,202],87:203,124:ot,127:st},t(Rt,[2,81]),t(Rt,[2,83]),t(Rt,[2,84]),t(Rt,[2,169]),t(Rt,[2,170]),{9:205,20:j,21:R,22:ct,23:$,24:ut,26:lt,38:ht,40:[1,204],43:ft,53:dt,69:gt,84:pt,91:148,92:bt,93:wt,94:yt,95:mt,96:vt,97:xt,98:kt,99:206,113:_t,117:Et,119:Tt,122:Ct,123:St,124:At},t($t,[2,102]),t($t,[2,104]),t($t,[2,105]),t($t,[2,158]),t($t,[2,159]),t($t,[2,160]),t($t,[2,161]),t($t,[2,162]),t($t,[2,163]),t($t,[2,164]),t($t,[2,165]),t($t,[2,166]),t($t,[2,167]),t($t,[2,168]),t($t,[2,91]),t($t,[2,92]),t($t,[2,93]),t($t,[2,94]),t($t,[2,95]),t($t,[2,96]),t($t,[2,97]),t($t,[2,98]),t($t,[2,99]),t($t,[2,100]),t($t,[2,101]),{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:[1,207],44:31,45:f,47:d,49:g,51:35,52:45,53:p,54:46,56:47,69:b,92:w,93:y,94:m,95:v,96:x,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I,129:L,130:O,131:D,132:N},{22:B,30:208},{22:[1,209],53:p,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:119,122:A,123:M,124:I},{22:[1,210]},{22:[1,211],114:[1,212]},t(zt,[2,129]),{22:[1,213],53:p,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:119,122:A,123:M,124:I},{22:[1,214],53:p,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:119,122:A,123:M,124:I},{88:[1,215]},t(nt,[2,110],{22:[1,216]}),t(nt,[2,112],{22:[1,217]}),{88:[1,218]},t(Lt,[2,185]),{88:[1,219],106:[1,220]},t(J,[2,58],{121:119,53:p,69:b,97:k,110:_,113:E,114:T,117:C,119:S,122:A,123:M,124:I}),{42:[1,221],76:Ot,90:222,124:Pt,125:Bt,126:Ft},t(qt,[2,87]),t(qt,[2,89]),t(qt,[2,90]),t(qt,[2,154]),t(qt,[2,155]),t(qt,[2,156]),t(qt,[2,157]),{58:[1,223],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{41:224,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{60:[1,225],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{62:[1,226],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{64:[1,227],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{66:[1,228],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{69:[1,229]},{73:[1,230],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{75:[1,231],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{41:232,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},{42:[1,233],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{76:Ot,78:[1,234],80:[1,235],90:222,124:Pt,125:Bt,126:Ft},{76:Ot,78:[1,237],80:[1,236],90:222,124:Pt,125:Bt,126:Ft},{9:238,20:j,21:R,23:$},t(z,[2,52],{53:It}),t(at,[2,78]),t(at,[2,77]),{71:[1,239],76:Ot,90:222,124:Pt,125:Bt,126:Ft},t(at,[2,80]),t(Rt,[2,82]),{41:240,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},t(Mt,o,{17:241}),t($t,[2,103]),t(F,[2,43]),{52:242,53:p,54:46,56:47,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},{22:Ht,69:Ut,92:Gt,100:243,113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},{22:Ht,69:Ut,92:Gt,100:254,112:[1,255],113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},{22:Ht,69:Ut,92:Gt,100:256,112:[1,257],113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},{113:[1,258]},{22:Ht,69:Ut,92:Gt,100:259,113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},{53:p,56:260,69:b,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I},t(nt,[2,109]),{88:[1,261]},{88:[1,262],106:[1,263]},t(nt,[2,117]),t(nt,[2,119],{22:[1,264]}),t(nt,[2,120]),t(tt,[2,59]),t(qt,[2,88]),t(tt,[2,60]),{60:[1,265],76:Ot,90:222,124:Pt,125:Bt,126:Ft},t(tt,[2,67]),t(tt,[2,62]),t(tt,[2,63]),t(tt,[2,64]),{117:[1,266]},t(tt,[2,66]),t(tt,[2,68]),{75:[1,267],76:Ot,90:222,124:Pt,125:Bt,126:Ft},t(tt,[2,70]),t(tt,[2,71]),t(tt,[2,73]),t(tt,[2,72]),t(tt,[2,74]),t(jt,[2,4]),t([22,53,69,97,110,113,114,117,119,122,123,124],[2,86]),{42:[1,268],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:[1,269],44:31,45:f,47:d,49:g,51:35,52:45,53:p,54:46,56:47,69:b,92:w,93:y,94:m,95:v,96:x,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I,129:L,130:O,131:D,132:N},t(J,[2,56]),t(nt,[2,122],{114:Qt}),t(Zt,[2,131],{116:271,22:Ht,69:Ut,92:Gt,113:Yt,117:Kt,118:Wt,119:Xt,120:Vt}),t(Jt,[2,133]),t(Jt,[2,135]),t(Jt,[2,136]),t(Jt,[2,137]),t(Jt,[2,138]),t(Jt,[2,139]),t(Jt,[2,140]),t(Jt,[2,141]),t(Jt,[2,142]),t(nt,[2,123],{114:Qt}),{22:[1,272]},t(nt,[2,124],{114:Qt}),{22:[1,273]},t(zt,[2,130]),t(nt,[2,106],{114:Qt}),t(nt,[2,107],{121:119,53:p,69:b,97:k,110:_,113:E,114:T,117:C,119:S,122:A,123:M,124:I}),t(nt,[2,111]),t(nt,[2,113],{22:[1,274]}),t(nt,[2,114]),{106:[1,275]},{60:[1,276]},{71:[1,277]},{75:[1,278]},{9:279,20:j,21:R,23:$},t(F,[2,42]),{22:Ht,69:Ut,92:Gt,113:Yt,115:280,116:245,117:Kt,118:Wt,119:Xt,120:Vt},t(Jt,[2,134]),{26:q,53:H,69:U,97:G,109:281,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z,128:94},{26:q,53:H,69:U,97:G,109:282,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z,128:94},{106:[1,283]},t(nt,[2,121]),t(tt,[2,61]),{41:284,76:Ot,88:Dt,89:Nt,90:177,124:Pt,125:Bt,126:Ft},t(tt,[2,69]),t(Mt,o,{17:285}),t(Zt,[2,132],{116:271,22:Ht,69:Ut,92:Gt,113:Yt,117:Kt,118:Wt,119:Xt,120:Vt}),t(nt,[2,127],{128:173,22:[1,286],26:q,53:H,69:U,97:G,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z}),t(nt,[2,128],{128:173,22:[1,287],26:q,53:H,69:U,97:G,113:Y,114:K,117:W,119:X,122:V,123:Q,124:Z}),t(nt,[2,115]),{42:[1,288],76:Ot,90:222,124:Pt,125:Bt,126:Ft},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:[1,289],44:31,45:f,47:d,49:g,51:35,52:45,53:p,54:46,56:47,69:b,92:w,93:y,94:m,95:v,96:x,97:k,110:_,113:E,114:T,117:C,119:S,121:48,122:A,123:M,124:I,129:L,130:O,131:D,132:N},{22:Ht,69:Ut,92:Gt,100:290,113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},{22:Ht,69:Ut,92:Gt,100:291,113:Yt,115:244,116:245,117:Kt,118:Wt,119:Xt,120:Vt},t(tt,[2,65]),t(F,[2,41]),t(nt,[2,125],{114:Qt}),t(nt,[2,126],{114:Qt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],122:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},ee={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),45;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),47;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 13:case 16:case 19:case 22:case 32:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("callbackname");break;case 14:this.popState(),this.begin("callbackargs");break;case 15:return 103;case 17:return 104;case 18:return"MD_STR";case 20:this.begin("md_string");break;case 21:return"STR";case 23:this.pushState("string");break;case 24:return 92;case 25:return 110;case 26:return 93;case 27:return 112;case 28:return 94;case 29:return 95;case 30:return 105;case 31:this.begin("click");break;case 33:return 96;case 34:case 35:case 36:return t.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 43;case 39:case 40:case 41:case 42:return 106;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 129;case 55:return 130;case 56:return 131;case 57:return 132;case 58:return 113;case 59:case 100:return 119;case 60:return 55;case 61:return 69;case 62:case 101:return 53;case 63:return 20;case 64:return 114;case 65:case 99:return 123;case 66:case 69:case 72:return this.popState(),86;case 67:return this.pushState("edgeText"),84;case 68:case 71:case 74:return 127;case 70:return this.pushState("thickEdgeText"),84;case 73:return this.pushState("dottedEdgeText"),84;case 75:return 86;case 76:return this.popState(),62;case 77:case 113:return"TEXT";case 78:return this.pushState("ellipseText"),61;case 79:return this.popState(),64;case 80:return this.pushState("text"),63;case 81:return this.popState(),66;case 82:return this.pushState("text"),65;case 83:return 67;case 84:return this.pushState("text"),76;case 85:return this.popState(),73;case 86:return this.pushState("text"),72;case 87:return this.popState(),58;case 88:return this.pushState("text"),57;case 89:return this.popState(),78;case 90:return this.popState(),80;case 91:return 125;case 92:return this.pushState("trapText"),77;case 93:return this.pushState("trapText"),79;case 94:return 126;case 95:return 76;case 96:return 98;case 97:return"SEP";case 98:return 97;case 102:return 117;case 103:return 122;case 104:return 124;case 105:return this.popState(),71;case 106:return this.pushState("text"),71;case 107:return this.popState(),60;case 108:return this.pushState("text"),59;case 109:return this.popState(),42;case 110:return this.pushState("text"),40;case 111:return this.popState(),75;case 112:return this.pushState("text"),74;case 114:return"QUOTE";case 115:return 21;case 116:return 22;case 117:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|(?!\)+))/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},arg_directive:{rules:[3,4,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},type_directive:{rules:[2,3,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},open_directive:{rules:[1,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},callbackargs:{rules:[16,17,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},callbackname:{rules:[13,14,15,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},href:{rules:[20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},click:{rules:[20,23,32,33,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},dottedEdgeText:{rules:[20,23,72,74,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},thickEdgeText:{rules:[20,23,69,71,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},edgeText:{rules:[20,23,66,68,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},trapText:{rules:[20,23,75,78,80,82,86,88,89,90,91,92,93,106,108,110,112],inclusive:!1},ellipseText:{rules:[20,23,75,76,77,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},text:{rules:[20,23,75,78,79,80,81,82,85,86,87,88,92,93,105,106,107,108,109,110,111,112,113],inclusive:!1},vertex:{rules:[20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},dir:{rules:[20,23,43,44,45,46,47,48,49,50,51,52,53,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[10,11,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},acc_descr:{rules:[8,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},acc_title:{rules:[6,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},md_string:{rules:[18,19,20,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},string:{rules:[20,21,22,23,75,78,80,82,86,88,92,93,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,20,23,24,25,26,27,28,29,30,31,34,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,72,73,75,78,80,82,83,84,86,88,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,114,115,116,117],inclusive:!0}}};function ne(){this.yy={}}return te.lexer=ee,ne.prototype=te,te.Parser=ne,new ne}();Bb.parser=Bb;const Fb=Bb;let jb,Rb,$b=0,zb=ch(),qb={},Hb=[],Ub={},Gb=[],Yb={},Kb={},Wb=0,Xb=!0,Vb=[];const Qb=t=>Bc.sanitizeText(t,zb),Zb=function(t,e,n){$p.parseDirective(this,t,e,n)},Jb=function(t){const e=Object.keys(qb);for(const n of e)if(qb[n].id===t)return qb[n].domId;return t},tw=function(t,e,n,i,r,a,o={}){let s,c=t;void 0!==c&&0!==c.trim().length&&(void 0===qb[c]&&(qb[c]={id:c,labelType:"text",domId:"flowchart-"+c+"-"+$b,styles:[],classes:[]}),$b++,void 0!==e?(zb=ch(),s=Qb(e.text.trim()),qb[c].labelType=e.type,'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),qb[c].text=s):void 0===qb[c].text&&(qb[c].text=t),void 0!==n&&(qb[c].type=n),null!=i&&i.forEach((function(t){qb[c].styles.push(t)})),null!=r&&r.forEach((function(t){qb[c].classes.push(t)})),void 0!==a&&(qb[c].dir=a),void 0===qb[c].props?qb[c].props=o:void 0!==o&&Object.assign(qb[c].props,o))},ew=function(t,e,n){const i={start:t,end:e,type:void 0,text:"",labelType:"text"};o.info("abc78 Got edge...",i);const r=n.text;void 0!==r&&(i.text=Qb(r.text.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=r.type),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),Hb.push(i)},nw=function(t,e,n){let i,r;for(o.info("addLink (abc78)",t,e,n),i=0;i/)&&(jb="LR"),jb.match(/.*v/)&&(jb="TB"),"TD"===jb&&(jb="TB")},sw=function(t,e){t.split(",").forEach((function(t){let n=t;void 0!==qb[n]&&qb[n].classes.push(e),void 0!==Yb[n]&&Yb[n].classes.push(e)}))},cw=function(t,e,n){t.split(",").forEach((function(t){void 0!==qb[t]&&(qb[t].link=od.formatUrl(e,zb),qb[t].linkTarget=n)})),sw(t,"clickable")},uw=function(t){if(Kb.hasOwnProperty(t))return Kb[t]},lw=function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){let i=Jb(t);if("loose"!==ch().securityLevel||void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),ae(this).classed("hover",!1)}))};Vb.push(bw);const ww=function(t="gen-1"){qb={},Ub={},Hb=[],Vb=[bw],Gb=[],Yb={},Wb=0,Kb={},Xb=!0,Rb=t,kh()},yw=t=>{Rb=t||"gen-2"},mw=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},vw=function(t,e,n){let i=t.text.trim(),r=n.text;t===n&&n.text.match(/\s/)&&(i=void 0);let a=[];const{nodeList:s,dir:c}=function(t){const e={boolean:{},number:{},string:{}},n=[];let i;return{nodeList:t.filter((function(t){const r=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!n.includes(t)&&n.push(t))})),dir:i}}(a.concat.apply(a,e));if(a=s,"gen-1"===Rb)for(let t=0;t2e3)return;if(_w[kw]=e,Gb[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i=0){const n=Ew(t,e);if(n.result)return{result:!0,count:r+n.count};r+=n.count}i+=1}return{result:!1,count:r}},Tw=function(t){return _w[t]},Cw=function(){kw=-1,Gb.length>0&&Ew("none",Gb.length-1)},Sw=function(){return Gb},Aw=()=>!!Xb&&(Xb=!1,!0),Mw=(t,e)=>{const n=(t=>{const e=t.trim();let n=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross","x"===e[0]&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point","<"===e[0]&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle","o"===e[0]&&(i="double_"+i,n=n.slice(1))}let r="normal",a=n.length-1;"="===n[0]&&(r="thick"),"~"===n[0]&&(r="invisible");let o=((t,e)=>{const n=e.length;let i=0;for(let t=0;t{let e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:n,stroke:i}})(e),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=n.length,i}return n},Iw=(t,e)=>{let n=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(n=!0)})),n},Lw=(t,e)=>{const n=[];return t.nodes.forEach(((i,r)=>{Iw(e,i)||n.push(t.nodes[r])})),{nodes:n}},Ow={firstGraph:Aw},Dw={parseDirective:Zb,defaultConfig:()=>th.flowchart,setAccTitle:_h,getAccTitle:Eh,getAccDescription:Ch,setAccDescription:Th,addVertex:tw,lookUpDomId:Jb,addLink:nw,updateLinkInterpolate:iw,updateLink:rw,addClass:aw,setDirection:ow,setClass:sw,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(Kb["gen-1"===Rb?Jb(t):t]=Qb(e))}))},getTooltip:uw,setClickEvent:lw,setLink:cw,bindFunctions:hw,getDirection:fw,getVertices:dw,getEdges:gw,getClasses:pw,clear:ww,setGen:yw,defaultStyle:mw,addSubGraph:vw,getDepthFirstPos:Tw,indexNodes:Cw,getSubGraphs:Sw,destructLink:Mw,lex:Ow,exists:Iw,makeUniq:Lw,setDiagramTitle:Sh,getDiagramTitle:Ah},Nw=Object.freeze(Object.defineProperty({__proto__:null,addClass:aw,addLink:nw,addSingleLink:ew,addSubGraph:vw,addVertex:tw,bindFunctions:hw,clear:ww,default:Dw,defaultStyle:mw,destructLink:Mw,firstGraph:Aw,getClasses:pw,getDepthFirstPos:Tw,getDirection:fw,getEdges:gw,getSubGraphs:Sw,getTooltip:uw,getVertices:dw,indexNodes:Cw,lex:Ow,lookUpDomId:Jb,parseDirective:Zb,setClass:sw,setClickEvent:lw,setDirection:ow,setGen:yw,setLink:cw,updateLink:rw,updateLinkInterpolate:iw},Symbol.toStringTag,{value:"Module"}));var Pw="[object Symbol]";function Bw(t){return"symbol"==typeof t||op(t)&&uf(t)==Pw}function Fw(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ay);const sy=oy;function cy(t,e){for(var n=-1,i=null==t?0:t.length;++n-1}var fy=9007199254740991,dy=/^(?:0|[1-9]\d*)$/;function gy(t,e){var n=typeof t;return!!(e=e??fy)&&("number"==n||"symbol"!=n&&dy.test(t))&&t>-1&&t%1==0&&t0&&n(s)?e>1?Gy(s,e-1,n,i,r):qy(r,s):i||(r[r.length]=s)}return r}function Yy(t){return null!=t&&t.length?Gy(t,1):[]}const Ky=$g(Object.getPrototypeOf,Object);var Wy="[object Object]",Xy=Function.prototype,Vy=Object.prototype,Qy=Xy.toString,Zy=Vy.hasOwnProperty,Jy=Qy.call(Object);function tm(t,e,n,i){var r=-1,a=null==t?0:t.length;for(i&&a&&(n=t[++r]);++rs))return!1;var u=a.get(t),l=a.get(e);if(u&&l)return u==e&&l==t;var h=-1,f=!0,d=n&dv?new uv:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(r&&ky(e[0],e[1],r)&&(i=1);++n-1?i[r?t[a]:a]:void 0};const yx=wx;function mx(t,e){var n=-1,i=bp(t)?Array(t.length):[];return tx(t,(function(t,r,a){i[++n]=e(t,r,a)})),i}function vx(t,e){return(dp(t)?Fw:mx)(t,Xv(e))}function xx(t,e){return t>e}var kx=Object.prototype.hasOwnProperty;function _x(t,e){return null!=t&&kx.call(t,e)}function Ex(t,e){return null!=t&&Gv(t,e,_x)}function Tx(t){return null==t?[]:function(t,e){return Fw(e,(function(e){return t[e]}))}(t,Ty(t))}function Cx(t){return void 0===t}function Sx(t,e){return t1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,o&&ky(n[0],n[1],o)&&(a=r<3?void 0:a,r=1),e=Object(e);++ie||a&&o&&c&&!s&&!u||i&&o&&c||!n&&c||!r)return 1;if(!i&&!a&&!u&&t1&&ky(t,e[0],e[1])?e=[]:n>2&&ky(e[0],e[1],e[2])&&(e=[e[0]]),function(t,e,n){e=e.length?Fw(e,(function(t){return dp(t)?function(e){return zy(e,1===t.length?t[0]:t)}:t})):[Vw];var i=-1;return e=Fw(e,kp(Xv)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(mx(t,(function(t,n,r){return{criteria:Fw(e,(function(e){return e(t)})),index:++i,value:t}})),(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,a=e.criteria,o=r.length,s=n.length;++i=s?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}(t,Gy(e,1),[])}));const Yx=Gx;var Kx=Yg&&1/bv(new Yg([,-0]))[1]==1/0?function(t){return new Yg(t)}:function(){};const Wx=Kx;var Xx=xy((function(t){return function(t,e,n){var i=-1,r=hy,a=t.length,o=!0,s=[],c=s;if(a>=200){var u=Wx(t);if(u)return bv(u);o=!1,r=hv,c=new uv}else c=s;t:for(;++i1?i.setNode(t,e):i.setNode(t)})),this}setNode(t,e){return Ex(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=tk,this._children[t]={},this._children[tk][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Ex(this._nodes,t)}removeNode(t){var e=this;if(Ex(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],dx(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),dx(Ty(this._in[t]),n),delete this._in[t],delete this._preds[t],dx(Ty(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Cx(e))e=tk;else{for(var n=e+="";!Cx(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==tk)return e}}children(t){if(Cx(t)&&(t=tk),this._isCompound){var e=this._children[t];if(e)return Ty(e)}else{if(t===tk)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return Ty(e)}successors(t){var e=this._sucs[t];if(e)return Ty(e)}neighbors(t){var e=this.predecessors(t);if(e)return Vx(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;dx(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),dx(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function r(t){var a=n.parent(t);return void 0===a||e.hasNode(a)?(i[t]=a,a):a in i?i[a]:r(a)}return this._isCompound&&dx(e.nodes(),(function(t){e.setParent(t,r(t))})),e}setDefaultEdgeLabel(t){return pf(t)||(t=ny(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Tx(this._edgeObjs)}setPath(t,e){var n=this,i=arguments;return Ux(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this}setEdge(){var t,e,n,i,r=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],r=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),t=""+t,e=""+e,Cx(n)||(n=""+n);var o=ak(this._isDirected,t,e,n);if(Ex(this._edgeLabels,o))return r&&(this._edgeLabels[o]=i),this;if(!Cx(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=r?i:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var o=r;r=a,a=o}var s={v:r,w:a};return i&&(s.name=i),s}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,ik(this._preds[e],t),ik(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this}edge(t,e,n){var i=1===arguments.length?ok(this._isDirected,arguments[0]):ak(this._isDirected,t,e,n);return this._edgeLabels[i]}hasEdge(t,e,n){var i=1===arguments.length?ok(this._isDirected,arguments[0]):ak(this._isDirected,t,e,n);return Ex(this._edgeLabels,i)}removeEdge(t,e,n){var i=1===arguments.length?ok(this._isDirected,arguments[0]):ak(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],rk(this._preds[e],t),rk(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var i=Tx(n);return e?px(i,(function(t){return t.v===e})):i}}outEdges(t,e){var n=this._out[t];if(n){var i=Tx(n);return e?px(i,(function(t){return t.w===e})):i}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function ik(t,e){t[e]?t[e]++:t[e]=1}function rk(t,e){--t[e]||delete t[e]}function ak(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var o=r;r=a,a=o}return r+ek+a+ek+(Cx(i)?Jx:i)}function ok(t,e){return ak(t,e.v,e.w,e.name)}nk.prototype._nodeCount=0,nk.prototype._edgeCount=0;class sk{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return ck(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&ck(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,uk)),n=n._prev;return"["+t.join(", ")+"]"}}function ck(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function uk(t,e){if("_next"!==t&&"_prev"!==t)return e}var lk=ny(1);function hk(t,e,n,i,r){var a=r?[]:void 0;return dx(t.inEdges(i.v),(function(i){var o=t.edge(i),s=t.node(i.v);r&&a.push({v:i.v,w:i.w}),s.out-=o,fk(e,n,s)})),dx(t.outEdges(i.v),(function(i){var r=t.edge(i),a=i.w,o=t.node(a);o.in-=r,fk(e,n,o)})),t.removeNode(i.v),a}function fk(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function dk(t){var e,n="greedy"===t.graph().acyclicer?function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new nk,i=0,r=0;dx(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),dx(t.edges(),(function(t){var a=n.edge(t.v,t.w)||0,o=e(t),s=a+o;n.setEdge(t.v,t.w,s),r=Math.max(r,n.node(t.v).out+=o),i=Math.max(i,n.node(t.w).in+=o)}));var a=qx(r+i+3).map((function(){return new sk})),o=i+1;return dx(n.nodes(),(function(t){fk(a,o,n.node(t))})),{graph:n,buckets:a,zeroIdx:o}}(t,e||lk),i=function(t,e,n){for(var i,r=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;i=o.dequeue();)hk(t,e,n,i);for(;i=a.dequeue();)hk(t,e,n,i);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue()){r=r.concat(hk(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return Yy(vx(i,(function(e){return t.outEdges(e.v,e.w)})))}(t,(e=t,function(t){return e.edge(t).weight})):function(t){var e=[],n={},i={};return dx(t.nodes(),(function r(a){Ex(i,a)||(i[a]=!0,n[a]=!0,dx(t.outEdges(a),(function(t){Ex(n,t.w)?e.push(t):r(t.w)})),delete n[a])})),e}(t);dx(n,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,Zx("rev"))}))}function gk(t,e,n,i){var r;do{r=Zx(i)}while(t.hasNode(r));return n.dummy=e,t.setNode(r,n),r}function pk(t){var e=new nk({multigraph:t.isMultigraph()}).setGraph(t.graph());return dx(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),dx(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function bk(t,e){var n,i,r=t.x,a=t.y,o=e.x-r,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,i=u):(o<0&&(c=-c),n=c,i=c*s/o),{x:r+n,y:a+i}}function wk(t){var e=vx(qx(mk(t)+1),(function(){return[]}));return dx(t.nodes(),(function(n){var i=t.node(n),r=i.rank;Cx(r)||(e[r][i.order]=n)})),e}function yk(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),gk(t,"border",r,e)}function mk(t){return Ix(vx(t.nodes(),(function(e){var n=t.node(e).rank;if(!Cx(n))return n})))}function vk(t,e){var n=ex();try{return e()}finally{console.log(t+" time: "+(ex()-n)+"ms")}}function xk(t,e){return e()}function kk(t,e,n,i,r,a){var o={width:0,height:0,rank:a,borderType:e},s=r[e][a-1],c=gk(t,"border",o,n);r[e][a]=c,t.setParent(c,i),s&&t.setEdge(s,c,{weight:1})}function _k(t){dx(t.nodes(),(function(e){Ek(t.node(e))})),dx(t.edges(),(function(e){Ek(t.edge(e))}))}function Ek(t){var e=t.width;t.width=t.height,t.height=e}function Tk(t){t.y=-t.y}function Ck(t){var e=t.x;t.x=t.y,t.y=e}function Sk(t){var e={};dx(t.sources(),(function n(i){var r=t.node(i);if(Ex(e,i))return r.rank;e[i]=!0;var a=Dx(vx(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),r.rank=a}))}function Ak(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Mk(t){var e,n,i=new nk({directed:!1}),r=t.nodes()[0],a=t.nodeCount();for(i.setNode(r,{});Ik(i,t)o.lim&&(s=o,c=!0),Nx(px(e.edges(),(function(e){return c===Hk(0,t.node(e.v),s)&&c!==Hk(0,t.node(e.w),s)})),(function(t){return Ak(e,t)}))}function qk(t,e,n,i){var r=n.v,a=n.w;t.removeEdge(r,a),t.setEdge(i.v,i.w,{}),jk(t),Bk(t,e),function(t,e){var n=yx(t.nodes(),(function(t){return!e.node(t).parent})),i=function(t,e){return Dk(t,e,"pre")}(t,n);dx(i=i.slice(1),(function(n){var i=t.node(n).parent,r=e.edge(n,i),a=!1;r||(r=e.edge(i,n),a=!0),e.node(n).rank=e.node(i).rank+(a?r.minlen:-r.minlen)}))}(t,e)}function Hk(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}function Uk(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){Pk(t)}(t);break;case"tight-tree":!function(t){Sk(t),Mk(t)}(t);break;case"longest-path":Gk(t)}}new Error,Pk.initLowLimValues=jk,Pk.initCutValues=Bk,Pk.calcCutValue=Fk,Pk.leaveEdge=$k,Pk.enterEdge=zk,Pk.exchangeEdges=qk;var Gk=Sk;function Yk(t){var e=gk(t,"root",{},"_root"),n=function(t){var e={};function n(i,r){var a=t.children(i);a&&a.length&&dx(a,(function(t){n(t,r+1)})),e[i]=r}return dx(t.children(),(function(t){n(t,1)})),e}(t),i=Ix(Tx(n))-1,r=2*i+1;t.graph().nestingRoot=e,dx(t.edges(),(function(e){t.edge(e).minlen*=r}));var a=function(t){return Ux(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;dx(t.children(),(function(o){Kk(t,e,r,a,i,n,o)})),t.graph().nodeRankFactor=r}function Kk(t,e,n,i,r,a,o){var s=t.children(o);if(s.length){var c=yk(t,"_bt"),u=yk(t,"_bb"),l=t.node(o);t.setParent(c,o),l.borderTop=c,t.setParent(u,o),l.borderBottom=u,dx(s,(function(s){Kk(t,e,n,i,r,a,s);var l=t.node(s),h=l.borderTop?l.borderTop:s,f=l.borderBottom?l.borderBottom:s,d=l.borderTop?i:2*i,g=h!==f?1:r-a[o]+1;t.setEdge(c,h,{weight:d,minlen:g,nestingEdge:!0}),t.setEdge(f,u,{weight:d,minlen:g,nestingEdge:!0})})),t.parent(o)||t.setEdge(e,c,{weight:0,minlen:r+a[o]})}else o!==e&&t.setEdge(e,o,{weight:0,minlen:n})}function Wk(t,e){for(var n=0,i=1;i0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}function Vk(t,e){var n=function(t,e){var n={lhs:[],rhs:[]};return dx(t,(function(t){Ex(t,"barycenter")?n.lhs.push(t):n.rhs.push(t)})),n}(t),i=n.lhs,r=Yx(n.rhs,(function(t){return-t.i})),a=[],o=0,s=0,c=0;i.sort(function(t){return function(e,n){return e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!e)),c=Qk(a,r,c),dx(i,(function(t){c+=t.vs.length,a.push(t.vs),o+=t.barycenter*t.weight,s+=t.weight,c=Qk(a,r,c)}));var u={vs:Yy(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function Qk(t,e,n){for(var i;e.length&&(i=hx(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}function Zk(t,e,n,i){var r=t.children(e),a=t.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(r=px(r,(function(t){return t!==o&&t!==s})));var u=function(t,e){return vx(e,(function(e){var n=t.inEdges(e);if(n.length){var i=Ux(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}(t,r);dx(u,(function(e){if(t.children(e.v).length){var r=Zk(t,e.v,n,i);c[e.v]=r,Ex(r,"barycenter")&&function(t,e){Cx(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(e,r)}}));var l=function(t,e){var n={};return dx(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};Cx(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),dx(e.edges(),(function(t){var e=n[t.v],i=n[t.w];!Cx(e)&&!Cx(i)&&(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(Cx(e.barycenter)||Cx(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var r=t.pop();e.push(r),dx(r.in.reverse(),n(r)),dx(r.out,i(r))}return vx(px(e,(function(t){return!t.merged})),(function(t){return jx(t,["vs","i","barycenter","weight"])}))}(px(n,(function(t){return!t.indegree})))}(u,n);!function(t,e){dx(t,(function(t){t.vs=Yy(t.vs.map((function(t){return e[t]?e[t].vs:t})))}))}(l,c);var h=Vk(l,i);if(o&&(h.vs=Yy([o,h.vs,s]),t.predecessors(o).length)){var f=t.node(t.predecessors(o)[0]),d=t.node(t.predecessors(s)[0]);Ex(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+d.order)/(h.weight+2),h.weight+=2}return h}function Jk(t,e,n){return vx(e,(function(e){return function(t,e,n){var i=function(t){for(var e;t.hasNode(e=Zx("_root")););return e}(t),r=new nk({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return dx(t.nodes(),(function(a){var o=t.node(a),s=t.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(r.setNode(a),r.setParent(a,s||i),dx(t[n](a),(function(e){var n=e.v===a?e.w:e.v,i=r.edge(n,a),o=Cx(i)?0:i.weight;r.setEdge(n,a,{weight:t.edge(e).weight+o})})),Ex(o,"minRank")&&r.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))})),r}(t,e,n)}))}function t_(t,e){var n=new nk;dx(t,(function(t){var i=t.graph().root,r=Zk(t,i,n,e);dx(r.vs,(function(e,n){t.node(e).order=n})),function(t,e,n){var i,r={};dx(n,(function(n){for(var a,o,s=t.parent(n);s;){if((a=t.parent(s))?(o=r[a],r[a]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=a}}))}(t,n,r.vs)}))}function e_(t,e){dx(e,(function(e){dx(e,(function(e,n){t.node(e).order=n}))}))}function n_(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function i_(t,e,n){if(e>n){var i=e;e=n,n=i}return Ex(t[e],n)}function r_(t){var e,n=wk(t),i=Ox(function(t,e){var n={};return Ux(e,(function(e,i){var r=0,a=0,o=e.length,s=hx(i);return dx(i,(function(e,c){var u=function(t,e){if(t.node(e).dummy)return yx(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),l=u?t.node(u).order:o;(u||e===s)&&(dx(i.slice(a,c+1),(function(e){dx(t.predecessors(e),(function(i){var a=t.node(i),o=a.order;(oo)&&n_(n,e,s)}))}))}return Ux(e,(function(e,n){var r,a=-1,o=0;return dx(n,(function(s,c){if("border"===t.node(s).dummy){var u=t.predecessors(s);u.length&&(r=t.node(u[0]).order,i(n,o,c,a,r),o=c,a=r)}i(n,o,n.length,r,e.length)})),n})),n}(t,n)),r={};dx(["u","d"],(function(a){e="u"===a?n:Tx(n).reverse(),dx(["l","r"],(function(n){"r"===n&&(e=vx(e,(function(t){return Tx(t).reverse()})));var o=("u"===a?t.predecessors:t.successors).bind(t),s=function(t,e,n,i){var r={},a={},o={};return dx(e,(function(t){dx(t,(function(t,e){r[t]=t,a[t]=t,o[t]=e}))})),dx(e,(function(t){var e=-1;dx(t,(function(t){var s=i(t);if(s.length)for(var c=((s=Yx(s,(function(t){return o[t]}))).length-1)/2,u=Math.floor(c),l=Math.ceil(c);u<=l;++u){var h=s[u];a[t]===t&&ec||u>e[r].lim));for(a=r,r=i;(r=t.parent(r))!==a;)s.push(r);return{path:o.concat(s.reverse()),lca:a}}(t,e,r.v,r.w),o=a.path,s=a.lca,c=0,u=o[c],l=!0;n!==r.w;){if(i=t.node(n),l){for(;(u=o[c])!==s&&t.node(u).maxRank=2);var u=Wk(t,r=wk(t));u{o.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).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")},lollipop:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:(t,e)=>{t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",10).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"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).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")},circle:(t,e)=>{t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e)=>{t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-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")}},x_=(t,e,n,i)=>{e.forEach((e=>{v_[e](t,n,i)}))},k_=(t,e,n,i)=>{let r=t||"";if("object"==typeof r&&(r=r[0]),Nc(ch().flowchart.htmlLabels))return r=r.replace(/\\n|\n/g,"
"),o.info("vertexText"+r),function(t){const e=ae(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),i=t.label,r=t.isNode?"nodeLabel":"edgeLabel";return n.html('"+i+""),function(t,e){e&&t.attr("style",e)}(n,t.labelStyle),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:i,label:Pp(r).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:e.replace("fill:","color:")});{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof r?r.split(/\\n|\n|/gi):Array.isArray(r)?r:[];for(const e of i){const 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"),n?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}};function __(t,e){return t&&"object"==typeof t&&(t.value||(e?t.alt:"")||"children"in t&&E_(t.children,e)||Array.isArray(t)&&E_(t,e))||""}function E_(t,e){for(var n=[],i=-1;++ir?0:r+e:e>r?r:e,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(e,n),[].splice.apply(t,a);else for(n&&[].splice.apply(t,[e,n]);o0?(T_(t,t.length,0,e),t):e}const S_={}.hasOwnProperty;function A_(t,e){let n;for(n in e){const i=(S_.call(t,n)?t[n]:void 0)||(t[n]={}),r=e[n];let a;for(a in r){S_.call(i,a)||(i[a]=[]);const t=r[a];M_(i[a],Array.isArray(t)?t:t?[t]:[])}}}function M_(t,e){let n=-1;const i=[];for(;++na))return;const n=e.events.length;let r,s,c=n;for(;c--;)if("exit"===e.events[c][0]&&"chunkFlow"===e.events[c][1].type){if(r){s=e.events[c][1].end;break}r=!0}for(w(o),t=n;ti;){const i=n[r];e.containerState=i[1],i[0].exit.call(e,t)}n.length=i}function y(){i.write([null]),r=void 0,i=void 0,e.containerState._closeFlow=void 0}}},Y_={tokenize:function(t,e,n){return H_(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function K_(t){return null===t||F_(t)||$_(t)?1:z_(t)?2:void 0}function W_(t,e,n){const i=[];let r=-1;for(;++r1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const h=Object.assign({},t[n][1].end),f=Object.assign({},t[l][1].start);V_(h,-s),V_(f,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},t[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[l][1].start),end:f},r={type:s>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[l][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},t[n][1].end=Object.assign({},a.start),t[l][1].start=Object.assign({},o.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=C_(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=C_(c,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",r,e]]),c=C_(c,W_(e.parser.constructs.insideSpan.null,t.slice(n+1,l),e)),c=C_(c,[["exit",r,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[l][1].end.offset-t[l][1].start.offset?(u=2,c=C_(c,[["enter",t[l][1],e],["exit",t[l][1],e]])):u=0,T_(t,n-1,l-n+3,c),l=n+c.length-u-2;break}for(l=-1;++l=4?a(t):n(t)}function a(e){return null===e?s(e):j_(e)?t.attempt(oE,a,s)(e):(t.enter("codeFlowValue"),o(e))}function o(e){return null===e||j_(e)?(t.exit("codeFlowValue"),a(e)):(t.consume(e),o)}function s(n){return t.exit("codeIndented"),e(n)}}},oE={tokenize:function(t,e,n){const i=this;return r;function r(e){return i.parser.lazy[i.now().line]?n(e):j_(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r):H_(t,a,"linePrefix",5)(e)}function a(t){const a=i.events[i.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?e(t):j_(t)?r(t):n(t)}},partial:!0},sE={name:"codeText",tokenize:function(t,e,n){let i,r,a=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),o(e)};function o(e){return 96===e?(t.consume(e),a++,o):(t.exit("codeTextSequence"),s(e))}function s(e){return null===e?n(e):96===e?(r=t.enter("codeTextSequence"),i=0,u(e)):32===e?(t.enter("space"),t.consume(e),t.exit("space"),s):j_(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),s):(t.enter("codeTextData"),c(e))}function c(e){return null===e||32===e||96===e||j_(e)?(t.exit("codeTextData"),s(e)):(t.consume(e),c)}function u(n){return 96===n?(t.consume(n),i++,u):i===a?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(r.type="codeTextData",c(n))}},resolve:function(t){let e,n,i=t.length-4,r=3;if(!("lineEnding"!==t[r][1].type&&"space"!==t[r][1].type||"lineEnding"!==t[i][1].type&&"space"!==t[i][1].type))for(e=r;++e=4?e(r):t.interrupt(i.parser.constructs.flow,n,e)(r)}},partial:!0};function fE(t,e,n,i,r,a,o,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(e){return 60===e?(t.enter(i),t.enter(r),t.enter(a),t.consume(e),t.exit(a),h):null===e||41===e||B_(e)?n(e):(t.enter(i),t.enter(o),t.enter(s),t.enter("chunkString",{contentType:"string"}),g(e))};function h(n){return 62===n?(t.enter(a),t.consume(n),t.exit(a),t.exit(r),t.exit(i),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),f(n))}function f(e){return 62===e?(t.exit("chunkString"),t.exit(s),h(e)):null===e||60===e||j_(e)?n(e):(t.consume(e),92===e?d:f)}function d(e){return 60===e||62===e||92===e?(t.consume(e),f):f(e)}function g(r){return 40===r?++l>u?n(r):(t.consume(r),g):41===r?l--?(t.consume(r),g):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(i),e(r)):null===r||F_(r)?l?n(r):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(i),e(r)):B_(r)?n(r):(t.consume(r),92===r?p:g)}function p(e){return 40===e||41===e||92===e?(t.consume(e),g):g(e)}}function dE(t,e,n,i,r,a){const o=this;let s,c=0;return function(e){return t.enter(i),t.enter(r),t.consume(e),t.exit(r),t.enter(a),u};function u(h){return null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs||c>999?n(h):93===h?(t.exit(a),t.enter(r),t.consume(h),t.exit(r),t.exit(i),e):j_(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),l(h))}function l(e){return null===e||91===e||93===e||j_(e)||c++>999?(t.exit("chunkString"),u(e)):(t.consume(e),s=s||!R_(e),92===e?h:l)}function h(e){return 91===e||92===e||93===e?(t.consume(e),c++,l):l(e)}}function gE(t,e,n,i,r,a){let o;return function(e){return t.enter(i),t.enter(r),t.consume(e),t.exit(r),o=40===e?41:e,s};function s(n){return n===o?(t.enter(r),t.consume(n),t.exit(r),t.exit(i),e):(t.enter(a),c(n))}function c(e){return e===o?(t.exit(a),s(o)):null===e?n(e):j_(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),H_(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(e))}function u(e){return e===o||null===e||j_(e)?(t.exit("chunkString"),c(e)):(t.consume(e),92===e?l:u)}function l(e){return e===o||92===e?(t.consume(e),u):u(e)}}function pE(t,e){let n;return function i(r){return j_(r)?(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),n=!0,i):R_(r)?H_(t,i,n?"linePrefix":"lineSuffix")(r):e(r)}}function bE(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wE={name:"definition",tokenize:function(t,e,n){const i=this;let r;return function(e){return t.enter("definition"),dE.call(i,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)};function a(e){return r=bE(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),pE(t,fE(t,t.attempt(yE,H_(t,o,"whitespace"),H_(t,o,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(e)}function o(a){return null===a||j_(a)?(t.exit("definition"),i.parser.defined.includes(r)||i.parser.defined.push(r),e(a)):n(a)}}},yE={tokenize:function(t,e,n){return function(e){return F_(e)?pE(t,i)(e):n(e)};function i(e){return 34===e||39===e||40===e?gE(t,H_(t,r,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e):n(e)}function r(t){return null===t||j_(t)?e(t):n(t)}},partial:!0},mE={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(e),i};function i(i){return j_(i)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),e(i)):n(i)}}},vE={name:"headingAtx",tokenize:function(t,e,n){const i=this;let r=0;return function(e){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),a(e)};function a(s){return 35===s&&r++<6?(t.consume(s),a):null===s||F_(s)?(t.exit("atxHeadingSequence"),i.interrupt?e(s):o(s)):n(s)}function o(n){return 35===n?(t.enter("atxHeadingSequence"),s(n)):null===n||j_(n)?(t.exit("atxHeading"),e(n)):R_(n)?H_(t,o,"whitespace")(n):(t.enter("atxHeadingText"),c(n))}function s(e){return 35===e?(t.consume(e),s):(t.exit("atxHeadingSequence"),o(e))}function c(e){return null===e||35===e||F_(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),c)}},resolve:function(t,e){let n,i,r=t.length-2,a=3;return"whitespace"===t[a][1].type&&(a+=2),r-2>a&&"whitespace"===t[r][1].type&&(r-=2),"atxHeadingSequence"===t[r][1].type&&(a===r-1||r-4>a&&"whitespace"===t[r-2][1].type)&&(r-=a+1===r?2:4),r>a&&(n={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},i={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},T_(t,a,r-a+1,[["enter",n,e],["enter",i,e],["exit",i,e],["exit",n,e]])),t}},xE=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kE=["pre","script","style","textarea"],_E={name:"htmlFlow",tokenize:function(t,e,n){const i=this;let r,a,o,s,c;return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),u};function u(s){return 33===s?(t.consume(s),l):47===s?(t.consume(s),d):63===s?(t.consume(s),r=3,i.interrupt?e:N):I_(s)?(t.consume(s),o=String.fromCharCode(s),a=!0,g):n(s)}function l(a){return 45===a?(t.consume(a),r=2,h):91===a?(t.consume(a),r=5,o="CDATA[",s=0,f):I_(a)?(t.consume(a),r=4,i.interrupt?e:N):n(a)}function h(r){return 45===r?(t.consume(r),i.interrupt?e:N):n(r)}function f(r){return r===o.charCodeAt(s++)?(t.consume(r),s===o.length?i.interrupt?e:C:f):n(r)}function d(e){return I_(e)?(t.consume(e),o=String.fromCharCode(e),g):n(e)}function g(s){return null===s||47===s||62===s||F_(s)?47!==s&&a&&kE.includes(o.toLowerCase())?(r=1,i.interrupt?e(s):C(s)):xE.includes(o.toLowerCase())?(r=6,47===s?(t.consume(s),p):i.interrupt?e(s):C(s)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(s):a?w(s):b(s)):45===s||D_(s)?(t.consume(s),o+=String.fromCharCode(s),g):n(s)}function p(r){return 62===r?(t.consume(r),i.interrupt?e:C):n(r)}function b(e){return R_(e)?(t.consume(e),b):E(e)}function w(e){return 47===e?(t.consume(e),E):58===e||95===e||I_(e)?(t.consume(e),y):R_(e)?(t.consume(e),w):E(e)}function y(e){return 45===e||46===e||58===e||95===e||D_(e)?(t.consume(e),y):m(e)}function m(e){return 61===e?(t.consume(e),v):R_(e)?(t.consume(e),m):w(e)}function v(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),c=e,x):R_(e)?(t.consume(e),v):(c=null,k(e))}function x(e){return null===e||j_(e)?n(e):e===c?(t.consume(e),_):(t.consume(e),x)}function k(e){return null===e||34===e||39===e||60===e||61===e||62===e||96===e||F_(e)?m(e):(t.consume(e),k)}function _(t){return 47===t||62===t||R_(t)?w(t):n(t)}function E(e){return 62===e?(t.consume(e),T):n(e)}function T(e){return R_(e)?(t.consume(e),T):null===e||j_(e)?C(e):n(e)}function C(e){return 45===e&&2===r?(t.consume(e),I):60===e&&1===r?(t.consume(e),L):62===e&&4===r?(t.consume(e),P):63===e&&3===r?(t.consume(e),N):93===e&&5===r?(t.consume(e),D):!j_(e)||6!==r&&7!==r?null===e||j_(e)?S(e):(t.consume(e),C):t.check(EE,P,S)(e)}function S(e){return t.exit("htmlFlowData"),A(e)}function A(e){return null===e?B(e):j_(e)?t.attempt({tokenize:M,partial:!0},A,B)(e):(t.enter("htmlFlowData"),C(e))}function M(t,e,n){return function(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r};function r(t){return i.parser.lazy[i.now().line]?n(t):e(t)}}function I(e){return 45===e?(t.consume(e),N):C(e)}function L(e){return 47===e?(t.consume(e),o="",O):C(e)}function O(e){return 62===e&&kE.includes(o.toLowerCase())?(t.consume(e),P):I_(e)&&o.length<8?(t.consume(e),o+=String.fromCharCode(e),O):C(e)}function D(e){return 93===e?(t.consume(e),N):C(e)}function N(e){return 62===e?(t.consume(e),P):45===e&&2===r?(t.consume(e),N):C(e)}function P(e){return null===e||j_(e)?(t.exit("htmlFlowData"),B(e)):(t.consume(e),P)}function B(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););return e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},concrete:!0},EE={tokenize:function(t,e,n){return function(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(Z_,e,n)}},partial:!0},TE={name:"htmlText",tokenize:function(t,e,n){const i=this;let r,a,o,s;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),c};function c(e){return 33===e?(t.consume(e),u):47===e?(t.consume(e),k):63===e?(t.consume(e),v):I_(e)?(t.consume(e),T):n(e)}function u(e){return 45===e?(t.consume(e),l):91===e?(t.consume(e),a="CDATA[",o=0,p):I_(e)?(t.consume(e),m):n(e)}function l(e){return 45===e?(t.consume(e),h):n(e)}function h(e){return null===e||62===e?n(e):45===e?(t.consume(e),f):d(e)}function f(t){return null===t||62===t?n(t):d(t)}function d(e){return null===e?n(e):45===e?(t.consume(e),g):j_(e)?(s=d,D(e)):(t.consume(e),d)}function g(e){return 45===e?(t.consume(e),P):d(e)}function p(e){return e===a.charCodeAt(o++)?(t.consume(e),o===a.length?b:p):n(e)}function b(e){return null===e?n(e):93===e?(t.consume(e),w):j_(e)?(s=b,D(e)):(t.consume(e),b)}function w(e){return 93===e?(t.consume(e),y):b(e)}function y(e){return 62===e?P(e):93===e?(t.consume(e),y):b(e)}function m(e){return null===e||62===e?P(e):j_(e)?(s=m,D(e)):(t.consume(e),m)}function v(e){return null===e?n(e):63===e?(t.consume(e),x):j_(e)?(s=v,D(e)):(t.consume(e),v)}function x(t){return 62===t?P(t):v(t)}function k(e){return I_(e)?(t.consume(e),_):n(e)}function _(e){return 45===e||D_(e)?(t.consume(e),_):E(e)}function E(e){return j_(e)?(s=E,D(e)):R_(e)?(t.consume(e),E):P(e)}function T(e){return 45===e||D_(e)?(t.consume(e),T):47===e||62===e||F_(e)?C(e):n(e)}function C(e){return 47===e?(t.consume(e),P):58===e||95===e||I_(e)?(t.consume(e),S):j_(e)?(s=C,D(e)):R_(e)?(t.consume(e),C):P(e)}function S(e){return 45===e||46===e||58===e||95===e||D_(e)?(t.consume(e),S):A(e)}function A(e){return 61===e?(t.consume(e),M):j_(e)?(s=A,D(e)):R_(e)?(t.consume(e),A):C(e)}function M(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),r=e,I):j_(e)?(s=M,D(e)):R_(e)?(t.consume(e),M):(t.consume(e),r=void 0,O)}function I(e){return e===r?(t.consume(e),L):null===e?n(e):j_(e)?(s=I,D(e)):(t.consume(e),I)}function L(t){return 62===t||47===t||F_(t)?C(t):n(t)}function O(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):62===e||F_(e)?C(e):(t.consume(e),O)}function D(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),H_(t,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function N(e){return t.enter("htmlTextData"),s(e)}function P(i){return 62===i?(t.consume(i),t.exit("htmlTextData"),t.exit("htmlText"),e):n(i)}}},CE={name:"labelEnd",tokenize:function(t,e,n){const i=this;let r,a,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(e){return r?r._inactive?c(e):(a=i.parser.defined.includes(bE(i.sliceSerialize({start:r.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),s):n(e)};function s(n){return 40===n?t.attempt(SE,e,a?e:c)(n):91===n?t.attempt(AE,e,a?t.attempt(ME,e,c):c)(n):a?e(n):c(n)}function c(t){return r._balanced=!0,n(t)}},resolveTo:function(t,e){let n,i,r,a,o=t.length,s=0;for(;o--;)if(n=t[o][1],i){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===t[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(i=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(r=o);const c={type:"labelLink"===t[i][1].type?"link":"image",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"label",start:Object.assign({},t[i][1].start),end:Object.assign({},t[r][1].end)},l={type:"labelText",start:Object.assign({},t[i+s+2][1].end),end:Object.assign({},t[r-2][1].start)};return a=[["enter",c,e],["enter",u,e]],a=C_(a,t.slice(i+1,i+s+3)),a=C_(a,[["enter",l,e]]),a=C_(a,W_(e.parser.constructs.insideSpan.null,t.slice(i+s+4,r-3),e)),a=C_(a,[["exit",l,e],t[r-2],t[r-1],["exit",u,e]]),a=C_(a,t.slice(r+1)),a=C_(a,[["exit",c,e]]),T_(t,i,t.length,a),t},resolveAll:function(t){let e,n=-1;for(;++n-1&&(o[0]=o[0].slice(i)),a>0&&o.push(t[r].slice(0,a))),o}(o,t)}function f(){return Object.assign({},i)}function d(t){l=l(t)}function g(t,e){e.restore()}function p(t,e){return function(n,r,a){let o,l,h,d;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):(g=n,function(t){const e=null!==t&&g[t],n=null!==t&&g.null;return p([...Array.isArray(e)?e:e?[e]:[],...Array.isArray(n)?n:n?[n]:[]])(t)});var g;function p(t){return o=t,l=0,0===t.length?a:b(t[l])}function b(t){return function(n){return d=function(){const t=f(),e=u.previous,n=u.currentConstruct,r=u.events.length,a=Array.from(s);return{restore:function(){i=t,u.previous=e,u.currentConstruct=n,u.events.length=r,s=a,w()},from:r}}(),h=t,t.partial||(u.currentConstruct=t),t.name&&u.parser.constructs.disable.null.includes(t.name)?m():t.tokenize.call(e?Object.assign(Object.create(u),e):u,c,y,m)(n)}}function y(e){return t(h,d),r}function m(t){return d.restore(),++l13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const ZE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JE(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return QE(n.slice(e?2:1),e?16:10)}return nE(n)||t}function tT(t){return t&&"object"==typeof t?"position"in t||"type"in t?nT(t.position):"start"in t||"end"in t?nT(t):"line"in t||"column"in t?eT(t):"":""}function eT(t){return iT(t&&t.line)+":"+iT(t&&t.column)}function nT(t){return eT(t&&t.start)+"-"+eT(t&&t.end)}function iT(t){return t&&"number"==typeof t?t:1}const rT={}.hasOwnProperty,aT=function(t,e,n){return"string"!=typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(v),autolinkProtocol:f,autolinkEmail:f,atxHeading:o(w),blockQuote:o((function(){return{type:"blockquote",children:[]}})),characterEscape:f,characterReference:f,codeFenced:o(b),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(b,s),codeText:o((function(){return{type:"inlineCode",value:""}}),s),codeTextData:f,data:f,codeFlowValue:f,definition:o((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:o(y),hardBreakTrailing:o(y),htmlFlow:o(m,s),htmlFlowData:f,htmlText:o(m,s),htmlTextData:f,image:o((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:o(v),listItem:o((function(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}})),listItemValue:function(t){a("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),r("expectingFirstListItemValue"))},listOrdered:o(x,(function(){r("expectingFirstListItemValue",!0)})),listUnordered:o(x),paragraph:o((function(){return{type:"paragraph",children:[]}})),reference:function(){r("referenceType","collapsed")},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(w),strong:o((function(){return{type:"strong",children:[]}})),thematicBreak:o((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:u(),atxHeadingSequence:function(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}},autolink:u(),autolinkEmail:function(t){d.call(this,t),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)},autolinkProtocol:function(t){d.call(this,t),this.stack[this.stack.length-1].url=this.sliceSerialize(t)},blockQuote:u(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(t){const e=this.sliceSerialize(t),n=a("characterReferenceType");let i;n?(i=QE(e,"characterReferenceMarkerNumeric"===n?10:16),r("characterReferenceType")):i=nE(e);const o=this.stack.pop();o.value+=i,o.position.end=oT(t.end)},codeFenced:u((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r("flowCodeInside")})),codeFencedFence:function(){a("flowCodeInside")||(this.buffer(),r("flowCodeInside",!0))},codeFencedFenceInfo:function(){const t=this.resume();this.stack[this.stack.length-1].lang=t},codeFencedFenceMeta:function(){const t=this.resume();this.stack[this.stack.length-1].meta=t},codeFlowValue:d,codeIndented:u((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")})),codeText:u((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),codeTextData:d,data:d,definition:u(),definitionDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},definitionLabelString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=bE(this.sliceSerialize(t)).toLowerCase()},definitionTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},emphasis:u(),hardBreakEscape:u(g),hardBreakTrailing:u(g),htmlFlow:u((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlFlowData:d,htmlText:u((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlTextData:d,image:u((function(){const t=this.stack[this.stack.length-1];if(a("inReference")){const e=a("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;r("referenceType")})),label:function(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(r("inReference",!0),"link"===n.type){const e=t.children;n.children=e}else n.alt=e},labelText:function(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(ZE,JE)}(e),n.identifier=bE(e).toLowerCase()},lineEnding:function(t){const n=this.stack[this.stack.length-1];if(a("atHardBreak"))return n.children[n.children.length-1].position.end=oT(t.end),void r("atHardBreak");!a("setextHeadingSlurpLineEnding")&&e.canContainEols.includes(n.type)&&(f.call(this,t),d.call(this,t))},link:u((function(){const t=this.stack[this.stack.length-1];if(a("inReference")){const e=a("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;r("referenceType")})),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=bE(this.sliceSerialize(t)).toLowerCase(),r("referenceType","full")},resourceDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},resourceTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},resource:function(){r("inReference")},setextHeading:u((function(){r("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).charCodeAt(0)?1:2},setextHeadingText:function(){r("setextHeadingSlurpLineEnding",!0)},strong:u(),thematicBreak:u()}};sT(e,(t||{}).mdastExtensions||[]);const n={};return function(t){let n={type:"root",children:[]};const o={stack:[n],tokenStack:[],config:e,enter:c,exit:l,buffer:s,resume:h,setData:r,getData:a},u=[];let f=-1;for(;++f0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||uT).call(o,void 0,t[0])}for(n.position={start:oT(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:oT(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f{0!==n&&(a++,r.push([])),t.split(" ").forEach((t=>{t&&r[a].push({content:t,type:e})}))})):("strong"===t.type||"emphasis"===t.type)&&t.children.forEach((e=>{o(e,t.type)}))}return i.forEach((t=>{"paragraph"===t.type&&t.children.forEach((t=>{o(t)}))})),r}function hT(t,e){const n=function(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}(e.content);return fT(t,[],n,e.type)}function fT(t,e,n,i){if(0===n.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[r,...a]=n,o=[...e,r];return t([{content:o.join(""),type:i}])?fT(t,o,a,i):(0===e.length&&r&&(e.push(r),n.shift()),[{content:e.join(""),type:i},{content:n.join(""),type:i}])}function dT(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return gT(t,e)}function gT(t,e,n=[],i=[]){if(0===t.length)return i.length>0&&n.push(i),n.length>0?n:[];let r="";" "===t[0].content&&(r=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},o=[...i];if(""!==r&&o.push({content:r,type:"normal"}),o.push(a),e(o))return gT(t,e,n,o);if(i.length>0)n.push(i),t.unshift(a);else if(a.content){const[i,r]=hT(e,a);n.push([i]),r.content&&t.unshift(r)}return gT(t,e,n)}function pT(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function bT(t,e,n){const i=t.append("text"),r=pT(i,1,e);wT(r,n);const a=r.node().getComputedTextLength();return i.remove(),a}function wT(t,e){t.text(""),e.forEach(((e,n)=>{const i=t.append("tspan").attr("font-style","emphasis"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===n?i.text(e.content):i.text(" "+e.content)}))}const yT=(t,e="",{style:n="",isTitle:i=!1,classes:r="",useHtmlLabels:a=!0,isNode:s=!0,width:c=200,addSvgBackground:u=!1}={})=>{if(o.info("createText",e,n,i,r,a,s,u),a){const i=function(t){const{children:e}=aT(t);return e.map((function t(e){return"text"===e.type?e.value.replace(/\n/g,"
"):"strong"===e.type?`${e.children.map(t).join("")}`:"emphasis"===e.type?`${e.children.map(t).join("")}`:"paragraph"===e.type?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`})).join("")}(e);return function(t,e,n,i,r=!1){const a=t.append("foreignObject"),o=a.append("xhtml:div"),s=e.label,c=e.isNode?"nodeLabel":"edgeLabel";o.html(`\n "+s+""),function(t,e){e&&t.attr("style",e)}(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("max-width",n+"px"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===n&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",n+"px"),u=o.node().getBoundingClientRect()),a.style("width",u.width),a.style("height",u.height),a.node()}(t,{isNode:s,label:Pp(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:n.replace("fill:","color:")},c,r,u)}return function(t,e,n,i=!1){const r=e.append("g"),a=r.insert("rect").attr("class","background"),o=r.append("text").attr("y","-10.1");let s=0;for(const e of n){const n=e=>bT(r,1.1,e)<=t,i=n(e)?[e]:dT(e,n);for(const t of i)wT(pT(o,s,1.1),t),s++}if(i){const t=o.node().getBBox(),e=2;return a.attr("x",-e).attr("y",-e).attr("width",t.width+2*e).attr("height",t.height+2*e),r.node()}return o.node()}(c,t,lT(e),u)},mT=async(t,e,n,i)=>{let r;const a=e.useHtmlLabels||Nc(ch().flowchart.htmlLabels);r=n||"node default";const o=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=o.insert("g").attr("class","label").attr("style",e.labelStyle);let c;c=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const u=s.node();let l;l="markdown"===e.labelType?yT(s,Lc(Pp(c),ch()),{useHtmlLabels:a,width:e.width||ch().flowchart.wrappingWidth,classes:"markdown-node-label"}):u.appendChild(k_(Lc(Pp(c),ch()),e.labelStyle,!1,i));let h=l.getBBox();const f=e.padding/2;if(Nc(ch().flowchart.htmlLabels)){const t=l.children[0],e=ae(l),n=t.getElementsByTagName("img");if(n){const t=""===c.replace(/]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=ch().fontSize?ch().fontSize:window.getComputedStyle(document.body).fontSize,n=5;e.style.width=parseInt(t,10)*n+"px"}else e.style.width="100%";n(e)}setTimeout((()=>{e.complete&&i()})),e.addEventListener("error",i),e.addEventListener("load",i)})))))}h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return a?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:h,halfPadding:f,label:s}},vT=(t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height};function xT(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}let kT={},_T={},ET={};const TT=(t,e)=>(o.trace("In isDecendant",e," ",t," = ",_T[e].includes(t)),!!_T[e].includes(t)),CT=(t,e,n,i)=>{o.warn("Copying children of ",t,"root",i,"data",e.node(t),i);const r=e.children(t)||[];t!==i&&r.push(t),o.warn("Copying (nodes) clusterId",t,"nodes",r),r.forEach((r=>{if(e.children(r).length>0)CT(r,e,n,i);else{const a=e.node(r);o.info("cp ",r," to ",i," with parent ",t),n.setNode(r,a),i!==e.parent(r)&&(o.warn("Setting parent",r,e.parent(r)),n.setParent(r,e.parent(r))),t!==i&&r!==t?(o.debug("Setting parent",r,t),n.setParent(r,t)):(o.info("In copy ",t,"root",i,"data",e.node(t),i),o.debug("Not Setting parent for node=",r,"cluster!==rootId",t!==i,"node!==clusterId",r!==t));const s=e.edges(r);o.debug("Copying Edges",s),s.forEach((r=>{o.info("Edge",r);const a=e.edge(r.v,r.w,r.name);o.info("Edge data",a,i);try{((t,e)=>(o.info("Decendants of ",e," is ",_T[e]),o.info("Edge is ",t),t.v!==e&&t.w!==e&&(_T[e]?_T[e].includes(t.v)||TT(t.v,e)||TT(t.w,e)||_T[e].includes(t.w):(o.debug("Tilt, ",e,",not in decendants"),!1))))(r,i)?(o.info("Copying as ",r.v,r.w,a,r.name),n.setEdge(r.v,r.w,a,r.name),o.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):o.info("Skipping copy of edge ",r.v,"--\x3e",r.w," rootId: ",i," clusterId:",t)}catch(t){o.error(t)}}))}o.debug("Removing node",r),e.removeNode(r)}))},ST=(t,e)=>{const n=e.children(t);let i=[...n];for(const r of n)ET[r]=t,i=[...i,...ST(r,e)];return i},AT=(t,e)=>{o.trace("Searching",t);const n=e.children(t);if(o.trace("Searching children of id ",t,n),n.length<1)return o.trace("This is a valid node",t),t;for(const i of n){const n=AT(i,e);if(n)return o.trace("Found replacement for",t," => ",n),n}},MT=t=>kT[t]&&kT[t].externalConnections&&kT[t]?kT[t].id:t,IT=(t,e)=>{if(o.warn("extractor - ",e,w_(t),t.children("D")),e>10)return void o.error("Bailing out");let n=t.nodes(),i=!1;for(const e of n){const n=t.children(e);i=i||n.length>0}if(i){o.debug("Nodes = ",n,e);for(const i of n)if(o.debug("Extracting node",i,kT,kT[i]&&!kT[i].externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),kT[i])if(!kT[i].externalConnections&&t.children(i)&&t.children(i).length>0){o.warn("Cluster without external connections, without a parent and with children",i,e);let n="TB"===t.graph().rankdir?"LR":"TB";kT[i]&&kT[i].clusterData&&kT[i].clusterData.dir&&(n=kT[i].clusterData.dir,o.warn("Fixing dir",kT[i].clusterData.dir,n));const r=new nk({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));o.warn("Old graph before copy",w_(t)),CT(i,t,r,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:kT[i].clusterData,labelText:kT[i].labelText,graph:r}),o.warn("New graph after copy node: (",i,")",w_(r)),o.debug("Old graph after copy",w_(t))}else o.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!kT[i].externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),o.debug(kT);else o.debug("Not a cluster",i,e);n=t.nodes(),o.warn("New list of nodes",n);for(const i of n){const n=t.node(i);o.warn(" Now next level",i,n),n.clusterNode&&IT(n.graph,e+1)}}else o.debug("Done, no node has children",t.nodes())},LT=(t,e)=>{if(0===e.length)return[];let n=Object.assign(e);return e.forEach((e=>{const i=t.children(e),r=LT(t,i);n=[...n,...r]})),n};function OT(t,e,n,i){var r=t.x,a=t.y,o=r-i.x,s=a-i.y,c=Math.sqrt(e*e*s*s+n*n*o*o),u=Math.abs(e*n*o/c);i.x0}const PT=(t,e)=>{var n,i,r=t.x,a=t.y,o=e.x-r,s=e.y-a,c=t.width/2,u=t.height/2;return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,i=u):(o<0&&(c=-c),n=c,i=0===o?0:c*s/o),{x:r+n,y:a+i}},BT=function(t,e,n){return OT(t,e,e,n)},FT=function(t,e,n){var i=t.x,r=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=i-t.width/2-o,u=r-t.height/2-s,l=0;l1&&a.sort((function(t,e){var i=t.x-n.x,r=t.y-n.y,a=Math.sqrt(i*i+r*r),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a1&&h>l&&h<=t.length){let a=t.substring(0,l).trim();const o=t.substring(l+1,h);if(e=r+a+"("+Pc(o.trim())+")",h"),e}(e);const h=c.append("tspan").text(l).attr("class","title");u||h.attr("dy",n.textHeight);const f=c.node().getBBox().height,d=s.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin/2).attr("y2",n.padding+f+n.dividerMargin/2),g=s.append("text").attr("x",n.padding).attr("y",f+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");u=!0,e.members.forEach((function(t){zT(g,t,u,n),u=!1}));const p=g.node().getBBox(),b=s.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin+p.height).attr("y2",n.padding+f+n.dividerMargin+p.height),w=s.append("text").attr("x",n.padding).attr("y",f+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");u=!0,e.methods.forEach((function(t){zT(w,t,u,n),u=!1}));const y=s.node().getBBox();var m=" ";e.cssClasses.length>0&&(m+=e.cssClasses.join(" "));const v=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",y.width+2*n.padding).attr("height",y.height+n.padding+.5*n.dividerMargin).attr("class",m).node().getBBox().width;return c.node().childNodes.forEach((function(t){t.setAttribute("x",(v-t.getBBox().width)/2)})),e.tooltip&&c.insert("title").text(e.tooltip),d.attr("x2",v),b.attr("x2",v),a.width=v,a.height=y.height+n.padding+.5*n.dividerMargin,a},UT=t=>t?" "+t:"",GT=(t,e)=>`${e||"node default"}${UT(t.classes)} ${UT(t.class)}`,YT=async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding+(i.height+e.padding),a=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];o.info("Question main (Circle)");const s=xT(n,r,r,a);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return o.warn("Intersect called"),FT(e,a,t)},n};function KT(t,e,n,i){const r=[],a=t=>{r.push(t,0)},s=t=>{r.push(0,t)};e.includes("t")?(o.debug("add top border"),a(n)):s(n),e.includes("r")?(o.debug("add right border"),a(i)):s(i),e.includes("b")?(o.debug("add bottom border"),a(n)):s(n),e.includes("l")?(o.debug("add left border"),a(i)):s(i),t.attr("stroke-dasharray",r.join(" "))}const WT=(t,e,n)=>{const i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let r=70,a=10;"LR"===n&&(r=10,a=70);const o=i.append("rect").attr("x",-1*r/2).attr("y",-1*a/2).attr("width",r).attr("height",a).attr("class","fork-join");return vT(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return jT(e,t)},i},XT={rhombus:YT,question:YT,rect:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await mT(t,e,"node "+e.classes+" "+e.class,!0),a=n.insert("rect",":first-child"),s=i.width+e.padding,c=i.height+e.padding;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",s).attr("height",c),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(KT(a,e.props.borders,s,c),t.delete("borders")),t.forEach((t=>{o.warn(`Unknown node property ${t}`)}))}return vT(e,a),e.intersect=function(t){return jT(e,t)},n},labelRect:async(t,e)=>{const{shapeSvg:n}=await mT(t,e,"label",!0);o.trace("Classes = ",e.class);const i=n.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(KT(i,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{o.warn(`Unknown node property ${t}`)}))}return vT(e,i),e.intersect=function(t){return jT(e,t)},n},rectWithTitle:(t,e)=>{let n;n=e.classes?"node "+e.classes:"node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),r=i.insert("rect",":first-child"),a=i.insert("line"),s=i.insert("g").attr("class","label"),c=e.labelText.flat?e.labelText.flat():e.labelText;let u="";u="object"==typeof c?c[0]:c,o.info("Label text abc79",u,c,"object"==typeof c);const l=s.node().appendChild(k_(u,e.labelStyle,!0,!0));let h={width:0,height:0};if(Nc(ch().flowchart.htmlLabels)){const t=l.children[0],e=ae(l);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}o.info("Text 2",c);const f=c.slice(1,c.length);let d=l.getBBox();const g=s.node().appendChild(k_(f.join?f.join("
"):f,e.labelStyle,!0,!0));if(Nc(ch().flowchart.htmlLabels)){const t=g.children[0],e=ae(g);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}const p=e.padding/2;return ae(g).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+p+5)+")"),ae(l).attr("transform","translate( "+(h.width{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return n.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return BT(e,14,t)},n},circle:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await mT(t,e,GT(e,void 0),!0),a=n.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("Circle main"),vT(e,a),e.intersect=function(t){return o.info("Circle intersect",e,i.width/2+r,t),BT(e,i.width/2+r,t)},n},doublecircle:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await mT(t,e,GT(e,void 0),!0),a=n.insert("g",":first-child"),s=a.insert("circle"),c=a.insert("circle");return a.attr("class",e.class),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),c.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("DoubleCircle main"),vT(e,s),e.intersect=function(t){return o.info("DoubleCircle intersect",e,i.width/2+r+5,t),BT(e,i.width/2+r+5,t)},n},stadium:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.height+e.padding,a=i.width+r/4+e.padding,o=n.insert("rect",":first-child").attr("style",e.style).attr("rx",r/2).attr("ry",r/2).attr("x",-a/2).attr("y",-r/2).attr("width",a).attr("height",r);return vT(e,o),e.intersect=function(t){return jT(e,t)},n},hexagon:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.height+e.padding,a=r/4,o=i.width+2*a+e.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-r/2},{x:o-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}],c=xT(n,o,r,s);return c.attr("style",e.style),vT(e,c),e.intersect=function(t){return FT(e,s,t)},n},rect_left_inv_arrow:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-a/2,y:0},{x:r,y:0},{x:r,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return xT(n,r,a,o).attr("style",e.style),e.width=r+a,e.height=a,e.intersect=function(t){return FT(e,o,t)},n},lean_right:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-2*a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:a/6,y:-a}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},lean_left:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:2*a/6,y:0},{x:r+a/6,y:0},{x:r-2*a/6,y:-a},{x:-a/6,y:-a}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},trapezoid:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-2*a/6,y:0},{x:r+2*a/6,y:0},{x:r-a/6,y:-a},{x:a/6,y:-a}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},inv_trapezoid:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},rect_right_inv_arrow:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:0,y:0},{x:r+a/2,y:0},{x:r,y:-a/2},{x:r+a/2,y:-a},{x:0,y:-a}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},cylinder:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=r/2,o=a/(2.5+r/50),s=i.height+o+e.padding,c="M 0,"+o+" a "+a+","+o+" 0,0,0 "+r+" 0 a "+a+","+o+" 0,0,0 "+-r+" 0 l 0,"+s+" a "+a+","+o+" 0,0,0 "+r+" 0 l 0,"+-s,u=n.attr("label-offset-y",o).insert("path",":first-child").attr("style",e.style).attr("d",c).attr("transform","translate("+-r/2+","+-(s/2+o)+")");return vT(e,u),e.intersect=function(t){const n=jT(e,t),i=n.x-e.x;if(0!=a&&(Math.abs(i)e.height/2-o)){let r=o*o*(1-i*i/(a*a));0!=r&&(r=Math.sqrt(r)),r=o-r,t.y-e.y>0&&(r=-r),n.y+=r}return n},n},start:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),vT(e,i),e.intersect=function(t){return BT(e,7,t)},n},end:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child"),r=n.insert("circle",":first-child");return r.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),vT(e,r),e.intersect=function(t){return BT(e,7,t)},n},note:async(t,e)=>{e.useHtmlLabels||ch().flowchart.htmlLabels||(e.centerLabel=!0);const{shapeSvg:n,bbox:i,halfPadding:r}=await mT(t,e,"node "+e.classes,!0);o.info("Classes = ",e.classes);const a=n.insert("rect",":first-child");return a.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),vT(e,a),e.intersect=function(t){return jT(e,t)},n},subroutine:async(t,e)=>{const{shapeSvg:n,bbox:i}=await mT(t,e,GT(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:0,y:0},{x:r,y:0},{x:r,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=xT(n,r,a,o);return s.attr("style",e.style),vT(e,s),e.intersect=function(t){return FT(e,o,t)},n},fork:WT,join:WT,class_box:(t,e)=>{const n=e.padding/2;let i;i=e.classes?"node "+e.classes:"node default";const r=t.insert("g").attr("class",i).attr("id",e.domId||e.id),a=r.insert("rect",":first-child"),o=r.insert("line"),s=r.insert("line");let c=0,u=4;const l=r.insert("g").attr("class","label");let h=0;const f=e.classData.annotations&&e.classData.annotations[0],d=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",g=l.node().appendChild(k_(d,e.labelStyle,!0,!0));let p=g.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=g.children[0],e=ae(g);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}e.classData.annotations[0]&&(u+=p.height+4,c+=p.width);let b=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&(ch().flowchart.htmlLabels?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const w=l.node().appendChild(k_(b,e.labelStyle,!0,!0));ae(w).attr("class","classTitle");let y=w.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=w.children[0],e=ae(w);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}u+=y.height+4,y.width>c&&(c=y.width);const m=[];e.classData.members.forEach((t=>{const n=$T(t);let i=n.displayText;ch().flowchart.htmlLabels&&(i=i.replace(//g,">"));const r=l.node().appendChild(k_(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=r.children[0],e=ae(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>c&&(c=a.width),u+=a.height+4,m.push(r)})),u+=8;const v=[];if(e.classData.methods.forEach((t=>{const n=$T(t);let i=n.displayText;ch().flowchart.htmlLabels&&(i=i.replace(//g,">"));const r=l.node().appendChild(k_(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=r.children[0],e=ae(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>c&&(c=a.width),u+=a.height+4,v.push(r)})),u+=8,f){let t=(c-p.width)/2;ae(g).attr("transform","translate( "+(-1*c/2+t)+", "+-1*u/2+")"),h=p.height+4}let x=(c-y.width)/2;return ae(w).attr("transform","translate( "+(-1*c/2+x)+", "+(-1*u/2+h)+")"),h+=y.height+4,o.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-u/2-n+8+h).attr("y2",-u/2-n+8+h),h+=8,m.forEach((t=>{ae(t).attr("transform","translate( "+-c/2+", "+(-1*u/2+h+4)+")");const e=null==t?void 0:t.getBBox();h+=((null==e?void 0:e.height)??0)+4})),h+=8,s.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-u/2-n+8+h).attr("y2",-u/2-n+8+h),h+=8,v.forEach((t=>{ae(t).attr("transform","translate( "+-c/2+", "+(-1*u/2+h)+")");const e=null==t?void 0:t.getBBox();h+=((null==e?void 0:e.height)??0)+4})),a.attr("class","outer title-state").attr("x",-c/2-n).attr("y",-u/2-n).attr("width",c+e.padding).attr("height",u+e.padding),vT(e,a),e.intersect=function(t){return jT(e,t)},r}};let VT={};const QT=async(t,e,n)=>{let i,r;if(e.link){let a;"sandbox"===ch().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),r=await XT[e.shape](i,e,n)}else r=await XT[e.shape](t,e,n),i=r;return e.tooltip&&r.attr("title",e.tooltip),e.class&&r.attr("class","node default "+e.class),VT[e.id]=i,e.haveCallback&&VT[e.id].attr("class",VT[e.id].attr("class")+" clickable"),i},ZT=t=>{const e=VT[t.id];o.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},JT={rect:(t,e)=>{o.info("Creating subgraph rect for ",e.id,e);const n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),i=n.insert("rect",":first-child"),r=Nc(ch().flowchart.htmlLabels),a=n.insert("g").attr("class","cluster-label"),s="markdown"===e.labelType?yT(a,e.labelText,{style:e.labelStyle,useHtmlLabels:r}):a.node().appendChild(k_(e.labelText,e.labelStyle,void 0,!0));let c=s.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=s.children[0],e=ae(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}const u=0*e.padding,l=u/2,h=e.width<=c.width+u?c.width+u:e.width;e.width<=c.width+u?e.diff=(c.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,o.trace("Data ",e,JSON.stringify(e)),i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-h/2).attr("y",e.y-e.height/2-l).attr("width",h).attr("height",e.height+u),r?a.attr("transform","translate("+(e.x-c.width/2)+", "+(e.y-e.height/2)+")"):a.attr("transform","translate("+e.x+", "+(e.y-e.height/2)+")");const f=i.node().getBBox();return e.width=f.width,e.height=f.height,e.intersect=function(t){return PT(e,t)},n},roundedWithTitle:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=r.node().appendChild(k_(e.labelText,e.labelStyle,void 0,!0));let s=o.getBBox();if(Nc(ch().flowchart.htmlLabels)){const t=o.children[0],e=ae(o);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s=o.getBBox();const c=0*e.padding,u=c/2,l=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,i.attr("class","outer").attr("x",e.x-l/2-u).attr("y",e.y-e.height/2-u).attr("width",l+c).attr("height",e.height+c),a.attr("class","inner").attr("x",e.x-l/2-u).attr("y",e.y-e.height/2-u+s.height-1).attr("width",l+c).attr("height",e.height+c-s.height-3),r.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(Nc(ch().flowchart.htmlLabels)?5:3))+")");const h=i.node().getBBox();return e.height=h.height,e.intersect=function(t){return PT(e,t)},n},noteGroup:(t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return PT(e,t)},n},divider:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+r).attr("height",e.height+r);const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return PT(e,t)},n}};let tC={},eC={},nC={};const iC=(t,e)=>{const n=Nc(ch().flowchart.htmlLabels),i="markdown"===e.labelType?yT(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:!0}):k_(e.label,e.labelStyle);o.info("abc82",e,e.labelType);const r=t.insert("g").attr("class","edgeLabel"),a=r.insert("g").attr("class","label");a.node().appendChild(i);let s,c=i.getBBox();if(n){const t=i.children[0],e=ae(i);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}if(a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),eC[e.id]=r,e.width=c.width,e.height=c.height,e.startLabelLeft){const n=k_(e.startLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");s=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),nC[e.id]||(nC[e.id]={}),nC[e.id].startLeft=i,rC(s,e.startLabelLeft)}if(e.startLabelRight){const n=k_(e.startLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");s=i.node().appendChild(n),r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),nC[e.id]||(nC[e.id]={}),nC[e.id].startRight=i,rC(s,e.startLabelRight)}if(e.endLabelLeft){const n=k_(e.endLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");s=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),nC[e.id]||(nC[e.id]={}),nC[e.id].endLeft=i,rC(s,e.endLabelLeft)}if(e.endLabelRight){const n=k_(e.endLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");s=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),nC[e.id]||(nC[e.id]={}),nC[e.id].endRight=i,rC(s,e.endLabelRight)}return i};function rC(t,e){ch().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}const aC=(t,e)=>{o.warn("abc88 cutPathAtIntersect",t,e);let n=[],i=t[0],r=!1;return t.forEach((t=>{if(o.info("abc88 checking point",t,e),((t,e)=>{const n=t.x,i=t.y,r=Math.abs(e.x-n),a=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return r>=o||a>=s})(e,t)||r)o.warn("abc88 outside",t,i),i=t,r||n.push(t);else{const a=((t,e,n)=>{o.warn(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,r=t.y,a=Math.abs(i-n.x),s=t.width/2;let c=n.xMath.abs(i-e.x)*u){let t=n.y{s=s||t.x===a.x&&t.y===a.y})),n.some((t=>t.x===a.x&&t.y===a.y))?o.warn("abc88 no intersect",a,n):n.push(a),r=!0}})),o.warn("abc88 returning points",n),n},oC=async(t,e,n,i)=>{o.info("Graph in recursive render: XXX",w_(e),i);const r=e.graph().rankdir;o.trace("Dir in recursive render - dir:",r);const a=t.insert("g").attr("class","root");e.nodes()?o.info("Recursive render XXX",e.nodes()):o.info("No nodes found for",e),e.edges().length>0&&o.trace("Recursive edges",e.edge(e.edges()[0]));const s=a.insert("g").attr("class","clusters"),c=a.insert("g").attr("class","edgePaths"),u=a.insert("g").attr("class","edgeLabels"),l=a.insert("g").attr("class","nodes");await Promise.all(e.nodes().map((async function(t){const a=e.node(t);if(void 0!==i){const n=JSON.parse(JSON.stringify(i.clusterData));o.info("Setting data for cluster XXX (",t,") ",n,i),e.setNode(i.id,n),e.parent(t)||(o.trace("Setting parent",t,i.id),e.setParent(t,i.id,n))}if(o.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),a&&a.clusterNode){o.info("Cluster identified",t,a.width,e.node(t));const i=await oC(l,a.graph,n,e.node(t)),r=i.elem;vT(a,r),a.diff=i.diff||0,o.info("Node bounds (abc123)",t,a,a.width,a.x,a.y),((t,e)=>{VT[e.id]=t})(r,a),o.warn("Recursive render complete ",r,a)}else e.children(t).length>0?(o.info("Cluster - the non recursive path XXX",t,a.id,a,e),o.info(AT(a.id,e)),kT[a.id]={id:AT(a.id,e),node:a}):(o.info("Node - the non recursive path",t,a.id,a),await QT(l,e.node(t),r))}))),e.edges().forEach((function(t){const n=e.edge(t.v,t.w,t.name);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),o.info("Fix",kT,"ids:",t.v,t.w,"Translateing: ",kT[t.v],kT[t.w]),iC(u,n)})),e.edges().forEach((function(t){o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),o.info("#############################################"),o.info("### Layout ###"),o.info("#############################################"),o.info(e),a_(e),o.info("Graph after layout:",w_(e));let h=0;return(t=>LT(t,t.children()))(e).forEach((function(t){const n=e.node(t);o.info("Position "+t+": "+JSON.stringify(e.node(t))),o.info("Position "+t+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?ZT(n):e.children(t).length>0?(((t,e)=>{o.trace("Inserting cluster");const n=e.shape||"rect";tC[e.id]=JT[n](t,e)})(s,n),kT[n.id].node=n):ZT(n)})),e.edges().forEach((function(t){const i=e.edge(t);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(i),i);const r=function(t,e,n,i,r,a){let s=n.points,c=!1;const u=a.node(e.v);var l=a.node(e.w);o.info("abc88 InsertEdge: ",n),l.intersect&&u.intersect&&(s=s.slice(1,n.points.length-1),s.unshift(u.intersect(s[0])),o.info("Last point",s[s.length-1],l,l.intersect(s[s.length-1])),s.push(l.intersect(s[s.length-1]))),n.toCluster&&(o.info("to cluster abc88",i[n.toCluster]),s=aC(n.points,i[n.toCluster].node),c=!0),n.fromCluster&&(o.info("from cluster abc88",i[n.fromCluster]),s=aC(s.reverse(),i[n.fromCluster].node).reverse(),c=!0);const h=s.filter((t=>!Number.isNaN(t.y)));let f;f=("graph"===r||"flowchart"===r)&&n.curve||is;const d=Vo().x((function(t){return t.x})).y((function(t){return t.y})).curve(f);let g;switch(n.thickness){case"normal":g="edge-thickness-normal";break;case"thick":case"invisible":g="edge-thickness-thick";break;default:g=""}switch(n.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}const p=t.append("path").attr("d",d(h)).attr("id",n.id).attr("class"," "+g+(n.classes?" "+n.classes:"")).attr("style",n.style);let b="";switch((ch().flowchart.arrowMarkerAbsolute||ch().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),o.info("arrowTypeStart",n.arrowTypeStart),o.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+b+"#"+r+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+b+"#"+r+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+b+"#"+r+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+b+"#"+r+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+b+"#"+r+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+b+"#"+r+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+b+"#"+r+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+b+"#"+r+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+b+"#"+r+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+b+"#"+r+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+b+"#"+r+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+b+"#"+r+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+b+"#"+r+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+b+"#"+r+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+b+"#"+r+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+b+"#"+r+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+b+"#"+r+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+b+"#"+r+"-lollipopEnd)")}let w={};return c&&(w.updatedPath=s),w.originalPath=n.points,w}(c,t,i,kT,n,e);((t,e)=>{o.info("Moving label abc78 ",t.id,t.label,eC[t.id]);let n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){const i=eC[t.id];let r=t.x,a=t.y;if(n){const i=od.calcLabelPosition(n);o.info("Moving label "+t.label+" from (",r,",",a,") to (",i.x,",",i.y,") abc78"),e.updatedPath&&(r=i.x,a=i.y)}i.attr("transform","translate("+r+", "+a+")")}if(t.startLabelLeft){const e=nC[t.id].startLeft;let i=t.x,r=t.y;if(n){const e=od.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.startLabelRight){const e=nC[t.id].startRight;let i=t.x,r=t.y;if(n){const e=od.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelLeft){const e=nC[t.id].endLeft;let i=t.x,r=t.y;if(n){const e=od.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelRight){const e=nC[t.id].endRight;let i=t.x,r=t.y;if(n){const e=od.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}})(i,r)})),e.nodes().forEach((function(t){const n=e.node(t);o.info(t,n.type,n.diff),"group"===n.type&&(h=n.diff)})),{elem:a,diff:h}},sC=async(t,e,n,i,r)=>{x_(t,n,i,r),VT={},eC={},nC={},tC={},_T={},ET={},kT={},o.warn("Graph at first:",w_(e)),((t,e)=>{t?(o.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(o.warn("Cluster identified",e," Replacement id in edges: ",AT(e,t)),_T[e]=ST(e,t),kT[e]={id:AT(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){const n=t.children(e),i=t.edges();n.length>0?(o.debug("Cluster identified",e,_T),i.forEach((t=>{t.v!==e&&t.w!==e&&TT(t.v,e)^TT(t.w,e)&&(o.warn("Edge: ",t," leaves cluster ",e),o.warn("Decendants of XXX ",e,": ",_T[e]),kT[e].externalConnections=!0)}))):o.debug("Not a cluster ",e,_T)})),t.edges().forEach((function(e){const n=t.edge(e);o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,r=e.w;if(o.warn("Fix XXX",kT,"ids:",e.v,e.w,"Translating: ",kT[e.v]," --- ",kT[e.w]),kT[e.v]&&kT[e.w]&&kT[e.v]===kT[e.w]){o.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=MT(e.v),r=MT(e.w),t.removeEdge(e.v,e.w,e.name);const a=e.w+"---"+e.v;t.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const s=JSON.parse(JSON.stringify(n)),c=JSON.parse(JSON.stringify(n));s.label="",s.arrowTypeEnd="none",c.label="",s.fromCluster=e.v,c.toCluster=e.v,t.setEdge(i,a,s,e.name+"-cyclic-special"),t.setEdge(a,r,c,e.name+"-cyclic-special")}else(kT[e.v]||kT[e.w])&&(o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=MT(e.v),r=MT(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v&&(n.fromCluster=e.v),r!==e.w&&(n.toCluster=e.w),o.warn("Fix Replacing with XXX",i,r,e.name),t.setEdge(i,r,n,e.name))})),o.warn("Adjusted Graph",w_(t)),IT(t,0),o.trace(kT)):o.debug("Opting out, no graph ")})(e),o.warn("Graph after:",w_(e)),await oC(t,e,i)},cC={},uC=function(t,e,n,i,r,a){const s=i.select(`[id="${n}"]`);Object.keys(t).forEach((function(n){const i=t[n];let c="default";i.classes.length>0&&(c=i.classes.join(" ")),c+=" flowchart-label";const u=Gf(i.styles);let l,h=void 0!==i.text?i.text:i.id;if(o.info("vertex",i,i.labelType),"markdown"===i.labelType)o.info("vertex",i,i.labelType);else if(Nc(ch().flowchart.htmlLabels)){const t={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``))};l=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var r=e.label;switch(typeof r){case"function":i.insert(r);break;case"object":i.insert((function(){return r}));break;default:i.html(r)}(function(t,e){e&&t.attr("style",e)})(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}(s,t).node(),l.parentNode.removeChild(l)}else{const t=r.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",u.labelStyle.replace("color:","fill:"));const e=h.split(Bc.lineBreakRegex);for(const n of e){const e=r.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}l=t}let f=0,d="";switch(i.type){case"round":f=5,d="rect";break;case"square":case"group":default:d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"odd":case"odd_right":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"doublecircle":d="doublecircle"}e.setNode(i.id,{labelStyle:u.labelStyle,shape:d,labelText:h,labelType:i.labelType,rx:f,ry:f,class:c,style:u.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:a.db.getTooltip(i.id)||"",domId:a.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:ch().flowchart.padding}),o.info("setNode",{labelStyle:u.labelStyle,labelType:i.labelType,shape:d,labelText:h,rx:f,ry:f,class:c,style:u.style,id:i.id,domId:a.db.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:ch().flowchart.padding})}))},lC=function(t,e,n){o.info("abc78 edges = ",t);let i,r,a=0,s={};if(void 0!==t.defaultStyle){const e=Gf(t.defaultStyle);i=e.style,r=e.labelStyle}t.forEach((function(n){a++;const c="L-"+n.start+"-"+n.end;void 0===s[c]?(s[c]=0,o.info("abc78 new entry",c,s[c])):(s[c]++,o.info("abc78 new entry",c,s[c]));let u=c+"-"+s[c];o.info("abc78 new link id to be used is",c,u,s[c]);const l="LS-"+n.start,h="LE-"+n.end,f={style:"",labelStyle:""};switch(f.minlen=n.length||1,"arrow_open"===n.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":f.arrowTypeStart="arrow_cross";case"arrow_cross":f.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":f.arrowTypeStart="arrow_point";case"arrow_point":f.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":f.arrowTypeStart="arrow_circle";case"arrow_circle":f.arrowTypeEnd="arrow_circle"}let d="",g="";switch(n.stroke){case"normal":d="fill:none;",void 0!==i&&(d=i),void 0!==r&&(g=r),f.thickness="normal",f.pattern="solid";break;case"dotted":f.thickness="normal",f.pattern="dotted",f.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f.thickness="thick",f.pattern="solid",f.style="stroke-width: 3.5px;fill:none;";break;case"invisible":f.thickness="invisible",f.pattern="solid",f.style="stroke-width: 0;fill:none;"}if(void 0!==n.style){const t=Gf(n.style);d=t.style,g=t.labelStyle}f.style=f.style+=d,f.labelStyle=f.labelStyle+=g,void 0!==n.interpolate?f.curve=Hf(n.interpolate,Ko):void 0!==t.defaultInterpolate?f.curve=Hf(t.defaultInterpolate,Ko):f.curve=Hf(cC.curve,Ko),void 0===n.text?void 0!==n.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType=n.labelType,f.label=n.text.replace(Bc.lineBreakRegex,"\n"),void 0===n.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=u,f.classes="flowchart-link "+l+" "+h,e.setEdge(n.start,n.end,f,a)}))},hC={setConf:function(t){const e=Object.keys(t);for(const n of e)cC[n]=t[n]},addVertices:uC,addEdges:lC,getClasses:function(t,e){return e.db.getClasses()},draw:async function(t,e,n,i){o.info("Drawing flowchart");let r=i.db.getDirection();void 0===r&&(r="TD");const{securityLevel:a,flowchart:s}=ch(),c=s.nodeSpacing||50,u=s.rankSpacing||50;let l;"sandbox"===a&&(l=ae("#i"+e));const h=ae("sandbox"===a?l.nodes()[0].contentDocument.body:"body"),f="sandbox"===a?l.nodes()[0].contentDocument:document,d=new nk({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:c,ranksep:u,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let g;const p=i.db.getSubGraphs();o.info("Subgraphs - ",p);for(let t=p.length-1;t>=0;t--)g=p[t],o.info("Subgraph - ",g),i.db.addVertex(g.id,{text:g.title,type:g.labelType},"group",void 0,g.classes,g.dir);const b=i.db.getVertices(),w=i.db.getEdges();o.info("Edges",w);let y=0;for(y=p.length-1;y>=0;y--){g=p[y],oe("cluster").append("text");for(let t=0;t`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((t,e)=>{const n=Jc,i=n(t,"r"),r=n(t,"g"),a=n(t,"b");return Zc(i,r,a,.5)})(t.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`,dC=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Fb,db:Dw,renderer:hC,styles:fC,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,function(t){const e=Object.keys(t);for(const n of e)b_[n]=t[n]}(t.flowchart),Dw.clear(),Dw.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),gC=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Fb,db:Dw,renderer:hC,styles:fC,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,sh({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),hC.setConf(t.flowchart),Dw.clear(),Dw.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var pC=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,23,25,27,29,30,31,52],r=[1,17],a=[1,18],o=[1,19],s=[1,20],c=[1,21],u=[1,22],l=[1,25],h=[1,30],f=[1,31],d=[1,32],g=[1,33],p=[1,34],b=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],w=[1,46],y=[30,31,49,50],m=[4,6,9,11,23,25,27,29,30,31,52],v=[44,45,46,47,48],x=[22,37],k=[1,66],_=[1,65],E=[22,37,39,41],T={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 20:case 44:case 28:case 29:case 32:this.$=a[s];break;case 12:i.addEntity(a[s-4]),i.addEntity(a[s-2]),i.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:i.addEntity(a[s-3]),i.addAttributes(a[s-3],a[s-1]);break;case 14:i.addEntity(a[s-2]);break;case 15:i.addEntity(a[s]);break;case 16:case 17:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 21:case 42:case 43:case 33:this.$=a[s].replace(/"/g,"");break;case 22:case 30:this.$=[a[s]];break;case 23:a[s].push(a[s-1]),this.$=a[s];break;case 24:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 26:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 27:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 31:a[s-2].push(a[s]),this.$=a[s-2];break;case 34:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 35:this.$=i.Cardinality.ZERO_OR_ONE;break;case 36:this.$=i.Cardinality.ZERO_OR_MORE;break;case 37:this.$=i.Cardinality.ONE_OR_MORE;break;case 38:this.$=i.Cardinality.ONLY_ONE;break;case 39:this.$=i.Cardinality.MD_PARENT;break;case 40:this.$=i.Identification.NON_IDENTIFYING;break;case 41:this.$=i.Identification.IDENTIFYING;break;case 45:i.parseDirective("%%{","open_directive");break;case 46:i.parseDirective(a[s],"type_directive");break;case 47:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 48:i.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,52:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,52:n},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:r,25:a,27:o,29:s,30:c,31:u,52:n},{1:[2,2]},{14:23,15:[1,24],55:l},t([15,55],[2,46]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:15,10:26,12:4,17:16,23:r,25:a,27:o,29:s,30:c,31:u,52:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),t(i,[2,15],{18:27,42:29,20:[1,28],44:h,45:f,46:d,47:g,48:p}),{24:[1,35]},{26:[1,36]},{28:[1,37]},t(i,[2,19]),t(b,[2,20]),t(b,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},t(i,[2,5]),{17:41,30:c,31:u},{21:42,22:[1,43],32:44,33:45,37:w},{43:47,49:[1,48],50:[1,49]},t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(y,[2,39]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(m,[2,9]),{14:50,55:l},{55:[2,47]},{15:[1,51]},{22:[1,52]},t(i,[2,14]),{21:53,22:[2,22],32:44,33:45,37:w},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:h,45:f,46:d,47:g,48:p},t(v,[2,40]),t(v,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},t(i,[2,13]),{22:[2,23]},t(x,[2,24],{35:62,36:63,38:64,40:k,41:_}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(m,[2,10]),t(i,[2,12]),t(i,[2,42]),t(i,[2,43]),t(i,[2,44]),t(x,[2,25],{36:67,39:[1,68],41:_}),t(x,[2,26]),t(E,[2,30]),t(x,[2,33]),t(E,[2,32]),t(x,[2,27]),{38:69,40:k},t(E,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},C={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;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.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:case 20:case 25:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 21:return 40;case 22:case 23:return 37;case 24:return 41;case 26:return this.popState(),22;case 27:case 57:return e.yytext[0];case 28:case 32:case 33:case 46:return 44;case 29:case 30:case 31:case 39:case 41:case 48:return 46;case 34:case 35:case 36:case 37:case 38:case 40:case 47:return 45;case 42:case 43:case 44:case 45:return 47;case 49:return 48;case 50:case 53:case 54:case 55:return 49;case 51:case 52:return 50;case 56:return 30;case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,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],inclusive:!0}}};function S(){this.yy={}}return T.lexer=C,S.prototype=T,T.Parser=S,new S}();pC.parser=pC;const bC=pC;let wC={},yC=[];const mC=function(t){return void 0===wC[t]&&(wC[t]={attributes:[]},o.info("Added new entity :",t)),wC[t]},vC={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"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().er,addEntity:mC,addAttributes:function(t,e){let n,i=mC(t);for(n=e.length-1;n>=0;n--)i.attributes.push(e[n]),o.debug("Added attribute ",e[n].attributeName)},getEntities:()=>wC,addRelationship:function(t,e,n,i){let r={entityA:t,roleA:e,entityB:n,relSpec:i};yC.push(r),o.debug("Added new relationship :",r)},getRelationships:()=>yC,clear:function(){wC={},yC=[],kh()},setAccTitle:_h,getAccTitle:Eh,setAccDescription:Th,getAccDescription:Ch,setDiagramTitle:Sh,getDiagramTitle:Ah},xC={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},kC=xC,_C=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,EC=[];for(let t=0;t<256;++t)EC.push((t+256).toString(16).slice(1));function TC(t,e,n,i){switch(t){case 0:return e&n^~e&i;case 1:case 3:return e^n^i;case 2:return e&n^e&i^n&i}}function CC(t,e){return t<>>32-e}const SC=function(t,e,n){function i(t,e,n,i){var r;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}(e)),16!==(null===(r=e)||void 0===r?void 0:r.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+t.length);if(a.set(e),a.set(t,e.length),a=function(t){const e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let n=0;n>>0;u=c,c=s,s=CC(o,30)>>>0,o=r,r=a}n[0]=n[0]+r>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}(a),a[6]=15&a[6]|80,a[8]=63&a[8]|128,n){i=i||0;for(let t=0;t<16;++t)n[i+t]=a[t];return n}return function(t,e=0){return(EC[t[e+0]]+EC[t[e+1]]+EC[t[e+2]]+EC[t[e+3]]+"-"+EC[t[e+4]]+EC[t[e+5]]+"-"+EC[t[e+6]]+EC[t[e+7]]+"-"+EC[t[e+8]]+EC[t[e+9]]+"-"+EC[t[e+10]]+EC[t[e+11]]+EC[t[e+12]]+EC[t[e+13]]+EC[t[e+14]]+EC[t[e+15]]).toLowerCase()}(a)}try{i.name="v5"}catch{}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}(),AC=/[^\dA-Za-z](\W)*/g;let MC={},IC=new Map;const LC=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let OC=0;const DC="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function NC(t=""){return t.length>0?`${t}-`:""}const PC=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:bC,db:vC,renderer:{setConf:function(t){const e=Object.keys(t);for(const n of e)MC[n]=t[n]},draw:function(t,e,n,i){MC=ch().er,o.info("Drawing ER diagram");const r=ch().securityLevel;let a;"sandbox"===r&&(a=ae("#i"+e));const s=ae("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let c;(function(t,e){let n;t.append("defs").append("marker").attr("id",xC.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",xC.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",xC.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",xC.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",xC.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",xC.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",xC.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",xC.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=t.append("defs").append("marker").attr("id",xC.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=t.append("defs").append("marker").attr("id",xC.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(s,MC),c=new nk({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:MC.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const u=function(t,e,n){let i;return Object.keys(e).forEach((function(r){const a=function(t="",e=""){const n=t.replace(AC,"");return`${NC(e)}${NC(n)}${SC(t,DC)}`}(r,"entity");IC.set(r,a);const o=t.append("g").attr("id",a);i=void 0===i?a:i;const s="text-"+a,c=o.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",ch().fontFamily).style("font-size",MC.fontSize+"px").text(r),{width:u,height:l}=((t,e,n)=>{const i=MC.entityPadding/3,r=MC.entityPadding/3,a=.85*MC.fontSize,o=e.node().getBBox(),s=[];let c=!1,u=!1,l=0,h=0,f=0,d=0,g=o.height+2*i,p=1;n.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(c=!0),void 0!==t.attributeComment&&(u=!0)})),n.forEach((n=>{const r=`${e.node().id}-attr-${p}`;let o=0;const b=Pc(n.attributeType),w=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",ch().fontFamily).style("font-size",a+"px").text(b),y=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",ch().fontFamily).style("font-size",a+"px").text(n.attributeName),m={};m.tn=w,m.nn=y;const v=w.node().getBBox(),x=y.node().getBBox();if(l=Math.max(l,v.width),h=Math.max(h,x.width),o=Math.max(v.height,x.height),c){const e=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",i=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",ch().fontFamily).style("font-size",a+"px").text(e);m.kn=i;const s=i.node().getBBox();f=Math.max(f,s.width),o=Math.max(o,s.height)}if(u){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",ch().fontFamily).style("font-size",a+"px").text(n.attributeComment||"");m.cn=e;const i=e.node().getBBox();d=Math.max(d,i.width),o=Math.max(o,i.height)}m.height=o,s.push(m),g+=o+2*i,p+=1}));let b=4;c&&(b+=2),u&&(b+=2);const w=l+h+f+d,y={width:Math.max(MC.minEntityWidth,Math.max(o.width+2*MC.entityPadding,w+r*b)),height:n.length>0?g:Math.max(MC.minEntityHeight,o.height+2*MC.entityPadding)};if(n.length>0){const n=Math.max(0,(y.width-w-r*b)/(b/2));e.attr("transform","translate("+y.width/2+","+(i+o.height/2)+")");let a=o.height+2*i,g="attributeBoxOdd";s.forEach((e=>{const o=a+i+e.height/2;e.tn.attr("transform","translate("+r+","+o+")");const s=t.insert("rect","#"+e.tn.node().id).classed(`er ${g}`,!0).attr("x",0).attr("y",a).attr("width",l+2*r+n).attr("height",e.height+2*i),p=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));e.nn.attr("transform","translate("+(p+r)+","+o+")");const b=t.insert("rect","#"+e.nn.node().id).classed(`er ${g}`,!0).attr("x",p).attr("y",a).attr("width",h+2*r+n).attr("height",e.height+2*i);let w=parseFloat(b.attr("x"))+parseFloat(b.attr("width"));if(c){e.kn.attr("transform","translate("+(w+r)+","+o+")");const s=t.insert("rect","#"+e.kn.node().id).classed(`er ${g}`,!0).attr("x",w).attr("y",a).attr("width",f+2*r+n).attr("height",e.height+2*i);w=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}u&&(e.cn.attr("transform","translate("+(w+r)+","+o+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${g}`,"true").attr("x",w).attr("y",a).attr("width",d+2*r+n).attr("height",e.height+2*i)),a+=e.height+2*i,g="attributeBoxOdd"===g?"attributeBoxEven":"attributeBoxOdd"}))}else y.height=Math.max(MC.minEntityHeight,g),e.attr("transform","translate("+y.width/2+","+y.height/2+")");return y})(o,c,e[r].attributes),h=o.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",u).attr("height",l).node().getBBox();n.setNode(a,{width:h.width,height:h.height,shape:"rect",id:a})})),i}(s,i.db.getEntities(),c),l=function(t,e){return t.forEach((function(t){e.setEdge(IC.get(t.entityA),IC.get(t.entityB),{relationship:t},LC(t))})),t}(i.db.getRelationships(),c);a_(c),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))}(s,c),l.forEach((function(t){!function(t,e,n,i,r){OC++;const a=n.edge(IC.get(e.entityA),IC.get(e.entityB),LC(e)),o=Vo().x((function(t){return t.x})).y((function(t){return t.y})).curve(is),s=t.insert("path","#"+i).classed("er relationshipLine",!0).attr("d",o(a.points)).style("stroke",MC.stroke).style("fill","none");e.relSpec.relType===r.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");let c="";switch(MC.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),e.relSpec.cardA){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+kC.ZERO_OR_ONE_END+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+kC.ZERO_OR_MORE_END+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+kC.ONE_OR_MORE_END+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+kC.ONLY_ONE_END+")");break;case r.db.Cardinality.MD_PARENT:s.attr("marker-end","url("+c+"#"+kC.MD_PARENT_END+")")}switch(e.relSpec.cardB){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+kC.ZERO_OR_ONE_START+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+kC.ZERO_OR_MORE_START+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+kC.ONE_OR_MORE_START+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+kC.ONLY_ONE_START+")");break;case r.db.Cardinality.MD_PARENT:s.attr("marker-start","url("+c+"#"+kC.MD_PARENT_START+")")}const u=s.node().getTotalLength(),l=s.node().getPointAtLength(.5*u),h="rel"+OC,f=t.append("text").classed("er relationshipLabel",!0).attr("id",h).attr("x",l.x).attr("y",l.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",ch().fontFamily).style("font-size",MC.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+h).classed("er relationshipLabelBox",!0).attr("x",l.x-f.width/2).attr("y",l.y-f.height/2).attr("width",f.width).attr("height",f.height)}(s,t,c,u,i)}));const h=MC.diagramPadding;od.insertTitle(s,"entityTitleText",MC.titleTopMargin,i.db.getDiagramTitle());const f=s.node().getBBox(),d=f.width+2*h,g=f.height+2*h;ph(s,g,d,MC.useMaxWidth),s.attr("viewBox",`${f.x-h} ${f.y-h} ${d} ${g}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`}},Symbol.toStringTag,{value:"Module"}));var BC=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,7],i=[1,5],r=[1,9],a=[1,6],o=[2,6],s=[1,16],c=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],u=[8,14,20,22,24,25,27,29,32,37,40],l=[8,13,14,20,22,24,25,27,29,32,37,40],h=[1,26],f=[6,8,14,50,55],d=[8,14,55],g=[1,53],p=[1,52],b=[8,14,30,33,35,38,55],w=[1,67],y=[1,68],m=[1,69],v=[8,14,33,35,42,55],x={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 3:return a[s];case 4:return a[s-1];case 5:return i.setDirection(a[s-3]),a[s-1];case 7:i.setOptions(a[s-1]),this.$=a[s];break;case 8:a[s-1]+=a[s],this.$=a[s-1];break;case 10:this.$=[];break;case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 12:this.$=a[s-1];break;case 17:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:i.checkout(a[s]);break;case 23:i.branch(a[s]);break;case 24:i.branch(a[s-2],a[s]);break;case 25:i.cherryPick(a[s],"",void 0);break;case 26:i.cherryPick(a[s-2],"",a[s]);break;case 27:case 29:i.cherryPick(a[s-2],"","");break;case 28:i.cherryPick(a[s],"",a[s-2]);break;case 30:i.merge(a[s],"","","");break;case 31:i.merge(a[s-2],a[s],"","");break;case 32:i.merge(a[s-2],"",a[s],"");break;case 33:i.merge(a[s-2],"","",a[s]);break;case 34:i.merge(a[s-4],a[s],"",a[s-2]);break;case 35:i.merge(a[s-4],"",a[s],a[s-2]);break;case 36:i.merge(a[s-4],"",a[s-2],a[s]);break;case 37:i.merge(a[s-4],a[s-2],a[s],"");break;case 38:i.merge(a[s-4],a[s-2],"",a[s]);break;case 39:i.merge(a[s-4],a[s],a[s-2],"");break;case 40:i.merge(a[s-6],a[s-4],a[s-2],a[s]);break;case 41:i.merge(a[s-6],a[s],a[s-4],a[s-2]);break;case 42:i.merge(a[s-6],a[s-4],a[s],a[s-2]);break;case 43:i.merge(a[s-6],a[s-2],a[s-4],a[s]);break;case 44:i.merge(a[s-6],a[s],a[s-2],a[s-4]);break;case 45:i.merge(a[s-6],a[s-2],a[s],a[s-4]);break;case 46:i.commit(a[s]);break;case 47:i.commit("","",i.commitType.NORMAL,a[s]);break;case 48:i.commit("","",a[s],"");break;case 49:i.commit("","",a[s],a[s-2]);break;case 50:i.commit("","",a[s-2],a[s]);break;case 51:i.commit("",a[s],i.commitType.NORMAL,"");break;case 52:i.commit("",a[s-2],i.commitType.NORMAL,a[s]);break;case 53:i.commit("",a[s],i.commitType.NORMAL,a[s-2]);break;case 54:i.commit("",a[s-2],a[s],"");break;case 55:i.commit("",a[s],a[s-2],"");break;case 56:i.commit("",a[s-4],a[s-2],a[s]);break;case 57:i.commit("",a[s-4],a[s],a[s-2]);break;case 58:i.commit("",a[s-2],a[s-4],a[s]);break;case 59:i.commit("",a[s],a[s-4],a[s-2]);break;case 60:i.commit("",a[s],a[s-2],a[s-4]);break;case 61:i.commit("",a[s-2],a[s],a[s-4]);break;case 62:i.commit(a[s],"",i.commitType.NORMAL,"");break;case 63:i.commit(a[s],"",i.commitType.NORMAL,a[s-2]);break;case 64:i.commit(a[s-2],"",i.commitType.NORMAL,a[s]);break;case 65:i.commit(a[s-2],"",a[s],"");break;case 66:i.commit(a[s],"",a[s-2],"");break;case 67:i.commit(a[s],a[s-2],i.commitType.NORMAL,"");break;case 68:i.commit(a[s-2],a[s],i.commitType.NORMAL,"");break;case 69:i.commit(a[s-4],"",a[s-2],a[s]);break;case 70:i.commit(a[s-4],"",a[s],a[s-2]);break;case 71:i.commit(a[s-2],"",a[s-4],a[s]);break;case 72:i.commit(a[s],"",a[s-4],a[s-2]);break;case 73:i.commit(a[s],"",a[s-2],a[s-4]);break;case 74:i.commit(a[s-2],"",a[s],a[s-4]);break;case 75:i.commit(a[s-4],a[s],a[s-2],"");break;case 76:i.commit(a[s-4],a[s-2],a[s],"");break;case 77:i.commit(a[s-2],a[s],a[s-4],"");break;case 78:i.commit(a[s],a[s-2],a[s-4],"");break;case 79:i.commit(a[s],a[s-4],a[s-2],"");break;case 80:i.commit(a[s-2],a[s-4],a[s],"");break;case 81:i.commit(a[s-4],a[s],i.commitType.NORMAL,a[s-2]);break;case 82:i.commit(a[s-4],a[s-2],i.commitType.NORMAL,a[s]);break;case 83:i.commit(a[s-2],a[s],i.commitType.NORMAL,a[s-4]);break;case 84:i.commit(a[s],a[s-2],i.commitType.NORMAL,a[s-4]);break;case 85:i.commit(a[s],a[s-4],i.commitType.NORMAL,a[s-2]);break;case 86:i.commit(a[s-2],a[s-4],i.commitType.NORMAL,a[s]);break;case 87:i.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 88:i.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 89:i.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 90:i.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 91:i.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 92:i.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 93:i.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 94:i.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 95:i.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 96:i.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 97:i.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 98:i.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 99:i.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 100:i.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 101:i.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 102:i.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 103:i.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 104:i.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 105:i.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 106:i.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 107:i.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 108:i.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 109:i.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 110:i.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 111:this.$="";break;case 112:this.$=a[s];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(a[s],"type_directive");break;case 120:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:a},{1:[3]},{3:10,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:a},{3:11,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:a},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,124]),t(c,[2,125]),t(c,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},t(u,[2,10],{12:22,13:[1,23]}),t(l,[2,9]),{9:[1,25],48:24,53:h},t([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},t(l,[2,8]),t(f,[2,116]),{49:45,52:[1,46]},t(f,[2,121]),{1:[2,4]},{8:[1,47]},t(u,[2,11]),{4:48,8:n,14:i,55:a},t(u,[2,13]),t(d,[2,14]),t(d,[2,15]),t(d,[2,16]),{21:[1,49]},{23:[1,50]},t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),{28:51,34:g,54:p},t(d,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:g,54:p},{33:[1,61],35:[1,62]},{28:63,34:g,54:p},{48:64,53:h},{53:[2,120]},{1:[2,5]},t(u,[2,12]),t(d,[2,17]),t(d,[2,18]),t(d,[2,22]),t(b,[2,122]),t(b,[2,123]),t(d,[2,46]),{34:[1,65]},{39:66,43:w,44:y,45:m},{34:[1,70]},{34:[1,71]},t(d,[2,112]),t(d,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},t(d,[2,23],{30:[1,78]}),t(f,[2,117]),t(d,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),t(d,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),t(v,[2,113]),t(v,[2,114]),t(v,[2,115]),t(d,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),t(d,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:w,44:y,45:m},{34:[1,93]},t(d,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:w,44:y,45:m},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:w,44:y,45:m},{34:[1,106]},{34:[1,107]},{39:108,43:w,44:y,45:m},{34:[1,109]},t(d,[2,31],{35:[1,111],38:[1,110]}),t(d,[2,32],{33:[1,113],35:[1,112]}),t(d,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},t(d,[2,24]),t(d,[2,49],{33:[1,120],42:[1,121]}),t(d,[2,53],{38:[1,122],42:[1,123]}),t(d,[2,63],{33:[1,125],38:[1,124]}),t(d,[2,50],{33:[1,126],42:[1,127]}),t(d,[2,55],{35:[1,128],42:[1,129]}),t(d,[2,66],{33:[1,131],35:[1,130]}),t(d,[2,52],{38:[1,132],42:[1,133]}),t(d,[2,54],{35:[1,134],42:[1,135]}),t(d,[2,67],{35:[1,137],38:[1,136]}),t(d,[2,64],{33:[1,139],38:[1,138]}),t(d,[2,65],{33:[1,141],35:[1,140]}),t(d,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:w,44:y,45:m},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:w,44:y,45:m},t(d,[2,26]),t(d,[2,27]),t(d,[2,28]),t(d,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:w,44:y,45:m},{34:[1,153]},{39:154,43:w,44:y,45:m},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:w,44:y,45:m},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:w,44:y,45:m},{34:[1,167]},{39:168,43:w,44:y,45:m},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:w,44:y,45:m},{34:[1,173]},t(d,[2,37],{35:[1,174]}),t(d,[2,38],{38:[1,175]}),t(d,[2,36],{33:[1,176]}),t(d,[2,39],{35:[1,177]}),t(d,[2,34],{38:[1,178]}),t(d,[2,35],{33:[1,179]}),t(d,[2,60],{42:[1,180]}),t(d,[2,73],{33:[1,181]}),t(d,[2,61],{42:[1,182]}),t(d,[2,84],{38:[1,183]}),t(d,[2,74],{33:[1,184]}),t(d,[2,83],{38:[1,185]}),t(d,[2,59],{42:[1,186]}),t(d,[2,72],{33:[1,187]}),t(d,[2,58],{42:[1,188]}),t(d,[2,78],{35:[1,189]}),t(d,[2,71],{33:[1,190]}),t(d,[2,77],{35:[1,191]}),t(d,[2,57],{42:[1,192]}),t(d,[2,85],{38:[1,193]}),t(d,[2,56],{42:[1,194]}),t(d,[2,79],{35:[1,195]}),t(d,[2,80],{35:[1,196]}),t(d,[2,86],{38:[1,197]}),t(d,[2,70],{33:[1,198]}),t(d,[2,81],{38:[1,199]}),t(d,[2,69],{33:[1,200]}),t(d,[2,75],{35:[1,201]}),t(d,[2,76],{35:[1,202]}),t(d,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:w,44:y,45:m},{34:[1,206]},{34:[1,207]},{39:208,43:w,44:y,45:m},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:w,44:y,45:m},{34:[1,214]},{39:215,43:w,44:y,45:m},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:w,44:y,45:m},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:w,44:y,45:m},{34:[1,228]},{39:229,43:w,44:y,45:m},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:w,44:y,45:m},t(d,[2,40]),t(d,[2,42]),t(d,[2,41]),t(d,[2,43]),t(d,[2,45]),t(d,[2,44]),t(d,[2,101]),t(d,[2,102]),t(d,[2,99]),t(d,[2,100]),t(d,[2,104]),t(d,[2,103]),t(d,[2,108]),t(d,[2,107]),t(d,[2,106]),t(d,[2,105]),t(d,[2,110]),t(d,[2,109]),t(d,[2,98]),t(d,[2,97]),t(d,[2,96]),t(d,[2,95]),t(d,[2,93]),t(d,[2,94]),t(d,[2,92]),t(d,[2,91]),t(d,[2,90]),t(d,[2,89]),t(d,[2,87]),t(d,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};function _(){this.yy={}}return x.lexer=k,_.prototype=x,x.Parser=_,new _}();BC.parser=BC;const FC=BC;let jC=ch().gitGraph.mainBranchName,RC=ch().gitGraph.mainBranchOrder,$C={},zC=null,qC={};qC[jC]={name:jC,order:RC};let HC={};HC[jC]=zC;let UC=jC,GC="LR",YC=0;function KC(){return Wf({length:7})}let WC={};const XC=function(t){if(t=Bc.sanitizeText(t,ch()),void 0===HC[t]){let e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}{UC=t;const e=HC[UC];zC=$C[e]}};function VC(t,e,n){const i=t.indexOf(e);-1===i?t.push(n):t.splice(i,1,n)}function QC(t){const e=t.reduce(((t,e)=>t.seq>e.seq?t:e),t[0]);let n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));const i=[n,e.id,e.seq];for(let t in HC)HC[t]===e.id&&i.push(t);if(o.debug(i.join(" ")),e.parents&&2==e.parents.length){const n=$C[e.parents[0]];VC(t,e,n),t.push($C[e.parents[1]])}else{if(0==e.parents.length)return;{const n=$C[e.parents];VC(t,e,n)}}t=function(t,e){const n=Object.create(null);return t.reduce(((t,e)=>{const i=(t=>t.id)(e);return n[i]||(n[i]=!0,t.push(e)),t}),[])}(t),QC(t)}const ZC=function(){const t=Object.keys($C).map((function(t){return $C[t]}));return t.forEach((function(t){o.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},JC={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},tS={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().gitGraph,setDirection:function(t){GC=t},setOptions:function(t){o.debug("options str",t),t=(t=t&&t.trim())||"{}";try{WC=JSON.parse(t)}catch(t){o.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return WC},commit:function(t,e,n,i){o.debug("Entering commit:",t,e,n,i),e=Bc.sanitizeText(e,ch()),t=Bc.sanitizeText(t,ch()),i=Bc.sanitizeText(i,ch());const r={id:e||YC+"-"+KC(),message:t,seq:YC++,type:n||JC.NORMAL,tag:i||"",parents:null==zC?[]:[zC.id],branch:UC};zC=r,$C[r.id]=r,HC[UC]=r.id,o.debug("in pushCommit "+r.id)},branch:function(t,e){if(t=Bc.sanitizeText(t,ch()),void 0!==HC[t]){let e=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+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}HC[t]=null!=zC?zC.id:null,qC[t]={name:t,order:e?parseInt(e,10):null},XC(t),o.debug("in createBranch")},merge:function(t,e,n,i){t=Bc.sanitizeText(t,ch()),e=Bc.sanitizeText(e,ch());const r=$C[HC[UC]],a=$C[HC[t]];if(UC===t){let e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(void 0===r||!r){let e=new Error('Incorrect usage of "merge". Current branch ('+UC+")has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},e}if(void 0===HC[t]){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},e}if(void 0===a||!a){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},e}if(r===a){let e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(e&&void 0!==$C[e]){let r=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw r.hash={text:"merge "+t+e+n+i,token:"merge "+t+e+n+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+i]},r}const s={id:e||YC+"-"+KC(),message:"merged branch "+t+" into "+UC,seq:YC++,parents:[null==zC?null:zC.id,HC[t]],branch:UC,type:JC.MERGE,customType:n,customId:!!e,tag:i||""};zC=s,$C[s.id]=s,HC[UC]=s.id,o.debug(HC),o.debug("in mergeBranch")},cherryPick:function(t,e,n){if(o.debug("Entering cherryPick:",t,e,n),t=Bc.sanitizeText(t,ch()),e=Bc.sanitizeText(e,ch()),n=Bc.sanitizeText(n,ch()),!t||void 0===$C[t]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let i=$C[t],r=i.branch;if(i.type===JC.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!e||void 0===$C[e]){if(r===UC){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const a=$C[HC[UC]];if(void 0===a||!a){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+UC+")has no commits");throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const s={id:YC+"-"+KC(),message:"cherry-picked "+i+" into "+UC,seq:YC++,parents:[null==zC?null:zC.id,i.id],branch:UC,type:JC.CHERRY_PICK,tag:n??"cherry-pick:"+i.id};zC=s,$C[s.id]=s,HC[UC]=s.id,o.debug(HC),o.debug("in cherryPick")}},checkout:XC,prettyPrint:function(){o.debug($C),QC([ZC()[0]])},clear:function(){$C={},zC=null;let t=ch().gitGraph.mainBranchName,e=ch().gitGraph.mainBranchOrder;HC={},HC[t]=null,qC={},qC[t]={name:t,order:e},UC=t,YC=0,kh()},getBranchesAsObjArray:function(){return Object.values(qC).map(((t,e)=>null!==t.order?t:{...t,order:parseFloat(`0.${e}`,10)})).sort(((t,e)=>t.order-e.order)).map((({name:t})=>({name:t})))},getBranches:function(){return HC},getCommits:function(){return $C},getCommitsArray:ZC,getCurrentBranch:function(){return UC},getDirection:function(){return GC},getHead:function(){return zC},setAccTitle:_h,getAccTitle:Eh,getAccDescription:Ch,setAccDescription:Th,setDiagramTitle:Sh,getDiagramTitle:Ah,commitType:JC};let eS={};let nS={},iS={},rS=[],aS=0,oS="LR";const sS=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof t?t.split(/\\n|\n|/gi):Array.isArray(t)?t:[];for(const t of n){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=t.trim(),e.appendChild(n)}return e},cS=(t,e,n)=>{const i=Ph().gitGraph,r=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let o=0;"TB"===oS&&(o=30),Object.keys(e).sort(((t,n)=>e[t].seq-e[n].seq)).forEach((t=>{const s=e[t],c="TB"===oS?o+10:nS[s.branch].pos,u="TB"===oS?nS[s.branch].pos:o+10;if(n){let t,e=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(e){case 0:default:t="commit-normal";break;case 1:t="commit-reverse";break;case 2:t="commit-highlight";break;case 3:t="commit-merge";break;case 4:t="commit-cherry-pick"}if(2===e){const e=r.append("rect");e.attr("x",u-10),e.attr("y",c-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${s.id} commit-highlight${nS[s.branch].index%8} ${t}-outer`),r.append("rect").attr("x",u-6).attr("y",c-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${nS[s.branch].index%8} ${t}-inner`)}else if(4===e)r.append("circle").attr("cx",u).attr("cy",c).attr("r",10).attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",u-3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",u+3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",u+3).attr("y1",c+1).attr("x2",u).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",u-3).attr("y1",c+1).attr("x2",u).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`);else{const n=r.append("circle");if(n.attr("cx",u),n.attr("cy",c),n.attr("r",3===s.type?9:10),n.attr("class",`commit ${s.id} commit${nS[s.branch].index%8}`),3===e){const e=r.append("circle");e.attr("cx",u),e.attr("cy",c),e.attr("r",6),e.attr("class",`commit ${t} ${s.id} commit${nS[s.branch].index%8}`)}1===e&&r.append("path").attr("d",`M ${u-5},${c-5}L${u+5},${c+5}M${u-5},${c+5}L${u+5},${c-5}`).attr("class",`commit ${t} ${s.id} commit${nS[s.branch].index%8}`)}}if(iS[s.id]="TB"===oS?{x:u,y:o+10}:{x:o+10,y:c},n){if(4!==s.type&&(s.customId&&3===s.type||3!==s.type)&&i.showCommitLabel){const t=a.append("g"),e=t.insert("rect").attr("class","commit-label-bkg"),n=t.append("text").attr("x",o).attr("y",c+25).attr("class","commit-label").text(s.id);let r=n.node().getBBox();if(e.attr("x",o+10-r.width/2-2).attr("y",c+13.5).attr("width",r.width+4).attr("height",r.height+4),"TB"===oS&&(e.attr("x",u-(r.width+16+5)).attr("y",c-12),n.attr("x",u-(r.width+16)).attr("y",c+r.height-12)),"TB"!==oS&&n.attr("x",o+10-r.width/2),i.rotateCommitLabel)if("TB"===oS)n.attr("transform","rotate(-45, "+u+", "+c+")"),e.attr("transform","rotate(-45, "+u+", "+c+")");else{let e=-7.5-(r.width+10)/25*9.5,n=10+r.width/25*8.5;t.attr("transform","translate("+e+", "+n+") rotate(-45, "+o+", "+c+")")}}if(s.tag){const t=a.insert("polygon"),e=a.append("circle"),n=a.append("text").attr("y",c-16).attr("class","tag-label").text(s.tag);let i=n.node().getBBox();n.attr("x",o+10-i.width/2);const r=i.height/2,l=c-19.2;t.attr("class","tag-label-bkg").attr("points",`\n ${o-i.width/2-2},${l+2}\n ${o-i.width/2-2},${l-2}\n ${o+10-i.width/2-4},${l-r-2}\n ${o+10+i.width/2+4},${l-r-2}\n ${o+10+i.width/2+4},${l+r+2}\n ${o+10-i.width/2-4},${l+r+2}`),e.attr("cx",o-i.width/2+2).attr("cy",l).attr("r",1.5).attr("class","tag-hole"),"TB"===oS&&(t.attr("class","tag-label-bkg").attr("points",`\n ${u},${o+2}\n ${u},${o-2}\n ${u+10},${o-r-2}\n ${u+10+i.width+4},${o-r-2}\n ${u+10+i.width+4},${o+r+2}\n ${u+10},${o+r+2}`).attr("transform","translate(12,12) rotate(45, "+u+","+o+")"),e.attr("cx",u+2).attr("cy",o).attr("transform","translate(12,12) rotate(45, "+u+","+o+")"),n.attr("x",u+5).attr("y",o+3).attr("transform","translate(14,14) rotate(45, "+u+","+o+")"))}}o+=50,o>aS&&(aS=o)}))},uS=(t,e,n=0)=>{const i=t+Math.abs(t-e)/2;if(n>5)return i;if(rS.every((t=>Math.abs(t-i)>=10)))return rS.push(i),i;const r=Math.abs(t-e);return uS(t,e-r/5,n+1)},lS=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:FC,db:tS,renderer:{draw:function(t,e,n,i){nS={},iS={},eS={},aS=0,rS=[],oS="LR";const r=Ph(),a=r.gitGraph;o.debug("in gitgraph renderer",t+"\n","id:",e,n),eS=i.db.getCommits();const s=i.db.getBranchesAsObjArray();oS=i.db.getDirection();const c=ae(`[id="${e}"]`);let u=0;s.forEach(((t,e)=>{const n=sS(t.name),i=c.append("g"),r=i.insert("g").attr("class","branchLabel"),o=r.insert("g").attr("class","label branch-label");o.node().appendChild(n);let s=n.getBBox();nS[t.name]={pos:u,index:e},u+=50+(a.rotateCommitLabel?40:0)+("TB"===oS?s.width/2:0),o.remove(),r.remove(),i.remove()})),cS(c,eS,!1),a.showBranches&&((t,e)=>{const n=Ph().gitGraph,i=t.append("g");e.forEach(((t,e)=>{const r=e%8,a=nS[t.name].pos,o=i.append("line");o.attr("x1",0),o.attr("y1",a),o.attr("x2",aS),o.attr("y2",a),o.attr("class","branch branch"+r),"TB"===oS&&(o.attr("y1",30),o.attr("x1",a),o.attr("y2",aS),o.attr("x2",a)),rS.push(a);let s=t.name;const c=sS(s),u=i.insert("rect"),l=i.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+r);l.node().appendChild(c);let h=c.getBBox();u.attr("class","branchLabelBkg label"+r).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),l.attr("transform","translate("+(-h.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(a-h.height/2-1)+")"),"TB"===oS&&(u.attr("x",a-h.width/2-10).attr("y",0),l.attr("transform","translate("+(a-h.width/2-5)+", 0)")),"TB"!==oS&&u.attr("transform","translate(-19, "+(a-h.height/2)+")")}))})(c,s),((t,e)=>{const n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const i=e[t];i.parents&&i.parents.length>0&&i.parents.forEach((t=>{((t,e,n,i)=>{const r=iS[e.id],a=iS[n.id],o=((t,e,n)=>Object.keys(n).filter((i=>n[i].branch===e.branch&&n[i].seq>t.seq&&n[i].seq0)(e,n,i);let s,c="",u="",l=0,h=0,f=nS[n.branch].index;if(o){c="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",l=10,h=10,f=nS[n.branch].index;const t=r.ya.x&&(c="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",l=20,h=20,f=nS[e.branch].index,s=`M ${r.x} ${r.y} L ${r.x} ${a.y-l} ${u} ${r.x-h} ${a.y} L ${a.x} ${a.y}`),r.x===a.x&&(f=nS[e.branch].index,s=`M ${r.x} ${r.y} L ${r.x+l} ${r.y} ${c} ${r.x+h} ${a.y+l} L ${a.x} ${a.y}`)):(r.ya.y&&(c="A 20 20, 0, 0, 0,",l=20,h=20,f=nS[e.branch].index,s=`M ${r.x} ${r.y} L ${a.x-l} ${r.y} ${c} ${a.x} ${r.y-h} L ${a.x} ${a.y}`),r.y===a.y&&(f=nS[e.branch].index,s=`M ${r.x} ${r.y} L ${r.x} ${a.y-l} ${c} ${r.x+h} ${a.y} L ${a.x} ${a.y}`));t.append("path").attr("d",s).attr("class","arrow arrow"+f%8)})(n,e[t],i,e)}))}))})(c,eS),cS(c,eS,!0),od.insertTitle(c,"gitTitleText",a.titleTopMargin,i.db.getDiagramTitle()),Fh(void 0,c,a.diagramPadding,a.useMaxWidth??r.useMaxWidth)}},styles:t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((e=>`\n .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${e} { fill: ${t["git"+e]}; }\n .arrow${e} { stroke: ${t["git"+e]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`}},Symbol.toStringTag,{value:"Module"}));var hS=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[7,9,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,33,34,36,43,48],r=[1,32],a=[1,33],o=[1,34],s=[1,35],c=[1,36],u=[1,37],l=[1,38],h=[1,15],f=[1,16],d=[1,17],g=[1,18],p=[1,19],b=[1,20],w=[1,21],y=[1,22],m=[1,24],v=[1,25],x=[1,26],k=[1,27],_=[1,28],E=[1,30],T=[1,39],C=[1,42],S=[5,7,9,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,33,34,36,43,48],A={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,weekday:12,weekday_monday:13,weekday_tuesday:14,weekday_wednesday:15,weekday_thursday:16,weekday_friday:17,weekday_saturday:18,weekday_sunday:19,dateFormat:20,inclusiveEndDates:21,topAxis:22,axisFormat:23,tickInterval:24,excludes:25,includes:26,todayMarker:27,title:28,acc_title:29,acc_title_value:30,acc_descr:31,acc_descr_value:32,acc_descr_multiline_value:33,section:34,clickStatement:35,taskTxt:36,taskData:37,openDirective:38,typeDirective:39,closeDirective:40,":":41,argDirective:42,click:43,callbackname:44,callbackargs:45,href:46,clickStatementDebug:47,open_directive:48,type_directive:49,arg_directive:50,close_directive:51,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",13:"weekday_monday",14:"weekday_tuesday",15:"weekday_wednesday",16:"weekday_thursday",17:"weekday_friday",18:"weekday_saturday",19:"weekday_sunday",20:"dateFormat",21:"inclusiveEndDates",22:"topAxis",23:"axisFormat",24:"tickInterval",25:"excludes",26:"includes",27:"todayMarker",28:"title",29:"acc_title",30:"acc_title_value",31:"acc_descr",32:"acc_descr_value",33:"acc_descr_multiline_value",34:"section",36:"taskTxt",37:"taskData",41:":",43:"click",44:"callbackname",45:"callbackargs",46:"href",48:"open_directive",49:"type_directive",50:"arg_directive",51:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[12,1],[12,1],[12,1],[12,1],[12,1],[12,1],[12,1],[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],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[35,2],[35,3],[35,3],[35,4],[35,3],[35,4],[35,2],[47,2],[47,3],[47,3],[47,4],[47,3],[47,4],[47,2],[38,1],[39,1],[42,1],[40,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:i.setWeekday("monday");break;case 10:i.setWeekday("tuesday");break;case 11:i.setWeekday("wednesday");break;case 12:i.setWeekday("thursday");break;case 13:i.setWeekday("friday");break;case 14:i.setWeekday("saturday");break;case 15:i.setWeekday("sunday");break;case 16:i.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 17:i.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 18:i.TopAxis(),this.$=a[s].substr(8);break;case 19:i.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 20:i.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 21:i.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 22:i.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:i.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 25:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 26:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 27:case 28:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 29:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 31:i.addTask(a[s-1],a[s]),this.$="task";break;case 35:this.$=a[s-1],i.setClickEvent(a[s-1],a[s],null);break;case 36:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 37:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],null),i.setLink(a[s-2],a[s]);break;case 38:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setLink(a[s-3],a[s]);break;case 39:this.$=a[s-2],i.setClickEvent(a[s-2],a[s],null),i.setLink(a[s-2],a[s-1]);break;case 40:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-1],a[s]),i.setLink(a[s-3],a[s-2]);break;case 41:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 42:case 48:this.$=a[s-1]+" "+a[s];break;case 43:case 44:case 46:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 45:case 47:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 49:i.parseDirective("%%{","open_directive");break;case 50:i.parseDirective(a[s],"type_directive");break;case 51:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 52:i.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,38:4,48:n},{1:[3]},{3:6,4:2,5:e,38:4,48:n},t(i,[2,3],{6:7}),{39:8,49:[1,9]},{49:[2,49]},{1:[2,1]},{4:31,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:23,13:r,14:a,15:o,16:s,17:c,18:u,19:l,20:h,21:f,22:d,23:g,24:p,25:b,26:w,27:y,28:m,29:v,31:x,33:k,34:_,35:29,36:E,38:4,43:T,48:n},{40:40,41:[1,41],51:C},t([41,51],[2,50]),t(i,[2,8],{1:[2,2]}),t(i,[2,4]),{4:31,10:43,12:23,13:r,14:a,15:o,16:s,17:c,18:u,19:l,20:h,21:f,22:d,23:g,24:p,25:b,26:w,27:y,28:m,29:v,31:x,33:k,34:_,35:29,36:E,38:4,43:T,48:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),{30:[1,44]},{32:[1,45]},t(i,[2,28]),t(i,[2,29]),t(i,[2,30]),{37:[1,46]},t(i,[2,32]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),{44:[1,47],46:[1,48]},{11:[1,49]},{42:50,50:[1,51]},{11:[2,52]},t(i,[2,5]),t(i,[2,26]),t(i,[2,27]),t(i,[2,31]),t(i,[2,35],{45:[1,52],46:[1,53]}),t(i,[2,41],{44:[1,54]}),t(S,[2,33]),{40:55,51:C},{51:[2,51]},t(i,[2,36],{46:[1,56]}),t(i,[2,37]),t(i,[2,39],{45:[1,57]}),{11:[1,58]},t(i,[2,38]),t(i,[2,40]),t(S,[2,34])],defaultActions:{5:[2,49],6:[2,1],42:[2,52],51:[2,51]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),48;case 1:return this.begin("type_directive"),49;case 2:return this.popState(),this.begin("arg_directive"),41;case 3:return this.popState(),this.popState(),51;case 4:return 50;case 5:return this.begin("acc_title"),29;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),31;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 46;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 44;case 27:return 45;case 28:this.begin("click");break;case 30:return 43;case 31:return 5;case 32:return 20;case 33:return 21;case 34:return 22;case 35:return 23;case 36:return 24;case 37:return 26;case 38:return 25;case 39:return 27;case 40:return 13;case 41:return 14;case 42:return 15;case 43:return 16;case 44:return 17;case 45:return 18;case 46:return 19;case 47:return"date";case 48:return 28;case 49:return"accDescription";case 50:return 34;case 51:return 36;case 52:return 37;case 53:return 41;case 54:return 7;case 55:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:\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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};function I(){this.yy={}}return A.lexer=M,I.prototype=A,A.Parser=I,new I}();hS.parser=hS;const fS=hS;var dS={exports:{}};!function(t,e){var n;t.exports=(n="day",function(t,e,i){var r=function(t){return t.add(4-t.isoWeekday(),n)},a=e.prototype;a.isoWeekYear=function(){return r(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),n);var e,a,o,s=r(this),c=(e=this.isoWeekYear(),o=4-(a=(this.$u?i.utc:i)().year(e).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,n));return s.diff(c,"week")+1},a.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var o=a.startOf;a.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(t,e)}})}(dS);const gS=n(dS.exports);var pS={exports:{}};!function(t,e){t.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t||"Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],u=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},l=function(t,e){var n,i=a.meridiem;if(i){for(var r=1;r<=24;r+=1)if(t.indexOf(i(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[r,function(t){this.afternoon=l(t,!1)}],a:[r,function(t){this.afternoon=l(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=o(t)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};return function(n,i,r){r.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=i.prototype,c=s.parse;s.parse=function(n){var i=n.date,o=n.utc,s=n.args;this.$u=o;var u=s[1];if("string"==typeof u){var l=!0===s[2],f=!0===s[3],d=l||f,g=s[2];f&&(g=s[2]),a=this.$locale(),!l&&g&&(a=r.Ls[g]),this.$d=function(n,i,r){try{if(["x","X"].indexOf(i)>-1)return new Date(("X"===i?1e3:1)*n);var o=function(n){var i,r;i=n,r=a&&a.formats;for(var o=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var a=i&&i.toUpperCase();return n||r[i]||t[i]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=o.length,c=0;c0?c-1:b.getMonth());var v=l||0,x=f||0,k=d||0,_=g||0;return p?new Date(Date.UTC(y,m,w,v,x,k,_+60*p.offset*1e3)):r?new Date(Date.UTC(y,m,w,v,x,k,_)):new Date(y,m,w,v,x,k,_)}catch{return new Date("")}}(i,u,o),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),d&&i!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var p=u.length,b=1;b<=p;b+=1){s[1]=u[b-1];var w=r.apply(this,s);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}b===p&&(this.$d=new Date(""))}else c.call(this,n)}}}()}(pS);const bS=n(pS.exports);var wS={exports:{}};!function(t,e){t.exports=function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var r=this.$utils(),a=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return r.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return r.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return r.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(a)}}}(wS);const yS=n(wS.exports);r.extend(gS),r.extend(bS),r.extend(yS);let mS,vS="",xS="",kS="",_S=[],ES=[],TS={},CS=[],SS=[],AS="",MS="";const IS=["active","done","crit","milestone"];let LS=[],OS=!1,DS=!1,NS="sunday",PS=0;const BS=function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase()))||n.includes(t.format(e.trim())))},FS=function(t,e,n,i){if(!n.length||t.manualEndTime)return;let a,o;a=t.startTime instanceof Date?r(t.startTime):r(t.startTime,e,!0),a=a.add(1,"d"),o=t.endTime instanceof Date?r(t.endTime):r(t.endTime,e,!0);const[s,c]=jS(a,o,e,n,i);t.endTime=s.toDate(),t.renderEndTime=c},jS=function(t,e,n,i,r){let a=!1,o=null;for(;t<=e;)a||(o=e.toDate()),a=BS(t,n,i,r),a&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,o]},RS=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==i){let t=null;if(i[1].split(" ").forEach((function(e){let n=WS(e);void 0!==n&&(t?n.endTime>t.endTime&&(t=n):t=n)})),t)return t.endTime;{const t=new Date;return t.setHours(0,0,0,0),t}}let a=r(n,e.trim(),!0);if(a.isValid())return a.toDate();{o.debug("Invalid date:"+n),o.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},$S=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},zS=function(t,e,n,i=!1){n=n.trim();let a=r(n,e.trim(),!0);if(a.isValid())return i&&(a=a.add(1,"d")),a.toDate();let o=r(t);const[s,c]=$S(n);if(!Number.isNaN(s)){const t=o.add(s,c);t.isValid()&&(o=t)}return o.toDate()};let qS=0;const HS=function(t){return void 0===t?(qS+=1,"task"+qS):t};let US,GS,YS=[];const KS={},WS=function(t){const e=KS[t];return YS[e]},XS=function(){const t=function(t){const e=YS[t];let n="";switch(YS[t].raw.startTime.type){case"prevTaskEnd":{const t=WS(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=RS(0,vS,YS[t].raw.startTime.startData),n&&(YS[t].startTime=n)}return YS[t].startTime&&(YS[t].endTime=zS(YS[t].startTime,vS,YS[t].raw.endTime.data,OS),YS[t].endTime&&(YS[t].processed=!0,YS[t].manualEndTime=r(YS[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),FS(YS[t],vS,ES,_S))),YS[t].processed};let e=!0;for(const[n,i]of YS.entries())t(n),e=e&&i.processed;return e},VS=function(t,e){t.split(",").forEach((function(t){let n=WS(t);void 0!==n&&n.classes.push(e)}))},QS=function(t,e){LS.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))},ZS={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().gantt,clear:function(){CS=[],SS=[],AS="",LS=[],qS=0,US=void 0,GS=void 0,YS=[],vS="",xS="",MS="",mS=void 0,kS="",_S=[],ES=[],OS=!1,DS=!1,PS=0,TS={},kh(),NS="sunday"},setDateFormat:function(t){vS=t},getDateFormat:function(){return vS},enableInclusiveEndDates:function(){OS=!0},endDatesAreInclusive:function(){return OS},enableTopAxis:function(){DS=!0},topAxisEnabled:function(){return DS},setAxisFormat:function(t){xS=t},getAxisFormat:function(){return xS},setTickInterval:function(t){mS=t},getTickInterval:function(){return mS},setTodayMarker:function(t){kS=t},getTodayMarker:function(){return kS},setAccTitle:_h,getAccTitle:Eh,setDiagramTitle:Sh,getDiagramTitle:Ah,setDisplayMode:function(t){MS=t},getDisplayMode:function(){return MS},setAccDescription:Th,getAccDescription:Ch,addSection:function(t){AS=t,CS.push(t)},getSections:function(){return CS},getTasks:function(){let t=XS(),e=0;for(;!t&&e<10;)t=XS(),e++;return SS=YS,SS},addTask:function(t,e){const n={section:AS,type:AS,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};JS(i,r,IS);for(let t=0;t{od.runFunc(e,...i)}))}(t,e,n)})),VS(t,"clickable")},setLink:function(t,e){let n=e;"loose"!==ch().securityLevel&&(n=h(e)),t.split(",").forEach((function(t){void 0!==WS(t)&&(QS(t,(()=>{window.open(n,"_self")})),TS[t]=n)})),VS(t,"clickable")},getLinks:function(){return TS},bindFunctions:function(t){LS.forEach((function(e){e(t)}))},parseDuration:$S,isInvalidDate:BS,setWeekday:function(t){NS=t},getWeekday:function(){return NS}};function JS(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const r=new RegExp("^\\s*"+n+"\\s*$");t[0].match(r)&&(e[n]=!0,t.shift(1),i=!0)}))}const tA={monday:Sr,tuesday:Ar,wednesday:Mr,thursday:Ir,friday:Lr,saturday:Or,sunday:Cr},eA=(t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),r=0;for(const t of i)for(let i=0;i=n[i]){n[i]=t.endTime,t.order=i+e,i>r&&(r=i);break}return r};let nA;const iA=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:fS,db:ZS,renderer:{setConf:function(){o.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,i){const a=ch().gantt,o=ch().securityLevel;let s;"sandbox"===o&&(s=ae("#i"+e));const c=ae("sandbox"===o?s.nodes()[0].contentDocument.body:"body"),u="sandbox"===o?s.nodes()[0].contentDocument:document,l=u.getElementById(e);nA=l.parentElement.offsetWidth,void 0===nA&&(nA=1200),void 0!==a.useWidth&&(nA=a.useWidth);const h=i.db.getTasks();let f=[];for(const t of h)f.push(t.type);f=function(t){const e={},n=[];for(let i=0,r=t.length;ie.type===t)).length}l.setAttribute("viewBox","0 0 "+nA+" "+g);const p=c.select(`[id="${e}"]`),b=_o().domain([D(h,(function(t){return t.startTime})),O(h,(function(t){return t.endTime}))]).rangeRound([0,nA-a.leftPadding-a.rightPadding]);h.sort((function(t,e){const n=t.startTime,i=e.startTime;let r=0;return n>i?r=1:nt?Math.min(t,e):e),0),f=c.reduce(((t,{endTime:e})=>t?Math.max(t,e):e),0),d=i.db.getDateFormat();if(!h||!f)return;const g=[];let w=null,y=r(h);for(;y.valueOf()<=f;)i.db.isInvalidDate(y,d,u,l)?w?w.end=y:w={start:y,end:y}:w&&(g.push(w),w=null),y=y.add(1,"d");p.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return b(t.start)+n})).attr("y",a.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return b(e)-b(t.start)})).attr("height",s-e-a.gridLineStartPadding).attr("transform-origin",(function(e,i){return(b(e.start)+n+.5*(b(e.end)-b(e.start))).toString()+"px "+(i*t+.5*s).toString()+"px"})).attr("class","exclude-range")}(c,l,h,0,o,t,i.db.getExcludes(),i.db.getIncludes()),function(t,e,n,r){let o=function(t){return z(3,t)}(b).tickSize(-r+e+a.gridLineStartPadding).tickFormat(ea(i.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const s=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(null!==s){const t=s[1],e=s[2],n=i.db.getWeekday()||a.weekday;switch(e){case"minute":o.ticks(vr.every(t));break;case"hour":o.ticks(kr.every(t));break;case"day":o.ticks(Er.every(t));break;case"week":o.ticks(tA[n].every(t));break;case"month":o.ticks(Nr.every(t))}}if(p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(r-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let n=function(t){return z(1,t)}(b).tickSize(-r+e+a.gridLineStartPadding).tickFormat(ea(i.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(null!==s){const t=s[1],e=s[2],r=i.db.getWeekday()||a.weekday;switch(e){case"minute":n.ticks(vr.every(t));break;case"hour":n.ticks(kr.every(t));break;case"day":n.ticks(Er.every(t));break;case"week":n.ticks(tA[r].every(t));break;case"month":n.ticks(Nr.every(t))}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(h,l,0,o),function(t,n,r,o,s,c,u){const l=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(l).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+r-2})).attr("width",(function(){return u-a.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of f.entries())if(t.type===n)return"section section"+e%a.numberSectionStyles;return"section section0"}));const h=p.append("g").selectAll("rect").data(t).enter(),d=i.db.getLinks();if(h.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?b(t.startTime)+o+.5*(b(t.endTime)-b(t.startTime))-.5*s:b(t.startTime)+o})).attr("y",(function(t,e){return t.order*n+r})).attr("width",(function(t){return t.milestone?s:b(t.renderEndTime||t.endTime)-b(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(b(t.startTime)+o+.5*(b(t.endTime)-b(t.startTime))).toString()+"px "+(e*n+r+.5*s).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[e,i]of f.entries())t.type===i&&(n=e%a.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),h.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",a.fontSize).attr("x",(function(t){let e=b(t.startTime),n=b(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(b(t.endTime)-b(t.startTime))-.5*s),t.milestone&&(n=e+s);const i=this.getBBox().width;return i>n-e?n+i+1.5*a.leftPadding>u?e+o-5:n+o+5:(n-e)/2+e+o})).attr("y",(function(t,e){return t.order*n+a.barHeight/2+(a.fontSize/2-2)+r})).attr("text-height",s).attr("class",(function(t){const e=b(t.startTime);let n=b(t.endTime);t.milestone&&(n=e+s);const i=this.getBBox().width;let r="";t.classes.length>0&&(r=t.classes.join(" "));let o=0;for(const[e,n]of f.entries())t.type===n&&(o=e%a.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+o:"activeText"+o),t.done?c=t.crit?c+" doneCritText"+o:c+" doneText"+o:t.crit&&(c=c+" critText"+o),t.milestone&&(c+=" milestoneText"),i>n-e?n+i+1.5*a.leftPadding>u?r+" taskTextOutsideLeft taskTextOutside"+o+" "+c:r+" taskTextOutsideRight taskTextOutside"+o+" "+c+" width-"+i:r+" taskText taskText"+o+" "+c+" width-"+i})),"sandbox"===ch().securityLevel){let t;t=ae("#i"+e);const n=t.nodes()[0].contentDocument;h.filter((function(t){return void 0!==d[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const r=e.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",d[t.id]),a.setAttribute("target","_top"),r.appendChild(a),a.appendChild(e),a.appendChild(i)}))}}(t,c,l,h,s,0,n),function(t,e){let n=0;const i=Object.keys(d).map((t=>[t,d[t]]));p.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(Bc.lineBreakRegex),n=-(e.length-1)/2,i=u.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=u.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,i.appendChild(e)}return i})).attr("x",10).attr("y",(function(r,a){if(!(a>0))return r[1]*t/2+e;for(let o=0;o`\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ${t.ganttFontSize};\n // }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n // font-size: ${t.ganttFontSize};\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor} ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n`}},Symbol.toStringTag,{value:"Module"}));var rA=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,i,r,a,o){switch(a.length,r){case 1:return i;case 4:break;case 6:i.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},i={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function r(){this.yy={}}return n.lexer=i,r.prototype=n,n.Parser=r,new r}();rA.parser=rA;const aA=rA;let oA=false;const sA=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:aA,db:{clear:()=>{oA=false},setInfo:t=>{oA=t},getInfo:()=>oA},renderer:{draw:(t,e,n)=>{o.debug("rendering info diagram\n"+t);const i=xg(e);ph(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${n}`)}}}},Symbol.toStringTag,{value:"Module"}));var cA=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,5],i=[1,6],r=[1,7],a=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],u=[26,27,28],l=[2,8],h=[1,18],f=[1,19],d=[1,20],g=[1,21],p=[1,22],b=[1,23],w=[1,28],y=[6,26,27,28,29],m={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:i.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:i.addSection(a[s-1],i.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),i.setDiagramTitle(this.$);break;case 11:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 12:case 13:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 14:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:a},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:a},{3:11,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(u,l,{21:8,9:16,10:17,5:24,1:[2,3],11:h,13:f,15:d,17:g,19:p,20:b,29:a}),t(o,s,{7:25}),{23:26,24:[1,27],32:w},t([24,32],[2,22]),t(o,[2,6]),{4:29,26:n,27:i,28:r},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),t(u,l,{21:8,9:16,10:17,5:24,1:[2,4],11:h,13:f,15:d,17:g,19:p,20:b,29:a}),t(y,[2,16]),{25:34,31:[1,35]},t(y,[2,24]),t(o,[2,7]),t(u,[2,9]),t(u,[2,10]),t(u,[2,11]),t(u,[2,12]),{23:36,32:w},{32:[2,23]},t(y,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/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,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function x(){this.yy={}}return m.lexer=v,x.prototype=m,m.Parser=x,new x}();cA.parser=cA;const uA=cA;let lA={},hA=!1;const fA={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().pie,addSection:function(t,e){t=Bc.sanitizeText(t,ch()),void 0===lA[t]&&(lA[t]=e,o.debug("Added new section :",t))},getSections:()=>lA,cleanupValue:function(t){return":"===t.substring(0,1)&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){lA={},hA=!1,kh()},setAccTitle:_h,getAccTitle:Eh,setDiagramTitle:Sh,getDiagramTitle:Ah,setShowData:function(t){hA=t},getShowData:function(){return hA},getAccDescription:Ch,setAccDescription:Th};let dA,gA=ch();const pA=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:uA,db:fA,renderer:{draw:(t,e,n,i)=>{var r;try{gA=ch(),o.debug("Rendering info diagram\n"+t);const n=ch().securityLevel;let y;"sandbox"===n&&(y=ae("#i"+e));const m=ae("sandbox"===n?y.nodes()[0].contentDocument.body:"body"),v=("sandbox"===n?y.nodes()[0].contentDocument:document).getElementById(e);dA=v.parentElement.offsetWidth,void 0===dA&&(dA=1200),void 0!==gA.useWidth&&(dA=gA.useWidth),void 0!==gA.pie.useWidth&&(dA=gA.pie.useWidth);const x=m.select("#"+e);ph(x,450,dA,gA.pie.useMaxWidth),v.setAttribute("viewBox","0 0 "+dA+" 450");var a=Math.min(dA,450)/2-40,s=x.append("g").attr("transform","translate("+dA/2+",225)"),c=i.db.getSections(),u=0;Object.keys(c).forEach((function(t){u+=c[t]}));const k=gA.themeVariables;var l=[k.pie1,k.pie2,k.pie3,k.pie4,k.pie5,k.pie6,k.pie7,k.pie8,k.pie9,k.pie10,k.pie11,k.pie12];const _=(null==(r=gA.pie)?void 0:r.textPosition)??.75;let[E]=ad(k.pieOuterStrokeWidth);E??(E=2);var h=Wi().range(l),f=Object.entries(c).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),d=function(){var t=Zo,e=Qo,n=null,i=To(0),r=To(Bo),a=To(0);function o(o){var s,c,u,l,h,f=(o=Go(o)).length,d=0,g=new Array(f),p=new Array(f),b=+i.apply(this,arguments),w=Math.min(Bo,Math.max(-Bo,r.apply(this,arguments)-b)),y=Math.min(Math.abs(w)/f,a.apply(this,arguments)),m=y*(w<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,u=d?(w-f*m)/d:0;s0?h*u:0)+m,p[c]={data:o[c],index:s,value:h,startAngle:b,endAngle:l,padAngle:y};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:To(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:To(+t),o):i},o.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:To(+t),o):r},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:To(+t),o):a},o}().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order})),g=d(f),p=Uo().innerRadius(0).outerRadius(a),b=Uo().innerRadius(a*_).outerRadius(a*_);s.append("circle").attr("cx",0).attr("cy",0).attr("r",a+E/2).attr("class","pieOuterCircle"),s.selectAll("mySlices").data(g).enter().append("path").attr("d",p).attr("fill",(function(t){return h(t.data.name)})).attr("class","pieCircle"),s.selectAll("mySlices").data(g).enter().append("text").text((function(t){return(t.data.value/u*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+b.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),s.append("text").text(i.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var w=s.selectAll(".legend").data(h.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*h.domain().length/2)+")"}));w.append("rect").attr("width",18).attr("height",18).style("fill",h).style("stroke",h),w.data(g).append("text").attr("x",22).attr("y",14).text((function(t){return i.db.getShowData()||gA.showData||gA.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(t){o.error("Error while rendering info diagram"),o.error(t)}}},styles:t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${t.pieOuterStrokeColor};\n stroke-width: ${t.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`}},Symbol.toStringTag,{value:"Module"}));var bA=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[1,6],r=[1,7],a=[1,8],o=[1,10],s=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],c=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],u=[38,39,40],l=[2,8],h=[1,19],f=[1,23],d=[1,24],g=[1,25],p=[1,26],b=[1,27],w=[1,29],y=[1,30],m=[1,31],v=[1,32],x=[1,33],k=[1,34],_=[1,37],E=[1,38],T=[1,39],C=[1,40],S=[1,41],A=[1,42],M=[1,43],I=[1,44],L=[1,45],O=[1,46],D=[1,47],N=[1,48],P=[1,49],B=[1,52],F=[1,67],j=[1,68],R=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],$=[5,7,38,39,40,41],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25:"point_y",26:"X-AXIS",27:"AXIS-TEXT-DELIMITER",28:"Y-AXIS",29:"QUADRANT_1",30:"QUADRANT_2",31:"QUADRANT_3",32:"QUADRANT_4",36:":",38:"NEWLINE",39:"SEMI",40:"EOF",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive",47:"STR",48:"MD_STR",50:"PUNCTUATION",51:"AMP",52:"NUM",53:"ALPHA",54:"COMMA",55:"PLUS",56:"EQUALS",57:"MULT",58:"DOT",59:"BRKT",60:"UNDERSCORE",61:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[10,0],[10,2],[10,1],[10,1],[10,1],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[13,4],[11,4],[11,3],[11,2],[11,4],[11,3],[11,2],[12,2],[12,2],[12,2],[12,2],[6,3],[6,5],[4,1],[4,1],[4,1],[33,1],[34,1],[37,1],[35,1],[22,1],[22,2],[22,1],[22,1],[49,1],[49,2],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,1],[46,1],[46,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 13:this.$=a[s].trim(),i.setDiagramTitle(this.$);break;case 14:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 15:case 16:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 17:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:i.addPoint(a[s-3],a[s-1],a[s]);break;case 20:i.setXAxisLeftText(a[s-2]),i.setXAxisRightText(a[s]);break;case 21:a[s-1].text+=" ⟶ ",i.setXAxisLeftText(a[s-1]);break;case 22:i.setXAxisLeftText(a[s]);break;case 23:i.setYAxisBottomText(a[s-2]),i.setYAxisTopText(a[s]);break;case 24:a[s-1].text+=" ⟶ ",i.setYAxisBottomText(a[s-1]);break;case 25:i.setYAxisBottomText(a[s]);break;case 26:i.setQuadrant1Text(a[s]);break;case 27:i.setQuadrant2Text(a[s]);break;case 28:i.setQuadrant3Text(a[s]);break;case 29:i.setQuadrant4Text(a[s]);break;case 35:i.parseDirective("%%{","open_directive");break;case 36:i.parseDirective(a[s],"type_directive");break;case 37:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 38:i.parseDirective("}%%","close_directive","quadrantChart");break;case 39:case 41:this.$={text:a[s],type:"text"};break;case 40:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 42:this.$={text:a[s],type:"markdown"};break;case 43:this.$=a[s];break;case 44:this.$=a[s-1]+""+a[s]}},table:[{3:1,4:2,5:e,6:4,7:n,33:9,38:i,39:r,40:a,41:o},{1:[3]},{3:11,4:2,5:e,6:4,7:n,33:9,38:i,39:r,40:a,41:o},{3:12,4:2,5:e,6:4,7:n,33:9,38:i,39:r,40:a,41:o},{3:13,4:2,5:e,6:4,7:n,33:9,38:i,39:r,40:a,41:o},t(s,[2,5],{8:14}),t(c,[2,32]),t(c,[2,33]),t(c,[2,34]),{34:15,42:[1,16]},{42:[2,35]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(u,l,{33:9,9:17,10:18,11:20,12:21,13:22,6:28,22:35,45:36,1:[2,4],5:h,14:f,16:d,18:g,20:p,21:b,26:w,28:y,29:m,30:v,31:x,32:k,41:o,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P}),{35:50,36:[1,51],44:B},t([36,44],[2,36]),t(s,[2,6]),{4:53,38:i,39:r,40:a},t(u,l,{33:9,11:20,12:21,13:22,6:28,22:35,45:36,10:54,5:h,14:f,16:d,18:g,20:p,21:b,26:w,28:y,29:m,30:v,31:x,32:k,41:o,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P}),t(u,[2,10]),t(u,[2,11]),t(u,[2,12]),{15:[1,55]},{17:[1,56]},{19:[1,57]},t(u,[2,16]),t(u,[2,17]),t(u,[2,18]),{22:58,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{22:59,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{22:60,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{22:61,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{22:62,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{22:63,45:36,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P},{5:F,23:[1,64],45:66,46:65,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j},t(R,[2,39]),t(R,[2,41]),t(R,[2,42]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t($,[2,30]),{37:69,43:[1,70]},t($,[2,38]),t(s,[2,7]),t(u,[2,9]),t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),t(u,[2,22],{46:65,45:66,5:F,27:[1,71],50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,25],{46:65,45:66,5:F,27:[1,72],50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,26],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,27],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,28],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,29],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),{24:[1,73]},t(R,[2,40]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),{35:74,44:B},{44:[2,37]},t(u,[2,21],{45:36,22:75,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P}),t(u,[2,24],{45:36,22:76,47:_,48:E,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P}),{25:[1,77]},t($,[2,31]),t(u,[2,20],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,23],{46:65,45:66,5:F,50:T,51:C,52:S,53:A,54:M,55:I,56:L,57:O,58:D,59:N,60:P,61:j}),t(u,[2,19])],defaultActions:{10:[2,35],11:[2,1],12:[2,2],13:[2,3],70:[2,37]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},q={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),36;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:break;case 7:return 38;case 9:return this.begin("title"),14;case 10:return this.popState(),"title_value";case 11:return this.begin("acc_title"),16;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),18;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 27:case 29:case 33:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 26;case 19:return 28;case 20:return 27;case 21:return 29;case 22:return 30;case 23:return 31;case 24:return 32;case 25:this.begin("md_string");break;case 26:return"MD_STR";case 28:this.begin("string");break;case 30:return"STR";case 31:return this.begin("point_start"),23;case 32:return this.begin("point_x"),24;case 34:this.popState(),this.begin("point_y");break;case 35:return this.popState(),25;case 36:return 7;case 37:return 53;case 38:return"COLON";case 39:return 55;case 40:return 54;case 41:case 42:return 56;case 43:return 57;case 44:return 59;case 45:return 60;case 46:return 58;case 47:return 51;case 48:return 61;case 49:return 52;case 50:return 5;case 51:return 39;case 52:return 50;case 53:return 40}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\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,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[35],inclusive:!1},point_x:{rules:[34],inclusive:!1},point_start:{rules:[32,33],inclusive:!1},acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[10],inclusive:!1},md_string:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,11,13,15,18,19,20,21,22,23,24,25,28,31,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function H(){this.yy={}}return z.lexer=q,H.prototype=z,z.Parser=H,new H}();bA.parser=bA;const wA=bA,yA=uu(),mA=ch();function vA(t){return Lc(t.trim(),mA)}const xA=new class{constructor(){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 t,e,n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(t=bu.quadrantChart)?void 0:t.chartWidth)||500,chartWidth:(null==(e=bu.quadrantChart)?void 0:e.chartHeight)||500,titlePadding:(null==(n=bu.quadrantChart)?void 0:n.titlePadding)||10,titleFontSize:(null==(i=bu.quadrantChart)?void 0:i.titleFontSize)||20,quadrantPadding:(null==(r=bu.quadrantChart)?void 0:r.quadrantPadding)||5,xAxisLabelPadding:(null==(a=bu.quadrantChart)?void 0:a.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(o=bu.quadrantChart)?void 0:o.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(s=bu.quadrantChart)?void 0:s.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(c=bu.quadrantChart)?void 0:c.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(u=bu.quadrantChart)?void 0:u.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(l=bu.quadrantChart)?void 0:l.quadrantTextTopPadding)||5,pointTextPadding:(null==(h=bu.quadrantChart)?void 0:h.pointTextPadding)||5,pointLabelFontSize:(null==(f=bu.quadrantChart)?void 0:f.pointLabelFontSize)||12,pointRadius:(null==(d=bu.quadrantChart)?void 0:d.pointRadius)||5,xAxisPosition:(null==(g=bu.quadrantChart)?void 0:g.xAxisPosition)||"top",yAxisPosition:(null==(p=bu.quadrantChart)?void 0:p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(b=bu.quadrantChart)?void 0:b.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(w=bu.quadrantChart)?void 0:w.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:yA.quadrant1Fill,quadrant2Fill:yA.quadrant2Fill,quadrant3Fill:yA.quadrant3Fill,quadrant4Fill:yA.quadrant4Fill,quadrant1TextFill:yA.quadrant1TextFill,quadrant2TextFill:yA.quadrant2TextFill,quadrant3TextFill:yA.quadrant3TextFill,quadrant4TextFill:yA.quadrant4TextFill,quadrantPointFill:yA.quadrantPointFill,quadrantPointTextFill:yA.quadrantPointTextFill,quadrantXAxisTextFill:yA.quadrantXAxisTextFill,quadrantYAxisTextFill:yA.quadrantYAxisTextFill,quadrantTitleFill:yA.quadrantTitleFill,quadrantInternalBorderStrokeFill:yA.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:yA.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),o.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}setConfig(t){o.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){o.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,n,i){const r=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,a={top:"top"===t&&e?r:0,bottom:"bottom"===t&&e?r:0},o=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,s={left:"left"===this.config.yAxisPosition&&n?o:0,right:"right"===this.config.yAxisPosition&&n?o:0},c=this.config.titleFontSize+2*this.config.titlePadding,u={top:i?c:0},l=this.config.quadrantPadding+s.left,h=this.config.quadrantPadding+a.top+u.top,f=this.config.chartWidth-2*this.config.quadrantPadding-s.left-s.right,d=this.config.chartHeight-2*this.config.quadrantPadding-a.top-a.bottom-u.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:u,quadrantSpace:{quadrantLeft:l,quadrantTop:h,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:d,quadrantHalfHeight:d/2}}}getAxisLabels(t,e,n,i){const{quadrantSpace:r,titleSpace:a}=i,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:u,quadrantTop:l,quadrantWidth:h}=r,f=0===this.data.points.length,d=[];return this.data.xAxisLeftText&&e&&d.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?u/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&d.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+u+(f?u/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&d.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+h+this.config.quadrantPadding,y:l+s-(f?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&d.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+h+this.config.quadrantPadding,y:l+o-(f?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:-90}),d}getQuadrants(t){const{quadrantSpace:e}=t,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:r,quadrantTop:a}=e,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+r,y:a,width:r,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a,width:r,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a+n,width:r,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+r,y:a+n,width:r,height:n,fill:this.themeConfig.quadrant4Fill}];for(const t of o)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return o}getQuadrantPoints(t){const{quadrantSpace:e}=t,{quadrantHeight:n,quadrantLeft:i,quadrantTop:r,quadrantWidth:a}=e,o=rr().domain([0,1]).range([i,a+i]),s=rr().domain([0,1]).range([n+r,r]);return this.data.points.map((t=>({x:o(t.x),y:s(t.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:o(t.x),y:s(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}})))}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=t,{quadrantHalfHeight:i,quadrantHeight:r,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+c+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+e,x2:a+c,y2:s+r-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+r,x2:a+c+e,y2:s+r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+r-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+e,x2:a+o,y2:s+r-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+i,x2:a+c-e,y2:s+i}]}getTitle(t){if(t)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(){const t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,r=this.calculateSpace(i,t,e,n);return{points:this.getQuadrantPoints(r),quadrants:this.getQuadrants(r),axisLabels:this.getAxisLabels(i,t,e,r),borderLines:this.getBorders(r),title:this.getTitle(n)}}},kA=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:wA,db:{setWidth:function(t){xA.setConfig({chartWidth:t})},setHeight:function(t){xA.setConfig({chartHeight:t})},setQuadrant1Text:function(t){xA.setData({quadrant1Text:vA(t.text)})},setQuadrant2Text:function(t){xA.setData({quadrant2Text:vA(t.text)})},setQuadrant3Text:function(t){xA.setData({quadrant3Text:vA(t.text)})},setQuadrant4Text:function(t){xA.setData({quadrant4Text:vA(t.text)})},setXAxisLeftText:function(t){xA.setData({xAxisLeftText:vA(t.text)})},setXAxisRightText:function(t){xA.setData({xAxisRightText:vA(t.text)})},setYAxisTopText:function(t){xA.setData({yAxisTopText:vA(t.text)})},setYAxisBottomText:function(t){xA.setData({yAxisBottomText:vA(t.text)})},addPoint:function(t,e,n){xA.addPoints([{x:e,y:n,text:vA(t.text)}])},getQuadrantData:function(){const t=ch(),{themeVariables:e,quadrantChart:n}=t;return n&&xA.setConfig(n),xA.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),xA.setData({titleText:Ah()}),xA.build()},parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},clear:function(){xA.clear(),kh()},setAccTitle:_h,getAccTitle:Eh,setDiagramTitle:Sh,getDiagramTitle:Ah,getAccDescription:Ch,setAccDescription:Th},renderer:{draw:(t,e,n,i)=>{var r,a,s;function c(t){return"top"===t?"hanging":"middle"}function u(t){return"left"===t?"start":"middle"}function l(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const h=ch();o.debug("Rendering quadrant chart\n"+t);const f=h.securityLevel;let d;"sandbox"===f&&(d=ae("#i"+e));const g=ae("sandbox"===f?d.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`),p=g.append("g").attr("class","main"),b=(null==(r=h.quadrantChart)?void 0:r.chartWidth)||500,w=(null==(a=h.quadrantChart)?void 0:a.chartHeight)||500;ph(g,w,b,(null==(s=h.quadrantChart)?void 0:s.useMaxWidth)||!0),g.attr("viewBox","0 0 "+b+" "+w),i.db.setHeight(w),i.db.setWidth(b);const y=i.db.getQuadrantData(),m=p.append("g").attr("class","quadrants"),v=p.append("g").attr("class","border"),x=p.append("g").attr("class","data-points"),k=p.append("g").attr("class","labels"),_=p.append("g").attr("class","title");y.title&&_.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",c(y.title.horizontalPos)).attr("text-anchor",u(y.title.verticalPos)).attr("transform",l(y.title)).text(y.title.text),y.borderLines&&v.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth));const E=m.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");E.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)),E.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>c(t.text.horizontalPos))).attr("text-anchor",(t=>u(t.text.verticalPos))).attr("transform",(t=>l(t.text))).text((t=>t.text.text)),k.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>c(t.horizontalPos))).attr("text-anchor",(t=>u(t.verticalPos))).attr("transform",(t=>l(t)));const T=x.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");T.append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)),T.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>c(t.text.horizontalPos))).attr("text-anchor",(t=>u(t.text.verticalPos))).attr("transform",(t=>l(t.text)))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var _A=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[1,6],r=[1,7],a=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],c=[2,13],u=[1,26],l=[1,27],h=[1,28],f=[1,29],d=[1,30],g=[1,31],p=[1,24],b=[1,32],w=[1,33],y=[1,36],m=[71,72],v=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],x=[1,56],k=[1,57],_=[1,58],E=[1,59],T=[1,60],C=[1,61],S=[1,62],A=[62,63],M=[1,74],I=[1,70],L=[1,71],O=[1,72],D=[1,73],N=[1,75],P=[1,79],B=[1,80],F=[1,77],j=[1,78],R=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],$={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",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",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 6:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(a[s],"type_directive");break;case 11:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(a[s-3],a[s-4]);break;case 20:i.setNewReqId(a[s-2]);break;case 21:i.setNewReqText(a[s-2]);break;case 22:i.setNewReqRisk(a[s-2]);break;case 23:i.setNewReqVerifyMethod(a[s-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(a[s-3]);break;case 40:i.setNewElementType(a[s-2]);break;case 41:i.setNewElementDocRef(a[s-2]);break;case 44:i.addRelationship(a[s-2],a[s],a[s-4]);break;case 45:i.addRelationship(a[s-2],a[s-4],a[s]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n,16:i,18:r,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:e,9:4,14:n,16:i,18:r,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(o,[2,8]),{20:[2,9]},{3:16,4:2,6:e,9:4,14:n,16:i,18:r,19:a},{1:[2,2]},{4:21,5:s,7:17,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{11:34,12:[1,35],22:y},t([12,22],[2,10]),t(o,[2,6]),t(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{4:21,5:s,7:39,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{4:21,5:s,7:40,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{4:21,5:s,7:41,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{4:21,5:s,7:42,8:c,9:4,14:n,16:i,18:r,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:g,53:p,71:b,72:w},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(m,[2,26]),t(m,[2,27]),t(m,[2,28]),t(m,[2,29]),t(m,[2,30]),t(m,[2,31]),t(v,[2,55]),t(v,[2,56]),t(o,[2,4]),{13:51,21:[1,52]},t(o,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:x,65:k,66:_,67:E,68:T,69:C,70:S},{61:63,64:x,65:k,66:_,67:E,68:T,69:C,70:S},{11:64,22:y},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(A,[2,46]),t(A,[2,47]),t(A,[2,48]),t(A,[2,49]),t(A,[2,50]),t(A,[2,51]),t(A,[2,52]),{63:[1,68]},t(o,[2,5]),{5:M,29:69,30:I,33:L,35:O,37:D,39:N},{5:P,39:B,55:76,56:F,58:j},{32:81,71:b,72:w},{32:82,71:b,72:w},t(R,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:I,33:L,35:O,37:D,39:N},t(R,[2,25]),t(R,[2,39]),{31:[1,88]},{31:[1,89]},{5:P,39:B,55:90,56:F,58:j},t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),{32:91,71:b,72:w},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},t(R,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(R,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:I,33:L,35:O,37:D,39:N},{5:M,29:117,30:I,33:L,35:O,37:D,39:N},{5:M,29:118,30:I,33:L,35:O,37:D,39:N},{5:M,29:119,30:I,33:L,35:O,37:D,39:N},{5:P,39:B,55:120,56:F,58:j},{5:P,39:B,55:121,56:F,58:j},t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(R,[2,23]),t(R,[2,40]),t(R,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},z={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return e.yytext=e.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,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,55],inclusive:!0}}};function q(){this.yy={}}return $.lexer=z,q.prototype=$,$.Parser=q,new q}();_A.parser=_A;const EA=_A;let TA=[],CA={},SA={},AA={},MA={};const IA={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().req,addRequirement:(t,e)=>(void 0===SA[t]&&(SA[t]={name:t,type:e,id:CA.id,text:CA.text,risk:CA.risk,verifyMethod:CA.verifyMethod}),CA={},SA[t]),getRequirements:()=>SA,setNewReqId:t=>{void 0!==CA&&(CA.id=t)},setNewReqText:t=>{void 0!==CA&&(CA.text=t)},setNewReqRisk:t=>{void 0!==CA&&(CA.risk=t)},setNewReqVerifyMethod:t=>{void 0!==CA&&(CA.verifyMethod=t)},setAccTitle:_h,getAccTitle:Eh,setAccDescription:Th,getAccDescription:Ch,addElement:t=>(void 0===MA[t]&&(MA[t]={name:t,type:AA.type,docRef:AA.docRef},o.info("Added new requirement: ",t)),AA={},MA[t]),getElements:()=>MA,setNewElementType:t=>{void 0!==AA&&(AA.type=t)},setNewElementDocRef:t=>{void 0!==AA&&(AA.docRef=t)},addRelationship:(t,e,n)=>{TA.push({type:t,src:e,dst:n})},getRelationships:()=>TA,clear:()=>{TA=[],CA={},SA={},AA={},MA={},kh()}},LA={CONTAINS:"contains",ARROW:"arrow"},OA=LA;let DA={},NA=0;const PA=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",DA.rect_min_width+"px").attr("height",DA.rect_min_height+"px"),BA=(t,e,n)=>{let i=DA.rect_min_width/2,r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",i).attr("y",DA.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((t=>{0==a?r.append("tspan").attr("text-anchor","middle").attr("x",DA.rect_min_width/2).attr("dy",0).text(t):r.append("tspan").attr("text-anchor","middle").attr("x",DA.rect_min_width/2).attr("dy",.75*DA.line_height).text(t),a++}));let o=1.5*DA.rect_padding+a*DA.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",DA.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:r,y:o}},FA=(t,e,n,i)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",DA.rect_padding).attr("y",i).attr("dominant-baseline","hanging"),a=0,o=[];return n.forEach((t=>{let e=t.length;for(;e>30&&a<3;){let n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=n,a++}if(3==a){let t=o[o.length-1];o[o.length-1]=t.substring(0,t.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((t=>{r.append("tspan").attr("x",DA.rect_padding).attr("dy",DA.line_height).text(t)})),r},jA=t=>t.replace(/\s/g,"").replace(/\./g,"_"),RA=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:EA,db:IA,renderer:{draw:(t,e,n,i)=>{DA=ch().requirement;const r=DA.securityLevel;let a;"sandbox"===r&&(a=ae("#i"+e));const s=ae("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);((t,e)=>{let n=t.append("defs").append("marker").attr("id",LA.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",LA.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${e.line_height},${e.line_height/2}\n M${e.line_height},${e.line_height/2}\n L0,${e.line_height}`).attr("stroke-width",1)})(s,DA);const c=new nk({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:DA.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let u=i.db.getRequirements(),l=i.db.getElements(),h=i.db.getRelationships();((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];i=jA(i),o.info("Added new requirement: ",i);const a=n.append("g").attr("id",i),s=PA(a,"req-"+i);let c=BA(a,i+"_title",[`<<${r.type}>>`,`${r.name}`]);FA(a,i+"_body",[`Id: ${r.id}`,`Text: ${r.text}`,`Risk: ${r.risk}`,`Verification: ${r.verifyMethod}`],c.y);const u=s.node().getBBox();e.setNode(i,{width:u.width,height:u.height,shape:"rect",id:i})}))})(u,c,s),((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];const a=jA(i),o=n.append("g").attr("id",a),s="element-"+a,c=PA(o,s);let u=BA(o,s+"_title",["<>",`${i}`]);FA(o,s+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],u.y);const l=c.node().getBBox();e.setNode(a,{width:l.width,height:l.height,shape:"rect",id:a})}))})(l,c,s),((t,e)=>{t.forEach((function(t){let n=jA(t.src),i=jA(t.dst);e.setEdge(n,i,{relationship:t})}))})(h,c),a_(c),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(s,c),h.forEach((function(t){!function(t,e,n,i,r){const a=n.edge(jA(e.src),jA(e.dst)),o=Vo().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+i).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==r.db.Relationships.CONTAINS?s.attr("marker-start","url("+Bc.getUrl(DA.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+Bc.getUrl(DA.arrowMarkerAbsolute)+"#"+OA.ARROW+"_line_ending)")),((t,e,n,i)=>{const r=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*r),o="rel"+NA;NA++;const s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(i).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")})(t,s,0,`<<${e.type}>>`)}(s,t,c,e,i)}));const f=DA.rect_padding,d=s.node().getBBox(),g=d.width+2*f,p=d.height+2*f;ph(s,p,g,DA.useMaxWidth),s.attr("viewBox",`${d.x-f} ${d.y-f} ${g} ${p}`)}},styles:t=>`\n\n marker {\n fill: ${t.relationColor};\n stroke: ${t.relationColor};\n }\n\n marker.cross {\n stroke: ${t.lineColor};\n }\n\n svg {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n }\n\n .reqBox {\n fill: ${t.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${t.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${t.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${t.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${t.relationLabelColor};\n }\n\n`}},Symbol.toStringTag,{value:"Module"}));var $A=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,5],r=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],u=[1,20],l=[1,22],h=[1,23],f=[1,24],d=[1,30],g=[1,31],p=[1,32],b=[1,33],w=[1,34],y=[1,35],m=[1,36],v=[1,37],x=[1,38],k=[1,39],_=[1,40],E=[1,41],T=[1,42],C=[1,44],S=[1,45],A=[1,46],M=[1,48],I=[1,49],L=[1,50],O=[1,51],D=[1,52],N=[1,53],P=[1,56],B=[1,4,5,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,53,54,55,56,58,59,60,65,66,67,68,76,86],F=[4,5,22,56,58,59],j=[4,5,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,56,58,59,60,65,66,67,68,76,86],R=[4,5,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,55,56,58,59,60,65,66,67,68,76,86],$=[4,5,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,54,56,58,59,60,65,66,67,68,76,86],z=[4,5,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,53,56,58,59,60,65,66,67,68,76,86],q=[74,75,76],H=[1,133],U=[1,4,5,7,19,20,22,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,53,54,55,56,58,59,60,65,66,67,68,76,86],G={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,create:19,box:20,restOfLine:21,end:22,signal:23,autonumber:24,NUM:25,off:26,activate:27,actor:28,deactivate:29,note_statement:30,links_statement:31,link_statement:32,properties_statement:33,details_statement:34,title:35,legacy_title:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,loop:42,rect:43,opt:44,alt:45,else_sections:46,par:47,par_sections:48,par_over:49,critical:50,option_sections:51,break:52,option:53,and:54,else:55,participant:56,AS:57,participant_actor:58,destroy:59,note:60,placement:61,text2:62,over:63,actor_pair:64,links:65,link:66,properties:67,details:68,spaceList:69,",":70,left_of:71,right_of:72,signaltype:73,"+":74,"-":75,ACTOR:76,SOLID_OPEN_ARROW:77,DOTTED_OPEN_ARROW:78,SOLID_ARROW:79,DOTTED_ARROW:80,SOLID_CROSS:81,DOTTED_CROSS:82,SOLID_POINT:83,DOTTED_POINT:84,TXT:85,open_directive:86,type_directive:87,arg_directive:88,close_directive:89,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"create",20:"box",21:"restOfLine",22:"end",24:"autonumber",25:"NUM",26:"off",27:"activate",29:"deactivate",35:"title",36:"legacy_title",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"loop",43:"rect",44:"opt",45:"alt",47:"par",49:"par_over",50:"critical",52:"break",53:"option",54:"and",55:"else",56:"participant",57:"AS",58:"participant_actor",59:"destroy",60:"note",63:"over",65:"links",66:"link",67:"properties",68:"details",70:",",71:"left_of",72:"right_of",74:"+",75:"-",76:"ACTOR",77:"SOLID_OPEN_ARROW",78:"DOTTED_OPEN_ARROW",79:"SOLID_ARROW",80:"DOTTED_ARROW",81:"SOLID_CROSS",82:"DOTTED_CROSS",83:"SOLID_POINT",84:"DOTTED_POINT",85:"TXT",86:"open_directive",87:"type_directive",88:"arg_directive",89:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,2],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[51,1],[51,4],[48,1],[48,4],[46,1],[46,4],[13,5],[13,3],[13,5],[13,3],[13,3],[30,4],[30,4],[31,3],[32,3],[33,3],[34,3],[69,2],[69,1],[64,3],[64,1],[61,1],[61,1],[23,5],[23,5],[23,4],[28,1],[73,1],[73,1],[73,1],[73,1],[73,1],[73,1],[73,1],[73,1],[62,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:return i.apply(a[s]),a[s];case 5:case 10:case 9:case 14:this.$=[];break;case 6:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 12:case 13:case 66:this.$=a[s];break;case 18:a[s].type="createParticipant",this.$=a[s];break;case 19:a[s-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[s-2])}),a[s-1].push({type:"boxEnd",boxText:a[s-2]}),this.$=a[s-1];break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 25:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 26:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 32:i.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 33:i.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 34:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 35:case 36:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 37:a[s-1].unshift({type:"loopStart",loopText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"rectStart",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"optStart",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:"altStart",altText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_OVER_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 43:a[s-1].unshift({type:"criticalStart",criticalText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 44:a[s-1].unshift({type:"breakStart",breakText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 47:this.$=a[s-3].concat([{type:"option",optionText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 49:this.$=a[s-3].concat([{type:"and",parText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.PAR_AND},a[s]]);break;case 51:this.$=a[s-3].concat([{type:"else",altText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.ALT_ELSE},a[s]]);break;case 52:a[s-3].draw="participant",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 53:a[s-1].draw="participant",a[s-1].type="addParticipant",this.$=a[s-1];break;case 54:a[s-3].draw="actor",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw="actor",a[s-1].type="addParticipant",this.$=a[s-1];break;case 56:a[s-1].type="destroyParticipant",this.$=a[s-1];break;case 57:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 58:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 59:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 60:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 65:this.$=[a[s-2],a[s]];break;case 67:this.$=i.PLACEMENT.LEFTOF;break;case 68:this.$=i.PLACEMENT.RIGHTOF;break;case 69:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 70:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 71:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 72:this.$={type:"addParticipant",actor:a[s]};break;case 73:this.$=i.LINETYPE.SOLID_OPEN;break;case 74:this.$=i.LINETYPE.DOTTED_OPEN;break;case 75:this.$=i.LINETYPE.SOLID;break;case 76:this.$=i.LINETYPE.DOTTED;break;case 77:this.$=i.LINETYPE.SOLID_CROSS;break;case 78:this.$=i.LINETYPE.DOTTED_CROSS;break;case 79:this.$=i.LINETYPE.SOLID_POINT;break;case 80:this.$=i.LINETYPE.DOTTED_POINT;break;case 81:this.$=i.parseMessage(a[s].trim().substring(1));break;case 82:i.parseDirective("%%{","open_directive");break;case 83:i.parseDirective(a[s],"type_directive");break;case 84:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 85:i.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:i,14:6,86:r},{1:[3]},{3:8,4:e,5:n,6:4,7:i,14:6,86:r},{3:9,4:e,5:n,6:4,7:i,14:6,86:r},{3:10,4:e,5:n,6:4,7:i,14:6,86:r},t([1,4,5,19,20,24,27,29,35,36,37,39,41,42,43,44,45,47,49,50,52,56,58,59,60,65,66,67,68,76,86],a,{8:11}),{15:12,87:[1,13]},{87:[2,82]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{16:54,17:[1,55],89:P},t([17,89],[2,83]),t(B,[2,6]),{6:43,10:57,13:18,14:6,19:c,20:u,23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},t(B,[2,8]),t(B,[2,9]),t(B,[2,17]),{13:58,56:C,58:S,59:A},{21:[1,59]},{5:[1,60]},{5:[1,63],25:[1,61],26:[1,62]},{28:64,76:N},{28:65,76:N},{5:[1,66]},{5:[1,67]},{5:[1,68]},{5:[1,69]},{5:[1,70]},t(B,[2,32]),t(B,[2,33]),{38:[1,71]},{40:[1,72]},t(B,[2,36]),{21:[1,73]},{21:[1,74]},{21:[1,75]},{21:[1,76]},{21:[1,77]},{21:[1,78]},{21:[1,79]},{21:[1,80]},t(B,[2,45]),{28:81,76:N},{28:82,76:N},{28:83,76:N},{73:84,77:[1,85],78:[1,86],79:[1,87],80:[1,88],81:[1,89],82:[1,90],83:[1,91],84:[1,92]},{61:93,63:[1,94],71:[1,95],72:[1,96]},{28:97,76:N},{28:98,76:N},{28:99,76:N},{28:100,76:N},t([5,57,70,77,78,79,80,81,82,83,84,85],[2,72]),{5:[1,101]},{18:102,88:[1,103]},{5:[2,85]},t(B,[2,7]),t(B,[2,18]),t(F,[2,10],{11:104}),t(B,[2,20]),{5:[1,106],25:[1,105]},{5:[1,107]},t(B,[2,24]),{5:[1,108]},{5:[1,109]},t(B,[2,27]),t(B,[2,28]),t(B,[2,29]),t(B,[2,30]),t(B,[2,31]),t(B,[2,34]),t(B,[2,35]),t(j,a,{8:110}),t(j,a,{8:111}),t(j,a,{8:112}),t(R,a,{46:113,8:114}),t($,a,{48:115,8:116}),t($,a,{8:116,48:117}),t(z,a,{51:118,8:119}),t(j,a,{8:120}),{5:[1,122],57:[1,121]},{5:[1,124],57:[1,123]},{5:[1,125]},{28:128,74:[1,126],75:[1,127],76:N},t(q,[2,73]),t(q,[2,74]),t(q,[2,75]),t(q,[2,76]),t(q,[2,77]),t(q,[2,78]),t(q,[2,79]),t(q,[2,80]),{28:129,76:N},{28:131,64:130,76:N},{76:[2,67]},{76:[2,68]},{62:132,85:H},{62:134,85:H},{62:135,85:H},{62:136,85:H},t(U,[2,15]),{16:137,89:P},{89:[2,84]},{4:[1,140],5:[1,142],12:139,13:141,22:[1,138],56:C,58:S,59:A},{5:[1,143]},t(B,[2,22]),t(B,[2,23]),t(B,[2,25]),t(B,[2,26]),{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[1,144],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[1,145],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[1,146],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{22:[1,147]},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[2,50],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,55:[1,148],56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{22:[1,149]},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[2,48],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,54:[1,150],56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{22:[1,151]},{22:[1,152]},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[2,46],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,53:[1,153],56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{4:o,5:s,6:43,9:14,10:16,13:18,14:6,19:c,20:u,22:[1,154],23:21,24:l,27:h,28:47,29:f,30:25,31:26,32:27,33:28,34:29,35:d,36:g,37:p,39:b,41:w,42:y,43:m,44:v,45:x,47:k,49:_,50:E,52:T,56:C,58:S,59:A,60:M,65:I,66:L,67:O,68:D,76:N,86:r},{21:[1,155]},t(B,[2,53]),{21:[1,156]},t(B,[2,55]),t(B,[2,56]),{28:157,76:N},{28:158,76:N},{62:159,85:H},{62:160,85:H},{62:161,85:H},{70:[1,162],85:[2,66]},{5:[2,59]},{5:[2,81]},{5:[2,60]},{5:[2,61]},{5:[2,62]},{5:[1,163]},t(B,[2,19]),t(F,[2,11]),{13:164,56:C,58:S,59:A},t(F,[2,13]),t(F,[2,14]),t(B,[2,21]),t(B,[2,37]),t(B,[2,38]),t(B,[2,39]),t(B,[2,40]),{21:[1,165]},t(B,[2,41]),{21:[1,166]},t(B,[2,42]),t(B,[2,43]),{21:[1,167]},t(B,[2,44]),{5:[1,168]},{5:[1,169]},{62:170,85:H},{62:171,85:H},{5:[2,71]},{5:[2,57]},{5:[2,58]},{28:172,76:N},t(U,[2,16]),t(F,[2,12]),t(R,a,{8:114,46:173}),t($,a,{8:116,48:174}),t(z,a,{8:119,51:175}),t(B,[2,52]),t(B,[2,54]),{5:[2,69]},{5:[2,70]},{85:[2,65]},{22:[2,51]},{22:[2,49]},{22:[2,47]}],defaultActions:{7:[2,82],8:[2,1],9:[2,2],10:[2,3],56:[2,85],95:[2,67],96:[2,68],103:[2,84],132:[2,59],133:[2,81],134:[2,60],135:[2,61],136:[2,62],159:[2,71],160:[2,57],161:[2,58],170:[2,69],171:[2,70],172:[2,65],173:[2,51],174:[2,49],175:[2,47]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},Y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),86;case 1:return this.begin("type_directive"),87;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),89;case 4:return 88;case 5:case 56:case 69:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 25;case 12:return this.begin("LINE"),20;case 13:return this.begin("ID"),56;case 14:return this.begin("ID"),58;case 15:return 19;case 16:return this.begin("ID"),59;case 17:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),76;case 18:return this.popState(),this.popState(),this.begin("LINE"),57;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),42;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),44;case 23:return this.begin("LINE"),45;case 24:return this.begin("LINE"),55;case 25:return this.begin("LINE"),47;case 26:return this.begin("LINE"),49;case 27:return this.begin("LINE"),54;case 28:return this.begin("LINE"),50;case 29:return this.begin("LINE"),53;case 30:return this.begin("LINE"),52;case 31:return this.popState(),21;case 32:return 22;case 33:return 71;case 34:return 72;case 35:return 65;case 36:return 66;case 37:return 67;case 38:return 68;case 39:return 63;case 40:return 60;case 41:return this.begin("ID"),27;case 42:return this.begin("ID"),29;case 43:return 35;case 44:return 36;case 45:return this.begin("acc_title"),37;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),39;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 7;case 53:return 24;case 54:return 26;case 55:return 70;case 57:return e.yytext=e.yytext.trim(),76;case 58:return 79;case 59:return 80;case 60:return 77;case 61:return 78;case 62:return 81;case 63:return 82;case 64:return 83;case 65:return 84;case 66:return 85;case 67:return 74;case 68:return 75;case 70:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/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,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,17],inclusive:!1},ALIAS:{rules:[7,8,18,19],inclusive:!1},LINE:{rules:[7,8,31],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],inclusive:!0}}};function K(){this.yy={}}return G.lexer=Y,K.prototype=G,G.Parser=K,new K}();$A.parser=$A;const zA=$A;let qA,HA,UA,GA,YA,KA={},WA={},XA={},VA=[],QA=[],ZA=!1;const JA=function(t,e,n,i){let r=UA;const a=KA[t];if(a){if(UA&&a.box&&UA!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+UA.name+"' at the same time.");if(r=a.box?a.box:UA,a.box=r,a&&e===a.name&&null==n)return}(null==n||null==n.text)&&(n={text:e,wrap:null,type:i}),(null==i||null==n.text)&&(n={text:e,wrap:null,type:i}),KA[t]={box:r,name:e,description:n.text,wrap:void 0===n.wrap&&nM()||!!n.wrap,prevActor:qA,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},qA&&KA[qA]&&(KA[qA].nextActor=t),UA&&UA.actorKeys.push(t),qA=t},tM=function(t,e,n={text:void 0,wrap:void 0},i){if(i===iM.ACTIVE_END&&(t=>{let e,n=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return QA.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&nM()||!!n.wrap,type:i}),!0},eM=function(t){return KA[t]},nM=()=>void 0!==HA?HA:ch().sequence.wrap,iM={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},rM=function(t,e,n){n.text,void 0===n.wrap&&nM()||n.wrap;const i=[].concat(t,t);QA.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&nM()||!!n.wrap,type:iM.NOTE,placement:e})},aM=function(t,e){const n=eM(t);try{let t=Lc(e.text,ch());t=t.replace(/&/g,"&"),t=t.replace(/=/g,"="),oM(n,JSON.parse(t))}catch(t){o.error("error while parsing actor link text",t)}};function oM(t,e){if(null==t.links)t.links=e;else for(let n in e)t.links[n]=e[n]}const sM=function(t,e){const n=eM(t);try{let t=Lc(e.text,ch());cM(n,JSON.parse(t))}catch(t){o.error("error while parsing actor properties text",t)}};function cM(t,e){if(null==t.properties)t.properties=e;else for(let n in e)t.properties[n]=e[n]}const uM=function(t,e){const n=eM(t),i=document.getElementById(e.text);try{const t=i.innerHTML,e=JSON.parse(t);e.properties&&cM(n,e.properties),e.links&&oM(n,e.links)}catch(t){o.error("error while parsing actor details text",t)}},lM=function(t){if(Array.isArray(t))t.forEach((function(t){lM(t)}));else switch(t.type){case"sequenceIndex":QA.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":JA(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(KA[t.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");GA=t.actor,JA(t.actor,t.actor,t.description,t.draw),WA[t.actor]=QA.length;break;case"destroyParticipant":YA=t.actor,XA[t.actor]=QA.length;break;case"activeStart":case"activeEnd":tM(t.actor,void 0,void 0,t.signalType);break;case"addNote":rM(t.actor,t.placement,t.text);break;case"addLinks":aM(t.actor,t.text);break;case"addALink":!function(t,e){const n=eM(t);try{const t={};let o=Lc(e.text,ch());var i=o.indexOf("@");o=o.replace(/&/g,"&"),o=o.replace(/=/g,"=");var r=o.slice(0,i-1).trim(),a=o.slice(i+1).trim();t[r]=a,oM(n,t)}catch(t){o.error("error while parsing actor link text",t)}}(t.actor,t.text);break;case"addProperties":sM(t.actor,t.text);break;case"addDetails":uM(t.actor,t.text);break;case"addMessage":if(GA){if(t.to!==GA)throw new Error("The created participant "+GA+" does not have an associated creating message after its declaration. Please check the sequence diagram.");GA=void 0}else if(YA){if(t.to!==YA&&t.from!==YA)throw new Error("The destroyed participant "+YA+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");YA=void 0}tM(t.from,t.to,t.msg,t.signalType);break;case"boxStart":!function(t){VA.push({name:t.text,wrap:void 0===t.wrap&&nM()||!!t.wrap,fill:t.color,actorKeys:[]}),UA=VA.slice(-1)[0]}(t.boxData);break;case"boxEnd":UA=void 0;break;case"loopStart":tM(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":tM(void 0,void 0,void 0,t.signalType);break;case"rectStart":tM(void 0,void 0,t.color,t.signalType);break;case"optStart":tM(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":tM(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":_h(t.text);break;case"parStart":case"and":tM(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":tM(void 0,void 0,t.criticalText,t.signalType);break;case"option":tM(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":tM(void 0,void 0,t.breakText,t.signalType)}},hM={addActor:JA,addMessage:function(t,e,n,i){QA.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&nM()||!!n.wrap,answer:i})},addSignal:tM,addLinks:aM,addDetails:uM,addProperties:sM,autoWrap:nM,setWrap:function(t){HA=t},enableSequenceNumbers:function(){ZA=!0},disableSequenceNumbers:function(){ZA=!1},showSequenceNumbers:()=>ZA,getMessages:function(){return QA},getActors:function(){return KA},getCreatedActors:function(){return WA},getDestroyedActors:function(){return XA},getActor:eM,getActorKeys:function(){return Object.keys(KA)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:Eh,getBoxes:function(){return VA},getDiagramTitle:Ah,setDiagramTitle:Sh,parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().sequence,clear:function(){KA={},WA={},XA={},VA=[],QA=[],ZA=!1,kh()},parseMessage:function(t){const e=t.trim(),n={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return o.debug("parseMessage:",n),n},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let n=null!=e&&e[1]?e[1].trim():"transparent",i=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",i=t.trim());else{const e=(new Option).style;e.color=n,e.color!==n&&(n="transparent",i=t.trim())}return{color:n,text:void 0!==i?Lc(i.replace(/^:?(?:no)?wrap:/,""),ch()):void 0,wrap:void 0!==i?null!==i.match(/^:?wrap:/)||null===i.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:iM,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:rM,setAccTitle:_h,apply:lM,setAccDescription:Th,getAccDescription:Ch,hasAtLeastOneBox:function(){return VA.length>0},hasAtLeastOneBoxWithTitle:function(){return VA.some((t=>t.name))}},fM=function(t,e){return db(t,e)},dM=(t,e)=>{(t=>{Fg.push(t)})((()=>{const n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){gM("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){pM("actor"+e+"_popup")})))}))},gM=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},pM=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},bM=function(t,e){let n=0,i=0;const r=e.text.split(Bc.lineBreakRegex),[a,o]=ad(e.fontSize);let s=[],c=0,u=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":u=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":u=()=>Math.round(e.y+(n+i+e.textMargin)/2);break;case"bottom":case"end":u=()=>Math.round(e.y+(n+i+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[l,h]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==a&&(c=l*a);const r=t.append("text");r.attr("x",e.x),r.attr("y",u()),void 0!==e.anchor&&r.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&r.style("font-family",e.fontFamily),void 0!==o&&r.style("font-size",o),void 0!==e.fontWeight&&r.style("font-weight",e.fontWeight),void 0!==e.fill&&r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class),void 0!==e.dy?r.attr("dy",e.dy):0!==c&&r.attr("dy",c);const f=h||"​";if(e.tspan){const t=r.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(f)}else r.text(f);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(i+=(r._groups||r)[0][0].getBBox().height,n=i),s.push(r)}return s},wM=function(t,e){const n=t.append("polygon");return n.attr("points",(i=e.x)+","+(r=e.y)+" "+(i+(a=e.width))+","+r+" "+(i+a)+","+(r+(o=e.height)-7)+" "+(i+a-8.4)+","+(r+o)+" "+i+","+(r+o)),n.attr("class","labelBox"),e.y=e.y+e.height/2,bM(t,e),n;var i,r,a,o};let yM=-1;const mM=(t,e,n,i)=>{t.select&&n.forEach((n=>{const r=e[n],a=t.select("#actor"+r.actorCnt);!i.mirrorActors&&r.stopy?a.attr("y2",r.stopy+r.height/2):i.mirrorActors&&a.attr("y2",r.stopy)}))},vM=function(t,e){!function(t,e){db(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()}(t,e)},xM=function(){function t(t,e,n,r,a,o,s){i(e.append("text").attr("x",n+a/2).attr("y",r+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,a,o,s,c){const{actorFontSize:u,actorFontFamily:l,actorFontWeight:h}=c,[f,d]=ad(u),g=t.split(Bc.lineBreakRegex);for(let t=0;tn?s.width:n;const d=u.append("rect");if(d.attr("class","actorPopupMenuPanel"+l),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",f),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=a){var g=20;for(let t in a){var p=u.append("a"),b=h(a[t]);p.attr("xlink:href",b),p.attr("target","_blank"),kM(i)(t,p,s.x+10,s.height+g,f,20,{class:"actor"},i),g+=30}}return d.attr("height",g),{height:s.height+g,width:f}},SM=function(t){return t.append("g")},AM=function(t,e,n,i,r){const a={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0},o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+r%3,a.width=e.stopx-e.startx,a.height=n-e.starty,fM(o,a)},MM=function(t,e,n,i){const{boxMargin:r,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:s,messageFontFamily:c,messageFontSize:u,messageFontWeight:l}=i,h=t.append("g"),f=function(t,e,n,i){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",i).attr("class","loopLine")};f(e.startx,e.starty,e.stopx,e.starty),f(e.stopx,e.starty,e.stopx,e.stopy),f(e.startx,e.stopy,e.stopx,e.stopy),f(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){f(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let d={x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};d.text=n,d.x=e.startx,d.y=e.starty,d.fontFamily=c,d.fontSize=u,d.fontWeight=l,d.anchor="middle",d.valign="middle",d.tspan=!1,d.width=s||50,d.height=o||20,d.textMargin=a,d.class="labelText",wM(h,d),d={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},d.text=e.title,d.x=e.startx+s/2+(e.stopx-e.startx)/2,d.y=e.starty+r+a,d.anchor="middle",d.valign="middle",d.textMargin=a,d.class="loopText",d.fontFamily=c,d.fontSize=u,d.fontWeight=l,d.wrap=!0;let g=bM(h,d);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){d.text=t.message,d.x=e.startx+(e.stopx-e.startx)/2,d.y=e.sections[n].y+r+a,d.class="loopText",d.anchor="middle",d.valign="middle",d.tspan=!1,d.fontFamily=c,d.fontSize=u,d.fontWeight=l,d.wrap=e.wrap,g=bM(h,d);let i=Math.round(g.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[n].height+=i-(r+a)}})),e.height=Math.round(e.stopy-e.starty),h},IM=vM,LM=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},OM=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},DM=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},NM=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",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")},PM=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},BM=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},FM=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")};let jM={};const RM={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init: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,GM(ch())},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=this;let a=0;function o(o){return function(s){a++;const c=r.sequenceItems.length-a+1;r.updateVal(s,"starty",e-c*jM.boxMargin,Math.min),r.updateVal(s,"stopy",i+c*jM.boxMargin,Math.max),r.updateVal(RM.data,"startx",t-c*jM.boxMargin,Math.min),r.updateVal(RM.data,"stopx",n+c*jM.boxMargin,Math.max),"activation"!==o&&(r.updateVal(s,"startx",t-c*jM.boxMargin,Math.min),r.updateVal(s,"stopx",n+c*jM.boxMargin,Math.max),r.updateVal(RM.data,"starty",e-c*jM.boxMargin,Math.min),r.updateVal(RM.data,"stopy",i+c*jM.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,i){const r=Bc.getMin(t,n),a=Bc.getMax(t,n),o=Bc.getMin(e,i),s=Bc.getMax(e,i);this.updateVal(RM.data,"startx",r,Math.min),this.updateVal(RM.data,"starty",o,Math.min),this.updateVal(RM.data,"stopx",a,Math.max),this.updateVal(RM.data,"stopy",s,Math.max),this.updateBounds(r,o,a,s)},newActivation:function(t,e,n){const i=n[t.from.actor],r=YM(t.from.actor).length||0,a=i.x+i.width/2+(r-1)*jM.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+jM.activationWidth,stopy:void 0,actor:t.from.actor,anchored:SM(e)})},endActivation:function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:RM.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=Bc.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},$M=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),zM=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),qM=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),HM=function(t,e,n,i){if(i){let i=0;RM.bumpVerticalPos(2*jM.boxMargin);for(const r of n){const n=e[r];n.stopy||(n.stopy=RM.getVerticalPos());const a=EM(t,n,jM,!0);i=Bc.getMax(i,a)}RM.bumpVerticalPos(i+jM.boxMargin)}else for(const i of n){const n=e[i];EM(t,n,jM,!1)}},UM=function(t,e,n,i){let r=0,a=0;for(const o of n){const n=e[o],s=XM(n),c=CM(t,n,s,jM,jM.forceMenus,i);c.height>r&&(r=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:r,maxWidth:a}},GM=function(t){Jl(jM,t),t.fontFamily&&(jM.actorFontFamily=jM.noteFontFamily=jM.messageFontFamily=t.fontFamily),t.fontSize&&(jM.actorFontSize=jM.noteFontSize=jM.messageFontSize=t.fontSize),t.fontWeight&&(jM.actorFontWeight=jM.noteFontWeight=jM.messageFontWeight=t.fontWeight)},YM=function(t){return RM.activations.filter((function(e){return e.actor===t}))},KM=function(t,e){const n=e[t],i=YM(t);return[i.reduce((function(t,e){return Bc.getMin(t,e.startx)}),n.x+n.width/2),i.reduce((function(t,e){return Bc.getMax(t,e.stopx)}),n.x+n.width/2)]};function WM(t,e,n,i,r){RM.bumpVerticalPos(n);let a=i;if(e.id&&e.message&&t[e.id]){const n=t[e.id].width,r=$M(jM);e.message=od.wrapLabel(`[${e.message}]`,n-2*jM.wrapPadding,r),e.width=n,e.wrap=!0;const s=od.calculateTextDimensions(e.message,r),c=Bc.getMax(s.height,jM.labelBoxHeight);a=i+c,o.debug(`${c} - ${e.message}`)}r(e),RM.bumpVerticalPos(a)}const XM=function(t){let e=0;const n=qM(jM);for(const i in t.links){const t=od.calculateTextDimensions(i,n).width+2*jM.wrapPadding+2*jM.boxMargin;e{const n=t[e];n.wrap&&(n.description=od.wrapLabel(n.description,jM.width-2*jM.wrapPadding,qM(jM)));const r=od.calculateTextDimensions(n.description,qM(jM));n.width=n.wrap?jM.width:Bc.getMax(jM.width,r.width+2*jM.wrapPadding),n.height=n.wrap?Bc.getMax(r.height,jM.height):jM.height,i=Bc.getMax(i,n.height)}));for(const n in e){const i=t[n];if(!i)continue;const r=t[i.nextActor];if(!r){const t=e[n]+jM.actorMargin-i.width/2;i.margin=Bc.getMax(t,jM.actorMargin);continue}const a=e[n]+jM.actorMargin-i.width/2-r.width/2;i.margin=Bc.getMax(a,jM.actorMargin)}let r=0;return n.forEach((e=>{const n=$M(jM);let i=e.actorKeys.reduce(((e,n)=>e+(t[n].width+(t[n].margin||0))),0);i-=2*jM.boxTextMargin,e.wrap&&(e.name=od.wrapLabel(e.name,i-2*jM.wrapPadding,n));const a=od.calculateTextDimensions(e.name,n);r=Bc.getMax(a.height,r);const o=Bc.getMax(i,a.width+2*jM.wrapPadding);if(e.margin=jM.boxTextMargin,it.textMaxHeight=r)),Bc.getMax(i,jM.height)}(h,v,g),BM(l),PM(l),FM(l),y&&(RM.bumpVerticalPos(jM.boxMargin),m&&RM.bumpVerticalPos(g[0].textMaxHeight)),!0===jM.hideUnusedParticipants){const t=new Set;b.forEach((e=>{t.add(e.from),t.add(e.to)})),p=p.filter((e=>t.has(e)))}!function(t,e,n,i,r,a,o){let s,c=0,u=0,l=0;for(const t of i){const i=e[t],r=i.box;s&&s!=r&&(RM.models.addBox(s),u+=jM.boxMargin+s.margin),r&&r!=s&&(r.x=c+u,r.y=0,u+=r.margin),i.width=i.width||jM.width,i.height=Bc.getMax(i.height||jM.height,jM.height),i.margin=i.margin||jM.actorMargin,l=Bc.getMax(l,i.height),n[i.name]&&(u+=i.width/2),i.x=c+u,i.starty=RM.getVerticalPos(),RM.insert(i.x,0,i.x+i.width,i.height),c+=i.width+u,i.box&&(i.box.width=c+r.margin-i.box.x),u=i.margin,s=i.box,RM.models.addActor(i)}s&&RM.models.addBox(s),RM.bumpVerticalPos(l)}(0,h,f,p);const x=function(t,e,n,i){const r={},a=[];let s,c,u;return t.forEach((function(t){switch(t.id=od.random({length:10}),t.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:t.id,msg:t.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:t.message&&(s=a.pop(),r[s.id]=s,r[t.id]=s,a.push(s));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:s=a.pop(),r[s.id]=s;break;case i.db.LINETYPE.ACTIVE_START:{const n=e[t.from?t.from.actor:t.to.actor],i=YM(t.from?t.from.actor:t.to.actor).length,r=n.x+n.width/2+(i-1)*jM.activationWidth/2,a={startx:r,stopx:r+jM.activationWidth,actor:t.from.actor,enabled:!0};RM.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{const e=RM.activations.map((t=>t.actor)).lastIndexOf(t.from.actor);delete RM.activations.splice(e,1)[0]}}void 0!==t.placement?(c=function(t,e,n){const i=e[t.from].x,r=e[t.to].x,a=t.wrap&&t.message;let s=od.calculateTextDimensions(a?od.wrapLabel(t.message,jM.width,zM(jM)):t.message,zM(jM));const c={width:a?jM.width:Bc.getMax(jM.width,s.width+2*jM.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===n.db.PLACEMENT.RIGHTOF?(c.width=a?Bc.getMax(jM.width,s.width):Bc.getMax(e[t.from].width/2+e[t.to].width/2,s.width+2*jM.noteMargin),c.startx=i+(e[t.from].width+jM.actorMargin)/2):t.placement===n.db.PLACEMENT.LEFTOF?(c.width=a?Bc.getMax(jM.width,s.width+2*jM.noteMargin):Bc.getMax(e[t.from].width/2+e[t.to].width/2,s.width+2*jM.noteMargin),c.startx=i-c.width+(e[t.from].width-jM.actorMargin)/2):t.to===t.from?(s=od.calculateTextDimensions(a?od.wrapLabel(t.message,Bc.getMax(jM.width,e[t.from].width),zM(jM)):t.message,zM(jM)),c.width=a?Bc.getMax(jM.width,e[t.from].width):Bc.getMax(e[t.from].width,jM.width,s.width+2*jM.noteMargin),c.startx=i+(e[t.from].width-c.width)/2):(c.width=Math.abs(i+e[t.from].width/2-(r+e[t.to].width/2))+jM.actorMargin,c.startx=i{s=t,s.from=Bc.getMin(s.from,c.startx),s.to=Bc.getMax(s.to,c.startx+c.width),s.width=Bc.getMax(s.width,Math.abs(s.from-s.to))-jM.labelBoxWidth}))):(u=function(t,e,n){let i=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(i=!0),!i)return{};const r=KM(t.from,e),a=KM(t.to,e),o=r[0]<=a[0]?1:0,s=r[0]0&&a.forEach((n=>{if(s=n,u.startx===u.stopx){const n=e[t.from],i=e[t.to];s.from=Bc.getMin(n.x-u.width/2,n.x-n.width/2,s.from),s.to=Bc.getMax(i.x+u.width/2,i.x+n.width/2,s.to),s.width=Bc.getMax(s.width,Math.abs(s.to-s.from))-jM.labelBoxWidth}else s.from=Bc.getMin(u.startx,s.from),s.to=Bc.getMax(u.stopx,s.to),s.width=Bc.getMax(s.width,u.width)-jM.labelBoxWidth})))})),RM.activations=[],o.debug("Loop type widths:",r),r}(b,h,0,i);LM(l),NM(l),OM(l),DM(l);let k=1,_=1;const E=[],T=[];b.forEach((function(t,e){let n,r,a;switch(t.type){case i.db.LINETYPE.NOTE:RM.resetVerticalPos(),r=t.noteModel,function(t,e){RM.bumpVerticalPos(jM.boxMargin),e.height=jM.boxMargin,e.starty=RM.getVerticalPos();const n={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};n.x=e.startx,n.y=e.starty,n.width=e.width||jM.width,n.class="note";const i=t.append("g"),r=_M(i,n),a={x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=jM.noteFontFamily,a.fontSize=jM.noteFontSize,a.fontWeight=jM.noteFontWeight,a.anchor=jM.noteAlign,a.textMargin=jM.noteMargin,a.valign="center";const o=bM(i,a),s=Math.round(o.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));r.attr("height",s+2*jM.noteMargin),e.height+=s+2*jM.noteMargin,RM.bumpVerticalPos(s+2*jM.noteMargin),e.stopy=e.starty+s+2*jM.noteMargin,e.stopx=e.startx+n.width,RM.insert(e.startx,e.starty,e.stopx,e.stopy),RM.models.addNote(e)}(l,r);break;case i.db.LINETYPE.ACTIVE_START:RM.newActivation(t,l,h);break;case i.db.LINETYPE.ACTIVE_END:!function(t,e){const n=RM.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),AM(l,n,e,jM,YM(t.from.actor).length),RM.insert(n.startx,e-10,n.stopx,e)}(t,RM.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t)));break;case i.db.LINETYPE.LOOP_END:n=RM.endLoop(),MM(l,n,"loop",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;case i.db.LINETYPE.RECT_START:WM(x,t,jM.boxMargin,jM.boxMargin,(t=>RM.newLoop(void 0,t.message)));break;case i.db.LINETYPE.RECT_END:n=RM.endLoop(),T.push(n),RM.models.addLoop(n),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos());break;case i.db.LINETYPE.OPT_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t)));break;case i.db.LINETYPE.OPT_END:n=RM.endLoop(),MM(l,n,"opt",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;case i.db.LINETYPE.ALT_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t)));break;case i.db.LINETYPE.ALT_ELSE:WM(x,t,jM.boxMargin+jM.boxTextMargin,jM.boxMargin,(t=>RM.addSectionToLoop(t)));break;case i.db.LINETYPE.ALT_END:n=RM.endLoop(),MM(l,n,"alt",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t))),RM.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:WM(x,t,jM.boxMargin+jM.boxTextMargin,jM.boxMargin,(t=>RM.addSectionToLoop(t)));break;case i.db.LINETYPE.PAR_END:n=RM.endLoop(),MM(l,n,"par",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;case i.db.LINETYPE.AUTONUMBER:k=t.message.start||k,_=t.message.step||_,t.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t)));break;case i.db.LINETYPE.CRITICAL_OPTION:WM(x,t,jM.boxMargin+jM.boxTextMargin,jM.boxMargin,(t=>RM.addSectionToLoop(t)));break;case i.db.LINETYPE.CRITICAL_END:n=RM.endLoop(),MM(l,n,"critical",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;case i.db.LINETYPE.BREAK_START:WM(x,t,jM.boxMargin,jM.boxMargin+jM.boxTextMargin,(t=>RM.newLoop(t)));break;case i.db.LINETYPE.BREAK_END:n=RM.endLoop(),MM(l,n,"break",jM),RM.bumpVerticalPos(n.stopy-RM.getVerticalPos()),RM.models.addLoop(n);break;default:try{a=t.msgModel,a.starty=RM.getVerticalPos(),a.sequenceIndex=k,a.sequenceVisible=i.db.showSequenceNumbers();const n=function(t,e){RM.bumpVerticalPos(10);const{startx:n,stopx:i,message:r}=e,a=Bc.splitBreaks(r).length,o=od.calculateTextDimensions(r,$M(jM)),s=o.height/a;e.height+=s,RM.bumpVerticalPos(s);let c,u=o.height-10;const l=o.width;if(n===i){c=RM.getVerticalPos()+u,jM.rightAngles||(u+=jM.boxMargin,c=RM.getVerticalPos()+u),u+=30;const t=Bc.getMax(l/2,jM.width/2);RM.insert(n-t,RM.getVerticalPos()-10+u,i+t,RM.getVerticalPos()+30+u)}else u+=jM.boxMargin,c=RM.getVerticalPos()+u,RM.insert(n,c-10,i,c);return RM.bumpVerticalPos(u),e.height+=u,e.stopy=e.starty+e.height,RM.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),c}(0,a);(function(t,e,n,i,r,a,o){function s(n,i){n.xfunction(t,e,n,i){const{startx:r,stopx:a,starty:o,message:s,type:c,sequenceIndex:u,sequenceVisible:l}=e,h=od.calculateTextDimensions(s,$M(jM)),f={x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};f.x=r,f.y=o+10,f.width=a-r,f.class="messageText",f.dy="1em",f.text=s,f.fontFamily=jM.messageFontFamily,f.fontSize=jM.messageFontSize,f.fontWeight=jM.messageFontWeight,f.anchor=jM.messageAlign,f.valign="center",f.textMargin=jM.wrapPadding,f.tspan=!1,bM(t,f);const d=h.width;let g;r===a?g=jM.rightAngles?t.append("path").attr("d",`M ${r},${n} H ${r+Bc.getMax(jM.width/2,d/2)} V ${n+25} H ${r}`):t.append("path").attr("d","M "+r+","+n+" C "+(r+60)+","+(n-10)+" "+(r+60)+","+(n+30)+" "+r+","+(n+20)):(g=t.append("line"),g.attr("x1",r),g.attr("y1",n),g.attr("x2",a),g.attr("y2",n)),c===i.db.LINETYPE.DOTTED||c===i.db.LINETYPE.DOTTED_CROSS||c===i.db.LINETYPE.DOTTED_POINT||c===i.db.LINETYPE.DOTTED_OPEN?(g.style("stroke-dasharray","3, 3"),g.attr("class","messageLine1")):g.attr("class","messageLine0");let p="";jM.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),g.attr("stroke-width",2),g.attr("stroke","none"),g.style("fill","none"),(c===i.db.LINETYPE.SOLID||c===i.db.LINETYPE.DOTTED)&&g.attr("marker-end","url("+p+"#arrowhead)"),(c===i.db.LINETYPE.SOLID_POINT||c===i.db.LINETYPE.DOTTED_POINT)&&g.attr("marker-end","url("+p+"#filled-head)"),(c===i.db.LINETYPE.SOLID_CROSS||c===i.db.LINETYPE.DOTTED_CROSS)&&g.attr("marker-end","url("+p+"#crosshead)"),(l||jM.showSequenceNumbers)&&(g.attr("marker-start","url("+p+"#sequencenumber)"),t.append("text").attr("x",r).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(u))}(l,t.messageModel,t.lineStartY,i))),jM.mirrorActors&&HM(l,h,p,!0),T.forEach((t=>IM(l,t))),mM(l,h,p,jM),RM.models.boxes.forEach((function(t){t.height=RM.getVerticalPos()-t.y,RM.insert(t.x,t.y,t.x+t.width,t.height),t.startx=t.x,t.starty=t.y,t.stopx=t.startx+t.width,t.stopy=t.starty+t.height,t.stroke="rgb(0,0,0, 0.5)",TM(l,t,jM)})),y&&RM.bumpVerticalPos(jM.boxMargin);const C=UM(l,h,p,u),{bounds:S}=RM.getBounds();let A=S.stopy-S.starty;A`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`}},Symbol.toStringTag,{value:"Module"}));var QM=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,34],n=[1,35],i=[1,36],r=[1,37],a=[1,9],o=[1,8],s=[1,19],c=[1,20],u=[1,21],l=[1,40],h=[1,41],f=[1,27],d=[1,25],g=[1,26],p=[1,32],b=[1,33],w=[1,28],y=[1,29],m=[1,30],v=[1,31],x=[1,45],k=[1,42],_=[1,43],E=[1,44],T=[1,46],C=[1,24],S=[1,16,24],A=[1,60],M=[1,61],I=[1,62],L=[1,63],O=[1,64],D=[1,65],N=[1,66],P=[1,16,24,52],B=[1,77],F=[1,16,24,27,28,36,50,52,55,68,69,70,71,72,73,74,79,81],j=[1,16,24,27,28,34,36,50,52,55,59,68,69,70,71,72,73,74,79,81,94,96,97,98,99],R=[1,86],$=[28,94,96,97,98,99],z=[28,73,74,94,96,97,98,99],q=[28,68,69,70,71,72,94,96,97,98,99],H=[1,99],U=[1,16,24,50,52,55],G=[1,16,24,36],Y=[8,9,10,11,19,23,44,46,48,53,57,58,60,61,63,65,75,76,78,82,94,96,97,98,99],K={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,statements:6,direction:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,EOF:24,statement:25,classLabel:26,SQS:27,STR:28,SQE:29,namespaceName:30,alphaNumToken:31,className:32,classLiteralName:33,GENERICTYPE:34,relationStatement:35,LABEL:36,namespaceStatement:37,classStatement:38,methodStatement:39,annotationStatement:40,clickStatement:41,cssClassStatement:42,noteStatement:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,namespaceIdentifier:49,STRUCT_START:50,classStatements:51,STRUCT_STOP:52,NAMESPACE:53,classIdentifier:54,STYLE_SEPARATOR:55,members:56,CLASS:57,ANNOTATION_START:58,ANNOTATION_END:59,MEMBER:60,SEPARATOR:61,relation:62,NOTE_FOR:63,noteText:64,NOTE: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,CSSCLASS:82,commentToken:83,textToken:84,graphCodeTokens:85,textNoTagsToken:86,TAGSTART:87,TAGEND:88,"==":89,"--":90,PCT:91,DEFAULT:92,SPACE:93,MINUS:94,keywords:95,UNICODE_TEXT:96,NUM:97,ALPHA:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",24:"EOF",27:"SQS",28:"STR",29:"SQE",34:"GENERICTYPE",36:"LABEL",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",50:"STRUCT_START",52:"STRUCT_STOP",53:"NAMESPACE",55:"STYLE_SEPARATOR",57:"CLASS",58:"ANNOTATION_START",59:"ANNOTATION_END",60:"MEMBER",61:"SEPARATOR",63:"NOTE_FOR",65:"NOTE",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:"CSSCLASS",85:"graphCodeTokens",87:"TAGSTART",88:"TAGEND",89:"==",90:"--",91:"PCT",92:"DEFAULT",93:"SPACE",94:"MINUS",95:"keywords",96:"UNICODE_TEXT",97:"NUM",98:"ALPHA",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,2],[3,1],[7,1],[7,1],[7,1],[7,1],[4,1],[5,4],[5,6],[13,1],[14,1],[18,1],[15,1],[12,4],[6,1],[6,2],[6,3],[26,3],[30,1],[30,2],[32,1],[32,1],[32,2],[32,2],[32,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,2],[25,2],[25,1],[37,4],[37,5],[49,2],[51,1],[51,2],[51,3],[38,1],[38,3],[38,4],[38,6],[54,2],[54,3],[40,4],[56,1],[56,2],[39,1],[39,2],[39,1],[39,1],[35,3],[35,4],[35,4],[35,5],[43,3],[43,2],[62,3],[62,2],[62,2],[62,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[41,3],[41,4],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[41,4],[41,5],[41,5],[41,6],[42,3],[83,1],[83,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[86,1],[86,1],[86,1],[86,1],[31,1],[31,1],[31,1],[31,1],[33,1],[64,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:i.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","class");break;case 19:this.$=a[s-1];break;case 20:case 22:case 23:this.$=a[s];break;case 21:case 24:this.$=a[s-1]+a[s];break;case 25:case 26:this.$=a[s-1]+"~"+a[s]+"~";break;case 27:i.addRelation(a[s]);break;case 28:a[s-1].title=i.cleanupLabel(a[s]),i.addRelation(a[s-1]);break;case 37:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 40:i.addClassesToNamespace(a[s-3],a[s-1]);break;case 41:i.addClassesToNamespace(a[s-4],a[s-1]);break;case 42:this.$=a[s],i.addNamespace(a[s]);break;case 43:case 53:this.$=[a[s]];break;case 44:this.$=[a[s-1]];break;case 45:a[s].unshift(a[s-2]),this.$=a[s];break;case 47:i.setCssClass(a[s-2],a[s]);break;case 48:i.addMembers(a[s-3],a[s-1]);break;case 49:i.setCssClass(a[s-5],a[s-3]),i.addMembers(a[s-5],a[s-1]);break;case 50:this.$=a[s],i.addClass(a[s]);break;case 51:this.$=a[s-1],i.addClass(a[s-1]),i.setClassLabel(a[s-1],a[s]);break;case 52:i.addAnnotation(a[s],a[s-2]);break;case 54:a[s].push(a[s-1]),this.$=a[s];break;case 55:case 57:case 58:break;case 56:i.addMember(a[s-1],i.cleanupLabel(a[s]));break;case 59:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 60:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 61:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 62:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 63:i.addNote(a[s],a[s-1]);break;case 64:i.addNote(a[s]);break;case 65:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 66:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 67:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 69:this.$=i.relationType.AGGREGATION;break;case 70:this.$=i.relationType.EXTENSION;break;case 71:this.$=i.relationType.COMPOSITION;break;case 72:this.$=i.relationType.DEPENDENCY;break;case 73:this.$=i.relationType.LOLLIPOP;break;case 74:this.$=i.lineType.LINE;break;case 75:this.$=i.lineType.DOTTED_LINE;break;case 76:case 82:this.$=a[s-2],i.setClickEvent(a[s-1],a[s]);break;case 77:case 83:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 78:this.$=a[s-2],i.setLink(a[s-1],a[s]);break;case 79:this.$=a[s-3],i.setLink(a[s-2],a[s-1],a[s]);break;case 80:this.$=a[s-3],i.setLink(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 81:this.$=a[s-4],i.setLink(a[s-3],a[s-2],a[s]),i.setTooltip(a[s-3],a[s-1]);break;case 84:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 85:this.$=a[s-4],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 86:this.$=a[s-3],i.setLink(a[s-2],a[s]);break;case 87:this.$=a[s-4],i.setLink(a[s-3],a[s-1],a[s]);break;case 88:this.$=a[s-4],i.setLink(a[s-3],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 89:this.$=a[s-5],i.setLink(a[s-4],a[s-2],a[s]),i.setTooltip(a[s-4],a[s-1]);break;case 90:i.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:3,6:4,7:18,8:e,9:n,10:i,11:r,12:5,13:6,19:a,23:o,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:s,46:c,48:u,49:23,53:l,54:24,57:h,58:f,60:d,61:g,63:p,65:b,75:w,76:y,78:m,82:v,94:x,96:k,97:_,98:E,99:T},{1:[3]},{1:[2,1]},{3:47,4:2,5:3,6:4,7:18,8:e,9:n,10:i,11:r,12:5,13:6,19:a,23:o,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:s,46:c,48:u,49:23,53:l,54:24,57:h,58:f,60:d,61:g,63:p,65:b,75:w,76:y,78:m,82:v,94:x,96:k,97:_,98:E,99:T},{1:[2,3]},{1:[2,8]},{14:48,20:[1,49]},t(C,[2,16],{16:[1,50]}),{16:[1,51]},{20:[2,11]},t(S,[2,27],{36:[1,52]}),t(S,[2,29]),t(S,[2,30]),t(S,[2,31]),t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),{45:[1,53]},{47:[1,54]},t(S,[2,39]),t(S,[2,55],{62:55,66:58,67:59,28:[1,56],36:[1,57],68:A,69:M,70:I,71:L,72:O,73:D,74:N}),{50:[1,67]},t(P,[2,46],{50:[1,69],55:[1,68]}),t(S,[2,57]),t(S,[2,58]),{31:70,94:x,96:k,97:_,98:E},{31:38,32:71,33:39,94:x,96:k,97:_,98:E,99:T},{31:38,32:72,33:39,94:x,96:k,97:_,98:E,99:T},{31:38,32:73,33:39,94:x,96:k,97:_,98:E,99:T},{28:[1,74]},{31:38,32:75,33:39,94:x,96:k,97:_,98:E,99:T},{28:B,64:76},t(S,[2,4]),t(S,[2,5]),t(S,[2,6]),t(S,[2,7]),t(F,[2,22],{31:38,33:39,32:78,34:[1,79],94:x,96:k,97:_,98:E,99:T}),t(F,[2,23],{34:[1,80]}),{30:81,31:82,94:x,96:k,97:_,98:E},{31:38,32:83,33:39,94:x,96:k,97:_,98:E,99:T},t(j,[2,104]),t(j,[2,105]),t(j,[2,106]),t(j,[2,107]),t([1,16,24,27,28,34,36,50,52,55,68,69,70,71,72,73,74,79,81],[2,108]),{1:[2,2]},{15:84,17:[1,85],22:R},t([17,22],[2,12]),t(C,[2,17],{25:7,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,7:18,32:22,49:23,54:24,31:38,33:39,6:87,8:e,9:n,10:i,11:r,44:s,46:c,48:u,53:l,57:h,58:f,60:d,61:g,63:p,65:b,75:w,76:y,78:m,82:v,94:x,96:k,97:_,98:E,99:T}),{6:88,7:18,8:e,9:n,10:i,11:r,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:s,46:c,48:u,49:23,53:l,54:24,57:h,58:f,60:d,61:g,63:p,65:b,75:w,76:y,78:m,82:v,94:x,96:k,97:_,98:E,99:T},t(S,[2,28]),t(S,[2,37]),t(S,[2,38]),{28:[1,90],31:38,32:89,33:39,94:x,96:k,97:_,98:E,99:T},{62:91,66:58,67:59,68:A,69:M,70:I,71:L,72:O,73:D,74:N},t(S,[2,56]),{67:92,73:D,74:N},t($,[2,68],{66:93,68:A,69:M,70:I,71:L,72:O}),t(z,[2,69]),t(z,[2,70]),t(z,[2,71]),t(z,[2,72]),t(z,[2,73]),t(q,[2,74]),t(q,[2,75]),{16:[1,95],38:96,51:94,54:24,57:h},{31:97,94:x,96:k,97:_,98:E},{56:98,60:H},{59:[1,100]},{28:[1,101]},{28:[1,102]},{79:[1,103],81:[1,104]},{31:105,94:x,96:k,97:_,98:E},{28:B,64:106},t(S,[2,64]),t(S,[2,109]),t(F,[2,24]),t(F,[2,25]),t(F,[2,26]),{50:[2,42]},{30:107,31:82,50:[2,20],94:x,96:k,97:_,98:E},t(U,[2,50],{26:108,27:[1,109]}),{16:[1,110]},{18:111,21:[1,112]},{16:[2,14]},t(C,[2,18]),{24:[1,113]},t(G,[2,59]),{31:38,32:114,33:39,94:x,96:k,97:_,98:E,99:T},{28:[1,116],31:38,32:115,33:39,94:x,96:k,97:_,98:E,99:T},t($,[2,67],{66:117,68:A,69:M,70:I,71:L,72:O}),t($,[2,66]),{52:[1,118]},{38:96,51:119,54:24,57:h},{16:[1,120],52:[2,43]},t(P,[2,47],{50:[1,121]}),{52:[1,122]},{52:[2,53],56:123,60:H},{31:38,32:124,33:39,94:x,96:k,97:_,98:E,99:T},t(S,[2,76],{28:[1,125]}),t(S,[2,78],{28:[1,127],77:[1,126]}),t(S,[2,82],{28:[1,128],80:[1,129]}),{28:[1,130]},t(S,[2,90]),t(S,[2,63]),{50:[2,21]},t(U,[2,51]),{28:[1,131]},t(Y,[2,9]),{15:132,22:R},{22:[2,13]},{1:[2,15]},t(G,[2,61]),t(G,[2,60]),{31:38,32:133,33:39,94:x,96:k,97:_,98:E,99:T},t($,[2,65]),t(S,[2,40]),{52:[1,134]},{38:96,51:135,52:[2,44],54:24,57:h},{56:136,60:H},t(P,[2,48]),{52:[2,54]},t(S,[2,52]),t(S,[2,77]),t(S,[2,79]),t(S,[2,80],{77:[1,137]}),t(S,[2,83]),t(S,[2,84],{28:[1,138]}),t(S,[2,86],{28:[1,140],77:[1,139]}),{29:[1,141]},{16:[1,142]},t(G,[2,62]),t(S,[2,41]),{52:[2,45]},{52:[1,143]},t(S,[2,81]),t(S,[2,85]),t(S,[2,87]),t(S,[2,88],{77:[1,144]}),t(U,[2,19]),t(Y,[2,10]),t(P,[2,49]),t(S,[2,89])],defaultActions:{2:[2,1],4:[2,3],5:[2,8],9:[2,11],47:[2,2],81:[2,42],86:[2,14],107:[2,21],112:[2,13],113:[2,15],123:[2,54],135:[2,45]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},W={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 34:case 39:case 43:case 50:break;case 11:return this.begin("acc_title"),44;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),46;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 24:case 27:case 29:case 61:case 64:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 38:return 16;case 20:case 21:return 23;case 22:case 40:case 48:return"EDGE_STATE";case 23:this.begin("callback_name");break;case 25:this.popState(),this.begin("callback_args");break;case 26:return 79;case 28:return 80;case 30:return"STR";case 31:this.begin("string");break;case 32:return this.begin("namespace"),53;case 33:case 42:return this.popState(),16;case 35:return this.begin("namespace-body"),50;case 36:case 46:return this.popState(),52;case 37:case 47:return"EOF_IN_STRUCT";case 41:return this.begin("class"),57;case 44:return this.popState(),this.popState(),52;case 45:return this.begin("class-body"),50;case 49:return"OPEN_IN_STRUCT";case 51:return"MEMBER";case 52:return 82;case 53:return 75;case 54:return 76;case 55:return 78;case 56:return 63;case 57:return 65;case 58:return 58;case 59:return 59;case 60:return 81;case 62:return"GENERICTYPE";case 63:this.begin("generic");break;case 65:return"BQUOTE_STR";case 66:this.begin("bqstring");break;case 67:case 68:case 69:case 70:return 77;case 71:case 72:return 69;case 73:case 74:return 71;case 75:return 70;case 76:return 68;case 77:return 72;case 78:return 73;case 79:return 74;case 80:return 36;case 81:return 55;case 82:return 94;case 83:return"DOT";case 84:return"PLUS";case 85:return 91;case 86:case 87:return"EQUALS";case 88:return 98;case 89:return 27;case 90:return 29;case 91:return"PUNCTUATION";case 92:return 97;case 93:return 96;case 94:return 93;case 95:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?: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]|[\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)/,/^(?:$)/],conditions:{"namespace-body":{rules:[31,36,37,38,39,40,41,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},namespace:{rules:[31,32,33,34,35,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},"class-body":{rules:[31,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},class:{rules:[31,42,43,44,45,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},acc_descr_multiline:{rules:[16,17,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},acc_descr:{rules:[14,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},acc_title:{rules:[12,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},arg_directive:{rules:[7,8,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},type_directive:{rules:[6,7,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},open_directive:{rules:[5,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},callback_args:{rules:[27,28,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},callback_name:{rules:[24,25,26,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},href:{rules:[31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},struct:{rules:[31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},generic:{rules:[31,52,53,54,55,56,57,58,59,60,61,62,63,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],inclusive:!1},bqstring:{rules:[31,52,53,54,55,56,57,58,59,60,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,94,95],inclusive:!1},string:{rules:[29,30,31,52,53,54,55,56,57,58,59,60,63,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],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,31,32,41,52,53,54,55,56,57,58,59,60,63,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],inclusive:!0}}};function X(){this.yy={}}return K.lexer=W,X.prototype=K,K.Parser=X,new X}();QM.parser=QM;const ZM=QM,JM="classId-";let tI=[],eI={},nI=[],iI=0,rI={},aI=0,oI=[];const sI=t=>Bc.sanitizeText(t,ch()),cI=function(t){let e="",n=t;if(t.indexOf("~")>0){const i=t.split("~");n=sI(i[0]),e=sI(i[1])}return{className:n,type:e}},uI=function(t){const e=cI(t);void 0===eI[e.className]&&(eI[e.className]={id:e.className,type:e.type,label:e.className,cssClasses:[],methods:[],members:[],annotations:[],domId:JM+e.className+"-"+iI},iI++)},lI=function(t){if(t in eI)return eI[t].domId;throw new Error("Class not found: "+t)},hI=function(t,e){const n=cI(t).className,i=eI[n];if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(sI(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(sI(t)):t&&i.members.push(sI(t))}},fI=function(t,e){t.split(",").forEach((function(t){let n=t;t[0].match(/\d/)&&(n=JM+n),void 0!==eI[n]&&eI[n].cssClasses.push(e)}))},dI=function(t){let e=ae(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=ae("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),ae(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=ae(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"
")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),ae(this).classed("hover",!1)}))};oI.push(dI);let gI="TB";const pI={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},setAccTitle:_h,getAccTitle:Eh,getAccDescription:Ch,setAccDescription:Th,getConfig:()=>ch().class,addClass:uI,bindFunctions:function(t){oI.forEach((function(e){e(t)}))},clear:function(){tI=[],eI={},nI=[],oI=[],oI.push(dI),rI={},aI=0,kh()},getClass:function(t){return eI[t]},getClasses:function(){return eI},getNotes:function(){return nI},addAnnotation:function(t,e){const n=cI(t).className;eI[n].annotations.push(e)},addNote:function(t,e){const n={id:`note${nI.length}`,class:e,text:t};nI.push(n)},getRelations:function(){return tI},addRelation:function(t){o.debug("Adding relation: "+JSON.stringify(t)),uI(t.id1),uI(t.id2),t.id1=cI(t.id1).className,t.id2=cI(t.id2).className,t.relationTitle1=Bc.sanitizeText(t.relationTitle1.trim(),ch()),t.relationTitle2=Bc.sanitizeText(t.relationTitle2.trim(),ch()),tI.push(t)},getDirection:()=>gI,setDirection:t=>{gI=t},addMember:hI,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>hI(t,e))))},cleanupLabel:function(t){return t.startsWith(":")&&(t=t.substring(1)),sI(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){(function(t,e,n){if("loose"!==ch().securityLevel||void 0===e)return;const i=t;if(void 0!==eI[i]){const t=lI(i);let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{eI[e].parent=t,rI[t].classes[e]=eI[e]}))},getNamespace:function(t){return rI[t]},getNamespaces:function(){return rI}},bI=t=>`g.classGroup text {\n fill: ${t.nodeBorder};\n fill: ${t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`;let wI={};const yI=function(t){const e=Object.entries(wI).find((e=>e[1].label===t));if(e)return e[0]},mI=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ZM,db:pI,renderer:{draw:function(t,e,n,i){const r=ch().class;wI={},o.info("Rendering diagram "+t);const a=ch().securityLevel;let s;"sandbox"===a&&(s=ae("#i"+e));const c=ae("sandbox"===a?s.nodes()[0].contentDocument.body:"body"),u=c.select(`[id='${e}']`);!function(t){t.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).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")}(u);const l=new nk({multigraph:!0});l.setGraph({isMultiGraph:!0}),l.setDefaultEdgeLabel((function(){return{}}));const h=i.db.getClasses(),f=Object.keys(h);for(const t of f){const e=h[t],n=HT(u,e,r,i);wI[n.id]=n,l.setNode(n.id,n),o.info("Org height: "+n.height)}i.db.getRelations().forEach((function(t){o.info("tjoho"+yI(t.id1)+yI(t.id2)+JSON.stringify(t)),l.setEdge(yI(t.id1),yI(t.id2),{relation:t},t.title||"DEFAULT")})),i.db.getNotes().forEach((function(t){o.debug(`Adding note: ${JSON.stringify(t)}`);const e=function(t,e,n,i){o.debug("Rendering note ",e,n);const r=e.id,a={id:r,text:e.text,width:0,height:0},s=t.append("g").attr("id",r).attr("class","classGroup");let c=s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const u=JSON.parse(`"${e.text}"`).split("\n");u.forEach((function(t){o.debug(`Adding line: ${t}`),c.append("tspan").text(t).attr("class","title").attr("dy",n.textHeight)}));const l=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",l.width+2*n.padding).attr("height",l.height+u.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach((function(t){t.setAttribute("x",(h-t.getBBox().width)/2)})),a.width=h,a.height=l.height+u.length*n.textHeight+n.padding+.5*n.dividerMargin,a}(u,t,r);wI[e.id]=e,l.setNode(e.id,e),t.class&&t.class in h&&l.setEdge(t.id,yI(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),a_(l),l.nodes().forEach((function(t){void 0!==t&&void 0!==l.node(t)&&(o.debug("Node "+t+": "+JSON.stringify(l.node(t))),c.select("#"+(i.db.lookUpDomId(t)||t)).attr("transform","translate("+(l.node(t).x-l.node(t).width/2)+","+(l.node(t).y-l.node(t).height/2)+" )"))})),l.edges().forEach((function(t){void 0!==t&&void 0!==l.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(l.edge(t))),function(t,e,n,i,r){const a=function(t){switch(t){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const s=e.points,c=Vo().x((function(t){return t.x})).y((function(t){return t.y})).curve(is),u=t.append("path").attr("d",c(s)).attr("id","edge"+RT).attr("class","relation");let l,h,f="";i.arrowMarkerAbsolute&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),1==n.relation.lineType&&u.attr("class","relation dashed-line"),10==n.relation.lineType&&u.attr("class","relation dotted-line"),"none"!==n.relation.type1&&u.attr("marker-start","url("+f+"#"+a(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&u.attr("marker-end","url("+f+"#"+a(n.relation.type2)+"End)");const d=e.points.length;let g,p,b,w,y=od.calcLabelPosition(e.points);if(l=y.x,h=y.y,d%2!=0&&d>1){let t=od.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),i=od.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[d-1]);o.debug("cardinality_1_point "+JSON.stringify(t)),o.debug("cardinality_2_point "+JSON.stringify(i)),g=t.x,p=t.y,b=i.x,w=i.y}if(void 0!==n.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",l).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=r;const a=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",a.x-i.padding/2).attr("y",a.y-i.padding/2).attr("width",a.width+i.padding).attr("height",a.height+i.padding)}o.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",b).attr("y",w).attr("fill","black").attr("font-size","6").text(n.relationTitle2),RT++}(u,l.edge(t),l.edge(t).relation,r,i))}));const d=u.node().getBBox(),g=d.width+40,p=d.height+40;ph(u,p,g,r.useMaxWidth);const b=`${d.x-20} ${d.y-20} ${g} ${p}`;o.debug(`viewBox ${b}`),u.attr("viewBox",b)}},styles:bI,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,pI.clear()}}},Symbol.toStringTag,{value:"Module"})),vI=t=>Bc.sanitizeText(t,ch());let xI={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const kI=function(t,e,n,i,r){const a=Object.keys(t);o.info("keys:",a),o.info(t),a.filter((e=>t[e].parent==r)).forEach((function(n){var a,s;const c=t[n],u=c.cssClasses.join(" "),l=c.label??c.id,h={labelStyle:"",shape:"class_box",labelText:vI(l),classData:c,rx:0,ry:0,class:u,style:"",id:c.id,domId:c.domId,tooltip:i.db.getTooltip(c.id,r)||"",haveCallback:c.haveCallback,link:c.link,width:"group"===c.type?500:void 0,type:c.type,padding:(null==(a=ch().flowchart)?void 0:a.padding)??(null==(s=ch().class)?void 0:s.padding)};e.setNode(c.id,h),r&&e.setParent(c.id,r),o.info("setNode",h)}))};function _I(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const EI=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ZM,db:pI,renderer:{setConf:function(t){xI={...xI,...t}},draw:async function(t,e,n,i){o.info("Drawing class - ",e);const r=ch().flowchart??ch().class,a=ch().securityLevel;o.info("config:",r);const s=(null==r?void 0:r.nodeSpacing)??50,c=(null==r?void 0:r.rankSpacing)??50,u=new nk({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),l=i.db.getNamespaces(),h=i.db.getClasses(),f=i.db.getRelations(),d=i.db.getNotes();let g;o.info(f),function(t,e,n,i){const r=Object.keys(t);o.info("keys:",r),o.info(t),r.forEach((function(n){var r,a;const s=t[n],c={shape:"rect",id:s.id,domId:s.domId,labelText:vI(s.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(r=ch().flowchart)?void 0:r.padding)??(null==(a=ch().class)?void 0:a.padding)};e.setNode(s.id,c),kI(s.classes,e,0,i,s.id),o.info("setNode",c)}))}(l,u,0,i),kI(h,u,0,i),function(t,e){const n=ch().flowchart;let i=0;t.forEach((function(t){var r;i++;const a={classes:"relation",pattern:1==t.relation.lineType?"dashed":"solid",id:"id"+i,arrowhead:"arrow_open"===t.type?"none":"normal",startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowTypeStart:_I(t.relation.type1),arrowTypeEnd:_I(t.relation.type2),style:"fill:none",labelStyle:"",curve:Hf(null==n?void 0:n.curve,Ko)};if(o.info(a,t),void 0!==t.style){const e=Gf(t.style);a.style=e.style,a.labelStyle=e.labelStyle}t.text=t.title,void 0===t.text?void 0!==t.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",(null==(r=ch().flowchart)?void 0:r.htmlLabels)??ch().htmlLabels?(a.labelType="html",a.label=''+t.text+""):(a.labelType="text",a.label=t.text.replace(Bc.lineBreakRegex,"\n"),void 0===t.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,a,i)}))}(f,u),function(t,e,n,i){o.info(t),t.forEach((function(t,r){var a,s;const c=t,u=c.text,l={labelStyle:"",shape:"note",labelText:vI(u),noteData:c,rx:0,ry:0,class:"",style:"",id:c.id,domId:c.id,tooltip:"",type:"note",padding:(null==(a=ch().flowchart)?void 0:a.padding)??(null==(s=ch().class)?void 0:s.padding)};if(e.setNode(c.id,l),o.info("setNode",l),!c.class||!(c.class in i))return;const h=n+r,f={id:`edgeNote${h}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:Hf(xI.curve,Ko)};e.setEdge(c.id,c.class,f,h)}))}(d,u,f.length+1,h),"sandbox"===a&&(g=ae("#i"+e));const p=ae("sandbox"===a?g.nodes()[0].contentDocument.body:"body"),b=p.select(`[id="${e}"]`),w=p.select("#"+e+" g");if(await sC(w,u,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),od.insertTitle(b,"classTitleText",(null==r?void 0:r.titleTopMargin)??5,i.db.getDiagramTitle()),bh(u,b,null==r?void 0:r.diagramPadding,null==r?void 0:r.useMaxWidth),null==r||!r.htmlLabels){const t="sandbox"===a?g.nodes()[0].contentDocument:document,n=t.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of n){const n=e.getBBox(),i=t.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("rx",0),i.setAttribute("ry",0),i.setAttribute("width",n.width),i.setAttribute("height",n.height),e.insertBefore(i,e.firstChild)}}}},styles:bI,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,pI.clear()}}},Symbol.toStringTag,{value:"Module"}));var TI=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,5],r=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,21],u=[1,22],l=[1,23],h=[1,24],f=[1,37],d=[1,25],g=[1,26],p=[1,27],b=[1,28],w=[1,29],y=[1,32],m=[1,33],v=[1,34],x=[1,35],k=[1,36],_=[1,39],E=[1,40],T=[1,41],C=[1,42],S=[1,38],A=[1,45],M=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],L=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],O=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":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,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",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:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:return i.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 12:this.$=a[s];break;case 9:this.$="nl";break;case 13:const t=a[s-1];t.description=i.trimColon(a[s]),this.$=t;break;case 14:this.$={stmt:"relation",state1:a[s-2],state2:a[s]};break;case 15:const e=i.trimColon(a[s]);this.$={stmt:"relation",state1:a[s-3],state2:a[s-1],description:e};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 20:var c=a[s],u=a[s-2].trim();if(a[s].match(":")){var l=a[s].split(":");c=l[0],u=[u,l[1]]}this.$={stmt:"state",id:c,type:"default",description:u};break;case 21:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:"state",id:a[s],type:"fork"};break;case 23:this.$={stmt:"state",id:a[s],type:"join"};break;case 24:this.$={stmt:"state",id:a[s],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 31:case 32:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:a[s-1].trim(),classes:a[s].trim()};break;case 35:this.$={stmt:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[s-2].trim(),classes:[a[s].trim()],type:"default",description:""};break;case 50:i.parseDirective("%%{","open_directive");break;case 51:i.parseDirective(a[s],"type_directive");break;case 52:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 53:i.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:i,45:6,60:r},{1:[3]},{3:8,4:e,5:n,6:4,7:i,45:6,60:r},{3:9,4:e,5:n,6:4,7:i,45:6,60:r},{3:10,4:e,5:n,6:4,7:i,45:6,60:r},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],a,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:l,22:h,24:f,25:d,26:g,27:p,28:b,29:w,32:31,33:y,35:m,37:v,38:x,42:k,45:6,50:_,51:E,52:T,53:C,56:S,60:r},{47:43,48:[1,44],63:A},t([48,63],[2,51]),t(M,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:u,19:l,22:h,24:f,25:d,26:g,27:p,28:b,29:w,32:31,33:y,35:m,37:v,38:x,42:k,45:6,50:_,51:E,52:T,53:C,56:S,60:r},t(M,[2,8]),t(M,[2,9]),t(M,[2,10]),t(M,[2,11]),t(M,[2,12],{14:[1,47],15:[1,48]}),t(M,[2,16]),{18:[1,49]},t(M,[2,18],{20:[1,50]}),{23:[1,51]},t(M,[2,22]),t(M,[2,23]),t(M,[2,24]),t(M,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(M,[2,28]),t(M,[2,29]),{34:[1,56]},{36:[1,57]},t(M,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(I,[2,44],{57:[1,61]}),t(I,[2,45],{57:[1,62]}),t(M,[2,38]),t(M,[2,39]),t(M,[2,40]),t(M,[2,41]),t(L,[2,36]),{49:63,62:[1,64]},t(L,[2,53]),t(M,[2,7]),t(M,[2,13]),{13:65,24:f,56:S},t(M,[2,17]),t(O,a,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(M,[2,30]),t(M,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:A},{63:[2,52]},t(M,[2,14],{14:[1,76]}),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:l,21:[1,77],22:h,24:f,25:d,26:g,27:p,28:b,29:w,32:31,33:y,35:m,37:v,38:x,42:k,45:6,50:_,51:E,52:T,53:C,56:S,60:r},t(M,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(M,[2,33]),t(M,[2,34]),t(M,[2,35]),t(I,[2,46]),t(I,[2,47]),t(L,[2,37]),t(M,[2,15]),t(M,[2,19]),t(O,a,{8:81}),t(M,[2,26]),t(M,[2,27]),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:l,21:[1,82],22:h,24:f,25:d,26:g,27:p,28:b,29:w,32:31,33:y,35:m,37:v,38:x,42:k,45:6,50:_,51:E,52:T,53:C,56:S,60:r},t(M,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},N={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 41;case 1:case 44:return 50;case 2:case 45:return 51;case 3:case 46:return 52;case 4:case 47:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:case 13:case 14:case 15:case 16:case 56:case 58:case 64:break;case 12:case 79:return 5;case 17:case 34:return this.pushState("SCALE"),17;case 18:case 35:return 18;case 19:case 25:case 36:case 51:case 54:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 37:this.pushState("STATE");break;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:case 66:return this.popState(),"ID";case 52:return"STATE_DESCR";case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 57:return this.popState(),21;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:return"NOTE_TEXT";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 69:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return e.yytext=e.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\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,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/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,/^(?:%%(?!\{)[^\n]*)/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]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};function P(){this.yy={}}return D.lexer=N,P.prototype=D,D.Parser=P,new P}();TI.parser=TI;const CI=TI,SI="state",AI="relation",MI="default",II="divider",LI="[*]",OI="start",DI=LI,NI="color",PI="fill";let BI="LR",FI=[],jI={},RI={root:{relations:[],states:{},documents:{}}},$I=RI.root,zI=0,qI=0;const HI=t=>JSON.parse(JSON.stringify(t)),UI=(t,e,n)=>{if(e.stmt===AI)UI(t,e.state1,!0),UI(t,e.state2,!1);else if(e.stmt===SI&&("[*]"===e.id?(e.id=n?t.id+"_start":t.id+"_end",e.start=n):e.id=e.id.trim()),e.doc){const t=[];let n,i=[];for(n=0;n0&&i.length>0){const n={stmt:SI,id:Kf(),type:"divider",doc:HI(i)};t.push(HI(n)),e.doc=t}e.doc.forEach((t=>UI(e,t,!0)))}},GI=function(t,e=MI,n=null,i=null,r=null,a=null,s=null,c=null){const u=null==t?void 0:t.trim();void 0===$I.states[u]?(o.info("Adding state ",u,i),$I.states[u]={id:u,descriptions:[],type:e,doc:n,note:r,classes:[],styles:[],textStyles:[]}):($I.states[u].doc||($I.states[u].doc=n),$I.states[u].type||($I.states[u].type=e)),i&&(o.info("Setting state description",u,i),"string"==typeof i&&QI(u,i.trim()),"object"==typeof i&&i.forEach((t=>QI(u,t.trim())))),r&&($I.states[u].note=r,$I.states[u].note.text=Bc.sanitizeText($I.states[u].note.text,ch())),a&&(o.info("Setting state classes",u,a),("string"==typeof a?[a]:a).forEach((t=>JI(u,t.trim())))),s&&(o.info("Setting state styles",u,s),("string"==typeof s?[s]:s).forEach((t=>tL(u,t.trim())))),c&&(o.info("Setting state styles",u,s),("string"==typeof c?[c]:c).forEach((t=>eL(u,t.trim()))))},YI=function(t){RI={root:{relations:[],states:{},documents:{}}},$I=RI.root,zI=0,jI={},t||kh()},KI=function(t){return $I.states[t]};function WI(t=""){let e=t;return t===LI&&(zI++,e=`${OI}${zI}`),e}function XI(t="",e=MI){return t===LI?OI:e}const VI=function(t,e,n){if("object"==typeof t)!function(t,e,n){let i=WI(t.id.trim()),r=XI(t.id.trim(),t.type),a=WI(e.id.trim()),o=XI(e.id.trim(),e.type);GI(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),GI(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),$I.relations.push({id1:i,id2:a,relationTitle:Bc.sanitizeText(n,ch())})}(t,e,n);else{const i=WI(t.trim()),r=XI(t),a=function(t=""){let e=t;return t===DI&&(zI++,e=`end${zI}`),e}(e.trim()),o=function(t="",e=MI){return t===DI?"end":e}(e);GI(i,r),GI(a,o),$I.relations.push({id1:i,id2:a,title:Bc.sanitizeText(n,ch())})}},QI=function(t,e){const n=$I.states[t],i=e.startsWith(":")?e.replace(":","").trim():e;n.descriptions.push(Bc.sanitizeText(i,ch()))},ZI=function(t,e=""){void 0===jI[t]&&(jI[t]={id:t,styles:[],textStyles:[]});const n=jI[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(NI)){const t=e.replace(PI,"bgFill").replace(NI,PI);n.textStyles.push(t)}n.styles.push(e)}))},JI=function(t,e){t.split(",").forEach((function(t){let n=KI(t);if(void 0===n){const e=t.trim();GI(e),n=KI(e)}n.classes.push(e)}))},tL=function(t,e){const n=KI(t);void 0!==n&&n.textStyles.push(e)},eL=function(t,e){const n=KI(t);void 0!==n&&n.textStyles.push(e)},nL={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().state,addState:GI,clear:YI,getState:KI,getStates:function(){return $I.states},getRelations:function(){return $I.relations},getClasses:function(){return jI},getDirection:()=>BI,addRelation:VI,getDividerId:()=>(qI++,"divider-id-"+qI),setDirection:t=>{BI=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){o.info("Documents = ",RI)},getRootDoc:()=>FI,setRootDoc:t=>{o.info("Setting root doc",t),FI=t},getRootDocV2:()=>(UI({id:"root"},{id:"root",doc:FI},!0),{id:"root",doc:FI}),extract:t=>{let e;e=t.doc?t.doc:t,o.info(e),YI(!0),o.info("Extract",e),e.forEach((t=>{switch(t.stmt){case SI:GI(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case AI:VI(t.state1,t.state2,t.description);break;case"classDef":ZI(t.id.trim(),t.classes);break;case"applyClass":JI(t.id.trim(),t.styleClass)}}))},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:Eh,setAccTitle:_h,getAccDescription:Ch,setAccDescription:Th,addStyleClass:ZI,setCssClass:JI,addDescription:QI,setDiagramTitle:Sh,getDiagramTitle:Ah},iL=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,rL={},aL=(t,e,n)=>{const i=ch().state.padding,r=2*ch().state.padding,a=t.node().getBBox(),o=a.width,s=a.x,c=t.append("text").attr("x",0).attr("y",ch().state.titleShift).attr("font-size",ch().state.fontSize).attr("class","state-title").text(e.id),u=c.node().getBBox().width+r;let l,h=Math.max(u,o);h===o&&(h+=r);const f=t.node().getBBox();e.doc,l=s-i,u>o&&(l=(o-h)/2+i),Math.abs(s-f.x)o&&(l=s-(u-o)/2);const d=1-ch().state.textHeight;return t.insert("rect",":first-child").attr("x",l).attr("y",d).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+ch().state.textHeight+ch().state.titleShift+1).attr("rx","0"),c.attr("x",l+i),u<=o&&c.attr("x",s+(h-r)/2-u/2+i),t.insert("rect",":first-child").attr("x",l).attr("y",ch().state.titleShift-ch().state.textHeight-ch().state.padding).attr("width",h).attr("height",3*ch().state.textHeight).attr("rx",ch().state.radius),t.insert("rect",":first-child").attr("x",l).attr("y",ch().state.titleShift-ch().state.textHeight-ch().state.padding).attr("width",h).attr("height",f.height+3+2*ch().state.textHeight).attr("rx",ch().state.radius),t},oL=function(t,e){const n=e.id,i={id:n,label:e.id,width:0,height:0},r=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",ch().state.sizeUnit).attr("cx",ch().state.padding+ch().state.sizeUnit).attr("cy",ch().state.padding+ch().state.sizeUnit)})(r),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",ch().state.sizeUnit+ch().state.miniPadding).attr("cx",ch().state.padding+ch().state.sizeUnit+ch().state.miniPadding).attr("cy",ch().state.padding+ch().state.sizeUnit+ch().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",ch().state.sizeUnit).attr("cx",ch().state.padding+ch().state.sizeUnit+2).attr("cy",ch().state.padding+ch().state.sizeUnit+2)})(r),("fork"===e.type||"join"===e.type)&&((t,e)=>{let n=ch().state.forkWidth,i=ch().state.forkHeight;if(e.parentId){let t=n;n=i,i=t}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",i).attr("x",ch().state.padding).attr("y",ch().state.padding)})(r,e),"note"===e.type&&((t,e)=>{e.attr("class","state-note");const n=e.append("rect").attr("x",0).attr("y",ch().state.padding),i=e.append("g"),{textWidth:r,textHeight:a}=((t,e,n,i)=>{let r=0;const a=i.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let o=t.replace(/\r\n/g,"
");o=o.replace(/\n/g,"
");const s=o.split(Bc.lineBreakRegex);let c=1.25*ch().state.noteMargin;for(const t of s){const e=t.trim();if(e.length>0){const t=a.append("tspan");t.text(e),0===c&&(c+=t.node().getBBox().height),r+=c,t.attr("x",0+ch().state.noteMargin),t.attr("y",0+r+1.25*ch().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:r}})(t,0,0,i);n.attr("height",a+2*ch().state.noteMargin),n.attr("width",r+2*ch().state.noteMargin)})(e.note.text,r),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",ch().state.textHeight).attr("class","divider").attr("x2",2*ch().state.textHeight).attr("y1",0).attr("y2",0)})(r),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const n=t.append("text").attr("x",2*ch().state.padding).attr("y",ch().state.textHeight+2*ch().state.padding).attr("font-size",ch().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",ch().state.padding).attr("y",ch().state.padding).attr("width",n.width+2*ch().state.padding).attr("height",n.height+2*ch().state.padding).attr("rx",ch().state.radius)})(r,e),"default"===e.type&&e.descriptions.length>0&&((t,e)=>{const n=t.append("text").attr("x",2*ch().state.padding).attr("y",ch().state.textHeight+1.3*ch().state.padding).attr("font-size",ch().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=n.height,r=t.append("text").attr("x",ch().state.padding).attr("y",i+.4*ch().state.padding+ch().state.dividerMargin+ch().state.textHeight).attr("class","state-description");let a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,n){const i=t.append("tspan").attr("x",2*ch().state.padding).text(e);n||i.attr("dy",ch().state.textHeight)}(r,t,o),o=!1),a=!1}));const s=t.append("line").attr("x1",ch().state.padding).attr("y1",ch().state.padding+i+ch().state.dividerMargin/2).attr("y2",ch().state.padding+i+ch().state.dividerMargin/2).attr("class","descr-divider"),c=r.node().getBBox(),u=Math.max(c.width,n.width);s.attr("x2",u+3*ch().state.padding),t.insert("rect",":first-child").attr("x",ch().state.padding).attr("y",ch().state.padding).attr("width",u+2*ch().state.padding).attr("height",c.height+i+2*ch().state.padding).attr("rx",ch().state.radius)})(r,e);const a=r.node().getBBox();return i.width=a.width+2*ch().state.padding,i.height=a.height+2*ch().state.padding,((t,e)=>{rL[t]=e})(n,i),i};let sL,cL=0;const uL={},lL=t=>t?t.length*sL.fontSizeFactor:1,hL=(t,e,n,i,r,a,s)=>{const c=new nk({compound:!0,multigraph:!0});let u,l=!0;for(u=0;u{const e=t.parentElement;let n=0,i=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",n-i-8)}))):o.debug("No Node "+t+": "+JSON.stringify(c.node(t)))}));let b=p.getBBox();c.edges().forEach((function(t){void 0!==t&&void 0!==c.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),function(t,e,n){e.points=e.points.filter((t=>!Number.isNaN(t.y)));const i=e.points,r=Vo().x((function(t){return t.x})).y((function(t){return t.y})).curve(is),a=t.append("path").attr("d",r(i)).attr("id","edge"+cL).attr("class","transition");let s="";if(ch().state.arrowMarkerAbsolute&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+function(t){switch(t){case nL.relationType.AGGREGATION:return"aggregation";case nL.relationType.EXTENSION:return"extension";case nL.relationType.COMPOSITION:return"composition";case nL.relationType.DEPENDENCY:return"dependency"}}(nL.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const i=t.append("g").attr("class","stateLabel"),{x:r,y:a}=od.calcLabelPosition(e.points),s=Bc.getRows(n.title);let c=0;const u=[];let l=0,h=0;for(let t=0;t<=s.length;t++){const e=i.append("text").attr("text-anchor","middle").text(s[t]).attr("x",r).attr("y",a+c),n=e.node().getBBox();l=Math.max(l,n.width),h=Math.min(h,n.x),o.info(n.x,r,a+c),0===c&&(c=e.node().getBBox().height,o.info("Title height",c,a)),u.push(e)}let f=c*s.length;if(s.length>1){const t=(s.length-1)*c*.5;u.forEach(((e,n)=>e.attr("y",a+n*c-t))),f=c*s.length}const d=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-l/2-ch().state.padding/2).attr("y",a-f/2-ch().state.padding/2-3.5).attr("width",l+ch().state.padding).attr("height",f+ch().state.padding),o.info(d)}cL++}(e,c.edge(t),c.edge(t).relation))})),b=p.getBBox();const w={id:n||"root",label:n||"root",width:0,height:0};return w.width=b.width+2*sL.padding,w.height=b.height+2*sL.padding,o.debug("Doc rendered",w,c),w},fL=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:CI,db:nL,renderer:{setConf:function(){},draw:function(t,e,n,i){sL=ch().state;const r=ch().securityLevel;let a;"sandbox"===r&&(a=ae("#i"+e));const s=ae("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),c="sandbox"===r?a.nodes()[0].contentDocument:document;o.debug("Rendering diagram "+t);const u=s.select(`[id='${e}']`);!function(t){t.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")}(u);const l=i.db.getRootDoc();hL(l,u,void 0,!1,s,c,i);const h=sL.padding,f=u.node().getBBox(),d=f.width+2*h,g=f.height+2*h;ph(u,g,1.75*d,sL.useMaxWidth),u.attr("viewBox",`${f.x-sL.padding} ${f.y-sL.padding} `+d+" "+g)}},styles:iL,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,nL.clear()}}},Symbol.toStringTag,{value:"Module"})),dL="rect",gL="rectWithTitle",pL="statediagram",bL=`${pL}-state`,wL="transition",yL=`${wL} note-edge`,mL=`${pL}-note`,vL=`${pL}-cluster`,xL=`${pL}-cluster-alt`,kL="parent",_L="note",EL="----",TL=`${EL}${_L}`,CL=`${EL}${kL}`,SL="fill:none",AL="fill: #333",ML="text",IL="normal";let LL={},OL=0;function DL(t="",e=0,n="",i=EL){return`state-${t}${null!==n&&n.length>0?`${i}${n}`:""}-${e}`}const NL=(t,e,n,i,r,a)=>{const s=n.id,c=function(t){return null==t?"":t.classes?t.classes.join(" "):""}(i[s]);if("root"!==s){let e=dL;!0===n.start&&(e="start"),!1===n.start&&(e="end"),n.type!==MI&&(e=n.type),LL[s]||(LL[s]={id:s,shape:e,description:Bc.sanitizeText(s,ch()),classes:`${c} ${bL}`});const i=LL[s];n.description&&(Array.isArray(i.description)?(i.shape=gL,i.description.push(n.description)):i.description.length>0?(i.shape=gL,i.description===s?i.description=[n.description]:i.description=[i.description,n.description]):(i.shape=dL,i.description=n.description),i.description=Bc.sanitizeTextOrArray(i.description,ch())),1===i.description.length&&i.shape===gL&&(i.shape=dL),!i.type&&n.doc&&(o.info("Setting cluster for ",s,BL(n)),i.type="group",i.dir=BL(n),i.shape=n.type===II?"divider":"roundedWithTitle",i.classes=i.classes+" "+vL+" "+(a?xL:""));const r={labelStyle:"",shape:i.shape,labelText:i.description,classes:i.classes,style:"",id:s,dir:i.dir,domId:DL(s,OL),type:i.type,padding:15,centerLabel:!0};if(n.note){const e={labelStyle:"",shape:"note",labelText:n.note.text,classes:mL,style:"",id:s+TL+"-"+OL,domId:DL(s,OL,_L),type:i.type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:i.classes,style:"",id:s+CL,domId:DL(s,OL,kL),type:"group",padding:0};OL++;const o=s+CL;t.setNode(o,a),t.setNode(e.id,e),t.setNode(s,r),t.setParent(s,o),t.setParent(e.id,o);let c=s,u=e.id;"left of"===n.note.position&&(c=e.id,u=s),t.setEdge(c,u,{arrowhead:"none",arrowType:"",style:SL,labelStyle:"",classes:yL,arrowheadStyle:AL,labelpos:"c",labelType:ML,thickness:IL})}else t.setNode(s,r)}e&&"root"!==e.id&&(o.trace("Setting node ",s," to be child of its parent ",e.id),t.setParent(s,e.id)),n.doc&&(o.trace("Adding nodes children "),PL(t,n,n.doc,i,r,!a))},PL=(t,e,n,i,r,a)=>{o.trace("items",n),n.forEach((n=>{switch(n.stmt){case SI:case MI:NL(t,e,n,i,r,a);break;case AI:{NL(t,e,n.state1,i,r,a),NL(t,e,n.state2,i,r,a);const o={id:"edge"+OL,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:SL,labelStyle:"",label:Bc.sanitizeText(n.description,ch()),arrowheadStyle:AL,labelpos:"c",labelType:ML,thickness:IL,classes:wL};t.setEdge(n.state1.id,n.state2.id,o,OL),OL++}}}))},BL=(t,e="TB")=>{let n=e;if(t.doc)for(let e=0;e{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,nL.clear()}}},Symbol.toStringTag,{value:"Module"}));var jL=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,24,26],r=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,20],l=[1,24],h=[4,6,9,11,17,18,20,22,23,24,26],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 15:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:i.addTask(a[s-1],a[s]),this.$="task";break;case 18:i.parseDirective("%%{","open_directive");break;case 19:i.parseDirective(a[s],"type_directive");break;case 20:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 21:i.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,26:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:a,20:o,22:s,23:c,24:u,26:n},{1:[2,2]},{14:22,15:[1,23],29:l},t([15,29],[2,19]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:21,10:25,12:4,17:r,18:a,20:o,22:s,23:c,24:u,26:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,26]},{21:[1,27]},t(i,[2,14]),t(i,[2,15]),{25:[1,28]},t(i,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(i,[2,16]),t(h,[2,9]),{14:32,29:l},{29:[2,20]},{11:[1,33]},t(h,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function g(){this.yy={}}return f.lexer=d,g.prototype=f,f.Parser=g,new g}();jL.parser=jL;const RL=jL;let $L="";const zL=[],qL=[],HL=[],UL=function(){const t=function(t){return HL[t].processed};let e=!0;for(const[n,i]of HL.entries())t(n),e=e&&i.processed;return e},GL={parseDirective:function(t,e,n){$p.parseDirective(this,t,e,n)},getConfig:()=>ch().journey,clear:function(){zL.length=0,qL.length=0,$L="",HL.length=0,kh()},setDiagramTitle:Sh,getDiagramTitle:Ah,setAccTitle:_h,getAccTitle:Eh,setAccDescription:Th,getAccDescription:Ch,addSection:function(t){$L=t,zL.push(t)},getSections:function(){return zL},getTasks:function(){let t=UL(),e=0;for(;!t&&e<100;)t=UL(),e++;return qL.push(...HL),qL},addTask:function(t,e){const n=e.substr(1).split(":");let i=0,r=[];1===n.length?(i=Number(n[0]),r=[]):(i=Number(n[0]),r=n[1].split(","));const a=r.map((t=>t.trim())),o={section:$L,type:$L,people:a,task:t,score:i};HL.push(o)},addTaskOrg:function(t){const e={section:$L,type:$L,description:t,task:t,classes:[]};qL.push(e)},getActors:function(){return function(){const t=[];return qL.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()}()}},YL=function(t,e){return db(t,e)},KL=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n};let WL=-1;const XL=function(){function t(t,e,n,r,a,o,s,c){i(e.append("text").attr("x",n+a/2).attr("y",r+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,a,o,s,c,u){const{taskFontSize:l,taskFontFamily:h}=c,f=t.split(//gi);for(let t=0;t/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i}(t,e)},JL=function(t,e,n){const i=e.x+n.width/2,r=t.append("g");WL++,r.append("line").attr("id","task"+WL).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(t,e){t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");const n=t.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?function(t){const n=Uo().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(n):e.score<3?function(t){const n=Uo().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(n):n.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(r,{cx:i,cy:300+30*(5-e.score),score:e.score});const a={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,YL(r,a);let o=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:o,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};KL(r,i),o+=10})),XL(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},tO={},eO=ch().journey,nO=eO.leftMargin,iO={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=ch().journey,a=this;let o=0;this.sequenceItems.forEach((function(s){o++;const c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*r.boxMargin,Math.min),a.updateVal(s,"stopy",i+c*r.boxMargin,Math.max),a.updateVal(iO.data,"startx",t-c*r.boxMargin,Math.min),a.updateVal(iO.data,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(s,"startx",t-c*r.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(iO.data,"starty",e-c*r.boxMargin,Math.min),a.updateVal(iO.data,"stopy",i+c*r.boxMargin,Math.max)}))},insert:function(t,e,n,i){const r=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,i),s=Math.max(e,i);this.updateVal(iO.data,"startx",r,Math.min),this.updateVal(iO.data,"starty",o,Math.min),this.updateVal(iO.data,"stopx",a,Math.max),this.updateVal(iO.data,"stopy",s,Math.max),this.updateBounds(r,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},rO=eO.sectionFills,aO=eO.sectionColours,oO={setConf:function(t){Object.keys(t).forEach((function(e){eO[e]=t[e]}))},draw:function(t,e,n,i){const r=ch().journey,a=ch().securityLevel;let o;"sandbox"===a&&(o=ae("#i"+e));const s=ae("sandbox"===a?o.nodes()[0].contentDocument.body:"body");iO.init();const c=s.select("#"+e);!function(t){t.append("defs").append("marker").attr("id","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")}(c);const u=i.db.getTasks(),l=i.db.getDiagramTitle(),h=i.db.getActors();for(const t in tO)delete tO[t];let f=0;h.forEach((t=>{tO[t]={color:r.actorColours[f%r.actorColours.length],position:f},f++})),function(t){const e=ch().journey;let n=60;Object.keys(tO).forEach((i=>{const r=tO[i].color,a={cx:20,cy:n,r:7,fill:r,stroke:"#000",pos:tO[i].position};VL(t,a);const o={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};ZL(t,o),n+=20}))}(c),iO.insert(0,0,nO,50*Object.keys(tO).length),function(t,e,n){const i=ch().journey;let r="";const a=n+(2*i.height+i.diagramMarginY);let o=0,s="#CCC",c="black",u=0;for(const[n,l]of e.entries()){if(r!==l.section){s=rO[o%rO.length],u=o%rO.length,c=aO[o%aO.length];let a=0;const h=l.section;for(let t=n;t(tO[e]&&(t[e]=tO[e]),t)),{});l.x=n*i.taskMargin+n*i.width+nO,l.y=a,l.width=i.diagramMarginX,l.height=i.diagramMarginY,l.colour=c,l.fill=s,l.num=u,l.actors=h,JL(t,l,i),iO.insert(l.x,l.y,l.x+l.width+i.taskMargin,450)}}(c,u,0);const d=iO.getBounds();l&&c.append("text").text(l).attr("x",nO).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const g=d.stopy-d.starty+2*r.diagramMarginY,p=nO+d.stopx+2*r.diagramMarginX;ph(c,g,p,r.useMaxWidth),c.append("line").attr("x1",nO).attr("y1",4*r.height).attr("x2",p-nO-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const b=l?70:0;c.attr("viewBox",`${d.startx} -25 ${p} ${g+b}`),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",g+b+25)}},sO=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:RL,db:GL,renderer:oO,styles:t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,init:t=>{oO.setConf(t.journey),GL.clear()}}},Symbol.toStringTag,{value:"Module"}));function cO(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uO={exports:{}};!function(t,n){t.exports=function t(e,n,i){function r(o,s){if(!n[o]){if(!e[o]){if(!s&&cO)return cO(o);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){return r(e[o][1][t]||t)}),u,u.exports,t,e,n,i)}return n[o].exports}for(var a=cO,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=n.defaultLayoutOptions,a=void 0===i?{}:i,s=n.algorithms,c=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,u=n.workerFactory,l=n.workerUrl;if(r(this,t),this.defaultLayoutOptions=a,this.initialized=!1,typeof l>"u"&&typeof u>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var h=u;typeof l<"u"&&typeof u>"u"&&(h=function(t){return new Worker(t)});var f=h(l);if("function"!=typeof f.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new o(f),this.worker.postMessage({cmd:"register",algorithms:c}).then((function(t){return e.initialized=!0})).catch(console.err)}return i(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,i=void 0===n?this.defaultLayoutOptions:n,r=e.logging,a=void 0!==r&&r,o=e.measureExecutionTime,s=void 0!==o&&o;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:i,options:{logging:a,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=a;var o=function(){function t(e){var n=this;if(r(this,t),void 0===e)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}return i(t,[{key:"postMessage",value:function(t){var e=this.id||0;this.id=e+1,t.id=e;var n=this;return new Promise((function(i,r){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),r(t)):i(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,i=t.resolvers[n.id];i&&(delete t.resolvers[n.id],n.error?i(n.error):i(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(t){if(t){var e=t.__java$exception;e&&(e.cause&&e.cause.backingJsObject&&(t.cause=e.cause.backingJsObject,this.convertGwtStyleError(t.cause)),delete t.__java$exception)}}}]),t}()},{}],2:[function(t,n,i){(function(t){(function(){var e;function r(){}function a(){}function o(){}function s(){}function c(){}function u(){}function l(){}function h(){}function f(){}function d(){}function g(){}function p(){}function b(){}function w(){}function y(){}function m(){}function v(){}function x(){}function k(){}function _(){}function E(){}function T(){}function C(){}function S(){}function A(){}function M(){}function I(){}function L(){}function O(){}function D(){}function N(){}function P(){}function B(){}function F(){}function j(){}function R(){}function $(){}function z(){}function q(){}function H(){}function U(){}function G(){}function Y(){}function K(){}function W(){}function X(){}function V(){}function Q(){}function Z(){}function J(){}function tt(){}function et(){}function nt(){}function it(){}function rt(){}function at(){}function ot(){}function st(){}function ct(){}function ut(){}function lt(){}function ht(){}function ft(){}function dt(){}function gt(){}function pt(){}function bt(){}function wt(){}function yt(){}function mt(){}function vt(){}function xt(){}function kt(){}function _t(){}function Et(){}function Tt(){}function Ct(){}function St(){}function At(){}function Mt(){}function It(){}function Lt(){}function Ot(){}function Dt(){}function Nt(){}function Pt(){}function Bt(){}function Ft(){}function jt(){}function Rt(){}function $t(){}function zt(){}function qt(){}function Ht(){}function Ut(){}function Gt(){}function Yt(){}function Kt(){}function Wt(){}function Xt(){}function Vt(){}function Qt(){}function Zt(){}function Jt(){}function te(){}function ee(){}function ne(){}function ie(){}function re(){}function ae(){}function oe(){}function se(){}function ce(){}function ue(){}function le(){}function he(){}function fe(){}function de(){}function ge(){}function pe(){}function be(){}function we(){}function ye(){}function me(){}function ve(){}function xe(){}function ke(){}function _e(){}function Ee(){}function Te(){}function Ce(){}function Se(){}function Ae(){}function Me(){}function Ie(){}function Le(){}function Oe(){}function De(){}function Ne(){}function Pe(){}function Be(){}function Fe(){}function je(){}function Re(){}function $e(){}function ze(){}function qe(){}function He(){}function Ue(){}function Ge(){}function Ye(){}function Ke(){}function We(){}function Xe(){}function Ve(){}function Qe(){}function Ze(){}function Je(){}function tn(){}function en(){}function nn(){}function rn(){}function an(){}function on(){}function sn(){}function cn(){}function un(){}function ln(){}function hn(){}function fn(){}function dn(){}function gn(){}function pn(){}function bn(){}function wn(){}function yn(){}function mn(){}function vn(){}function xn(){}function kn(){}function _n(){}function En(){}function Tn(){}function Cn(){}function Sn(){}function An(){}function Mn(){}function In(){}function Ln(){}function On(){}function Dn(){}function Nn(){}function Pn(){}function Bn(){}function Fn(){}function jn(){}function Rn(){}function $n(){}function zn(){}function qn(){}function Hn(){}function Un(){}function Gn(){}function Yn(){}function Kn(){}function Wn(){}function Xn(){}function Vn(){}function Qn(){}function Zn(){}function Jn(){}function ti(){}function ei(){}function ni(){}function ii(){}function ri(){}function ai(){}function oi(){}function si(){}function ci(){}function ui(){}function li(){}function hi(){}function fi(){}function di(){}function gi(){}function pi(){}function bi(){}function wi(){}function yi(){}function mi(){}function vi(){}function xi(){}function ki(){}function _i(){}function Ei(){}function Ti(){}function Ci(){}function Si(){}function Ai(){}function Mi(){}function Ii(){}function Li(){}function Oi(){}function Di(){}function Ni(){}function Pi(){}function Bi(){}function Fi(){}function ji(){}function Ri(){}function $i(){}function zi(){}function qi(){}function Hi(){}function Ui(){}function Gi(){}function Yi(){}function Ki(){}function Wi(){}function Xi(){}function Vi(){}function Qi(){}function Zi(){}function Ji(){}function tr(){}function er(){}function nr(){}function ir(){}function rr(){}function ar(){}function or(){}function sr(){}function cr(){}function ur(){}function lr(){}function hr(){}function fr(){}function dr(){}function gr(){}function pr(){}function br(){}function wr(){}function yr(){}function mr(){}function vr(){}function xr(){}function kr(){}function _r(){}function Er(){}function Tr(){}function Cr(){}function Sr(){}function Ar(){}function Mr(){}function Ir(){}function Lr(){}function Or(){}function Dr(){}function Nr(){}function Pr(){}function Br(){}function Fr(){}function jr(){}function Rr(){}function $r(){}function zr(){}function qr(){}function Hr(){}function Ur(){}function Gr(){}function Yr(){}function Kr(){}function Wr(){}function Xr(){}function Vr(){}function Qr(){}function Zr(){}function Jr(){}function ta(){}function ea(){}function na(){}function ia(){}function ra(){}function aa(){}function oa(){}function sa(){}function ca(){}function ua(){}function la(){}function ha(){}function fa(){}function da(){}function ga(){}function pa(){}function ba(){}function wa(){}function ya(){}function ma(){}function va(){}function xa(){}function ka(){}function _a(){}function Ea(){}function Ta(){}function Ca(){}function Sa(){}function Aa(){}function Ma(){}function Ia(){}function La(){}function Oa(){}function Da(){}function Na(){}function Pa(){}function Ba(){}function Fa(){}function ja(){}function Ra(){}function $a(){}function za(){}function qa(){}function Ha(){}function Ua(){}function Ga(){}function Ya(){}function Ka(){}function Wa(){}function Xa(){}function Va(){}function Qa(){}function Za(){}function Ja(){}function to(){}function eo(){}function no(){}function io(){}function ro(){}function ao(){}function oo(){}function so(){}function co(){}function uo(){}function lo(){}function ho(){}function fo(){}function go(){}function po(){}function bo(){}function wo(){}function yo(){}function mo(){}function vo(){}function xo(){}function ko(){}function _o(){}function Eo(){}function To(){}function Co(){}function So(){}function Ao(){}function Mo(){}function Io(){}function Lo(){}function Oo(){}function Do(){}function No(){}function Po(){}function Bo(){}function Fo(){}function jo(){}function Ro(){}function $o(){}function zo(){}function qo(){}function Ho(){}function Uo(){}function Go(){}function Yo(){}function Ko(){}function Wo(){}function Xo(){}function Vo(){}function Qo(){}function Zo(){}function Jo(){}function ts(){}function es(){}function ns(){}function is(){}function rs(){}function as(){}function os(){}function ss(){}function cs(){}function us(){}function ls(){}function hs(){}function fs(){}function ds(){}function gs(){}function ps(){}function bs(){}function ws(){}function ys(){}function ms(){}function vs(){}function xs(){}function ks(){}function _s(){}function Es(){}function Ts(){}function Cs(){}function Ss(){}function As(){}function Ms(){}function Is(){}function Ls(){}function Os(){}function Ds(){}function Ns(){}function Ps(){}function Bs(){}function Fs(){}function js(){}function Rs(){}function $s(){}function zs(){}function qs(){}function Hs(){}function Us(){}function Gs(){}function Ys(){}function Ks(){}function Ws(){}function Xs(){}function Vs(){}function Qs(){}function Zs(){}function Js(){}function tc(){}function ec(){}function nc(){}function ic(){}function rc(){}function ac(){}function oc(){}function sc(){}function cc(){}function uc(){}function lc(){}function hc(){}function fc(){}function dc(){}function gc(){}function pc(){}function bc(){}function wc(){}function yc(){}function mc(){}function vc(){}function xc(){}function kc(){}function _c(){}function Ec(){}function Tc(){}function Cc(){}function Sc(){}function Ac(){}function Mc(){}function Ic(){}function Lc(){}function Oc(){}function Dc(){}function Nc(){}function Pc(){}function Bc(){}function Fc(){}function jc(){}function Rc(){}function $c(){}function zc(){}function qc(){}function Hc(){}function Uc(){}function Gc(){}function Yc(){}function Kc(){}function Wc(){}function Xc(){}function Vc(){}function Qc(){}function Zc(){}function Jc(){}function tu(){}function eu(){}function nu(){}function iu(){}function ru(){}function au(){}function ou(){}function su(){}function cu(){}function uu(){}function lu(){}function hu(){}function fu(){}function du(){}function gu(){}function pu(){}function bu(){}function wu(){}function yu(){}function mu(){}function vu(){}function xu(){}function ku(){}function _u(){}function Eu(){}function Tu(){}function Cu(){}function Su(){}function Au(){}function Mu(){}function Iu(){}function Lu(){}function Ou(){}function Du(){}function Nu(){}function Pu(){}function Bu(){}function Fu(){}function ju(){}function Ru(){}function $u(){}function zu(){}function qu(){}function Hu(){}function Uu(){}function Gu(){}function Yu(){}function Ku(){}function Wu(){}function Xu(){}function Vu(){}function Qu(){}function Zu(){}function Ju(){}function tl(){}function el(){}function nl(){}function il(){}function rl(){}function al(){}function ol(){}function sl(){}function cl(){}function ul(){}function ll(){}function hl(){}function fl(){}function dl(){}function gl(){}function pl(){}function bl(){}function wl(){}function yl(){}function ml(){}function vl(){}function xl(){}function kl(){}function _l(){}function El(){}function Tl(){}function Cl(){}function Sl(){}function Al(){}function Ml(){}function Il(){}function Ll(){}function Ol(){}function Dl(){}function Nl(){}function Pl(){}function Bl(){fm()}function Fl(){E6()}function jl(){snt()}function Rl(){fat()}function $l(){mct()}function zl(){Fpt()}function ql(){Art()}function Hl(){Hrt()}function Ul(){Y_()}function Gl(){q_()}function Yl(){CP()}function Kl(){K_()}function Wl(){d2()}function Xl(){X_()}function Vl(){VX()}function Ql(){x0()}function Zl(){eQ()}function Jl(){nG()}function th(){T6()}function eh(){Yst()}function nh(){k0()}function ih(){lK()}function rh(){Ckt()}function ah(){Ort()}function oh(){iG()}function sh(){hkt()}function ch(){tG()}function uh(){_0()}function lh(){V4()}function hh(){sG()}function fh(){mQ()}function dh(){V_()}function gh(){cft()}function ph(){Nrt()}function bh(){s3()}function wh(){Ost()}function yh(){jpt()}function mh(){sit()}function vh(){eft()}function xh(){Q3()}function kh(){aG()}function _h(){Zbt()}function Eh(){ift()}function Th(){Wft()}function Ch(){kQ()}function Sh(){Dst()}function Ah(){Ekt()}function Mh(){S6()}function Ih(){Ett()}function Lh(){Kyt()}function Oh(){lP()}function Dh(){q2()}function Nh(){Pwt()}function Ph(t){dz(t)}function Bh(t){this.a=t}function Fh(t){this.a=t}function jh(t){this.a=t}function Rh(t){this.a=t}function $h(t){this.a=t}function zh(t){this.a=t}function qh(t){this.a=t}function Hh(t){this.a=t}function Uh(t){this.a=t}function Gh(t){this.a=t}function Yh(t){this.a=t}function Kh(t){this.a=t}function Wh(t){this.a=t}function Xh(t){this.a=t}function Vh(t){this.a=t}function Qh(t){this.a=t}function Zh(t){this.a=t}function Jh(t){this.a=t}function tf(t){this.a=t}function ef(t){this.a=t}function nf(t){this.a=t}function rf(t){this.b=t}function af(t){this.c=t}function of(t){this.a=t}function sf(t){this.a=t}function cf(t){this.a=t}function uf(t){this.a=t}function lf(t){this.a=t}function hf(t){this.a=t}function ff(t){this.a=t}function df(t){this.a=t}function gf(t){this.a=t}function pf(t){this.a=t}function bf(t){this.a=t}function wf(t){this.a=t}function yf(t){this.a=t}function mf(t){this.a=t}function vf(t){this.a=t}function xf(t){this.a=t}function kf(t){this.a=t}function _f(){this.a=[]}function Ef(t,e){t.a=e}function Tf(t,e){t.j=e}function Cf(t,e){t.c=e}function Sf(t,e){t.d=e}function Af(t,e){t.k=e}function Mf(t,e){t.c=e}function If(t,e){t.a=e}function Lf(t,e){t.a=e}function Of(t,e){t.f=e}function Df(t,e){t.a=e}function Nf(t,e){t.b=e}function Pf(t,e){t.d=e}function Bf(t,e){t.i=e}function Ff(t,e){t.o=e}function jf(t,e){t.e=e}function Rf(t,e){t.g=e}function $f(t,e){t.e=e}function zf(t,e){t.f=e}function qf(t,e){t.f=e}function Hf(t,e){t.n=e}function Uf(t){t.b=t.a}function Gf(t){t.c=t.d.d}function Yf(t){this.d=t}function Kf(t){this.a=t}function Wf(t){this.a=t}function Xf(t){this.a=t}function Vf(t){this.a=t}function Qf(t){this.a=t}function Zf(t){this.a=t}function Jf(t){this.a=t}function td(t){this.a=t}function ed(t){this.a=t}function nd(t){this.a=t}function id(t){this.a=t}function rd(t){this.a=t}function ad(t){this.a=t}function od(t){this.a=t}function sd(t){this.b=t}function cd(t){this.b=t}function ud(t){this.b=t}function ld(t){this.a=t}function hd(t){this.a=t}function fd(t){this.a=t}function dd(t){this.c=t}function gd(t){this.c=t}function pd(t){this.c=t}function bd(t){this.a=t}function wd(t){this.a=t}function yd(t){this.a=t}function md(t){this.a=t}function vd(t){this.a=t}function xd(t){this.a=t}function kd(t){this.a=t}function _d(t){this.a=t}function Ed(t){this.a=t}function Td(t){this.a=t}function Cd(t){this.a=t}function Sd(t){this.a=t}function Ad(t){this.a=t}function Md(t){this.a=t}function Id(t){this.a=t}function Ld(t){this.a=t}function Od(t){this.a=t}function Dd(t){this.a=t}function Nd(t){this.a=t}function Pd(t){this.a=t}function Bd(t){this.a=t}function Fd(t){this.a=t}function jd(t){this.a=t}function Rd(t){this.a=t}function $d(t){this.a=t}function zd(t){this.a=t}function qd(t){this.a=t}function Hd(t){this.a=t}function Ud(t){this.a=t}function Gd(t){this.a=t}function Yd(t){this.a=t}function Kd(t){this.a=t}function Wd(t){this.a=t}function Xd(t){this.a=t}function Vd(t){this.a=t}function Qd(t){this.a=t}function Zd(t){this.a=t}function Jd(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function ig(t){this.a=t}function rg(t){this.a=t}function ag(t){this.a=t}function og(t){this.a=t}function sg(t){this.e=t}function cg(t){this.a=t}function ug(t){this.a=t}function lg(t){this.a=t}function hg(t){this.a=t}function fg(t){this.a=t}function dg(t){this.a=t}function gg(t){this.a=t}function pg(t){this.a=t}function bg(t){this.a=t}function wg(t){this.a=t}function yg(t){this.a=t}function mg(t){this.a=t}function vg(t){this.a=t}function xg(t){this.a=t}function kg(t){this.a=t}function _g(t){this.a=t}function Eg(t){this.a=t}function Tg(t){this.a=t}function Cg(t){this.a=t}function Sg(t){this.a=t}function Ag(t){this.a=t}function Mg(t){this.a=t}function Ig(t){this.a=t}function Lg(t){this.a=t}function Og(t){this.a=t}function Dg(t){this.a=t}function Ng(t){this.a=t}function Pg(t){this.a=t}function Bg(t){this.a=t}function Fg(t){this.a=t}function jg(t){this.a=t}function Rg(t){this.a=t}function $g(t){this.a=t}function zg(t){this.a=t}function qg(t){this.a=t}function Hg(t){this.a=t}function Ug(t){this.a=t}function Gg(t){this.a=t}function Yg(t){this.a=t}function Kg(t){this.a=t}function Wg(t){this.a=t}function Xg(t){this.a=t}function Vg(t){this.a=t}function Qg(t){this.a=t}function Zg(t){this.a=t}function Jg(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function ip(t){this.a=t}function rp(t){this.a=t}function ap(t){this.a=t}function op(t){this.a=t}function sp(t){this.c=t}function cp(t){this.b=t}function up(t){this.a=t}function lp(t){this.a=t}function hp(t){this.a=t}function fp(t){this.a=t}function dp(t){this.a=t}function gp(t){this.a=t}function pp(t){this.a=t}function bp(t){this.a=t}function wp(t){this.a=t}function yp(t){this.a=t}function mp(t){this.a=t}function vp(t){this.a=t}function xp(t){this.a=t}function kp(t){this.a=t}function _p(t){this.a=t}function Ep(t){this.a=t}function Tp(t){this.a=t}function Cp(t){this.a=t}function Sp(t){this.a=t}function Ap(t){this.a=t}function Mp(t){this.a=t}function Ip(t){this.a=t}function Lp(t){this.a=t}function Op(t){this.a=t}function Dp(t){this.a=t}function Np(t){this.a=t}function Pp(t){this.a=t}function Bp(t){this.a=t}function Fp(t){this.a=t}function jp(t){this.a=t}function Rp(t){this.a=t}function $p(t){this.a=t}function zp(t){this.a=t}function qp(t){this.a=t}function Hp(t){this.a=t}function Up(t){this.a=t}function Gp(t){this.a=t}function Yp(t){this.a=t}function Kp(t){this.a=t}function Wp(t){this.a=t}function Xp(t){this.a=t}function Vp(t){this.a=t}function Qp(t){this.a=t}function Zp(t){this.a=t}function Jp(t){this.a=t}function tb(t){this.a=t}function eb(t){this.a=t}function nb(t){this.a=t}function ib(t){this.a=t}function rb(t){this.a=t}function ab(t){this.a=t}function ob(t){this.a=t}function sb(t){this.a=t}function cb(t){this.a=t}function ub(t){this.a=t}function lb(t){this.a=t}function hb(t){this.a=t}function fb(t){this.a=t}function db(t){this.a=t}function gb(t){this.a=t}function pb(t){this.a=t}function bb(t){this.a=t}function wb(t){this.a=t}function yb(t){this.a=t}function mb(t){this.a=t}function vb(t){this.a=t}function xb(t){this.a=t}function kb(t){this.a=t}function _b(t){this.a=t}function Eb(t){this.a=t}function Tb(t){this.a=t}function Cb(t){this.a=t}function Sb(t){this.b=t}function Ab(t){this.f=t}function Mb(t){this.a=t}function Ib(t){this.a=t}function Lb(t){this.a=t}function Ob(t){this.a=t}function Db(t){this.a=t}function Nb(t){this.a=t}function Pb(t){this.a=t}function Bb(t){this.a=t}function Fb(t){this.a=t}function jb(t){this.a=t}function Rb(t){this.a=t}function $b(t){this.b=t}function zb(t){this.c=t}function qb(t){this.e=t}function Hb(t){this.a=t}function Ub(t){this.a=t}function Gb(t){this.a=t}function Yb(t){this.a=t}function Kb(t){this.a=t}function Wb(t){this.d=t}function Xb(t){this.a=t}function Vb(t){this.a=t}function Qb(t){this.e=t}function Zb(){SM(this)}function Jb(){CM(this)}function tw(){zR(this)}function ew(){Gz(this)}function nw(){}function iw(){this.c=joe}function rw(t,e){t.b+=e}function aw(t){t.b=new fv}function ow(t){return t.e}function sw(t){return t.a}function cw(t){return t.a}function uw(t){return t.a}function lw(t){return t.a}function hw(t){return t.a}function fw(){return null}function dw(){return null}function gw(t,e){t.b=e-t.b}function pw(t,e){t.a=e-t.a}function bw(t,e){e.ad(t.a)}function ww(t,e){t.e=e,e.b=t}function yw(t){fP(),this.a=t}function mw(t){fP(),this.a=t}function vw(t){fP(),this.a=t}function xw(t){U$(),this.a=t}function kw(t){SH(),lRt.be(t)}function _w(){TL.call(this)}function Ew(){TL.call(this)}function Tw(){_w.call(this)}function Cw(){_w.call(this)}function Sw(){_w.call(this)}function Aw(){_w.call(this)}function Mw(){_w.call(this)}function Iw(){_w.call(this)}function Lw(){_w.call(this)}function Ow(){_w.call(this)}function Dw(){_w.call(this)}function Nw(){_w.call(this)}function Pw(){_w.call(this)}function Bw(){this.a=this}function Fw(){this.Bb|=256}function jw(){this.b=new IA}function Rw(){Rw=I,new tw}function $w(){Tw.call(this)}function zw(t,e){t.length=e}function qw(t,e){QP(t.a,e)}function Hw(t,e){O3(t.e,e)}function Uw(t){wht(t.c,t.b)}function Gw(t){this.a=function(t){var e;return(e=fct(t))>34028234663852886e22?KEt:e<-34028234663852886e22?WEt:e}(t)}function Yw(){this.a=new tw}function Kw(){this.a=new tw}function Ww(){this.a=new Jb}function Xw(){this.a=new Jb}function Vw(){this.a=new Jb}function Qw(){this.a=new mt}function Zw(){this.a=new qX}function Jw(){this.a=new he}function ty(){this.a=new y_}function ey(){this.a=new lY}function ny(){this.a=new AU}function iy(){this.a=new eN}function ry(){this.a=new Jb}function ay(){this.a=new Jb}function oy(){this.a=new Jb}function sy(){this.a=new Jb}function cy(){this.d=new Jb}function uy(){this.a=new Yw}function ly(){this.a=new tw}function hy(){this.b=new tw}function fy(){this.b=new Jb}function dy(){this.e=new Jb}function gy(){this.d=new Jb}function py(){this.a=new eh}function by(){Jb.call(this)}function wy(){Ww.call(this)}function yy(){rN.call(this)}function my(){ay.call(this)}function vy(){xy.call(this)}function xy(){nw.call(this)}function ky(){nw.call(this)}function _y(){ky.call(this)}function Ey(){yH.call(this)}function Ty(){yH.call(this)}function Cy(){im.call(this)}function Sy(){im.call(this)}function Ay(){im.call(this)}function My(){rm.call(this)}function Iy(){x_.call(this)}function Ly(){ec.call(this)}function Oy(){ec.call(this)}function Dy(){um.call(this)}function Ny(){um.call(this)}function Py(){tw.call(this)}function By(){tw.call(this)}function Fy(){tw.call(this)}function jy(){Yw.call(this)}function Ry(){y0.call(this)}function $y(){Fw.call(this)}function zy(){$I.call(this)}function qy(){$I.call(this)}function Hy(){tw.call(this)}function Uy(){tw.call(this)}function Gy(){tw.call(this)}function Yy(){yc.call(this)}function Ky(){yc.call(this)}function Wy(){Yy.call(this)}function Xy(){Dl.call(this)}function Vy(t){DJ.call(this,t)}function Qy(t){DJ.call(this,t)}function Zy(t){Uh.call(this,t)}function Jy(t){Qk.call(this,t)}function tm(t){Jy.call(this,t)}function em(t){Qk.call(this,t)}function nm(){this.a=new x_}function im(){this.a=new Yw}function rm(){this.a=new tw}function am(){this.a=new Jb}function om(){this.j=new Jb}function sm(){this.a=new Ko}function cm(){this.a=new uk}function um(){this.a=new wc}function lm(){lm=I,Kjt=new Nv}function hm(){hm=I,Yjt=new Dv}function fm(){fm=I,jjt=new a}function dm(){dm=I,tRt=new gL}function gm(t){Jy.call(this,t)}function pm(t){Jy.call(this,t)}function bm(t){rW.call(this,t)}function wm(t){rW.call(this,t)}function ym(t){ZN.call(this,t)}function mm(t){wct.call(this,t)}function vm(t){t_.call(this,t)}function xm(t){n_.call(this,t)}function km(t){n_.call(this,t)}function _m(t){n_.call(this,t)}function Em(t){Ij.call(this,t)}function Tm(t){Em.call(this,t)}function Cm(){kf.call(this,{})}function Sm(t){jI(),this.a=t}function Am(t){t.b=null,t.c=0}function Mm(t,n){t.a=n,function(t){var n,i,r;for(function(t){var n,i,r;for(i=new gd(t.a.a.b);i.a0&&(!(sM(t.a.c)&&n.n.d)&&!(cM(t.a.c)&&n.n.b)&&(n.g.d-=e.Math.max(0,r/2-.5)),(!sM(t.a.c)||!n.n.a)&&(!cM(t.a.c)||!n.n.c)&&(n.g.a+=e.Math.max(0,r-1)))}(t),r=new Jb,i=new gd(t.a.a.b);i.a0&&(!(sM(t.a.c)&&n.n.d)&&!(cM(t.a.c)&&n.n.b)&&(n.g.d+=e.Math.max(0,r/2-.5)),(!sM(t.a.c)||!n.n.a)&&(!cM(t.a.c)||!n.n.c)&&(n.g.a-=r-1))}(t)}(t)}function Im(t,e,n){t.a[e.g]=n}function Lm(t,e,n){!function(t,e,n){var i,r;for(mM(t,t.j+e,t.k+n),r=new zI((!t.a&&(t.a=new qI($re,t,5)),t.a));r.e!=r.i.gc();)pM(i=YP(ant(r),469),i.a+e,i.b+n);yM(t,t.b+e,t.c+n)}(n,t,e)}function Om(t,e){!function(t,e){sM(t.f)?function(t,e){var n,i,r,a,o;for(a=t.g.a,o=t.g.b,i=new gd(t.d);i.a=t.length)return{done:!0};var i=t[n++];return{value:[i,e.get(i)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);return void 0===e[t]&&!(0!=Object.getOwnPropertyNames(e).length||(e[t]=42,42!==e[t])||0==Object.getOwnPropertyNames(e).length)}()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[dTt]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t}),t}()}()}function Fv(t){return t.a?t.b:0}function jv(t){return t.a?t.b:0}function Rv(t,e){return tZ(t,e)}function $v(t,e){return FU(t,e)}function zv(t,e){return t.f=e,t}function qv(t,e){return t.c=e,t}function Hv(t,e){return t.a=e,t}function Uv(t,e){return t.f=e,t}function Gv(t,e){return t.k=e,t}function Yv(t,e){return t.a=e,t}function Kv(t,e){return t.e=e,t}function Wv(t,e){t.b=!0,t.d=e}function Xv(t,e){return t?0:e-1}function Vv(t,e){return t.b=e,t}function Qv(t,e){return t.a=e,t}function Zv(t,e){return t.c=e,t}function Jv(t,e){return t.d=e,t}function tx(t,e){return t.e=e,t}function ex(t,e){return t.f=e,t}function nx(t,e){return t.a=e,t}function ix(t,e){return t.b=e,t}function rx(t,e){return t.c=e,t}function ax(t,e){return t.c=e,t}function ox(t,e){return t.b=e,t}function sx(t,e){return t.d=e,t}function cx(t,e){return t.e=e,t}function ux(t,e){return t.g=e,t}function lx(t,e){return t.a=e,t}function hx(t,e){return t.i=e,t}function fx(t,e){return t.j=e,t}function dx(t,e){return t.k=e,t}function gx(t,e,n){!function(t,e,n){NR(t,new XE(e.a,n.a))}(t.a,e,n)}function px(t){uq.call(this,t)}function bx(t){uq.call(this,t)}function wx(t){iP.call(this,t)}function yx(t){E9.call(this,t)}function mx(t){NJ.call(this,t)}function vx(t){Dq.call(this,t)}function xx(t){Dq.call(this,t)}function kx(){rI.call(this,"")}function _x(){this.a=0,this.b=0}function Ex(){this.b=0,this.a=0}function Tx(t,e){t.b=0,N1(t,e)}function Cx(t,e){return t.c._b(e)}function Sx(t){return t.e&&t.e()}function Ax(t){return t?t.d:null}function Mx(t,e){return L8(t.b,e)}function Ix(t){return rD(t),t.o}function Lx(){Lx=I,xre=function(){var t,e;Kyt();try{if(e=YP(Kat((pE(),Vae),ANt),2014))return e}catch(e){if(!EI(e=b4(e),102))throw ow(e);t=e,Cj((RM(),t))}return new ac}()}function Ox(){var t;Ox=I,kre=Jre?YP(jft((pE(),Vae),ANt),2016):(t=YP(EI(eU((pE(),Vae),ANt),555)?eU(Vae,ANt):new $ht,555),Jre=!0,function(t){t.q||(t.q=!0,t.p=F3(t,0),t.a=F3(t,1),x2(t.a,0),t.f=F3(t,2),x2(t.f,1),v2(t.f,2),t.n=F3(t,3),v2(t.n,3),v2(t.n,4),v2(t.n,5),v2(t.n,6),t.g=F3(t,4),x2(t.g,7),v2(t.g,8),t.c=F3(t,5),x2(t.c,7),x2(t.c,8),t.i=F3(t,6),x2(t.i,9),x2(t.i,10),x2(t.i,11),x2(t.i,12),v2(t.i,13),t.j=F3(t,7),x2(t.j,9),t.d=F3(t,8),x2(t.d,3),x2(t.d,4),x2(t.d,5),x2(t.d,6),v2(t.d,7),v2(t.d,8),v2(t.d,9),v2(t.d,10),t.b=F3(t,9),v2(t.b,0),v2(t.b,1),t.e=F3(t,10),v2(t.e,1),v2(t.e,2),v2(t.e,3),v2(t.e,4),x2(t.e,5),x2(t.e,6),x2(t.e,7),x2(t.e,8),x2(t.e,9),x2(t.e,10),v2(t.e,11),t.k=F3(t,11),v2(t.k,0),v2(t.k,1),t.o=j3(t,12),t.s=j3(t,13))}(t),function(t){var e,n,i,r,a,o,s;t.r||(t.r=!0,w2(t,"graph"),y2(t,"graph"),m2(t,ANt),l4(t.o,"T"),aQ(_H(t.a),t.p),aQ(_H(t.f),t.a),aQ(_H(t.n),t.f),aQ(_H(t.g),t.n),aQ(_H(t.c),t.n),aQ(_H(t.i),t.c),aQ(_H(t.j),t.c),aQ(_H(t.d),t.f),aQ(_H(t.e),t.a),yY(t.p,Jqt,$Ct,!0,!0,!1),s=C4(o=n6(t.p,t.p,"setProperty")),e=xq(t.o),n=new iw,aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),dot(n,i=kq(s)),Yat(o,e,INt),Yat(o,e=kq(s),LNt),s=C4(o=n6(t.p,null,"getProperty")),e=xq(t.o),n=kq(s),aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),Yat(o,e,INt),(a=sst(o,e=kq(s),null))&&a.Fi(),o=n6(t.p,t.wb.e,"hasProperty"),e=xq(t.o),n=new iw,aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),Yat(o,e,INt),Ert(o=n6(t.p,t.p,"copyProperties"),t.p,ONt),o=n6(t.p,null,"getAllProperties"),e=xq(t.wb.P),n=xq(t.o),aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),i=new iw,aQ((!n.d&&(n.d=new qI(toe,n,1)),n.d),i),n=xq(t.wb.M),aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),(r=sst(o,e,null))&&r.Fi(),yY(t.a,Rre,JDt,!0,!1,!0),krt(YP(JJ(eH(t.a),0),18),t.k,null,DNt,0,-1,Rre,!1,!1,!0,!0,!1,!1,!1),yY(t.f,zre,eNt,!0,!1,!0),krt(YP(JJ(eH(t.f),0),18),t.g,YP(JJ(eH(t.g),0),18),"labels",0,-1,zre,!1,!1,!0,!0,!1,!1,!1),R2(YP(JJ(eH(t.f),1),34),t.wb._,NNt,null,0,1,zre,!1,!1,!0,!1,!0,!1),yY(t.n,qre,"ElkShape",!0,!1,!0),R2(YP(JJ(eH(t.n),0),34),t.wb.t,PNt,rTt,1,1,qre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.n),1),34),t.wb.t,BNt,rTt,1,1,qre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.n),2),34),t.wb.t,"x",rTt,1,1,qre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.n),3),34),t.wb.t,"y",rTt,1,1,qre,!1,!1,!0,!1,!0,!1),Ert(o=n6(t.n,null,"setDimensions"),t.wb.t,BNt),Ert(o,t.wb.t,PNt),Ert(o=n6(t.n,null,"setLocation"),t.wb.t,"x"),Ert(o,t.wb.t,"y"),yY(t.g,Vre,sNt,!1,!1,!0),krt(YP(JJ(eH(t.g),0),18),t.f,YP(JJ(eH(t.f),0),18),FNt,0,1,Vre,!1,!1,!0,!1,!1,!1,!1),R2(YP(JJ(eH(t.g),1),34),t.wb._,jNt,"",0,1,Vre,!1,!1,!0,!1,!0,!1),yY(t.c,Hre,nNt,!0,!1,!0),krt(YP(JJ(eH(t.c),0),18),t.d,YP(JJ(eH(t.d),1),18),"outgoingEdges",0,-1,Hre,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.c),1),18),t.d,YP(JJ(eH(t.d),2),18),"incomingEdges",0,-1,Hre,!1,!1,!0,!1,!0,!1,!1),yY(t.i,Qre,cNt,!1,!1,!0),krt(YP(JJ(eH(t.i),0),18),t.j,YP(JJ(eH(t.j),0),18),"ports",0,-1,Qre,!1,!1,!0,!0,!1,!1,!1),krt(YP(JJ(eH(t.i),1),18),t.i,YP(JJ(eH(t.i),2),18),RNt,0,-1,Qre,!1,!1,!0,!0,!1,!1,!1),krt(YP(JJ(eH(t.i),2),18),t.i,YP(JJ(eH(t.i),1),18),FNt,0,1,Qre,!1,!1,!0,!1,!1,!1,!1),krt(YP(JJ(eH(t.i),3),18),t.d,YP(JJ(eH(t.d),0),18),"containedEdges",0,-1,Qre,!1,!1,!0,!0,!1,!1,!1),R2(YP(JJ(eH(t.i),4),34),t.wb.e,$Nt,null,0,1,Qre,!0,!0,!1,!1,!0,!0),yY(t.j,Zre,uNt,!1,!1,!0),krt(YP(JJ(eH(t.j),0),18),t.i,YP(JJ(eH(t.i),0),18),FNt,0,1,Zre,!1,!1,!0,!1,!1,!1,!1),yY(t.d,Ure,iNt,!1,!1,!0),krt(YP(JJ(eH(t.d),0),18),t.i,YP(JJ(eH(t.i),3),18),"containingNode",0,1,Ure,!1,!1,!0,!1,!1,!1,!1),krt(YP(JJ(eH(t.d),1),18),t.c,YP(JJ(eH(t.c),0),18),zNt,0,-1,Ure,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.d),2),18),t.c,YP(JJ(eH(t.c),1),18),qNt,0,-1,Ure,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.d),3),18),t.e,YP(JJ(eH(t.e),5),18),HNt,0,-1,Ure,!1,!1,!0,!0,!1,!1,!1),R2(YP(JJ(eH(t.d),4),34),t.wb.e,"hyperedge",null,0,1,Ure,!0,!0,!1,!1,!0,!0),R2(YP(JJ(eH(t.d),5),34),t.wb.e,$Nt,null,0,1,Ure,!0,!0,!1,!1,!0,!0),R2(YP(JJ(eH(t.d),6),34),t.wb.e,"selfloop",null,0,1,Ure,!0,!0,!1,!1,!0,!0),R2(YP(JJ(eH(t.d),7),34),t.wb.e,"connected",null,0,1,Ure,!0,!0,!1,!1,!0,!0),yY(t.b,$re,tNt,!1,!1,!0),R2(YP(JJ(eH(t.b),0),34),t.wb.t,"x",rTt,1,1,$re,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.b),1),34),t.wb.t,"y",rTt,1,1,$re,!1,!1,!0,!1,!0,!1),Ert(o=n6(t.b,null,"set"),t.wb.t,"x"),Ert(o,t.wb.t,"y"),yY(t.e,Gre,rNt,!1,!1,!0),R2(YP(JJ(eH(t.e),0),34),t.wb.t,"startX",null,0,1,Gre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.e),1),34),t.wb.t,"startY",null,0,1,Gre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.e),2),34),t.wb.t,"endX",null,0,1,Gre,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.e),3),34),t.wb.t,"endY",null,0,1,Gre,!1,!1,!0,!1,!0,!1),krt(YP(JJ(eH(t.e),4),18),t.b,null,UNt,0,-1,Gre,!1,!1,!0,!0,!1,!1,!1),krt(YP(JJ(eH(t.e),5),18),t.d,YP(JJ(eH(t.d),3),18),FNt,0,1,Gre,!1,!1,!0,!1,!1,!1,!1),krt(YP(JJ(eH(t.e),6),18),t.c,null,GNt,0,1,Gre,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.e),7),18),t.c,null,YNt,0,1,Gre,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.e),8),18),t.e,YP(JJ(eH(t.e),9),18),KNt,0,-1,Gre,!1,!1,!0,!1,!0,!1,!1),krt(YP(JJ(eH(t.e),9),18),t.e,YP(JJ(eH(t.e),8),18),WNt,0,-1,Gre,!1,!1,!0,!1,!0,!1,!1),R2(YP(JJ(eH(t.e),10),34),t.wb._,NNt,null,0,1,Gre,!1,!1,!0,!1,!0,!1),Ert(o=n6(t.e,null,"setStartLocation"),t.wb.t,"x"),Ert(o,t.wb.t,"y"),Ert(o=n6(t.e,null,"setEndLocation"),t.wb.t,"x"),Ert(o,t.wb.t,"y"),yY(t.k,Vjt,"ElkPropertyToValueMapEntry",!1,!1,!1),e=xq(t.o),n=new iw,aQ((!e.d&&(e.d=new qI(toe,e,1)),e.d),n),_ht(YP(JJ(eH(t.k),0),34),e,"key",Vjt,!1,!1,!0,!1),R2(YP(JJ(eH(t.k),1),34),t.s,LNt,null,0,1,Vjt,!1,!1,!0,!1,!0,!1),Yz(t.o,d9t,"IProperty",!0),Yz(t.s,Rjt,"PropertyValue",!0),i8(t,ANt))}(t),xrt(t),jU(Vae,ANt,t),t)}function Dx(){Dx=I,aoe=function(){var t,e;Kyt();try{if(e=YP(Kat((pE(),Vae),iFt),1941))return e}catch(e){if(!EI(e=b4(e),102))throw ow(e);t=e,Cj((RM(),t))}return new $c}()}function Nx(){Nx=I,vse=function(){var t,e;ZQ();try{if(e=YP(Kat((pE(),Vae),NFt),2024))return e}catch(e){if(!EI(e=b4(e),102))throw ow(e);t=e,Cj((RM(),t))}return new Du}()}function Px(){var t;Px=I,xse=rce?YP(jft((pE(),Vae),NFt),1945):($A(mse,new Yu),$A(Vse,new il),$A(Qse,new gl),$A(Zse,new Tl),$A(XRt,new Ml),$A($v(zce,1),new Il),$A(MRt,new Ll),$A(LRt,new Ol),$A(XRt,new Bu),$A(XRt,new Fu),$A(XRt,new ju),$A(PRt,new Ru),$A(XRt,new $u),$A(Gjt,new zu),$A(Gjt,new qu),$A(XRt,new Hu),$A(BRt,new Uu),$A(XRt,new Gu),$A(XRt,new Ku),$A(XRt,new Wu),$A(XRt,new Xu),$A(XRt,new Vu),$A($v(zce,1),new Qu),$A(XRt,new Zu),$A(XRt,new Ju),$A(Gjt,new tl),$A(Gjt,new el),$A(XRt,new nl),$A(RRt,new rl),$A(XRt,new al),$A(GRt,new ol),$A(XRt,new sl),$A(XRt,new cl),$A(XRt,new ul),$A(XRt,new ll),$A(Gjt,new hl),$A(Gjt,new fl),$A(XRt,new dl),$A(XRt,new pl),$A(XRt,new bl),$A(XRt,new wl),$A(XRt,new yl),$A(XRt,new ml),$A(KRt,new vl),$A(XRt,new xl),$A(XRt,new kl),$A(XRt,new _l),$A(KRt,new El),$A(GRt,new Cl),$A(XRt,new Sl),$A(RRt,new Al),t=YP(EI(eU((pE(),Vae),NFt),586)?eU(Vae,NFt):new Cz,586),rce=!0,function(t){t.N||(t.N=!0,t.b=F3(t,0),v2(t.b,0),v2(t.b,1),v2(t.b,2),t.bb=F3(t,1),v2(t.bb,0),v2(t.bb,1),t.fb=F3(t,2),v2(t.fb,3),v2(t.fb,4),x2(t.fb,5),t.qb=F3(t,3),v2(t.qb,0),x2(t.qb,1),x2(t.qb,2),v2(t.qb,3),v2(t.qb,4),x2(t.qb,5),v2(t.qb,6),t.a=j3(t,4),t.c=j3(t,5),t.d=j3(t,6),t.e=j3(t,7),t.f=j3(t,8),t.g=j3(t,9),t.i=j3(t,10),t.j=j3(t,11),t.k=j3(t,12),t.n=j3(t,13),t.o=j3(t,14),t.p=j3(t,15),t.q=j3(t,16),t.s=j3(t,17),t.r=j3(t,18),t.t=j3(t,19),t.u=j3(t,20),t.v=j3(t,21),t.w=j3(t,22),t.B=j3(t,23),t.A=j3(t,24),t.C=j3(t,25),t.D=j3(t,26),t.F=j3(t,27),t.G=j3(t,28),t.H=j3(t,29),t.J=j3(t,30),t.I=j3(t,31),t.K=j3(t,32),t.M=j3(t,33),t.L=j3(t,34),t.P=j3(t,35),t.Q=j3(t,36),t.R=j3(t,37),t.S=j3(t,38),t.T=j3(t,39),t.U=j3(t,40),t.V=j3(t,41),t.X=j3(t,42),t.W=j3(t,43),t.Y=j3(t,44),t.Z=j3(t,45),t.$=j3(t,46),t._=j3(t,47),t.ab=j3(t,48),t.cb=j3(t,49),t.db=j3(t,50),t.eb=j3(t,51),t.gb=j3(t,52),t.hb=j3(t,53),t.ib=j3(t,54),t.jb=j3(t,55),t.kb=j3(t,56),t.lb=j3(t,57),t.mb=j3(t,58),t.nb=j3(t,59),t.ob=j3(t,60),t.pb=j3(t,61))}(t),function(t){var e;t.O||(t.O=!0,w2(t,"type"),y2(t,"ecore.xml.type"),m2(t,NFt),e=YP(jft((pE(),Vae),NFt),1945),aQ(_H(t.fb),t.b),yY(t.b,mse,"AnyType",!1,!1,!0),R2(YP(JJ(eH(t.b),0),34),t.wb.D,YBt,null,0,-1,mse,!1,!1,!0,!1,!1,!1),R2(YP(JJ(eH(t.b),1),34),t.wb.D,"any",null,0,-1,mse,!0,!0,!0,!1,!1,!0),R2(YP(JJ(eH(t.b),2),34),t.wb.D,"anyAttribute",null,0,-1,mse,!1,!1,!0,!1,!1,!1),yY(t.bb,Vse,RFt,!1,!1,!0),R2(YP(JJ(eH(t.bb),0),34),t.gb,"data",null,0,1,Vse,!1,!1,!0,!1,!0,!1),R2(YP(JJ(eH(t.bb),1),34),t.gb,aPt,null,1,1,Vse,!1,!1,!0,!1,!0,!1),yY(t.fb,Qse,$Ft,!1,!1,!0),R2(YP(JJ(eH(t.fb),0),34),e.gb,"rawValue",null,0,1,Qse,!0,!0,!0,!1,!0,!0),R2(YP(JJ(eH(t.fb),1),34),e.a,LNt,null,0,1,Qse,!0,!0,!0,!1,!0,!0),krt(YP(JJ(eH(t.fb),2),18),t.wb.q,null,"instanceType",1,1,Qse,!1,!1,!0,!1,!1,!1,!1),yY(t.qb,Zse,zFt,!1,!1,!0),R2(YP(JJ(eH(t.qb),0),34),t.wb.D,YBt,null,0,-1,null,!1,!1,!0,!1,!1,!1),krt(YP(JJ(eH(t.qb),1),18),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),krt(YP(JJ(eH(t.qb),2),18),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),R2(YP(JJ(eH(t.qb),3),34),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),R2(YP(JJ(eH(t.qb),4),34),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),krt(YP(JJ(eH(t.qb),5),18),t.bb,null,djt,0,-2,null,!0,!0,!0,!0,!1,!1,!0),R2(YP(JJ(eH(t.qb),6),34),t.gb,jNt,null,0,-2,null,!0,!0,!0,!1,!1,!0),Yz(t.a,Rjt,"AnySimpleType",!0),Yz(t.c,XRt,"AnyURI",!0),Yz(t.d,$v(zce,1),"Base64Binary",!0),Yz(t.e,Rce,"Boolean",!0),Yz(t.f,MRt,"BooleanObject",!0),Yz(t.g,zce,"Byte",!0),Yz(t.i,LRt,"ByteObject",!0),Yz(t.j,XRt,"Date",!0),Yz(t.k,XRt,"DateTime",!0),Yz(t.n,r$t,"Decimal",!0),Yz(t.o,qce,"Double",!0),Yz(t.p,PRt,"DoubleObject",!0),Yz(t.q,XRt,"Duration",!0),Yz(t.s,Gjt,"ENTITIES",!0),Yz(t.r,Gjt,"ENTITIESBase",!0),Yz(t.t,XRt,KFt,!0),Yz(t.u,Hce,"Float",!0),Yz(t.v,BRt,"FloatObject",!0),Yz(t.w,XRt,"GDay",!0),Yz(t.B,XRt,"GMonth",!0),Yz(t.A,XRt,"GMonthDay",!0),Yz(t.C,XRt,"GYear",!0),Yz(t.D,XRt,"GYearMonth",!0),Yz(t.F,$v(zce,1),"HexBinary",!0),Yz(t.G,XRt,"ID",!0),Yz(t.H,XRt,"IDREF",!0),Yz(t.J,Gjt,"IDREFS",!0),Yz(t.I,Gjt,"IDREFSBase",!0),Yz(t.K,jce,"Int",!0),Yz(t.M,p$t,"Integer",!0),Yz(t.L,RRt,"IntObject",!0),Yz(t.P,XRt,"Language",!0),Yz(t.Q,$ce,"Long",!0),Yz(t.R,GRt,"LongObject",!0),Yz(t.S,XRt,"Name",!0),Yz(t.T,XRt,WFt,!0),Yz(t.U,p$t,"NegativeInteger",!0),Yz(t.V,XRt,rjt,!0),Yz(t.X,Gjt,"NMTOKENS",!0),Yz(t.W,Gjt,"NMTOKENSBase",!0),Yz(t.Y,p$t,"NonNegativeInteger",!0),Yz(t.Z,p$t,"NonPositiveInteger",!0),Yz(t.$,XRt,"NormalizedString",!0),Yz(t._,XRt,"NOTATION",!0),Yz(t.ab,XRt,"PositiveInteger",!0),Yz(t.cb,XRt,"QName",!0),Yz(t.db,Uce,"Short",!0),Yz(t.eb,KRt,"ShortObject",!0),Yz(t.gb,XRt,J_t,!0),Yz(t.hb,XRt,"Time",!0),Yz(t.ib,XRt,"Token",!0),Yz(t.jb,Uce,"UnsignedByte",!0),Yz(t.kb,KRt,"UnsignedByteObject",!0),Yz(t.lb,$ce,"UnsignedInt",!0),Yz(t.mb,GRt,"UnsignedIntObject",!0),Yz(t.nb,p$t,"UnsignedLong",!0),Yz(t.ob,jce,"UnsignedShort",!0),Yz(t.pb,RRt,"UnsignedShortObject",!0),i8(t,NFt),function(t){Xft(t.a,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"anySimpleType"])),Xft(t.b,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"anyType",WBt,YBt])),Xft(YP(JJ(eH(t.b),0),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,SFt,uPt,":mixed"])),Xft(YP(JJ(eH(t.b),1),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,SFt,DFt,PFt,uPt,":1",UFt,"lax"])),Xft(YP(JJ(eH(t.b),2),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,TFt,DFt,PFt,uPt,":2",UFt,"lax"])),Xft(t.c,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"anyURI",OFt,AFt])),Xft(t.d,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"base64Binary",OFt,AFt])),Xft(t.e,KBt,M4($v(XRt,1),m_t,2,6,[uPt,qkt,OFt,AFt])),Xft(t.f,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"boolean:Object",oFt,qkt])),Xft(t.g,KBt,M4($v(XRt,1),m_t,2,6,[uPt,NBt])),Xft(t.i,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"byte:Object",oFt,NBt])),Xft(t.j,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"date",OFt,AFt])),Xft(t.k,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"dateTime",OFt,AFt])),Xft(t.n,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"decimal",OFt,AFt])),Xft(t.o,KBt,M4($v(XRt,1),m_t,2,6,[uPt,BBt,OFt,AFt])),Xft(t.p,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"double:Object",oFt,BBt])),Xft(t.q,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"duration",OFt,AFt])),Xft(t.s,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"ENTITIES",oFt,GFt,YFt,"1"])),Xft(t.r,KBt,M4($v(XRt,1),m_t,2,6,[uPt,GFt,MFt,KFt])),Xft(t.t,KBt,M4($v(XRt,1),m_t,2,6,[uPt,KFt,oFt,WFt])),Xft(t.u,KBt,M4($v(XRt,1),m_t,2,6,[uPt,FBt,OFt,AFt])),Xft(t.v,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"float:Object",oFt,FBt])),Xft(t.w,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"gDay",OFt,AFt])),Xft(t.B,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"gMonth",OFt,AFt])),Xft(t.A,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"gMonthDay",OFt,AFt])),Xft(t.C,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"gYear",OFt,AFt])),Xft(t.D,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"gYearMonth",OFt,AFt])),Xft(t.F,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"hexBinary",OFt,AFt])),Xft(t.G,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"ID",oFt,WFt])),Xft(t.H,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"IDREF",oFt,WFt])),Xft(t.J,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"IDREFS",oFt,XFt,YFt,"1"])),Xft(t.I,KBt,M4($v(XRt,1),m_t,2,6,[uPt,XFt,MFt,"IDREF"])),Xft(t.K,KBt,M4($v(XRt,1),m_t,2,6,[uPt,jBt])),Xft(t.M,KBt,M4($v(XRt,1),m_t,2,6,[uPt,VFt])),Xft(t.L,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"int:Object",oFt,jBt])),Xft(t.P,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"language",oFt,QFt,ZFt,JFt])),Xft(t.Q,KBt,M4($v(XRt,1),m_t,2,6,[uPt,RBt])),Xft(t.R,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"long:Object",oFt,RBt])),Xft(t.S,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"Name",oFt,QFt,ZFt,tjt])),Xft(t.T,KBt,M4($v(XRt,1),m_t,2,6,[uPt,WFt,oFt,"Name",ZFt,ejt])),Xft(t.U,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"negativeInteger",oFt,njt,ijt,"-1"])),Xft(t.V,KBt,M4($v(XRt,1),m_t,2,6,[uPt,rjt,oFt,QFt,ZFt,"\\c+"])),Xft(t.X,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"NMTOKENS",oFt,ajt,YFt,"1"])),Xft(t.W,KBt,M4($v(XRt,1),m_t,2,6,[uPt,ajt,MFt,rjt])),Xft(t.Y,KBt,M4($v(XRt,1),m_t,2,6,[uPt,ojt,oFt,VFt,sjt,"0"])),Xft(t.Z,KBt,M4($v(XRt,1),m_t,2,6,[uPt,njt,oFt,VFt,ijt,"0"])),Xft(t.$,KBt,M4($v(XRt,1),m_t,2,6,[uPt,cjt,oFt,Ukt,OFt,"replace"])),Xft(t._,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"NOTATION",OFt,AFt])),Xft(t.ab,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"positiveInteger",oFt,ojt,sjt,"1"])),Xft(t.bb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"processingInstruction_._type",WBt,"empty"])),Xft(YP(JJ(eH(t.bb),0),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,EFt,uPt,"data"])),Xft(YP(JJ(eH(t.bb),1),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,EFt,uPt,aPt])),Xft(t.cb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"QName",OFt,AFt])),Xft(t.db,KBt,M4($v(XRt,1),m_t,2,6,[uPt,$Bt])),Xft(t.eb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"short:Object",oFt,$Bt])),Xft(t.fb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"simpleAnyType",WBt,_Ft])),Xft(YP(JJ(eH(t.fb),0),34),KBt,M4($v(XRt,1),m_t,2,6,[uPt,":3",WBt,_Ft])),Xft(YP(JJ(eH(t.fb),1),34),KBt,M4($v(XRt,1),m_t,2,6,[uPt,":4",WBt,_Ft])),Xft(YP(JJ(eH(t.fb),2),18),KBt,M4($v(XRt,1),m_t,2,6,[uPt,":5",WBt,_Ft])),Xft(t.gb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,Ukt,OFt,"preserve"])),Xft(t.hb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"time",OFt,AFt])),Xft(t.ib,KBt,M4($v(XRt,1),m_t,2,6,[uPt,QFt,oFt,cjt,OFt,AFt])),Xft(t.jb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,ujt,ijt,"255",sjt,"0"])),Xft(t.kb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"unsignedByte:Object",oFt,ujt])),Xft(t.lb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,ljt,ijt,"4294967295",sjt,"0"])),Xft(t.mb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"unsignedInt:Object",oFt,ljt])),Xft(t.nb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"unsignedLong",oFt,ojt,ijt,hjt,sjt,"0"])),Xft(t.ob,KBt,M4($v(XRt,1),m_t,2,6,[uPt,fjt,ijt,"65535",sjt,"0"])),Xft(t.pb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"unsignedShort:Object",oFt,fjt])),Xft(t.qb,KBt,M4($v(XRt,1),m_t,2,6,[uPt,"",WBt,YBt])),Xft(YP(JJ(eH(t.qb),0),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,SFt,uPt,":mixed"])),Xft(YP(JJ(eH(t.qb),1),18),KBt,M4($v(XRt,1),m_t,2,6,[WBt,EFt,uPt,"xmlns:prefix"])),Xft(YP(JJ(eH(t.qb),2),18),KBt,M4($v(XRt,1),m_t,2,6,[WBt,EFt,uPt,"xsi:schemaLocation"])),Xft(YP(JJ(eH(t.qb),3),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,CFt,uPt,"cDATA",IFt,LFt])),Xft(YP(JJ(eH(t.qb),4),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,CFt,uPt,"comment",IFt,LFt])),Xft(YP(JJ(eH(t.qb),5),18),KBt,M4($v(XRt,1),m_t,2,6,[WBt,CFt,uPt,djt,IFt,LFt])),Xft(YP(JJ(eH(t.qb),6),34),KBt,M4($v(XRt,1),m_t,2,6,[WBt,CFt,uPt,jNt,IFt,LFt]))}(t))}(t),Iz((bE(),roe),t,new Pu),xrt(t),jU(Vae,NFt,t),t)}function Bx(){Bx=I,wae=i0()}function Fx(){throw ow(new Lw)}function jx(){throw ow(new Lw)}function Rx(){throw ow(new Lw)}function $x(){throw ow(new Lw)}function zx(){throw ow(new Lw)}function qx(){throw ow(new Lw)}function Hx(t){this.a=new w_(t)}function Ux(t){yxt(),function(t,e){var n,i,r,a,o,s,c,u;if(n=0,o=0,a=e.length,s=null,u=new Av,o1?RG(Rj(e.a[1],32),jG(e.a[0],nTt)):jG(e.a[0],nTt),HY(V7(e.e,n))))}(t,new _M(c));for(t.d=u.a.length,r=0;r0}(YP(t,33))?DL(i,(Get(),b9t))||DL(i,w9t):DL(i,(Get(),b9t));if(EI(t,352))return DL(i,(Get(),g9t));if(EI(t,186))return DL(i,(Get(),y9t));if(EI(t,354))return DL(i,(Get(),p9t))}return!0}(t,e)}function ik(t,e,n){t.splice(e,n)}function rk(t){t.c?dpt(t):gpt(t)}function ak(t){this.a=0,this.b=t}function ok(){this.a=new qdt(o6t)}function sk(){this.b=new qdt(X4t)}function ck(){this.b=new qdt(J8t)}function uk(){this.b=new qdt(J8t)}function lk(){throw ow(new Lw)}function hk(){throw ow(new Lw)}function fk(){throw ow(new Lw)}function dk(){throw ow(new Lw)}function gk(){throw ow(new Lw)}function pk(){throw ow(new Lw)}function bk(){throw ow(new Lw)}function wk(){throw ow(new Lw)}function yk(){throw ow(new Lw)}function mk(){throw ow(new Lw)}function vk(t){this.a=new xk(t)}function xk(t){!function(t,e,n){var i;t.b=e,t.a=n,i=512==(512&t.a)?new Xy:new Dl,t.c=function(t,e,n){var i,r,a;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,16==(16&t.e)&&(t.i=function(t){var e,n,i,r,a;for(i=t.length,e=new Cv,a=0;ae&&e<$_t}function b_(t){return H$(),t?wRt:bRt}function w_(t){J4.call(this,t,0)}function y_(){oR.call(this,null)}function m_(){KV.call(this,null)}function v_(t){this.c=t,JZ(this)}function x_(){eI(this),Bq(this)}function k_(t,e){pz(t),t.a.Nb(e)}function __(t,e){return t.Gc(e),t}function E_(t,e){return t.a.f=e,t}function T_(t,e){return t.a.d=e,t}function C_(t,e){return t.a.g=e,t}function S_(t,e){return t.a.j=e,t}function A_(t,e){return t.a.a=e,t}function M_(t,e){return t.a.d=e,t}function I_(t,e){return t.a.e=e,t}function L_(t,e){return t.a.g=e,t}function O_(t,e){return t.a.f=e,t}function D_(){D_=I,D$t=new LA}function N_(){N_=I,N$t=new OA}function P_(){P_=I,W$t=new Y}function B_(){B_=I,EGt=new Be}function F_(){F_=I,hHt=new _O}function j_(){j_=I,szt=new ct}function R_(){R_=I,SGt=new Fe}function $_(){$_=I,pzt=new dt}function z_(){z_=I,VUt=new ye}function q_(){q_=I,YGt=new _x}function H_(){H_=I,QUt=new Te}function U_(){U_=I,nGt=new sj}function G_(){G_=I,bGt=new _e}function Y_(){Y_=I,KGt=new fn}function K_(){K_=I,oKt=new Vn}function W_(){W_=I,vKt=new Or}function X_(){X_=I,nWt=new ia}function V_(){V_=I,t6t=new aK}function Q_(){Q_=I,t7t=new nE}function Z_(){Z_=I,i7t=new eD}function J_(){J_=I,Q7t=new Az}function tE(){tE=I,t2t=new Ks}function eE(){v0(),this.c=new fv}function nE(){qk.call(this,ZAt,0)}function iE(t,e){Ret(t.c.b,e.c,e)}function rE(t,e){Ret(t.c.c,e.b,e)}function aE(t,e,n){jU(t.d,e.f,n)}function oE(t,e,n,i){!function(t,e,n,i){var r;(r=function(t){var e,n,i,r;for(Mkt(),i=0,r=(n=qet()).length;i0)){if(a=-1,32==qz(h.c,0)){if(f=l[0],YZ(n,l),l[0]>f)continue}else if(OH(n,h.c,l[0])){l[0]+=h.c.length;continue}return 0}if(a<0&&h.a&&(a=u,o=l[0],r=0),a>=0){if(c=h.b,u==a&&0==(c-=r++))return 0;if(!Axt(n,l,h,c,s)){u=a-1,l[0]=o;continue}}else if(a=-1,!Axt(n,l,h,0,s))return 0}return function(t,n){var i,r,a,o,s,c;if(0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>X_t&&YK(n,t.p-mEt),s=n.q.getDate(),dU(n,1),t.k>=0&&function(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),_yt(t,n)}(n,t.k),t.c>=0?dU(n,t.c):t.k>=0?(r=35-new g5(n.q.getFullYear()-mEt,n.q.getMonth(),35).q.getDate(),dU(n,e.Math.min(r,s))):dU(n,s),t.f<0&&(t.f=n.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),function(t,e){t.q.setHours(e),_yt(t,e)}(n,24==t.f&&t.g?0:t.f),t.j>=0&&function(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),_yt(t,n)}(n,t.j),t.n>=0&&function(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),_yt(t,n)}(n,t.n),t.i>=0&&mA(n,X7(V7(Bat(I3(n.q.getTime()),aEt),aEt),t.i)),t.a&&(YK(a=new i_,a.q.getFullYear()-mEt-80),ME(I3(n.q.getTime()),I3(a.q.getTime()))&&YK(n,a.q.getFullYear()-mEt+100)),t.d>=0)if(-1==t.c)(i=(7+t.d-n.q.getDay())%7)>3&&(i-=7),c=n.q.getMonth(),dU(n,n.q.getDate()+i),n.q.getMonth()!=c&&dU(n,n.q.getDate()+(i>0?-7:7));else if(n.q.getDay()!=t.d)return!1;return t.o>X_t&&(o=n.q.getTimezoneOffset(),mA(n,X7(I3(n.q.getTime()),60*(t.o-o)*aEt))),!0}(s,i)?l[0]:0}(t,n,a=new g5((r=new i_).q.getFullYear()-mEt,r.q.getMonth(),r.q.getDate())))||i0}function ME(t,e){return p8(t,e)<0}function IE(t,e){return t.a.get(e)}function LE(t,e){return kR(t.e,e)}function OE(t){return dz(t),!1}function DE(t){AG.call(this,t,21)}function NE(t,e){fU.call(this,t,e)}function PE(t,e){qk.call(this,t,e)}function BE(t,e){qk.call(this,t,e)}function FE(t){G$(),ZN.call(this,t)}function jE(t,e){XF(t,t.length,e)}function RE(t,e){t$(t,t.length,e)}function $E(t,e,n){t.splice(e,0,n)}function zE(t,e){this.d=t,this.e=e}function qE(t,e){this.b=t,this.a=e}function HE(t,e){this.b=t,this.a=e}function UE(t,e){this.b=t,this.a=e}function GE(t,e){this.a=t,this.b=e}function YE(t,e){this.a=t,this.b=e}function KE(t,e){this.a=t,this.b=e}function WE(t,e){this.a=t,this.b=e}function XE(t,e){this.a=t,this.b=e}function VE(t,e){this.b=t,this.a=e}function QE(t,e){this.b=t,this.a=e}function ZE(t,e){qk.call(this,t,e)}function JE(t,e){qk.call(this,t,e)}function tT(t,e){qk.call(this,t,e)}function eT(t,e){qk.call(this,t,e)}function nT(t,e){qk.call(this,t,e)}function iT(t,e){qk.call(this,t,e)}function rT(t,e){qk.call(this,t,e)}function aT(t,e){qk.call(this,t,e)}function oT(t,e){qk.call(this,t,e)}function sT(t,e){qk.call(this,t,e)}function cT(t,e){qk.call(this,t,e)}function uT(t,e){qk.call(this,t,e)}function lT(t,e){qk.call(this,t,e)}function hT(t,e){qk.call(this,t,e)}function fT(t,e){qk.call(this,t,e)}function dT(t,e){qk.call(this,t,e)}function gT(t,e){qk.call(this,t,e)}function pT(t,e){qk.call(this,t,e)}function bT(t,e){this.a=t,this.b=e}function wT(t,e){this.a=t,this.b=e}function yT(t,e){this.a=t,this.b=e}function mT(t,e){this.a=t,this.b=e}function vT(t,e){this.a=t,this.b=e}function xT(t,e){this.a=t,this.b=e}function kT(t,e){this.a=t,this.b=e}function _T(t,e){this.a=t,this.b=e}function ET(t,e){this.a=t,this.b=e}function TT(t,e){this.b=t,this.a=e}function CT(t,e){this.b=t,this.a=e}function ST(t,e){this.b=t,this.a=e}function AT(t,e){this.b=t,this.a=e}function MT(t,e){this.c=t,this.d=e}function IT(t,e){this.e=t,this.d=e}function LT(t,e){this.a=t,this.b=e}function OT(t,e){this.b=e,this.c=t}function DT(t,e){qk.call(this,t,e)}function NT(t,e){qk.call(this,t,e)}function PT(t,e){qk.call(this,t,e)}function BT(t,e){qk.call(this,t,e)}function FT(t,e){qk.call(this,t,e)}function jT(t,e){qk.call(this,t,e)}function RT(t,e){qk.call(this,t,e)}function $T(t,e){qk.call(this,t,e)}function zT(t,e){qk.call(this,t,e)}function qT(t,e){qk.call(this,t,e)}function HT(t,e){qk.call(this,t,e)}function UT(t,e){qk.call(this,t,e)}function GT(t,e){qk.call(this,t,e)}function YT(t,e){qk.call(this,t,e)}function KT(t,e){qk.call(this,t,e)}function WT(t,e){qk.call(this,t,e)}function XT(t,e){qk.call(this,t,e)}function VT(t,e){qk.call(this,t,e)}function QT(t,e){qk.call(this,t,e)}function ZT(t,e){qk.call(this,t,e)}function JT(t,e){qk.call(this,t,e)}function tC(t,e){qk.call(this,t,e)}function eC(t,e){qk.call(this,t,e)}function nC(t,e){qk.call(this,t,e)}function iC(t,e){qk.call(this,t,e)}function rC(t,e){qk.call(this,t,e)}function aC(t,e){qk.call(this,t,e)}function oC(t,e){qk.call(this,t,e)}function sC(t,e){qk.call(this,t,e)}function cC(t,e){qk.call(this,t,e)}function uC(t,e){qk.call(this,t,e)}function lC(t,e){qk.call(this,t,e)}function hC(t,e){qk.call(this,t,e)}function fC(t,e){qk.call(this,t,e)}function dC(t,e){this.b=t,this.a=e}function gC(t,e){this.a=t,this.b=e}function pC(t,e){this.a=t,this.b=e}function bC(t,e){this.a=t,this.b=e}function wC(t,e){this.a=t,this.b=e}function yC(t,e){qk.call(this,t,e)}function mC(t,e){qk.call(this,t,e)}function vC(t,e){this.b=t,this.d=e}function xC(t,e){qk.call(this,t,e)}function kC(t,e){qk.call(this,t,e)}function _C(t,e){this.a=t,this.b=e}function EC(t,e){this.a=t,this.b=e}function TC(t,e){qk.call(this,t,e)}function CC(t,e){qk.call(this,t,e)}function SC(t,e){qk.call(this,t,e)}function AC(t,e){qk.call(this,t,e)}function MC(t,e){qk.call(this,t,e)}function IC(t,e){qk.call(this,t,e)}function LC(t,e){qk.call(this,t,e)}function OC(t,e){qk.call(this,t,e)}function DC(t,e){qk.call(this,t,e)}function NC(t,e){qk.call(this,t,e)}function PC(t,e){qk.call(this,t,e)}function BC(t,e){qk.call(this,t,e)}function FC(t,e){qk.call(this,t,e)}function jC(t,e){qk.call(this,t,e)}function RC(t,e){qk.call(this,t,e)}function $C(t,e){qk.call(this,t,e)}function zC(t,e){return DL(t.g,e)}function qC(t,e){qk.call(this,t,e)}function HC(t,e){qk.call(this,t,e)}function UC(t,e){this.a=t,this.b=e}function GC(t,e){this.a=t,this.b=e}function YC(t,e){this.a=t,this.b=e}function KC(t,e){qk.call(this,t,e)}function WC(t,e){qk.call(this,t,e)}function XC(t,e){qk.call(this,t,e)}function VC(t,e){qk.call(this,t,e)}function QC(t,e){qk.call(this,t,e)}function ZC(t,e){qk.call(this,t,e)}function JC(t,e){qk.call(this,t,e)}function tS(t,e){qk.call(this,t,e)}function eS(t,e){qk.call(this,t,e)}function nS(t,e){qk.call(this,t,e)}function iS(t,e){qk.call(this,t,e)}function rS(t,e){qk.call(this,t,e)}function aS(t,e){qk.call(this,t,e)}function oS(t,e){qk.call(this,t,e)}function sS(t,e){qk.call(this,t,e)}function cS(t,e){qk.call(this,t,e)}function uS(t,e){this.a=t,this.b=e}function lS(t,e){this.a=t,this.b=e}function hS(t,e){this.a=t,this.b=e}function fS(t,e){this.a=t,this.b=e}function dS(t,e){this.a=t,this.b=e}function gS(t,e){this.a=t,this.b=e}function pS(t,e){this.a=t,this.b=e}function bS(t,e){qk.call(this,t,e)}function wS(t,e){this.a=t,this.b=e}function yS(t,e){this.a=t,this.b=e}function mS(t,e){this.a=t,this.b=e}function vS(t,e){this.a=t,this.b=e}function xS(t,e){this.a=t,this.b=e}function kS(t,e){this.a=t,this.b=e}function _S(t,e){this.b=t,this.a=e}function ES(t,e){this.b=t,this.a=e}function TS(t,e){this.b=t,this.a=e}function CS(t,e){this.b=t,this.a=e}function SS(t,e){this.a=t,this.b=e}function AS(t,e){this.a=t,this.b=e}function MS(t,e){!function(t,e){if(EI(e,239))return function(t,e){var n;if(null==(n=l1(t.i,e)))throw ow(new ov("Node did not exist in input."));return a3(e,n),null}(t,YP(e,33));if(EI(e,186))return function(t,e){var n;if(null==(n=B$(t.k,e)))throw ow(new ov("Port did not exist in input."));return a3(e,n),null}(t,YP(e,118));if(EI(e,354))return function(t,e){return a3(e,B$(t.f,e)),null}(t,YP(e,137));if(EI(e,352))return function(t,e){var n,i,r,a,o,s;if(!(o=YP(B$(t.c,e),183)))throw ow(new ov("Edge did not exist in input."));return i=Qtt(o),!kk((!e.a&&(e.a=new gR(Gre,e,6,6)),e.a))&&(n=new OP(t,i,s=new _f),function(t,e){!function(t,e){var n;for(n=0;t.e!=t.i.gc();)rF(e,ant(t),u7(n)),n!=Ykt&&++n}(new zI(t),e)}((!e.a&&(e.a=new gR(Gre,e,6,6)),e.a),n),EJ(o,HNt,s)),RV(e,(Ekt(),Bte))&&!(!(r=YP(yft(e,Bte),74))||uz(r))&&(zW(r,new bb(a=new _f)),EJ(o,"junctionPoints",a)),MB(o,"container",wU(e).k),null}(t,YP(e,79));if(e)return null;throw ow(new Ym(JNt+$st(new nv(M4($v(Rjt,1),Zkt,1,5,[e])))))}(t.a,YP(e,56))}function IS(t,e){!function(t,e){lB(),QP(t,new pS(e,u7(e.e.c.length+e.g.c.length)))}(t.a,YP(e,11))}function LS(){return Bv(),new S$t}function OS(){oG(),this.b=new Yw}function DS(){bgt(),this.a=new Yw}function NS(){eG(),uj.call(this)}function PS(t,e){qk.call(this,t,e)}function BS(t,e){this.a=t,this.b=e}function FS(t,e){this.a=t,this.b=e}function jS(t,e){this.a=t,this.b=e}function RS(t,e){this.a=t,this.b=e}function $S(t,e){this.a=t,this.b=e}function zS(t,e){this.a=t,this.b=e}function qS(t,e){this.d=t,this.b=e}function HS(t,e){this.d=t,this.e=e}function US(t,e){this.f=t,this.c=e}function GS(t,e){this.b=t,this.c=e}function YS(t,e){this.i=t,this.g=e}function KS(t,e){this.e=t,this.a=e}function WS(t,e){this.a=t,this.b=e}function XS(t,e){t.i=null,Y0(t,e)}function VS(t,e){return dtt(t.a,e)}function QS(t){return ptt(t.c,t.b)}function ZS(t){return t?t.dd():null}function JS(t){return t??null}function tA(t){return typeof t===qkt}function eA(t){return typeof t===Hkt}function nA(t){return typeof t===Ukt}function iA(t,e){return t.Hd().Xb(e)}function rA(t,e){return function(t,e){for(v$(e);t.Ob();)if(!a4(YP(t.Pb(),10)))return!1;return!0}(t.Kc(),e)}function aA(t,e){return 0==p8(t,e)}function oA(t,e){return 0!=p8(t,e)}function sA(t,e){return t.substr(e)}function cA(t){return T9(t),t.d.gc()}function uA(t){return function(t,e){var n,i,r;for(n=new gd(t.a.a);n.ae?1:0}function ZM(t,e){return p8(t,e)>0?t:e}function JM(t,e,n){return{l:t,m:e,h:n}}function tI(t,e){null!=t.a&&IS(e,t.a)}function eI(t){t.a=new O,t.c=new O}function nI(t){this.b=t,this.a=new Jb}function iI(t){this.b=new te,this.a=t}function rI(t){iN.call(this),this.a=t}function aI(){PE.call(this,"Range",2)}function oI(){vat(),this.a=new qdt(ZUt)}function sI(t,e,n){return Ntt(e,n,t.c)}function cI(t){return new YC(t.c,t.d)}function uI(t){return new YC(t.c,t.d)}function lI(t){return new YC(t.a,t.b)}function hI(t,e){return function(t,e,n){var i,r,a,o,s,c,u,l,h;for(!n&&(n=function(t){var e;return(e=new w).a=t,e.b=function(t){var e;return 0==t?"Etc/GMT":(t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+",e+zZ(t))}(t),e.c=HV(XRt,m_t,2,2,6,1),e.c[0]=T2(t),e.c[1]=T2(t),e}(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-n.a),c=s=new cD(X7(I3(e.q.getTime()),r)),s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,c=new cD(X7(I3(e.q.getTime()),r))),l=new Av,u=t.a.length,a=0;a=97&&i<=122||i>=65&&i<=90){for(o=a+1;o=u)throw ow(new Ym("Missing trailing '"));o+11)throw ow(new Ym(FFt));for(l=hgt(t.e.Tg(),e),i=YP(t.g,119),o=0;o0),a=YP(u.a.Xb(u.c=--u.b),17);a!=i&&u.b>0;)t.a[a.p]=!0,t.a[i.p]=!0,xO(u.b>0),a=YP(u.a.Xb(u.c=--u.b),17);u.b>0&&az(u)}}(t,e,n),n}function SI(t,e,n){t.a=1502^e,t.b=n^bTt}function AI(t,e,n){return t.a[e.g][n.g]}function MI(t,e){return t.a[e.c.p][e.p]}function II(t,e){return t.e[e.c.p][e.p]}function LI(t,e){return t.c[e.c.p][e.p]}function OI(t,e){return t.j[e.p]=function(t){var e,n,i,r;for(e=0,n=0,r=new gd(t.j);r.a1||n>1)return 2;return e+n==1?2:0}(e)}function DI(t,e){return t.a*=e,t.b*=e,t}function NI(t,e,n){return L$(t.g,e,n),n}function PI(t){t.a=YP(B3(t.b.a,4),126)}function BI(t){t.a=YP(B3(t.b.a,4),126)}function FI(t){IH(t,hPt),kdt(t,function(t){var e,n,i,r,a;switch(IH(t,hPt),(!t.b&&(t.b=new CN(Hre,t,4,7)),t.b).i+(!t.c&&(t.c=new CN(Hre,t,5,8)),t.c).i){case 0:throw ow(new Ym("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new CN(Hre,t,4,7)),t.b).i?kU(Zot(YP(JJ((!t.c&&(t.c=new CN(Hre,t,5,8)),t.c),0),82))):kU(Zot(YP(JJ((!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),0),82)))}if(1==(!t.b&&(t.b=new CN(Hre,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new CN(Hre,t,5,8)),t.c).i){if(r=Zot(YP(JJ((!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),0),82)),a=Zot(YP(JJ((!t.c&&(t.c=new CN(Hre,t,5,8)),t.c),0),82)),kU(r)==kU(a))return kU(r);if(r==kU(a))return r;if(a==kU(r))return a}for(e=Zot(YP(pX(i=HR(W1(M4($v(Hjt,1),Zkt,20,0,[(!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),(!t.c&&(t.c=new CN(Hre,t,5,8)),t.c)])))),82));Ght(i);)if((n=Zot(YP(pX(i),82)))!=e&&!zJ(n,e))if(kU(n)==kU(e))e=kU(n);else if(!(e=qft(e,n)))return null;return e}(t))}function jI(){jI=I,O$t=new Sm(null)}function RI(){(RI=I)(),j$t=new G}function $I(){this.Bb|=256,this.Bb|=512}function zI(t){this.i=t,this.f=this.i.j}function qI(t,e,n){mB.call(this,t,e,n)}function HI(t,e,n){qI.call(this,t,e,n)}function UI(t,e,n){qI.call(this,t,e,n)}function GI(t,e,n){HI.call(this,t,e,n)}function YI(t,e,n){mB.call(this,t,e,n)}function KI(t,e,n){mB.call(this,t,e,n)}function WI(t,e,n){EB.call(this,t,e,n)}function XI(t,e,n){EB.call(this,t,e,n)}function VI(t,e,n){WI.call(this,t,e,n)}function QI(t,e,n){YI.call(this,t,e,n)}function ZI(t,e){this.a=t,Zk.call(this,e)}function JI(t,e){this.a=t,hv.call(this,e)}function tL(t,e){this.a=t,hv.call(this,e)}function eL(t,e){this.a=t,hv.call(this,e)}function nL(t){this.a=t,af.call(this,t.d)}function iL(t){this.c=t,this.a=this.c.a}function rL(t,e){this.a=e,hv.call(this,t)}function aL(t,e){this.a=e,rW.call(this,t)}function oL(t,e){this.a=t,rW.call(this,e)}function sL(t,e){return function(t,e,n){try{!function(t,e,n){if(v$(e),n.Ob())for(bA(e,S$(n.Pb()));n.Ob();)bA(e,t.a),bA(e,S$(n.Pb()))}(t,e,n)}catch(t){throw EI(t=b4(t),597)?ow(new VW(t)):ow(t)}return e}(t,new Sv,e).a}function cL(t,e){return v$(e),new uL(t,e)}function uL(t,e){this.a=e,n_.call(this,t)}function lL(t){this.b=t,this.a=this.b.a.e}function hL(t){t.b.Qb(),--t.d.f.d,ij(t.d)}function fL(t){Xh.call(this,YP(v$(t),35))}function dL(t){Xh.call(this,YP(v$(t),35))}function gL(){qk.call(this,"INSTANCE",0)}function pL(t){if(!t)throw ow(new Aw)}function bL(t){if(!t)throw ow(new Mw)}function wL(t){if(!t)throw ow(new Nw)}function yL(){yL=I,mE(),lse=new Nh}function mL(){mL=I,CRt=!1,SRt=!0}function vL(t){Qf.call(this,(dz(t),t))}function xL(t){Qf.call(this,(dz(t),t))}function kL(t){cd.call(this,t),this.a=t}function _L(t){ud.call(this,t),this.a=t}function EL(t){Iv.call(this,t),this.a=t}function TL(){wI(this),jq(this),this._d()}function CL(t,e){this.a=e,n_.call(this,t)}function SL(t,e){return new yut(t.a,t.b,e)}function AL(t,e){return t.lastIndexOf(e)}function ML(t,e,n){return t.indexOf(e,n)}function IL(t){return null==t?e_t:k9(t)}function LL(t){return null!=t.a?t.a:null}function OL(t,e){return null!=aU(t.a,e)}function DL(t,e){return!!e&&t.b[e.g]==e}function NL(t){return t.$H||(t.$H=++hzt)}function PL(t,e){return QP(e.a,t.a),t.a}function BL(t,e){return QP(e.b,t.a),t.a}function FL(t,e){return QP(e.a,t.a),t.a}function jL(t){return xO(null!=t.a),t.a}function RL(t){kd.call(this,new XV(t))}function $L(t,e){yet.call(this,t,e,null)}function zL(t){this.a=t,sd.call(this,t)}function qL(){qL=I,Rqt=new ND(TCt,0)}function HL(t,e){return++t.b,QP(t.a,e)}function UL(t,e){return++t.b,eZ(t.a,e)}function GL(t,e){return YP(DX(t.b,e),15)}function YL(t){return WM(t.a)||WM(t.b)}function KL(t,e,n){return CK(t,e,n,t.c)}function WL(t,e,n){YP(bZ(t,e),21).Fc(n)}function XL(t,e){wE(),this.a=t,this.b=e}function VL(t,e){yE(),this.b=t,this.c=e}function QL(t,e){hj(),this.f=e,this.d=t}function ZL(t,e){FX(e,t),this.d=t,this.c=e}function JL(t){var e;e=t.a,t.a=t.b,t.b=e}function tO(t,e){return new MN(t,t.gc(),e)}function eO(t){this.d=t,zI.call(this,t)}function nO(t){this.c=t,zI.call(this,t)}function iO(t){this.c=t,eO.call(this,t)}function rO(){W_(),this.b=new $g(this)}function aO(t){return l0(t,z_t),new hV(t)}function oO(t){return SH(),parseInt(t)||-1}function sO(t,e,n){return t.substr(e,n-e)}function cO(t,e,n){return ML(t,fst(e),n)}function uO(t){return JR(t.c,t.c.length)}function lO(t){return null!=t.f?t.f:""+t.g}function hO(t){return xO(0!=t.b),t.a.a.c}function fO(t){return xO(0!=t.b),t.c.b.c}function dO(t){EI(t,150)&&YP(t,150).Gh()}function gO(t){return t.b=YP(Pq(t.a),42)}function pO(t){D_(),this.b=t,this.a=!0}function bO(t){N_(),this.b=t,this.a=!0}function wO(t){t.d=new kO(t),t.e=new tw}function yO(t){if(!t)throw ow(new Ow)}function mO(t){if(!t)throw ow(new Aw)}function vO(t){if(!t)throw ow(new Mw)}function xO(t){if(!t)throw ow(new Nw)}function kO(t){iB.call(this,t,null,null)}function _O(){qk.call(this,"POLYOMINO",0)}function EO(t,e,n,i){Aj.call(this,t,e,n,i)}function TO(t,e){return!!t.q&&kR(t.q,e)}function CO(t,e,n){t.Zc(e).Rb(n)}function SO(t,e,n){return t.a+=e,t.b+=n,t}function AO(t,e,n){return t.a*=e,t.b*=n,t}function MO(t,e,n){return t.a-=e,t.b-=n,t}function IO(t,e){return t.a=e.a,t.b=e.b,t}function LO(t){return t.a=-t.a,t.b=-t.b,t}function OO(t){this.c=t,this.a=1,this.b=1}function DO(t){this.c=t,S1(t,0),A1(t,0)}function NO(t){x_.call(this),Z1(this,t)}function PO(t){skt(),aw(this),this.mf(t)}function BO(t,e){wE(),XL.call(this,t,e)}function FO(t,e){yE(),VL.call(this,t,e)}function jO(t,e){yE(),VL.call(this,t,e)}function RO(t,e){yE(),FO.call(this,t,e)}function $O(t,e,n){gQ.call(this,t,e,n,2)}function zO(t,e){HM(),DF.call(this,t,e)}function qO(t,e){HM(),zO.call(this,t,e)}function HO(t,e){HM(),zO.call(this,t,e)}function UO(t,e){HM(),HO.call(this,t,e)}function GO(t,e){HM(),DF.call(this,t,e)}function YO(t,e){HM(),GO.call(this,t,e)}function KO(t,e){HM(),DF.call(this,t,e)}function WO(t,e,n){return _mt(vZ(t,e),n)}function XO(t,e){return x8(t.e,YP(e,49))}function VO(t,e){e.$modCount=t.$modCount}function QO(){QO=I,e6t=new Sb("root")}function ZO(){ZO=I,kae=new Dy,new Ny}function JO(){this.a=new WH,this.b=new WH}function tD(){y0.call(this),this.Bb|=QEt}function eD(){qk.call(this,"GROW_TREE",0)}function nD(t){return null==t?null:function(t){var e,n,i,r,a,o,s,c,u,l,h,f,d,g,p;if(Kwt(),null==t)return null;if(0==(h=8*t.length))return"";for(f=h/24|0,a=null,a=HV(Fce,rEt,25,4*(0!=(s=h%24)?f+1:f),15,1),u=0,l=0,e=0,n=0,i=0,o=0,r=0,c=0;c>24,u=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,p=-128&(i=t[r++])?(i>>6^252)<<24>>24:i>>6<<24>>24,a[o++]=tce[d],a[o++]=tce[g|u<<4],a[o++]=tce[l<<2|p],a[o++]=tce[63&i];return 8==s?(u=(3&(e=t[r]))<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,a[o++]=tce[d],a[o++]=tce[u<<4],a[o++]=61,a[o++]=61):16==s&&(e=t[r],l=(15&(n=t[r+1]))<<24>>24,u=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=tce[d],a[o++]=tce[g|u<<4],a[o++]=tce[l<<2],a[o++]=61),Htt(a,0,a.length)}(t)}function iD(t){return null==t?null:function(t){var e,n,i,r;if(wpt(),null==t)return null;for(i=t.length,e=HV(Fce,rEt,25,2*i,15,1),n=0;n>4],e[2*n+1]=nce[15&r];return Htt(e,0,e.length)}(t)}function rD(t){null==t.o&&function(t){if(t.pe()){var e=t.c;return e.qe()?t.o="["+e.n:e.pe()?t.o="["+e.ne():t.o="[L"+e.ne()+";",t.b=e.me()+"[]",void(t.k=e.oe()+"[]")}var n=t.j,i=t.d;i=i.split("/"),t.o=qtt(".",[n,qtt("$",i)]),t.b=qtt(".",[n,qtt(".",i)]),t.k=i[i.length-1]}(t)}function aD(t){return GB(null==t||tA(t)),t}function oD(t){return GB(null==t||eA(t)),t}function sD(t){return GB(null==t||nA(t)),t}function cD(t){this.q=new e.Date(HY(t))}function uD(t,e){this.c=t,Hk.call(this,t,e)}function lD(t,e){this.a=t,uD.call(this,t,e)}function hD(t,e){this.d=t,Gf(this),this.b=e}function fD(t,e){KV.call(this,t),this.a=e}function dD(t,e){KV.call(this,t),this.a=e}function gD(t){rtt.call(this,0,0),this.f=t}function pD(t,e,n){uV.call(this,t,e,n,null)}function bD(t,e,n){uV.call(this,t,e,n,null)}function wD(t,e){return YP($Z(t.b,e),149)}function yD(t,e){return YP($Z(t.c,e),229)}function mD(t){return YP(mF(t.a,t.b),287)}function vD(t){return new YC(t.c,t.d+t.a)}function xD(t){return rG(),uM(YP(t,197))}function kD(){kD=I,jqt=Y7((Ttt(),Yie))}function _D(t,e){e.a?function(t,e){var n,i,r;if(!n$(t.a,e.b))throw ow(new Km("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=new od(new hN(new zL(new ad(t.a.a).a).b));CE(i.a.a);)if(n=YP(gO(i.a).cd(),65),e5(e.b,n))gx(t.b.a,e.b,n),r=!0;else if(r)break}(t,e):OL(t.a,e.b)}function ED(t,e){J$t||QP(t.a,e)}function TD(t,e){return IH(e,wCt),t.f=e,t}function CD(t,e,n){return iwt(t,e,3,n)}function SD(t,e,n){return iwt(t,e,6,n)}function AD(t,e,n){return iwt(t,e,9,n)}function MD(t,e,n){++t.j,t.Ki(),zV(t,e,n)}function ID(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function LD(t,e,n){t.Zc(e).Rb(n)}function OD(t,e,n){return Jyt(t.c,t.b,e,n)}function DD(t,e){return(e&Ykt)%t.d.length}function ND(t,e){Sb.call(this,t),this.a=e}function PD(t,e){zb.call(this,t),this.a=e}function BD(t,e){zb.call(this,t),this.a=e}function FD(t,e){this.c=t,NJ.call(this,e)}function jD(t,e){this.a=t,$b.call(this,e)}function RD(t,e){this.a=t,$b.call(this,e)}function $D(t){this.a=(l0(t,z_t),new hV(t))}function zD(t){this.a=(l0(t,z_t),new hV(t))}function qD(t){return!t.a&&(t.a=new g),t.a}function HD(t){return t>8?0:t+1}function UD(t,e,n){return YF(t,YP(e,22),n)}function GD(t,e,n){return t.a+=Htt(e,0,n),t}function YD(t,e){var n;return n=t.e,t.e=e,n}function KD(t,e){t[dTt].call(t,e)}function WD(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function XD(t){zR(t.e),t.d.b=t.d,t.d.a=t.d}function VD(t){t.b?VD(t.b):t.f.c.zc(t.e,t.d)}function QD(t,e){return Rv(new Array(e),t)}function ZD(t){return String.fromCharCode(t)}function JD(){this.a=new Jb,this.b=new Jb}function tN(){this.a=new he,this.b=new jw}function eN(){this.b=new _x,this.c=new Jb}function nN(){this.d=new _x,this.e=new _x}function iN(){this.n=new _x,this.o=new _x}function rN(){this.n=new ky,this.i=new aM}function aN(){this.a=new Xl,this.b=new oa}function oN(){this.a=new Jb,this.d=new Jb}function sN(){this.b=new Yw,this.a=new Yw}function cN(){this.b=new tw,this.a=new tw}function uN(){this.b=new sk,this.a=new po}function lN(){rN.call(this),this.a=new _x}function hN(t){U3.call(this,t,(BQ(),z$t))}function fN(t,e,n,i){PF.call(this,t,e,n,i)}function dN(t,e,n){return iwt(t,e,11,n)}function gN(t,e){return t.a+=e.a,t.b+=e.b,t}function pN(t,e){return t.a-=e.a,t.b-=e.b,t}function bN(t,e){return null==Iz(t.a,e,"")}function wN(t,e){jm.call(this,lBt+t+bPt+e)}function yN(t,e,n,i){gR.call(this,t,e,n,i)}function mN(t,e,n,i){gR.call(this,t,e,n,i)}function vN(t,e,n,i){mN.call(this,t,e,n,i)}function xN(t,e,n,i){pR.call(this,t,e,n,i)}function kN(t,e,n,i){pR.call(this,t,e,n,i)}function _N(t,e,n,i){pR.call(this,t,e,n,i)}function EN(t,e,n,i){kN.call(this,t,e,n,i)}function TN(t,e,n,i){kN.call(this,t,e,n,i)}function CN(t,e,n,i){_N.call(this,t,e,n,i)}function SN(t,e,n,i){TN.call(this,t,e,n,i)}function AN(t,e,n,i){hR.call(this,t,e,n,i)}function MN(t,e,n){this.a=t,ZL.call(this,e,n)}function IN(t,e,n){this.c=e,this.b=n,this.a=t}function LN(t,e){return t.Aj().Nh().Kh(t,e)}function ON(t,e){return t.Aj().Nh().Ih(t,e)}function DN(t,e){return dz(t),JS(t)===JS(e)}function NN(t,e){return dz(t),JS(t)===JS(e)}function PN(t,e){return Ax(Itt(t.a,e,!1))}function BN(t,e){return Ax(Ltt(t.a,e,!1))}function FN(t,e){return t.b.sd(new WE(t,e))}function jN(t,e,n){return t.lastIndexOf(e,n)}function RN(t){return t.c?rZ(t.c.a,t,0):-1}function $N(t){return t==Jne||t==eie||t==tie}function zN(t,e){return EI(e,15)&&_pt(t.c,e)}function qN(t,e){return!!J5(t,e)}function HN(t,e){this.c=t,WR.call(this,t,e)}function UN(t){this.c=t,kA.call(this,__t,0)}function GN(t,e){eB.call(this,t,t.length,e)}function YN(t,e,n){return YP(t.c,69).mk(e,n)}function KN(t,e,n){return function(t,e,n){return e.Rk(t.e,t.c,n)}(t,YP(e,332),n)}function WN(t,e,n){return function(t,e,n){var i,r,a;return i=e.ak(),a=e.dd(),r=i.$j()?DH(t,4,i,a,null,Syt(t,i,a,EI(i,99)&&0!=(YP(i,18).Bb&QEt)),!0):DH(t,i.Kj()?2:1,i,a,i.zj(),-1,!0),n?n.Ei(r):n=r,n}(t,YP(e,332),n)}function XN(t,e){return null==e?null:M8(t.b,e)}function VN(t){return eA(t)?(dz(t),t):t.ke()}function QN(t){return!isNaN(t)&&!isFinite(t)}function ZN(t){fP(),this.a=(qq(),new Iv(t))}function JN(t){lB(),this.d=t,this.a=new Zb}function tP(t,e,n){this.a=t,this.b=e,this.c=n}function eP(t,e,n){this.a=t,this.b=e,this.c=n}function nP(t,e,n){this.d=t,this.b=n,this.a=e}function iP(t){eI(this),Bq(this),_2(this,t)}function rP(t){CM(this),rB(this.c,0,t.Pc())}function aP(t){az(t.a),QV(t.c,t.b),t.b=null}function oP(t){this.a=t,r_(),I3(Date.now())}function sP(){sP=I,uzt=new r,lzt=new r}function cP(){cP=I,I$t=new D,L$t=new N}function uP(){uP=I,mae=HV(Rjt,Zkt,1,0,5,1)}function lP(){lP=I,Ioe=HV(Rjt,Zkt,1,0,5,1)}function hP(){hP=I,Loe=HV(Rjt,Zkt,1,0,5,1)}function fP(){fP=I,new yw((qq(),qq(),b$t))}function dP(t,e){if(!t)throw ow(new Ym(e))}function gP(t){PF.call(this,t.d,t.c,t.a,t.b)}function pP(t){PF.call(this,t.d,t.c,t.a,t.b)}function bP(t,e,n){this.b=t,this.c=e,this.a=n}function wP(t,e,n){this.b=t,this.a=e,this.c=n}function yP(t,e,n){this.a=t,this.b=e,this.c=n}function mP(t,e,n){this.a=t,this.b=e,this.c=n}function vP(t,e,n){this.a=t,this.b=e,this.c=n}function xP(t,e,n){this.a=t,this.b=e,this.c=n}function kP(t,e,n){this.b=t,this.a=e,this.c=n}function _P(t,e,n){this.e=e,this.b=t,this.d=n}function EP(t){var e;return(e=new vt).e=t,e}function TP(t){var e;return(e=new cy).b=t,e}function CP(){CP=I,ZGt=new Dn,JGt=new Nn}function SP(){SP=I,xKt=new wr,kKt=new yr}function AP(t,e){this.c=t,this.a=e,this.b=e-t}function MP(t,e,n){this.a=t,this.b=e,this.c=n}function IP(t,e,n){this.a=t,this.b=e,this.c=n}function LP(t,e,n){this.a=t,this.b=e,this.c=n}function OP(t,e,n){this.a=t,this.b=e,this.c=n}function DP(t,e,n){this.a=t,this.b=e,this.c=n}function NP(t,e,n){this.e=t,this.a=e,this.c=n}function PP(t,e,n){HM(),VH.call(this,t,e,n)}function BP(t,e,n){HM(),Z$.call(this,t,e,n)}function FP(t,e,n){HM(),Z$.call(this,t,e,n)}function jP(t,e,n){HM(),Z$.call(this,t,e,n)}function RP(t,e,n){HM(),BP.call(this,t,e,n)}function $P(t,e,n){HM(),BP.call(this,t,e,n)}function zP(t,e,n){HM(),$P.call(this,t,e,n)}function qP(t,e,n){HM(),FP.call(this,t,e,n)}function HP(t,e,n){HM(),jP.call(this,t,e,n)}function UP(t,e){return v$(t),v$(e),new Bk(t,e)}function GP(t,e){return v$(t),v$(e),new BB(t,e)}function YP(t,e){return GB(null==t||Tnt(t,e)),t}function KP(t){var e;return RZ(e=new Jb,t),e}function WP(t){var e;return C2(e=new ty,t),e}function XP(t){var e;return C2(e=new x_,t),e}function VP(t){return!t.e&&(t.e=new Jb),t.e}function QP(t,e){return t.c[t.c.length]=e,!0}function ZP(t,e){this.c=t,this.b=e,this.a=!1}function JP(t){this.d=t,Gf(this),this.b=function(t){return EI(t,15)?YP(t,15).Yc():t.Kc()}(t.d)}function tB(){this.a=";,;",this.b="",this.c=""}function eB(t,e,n){rR.call(this,e,n),this.a=t}function nB(t,e,n){this.b=t,vA.call(this,e,n)}function iB(t,e,n){this.c=t,zE.call(this,e,n)}function rB(t,e,n){olt(n,0,t,e,n.length,!1)}function aB(t,e,n,i,r){t.b=e,t.c=n,t.d=i,t.a=r}function oB(t,e,n,i,r){t.d=e,t.c=n,t.a=i,t.b=r}function sB(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function cB(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function uB(t){return C3(function(t){return JM(~t.l&BEt,~t.m&BEt,~t.h&FEt)}(VA(t)?q3(t):t))}function lB(){lB=I,_xt(),H3t=Pie,U3t=pie}function hB(){this.b=Qm(oD(int((Fpt(),fUt))))}function fB(t){return j_(),HV(Rjt,Zkt,1,t,5,1)}function dB(t){return new YC(t.c+t.b,t.d+t.a)}function gB(t){return xO(0!=t.b),HJ(t,t.a.a)}function pB(t){return xO(0!=t.b),HJ(t,t.c.b)}function bB(t,e){if(!t)throw ow(new Rm(e))}function wB(t,e){if(!t)throw ow(new Ym(e))}function yB(t,e,n){MT.call(this,t,e),this.b=n}function mB(t,e,n){HS.call(this,t,e),this.c=n}function vB(t,e,n){LJ.call(this,e,n),this.d=t}function xB(t){hP(),yc.call(this),this.th(t)}function kB(t,e,n){this.a=t,FA.call(this,e,n)}function _B(t,e,n){this.a=t,FA.call(this,e,n)}function EB(t,e,n){HS.call(this,t,e),this.c=n}function TB(){cX(),nz.call(this,(pE(),Vae))}function CB(t){return null!=t&&!C9(t,jae,Rae)}function SB(t,e){return(e7(t)<<4|e7(e))&oEt}function AB(t,e){var n;t.n&&(n=e,QP(t.f,n))}function MB(t,e,n){EJ(t,e,new $$(n))}function IB(t,e){return t.g=e<0?-1:e,t}function LB(t,n){return function(t){var n;(n=e.Math.sqrt(t.a*t.a+t.b*t.b))>0&&(t.a/=n,t.b/=n)}(t),t.a*=n,t.b*=n,t}function OB(t,e,n,i,r){t.c=e,t.d=n,t.b=i,t.a=r}function DB(t,e){return HW(t,e,t.c.b,t.c),!0}function NB(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function PB(t){this.b=t,this.a=Lj(this.b.a).Ed()}function BB(t,e){this.b=t,this.a=e,Bl.call(this)}function FB(t,e){this.a=t,this.b=e,Bl.call(this)}function jB(t,e){rR.call(this,e,1040),this.a=t}function RB(t){return 0==t||isNaN(t)?t:t<0?-1:1}function $B(t,e){return Qat(t,new MT(e.a,e.b))}function zB(t){var e;return e=t.n,t.a.b+e.d+e.a}function qB(t){var e;return e=t.n,t.e.b+e.d+e.a}function HB(t){var e;return e=t.n,t.e.a+e.b+e.c}function UB(t){return Akt(),new BF(0,t)}function GB(t){if(!t)throw ow(new Gm(null))}function YB(){YB=I,qq(),fse=new ld(PFt)}function KB(){KB=I,new Nnt((lm(),Kjt),(hm(),Yjt))}function WB(){WB=I,FRt=HV(RRt,m_t,19,256,0,1)}function XB(t,e,n,i){N9.call(this,t,e,n,i,0,0)}function VB(t){return t.e.c.length+t.g.c.length}function QB(t){return t.e.c.length-t.g.c.length}function ZB(t){return t.b.c.length-t.e.c.length}function JB(t){hP(),xB.call(this,t),this.a=-1}function tF(t,e){GS.call(this,t,e),this.a=this}function eF(t,e){var n;return(n=m$(t,e)).i=2,n}function nF(t,e){return++t.j,t.Ti(e)}function iF(t,e,n){return t.a=-1,WL(t,e.g,n),t}function rF(t,e,n){!function(t,e,n,i,r){var a,o,s,c,u,l,h,f,d,g,p,b;null==(g=B$(t.e,i))&&(u=YP(g=new Cm,183),c=new $$(e+"_s"+r),EJ(u,QNt,c)),X$(n,d=YP(g,183)),Xq(b=new Cm,"x",i.j),Xq(b,"y",i.k),EJ(d,tPt,b),Xq(h=new Cm,"x",i.b),Xq(h,"y",i.c),EJ(d,"endPoint",h),!kk((!i.a&&(i.a=new qI($re,i,5)),i.a))&&(a=new gb(l=new _f),zW((!i.a&&(i.a=new qI($re,i,5)),i.a),a),EJ(d,UNt,l)),!!Knt(i)&&yst(t.a,d,YNt,wut(t,Knt(i))),!!Wnt(i)&&yst(t.a,d,GNt,wut(t,Wnt(i))),!(0==(!i.e&&(i.e=new CN(Gre,i,10,9)),i.e).i)&&(o=new BS(t,f=new _f),zW((!i.e&&(i.e=new CN(Gre,i,10,9)),i.e),o),EJ(d,WNt,f)),0!=(!i.g&&(i.g=new CN(Gre,i,9,10)),i.g).i&&(s=new FS(t,p=new _f),zW((!i.g&&(i.g=new CN(Gre,i,9,10)),i.g),s),EJ(d,KNt,p))}(t.a,t.b,t.c,YP(e,202),n)}function aF(t,e,n){return new IN(function(t){return 0>=t?new m_:function(t){return 0>t?new m_:new dD(null,new JW(t+1,t))}(t-1)}(t).Ie(),n,e)}function oF(t,e,n,i,r,a){return Xat(t,e,n,i,r,0,a)}function sF(){sF=I,IRt=HV(LRt,m_t,217,256,0,1)}function cF(){cF=I,$Rt=HV(GRt,m_t,162,256,0,1)}function uF(){uF=I,YRt=HV(KRt,m_t,184,256,0,1)}function lF(){lF=I,DRt=HV(NRt,m_t,172,128,0,1)}function hF(){aB(this,!1,!1,!1,!1)}function fF(t){U$(),this.a=(qq(),new ld(v$(t)))}function dF(t){for(v$(t);t.Ob();)t.Pb(),t.Qb()}function gF(t){this.c=t,this.b=this.c.d.vc().Kc()}function pF(t){this.c=t,this.a=new v_(this.c.a)}function bF(t){this.a=new w_(t.gc()),_2(this,t)}function wF(t){kd.call(this,new sW),_2(this,t)}function yF(t,e){return t.a+=Htt(e,0,e.length),t}function mF(t,e){return CG(e,t.c.length),t.c[e]}function vF(t,e){return CG(e,t.a.length),t.a[e]}function xF(t,e){j_(),KV.call(this,t),this.a=e}function kF(t,e){return function(t,e){return pet(X7(pet(t.a).a,e.a))}(YP(t,162),YP(e,162))}function _F(t){return t.c-YP(mF(t.a,t.b),287).b}function EF(t){return t.q?t.q:(qq(),qq(),w$t)}function TF(t){return t.e.Hd().gc()*t.c.Hd().gc()}function CF(t,n,i){return e.Math.min(i/t,1/n)}function SF(t,n){return t?0:e.Math.max(0,n-1)}function AF(t){var e;return(e=aot(t))?AF(e):t}function MF(t,e){return null==t.a&&Rpt(t),t.a[e]}function IF(t){return t.c?t.c.f:t.e.b}function LF(t){return t.c?t.c.g:t.e.a}function OF(t){NJ.call(this,t.gc()),w$(this,t)}function DF(t,e){HM(),qb.call(this,e),this.a=t}function NF(t,e,n){this.a=t,qI.call(this,e,n,2)}function PF(t,e,n,i){oB(this,t,e,n,i)}function BF(t,e){Akt(),Qb.call(this,t),this.a=e}function FF(t){this.b=new x_,this.a=t,this.c=-1}function jF(){this.d=new YC(0,0),this.e=new Yw}function RF(t){ZL.call(this,0,0),this.a=t,this.b=0}function $F(t){this.a=t,this.c=new tw,function(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i>>e,r=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(a=0,r=n>>>e-22,i=t.m>>e-22|t.h<<44-e):(a=0,r=0,i=n>>>e-44),JM(i&BEt,r&BEt,a&FEt)}(VA(t)?q3(t):t,e))}function qj(t,e){return function(t,e){return mL(),t==e?0:t?1:-1}((dz(t),t),(dz(e),e))}function Hj(t,e){return C7((dz(t),t),(dz(e),e))}function Uj(t,e){return v$(e),t.a.Ad(e)&&!t.b.Ad(e)}function Gj(t,e){return q8(t,(dz(e),new Ed(e)))}function Yj(t,e){return q8(t,(dz(e),new Td(e)))}function Kj(t){return U2(),0!=YP(t,11).e.c.length}function Wj(t){return U2(),0!=YP(t,11).g.c.length}function Xj(t,e,n){return function(t,e,n){var i,r,a,o,s,c,u,l,h,f;if(0!=e.e.c.length&&0!=n.e.c.length){if((i=YP(mF(e.e,0),17).c.i)==(o=YP(mF(n.e,0),17).c.i))return QM(YP(Sst(YP(mF(e.e,0),17),(Tkt(),vVt)),19).a,YP(Sst(YP(mF(n.e,0),17),vVt),19).a);for(h=0,f=(l=t.a).length;hs?1:0:(t.b&&(t.b._b(a)&&(r=YP(t.b.xc(a),19).a),t.b._b(c)&&(s=YP(t.b.xc(c),19).a)),rs?1:0)):0!=e.e.c.length&&0!=n.g.c.length?1:-1}(t,YP(e,11),YP(n,11))}function Vj(t){return t.e?nV(t.e):null}function Qj(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function Zj(t,e){if(t<0||t>=e)throw ow(new $w)}function Jj(t,e,n){return ipt(),i3(t,e)&&i3(t,n)}function tR(t){return Tlt(),!t.Hc(uie)&&!t.Hc(hie)}function eR(t){return new YC(t.c+t.b/2,t.d+t.a/2)}function nR(t,e){return e.kh()?x8(t.b,YP(e,49)):e}function iR(t,e){this.e=t,this.d=64&e?e|v_t:e}function rR(t,e){this.c=0,this.d=t,this.b=64|e|v_t}function aR(t){this.b=new hV(11),this.a=(Hq(),t)}function oR(t){this.b=null,this.a=(Hq(),t||v$t)}function sR(t){this.a=Int(t.a),this.b=new rP(t.b)}function cR(t){this.b=t,eO.call(this,t),PI(this)}function uR(t){this.b=t,iO.call(this,t),BI(this)}function lR(t,e,n){this.a=t,yN.call(this,e,n,5,6)}function hR(t,e,n,i){this.b=t,qI.call(this,e,n,i)}function fR(t,e,n,i,r){pQ.call(this,t,e,n,i,r,-1)}function dR(t,e,n,i,r){bQ.call(this,t,e,n,i,r,-1)}function gR(t,e,n,i){qI.call(this,t,e,n),this.b=i}function pR(t,e,n,i){mB.call(this,t,e,n),this.b=i}function bR(t){US.call(this,t,!1),this.a=!1}function wR(t,e){this.b=t,af.call(this,t.b),this.a=e}function yR(t,e){U$(),Wk.call(this,t,C8(new nv(e)))}function mR(t,e){return Akt(),new J$(t,e,0)}function vR(t,e){return Akt(),new J$(6,t,e)}function xR(t,e){return NN(t.substr(0,e.length),e)}function kR(t,e){return nA(e)?aH(t,e):!!LH(t.f,e)}function _R(t,e){for(dz(e);t.Ob();)e.td(t.Pb())}function ER(t,e,n){upt(),this.e=t,this.d=e,this.a=n}function TR(t,e,n,i){var r;(r=t.i).i=e,r.a=n,r.b=i}function CR(t){var e;for(e=t;e.f;)e=e.f;return e}function SR(t){var e;return xO(null!=(e=y5(t))),e}function AR(t){var e;return xO(null!=(e=function(t){var e;return null==(e=t.a[t.c-1&t.a.length-1])?null:(t.c=t.c-1&t.a.length-1,L$(t.a,t.c,null),e)}(t))),e}function MR(t,e){var n;return FX(e,n=t.a.gc()),n-e}function IR(t,e){var n;for(n=0;nt||t>e)throw ow(new _v("fromIndex: 0, toIndex: "+t+vTt+e))}(e,t.length),new jB(t,e)}(t,t.length))}function HR(t){return new Sj(new rL(t.a.length,t.a))}function UR(t){return typeof t===zkt||typeof t===Gkt}function GR(t,e){return p8(t,e)<0?-1:p8(t,e)>0?1:0}function YR(t,e,n){return wmt(t,YP(e,46),YP(n,167))}function KR(t,e){return YP(Dj(Lj(t.a)).Xb(e),42).cd()}function WR(t,e){this.d=t,zI.call(this,t),this.e=e}function XR(t){this.d=(dz(t),t),this.a=0,this.c=__t}function VR(t,e){Qb.call(this,1),this.a=t,this.b=e}function QR(t,e){return t.c?QR(t.c,e):QP(t.b,e),t}function ZR(t,e,n){var i;return i=HZ(t,e),KK(t,e,n),i}function JR(t,e){return tZ(t.slice(0,e),t)}function t$(t,e,n){var i;for(i=0;i=14&&n<=16);case 11:return null!=e&&typeof e===Gkt;case 12:return null!=e&&(typeof e===zkt||typeof e==Gkt);case 0:return Tnt(e,t.__elementTypeId$);case 2:return UR(e)&&e.im!==M;case 1:return UR(e)&&e.im!==M||Tnt(e,t.__elementTypeId$);default:return!0}}(t,n)),t[e]=n}function O$(t,e){var n;return BY(e,n=t.a.gc()),n-1-e}function D$(t,e){return t.a+=String.fromCharCode(e),t}function N$(t,e){return t.a+=String.fromCharCode(e),t}function P$(t,e){for(dz(e);t.c0?(lnt(t,n,0),n.a+=String.fromCharCode(i),lnt(t,n,r=ret(e,a)),a+=r-1):39==i?a+1=t.g}function W$(t,e,n){return Qpt(t,r2(t,e,n))}function X$(t,e){var n;HZ(t,n=t.a.length),KK(t,n,e)}function V$(t,e){console[t].call(console,e)}function Q$(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function Z$(t,e,n){qb.call(this,e),this.a=t,this.b=n}function J$(t,e,n){Qb.call(this,t),this.a=e,this.b=n}function tz(t,e,n){this.a=t,zb.call(this,e),this.b=n}function ez(t,e,n){this.a=t,oK.call(this,8,e,null,n)}function nz(t){this.a=(dz(KBt),KBt),this.b=t,new Hy}function iz(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function rz(t){this.c=t,this.b=t.a.d.a,VO(t.a.e,this)}function az(t){vO(-1!=t.c),t.d.$c(t.c),t.b=t.c,t.c=-1}function oz(t){return e.Math.sqrt(t.a*t.a+t.b*t.b)}function sz(t,e){return Zj(e,t.a.c.length),mF(t.a,e)}function cz(t,e){return JS(t)===JS(e)||null!=t&&U8(t,e)}function uz(t){return t?t.dc():!t.Kc().Ob()}function lz(t){return!t.a&&t.c?t.c.b:t.a}function hz(t){return!t.a&&(t.a=new qI(jre,t,4)),t.a}function fz(t){return!t.d&&(t.d=new qI(toe,t,1)),t.d}function dz(t){if(null==t)throw ow(new Iw);return t}function gz(t){t.c?t.c.He():(t.d=!0,function(t){var e,n,i,r,a;if(a=new Jb,qJ(t.b,new zd(a)),t.b.c=HV(Rjt,Zkt,1,0,5,1),0!=a.c.length){for(CG(0,a.c.length),e=YP(a.c[0],78),n=1,i=a.c.length;n0;)t=t<<1|(t<0?1:0);return t}function jz(t,e){return JS(t)===JS(e)||null!=t&&U8(t,e)}function Rz(t,e){return JF(t.a,e)?t.b[YP(e,22).g]:null}function $z(t,e,n,i){t.a=sO(t.a,0,e)+""+i+sA(t.a,n)}function zz(t,n){t.u.Hc((Tlt(),uie))&&function(t,n){var i,r,a,o;for(i=(o=YP(Rz(t.b,n),124)).a,a=YP(YP(DX(t.r,n),21),84).Kc();a.Ob();)(r=YP(a.Pb(),111)).c&&(i.a=e.Math.max(i.a,HB(r.c)));if(i.a>0)switch(n.g){case 2:o.n.c=t.s;break;case 4:o.n.b=t.s}}(t,n),function(t,e){var n;t.C&&((n=YP(Rz(t.b,e),124).n).d=t.C.d,n.a=t.C.a)}(t,n)}function qz(t,e){return SG(e,t.length),t.charCodeAt(e)}function Hz(){Em.call(this,"There is no more element.")}function Uz(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function Gz(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function Yz(t,e,n,i){return r3(t,e,n,!1),a7(t,i),t}function Kz(t){return!t.n&&(t.n=new gR(Vre,t,1,7)),t.n}function Wz(t){return!t.c&&(t.c=new gR(Zre,t,9,9)),t.c}function Xz(t){return t.e==BFt&&function(t,e){t.e=e}(t,function(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=sD(gtt((!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),n.b),uPt)))?i:e.ne()}(t.g,t.b)),t.e}function Vz(t){return t.f==BFt&&function(t,e){t.f=e}(t,function(t,e){var n,i;return(n=e.Hh(t.a))?(i=sD(gtt((!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),n.b),IFt)),NN(LFt,i)?Tj(t,QJ(e.Hj())):i):null}(t.g,t.b)),t.f}function Qz(t){var e;return!(e=t.b)&&(t.b=e=new Yh(t)),e}function Zz(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function Jz(t){if(T9(t.d),t.d.d!=t.c)throw ow(new Ow)}function tq(t,e){this.b=t,this.c=e,this.a=new v_(this.b)}function eq(t,e,n){this.a=iEt,this.d=t,this.b=e,this.c=n}function nq(t,e){this.d=(dz(t),t),this.a=16449,this.c=e}function iq(t,e){U7(t,Qm(F1(e,"x")),Qm(F1(e,"y")))}function rq(t,e){U7(t,Qm(F1(e,"x")),Qm(F1(e,"y")))}function aq(t,e){return q7(t),new xF(t,new DQ(e,t.a))}function oq(t,e){return q7(t),new xF(t,new YX(e,t.a))}function sq(t,e){return q7(t),new fD(t,new UX(e,t.a))}function cq(t,e){return q7(t),new dD(t,new GX(e,t.a))}function uq(t){this.a=new Jb,this.e=HV(jce,m_t,48,t,0,2)}function lq(t,e,n,i){this.a=t,this.e=e,this.d=n,this.c=i}function hq(t,e,n,i){this.a=t,this.c=e,this.b=n,this.d=i}function fq(t,e,n,i){this.c=t,this.b=e,this.a=n,this.d=i}function dq(t,e,n,i){this.c=t,this.b=e,this.d=n,this.a=i}function gq(t,e,n,i){this.c=t,this.d=e,this.b=n,this.a=i}function pq(t,e,n,i){this.a=t,this.d=e,this.c=n,this.b=i}function bq(t,e,n,i){qk.call(this,t,e),this.a=n,this.b=i}function wq(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function yq(t,n,i){(function(t,e){var n,i,r,a;for(function(t){var e;for(e=0;e(i=nU(n))&&++i,i}function xq(t){var e;return s1(e=new iw,t),e}function kq(t){var e;return Hst(e=new iw,t),e}function _q(t){return function(t){var e;return EI(e=Sst(t,(Tkt(),xVt)),160)?q9(YP(e,160)):null}(t)||null}function Eq(t){return!t.b&&(t.b=new gR(Ure,t,12,3)),t.b}function Tq(t,e,n){n.a?A1(t,e.b-t.f/2):S1(t,e.a-t.g/2)}function Cq(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function Sq(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function Aq(t,e,n,i){this.e=t,this.a=e,this.c=n,this.d=i}function Mq(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function Iq(t,e,n,i){HM(),TX.call(this,e,n,i),this.a=t}function Lq(t,e,n,i){HM(),TX.call(this,e,n,i),this.a=t}function Oq(t,e){this.a=t,hD.call(this,t,YP(t.d,15).Zc(e))}function Dq(t){this.f=t,this.c=this.f.e,t.f>0&&_at(this)}function Nq(t,e,n,i){this.b=t,this.c=i,kA.call(this,e,n)}function Pq(t){return xO(t.b0?(e.Error.stackTraceLimit=Error.stackTraceLimit=64,1):"stack"in new Error),t=new p,lRt=n?new _:t}function AH(t,e){var n;return n=Ix(t.gm),null==e?n:n+": "+e}function MH(t,e){var n;return hW(n=t.b.Qc(e),t.b.gc()),n}function IH(t,e){if(null==t)throw ow(new Xm(e));return t}function LH(t,e){return F6(t,e,function(t,e){return t.a.get(e)??new Array}(t,null==e?0:t.b.se(e)))}function OH(t,e,n){return n>=0&&NN(t.substr(n,e.length),e)}function DH(t,e,n,i,r,a,o){return new nW(t.e,e,n,i,r,a,o)}function NH(t,e,n,i,r,a){this.a=t,w0.call(this,e,n,i,r,a)}function PH(t,e,n,i,r,a){this.a=t,w0.call(this,e,n,i,r,a)}function BH(t,e){this.g=t,this.d=M4($v(IGt,1),bAt,10,0,[e])}function FH(t,e){this.e=t,this.a=Rjt,this.b=Xpt(e),this.c=e}function jH(t,e){rN.call(this),GJ(this),this.a=t,this.c=e}function RH(t,e,n,i){L$(t.c[e.g],n.g,i),L$(t.c[n.g],e.g,i)}function $H(t,e,n,i){L$(t.c[e.g],e.g,n),L$(t.b[e.g],e.g,i)}function zH(t,e,n,i){return n>=0?t.jh(e,n,i):t.Sg(null,n,i)}function qH(t){return 0==t.b.b?t.a.$e():gB(t.b)}function HH(t){return JS(t.a)===JS((q2(),Noe))&&function(t){var e,n,i,r,a,o,s,c,u,l;for(e=new kc,n=new kc,u=NN(YBt,(r=lwt(t.b,KBt))?sD(gtt((!r.b&&(r.b=new $O((Ikt(),Coe),Zoe,r)),r.b),WBt)):null),c=0;c=0?t.sh(i,n):ddt(t,e,n)}function cU(t,e,n){DU(),t&&Iz(bae,t,e),t&&Iz(pae,t,n)}function uU(t,e,n){this.i=new Jb,this.b=t,this.g=e,this.a=n}function lU(t,e,n){this.c=new Jb,this.e=t,this.f=e,this.b=n}function hU(t,e,n){this.a=new Jb,this.e=t,this.f=e,this.c=n}function fU(t,e){wI(this),this.f=e,this.g=t,jq(this),this._d()}function dU(t,e){var n;n=t.q.getHours(),t.q.setDate(e),_yt(t,n)}function gU(t,e){var n;for(v$(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function pU(t){var e;return S5(e=new Hx(kJ(t.length)),t),e}function bU(t,e){if(null==e)throw ow(new Iw);return function(t,e){var n,i=t.a;e=String(e),i.hasOwnProperty(e)&&(n=i[e]);var r=(Z4(),mRt)[typeof n];return r?r(n):K6(typeof n)}(t,e)}function wU(t){return t.Db>>16!=3?null:YP(t.Cb,33)}function yU(t){return t.Db>>16!=9?null:YP(t.Cb,33)}function mU(t){return t.Db>>16!=6?null:YP(t.Cb,79)}function vU(t){return t.Db>>16!=7?null:YP(t.Cb,235)}function xU(t){return t.Db>>16!=7?null:YP(t.Cb,160)}function kU(t){return t.Db>>16!=11?null:YP(t.Cb,33)}function _U(t,e){var n;return(n=t.Yg(e))>=0?t.lh(n):zlt(t,e)}function EU(t,e){var n;return mst(n=new wF(e),t),new rP(n)}function TU(t){var e;return e=t.d,e=t.si(t.f),aQ(t,e),e.Ob()}function CU(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function SU(t,n){return e.Math.abs(t)>16!=3?null:YP(t.Cb,147)}function PU(t){return t.Db>>16!=6?null:YP(t.Cb,235)}function BU(t){return t.Db>>16!=17?null:YP(t.Cb,26)}function FU(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function jU(t,e,n){return null==e?Kut(t.f,null,n):Z7(t.g,e,n)}function RU(t,e,n,i,r,a){return new gZ(t.e,e,t.aj(),n,i,r,a)}function $U(t,e,n){return t.a=sO(t.a,0,e)+""+n+sA(t.a,e),t}function zU(t,e,n){return QP(t.a,(Dz(),hit(e,n),new Uk(e,n))),t}function qU(t){return wL(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function HU(t){return wL(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function UU(t,e){t.d&&eZ(t.d.e,t),t.d=e,t.d&&QP(t.d.e,t)}function GU(t,e){t.c&&eZ(t.c.g,t),t.c=e,t.c&&QP(t.c.g,t)}function YU(t,e){t.c&&eZ(t.c.a,t),t.c=e,t.c&&QP(t.c.a,t)}function KU(t,e){t.i&&eZ(t.i.j,t),t.i=e,t.i&&QP(t.i.j,t)}function WU(t,e,n){this.a=e,this.c=t,this.b=(v$(n),new rP(n))}function XU(t,e,n){this.a=e,this.c=t,this.b=(v$(n),new rP(n))}function VU(t,e){this.a=t,this.c=lI(this.a),this.b=new mH(e)}function QU(t,e){if(t<0||t>e)throw ow(new jm(OTt+t+DTt+e))}function ZU(t,e){return tj(t.a,e)?DR(t,YP(e,22).g,null):null}function JU(){JU=I,eRt=R6((dm(),M4($v(nRt,1),q_t,538,0,[tRt])))}function tG(){tG=I,_3t=pj(new aK,(Ast(),WUt),(Skt(),VYt))}function eG(){eG=I,E3t=pj(new aK,(Ast(),WUt),(Skt(),VYt))}function nG(){nG=I,C3t=pj(new aK,(Ast(),WUt),(Skt(),VYt))}function iG(){iG=I,Q3t=iF(new aK,(Ast(),WUt),(Skt(),kYt))}function rG(){rG=I,n4t=iF(new aK,(Ast(),WUt),(Skt(),kYt))}function aG(){aG=I,a4t=iF(new aK,(Ast(),WUt),(Skt(),kYt))}function oG(){oG=I,g4t=iF(new aK,(Ast(),WUt),(Skt(),kYt))}function sG(){sG=I,Q5t=pj(new aK,(Drt(),K4t),(but(),Z4t))}function cG(t,e,n,i){this.c=t,this.d=i,hG(this,e),fG(this,n)}function uG(t){this.c=new x_,this.b=t.b,this.d=t.c,this.a=t.a}function lG(t){this.a=e.Math.cos(t),this.b=e.Math.sin(t)}function hG(t,e){t.a&&eZ(t.a.k,t),t.a=e,t.a&&QP(t.a.k,t)}function fG(t,e){t.b&&eZ(t.b.f,t),t.b=e,t.b&&QP(t.b.f,t)}function dG(t,e){(function(t,e,n){YP(e.b,65),qJ(e.a,new IP(t,n,e))})(t,t.b,t.c),YP(t.b.b,65),e&&YP(e.b,65).b}function gG(t,e){EI(t.Cb,88)&&tlt(sX(YP(t.Cb,88)),4),w2(t,e)}function pG(t,e){EI(t.Cb,179)&&(YP(t.Cb,179).tb=null),w2(t,e)}function bG(t,e){return vE(),jZ(e)?new tF(e,t):new GS(e,t)}function wG(t){var e;return Dx(),s1(e=new iw,t),e}function yG(t){var e;return Dx(),s1(e=new iw,t),e}function mG(t,e){var n;return n=new j$(t),e.c[e.c.length]=n,n}function vG(t,e){var n;return(n=YP(M8(Gq(t.a),e),14))?n.gc():0}function xG(t){return q7(t),Hq(),Hq(),BJ(t,x$t)}function kG(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function _G(t,e){em.call(this,new w_(kJ(t))),l0(e,y_t),this.a=e}function EG(t,e,n){Q8(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function TG(t,e,n){var i;Q8(e,n,t.c.length),i=n-e,ik(t.c,e,i)}function CG(t,e){if(t<0||t>=e)throw ow(new jm(OTt+t+DTt+e))}function SG(t,e){if(t<0||t>=e)throw ow(new Mv(OTt+t+DTt+e))}function AG(t,e){this.b=(dz(t),t),this.a=e&XEt?e:64|e|v_t}function MG(t){SM(this),zw(this.a,b5(e.Math.max(8,t))<<1)}function IG(t){return C5(M4($v(D9t,1),m_t,8,0,[t.i.n,t.n,t.a]))}function LG(t,e){return function(t,e,n){var i,r,a,o,s,c;if(o=new gc,s=hgt(t.e.Tg(),e),i=YP(t.g,119),vE(),YP(e,66).Oj())for(a=0;a0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function xY(t){return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function kY(t){return aF(t.e.Hd().gc()*t.c.Hd().gc(),16,new Rh(t))}function _Y(t){return YP(Fet(t,HV(CGt,pAt,17,t.c.length,0,1)),474)}function EY(t){return YP(Fet(t,HV(IGt,bAt,10,t.c.length,0,1)),193)}function TY(t,e,n){v$(t),function(t){var e,n,i;for(qq(),KM(t.c,t.a),i=new gd(t.c);i.a=0&&p=e)throw ow(new jm(function(t,e){if(t<0)return Vpt(Qkt,M4($v(Rjt,1),Zkt,1,5,["index",u7(t)]));if(e<0)throw ow(new Ym(Jkt+e));return Vpt("%s (%s) must be less than size (%s)",M4($v(Rjt,1),Zkt,1,5,["index",u7(t),u7(e)]))}(t,e)));return t}function FY(t,e,n){if(t<0||en)throw ow(new jm(function(t,e,n){return t<0||t>n?qut(t,n,"start index"):e<0||e>n?qut(e,n,"end index"):Vpt("end index (%s) must not be less than start index (%s)",M4($v(Rjt,1),Zkt,1,5,[u7(e),u7(t)]))}(t,e,n)))}function jY(t,e){if(NR(t.a,e),e.d)throw ow(new Em(RTt));e.d=t}function RY(t,e){if(e.$modCount!=t.$modCount)throw ow(new Ow)}function $Y(t,e){return!!EI(e,42)&&Pit(t.a,YP(e,42))}function zY(t,e){return!!EI(e,42)&&Pit(t.a,YP(e,42))}function qY(t,e){return!!EI(e,42)&&Pit(t.a,YP(e,42))}function HY(t){var e;return VA(t)?-0==(e=t)?0:e:function(t){return hat(t,(SZ(),ERt))<0?-function(t){return t.l+t.m*REt+t.h*$Et}(r5(t)):t.l+t.m*REt+t.h*$Et}(t)}function UY(t){var e;return pz(t),e=new $,Yx(t.a,new Bd(e)),e}function GY(t){var e;return pz(t),e=new R,Yx(t.a,new Pd(e)),e}function YY(t,e){this.a=t,Yf.call(this,t),QU(e,t.gc()),this.b=e}function KY(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function WY(t){return new hV((l0(t,U_t),xJ(X7(X7(5,t),t/10|0))))}function XY(t){return YP(Fet(t,HV(WGt,wAt,11,t.c.length,0,1)),1943)}function VY(t,e,n){t.d&&eZ(t.d.e,t),t.d=e,t.d&&WF(t.d.e,n,t)}function QY(t,n){(function(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x;if(m=0,0==n.f.b)for(w=new gd(t);w.a2e3&&(gRt=t,pRt=e.setTimeout(Ek,10)),0==dRt++&&(function(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=Xct(e,n)}while(t.a);t.a=n}}((dv(),uRt)),!0)}();try{return function(t,e,n){return t.apply(e,n)}(t,n,i)}finally{!function(t){t&&function(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=Xct(e,n)}while(t.b);t.b=n}}((dv(),uRt)),--dRt,t&&-1!=pRt&&(function(t){e.clearTimeout(t)}(pRt),pRt=-1)}(r)}}function rK(t){var e;e=t.Wg(),this.a=EI(e,69)?YP(e,69).Zh():e.Kc()}function aK(){om.call(this),this.j.c=HV(Rjt,Zkt,1,0,5,1),this.a=-1}function oK(t,e,n,i){this.d=t,this.n=e,this.g=n,this.o=i,this.p=-1}function sK(t,e,n,i){this.e=i,this.d=null,this.c=t,this.a=e,this.b=n}function cK(t,e,n){this.d=new op(this),this.e=t,this.i=e,this.f=n}function uK(){uK=I,jXt=new VT(fCt,0),RXt=new VT("TOP_LEFT",1)}function lK(){lK=I,I3t=Oz(u7(1),u7(4)),M3t=Oz(u7(1),u7(2))}function hK(){hK=I,r7t=R6((Z_(),M4($v(a7t,1),q_t,551,0,[i7t])))}function fK(){fK=I,e7t=R6((Q_(),M4($v(n7t,1),q_t,482,0,[t7t])))}function dK(){dK=I,Z7t=R6((J_(),M4($v(J7t,1),q_t,530,0,[Q7t])))}function gK(){gK=I,fHt=R6((F_(),M4($v(DHt,1),q_t,481,0,[hHt])))}function pK(t,e,n,i){return EI(n,54)?new EO(t,e,n,i):new Aj(t,e,n,i)}function bK(t,e){return YP(jL(Gj(YP(DX(t.k,e),15).Oc(),nWt)),113)}function wK(t,e){return YP(jL(Yj(YP(DX(t.k,e),15).Oc(),nWt)),113)}function yK(t){return new AG(function(t,e){var n,i;for(qq(),i=new Jb,n=0;n0}function kK(t){return xO(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function _K(t,e){dz(e),L$(t.a,t.c,e),t.c=t.c+1&t.a.length-1,drt(t)}function EK(t,e){dz(e),t.b=t.b-1&t.a.length-1,L$(t.a,t.b,e),drt(t)}function TK(t,e){var n;for(n=t.j.c.length;n0&&rmt(t.g,0,e,0,t.i),e}function DK(t,e){var n;return xE(),!(n=YP(B$(Eae,t),55))||n.wj(e)}function NK(t){var e;for(e=0;t.Ob();)t.Pb(),e=X7(e,1);return xJ(e)}function PK(t,e){var n;return n=new Av,t.xd(n),n.a+="..",e.yd(n),n.a}function BK(t,e,n){return oyt(t,e,n,EI(e,99)&&0!=(YP(e,18).Bb&QEt))}function FK(t,e,n){return function(t,e,n,i){var r,a,o,s,c,u;if(s=new gc,c=hgt(t.e.Tg(),e),r=YP(t.g,119),vE(),YP(e,66).Oj())for(o=0;ot.c));o++)r.a>=t.s&&(a<0&&(a=o),s=o);return c=(t.s+t.c)/2,a>=0&&(c=function(t){return(t.c+t.a)/2}((CG(i=function(t,e,n,i){var r,a,o,s,c,u,l,h,f,d,g;if(a=n,n=n&&(i=e,a=(c=(s.c+s.a)/2)-n,s.c<=c-n&&WF(t,i++,new AP(s.c,a)),(o=c+n)<=s.a&&(r=new AP(o,s.a),QU(i,t.c.length),$E(t.c,i,r)))}(e,i,n)),c}(r,n,i))),function(t,e,n){var i,r,a,o;for(a=e.q,o=e.r,new cG((QX(),L4t),e,a,1),new cG(L4t,a,o,1),r=new gd(n);r.a0;)i+=t.a[n],n-=n&-n;return i}function $W(t,e){var n;for(n=e;n;)SO(t,-n.i,-n.j),n=kU(n);return t}function zW(t,e){var n,i;for(dz(e),i=t.Kc();i.Ob();)n=i.Pb(),e.td(n)}function qW(t,e){var n;return new Uk(n=e.cd(),t.e.pc(n,YP(e.dd(),14)))}function HW(t,e,n,i){var r;(r=new O).c=e,r.b=n,r.a=i,i.b=n.a=r,++t.b}function UW(t,e,n){var i;return CG(e,t.c.length),i=t.c[e],t.c[e]=n,i}function GW(t){return t.c&&t.d?GG(t.c)+"->"+GG(t.d):"e_"+NL(t)}function YW(t,e){return(q7(t),Zx(new xF(t,new DQ(e,t.a)))).sd(szt)}function KW(t){return!(!t.c||!t.d||!t.c.i||t.c.i!=t.d.i)}function WW(t){if(!t.c.Sb())throw ow(new Nw);return t.a=!0,t.c.Ub()}function XW(t){t.i=0,RE(t.b,null),RE(t.c,null),t.a=null,t.e=null,++t.g}function VW(t){NE.call(this,null==t?e_t:k9(t),EI(t,78)?YP(t,78):null)}function QW(t){mkt(),aw(this),this.a=new x_,t6(this,t),DB(this.a,t)}function ZW(){CM(this),this.b=new YC(KEt,KEt),this.a=new YC(WEt,WEt)}function JW(t,e){this.c=0,this.b=e,xA.call(this,t,17493),this.a=this.c}function tX(t){eX(),!J$t&&(this.c=t,this.e=!0,this.a=new Jb)}function eX(){eX=I,J$t=!0,Q$t=!1,Z$t=!1,ezt=!1,tzt=!1}function nX(t,e){return!!EI(e,149)&&NN(t.c,YP(e,149).c)}function iX(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function rX(t,e){return YP($Z(t.d,e),23)||YP($Z(t.e,e),23)}function aX(t){this.b=t,zI.call(this,t),this.a=YP(B3(this.b.a,4),126)}function oX(t){this.b=t,nO.call(this,t),this.a=YP(B3(this.b.a,4),126)}function sX(t){return t.t||(t.t=new Pb(t),g7(new qm(t),0,t.t)),t.t}function cX(){var t,e;cX=I,Dx(),e=new Fw,ose=e,t=new Ry,sse=t}function uX(t){var e;return t.c||EI(e=t.r,88)&&(t.c=YP(e,26)),t.c}function lX(t){return JM(t&BEt,t>>22&BEt,t<0?FEt:0)}function hX(t,e){var n,i;(n=YP(function(t,e){v$(t);try{return t.Bc(e)}catch(t){if(EI(t=b4(t),205)||EI(t,173))return null;throw ow(t)}}(t.c,e),14))&&(i=n.gc(),n.$b(),t.d-=i)}function fX(t,e){var n;return!!(n=J5(t,e.cd()))&&jz(n.e,e.dd())}function dX(t,e){return 0==e||0==t.e?t:e>0?Att(t,e):Cgt(t,-e)}function gX(t,e){return 0==e||0==t.e?t:e>0?Cgt(t,e):Att(t,-e)}function pX(t){if(Ght(t))return t.c=t.a,t.a.Pb();throw ow(new Nw)}function bX(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(uct(),OGt)&&n.k==OGt}function wX(t){var e;return n4(e=new wH,t),s5(e,(hkt(),E1t),null),e}function yX(t,e,n){var i;return(i=t.Yg(e))>=0?t._g(i,n,!0):Qlt(t,e,n)}function mX(t,e,n,i){var r;for(r=0;re)throw ow(new jm(qut(t,e,"index")));return t}function jX(t,e,n,i){var r;return function(t,e,n,i,r){var a,o;for(a=0,o=0;ot.d[r.p]&&(n+=RW(t.b,i)*YP(o.b,19).a,EK(t.a,u7(i)));for(;!tv(t.a);)VZ(t.b,YP(SR(t.a),19).a)}return n}(t,n)}function eV(t){var e;return t.a||EI(e=t.r,148)&&(t.a=YP(e,148)),t.a}function nV(t){return t.a?t.e?nV(t.e):null:t}function iV(t,e){return dz(e),t.c=0,"Initial capacity must not be negative")}function fV(){fV=I,tqt=R6((YJ(),M4($v(eqt,1),q_t,232,0,[Qzt,Zzt,Jzt])))}function dV(){dV=I,sqt=R6((PQ(),M4($v(cqt,1),q_t,461,0,[aqt,rqt,oqt])))}function gV(){gV=I,dqt=R6((EZ(),M4($v(gqt,1),q_t,462,0,[fqt,hqt,lqt])))}function pV(){pV=I,azt=R6((_6(),M4($v(ozt,1),q_t,132,0,[nzt,izt,rzt])))}function bV(){bV=I,RUt=R6((_Z(),M4($v(HUt,1),q_t,379,0,[FUt,BUt,jUt])))}function wV(){wV=I,kGt=R6((V8(),M4($v(TGt,1),q_t,423,0,[xGt,vGt,mGt])))}function yV(){yV=I,mWt=R6((E0(),M4($v(vWt,1),q_t,314,0,[wWt,bWt,yWt])))}function mV(){mV=I,EWt=R6((a0(),M4($v(TWt,1),q_t,337,0,[xWt,_Wt,kWt])))}function vV(){vV=I,$Wt=R6((Q4(),M4($v(zWt,1),q_t,450,0,[jWt,FWt,RWt])))}function xV(){xV=I,GKt=R6((f2(),M4($v(YKt,1),q_t,361,0,[UKt,HKt,qKt])))}function kV(){kV=I,BXt=R6((TZ(),M4($v(FXt,1),q_t,303,0,[NXt,PXt,DXt])))}function _V(){_V=I,LXt=R6((Z3(),M4($v(OXt,1),q_t,292,0,[MXt,IXt,AXt])))}function EV(){EV=I,p2t=R6((Q6(),M4($v(b2t,1),q_t,378,0,[f2t,d2t,g2t])))}function TV(){TV=I,i3t=R6((u3(),M4($v(r3t,1),q_t,375,0,[t3t,e3t,n3t])))}function CV(){CV=I,H2t=R6((p5(),M4($v(U2t,1),q_t,339,0,[z2t,$2t,q2t])))}function SV(){SV=I,Z2t=R6((r0(),M4($v(J2t,1),q_t,452,0,[Q2t,X2t,V2t])))}function AV(){AV=I,k3t=R6((N4(),M4($v(O3t,1),q_t,377,0,[v3t,x3t,m3t])))}function MV(){MV=I,f3t=R6((C6(),M4($v(d3t,1),q_t,336,0,[u3t,l3t,h3t])))}function IV(){IV=I,w3t=R6((H2(),M4($v(y3t,1),q_t,338,0,[b3t,g3t,p3t])))}function LV(){LV=I,$3t=R6((o0(),M4($v(z3t,1),q_t,454,0,[F3t,j3t,R3t])))}function OV(){OV=I,l6t=R6((d9(),M4($v(h6t,1),q_t,442,0,[u6t,s6t,c6t])))}function DV(){DV=I,m6t=R6((k6(),M4($v(Y6t,1),q_t,380,0,[b6t,w6t,y6t])))}function NV(){NV=I,c8t=R6((h9(),M4($v($8t,1),q_t,381,0,[o8t,s8t,a8t])))}function PV(){PV=I,n8t=R6((c3(),M4($v(i8t,1),q_t,293,0,[t8t,e8t,J6t])))}function BV(){BV=I,Z8t=R6((f9(),M4($v(J8t,1),q_t,437,0,[X8t,V8t,Q8t])))}function FV(){FV=I,Sne=R6((E8(),M4($v(Ane,1),q_t,334,0,[Tne,Ene,Cne])))}function jV(){jV=I,ene=R6((KJ(),M4($v(nne,1),q_t,272,0,[Zee,Jee,tne])))}function RV(t,e){return!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),dtt(t.o,e)}function $V(t){return!t.g&&(t.g=new sc),!t.g.c&&(t.g.c=new Nb(t)),t.g.c}function zV(t,e,n){var i,r;if(null!=n)for(i=0;i=r){for(o=1;on||e=0?t._g(n,!0,!0):Qlt(t,e,!0)}function mQ(){mQ=I,Z5t=oet(oet(uE(new aK,(Drt(),G4t)),(but(),i5t)),J4t)}function vQ(t){for(;!t.a;)if(!FN(t.c,new Fd(t)))return!1;return!0}function xQ(t){return v$(t),EI(t,198)?YP(t,198):new nf(t)}function kQ(){var t,e,n,i;kQ=I,s9t=new fs,u9t=new ds,Ekt(),t=bee,e=s9t,n=Xte,i=u9t,Dz(),c9t=new mm(M4($v(Vjt,1),L_t,42,0,[(hit(t,e),new Uk(t,e)),(hit(n,i),new Uk(n,i))]))}function _Q(){_Q=I,f6t=new LC("LEAF_NUMBER",0),d6t=new LC("NODE_SIZE",1)}function EQ(t){t.a=HV(jce,vEt,25,t.b+1,15,1),t.c=HV(jce,vEt,25,t.b,15,1),t.d=0}function TQ(t,e){if(null==t.g||e>=t.i)throw ow(new BA(e,t.i));return t.g[e]}function CQ(t,e,n){if(p6(t,n),null!=n&&!t.wj(n))throw ow(new Cw);return n}function SQ(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)JJ(t,e);return OK(t)}function AQ(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function MQ(t,e){var n;return WK(e),(n=tZ(t.slice(0,e),t)).length=e,n}function IQ(t,e,n,i){Hq(),i=i||v$t,Hut(t.slice(e,n),t,e,n,-e,i)}function LQ(t,e,n,i,r){return e<0?Qlt(t,n,i):YP(n,66).Nj().Pj(t,t.yh(),e,i,r)}function OQ(t,e){if(e.a)throw ow(new Em(RTt));NR(t.a,e),e.a=t,!t.j&&(t.j=e)}function DQ(t,e){kA.call(this,e.rd(),-16449&e.qd()),dz(t),this.a=t,this.c=e}function NQ(t,e){var n,i;return i=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),sV(t,i,n)}function PQ(){PQ=I,aqt=new rT(pCt,0),rqt=new rT(fCt,1),oqt=new rT(bCt,2)}function BQ(){BQ=I,z$t=new PE("All",0),q$t=new EM,H$t=new aI,U$t=new TM}function FQ(){FQ=I,G$t=R6((BQ(),M4($v(Y$t,1),q_t,297,0,[z$t,q$t,H$t,U$t])))}function jQ(){jQ=I,lGt=R6((D4(),M4($v(yGt,1),q_t,405,0,[oGt,uGt,sGt,cGt])))}function RQ(){RQ=I,Gqt=R6((V3(),M4($v(Yqt,1),q_t,406,0,[Uqt,zqt,qqt,Hqt])))}function $Q(){$Q=I,Qqt=R6((xnt(),M4($v(Zqt,1),q_t,323,0,[Wqt,Kqt,Xqt,Vqt])))}function zQ(){zQ=I,uHt=R6((knt(),M4($v(lHt,1),q_t,394,0,[oHt,aHt,sHt,cHt])))}function qQ(){qQ=I,W4t=R6((Drt(),M4($v(X4t,1),q_t,393,0,[U4t,G4t,Y4t,K4t])))}function HQ(){HQ=I,gKt=R6((L4(),M4($v(_Kt,1),q_t,360,0,[dKt,hKt,fKt,lKt])))}function UQ(){UQ=I,Q6t=R6((Fit(),M4($v(Z6t,1),q_t,340,0,[V6t,W6t,X6t,K6t])))}function GQ(){GQ=I,MKt=R6((O4(),M4($v(IKt,1),q_t,411,0,[TKt,CKt,SKt,AKt])))}function YQ(){YQ=I,x2t=R6((Fnt(),M4($v(k2t,1),q_t,197,0,[m2t,v2t,y2t,w2t])))}function KQ(){KQ=I,wre=R6((x6(),M4($v(vre,1),q_t,396,0,[gre,pre,dre,bre])))}function WQ(){WQ=I,Dne=R6((Prt(),M4($v(Nne,1),q_t,285,0,[One,Mne,Ine,Lne])))}function XQ(){XQ=I,sne=R6((l9(),M4($v(cne,1),q_t,218,0,[one,rne,ine,ane])))}function VQ(){VQ=I,lre=R6((ett(),M4($v(hre,1),q_t,311,0,[ure,ore,cre,sre])))}function QQ(){QQ=I,Kie=R6((Ttt(),M4($v(Wie,1),q_t,374,0,[Gie,Yie,Uie,Hie])))}function ZQ(){ZQ=I,Kyt(),Kse=KEt,Yse=WEt,Xse=new td(KEt),Wse=new td(WEt)}function JQ(){JQ=I,QWt=new UT(oAt,0),VWt=new UT("IMPROVE_STRAIGHTNESS",1)}function tZ(t,e){return 10!=UZ(e)&&M4(H5(e),e.hm,e.__elementTypeId$,UZ(e),t),t}function eZ(t,e){var n;return-1!=(n=rZ(t,e,0))&&(OX(t,n),!0)}function nZ(t,e){var n;return(n=YP(RX(t.e,e),387))?(NB(n),n.e):null}function iZ(t){var e;return VA(t)&&(e=0-t,!isNaN(e))?e:C3(r5(t))}function rZ(t,e,n){for(;n0?(t.f[u.p]=f/(u.e.c.length+u.g.c.length),t.c=e.Math.min(t.c,t.f[u.p]),t.b=e.Math.max(t.b,t.f[u.p])):s&&(t.f[u.p]=f)}}(t,n,i),0==t.a.c.length||function(t,e){var n,i,r,a,o,s,c,u,l,h;for(u=t.e[e.c.p][e.p]+1,c=e.c.a.c.length+1,s=new gd(t.a);s.a=0?Snt(t,n,!0,!0):Qlt(t,e,!0)}function DZ(t,e){var n,i;return W_(),n=vK(t),i=vK(e),!!n&&!!i&&!ynt(n.k,i.k)}function NZ(t){(this.q?this.q:(qq(),qq(),w$t)).Ac(t.q?t.q:(qq(),qq(),w$t))}function PZ(t,e){eHt=new ee,rHt=e,YP((tHt=t).b,65),UV(tHt,eHt,null),Bmt(tHt)}function BZ(t,e,n){var i;return i=t.g[e],NI(t,e,t.oi(e,n)),t.gi(e,n,i),t.ci(),i}function FZ(t,e){var n;return(n=t.Xc(e))>=0&&(t.$c(n),!0)}function jZ(t){var e;return t.d!=t.r&&(e=oat(t),t.e=!!e&&e.Cj()==LBt,t.d=e),t.e}function RZ(t,e){var n;for(v$(t),v$(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function $Z(t,e){var n;return(n=YP(B$(t.e,e),387))?(TI(t,n),n.e):null}function zZ(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function qZ(t,e){return q7(t),new xF(t,new UN(new YX(e,t.a)))}function HZ(t,e){var n=t.a[e],i=(Z4(),mRt)[typeof n];return i?i(n):K6(typeof n)}function UZ(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function GZ(t){var e;return null!=(e=0==t.b.c.length?null:mF(t.b,0))&&V0(t,0),e}function YZ(t,e){for(;e[0]=0;)++e[0]}function KZ(t,e){this.e=e,this.a=r4(t),this.a<54?this.f=HY(t):this.c=zet(t)}function WZ(t,e,n,i){Akt(),Qb.call(this,26),this.c=t,this.a=e,this.d=n,this.b=i}function XZ(t,e,n){var i,r;for(i=10,r=0;rt.a[i]&&(i=n);return i}function eJ(t,e){return 0==e.e||0==t.e?l$t:(yht(),Gdt(t,e))}function nJ(){nJ=I,dGt=new Ee,gGt=new ke,hGt=new Me,fGt=new Ie,pGt=new Le}function iJ(){iJ=I,Tzt=new eT("BY_SIZE",0),Czt=new eT("BY_SIZE_AND_SHAPE",1)}function rJ(){rJ=I,HHt=new sT("EADES",0),UHt=new sT("FRUCHTERMAN_REINGOLD",1)}function aJ(){aJ=I,DWt=new zT("READING_DIRECTION",0),NWt=new zT("ROTATION",1)}function oJ(){oJ=I,LWt=R6((git(),M4($v(OWt,1),q_t,335,0,[SWt,CWt,MWt,IWt,AWt])))}function sJ(){sJ=I,A2t=R6((eit(),M4($v(M2t,1),q_t,315,0,[S2t,E2t,T2t,_2t,C2t])))}function cJ(){cJ=I,BKt=R6((mot(),M4($v(zKt,1),q_t,363,0,[OKt,NKt,PKt,DKt,LKt])))}function uJ(){uJ=I,QVt=R6((u9(),M4($v(i2t,1),q_t,163,0,[VVt,YVt,KVt,WVt,XVt])))}function lJ(){lJ=I,p7t=R6((Sct(),M4($v(V7t,1),q_t,316,0,[l7t,h7t,g7t,f7t,d7t])))}function hJ(){hJ=I,m9t=R6((Get(),M4($v(v9t,1),q_t,175,0,[w9t,b9t,g9t,y9t,p9t])))}function fJ(){fJ=I,K8t=R6((Ldt(),M4($v(W8t,1),q_t,355,0,[H8t,q8t,G8t,U8t,Y8t])))}function dJ(){dJ=I,XUt=R6((Ast(),M4($v(ZUt,1),q_t,356,0,[UUt,GUt,YUt,KUt,WUt])))}function gJ(){gJ=I,Vee=R6((X8(),M4($v(Qee,1),q_t,103,0,[Wee,Kee,Yee,Gee,Xee])))}function pJ(){pJ=I,Qne=R6((Yet(),M4($v(Zne,1),q_t,249,0,[Wne,Vne,Yne,Kne,Xne])))}function bJ(){bJ=I,Bie=R6((_xt(),M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie])))}function wJ(t,e){var n;return(n=YP(B$(t.a,e),134))||(n=new Qt,Iz(t.a,e,n)),n}function yJ(t){var e;return!!(e=YP(Sst(t,(Tkt(),HXt)),305))&&e.a==t}function mJ(t){var e;return!!(e=YP(Sst(t,(Tkt(),HXt)),305))&&e.i==t}function vJ(t,e){return dz(e),Qj(t),!!t.d.Ob()&&(e.td(t.d.Pb()),!0)}function xJ(t){return p8(t,Ykt)>0?Ykt:p8(t,X_t)<0?X_t:HF(t)}function kJ(t){return t<3?(l0(t,R_t),t+1):t<$_t?nU(t/.75+1):Ykt}function _J(t,e){var n;return null==t.i&&ryt(t),n=t.i,e>=0&&e=-.01&&t.a<=xCt&&(t.a=0),t.b>=-.01&&t.b<=xCt&&(t.b=0),t}function CJ(t,e){return e==(cP(),cP(),L$t)?t.toLocaleLowerCase():t.toLowerCase()}function SJ(t){return(2&t.i?"interface ":1&t.i?"":"class ")+(rD(t),t.o)}function AJ(t){var e;e=new zy,aQ((!t.q&&(t.q=new gR(eoe,t,11,10)),t.q),e)}function MJ(t){this.g=t,this.f=new Jb,this.a=e.Math.min(this.g.c.c,this.g.d.c)}function IJ(t){this.b=new Jb,this.a=new Jb,this.c=new Jb,this.d=new Jb,this.e=t}function LJ(t,e){this.a=new tw,this.e=new tw,this.b=(Q6(),g2t),this.c=t,this.b=e}function OJ(t,e,n){rN.call(this),GJ(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function DJ(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(dm(),tRt)}function NJ(t){if(t<0)throw ow(new Ym("Illegal Capacity: "+t));this.g=this.ri(t)}function PJ(t){var e;vO(!!t.c),e=t.c.a,HJ(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function BJ(t,e){var n;return q7(t),n=new Nq(t,t.a.rd(),4|t.a.qd(),e),new xF(t,n)}function FJ(t,e){var n;for(n=t.Kc();n.Ob();)s5(YP(n.Pb(),70),(Tkt(),dVt),e)}function jJ(t){var e;return(e=Qm(oD(Sst(t,(hkt(),f1t)))))<0&&s5(t,f1t,e=0),e}function RJ(t,e,n,i,r,a){var o;GU(o=wX(i),r),UU(o,a),Ylt(t.a,i,new wP(o,e,n.f))}function $J(t,e){var n;if(!(n=Kdt(t.Tg(),e)))throw ow(new Ym(fNt+e+pNt));return n}function zJ(t,e){var n;for(n=t;kU(n);)if((n=kU(n))==e)return!0;return!1}function qJ(t,e){var n,i,r,a;for(dz(e),r=0,a=(i=t.c).length;r>16!=6?null:YP(Fht(t),235)}(t))&&!e.kh()&&(t.w=e),e)}function ZJ(t){var e;return null==t?null:function(t,e){var n,i,r,a,o;if(null==t)return null;for(o=HV(Fce,rEt,25,2*e,15,1),i=0,r=0;i>4&15,a=15&t[i],o[r++]=Bre[n],o[r++]=Bre[a];return Htt(o,0,o.length)}(e=YP(t,190),e.length)}function JJ(t,e){if(null==t.g||e>=t.i)throw ow(new BA(e,t.i));return t.li(e,t.g[e])}function t1(t){var e,n;for(e=t.a.d.j,n=t.c.d.j;e!=n;)W0(t.b,e),e=T7(e);W0(t.b,e)}function e1(t,e){var n,i,r,a;for(r=0,a=(i=t.d).length;r=14&&e<=16)),t}function a1(t,e,n){var i=function(){return t.apply(i,arguments)};return e.apply(i,n),i}function o1(t,e,n){var i,r;i=e;do{r=Qm(t.p[i.p])+n,t.p[i.p]=r,i=t.a[i.p]}while(i!=e)}function s1(t,e){var n,i;i=t.a,n=function(t,e,n){var i,r;return r=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(i=new fR(t,1,5,r,t.a),n?kot(n,i):n=i),n}(t,e,null),i!=e&&!t.e&&(n=$vt(t,e,n)),n&&n.Fi()}function c1(t,n){return qM(),n0(W_t),e.Math.abs(t-n)<=W_t||t==n||isNaN(t)&&isNaN(n)}function u1(t,n){return qM(),n0(W_t),e.Math.abs(t-n)<=W_t||t==n||isNaN(t)&&isNaN(n)}function l1(t,e){return function(t){return t?t.i:null}(O2(t,e,HF(V7(B_t,Fz(HF(V7(null==e?0:q5(e),F_t)),15)))))}function h1(){h1=I,FGt=R6((uct(),M4($v(jGt,1),q_t,267,0,[PGt,NGt,OGt,BGt,DGt,LGt])))}function f1(){f1=I,ste=R6((lot(),M4($v(Uee,1),q_t,291,0,[ote,ate,rte,nte,ete,ite])))}function d1(){d1=I,z9t=R6((jnt(),M4($v(tte,1),q_t,248,0,[P9t,j9t,R9t,$9t,B9t,F9t])))}function g1(){g1=I,lWt=R6((dut(),M4($v(hWt,1),q_t,227,0,[oWt,cWt,aWt,sWt,uWt,rWt])))}function p1(){p1=I,gXt=R6((ict(),M4($v(pXt,1),q_t,275,0,[fXt,uXt,dXt,hXt,lXt,cXt])))}function b1(){b1=I,oXt=R6((Hat(),M4($v(sXt,1),q_t,274,0,[iXt,nXt,aXt,eXt,rXt,tXt])))}function w1(){w1=I,l2t=R6((Xot(),M4($v(h2t,1),q_t,313,0,[c2t,o2t,r2t,a2t,u2t,s2t])))}function y1(){y1=I,WWt=R6((dct(),M4($v(XWt,1),q_t,276,0,[HWt,qWt,GWt,UWt,KWt,YWt])))}function m1(){m1=I,r5t=R6((but(),M4($v(H5t,1),q_t,327,0,[i5t,J4t,e5t,t5t,n5t,Z4t])))}function v1(){v1=I,die=R6((Tlt(),M4($v(gie,1),q_t,273,0,[hie,uie,lie,cie,sie,fie])))}function x1(){x1=I,pne=R6((gst(),M4($v(_ne,1),q_t,312,0,[dne,hne,gne,une,fne,lne])))}function k1(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,0,n,t.a))}function _1(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,1,n,t.b))}function E1(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,3,n,t.b))}function T1(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,3,n,t.f))}function C1(t,e){var n;n=t.g,t.g=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,4,n,t.g))}function S1(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,5,n,t.i))}function A1(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,6,n,t.j))}function M1(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,1,n,t.j))}function I1(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,4,n,t.c))}function L1(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&O3(t,new tW(t,2,n,t.k))}function O1(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&O3(t,new eW(t,2,n,t.d))}function D1(t,e){var n;n=t.s,t.s=e,4&t.Db&&!(1&t.Db)&&O3(t,new eW(t,4,n,t.s))}function N1(t,e){var n;n=t.t,t.t=e,4&t.Db&&!(1&t.Db)&&O3(t,new eW(t,5,n,t.t))}function P1(t,e){var n;n=t.F,t.F=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,5,n,e))}function B1(t,e){var n;return(n=YP(B$((xE(),Eae),t),55))?n.xj(e):HV(Rjt,Zkt,1,e,5,1)}function F1(t,e){var n;return e in t.a&&(n=bU(t,e).he())?n.a:null}function j1(t,e){var n,i;return Lx(),i=new oc,e&&Hdt(i,e),M0(n=i,t),n}function R1(t,e,n){if(p6(t,n),!t.Bk()&&null!=n&&!t.wj(n))throw ow(new Cw);return n}function $1(t,e){return t.n=e,t.n?(t.f=new Jb,t.e=new Jb):(t.f=null,t.e=null),t}function z1(t,e,n,i,r,a){var o;return V1(n,o=m$(t,e)),o.i=r?8:0,o.f=i,o.e=r,o.g=a,o}function q1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=t,this.a=n}function H1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=t,this.a=n}function U1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=t,this.a=n}function G1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=t,this.a=n}function Y1(t,e,n,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=t,this.a=n}function K1(t,e){var n,i,r,a;for(r=0,a=(i=e).length;r=0),function(t,e){var n,i,r;return i=t.a.length-1,n=e-t.b&i,r=t.c-e&i,yO(n<(t.c-t.b&i)),n>=r?(function(t,e){var n,i;for(n=t.a.length-1,t.c=t.c-1&n;e!=t.c;)i=e+1&n,L$(t.a,e,t.a[i]),e=i;L$(t.a,t.c,null)}(t,e),-1):(function(t,e){var n,i;for(n=t.a.length-1;e!=t.b;)i=e-1&n,L$(t.a,e,t.a[i]),e=i;L$(t.a,t.b,null),t.b=t.b+1&n}(t,e),1)}(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function e0(t){return t.a<54?t.f<0?-1:t.f>0?1:0:(!t.c&&(t.c=Y6(t.f)),t.c).e}function n0(t){if(!(t>=0))throw ow(new Ym("tolerance ("+t+") must be >= 0"));return t}function i0(){return h9t||r6(h9t=new Wpt,M4($v(Bzt,1),Zkt,130,0,[new Ah])),h9t}function r0(){r0=I,Q2t=new aC(vCt,0),X2t=new aC("INPUT",1),V2t=new aC("OUTPUT",2)}function a0(){a0=I,xWt=new RT("ARD",0),_Wt=new RT("MSD",1),kWt=new RT("MANUAL",2)}function o0(){o0=I,F3t=new hC("BARYCENTER",0),j3t=new hC(DAt,1),R3t=new hC(NAt,2)}function s0(t,e){var n;if(n=t.gc(),e<0||e>n)throw ow(new wN(e,n));return new HN(t,e)}function c0(t,e){var n;return EI(e,42)?t.c.Mc(e):(n=dtt(t,e),Xtt(t,e),n)}function u0(t,e,n){return t8(t,e),w2(t,n),D1(t,0),N1(t,1),o7(t,!0),i7(t,!0),t}function l0(t,e){if(t<0)throw ow(new Ym(e+" cannot be negative but was: "+t));return t}function h0(t,e){var n,i;for(n=0,i=t.gc();n0?YP(mF(n.a,i-1),10):null}function C0(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,2,n,t.k))}function S0(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,8,n,t.f))}function A0(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,7,n,t.i))}function M0(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,8,n,t.a))}function I0(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,0,n,t.b))}function L0(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,0,n,t.b))}function O0(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,1,n,t.c))}function D0(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,1,n,t.c))}function N0(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,4,n,t.c))}function P0(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,1,n,t.d))}function B0(t,e){var n;n=t.D,t.D=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,2,n,t.D))}function F0(t,e){t.r>0&&t.c0&&0!=t.g&&F0(t.i,e/t.r*t.i.d))}function j0(t,e){return Mgt(t.e,e)?(vE(),jZ(e)?new tF(e,t):new GS(e,t)):new WS(e,t)}function R0(t,e){return function(t){return t?t.g:null}(D2(t.a,e,HF(V7(B_t,Fz(HF(V7(null==e?0:q5(e),F_t)),15)))))}function $0(t){var n;return(t=e.Math.max(t,2))>(n=b5(t))?(n<<=1)>0?n:$_t:n}function z0(t){switch(bL(3!=t.e),t.e){case 2:return!1;case 0:return!0}return function(t){return t.e=3,t.d=t.Yb(),2!=t.e&&(t.e=0,!0)}(t)}function q0(t,e){var n;return!!EI(e,8)&&(n=YP(e,8),t.a==n.a&&t.b==n.b)}function H0(t,e,n){var i,r;return r=e>>5,i=31&e,jG(zj(t.n[n][r],HF(Rj(i,1))),3)}function U0(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,21,n,t.b))}function G0(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,11,n,t.d))}function Y0(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,13,n,t.j))}function K0(t,e,n){var i,r,a;for(a=t.a.length-1,r=t.b,i=0;i0?e-1:e,dx(function(t,e){return t.j=e,t}($1(IB(new nm,n),t.n),t.j),t.k)}(t,t.g),DB(t.a,n),n.i=t,t.d=e,n)}function K2(t,e,n){tst(n,"DFS Treeifying phase",1),function(t,e){var n,i,r;for(r=e.b.b,t.a=new x_,t.b=HV(jce,vEt,25,r,15,1),n=0,i=Wet(e.b,0);i.b!=i.d.c;)YP(kK(i),86).g=n++}(t,e),function(t,e){var n,i,r,a,o;for(o=YP(Sst(e,(eft(),R5t)),425),a=Wet(e.b,0);a.b!=a.d.c;)if(r=YP(kK(a),86),0==t.b[r.g]){switch(o.g){case 0:pit(t,r);break;case 1:fft(t,r)}t.b[r.g]=2}for(i=Wet(t.a,0);i.b!=i.d.c;)H9((n=YP(kK(i),188)).b.d,n,!0),H9(n.c.b,n,!0);s5(e,(Jmt(),y5t),t.a)}(t,e),t.a=null,t.b=null,Dct(n)}function W2(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new Jb,function(t){var e,n,i,r;for(r=H8(t.d,t.e).Kc();r.Ob();)for(i=YP(r.Pb(),11),n=new gd(t.e==(_xt(),Pie)?i.e:i.g);n.a0&&(this.g=this.ri(this.i+(this.i/8|0)+1),t.Qc(this.g))}function V2(t,e){EB.call(this,Joe,t,e),this.b=this,this.a=hgt(t.Tg(),_J(this.e.Tg(),this.c))}function Q2(t,e){var n,i;for(dz(e),i=e.vc().Kc();i.Ob();)n=YP(i.Pb(),42),t.zc(n.cd(),n.dd())}function Z2(t){var e;if(-2==t.b){if(0==t.e)e=-1;else for(e=0;0==t.a[e];e++);t.b=e}return t.b}function J2(t){switch(t.g){case 2:return _xt(),Pie;case 4:return _xt(),pie;default:return t}}function t3(t){switch(t.g){case 1:return _xt(),Die;case 3:return _xt(),bie;default:return t}}function e3(t,e){return mL(),nA(t)?NX(t,sD(e)):eA(t)?Hj(t,oD(e)):tA(t)?qj(t,aD(e)):t.wd(e)}function n3(t,n){n.q=t,t.d=e.Math.max(t.d,n.r),t.b+=n.d+(0==t.a.c.length?0:t.c),QP(t.a,n)}function i3(t,e){var n,i,r,a;return r=t.c,n=t.c+t.b,a=t.d,i=t.d+t.a,e.a>r&&e.aa&&e.b0||l.j==Pie&&l.e.c.length-l.g.c.length<0)){e=!1;break}for(r=new gd(l.g);r.a=0x8000000000000000?(SZ(),xRt):(i=!1,t<0&&(i=!0,t=-t),n=0,t>=$Et&&(t-=(n=nU(t/$Et))*$Et),e=0,t>=REt&&(t-=(e=nU(t/REt))*REt),r=JM(nU(t),e,n),i&&T5(r),r)}(t))}function L3(t,e){var n,i,r;for(n=t.c.Ee(),r=e.Kc();r.Ob();)i=r.Pb(),t.a.Od(n,i);return t.b.Kb(n)}function O3(t,e){var n,i,r;if(null!=(n=t.Jg())&&t.Mg())for(i=0,r=n.length;i1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw ow(new Nw)}function q3(t){var e,n,i;return n=0,(i=t)<0&&(i+=$Et,n=FEt),e=nU(i/REt),JM(nU(i-e*REt),e,n)}function H3(t){var e,n,i;for(i=0,n=new v_(t.a);n.a>22),r=t.h-e.h+(i>>22),JM(n&BEt,i&BEt,r&FEt)}function p4(t){var e;return t<128?(!(e=(lF(),DRt)[t])&&(e=DRt[t]=new Jf(t)),e):new Jf(t)}function b4(t){var e;return EI(t,78)?t:((e=t&&t.__java$exception)||kw(e=new W6(t)),e)}function w4(t){if(EI(t,186))return YP(t,118);if(t)return null;throw ow(new Xm(lPt))}function y4(t,e){if(null==e)return!1;for(;t.a!=t.b;)if(U8(e,c8(t)))return!0;return!1}function m4(t){return!!t.a.Ob()||t.a==t.d&&(t.a=new KY(t.e.f),t.a.Ob())}function v4(t,e){var n;return 0!=(n=e.Pc()).length&&(rB(t.c,t.c.length,n),!0)}function x4(t,e){var n;for(n=new gd(t.b);n.a=0,"Negative initial capacity"),wB(e>=0,"Non-positive load factor"),zR(this)}function t5(t,e,n){return!(t>=128)&&oA(t<64?jG(Rj(1,t),n):jG(Rj(1,t-64),e),0)}function e5(t,e){return!(!t||!e||t==e)&&g9(t.b.c,e.b.c+e.b.b)<0&&g9(e.b.c,t.b.c+t.b.b)<0}function n5(t){var e,n,i;return n=t.n,i=t.o,e=t.d,new gq(n.a-e.b,n.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function i5(t){var n,i;for(null==t.j&&(t.j=(SH(),function(t){var n,i,r;for(n="Sz",i="ez",r=e.Math.min(t.length,5)-1;r>=0;r--)if(NN(t[r].d,n)||NN(t[r].d,i)){t.length>=r+1&&t.splice(0,r+1);break}return t}(lRt.ce(t)))),n=0,i=t.j.length;n(i=t.gc()))throw ow(new wN(e,i));return t.hi()&&(n=EU(t,n)),t.Vh(e,n)}function o5(t,e,n){return null==n?(!t.q&&(t.q=new tw),RX(t.q,e)):(!t.q&&(t.q=new tw),Iz(t.q,e,n)),t}function s5(t,e,n){return null==n?(!t.q&&(t.q=new tw),RX(t.q,e)):(!t.q&&(t.q=new tw),Iz(t.q,e,n)),t}function c5(t){var n,i;return n4(i=new zX,t),s5(i,(u2(),pUt),t),function(t,n,i){var r,a,o,s,c;for(r=0,o=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));o.e!=o.i.gc();)s="",0==(!(a=YP(ant(o),33)).n&&(a.n=new gR(Vre,a,1,7)),a.n).i||(s=YP(JJ((!a.n&&(a.n=new gR(Vre,a,1,7)),a.n),0),137).a),n4(c=new R$(s),a),s5(c,(u2(),pUt),a),c.b=r++,c.d.a=a.i+a.g/2,c.d.b=a.j+a.f/2,c.e.a=e.Math.max(a.g,1),c.e.b=e.Math.max(a.f,1),QP(n.e,c),Kut(i.f,a,c),YP(yft(a,(Fpt(),iUt)),98),Oot()}(t,i,n=new tw),function(t,n,i){var r,a,o,s,c,u,h,f;for(u=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));u.e!=u.i.gc();)for(a=new Sj(cL(cdt(c=YP(ant(u),33)).a.Kc(),new l));Ght(a);){if(!(r=YP(pX(a),79)).b&&(r.b=new CN(Hre,r,4,7)),!(r.b.i<=1&&(!r.c&&(r.c=new CN(Hre,r,5,8)),r.c.i<=1)))throw ow(new uv("Graph must not contain hyperedges."));if(!Dht(r)&&c!=Zot(YP(JJ((!r.c&&(r.c=new CN(Hre,r,5,8)),r.c),0),82)))for(n4(h=new JD,r),s5(h,(u2(),pUt),r),Cf(h,YP(ZS(LH(i.f,c)),144)),Sf(h,YP(B$(i,Zot(YP(JJ((!r.c&&(r.c=new CN(Hre,r,5,8)),r.c),0),82))),144)),QP(n.c,h),s=new zI((!r.n&&(r.n=new gR(Vre,r,1,7)),r.n));s.e!=s.i.gc();)n4(f=new cW(h,(o=YP(ant(s),137)).a),o),s5(f,pUt,o),f.e.a=e.Math.max(o.g,1),f.e.b=e.Math.max(o.f,1),Hyt(f),QP(n.d,f)}}(t,i,n),i}function u5(t,e){var n,i,r;for(n=!1,i=t.a[e].length,r=0;r>=1);return e}function w5(t){var e,n;return 32==(n=Klt(t.h))?32==(e=Klt(t.m))?Klt(t.l)+32:e+20-10:n-12}function y5(t){var e;return null==(e=t.a[t.b])?null:(L$(t.a,t.b,null),t.b=t.b+1&t.a.length-1,e)}function m5(t){var e,n;return e=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,n=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,e||n}function v5(t,e,n){var i,r;return i=new WV(e,n),r=new H,t.b=jgt(t,t.b,i,r),r.b||++t.c,t.b.b=!1,r.d}function x5(t,e,n){var i,r,a;for(a=0,r=H8(e,n).Kc();r.Ob();)i=YP(r.Pb(),11),Iz(t.c,i,u7(a++))}function k5(t){var e,n;for(n=new gd(t.a.b);n.an&&(n=t[e]);return n}function M5(t,e,n){var i;return kgt(t,e,i=new Jb,(_xt(),pie),!0,!1),kgt(t,n,i,Pie,!1,!1),i}function I5(t,e,n){var i,r;return r=JY(e,"labels"),function(t,e,n){var i,r,a,o;if(n)for(r=((i=new Mj(n.a.length)).b-i.a)*i.c<0?(_E(),Ice):new iL(i);r.Ob();)(a=tK(n,YP(r.Pb(),19).a))&&(o=j1(nK(a,jNt),e),Iz(t.f,o,a),QNt in a.a&&C0(o,nK(a,QNt)),Qot(a,o),Jut(a,o))}((i=new SS(t,n)).a,i.b,r),r}function L5(t,e){var n;for(n=0;n1||e>=0&&t.b<3)}function $5(t){var e,n;for(e=new Iy,n=Wet(t,0);n.b!=n.d.c;)CO(e,0,new oM(YP(kK(n),8)));return e}function z5(t){var e;for(e=new gd(t.a.b);e.a=t.b.c.length||(o6(t,2*e+1),(n=2*e+2)=0&&t[i]===e[i];i--);return i<0?0:ME(jG(t[i],nTt),jG(e[i],nTt))?-1:1}function u6(t,e){var n,i;return i=YP(B3(t.a,4),126),n=HV(vae,hBt,415,e,0,1),null!=i&&rmt(i,0,n,0,i.length),n}function l6(t,e){var n;return n=new Lpt(0!=(256&t.f),t.i,t.a,t.d,0!=(16&t.f),t.j,t.g,e),null!=t.e||(n.c=t),n}function h6(t,e,n,i,r){var a,o;for(o=n;o<=r;o++)for(a=e;a<=i;a++)if(Mit(t,a,o))return!0;return!1}function f6(t,e,n){var i,r,a,o;for(dz(n),o=!1,a=t.Zc(e),r=n.Kc();r.Ob();)i=r.Pb(),a.Rb(i),o=!0;return o}function d6(t,e,n){var i,r;for(r=n.Kc();r.Ob();)if(i=YP(r.Pb(),42),t.re(e,i.dd()))return!0;return!1}function g6(t,e,n){return t.d[e.p][n.p]||(function(t,e,n){if(t.e)switch(t.b){case 1:!function(t,e,n){t.i=0,t.e=0,e!=n&&B5(t,e,n)}(t.c,e,n);break;case 0:!function(t,e,n){t.i=0,t.e=0,e!=n&&F5(t,e,n)}(t.c,e,n)}else GK(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function p6(t,e){if(!t.ai()&&null==e)throw ow(new Ym("The 'no null' constraint is violated"));return e}function b6(t,e){null==t.D&&null!=t.B&&(t.D=t.B,t.B=null),B0(t,null==e?null:(dz(e),e)),t.C&&t.yk(null)}function w6(t,e){return!(!t||t==e||!TO(e,(Tkt(),lVt)))&&YP(Sst(e,(Tkt(),lVt)),10)!=t}function y6(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.pl()}}function m6(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t.ql()}}function v6(t){fU.call(this,"The given string does not match the expected format for individual spacings.",t)}function x6(){x6=I,gre=new bS("ELK",0),pre=new bS("JSON",1),dre=new bS("DOT",2),bre=new bS("SVG",3)}function k6(){k6=I,b6t=new OC(oAt,0),w6t=new OC("RADIAL_COMPACTION",1),y6t=new OC("WEDGE_COMPACTION",2)}function _6(){_6=I,nzt=new BE("CONCURRENT",0),izt=new BE("IDENTITY_FINISH",1),rzt=new BE("UNORDERED",2)}function E6(){E6=I,F_(),gHt=new PA(QCt,pHt=hHt),dHt=new Sb(ZCt),bHt=new Sb(JCt),wHt=new Sb(tSt)}function T6(){T6=I,yKt=new xi,mKt=new ki,wKt=new _i,bKt=new Ei,dz(new Ti),pKt=new B}function C6(){C6=I,u3t=new cC("CONSERVATIVE",0),l3t=new cC("CONSERVATIVE_SOFT",1),h3t=new cC("SLOPPY",2)}function S6(){S6=I,xne=new OM(15),vne=new LM((Ekt(),Jte),xne),kne=kee,bne=fte,wne=Ute,mne=Kte,yne=Yte}function A6(t,e,n){var i,r;for(i=new x_,r=Wet(n,0);r.b!=r.d.c;)DB(i,new oM(YP(kK(r),8)));f6(t,e,i)}function M6(t){var e;return!t.a&&(t.a=new gR(Jae,t,9,5)),0!=(e=t.a).i?function(t){return t.b?t.b:t.a}(YP(JJ(e,0),678)):null}function I6(t,e){var n;return n=X7(t,e),ME($G(t,e),0)|function(t,e){return p8(t,e)>=0}($G(t,n),0)?n:X7(__t,$G(zj(n,63),1))}function L6(t,e){var n,i;if(0!=(i=t.c[e]))for(t.c[e]=0,t.d-=i,n=e+1;n0)return Zj(e-1,t.a.c.length),OX(t.a,e-1);throw ow(new Dw)}function D6(t,e,n){if(t>e)throw ow(new Ym(MTt+t+ITt+e));if(t<0||e>n)throw ow(new _v(MTt+t+LTt+e+vTt+n))}function N6(t){if(!(t.a&&8&t.a.i))throw ow(new Km("Enumeration class expected for layout option "+t.f))}function P6(t){var e;++t.j,0==t.i?t.g=null:t.iXLt?t-i>XLt:i-t>XLt)}function U6(t,e){return!t||e&&!t.j||EI(t,124)&&0==YP(t,124).a.b?0:t.Re()}function G6(t,e){return!t||e&&!t.k||EI(t,124)&&0==YP(t,124).a.a?0:t.Se()}function Y6(t){return upt(),t<0?-1!=t?new wnt(-1,-t):a$t:t<=10?s$t[nU(t)]:new wnt(1,t)}function K6(t){throw Z4(),ow(new Tm("Unexpected typeof result '"+t+"'; please report this bug to the GWT team"))}function W6(t){gv(),wI(this),jq(this),this.e=t,Tgt(this,t),this.g=null==t?e_t:k9(t),this.a="",this.b=t,this.a=""}function X6(){this.a=new ts,this.f=new Pp(this),this.b=new Bp(this),this.i=new Fp(this),this.e=new jp(this)}function V6(){gm.call(this,new XV(kJ(16))),l0(2,y_t),this.b=2,this.a=new _z(null,null,0,null),ww(this.a,this.a)}function Q6(){Q6=I,f2t=new ZT("DUMMY_NODE_OVER",0),d2t=new ZT("DUMMY_NODE_UNDER",1),g2t=new ZT("EQUAL",2)}function Z6(){Z6=I,JUt=pU(M4($v(Qee,1),q_t,103,0,[(X8(),Yee),Kee])),tGt=pU(M4($v(Qee,1),q_t,103,0,[Xee,Gee]))}function J6(t){return(_xt(),Sie).Hc(t.j)?Qm(oD(Sst(t,(Tkt(),RVt)))):C5(M4($v(D9t,1),m_t,8,0,[t.i.n,t.n,t.a])).b}function t8(t,e){var n,i;n=t.nk(e,null),i=null,e&&(Dx(),s1(i=new iw,t.r)),(n=sst(t,i,n))&&n.Fi()}function e8(t,e){var n,i,r;return i=!1,n=e.q.d,e.dr&&(rot(e.q,r),i=n!=e.q.d)),i}function n8(t,n){var i,r,a,o,s;return o=n.i,s=n.j,r=o-(i=t.f).i,a=s-i.j,e.Math.sqrt(r*r+a*a)}function i8(t,e){var n;return(n=Ztt(t))||(Emt(),aQ((n=new Wb(Lut(e))).Vk(),t)),n}function r8(t,e){var n,i;return(n=YP(t.c.Bc(e),14))?((i=t.hc()).Gc(n),t.d-=n.gc(),n.$b(),t.mc(i)):t.jc()}function a8(t,e){var n;for(n=0;n=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}function _8(t){var e,n;if(null!=t)for(n=0;n0&&t6(YP(mF(t.a,t.a.c.length-1),570),e)||QP(t.a,new QW(e))}function D8(t){var e;return(e=new Sv).a+="VerticalSegment ",gA(e,t.e),e.a+=" ",pA(e,sL(new vv,new gd(t.k))),e.a}function N8(t){var e;return(e=YP($Z(t.c.c,""),229))||(e=new uG(rx(ix(new bs,""),"Other")),Ret(t.c.c,"",e)),e}function P8(t){var e;return 64&t.Db?Nft(t):((e=new vL(Nft(t))).a+=" (name: ",fA(e,t.zb),e.a+=")",e.a)}function B8(t,e,n){var i,r;return r=t.sb,t.sb=e,4&t.Db&&!(1&t.Db)&&(i=new fR(t,1,4,r,e),n?n.Ei(i):n=i),n}function F8(t,e){var n,i;for(n=0,i=Q7(t,e).Kc();i.Ob();)n+=null!=Sst(YP(i.Pb(),11),(Tkt(),MVt))?1:0;return n}function j8(t,e,n){var i,r,a;for(i=0,a=Wet(t,0);a.b!=a.d.c&&!((r=Qm(oD(kK(a))))>n);)r>=e&&++i;return i}function R8(t,e,n){var i,r;return r=t.r,t.r=e,4&t.Db&&!(1&t.Db)&&(i=new fR(t,1,8,r,t.r),n?n.Ei(i):n=i),n}function $8(t,e){var n,i;return!(i=(n=YP(e,676)).vk())&&n.wk(i=EI(e,88)?new qS(t,YP(e,26)):new dY(t,YP(e,148))),i}function z8(t,e,n){var i;t.qi(t.i+1),i=t.oi(e,n),e!=t.i&&rmt(t.g,e,t.g,e+1,t.i-e),L$(t.g,e,i),++t.i,t.bi(e,n),t.ci()}function q8(t,e){var n;return n=new st,t.a.sd(n)?(jI(),new Sm(dz(aZ(t,n.a,e)))):(pz(t),jI(),jI(),O$t)}function H8(t,e){switch(e.g){case 2:case 1:return Q7(t,e);case 3:case 4:return k3(Q7(t,e))}return qq(),qq(),b$t}function U8(t,e){return nA(t)?NN(t,e):eA(t)?DN(t,e):tA(t)?(dz(t),JS(t)===JS(e)):_j(t)?t.Fb(e):nj(t)?HA(t,e):YG(t,e)}function G8(t,e,n,i,r){0==e||0==i||(1==e?r[i]=Rnt(r,n,i,t[0]):1==i?r[e]=Rnt(r,t,e,n[0]):function(t,e,n,i,r){var a,o,s,c;if(JS(t)!==JS(e)||i!=r)for(s=0;sn)throw ow(new jm(MTt+t+LTt+e+", size: "+n));if(t>e)throw ow(new Ym(MTt+t+ITt+e))}function Z8(t,e,n){if(e<0)mlt(t,n);else{if(!n.Ij())throw ow(new Ym(fNt+n.ne()+dNt));YP(n,66).Nj().Vj(t,t.yh(),e)}}function J8(t,e,n,i,r,a){this.e=new Jb,this.f=(r0(),Q2t),QP(this.e,t),this.d=e,this.a=n,this.b=i,this.f=r,this.c=a}function t7(t,e){var n,i;for(i=new zI(t);i.e!=i.i.gc();)if(n=YP(ant(i),26),JS(e)===JS(n))return!0;return!1}function e7(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function n7(t){var e;return 64&t.Db?Nft(t):((e=new vL(Nft(t))).a+=" (source: ",fA(e,t.d),e.a+=")",e.a)}function i7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,2,n,e))}function r7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,8,n,e))}function a7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,8,n,e))}function o7(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,3,n,e))}function s7(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,9,n,e))}function c7(t,e){var n;return-1==t.b&&t.a&&(n=t.a.Gj(),t.b=n?t.c.Xg(t.a.aj(),n):X9(t.c.Tg(),t.a)),t.c.Og(t.b,e)}function u7(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(WB(),FRt)[e])&&(n=FRt[e]=new ed(t)),n):new ed(t)}function l7(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(uF(),YRt)[e])&&(n=YRt[e]=new id(t)),n):new id(t)}function h7(t){var e;return t.k==(uct(),OGt)&&((e=YP(Sst(t,(Tkt(),nVt)),61))==(_xt(),bie)||e==Die)}function f7(t,e,n){var i,r;return(r=jft(t.b,e))&&(i=YP(_mt(vZ(t,r),""),26))?Mft(t,i,e,n):null}function d7(t,e){var n,i;for(i=new zI(t);i.e!=i.i.gc();)if(n=YP(ant(i),138),JS(e)===JS(n))return!0;return!1}function g7(t,e,n){var i;if(e>(i=t.gc()))throw ow(new wN(e,i));if(t.hi()&&t.Hc(n))throw ow(new Ym(gPt));t.Xh(e,n)}function p7(t,e){var n;if(EI(n=Kdt(t,e),322))return YP(n,34);throw ow(new Ym(fNt+e+"' is not a valid attribute"))}function b7(t){var e,n,i;for(e=new Jb,i=new gd(t.b);i.ae?1:t==e?0==t?C7(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function S7(t,e,n){var i,r;return t.ej()?(r=t.fj(),i=Glt(t,e,n),t.$i(t.Zi(7,u7(n),i,e,r)),i):Glt(t,e,n)}function A7(t,e){var n,i,r;null==t.d?(++t.e,--t.f):(r=e.cd(),function(t,e,n){++t.e,--t.f,YP(t.d[e].$c(n),133).dd()}(t,i=((n=e.Sh())&Ykt)%t.d.length,Fft(t,i,n,r)))}function M7(t,e){var n;n=0!=(t.Bb&MNt),e?t.Bb|=MNt:t.Bb&=-1025,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,10,n,e))}function I7(t,e){var n;n=0!=(t.Bb&XEt),e?t.Bb|=XEt:t.Bb&=-4097,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,12,n,e))}function L7(t,e){var n;n=0!=(t.Bb&OBt),e?t.Bb|=OBt:t.Bb&=-8193,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,15,n,e))}function O7(t,e){var n;n=0!=(t.Bb&DBt),e?t.Bb|=DBt:t.Bb&=-2049,4&t.Db&&!(1&t.Db)&&O3(t,new EX(t,1,11,n,e))}function D7(t){var e,n;for(n=Gft(QJ(t)).Kc();n.Ob();)if(lwt(t,e=sD(n.Pb())))return uW((dE(),qae),e);return null}function N7(t,e,n){var i;if(t.c)_st(t.c,e,n);else for(i=new gd(t.b);i.a>10)+ZEt&oEt,e[1]=56320+(1023&t)&oEt,Htt(e,0,e.length)}function z7(t){var e;return(e=YP(Sst(t,(hkt(),ZJt)),103))==(X8(),Wee)?Qm(oD(Sst(t,MJt)))>=1?Kee:Gee:e}function q7(t){if(t.c)q7(t.c);else if(t.d)throw ow(new Km("Stream already terminated, can't be modified or used"))}function H7(t){var e;return 64&t.Db?Nft(t):((e=new vL(Nft(t))).a+=" (identifier: ",fA(e,t.k),e.a+=")",e.a)}function U7(t,e,n){var i;return Lx(),k1(i=new ic,e),_1(i,n),t&&aQ((!t.a&&(t.a=new qI($re,t,5)),t.a),i),i}function G7(t,e,n,i){var r,a;return dz(i),dz(n),null==(a=null==(r=t.xc(e))?n:__(YP(r,15),YP(n,14)))?t.Bc(e):t.zc(e,a),a}function Y7(t){var e,n,i,r;return W0(n=new tP(e=YP(Sx((r=(i=t.gm).f)==Jjt?i:r),9),YP(QD(e,e.length),9),0),t),n}function K7(t,e,n){var i,r;for(r=t.a.ec().Kc();r.Ob();)if(i=YP(r.Pb(),10),d4(n,YP(mF(e,i.p),14)))return i;return null}function W7(t,e){var n;return VA(t)&&VA(e)&&qEt<(n=t-e)&&n<$Et?n:C3(g4(VA(t)?q3(t):t,VA(e)?q3(e):e))}function X7(t,e){var n;return VA(t)&&VA(e)&&qEt<(n=t+e)&&n<$Et?n:C3(function(t,e){var n,i,r;return n=t.l+e.l,i=t.m+e.m+(n>>22),r=t.h+e.h+(i>>22),JM(n&BEt,i&BEt,r&FEt)}(VA(t)?q3(t):t,VA(e)?q3(e):e))}function V7(t,e){var n;return VA(t)&&VA(e)&&qEt<(n=t*e)&&n<$Et?n:C3(function(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m;return n=8191&t.l,i=t.l>>13|(15&t.m)<<9,r=t.m>>4&8191,a=t.m>>17|(255&t.h)<<5,o=(1048320&t.h)>>8,b=i*(s=8191&e.l),w=r*s,y=a*s,m=o*s,0!=(c=e.l>>13|(15&e.m)<<9)&&(b+=n*c,w+=i*c,y+=r*c,m+=a*c),0!=(u=e.m>>4&8191)&&(w+=n*u,y+=i*u,m+=r*u),0!=(l=e.m>>17|(255&e.h)<<5)&&(y+=n*l,m+=i*l),0!=(h=(1048320&e.h)>>8)&&(m+=n*h),d=((p=n*s)>>22)+(b>>9)+((262143&w)<<4)+((31&y)<<17),g=(w>>18)+(y>>5)+((4095&m)<<8),g+=(d+=(f=(p&BEt)+((511&b)<<13))>>22)>>22,JM(f&=BEt,d&=BEt,g&=FEt)}(VA(t)?q3(t):t,VA(e)?q3(e):e))}function Q7(t,e){var n;return t.i||blt(t),(n=YP(Rz(t.g,e),46))?new EG(t.j,YP(n.a,19).a,YP(n.b,19).a):(qq(),qq(),b$t)}function Z7(t,e,n){var i;return i=t.a.get(e),t.a.set(e,void 0===n?null:n),void 0===i?(++t.c,hH(t.b)):++t.d,i}function J7(){var t,n,i;Got(),i=R$t+++Date.now(),t=nU(e.Math.floor(i*wTt))&mTt,n=nU(i-t*yTt),this.a=1502^t,this.b=n^bTt}function t9(t){var e,n;for(e=new Jb,n=new gd(t.j);n.a>1&1431655765)>>2&858993459)+(858993459&t))>>4)+t&252645135,63&(t+=t>>8)+(t>>16)}function a9(t){var e,n,i;for(e=new zD(t.Hd().gc()),i=0,n=xQ(t.Hd().Kc());n.Ob();)zU(e,n.Pb(),u7(i++));return function(t){var e;switch(Dz(),t.c.length){case 0:return Xjt;case 1:return function(t,e){return Dz(),hit(t,e),new Tz(t,e)}((e=YP(glt(new gd(t)),42)).cd(),e.dd());default:return new mm(YP(Fet(t,HV(Vjt,L_t,42,t.c.length,0,1)),165))}}(e.a)}function o9(t,e){0==t.n.c.length&&QP(t.n,new lU(t.s,t.t,t.i)),QP(t.b,e),Eit(YP(mF(t.n,t.n.c.length-1),211),e),nyt(t,e)}function s9(t){return(t.c!=t.b.b||t.i!=t.g.b)&&(t.a.c=HV(Rjt,Zkt,1,0,5,1),v4(t.a,t.b),v4(t.a,t.g),t.c=t.b.b,t.i=t.g.b),t.a}function c9(t,e){var n,i;for(i=0,n=YP(e.Kb(t),20).Kc();n.Ob();)Vm(aD(Sst(YP(n.Pb(),17),(Tkt(),NVt))))||++i;return i}function u9(){u9=I,VVt=new eC(oAt,0),YVt=new eC("FIRST",1),KVt=new eC(jAt,2),WVt=new eC("LAST",3),XVt=new eC(RAt,4)}function l9(){l9=I,one=new QC(vCt,0),rne=new QC("POLYLINE",1),ine=new QC("ORTHOGONAL",2),ane=new QC("SPLINES",3)}function h9(){h9=I,o8t=new PC("ASPECT_RATIO_DRIVEN",0),s8t=new PC("MAX_SCALE_DRIVEN",1),a8t=new PC("AREA_DRIVEN",2)}function f9(){f9=I,X8t=new FC("P1_STRUCTURE",0),V8t=new FC("P2_PROCESSING_ORDER",1),Q8t=new FC("P3_EXECUTION",2)}function d9(){d9=I,u6t=new IC("OVERLAP_REMOVAL",0),s6t=new IC("COMPACTION",1),c6t=new IC("GRAPH_SIZE_CALCULATION",2)}function g9(t,n){return qM(),n0(W_t),e.Math.abs(t-n)<=W_t||t==n||isNaN(t)&&isNaN(n)?0:tn?1:GA(isNaN(t),isNaN(n))}function p9(t,e){var n,i;for(n=Wet(t,0);n.b!=n.d.c;){if((i=Zm(oD(kK(n))))==e)return;if(i>e){mY(n);break}}i$(n,e)}function b9(t,e){var n,i,r,a,o;if(n=e.f,Ret(t.c.d,n,e),null!=e.g)for(a=0,o=(r=e.g).length;a>>0).toString(16):t.toString()}function _9(t){var e;this.a=new tP(e=YP(t.e&&t.e(),9),YP(QD(e,e.length),9),0),this.b=HV(Rjt,Zkt,1,this.a.a.length,5,1)}function E9(t){var e,n,i;for(this.a=new iM,i=new gd(t);i.a=a)return n.c+i;return n.c+n.b.gc()}function M9(t,e){var n,i,r,a,o,s;for(i=0,n=0,o=0,s=(a=e).length;o0&&(i+=r,++n);return n>1&&(i+=t.d*(n-1)),i}function I9(t){var e,n,i;for((i=new Tv).a+="[",e=0,n=t.gc();ekSt,C=e.Math.abs(d.b-p.b)>kSt,(!i&&T&&C||i&&(T||C))&&DB(w.a,x)),_2(w.a,r),0==r.b?d=x:(xO(0!=r.b),d=YP(r.c.b.c,8)),o4(g,f,b),j2(a)==E&&(lz(E.i)!=a.a&&hut(b=new _x,lz(E.i),m),s5(w,HVt,b)),xct(g,w,m),h.a.zc(g,h);GU(w,k),UU(w,E)}for(l=h.a.ec().Kc();l.Ob();)GU(u=YP(l.Pb(),17),null),UU(u,null);Dct(n)}(n,Y2(r,1)),Dct(r)}function N9(t,e,n,i,r,a){this.a=t,this.c=e,this.b=n,this.f=i,this.d=r,this.e=a,this.c>0&&this.b>0&&CF(this.c,this.b,this.a)}function P9(t){J9(),this.c=IX(M4($v(l9t,1),Zkt,831,0,[t2t])),this.b=new tw,this.a=t,Iz(this.b,e2t,1),qJ(n2t,new Kp(this))}function B9(t,e){var n;return t.d?kR(t.b,e)?YP(B$(t.b,e),51):(n=e.Kf(),Iz(t.b,e,n),n):e.Kf()}function F9(t,e){var n;return JS(t)===JS(e)||!!EI(e,91)&&(n=YP(e,91),t.e==n.e&&t.d==n.d&&function(t,e){var n;for(n=t.d-1;n>=0&&t.a[n]===e[n];n--);return n<0}(t,n.a))}function j9(t){switch(_xt(),t.g){case 4:return bie;case 1:return pie;case 3:return Die;case 2:return Pie;default:return Nie}}function R9(t,e){switch(e){case 3:return 0!=t.f;case 4:return 0!=t.g;case 5:return 0!=t.i;case 6:return 0!=t.j}return R3(t,e)}function $9(t){switch(t.g){case 0:return new Ho;case 1:return new Yo;default:throw ow(new Ym(PAt+(null!=t.f?t.f:""+t.g)))}}function z9(t){switch(t.g){case 0:return new rm;case 1:return new My;default:throw ow(new Ym(UOt+(null!=t.f?t.f:""+t.g)))}}function q9(t){var e,n,i;return(n=t.zg())?EI(e=t.Ug(),160)&&null!=(i=q9(YP(e,160)))?i+"."+n:n:null}function H9(t,e,n){var i,r;for(r=t.Kc();r.Ob();)if(i=r.Pb(),JS(e)===JS(i)||null!=e&&U8(e,i))return n&&r.Qb(),!0;return!1}function U9(t,e,n){var i,r;if(++t.j,n.dc())return!1;for(r=n.Kc();r.Ob();)i=r.Pb(),t.Hi(e,t.oi(e,i)),++e;return!0}function G9(t,e){var n;if(e){for(n=0;nc.d&&(h=c.d+c.a+l));i.c.d=h,n.a.zc(i,n),u=e.Math.max(u,i.c.d+i.c.a)}return u}(t),k_(new xF(null,new AG(t.d,16)),new Xd(t)),n}function W9(t){var e;return 64&t.Db?P8(t):((e=new vL(P8(t))).a+=" (instanceClassName: ",fA(e,t.D),e.a+=")",e.a)}function X9(t,e){var n,i,r;if(null==t.i&&ryt(t),n=t.i,-1!=(i=e.aj()))for(r=n.length;i>1,this.k=n-1>>1}function att(t,e,n){var i,r;for(i=jG(n,nTt),r=0;0!=p8(i,0)&&r0&&(e.lengtht.i&&L$(e,t.i,null),e}function ctt(t,e,n){var i,r,a;return t.ej()?(i=t.i,a=t.fj(),z8(t,i,e),r=t.Zi(3,null,e,i,a),n?n.Ei(r):n=r):z8(t,t.i,e),n}function utt(t){var e;return kD(),e=new oM(YP(t.e.We((Ekt(),Kte)),8)),t.B.Hc((Gbt(),Qie))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ltt(t){return Fnt(),(t.q?t.q:(qq(),qq(),w$t))._b((hkt(),H1t))?YP(Sst(t,H1t),197):YP(Sst(lz(t),U1t),197)}function htt(t,e){var n,i;return i=null,TO(t,(hkt(),L0t))&&(n=YP(Sst(t,L0t),94)).Xe(e)&&(i=n.We(e)),null==i&&(i=Sst(lz(t),e)),i}function ftt(t,e){var n,i,r;return!!EI(e,42)&&(i=(n=YP(e,42)).cd(),cz(r=M8(t.Rc(),i),n.dd())&&(null!=r||t.Rc()._b(i)))}function dtt(t,e){var n;return t.f>0&&(t.qj(),-1!=Fft(t,((n=null==e?0:q5(e))&Ykt)%t.d.length,n,e))}function gtt(t,e){var n,i;return t.f>0&&(t.qj(),n=Zlt(t,((i=null==e?0:q5(e))&Ykt)%t.d.length,i,e))?n.dd():null}function ptt(t,e){var n,i,r,a;for(a=hgt(t.e.Tg(),e),n=YP(t.g,119),r=0;r>5,e&=31,r=t.d+n+(0==e?0:1),function(t,e,n,i){var r,a,o;if(0==i)rmt(e,0,t,n,t.length-n);else for(o=32-i,t[t.length-1]=0,a=t.length-1;a>n;a--)t[a]|=e[a-n-1]>>>o,t[a-1]=e[a-n-1]<=0?a=a.a[1]:(r=a,a=a.a[0])}return r}function Ltt(t,e,n){var i,r,a;for(r=null,a=t.b;a;){if(i=t.a.ue(e,a.d),n&&0==i)return a;i<=0?a=a.a[0]:(r=a,a=a.a[1])}return r}function Ott(t,e,n,i){var r,a,o;return r=!1,function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k;return f=t.c[e],d=t.c[n],!((g=YP(Sst(f,(Tkt(),hVt)),15))&&0!=g.gc()&&g.Hc(d)||(p=f.k!=(uct(),NGt)&&d.k!=NGt,b=YP(Sst(f,lVt),10),w=YP(Sst(d,lVt),10),y=b!=w,m=!!b&&b!=f||!!w&&w!=d,v=_it(f,(_xt(),bie)),x=_it(d,Die),m|=_it(f,Die)||_it(d,bie),k=m&&y||v||x,p&&k)||f.k==(uct(),BGt)&&d.k==PGt||d.k==(uct(),BGt)&&f.k==PGt)&&(l=t.c[e],a=t.c[n],r=Cat(t.e,l,a,(_xt(),Pie)),c=Cat(t.i,l,a,pie),function(t,e,n){t.d=0,t.b=0,e.k==(uct(),BGt)&&n.k==BGt&&YP(Sst(e,(Tkt(),xVt)),10)==YP(Sst(n,xVt),10)&&(oZ(e).j==(_xt(),bie)?Uft(t,e,n):Uft(t,n,e)),e.k==BGt&&n.k==NGt?oZ(e).j==(_xt(),bie)?t.d=1:t.b=1:n.k==BGt&&e.k==NGt&&(oZ(n).j==(_xt(),bie)?t.b=1:t.d=1),function(t,e,n){e.k==(uct(),PGt)&&n.k==NGt&&(t.d=F8(e,(_xt(),Die)),t.b=F8(e,bie)),n.k==PGt&&e.k==NGt&&(t.d=F8(n,(_xt(),bie)),t.b=F8(n,Die))}(t,e,n)}(t.f,l,a),u=g6(t.b,l,a)+YP(r.a,19).a+YP(c.a,19).a+t.f.d,s=g6(t.b,a,l)+YP(r.b,19).a+YP(c.b,19).a+t.f.b,t.a&&(h=YP(Sst(l,xVt),11),o=YP(Sst(a,xVt),11),u+=YP((i=Lrt(t.g,h,o)).a,19).a,s+=YP(i.b,19).a),u>s)}(t.f,n,i)&&(function(t,e,n){var i,r;kst(t.e,e,n,(_xt(),Pie)),kst(t.i,e,n,pie),t.a&&(r=YP(Sst(e,(Tkt(),xVt)),11),i=YP(Sst(n,xVt),11),XG(t.g,r,i))}(t.f,t.a[e][n],t.a[e][i]),o=(a=t.a[e])[i],a[i]=a[n],a[n]=o,r=!0),r}function Dtt(t,e,n,i,r){var a,o,s;for(o=r;e.b!=e.c;)a=YP(SR(e),10),s=YP(Q7(a,i).Xb(0),11),t.d[s.p]=o++,n.c[n.c.length]=s;return o}function Ntt(t,n,i){var r,a,o,s,c;return s=t.k,c=n.k,a=oD(htt(t,r=i[s.g][c.g])),o=oD(htt(n,r)),e.Math.max((dz(a),a),(dz(o),o))}function Ptt(t,e,n){var i,r,a;for(r=YP(B$(t.b,n),177),i=0,a=new gd(e.j);a.an?1:GA(isNaN(t),isNaN(n)))>0}function $tt(t,n){return qM(),qM(),n0(W_t),(e.Math.abs(t-n)<=W_t||t==n||isNaN(t)&&isNaN(n)?0:tn?1:GA(isNaN(t),isNaN(n)))<0}function ztt(t,n){return qM(),qM(),n0(W_t),(e.Math.abs(t-n)<=W_t||t==n||isNaN(t)&&isNaN(n)?0:tn?1:GA(isNaN(t),isNaN(n)))<=0}function qtt(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var i=e[n++];ntTt)return n.fh();if((i=n.Zg())||n==t)break}return i}function Jtt(t){return DU(),EI(t,156)?YP(B$(pae,C$t),288).vg(t):kR(pae,H5(t))?YP(B$(pae,H5(t)),288).vg(t):null}function tet(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw ow(new Ym("Input edge is not connected to the input port."))}function eet(t,e){return t.e>e.e?1:t.ee.d?t.e:t.d=48&&t<48+e.Math.min(10,10)?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function iet(t,e){var n;return JS(e)===JS(t)||!(!EI(e,21)||(n=YP(e,21),n.gc()!=t.gc()))&&t.Ic(n)}function ret(t,e){var n,i;for(SG(e,t.length),n=t.charCodeAt(e),i=e+1;i=2*e&&QP(n,new AP(o[i-1]+e,o[i]-e));return n}(n,i),k_(BJ(new xF(null,new AG(function(t){var e,n,i,r,a,o,s;for(a=new iM,n=new gd(t);n.a2&&s.e.b+s.j.b<=2&&(r=s,i=o),a.a.zc(r,a),r.q=i);return a}(e),1)),new ko),new pq(t,n,r,i)))}function cet(t,e,n){var i;t.Db&e?null==n?function(t,e){var n,i,r,a,o,s,c;if(1==(i=r9(254&t.Db)))t.Eb=null;else if(a=r1(t.Eb),2==i)r=Uit(t,e),t.Eb=a[0==r?1:0];else{for(o=HV(Rjt,Zkt,1,i-1,5,1),n=2,s=0,c=0;n<=128;n<<=1)n==e?++s:t.Db&n&&(o[c++]=a[s++]);t.Eb=o}t.Db&=~e}(t,e):-1==(i=Uit(t,e))?t.Eb=n:L$(r1(t.Eb),i,n):null!=n&&function(t,e,n){var i,r,a,o,s,c;if(0==(r=r9(254&t.Db)))t.Eb=n;else{if(1==r)o=HV(Rjt,Zkt,1,2,5,1),0==Uit(t,e)?(o[0]=n,o[1]=t.Eb):(o[0]=t.Eb,o[1]=n);else for(o=HV(Rjt,Zkt,1,r+1,5,1),a=r1(t.Eb),i=2,s=0,c=0;i<=128;i<<=1)i==e?o[c++]=n:t.Db&i&&(o[c++]=a[s++]);t.Eb=o}t.Db|=e}(t,e,n)}function uet(t){var e;return 32&t.Db||0!=(e=d$(YP(B3(t,16),26)||t.zh())-d$(t.zh()))&&cet(t,32,HV(Rjt,Zkt,1,e,5,1)),t}function het(t){var e,n;for(e=new gd(t.g);e.a0&&p8(t,128)<0?(e=HF(t)+128,!(n=(cF(),$Rt)[e])&&(n=$Rt[e]=new nd(t)),n):new nd(t)}function bet(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=sD(gtt((!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),n.b),uPt)))?i:e.ne()}function wet(t,e){var n,i;for(oG(),i=new Sj(cL(t9(t).a.Kc(),new l));Ght(i);)if((n=YP(pX(i),17)).d.i==e||n.c.i==e)return n;return null}function yet(t,e,n){this.c=t,this.f=new Jb,this.e=new _x,this.j=new hF,this.n=new hF,this.b=e,this.g=new gq(e.c,e.d,e.b,e.a),this.a=n}function met(t){var e,n,i,r;for(this.a=new iM,this.d=new Yw,this.e=0,i=0,r=(n=t).length;i_&&(p.c=_-p.b),QP(s.d,new oj(p,x7(s,p))),m=n==bie?e.Math.max(m,b.b+l.b.rf().b):e.Math.min(m,b.b));for(m+=n==bie?t.t:-t.t,(v=K9((s.e=m,s)))>0&&(YP(Rz(t.b,n),124).a.b=v),h=d.Kc();h.Ob();)(l=YP(h.Pb(),111)).c&&!(l.c.d.c.length<=0)&&((p=l.c.i).c-=l.e.a,p.d-=l.e.b)}else bxt(t,n)}(t,n):bxt(t,n):t.u.Hc(hie)&&(i?function(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y;if((h=YP(YP(DX(t.r,n),21),84)).gc()<=2||n==(_xt(),pie)||n==(_xt(),Pie))jxt(t,n);else{for(b=t.u.Hc((Tlt(),fie)),i=n==(_xt(),bie)?(V3(),Uqt):(V3(),zqt),y=n==bie?(EZ(),lqt):(EZ(),fqt),r=Yv(TP(i),t.s),w=n==bie?KEt:WEt,l=h.Kc();l.Ob();)(c=YP(l.Pb(),111)).c&&!(c.c.d.c.length<=0)&&(p=c.b.rf(),g=c.e,(d=(f=c.c).i).b=(o=f.n,f.e.a+o.b+o.c),d.a=(s=f.n,f.e.b+s.d+s.a),b?(d.c=g.a-(a=f.n,f.e.a+a.b+a.c)-t.s,b=!1):d.c=g.a+p.a+t.s,IH(y,wCt),f.f=y,oQ(f,(PQ(),oqt)),QP(r.d,new oj(d,x7(r,d))),w=n==bie?e.Math.min(w,g.b):e.Math.max(w,g.b+c.b.rf().b));for(w+=n==bie?-t.t:t.t,K9((r.e=w,r)),u=h.Kc();u.Ob();)(c=YP(u.Pb(),111)).c&&!(c.c.d.c.length<=0)&&((d=c.c.i).c-=c.e.a,d.d-=c.e.b)}}(t,n):jxt(t,n))}function Iet(t,e){var n,i;++t.j,null!=e&&function(t,e){var n,i,r;if(JS(t)===JS(e))return!0;if(null==t||null==e||t.length!=e.length)return!1;for(n=0;n=(r=t.length))return r;for(e=e>0?e:0;ei&&L$(e,i,null),e}function jet(t,e){var n,i;for(i=t.a.length,e.lengthi&&L$(e,i,null),e}function Ret(t,e,n){var i,r,a;return(r=YP(B$(t.e,e),387))?(a=YD(r,n),TI(t,r),a):(i=new iB(t,e,n),Iz(t.e,e,i),ZH(i),null)}function $et(t){var e;if(null==t)return null;if(null==(e=function(t){var e,n,i,r,a,o,s;if(wpt(),null==t||(r=t.length)%2!=0)return null;for(e=MZ(t),n=HV(zce,CNt,25,a=r/2|0,15,1),i=0;i>24}return n}(Uyt(t,!0))))throw ow(new sv("Invalid hexBinary value: '"+t+"'"));return e}function zet(t){return upt(),p8(t,0)<0?0!=p8(t,-1)?new fot(-1,iZ(t)):a$t:p8(t,10)<=0?s$t[HF(t)]:new fot(1,t)}function qet(){return Mkt(),M4($v($qt,1),q_t,159,0,[Nqt,Dqt,Pqt,Tqt,Eqt,Cqt,Mqt,Aqt,Sqt,Oqt,Lqt,Iqt,kqt,xqt,_qt,mqt,yqt,vqt,bqt,pqt,wqt,Bqt])}function Het(t){var e;this.d=new Jb,this.j=new _x,this.g=new _x,e=t.g.b,this.f=YP(Sst(lz(e),(hkt(),ZJt)),103),this.e=Qm(oD(tnt(e,O0t)))}function Uet(t){this.b=new Jb,this.e=new Jb,this.d=t,this.a=!Zx(aq(new xF(null,new XR(new $X(t.b))),new Cd(new Hr))).sd((j_(),szt))}function Get(){Get=I,w9t=new qC("PARENTS",0),b9t=new qC("NODES",1),g9t=new qC("EDGES",2),y9t=new qC("PORTS",3),p9t=new qC("LABELS",4)}function Yet(){Yet=I,Wne=new nS("DISTRIBUTED",0),Vne=new nS("JUSTIFIED",1),Yne=new nS("BEGIN",2),Kne=new nS(fCt,3),Xne=new nS("END",4)}function Ket(t){switch(t.g){case 1:return X8(),Xee;case 4:return X8(),Yee;case 2:return X8(),Kee;case 3:return X8(),Gee}return X8(),Wee}function Wet(t,e){var n,i;if(QU(e,t.b),e>=t.b>>1)for(i=t.c,n=t.b;n>e;--n)i=i.b;else for(i=t.a.a,n=0;n=64&&e<128&&(r=RG(r,Rj(1,e-64)));return r}function tnt(t,e){var n,i;return i=null,TO(t,(Ekt(),Nee))&&(n=YP(Sst(t,Nee),94)).Xe(e)&&(i=n.We(e)),null==i&&lz(t)&&(i=Sst(lz(t),e)),i}function ent(t,e){var n,i,r;(i=(r=e.d.i).k)!=(uct(),PGt)&&i!=LGt&&Ght(n=new Sj(cL(n9(r).a.Kc(),new l)))&&Iz(t.k,e,YP(pX(n),17))}function nnt(t,e){var n,i,r;return i=_J(t.Tg(),e),(n=e-t.Ah())<0?(r=t.Yg(i))>=0?t.lh(r):zlt(t,i):n<0?zlt(t,i):YP(i,66).Nj().Sj(t,t.yh(),n)}function int(t){var e;if(EI(t.a,4)){if(null==(e=Jtt(t.a)))throw ow(new Km(yDt+t.b+"'. "+gDt+(rD(yae),yae.k)+pDt));return e}return t.a}function rnt(t){var e;if(null==t)return null;if(null==(e=function(t){var e,n,i,r,a,o,s,c,u,l,h,f,d,g,p,b;if(Kwt(),null==t||(g=function(t){var e,n,i;for(i=0,n=t.length,e=0;e>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24}return _k(o=a[l++])&&_k(s=a[l++])?(e=Jse[o],n=Jse[s],c=a[l++],u=a[l++],-1==Jse[c]||-1==Jse[u]?61==c&&61==u?15&n?null:(rmt(h,0,b=HV(zce,CNt,25,3*d+1,15,1),0,3*d),b[f]=(e<<2|n>>4)<<24>>24,b):61!=c&&61==u?3&(i=Jse[c])?null:(rmt(h,0,b=HV(zce,CNt,25,3*d+2,15,1),0,3*d),b[f++]=(e<<2|n>>4)<<24>>24,b[f]=((15&n)<<4|i>>2&15)<<24>>24,b):null:(i=Jse[c],r=Jse[u],h[f++]=(e<<2|n>>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24,h)):null}(Uyt(t,!0))))throw ow(new sv("Invalid base64Binary value: '"+t+"'"));return e}function ant(t){var e;try{return e=t.i.Xb(t.e),t.mj(),t.g=t.e++,e}catch(e){throw EI(e=b4(e),73)?(t.mj(),ow(new Nw)):ow(e)}}function ont(t){var e;try{return e=t.c.ki(t.e),t.mj(),t.g=t.e++,e}catch(e){throw EI(e=b4(e),73)?(t.mj(),ow(new Nw)):ow(e)}}function snt(){snt=I,Ekt(),MHt=Iee,_Ht=Cte,yHt=hte,EHt=Jte,fat(),SHt=Lzt,CHt=Mzt,AHt=Dzt,THt=Azt,E6(),vHt=gHt,mHt=dHt,xHt=bHt,kHt=wHt}function cnt(t){switch(G_(),this.c=new Jb,this.d=t,t.g){case 0:case 2:this.a=Lz(bGt),this.b=KEt;break;case 3:case 1:this.a=bGt,this.b=WEt}}function unt(t,e,n){var i;if(t.c)S1(t.c,t.c.i+e),A1(t.c,t.c.j+n);else for(i=new gd(t.b);i.a0&&(QP(t.b,new ZP(e.a,n)),0<(i=e.a.length)?e.a=e.a.substr(0,0):0>i&&(e.a+=_I(HV(Fce,rEt,25,-i,15,1))))}function hnt(t,e){var n,i,r;for(n=t.o,r=YP(YP(DX(t.r,e),21),84).Kc();r.Ob();)(i=YP(r.Pb(),111)).e.a=grt(i,n.a),i.e.b=n.b*Qm(oD(i.b.We(Rqt)))}function fnt(t,e){var n;return n=YP(Sst(t,(hkt(),E1t)),74),vI(e,EGt)?n?Bq(n):(n=new Iy,s5(t,E1t,n)):n&&s5(t,E1t,null),n}function dnt(t){var e;return(e=new Sv).a+="n",t.k!=(uct(),PGt)&&pA(pA((e.a+="(",e),lO(t.k).toLowerCase()),")"),pA((e.a+="_",e),prt(t)),e.a}function gnt(t,e,n,i){var r;return n>=0?t.hh(e,n,i):(t.eh()&&(i=(r=t.Vg())>=0?t.Qg(i):t.eh().ih(t,-1-r,null,i)),t.Sg(e,n,i))}function pnt(t,e){switch(e){case 7:return!t.e&&(t.e=new CN(Ure,t,7,4)),void Fmt(t.e);case 8:return!t.d&&(t.d=new CN(Ure,t,8,5)),void Fmt(t.d)}Z9(t,e)}function bnt(t,e){var n;n=t.Zc(e);try{return n.Pb()}catch(t){throw EI(t=b4(t),109)?ow(new jm("Can't get element "+e)):ow(t)}}function wnt(t,e){this.e=t,e=0&&(n.d=t.t);break;case 3:t.t>=0&&(n.a=t.t)}t.C&&(n.b=t.C.b,n.c=t.C.c)}function xnt(){xnt=I,Wqt=new JE(MCt,0),Kqt=new JE(ICt,1),Xqt=new JE(LCt,2),Vqt=new JE(OCt,3),Wqt.a=!1,Kqt.a=!0,Xqt.a=!1,Vqt.a=!0}function knt(){knt=I,oHt=new ZE(MCt,0),aHt=new ZE(ICt,1),sHt=new ZE(LCt,2),cHt=new ZE(OCt,3),oHt.a=!1,aHt.a=!0,sHt.a=!1,cHt.a=!0}function _nt(t){var e,n,i;if(n=0,0==(i=Jgt(t)).c.length)return 1;for(e=new gd(i);e.an.b)return!0}return!1}function Tnt(t,e){return nA(t)?!!$kt[e]:t.hm?!!t.hm[e]:eA(t)?!!Rkt[e]:!!tA(t)&&!!jkt[e]}function Cnt(t,e,n){return null==n?(!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),Xtt(t.o,e)):(!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),Iat(t.o,e,n)),t}function Snt(t,e,n,i){var r,a,o;return a=_J(t.Tg(),e),(r=e-t.Ah())<0?(o=t.Yg(a))>=0?t._g(o,n,!0):Qlt(t,a,n):YP(a,66).Nj().Pj(t,t.yh(),r,n,i)}function Ant(t,e,n,i){var r,a;n.mh(e)&&(vE(),jZ(e)?function(t,e){var n,i,r,a;for(i=0,r=e.gc();i=0)return i;if(t.Fk())for(n=0;n=(r=t.gc()))throw ow(new wN(e,r));if(t.hi()&&(i=t.Xc(n))>=0&&i!=e)throw ow(new Ym(gPt));return t.mi(e,n)}function Nnt(t,e){if(this.a=YP(v$(t),245),this.b=YP(v$(e),245),t.vd(e)>0||t==(hm(),Yjt)||e==(lm(),Kjt))throw ow(new Ym("Invalid range: "+PK(t,e)))}function Pnt(t){var e,n;for(this.b=new Jb,this.c=t,this.a=!1,n=new gd(t.a);n.a0),(e&-e)==e)return nU(e*Hft(t,31)*4.656612873077393e-10);do{i=(n=Hft(t,31))%e}while(n-i+(e-1)<0);return nU(i)}function qnt(t){var e,n,i;return sP(),null!=(i=lzt[n=":"+t])?nU((dz(i),i)):(e=null==(i=uzt[n])?function(t){var e,n,i,r;for(e=0,r=(i=t.length)-4,n=0;n0)for(i=new rP(YP(DX(t.a,a),21)),qq(),KM(i,new ag(e)),r=new YY(a.b,0);r.b1&&(r=function(t,e){var n,i,r;for(n=FL(new Zw,t),r=new gd(e);r.a(c=null==t.d?0:t.d.length)){for(l=t.d,t.d=HV(dae,dBt,63,2*c+4,0,1),a=0;aYLt;){for(o=n,s=0;e.Math.abs(n-o)0),a.a.Xb(a.c=--a.b),Jwt(t,t.b-s,o,r,a),xO(a.b0),r.a.Xb(r.c=--r.b)}if(!t.d)for(i=0;i102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function hit(t,e){if(null==t)throw ow(new Xm("null key in entry: null="+e));if(null==e)throw ow(new Xm("null value in entry: "+t+"=null"))}function fit(t,n){var i;return i=M4($v(qce,1),JEt,25,15,[U6(t.a[0],n),U6(t.a[1],n),U6(t.a[2],n)]),t.d&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function dit(t,n){var i;return i=M4($v(qce,1),JEt,25,15,[G6(t.a[0],n),G6(t.a[1],n),G6(t.a[2],n)]),t.d&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function git(){git=I,SWt=new $T("GREEDY",0),CWt=new $T(ZAt,1),MWt=new $T(QAt,2),IWt=new $T("MODEL_ORDER",3),AWt=new $T("GREEDY_MODEL_ORDER",4)}function pit(t,e){var n,i,r;for(t.b[e.g]=1,i=Wet(e.d,0);i.b!=i.d.c;)r=(n=YP(kK(i),188)).c,1==t.b[r.g]?DB(t.a,n):2==t.b[r.g]?t.b[r.g]=1:pit(t,r)}function bit(t,e,n){var i,r,a,o;for(o=t.r+e,t.r+=e,t.d+=n,i=n/t.n.c.length,r=0,a=new gd(t.n);a.a0||!o&&0==s))}(t,n,i.d,r,a,o,s)&&e.Fc(i),(u=i.a[1])&&Ait(t,e,n,u,r,a,o,s))}function Mit(t,e,n){try{return aA(H0(t,e,n),1)}catch(i){throw EI(i=b4(i),320)?ow(new jm(PCt+t.o+"*"+t.p+BCt+e+Vkt+n+FCt)):ow(i)}}function Iit(t,e,n){try{return aA(H0(t,e,n),0)}catch(i){throw EI(i=b4(i),320)?ow(new jm(PCt+t.o+"*"+t.p+BCt+e+Vkt+n+FCt)):ow(i)}}function Lit(t,e,n){try{return aA(H0(t,e,n),2)}catch(i){throw EI(i=b4(i),320)?ow(new jm(PCt+t.o+"*"+t.p+BCt+e+Vkt+n+FCt)):ow(i)}}function Oit(t,e){if(-1==t.g)throw ow(new Mw);t.mj();try{t.d._c(t.g,e),t.f=t.d.j}catch(t){throw EI(t=b4(t),73)?ow(new Ow):ow(t)}}function Dit(t,n,i){tst(i,"Linear segments node placement",1),t.b=YP(Sst(n,(Tkt(),FVt)),304),function(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A,M,I,L,O;for(I=new Jb,g=new gd(n.b);g.a=0){for(c=null,s=new YY(l.a,u+1);s.b0&&u[r]&&(p=sI(t.b,u[r],a)),b=e.Math.max(b,a.c.c.b+p);for(o=new gd(h.e);o.ax)?(u=2,s=Ykt):0==u?(u=1,s=_):(u=0,s=_):(d=_>=s||s-_0?(h=YP(mF(f.c.a,o-1),10),E=sI(t.b,f,h),b=f.n.b-f.d.d-(h.n.b+h.o.b+h.d.a+E)):b=f.n.b-f.d.d,u=e.Math.min(b,u),oa&&L$(e,a,null),e}function Pit(t,e){var n,i,r;return n=e.cd(),r=e.dd(),i=t.xc(n),!(!(JS(r)===JS(i)||null!=r&&U8(r,i))||null==i&&!t._b(n))}function Bit(t,e,n,i){var r,a;this.a=e,this.c=i,function(t,e){t.b=e}(this,new YC(-(r=t.a).c,-r.d)),gN(this.b,n),a=i/2,e.a?MO(this.b,0,a):MO(this.b,a,0),QP(t.c,this)}function Fit(){Fit=I,V6t=new DC(oAt,0),W6t=new DC(JAt,1),X6t=new DC("EDGE_LENGTH_BY_POSITION",2),K6t=new DC("CROSSING_MINIMIZATION_BY_POSITION",3)}function jit(t,e){var n,i;if(n=YP(l1(t.g,e),33))return n;if(i=YP(l1(t.j,e),118))return i;throw ow(new ov("Referenced shape does not exist: "+e))}function Rit(t,e){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ow(new Ym("Node 'one' must be either source or target of edge 'edge'."))}function $it(t,e){if(t.c.i==e)return t.d.i;if(t.d.i==e)return t.c.i;throw ow(new Ym("Node "+e+" is neither source nor target of edge "+t))}function zit(t,e){var n;switch(e.g){case 2:case 4:n=t.a,t.c.d.n.b0&&(c+=r),u[l]=o,o+=s*(c+i)}function Hit(t){var e,n,i;for(i=t.f,t.n=HV(qce,JEt,25,i,15,1),t.d=HV(qce,JEt,25,i,15,1),e=0;e0?t.c:0),++a;t.b=r,t.d=o}function Zit(t,n){var i;return i=M4($v(qce,1),JEt,25,15,[$nt(t,(YJ(),Qzt),n),$nt(t,Zzt,n),$nt(t,Jzt,n)]),t.f&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function Jit(t,e,n){try{ebt(t,e+t.j,n+t.k,!1,!0)}catch(t){throw EI(t=b4(t),73)?ow(new jm(t.g+jCt+e+Vkt+n+").")):ow(t)}}function trt(t,e,n){try{ebt(t,e+t.j,n+t.k,!0,!1)}catch(t){throw EI(t=b4(t),73)?ow(new jm(t.g+jCt+e+Vkt+n+").")):ow(t)}}function ert(t){var e;TO(t,(hkt(),j1t))&&((e=YP(Sst(t,j1t),21)).Hc((mft(),Bne))?(e.Mc(Bne),e.Fc(jne)):e.Hc(jne)&&(e.Mc(jne),e.Fc(Bne)))}function nrt(t){var e;TO(t,(hkt(),j1t))&&((e=YP(Sst(t,j1t),21)).Hc((mft(),Hne))?(e.Mc(Hne),e.Fc(zne)):e.Hc(zne)&&(e.Mc(zne),e.Fc(Hne)))}function irt(t,e,n,i){var r,a;for(r=e;r0&&(a.b+=n),a}function crt(t,n){var i,r,a;for(a=new _x,r=t.Kc();r.Ob();)ubt(i=YP(r.Pb(),37),0,a.b),a.b+=i.f.b+n,a.a=e.Math.max(a.a,i.f.a);return a.a>0&&(a.a+=n),a}function urt(t){var n,i,r;for(r=Ykt,i=new gd(t.a);i.a>16==6?t.Cb.ih(t,5,Xre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function drt(t){var n,i,r;t.b==t.c&&(r=t.a.length,i=b5(e.Math.max(8,r))<<1,0!=t.b?(K0(t,n=QD(t.a,i),r),t.a=n,t.b=0):zw(t.a,i),t.c=r)}function grt(t,e){var n;return(n=t.b).Xe((Ekt(),fee))?n.Hf()==(_xt(),Pie)?-n.rf().a-Qm(oD(n.We(fee))):e+Qm(oD(n.We(fee))):n.Hf()==(_xt(),Pie)?-n.rf().a:e}function prt(t){return 0!=t.b.c.length&&YP(mF(t.b,0),70).a?YP(mF(t.b,0),70).a:_q(t)??""+(t.c?rZ(t.c.a,t,0):-1)}function brt(t){return 0!=t.f.c.length&&YP(mF(t.f,0),70).a?YP(mF(t.f,0),70).a:_q(t)??""+(t.i?rZ(t.i.j,t,0):-1)}function wrt(t,e){var n,i;if(e<0||e>=t.gc())return null;for(n=e;n0?t.c:0),a=e.Math.max(a,n.d),++r;t.e=o,t.b=a}function vrt(t,e,n,i){return 0==e?i?(!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),t.o):(!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),$V(t.o)):Snt(t,e,n,i)}function xrt(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e>22),r+=i>>22,r<0)||(t.l=n&BEt,t.m=i&BEt,t.h=r&FEt,0))}function Ert(t,e,n){var i,r;return t8(r=new qy,e),w2(r,n),aQ((!t.c&&(t.c=new gR(noe,t,12,10)),t.c),r),D1(i=r,0),N1(i,1),o7(i,!0),i7(i,!0),i}function Trt(t,e){var n,i;if(e>=t.i)throw ow(new BA(e,t.i));return++t.j,n=t.g[e],(i=t.i-e-1)>0&&rmt(t.g,e+1,t.g,e,i),L$(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Crt(t,e){var n;return t.Db>>16==17?t.Cb.ih(t,21,Wae,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Srt(t){var e,n,i,r,a;for(r=Ykt,a=null,i=new gd(t.d);i.an.a.c.length))throw ow(new Ym("index must be >= 0 and <= layer node count"));t.c&&eZ(t.c.a,t),t.c=n,n&&WF(n.a,e,t)}function jrt(t,e){var n,i,r;for(i=new Sj(cL(t9(t).a.Kc(),new l));Ght(i);)return n=YP(pX(i),17),new Fh(v$((r=YP(e.Kb(n),10)).n.b+r.o.b/2));return fm(),fm(),jjt}function Rrt(t,e){this.c=new tw,this.a=t,this.b=e,this.d=YP(Sst(t,(Tkt(),FVt)),304),JS(Sst(t,(hkt(),R1t)))===JS((JQ(),VWt))?this.e=new Ty:this.e=new Ey}function $rt(t,e){var n,i;return i=null,t.Xe((Ekt(),Nee))&&(n=YP(t.We(Nee),94)).Xe(e)&&(i=n.We(e)),null==i&&t.yf()&&(i=t.yf().We(e)),null==i&&(i=int(e)),i}function zrt(t,e){var n,i;n=t.Zc(e);try{return i=n.Pb(),n.Qb(),i}catch(t){throw EI(t=b4(t),109)?ow(new jm("Can't remove element "+e)):ow(t)}}function qrt(t,e){var n,i,r;for(dz(e),mO(e!=t),r=t.b.c.length,i=e.Kc();i.Ob();)n=i.Pb(),QP(t.b,dz(n));return r!=t.b.c.length&&(o6(t,0),!0)}function Hrt(){Hrt=I,Ekt(),SUt=Nte,new LM(xte,(mL(),!0)),IUt=Ute,LUt=Kte,OUt=Xte,MUt=qte,DUt=Zte,NUt=wee,Art(),CUt=xUt,EUt=yUt,TUt=vUt,AUt=kUt,_Ut=wUt}function Urt(t,e,n,i){var r,a,o;for(YU(e,YP(i.Xb(0),29)),o=i.bd(1,i.gc()),a=YP(n.Kb(e),20).Kc();a.Ob();)Urt(t,(r=YP(a.Pb(),17)).c.i==e?r.d.i:r.c.i,n,o)}function Grt(t){var e;return e=new tw,TO(t,(Tkt(),qVt))?YP(Sst(t,qVt),83):(k_(aq(new xF(null,new AG(t.j,16)),new tr),new Bg(e)),s5(t,qVt,e),e)}function Yrt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,6,Ure,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(ekt(),Cre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Krt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,1,zre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(ekt(),Are),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Wrt(t,e){var n;return t.Db>>16==9?t.Cb.ih(t,9,Qre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(ekt(),Ire),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Xrt(t,e){var n;return t.Db>>16==5?t.Cb.ih(t,9,Zae,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(Ikt(),goe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Vrt(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,0,Yre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(Ikt(),soe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Qrt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,6,Xre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(Ikt(),_oe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Zrt(){this.a=new hc,this.g=new Znt,this.j=new Znt,this.b=new tw,this.d=new Znt,this.i=new Znt,this.k=new tw,this.c=new tw,this.e=new tw,this.f=new tw}function Jrt(t,e,n){var i,r,a;for(n<0&&(n=0),a=t.i,r=n;rtTt)return tat(t,i);if(i==t)return!0}}return!1}function eat(t,n){var i,r,a;for(eZ(t.a,n),t.e-=n.r+(0==t.a.c.length?0:t.c),a=lOt,r=new gd(t.a);r.a>16==3?t.Cb.ih(t,12,Qre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(ekt(),Tre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function iat(t,e){var n;return t.Db>>16==11?t.Cb.ih(t,10,Qre,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(ekt(),Mre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function rat(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,11,Wae,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(Ikt(),xoe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function aat(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,12,eoe,e):(n=Xnt(YP(_J(YP(B3(t,16),26)||(Ikt(),Eoe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function oat(t){var e;return!(1&t.Bb)&&t.r&&t.r.kh()&&(e=YP(t.r,49),t.r=YP(x8(t,e),138),t.r!=e&&4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,9,8,e,t.r))),t.r}function sat(t,n,i){var r;return r=M4($v(qce,1),JEt,25,15,[bst(t,(YJ(),Qzt),n,i),bst(t,Zzt,n,i),bst(t,Jzt,n,i)]),t.f&&(r[0]=e.Math.max(r[0],r[2]),r[2]=r[0]),r}function cat(t,e){var n,i,r;if(0!=(r=function(t,e){var n,i,r;for(r=new hV(e.gc()),i=e.Kc();i.Ob();)(n=YP(i.Pb(),286)).c==n.f?Vct(t,n,n.c):Gct(t,n)||(r.c[r.c.length]=n);return r}(t,e)).c.length)for(KM(r,new ti),n=r.c.length,i=0;i>19)!=(s=e.h>>19)?s-o:(i=t.h)!=(a=e.h)?i-a:(n=t.m)!=(r=e.m)?n-r:t.l-e.l}function fat(){fat=I,Apt(),Dzt=new PA(nCt,Nzt=Hzt),iJ(),Lzt=new PA(iCt,Ozt=Czt),Xet(),Mzt=new PA(rCt,Izt=kzt),Azt=new PA(aCt,(mL(),!0))}function dat(t,e,n){var i,r;i=e*n,EI(t.g,145)?(r=vK(t)).f.d?r.f.a||(t.d.a+=i+xCt):(t.d.d-=i+xCt,t.d.a+=i+xCt):EI(t.g,10)&&(t.d.d-=i,t.d.a+=2*i)}function gat(t,n,i){var r,a,o,s,c;for(a=t[i.g],c=new gd(n.d);c.a0?t.g:0),++i;n.b=r,n.e=a}function bat(t){var e,n,i;if(i=t.b,p_(t.i,i.length)){for(n=2*i.length,t.b=HV(Zjt,j_t,317,n,0,1),t.c=HV(Zjt,j_t,317,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)dlt(t,e,e);++t.g}}function wat(t,e,n){var i;(i=e.c.i).k==(uct(),NGt)?(s5(t,(Tkt(),bVt),YP(Sst(i,bVt),11)),s5(t,wVt,YP(Sst(i,wVt),11))):(s5(t,(Tkt(),bVt),e.c),s5(t,wVt,n.d))}function yat(t,n,i){var r,a,o,s,c,u;return ipt(),s=n/2,o=i/2,c=1,u=1,(r=e.Math.abs(t.a))>s&&(c=s/r),(a=e.Math.abs(t.b))>o&&(u=o/a),DI(t,e.Math.min(c,u)),t}function mat(){i_.call(this),this.e=-1,this.a=!1,this.p=X_t,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=X_t}function vat(){vat=I,$Ut=pj(iF(iF(iF(new aK,(Ast(),KUt),(Skt(),SYt)),KUt,LYt),WUt,jYt),WUt,pYt),qUt=iF(iF(new aK,KUt,aYt),KUt,bYt),zUt=pj(new aK,WUt,yYt)}function xat(t,e){var n,i,r,a;for(a=new tw,e.e=null,e.f=null,i=new gd(e.i);i.a0)try{i=Jbt(e,X_t,Ykt)}catch(t){throw EI(t=b4(t),127)?ow(new dZ(t)):ow(t)}return!t.a&&(t.a=new Yb(t)),i<(n=t.a).i&&i>=0?YP(JJ(n,i),56):null}(t,0==(r=e.c.length)?"":(CG(0,e.c.length),sD(e.c[0]))),i=1;i0&&(r=Zlt(t,(a&Ykt)%t.d.length,a,e))?r.ed(n):(i=t.tj(a,e,n),t.c.Fc(i),null)}function Lat(t,e){var n,i,r,a;switch($8(t,e)._k()){case 3:case 2:for(r=0,a=(n=Qyt(e)).i;r=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}(t,t)/k8(2.718281828459045,t))}function Pat(t,e){var n;if(t.ni()&&null!=e){for(n=0;n0&&(t.b+=2,t.a+=r):(t.b+=1,t.a+=e.Math.min(r,a))}function zat(t,e){var n;if(n=!1,nA(e)&&(n=!0,X$(t,new $$(sD(e)))),n||EI(e,236)&&(n=!0,X$(t,new xf(VN(YP(e,236))))),!n)throw ow(new $m(VNt))}function qat(t){var e,n;switch(YP(Sst(lz(t),(hkt(),_1t)),420).g){case 0:return e=t.n,n=t.o,new YC(e.a+n.a/2,e.b+n.b/2);case 1:return new oM(t.n);default:return null}}function Hat(){Hat=I,iXt=new GT(oAt,0),nXt=new GT("LEFTUP",1),aXt=new GT("RIGHTUP",2),eXt=new GT("LEFTDOWN",3),rXt=new GT("RIGHTDOWN",4),tXt=new GT("BALANCED",5)}function Uat(t,e,n){switch(e){case 1:return!t.n&&(t.n=new gR(Vre,t,1,7)),Fmt(t.n),!t.n&&(t.n=new gR(Vre,t,1,7)),void w$(t.n,YP(n,14));case 2:return void C0(t,sD(n))}Y5(t,e,n)}function Gat(t,e,n){switch(e){case 3:return void T1(t,Qm(oD(n)));case 4:return void C1(t,Qm(oD(n)));case 5:return void S1(t,Qm(oD(n)));case 6:return void A1(t,Qm(oD(n)))}Uat(t,e,n)}function Yat(t,e,n){var i,r;(i=sst(r=new qy,e,null))&&i.Fi(),w2(r,n),aQ((!t.c&&(t.c=new gR(noe,t,12,10)),t.c),r),D1(r,0),N1(r,1),o7(r,!0),i7(r,!0)}function Kat(t,e){var n,i;return EI(n=IE(t.g,e),235)?((i=YP(n,235)).Qh(),i.Nh()):EI(n,498)?i=YP(n,1938).b:null}function Wat(t,e,n,i){var r,a;return v$(e),v$(n),wZ(!!(a=YP(XN(t.d,e),19)),"Row %s not in %s",e,t.e),wZ(!!(r=YP(XN(t.b,n),19)),"Column %s not in %s",n,t.c),A4(t,a.a,r.a,i)}function Xat(t,e,n,i,r,a,o){var s,c,u,l,h;if(h=Wit(s=(u=a==o-1)?i:0,l=r[a]),10!=i&&M4($v(t,o-a),e[a],n[a],s,h),!u)for(++a,c=0;c0?t.i:0)),++n;for(function(t,e){var n,i;for(dz(e),n=!1,i=new gd(t);i.a1||-1==s?(a=YP(c,15),r.Wb(function(t,e){var n,i,r;for(i=new hV(e.gc()),n=e.Kc();n.Ob();)(r=Ybt(t,YP(n.Pb(),56)))&&(i.c[i.c.length]=r);return i}(t,a))):r.Wb(Ybt(t,YP(c,56))))}function cot(t){switch(YP(Sst(t.b,(hkt(),c1t)),375).g){case 1:k_(oq(qZ(new xF(null,new AG(t.d,16)),new jr),new Rr),new $r);break;case 2:!function(t){var e,n,i,r,a,o,s;for(i=0,s=0,o=new gd(t.d);o.a0&&Mrt(this,this.c-1,(_xt(),pie)),this.c0&&t[0].length>0&&(this.c=Vm(aD(Sst(lz(t[0][0]),(Tkt(),fVt))))),this.a=HV(D3t,m_t,2018,t.length,0,2),this.b=HV(B3t,m_t,2019,t.length,0,2),this.d=new V6}function Mot(t){return 0!=t.c.length&&((CG(0,t.c.length),YP(t.c[0],17)).c.i.k==(uct(),NGt)||YW(oq(new xF(null,new AG(t,16)),new Fa),new ja))}function Iot(t,e,n){return tst(n,"Tree layout",1),DY(t.b),jR(t.b,(Drt(),U4t),U4t),jR(t.b,G4t,G4t),jR(t.b,Y4t,Y4t),jR(t.b,K4t,K4t),t.a=Wmt(t.b,e),function(t,e,n){var i,r,a;if(!(r=n)&&(r=new nm),tst(r,"Layout",t.a.c.length),Vm(aD(Sst(e,(eft(),M5t)))))for(r_(),i=0;i=0?(n=Bat(t,zEt),i=vtt(t,zEt)):(n=Bat(e=zj(t,1),5e8),i=X7(Rj(i=vtt(e,5e8),1),jG(t,1))),RG(Rj(i,32),jG(n,nTt))}function qot(t,e,n){var i;switch(xO(0!=e.b),i=YP(HJ(e,e.a.a),8),n.g){case 0:i.b=0;break;case 2:i.b=t.f;break;case 3:i.a=0;break;default:i.a=t.g}return i$(Wet(e,0),i),e}function Hot(t,e,n,i){var r,a,o,s,c;switch(c=t.b,s=Det(o=(a=e.d).j,c.d[o.g],n),r=gN(lI(a.n),a.a),a.j.g){case 1:case 3:s.a+=r.a;break;case 2:case 4:s.b+=r.b}HW(i,s,i.c.b,i.c)}function Uot(t,e,n){var i,r,a,o;for(o=rZ(t.e,e,0),(a=new dy).b=n,i=new YY(t.e,o);i.b=0;e--)F$t[e]=i,i*=.5;for(n=1,t=24;t>=0;t--)B$t[t]=n,n*=.5}function Yot(t){var e,n;if(Vm(aD(yft(t,(hkt(),v1t)))))for(n=new Sj(cL(cdt(t).a.Kc(),new l));Ght(n);)if(Ult(e=YP(pX(n),79))&&Vm(aD(yft(e,x1t))))return!0;return!1}function Kot(t,e){var n,i,r;NR(t.f,e)&&(e.b=t,i=e.c,-1!=rZ(t.j,i,0)||QP(t.j,i),r=e.d,-1!=rZ(t.j,r,0)||QP(t.j,r),0!=(n=e.a.b).c.length&&(!t.i&&(t.i=new Het(t)),function(t,e){var n,i;for(i=new gd(e);i.a=0&&NN(t.substr(e,3),"GMT")||e>=0&&NN(t.substr(e,3),"UTC"))&&(n[0]=e+3),function(t,e,n){var i,r,a,o;if(e[0]>=t.length)return n.o=0,!0;switch(qz(t,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return n.o=0,!0}if(++e[0],a=e[0],0==(o=qlt(t,e))&&e[0]==a)return!1;if(e[0]=t.f)break;a.c[a.c.length]=n}return a}function rst(t){var e,n,i,r;for(e=null,r=new gd(t.wf());r.a0&&rmt(t.g,e,t.g,e+i,s),o=n.Kc(),t.i+=i,r=0;ra&&xR(u,CJ(n[s],I$t))&&(r=s,a=c);return r>=0&&(i[0]=e+a),r}function hst(t,e,n){tst(n,"Grow Tree",1),t.b=e.f,Vm(aD(Sst(e,(g3(),nHt))))?(t.c=new ee,dG(t,null)):t.c=new ee,t.a=!1,Jdt(t,e.f),s5(e,iHt,(mL(),!!t.a)),Dct(n)}function fst(t){var e,n;return t>=QEt?(e=ZEt+(t-QEt>>10&1023)&oEt,n=56320+(t-QEt&1023)&oEt,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&oEt)}function dst(t,e,n,i,r){var a,o,s;for(a=Ggt(t,e,n,i,r),s=!1;!a;)Ift(t,r,!0),s=!0,a=Ggt(t,e,n,i,r);s&&Ift(t,r,!1),0!=(o=j4(r)).c.length&&(t.d&&t.d.lg(o),dst(t,r,n,i,o))}function gst(){gst=I,dne=new ZC(oAt,0),hne=new ZC("DIRECTED",1),gne=new ZC("UNDIRECTED",2),une=new ZC("ASSOCIATION",3),fne=new ZC("GENERALIZATION",4),lne=new ZC("DEPENDENCY",5)}function pst(t,e){var n,i;for(dz(e),i=t.b.c.length,QP(t.b,e);i>0;){if(n=i,i=(i-1)/2|0,t.a.ue(mF(t.b,i),e)<=0)return UW(t.b,n,e),!0;UW(t.b,n,mF(t.b,i))}return UW(t.b,i,e),!0}function bst(t,n,i,r){var a,o;if(a=0,i)a=G6(t.a[i.g][n.g],r);else for(o=0;o=o)}function yst(t,e,n,i){var r;if(r=!1,nA(i)&&(r=!0,MB(e,n,sD(i))),r||tA(i)&&(r=!0,yst(t,e,n,i)),r||EI(i,236)&&(r=!0,Xq(e,n,YP(i,236))),!r)throw ow(new $m(VNt))}function mst(t,e){var n,i,r,a;if(dz(e),(a=t.a.gc())=aEt?"error":"warn",t.a),t.b&&Wdt(e,n,t.b,"Exception: ",!0))}function Sst(t,e){var n;return!t.q&&(t.q=new tw),B$(t.q,e)??(EI(n=e.wg(),4)&&(null==n?(!t.q&&(t.q=new tw),RX(t.q,e)):(!t.q&&(t.q=new tw),Iz(t.q,e,n))),n)}function Ast(){Ast=I,UUt=new uT("P1_CYCLE_BREAKING",0),GUt=new uT("P2_LAYERING",1),YUt=new uT("P3_NODE_ORDERING",2),KUt=new uT("P4_NODE_PLACEMENT",3),WUt=new uT("P5_EDGE_ROUTING",4)}function Mst(t,e){var n,i,r,a;for(i=(1==e?tGt:JUt).a.ec().Kc();i.Ob();)for(n=YP(i.Pb(),103),a=YP(DX(t.f.c,n),21).Kc();a.Ob();)r=YP(a.Pb(),46),eZ(t.b.b,r.b),eZ(t.b.a,YP(r.b,81).d)}function Ist(t,e){var n;if(nJ(),t.c==e.c){if(t.b==e.b||function(t,e){return D4(),t==oGt&&e==uGt||t==uGt&&e==oGt||t==cGt&&e==sGt||t==sGt&&e==cGt}(t.b,e.b)){if(n=function(t){return t==oGt||t==uGt}(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return QM(t.b.g,e.b.g)}return C7(t.c,e.c)}function Lst(t,e){var n,i;if(zst(t,e))return!0;for(i=new gd(e);i.a=(r=t.Vi())||e<0)throw ow(new jm(pPt+e+bPt+r));if(n>=r||n<0)throw ow(new jm(wPt+n+bPt+r));return e!=n?(a=t.Ti(n),t.Hi(e,a),i=a):i=t.Oi(n),i}function Rst(t){var e,n,i;if(i=t,t)for(e=0,n=t.Ug();n;n=n.Ug()){if(++e>tTt)return Rst(n);if(i=n,n==t)throw ow(new Km("There is a cycle in the containment hierarchy of "+t))}return i}function $st(t){var e,n,i;for(i=new Y3(Vkt,"[","]"),n=t.Kc();n.Ob();)BX(i,JS(e=n.Pb())===JS(t)?"(this Collection)":null==e?e_t:k9(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function zst(t,e){var n,i;if(i=!1,e.gc()<2)return!1;for(n=0;ni&&(SG(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return i>0||e1&&(t.j.b+=t.e)):(t.j.a+=i.a,t.j.b=e.Math.max(t.j.b,i.b),t.d.c.length>1&&(t.j.a+=t.e))}function Yst(){Yst=I,jKt=M4($v(qie,1),sAt,61,0,[(_xt(),bie),pie,Die]),FKt=M4($v(qie,1),sAt,61,0,[pie,Die,Pie]),RKt=M4($v(qie,1),sAt,61,0,[Die,Pie,bie]),$Kt=M4($v(qie,1),sAt,61,0,[Pie,bie,pie])}function Kst(t,e,n,i){var r,a,o,s,c;if(a=t.c.d,o=t.d.d,a.j!=o.j)for(c=t.b,r=a.j,s=null;r!=o.j;)s=0==e?T7(r):_7(r),DB(i,gN(Det(r,c.d[r.g],n),Det(s,c.d[s.g],n))),r=s}function Wst(t,e,n,i){var r,a,o,s,c;return s=YP((o=Lrt(t.a,e,n)).a,19).a,a=YP(o.b,19).a,i&&(c=YP(Sst(e,(Tkt(),MVt)),10),r=YP(Sst(n,MVt),10),c&&r&&(GK(t.b,c,r),s+=t.b.i,a+=t.b.e)),s>a}function Xst(t){var e,n,i,r,a,o,s,c;for(this.a=Int(t),this.b=new Jb,i=0,r=(n=t).length;i0&&(t.a[H.p]=Z++)}for(it=0,N=0,F=(L=i).length;N0;){for(xO(K.b>0),Y=0,c=new gd((H=YP(K.a.Xb(K.c=--K.b),11)).e);c.a0&&(H.j==(_xt(),bie)?(t.a[H.p]=it,++it):(t.a[H.p]=it+j+$,++$))}it+=$}for(G=new tw,p=new iM,O=0,P=(M=n).length;Ol.b&&(l.b=W)):H.i.c==Q&&(Wl.c&&(l.c=W));for(IQ(b,0,b.length,null),nt=HV(jce,vEt,25,b.length,15,1),r=HV(jce,vEt,25,it+1,15,1),y=0;y0;)E%2>0&&(a+=ot[E+1]),++ot[E=(E-1)/2|0];for(C=HV(K3t,Zkt,362,2*b.length,0,1),x=0;xmD(t.d).c?(t.i+=t.g.c,_tt(t.d)):mD(t.d).c>mD(t.g).c?(t.e+=t.d.c,_tt(t.g)):(t.i+=_F(t.g),t.e+=_F(t.d),_tt(t.g),_tt(t.d))}function Jst(t,n,i,r){t.a.d=e.Math.min(n,i),t.a.a=e.Math.max(n,r)-t.a.d,nc&&(u=c/r),(a=e.Math.abs(n.b-t.b))>o&&(l=o/a),s=e.Math.min(u,l),t.a+=s*(n.a-t.a),t.b+=s*(n.b-t.b)}function act(t,e,n,i,r){var a,o;for(o=!1,a=YP(mF(n.b,0),33);xyt(t,e,a,i,r)&&(o=!0,iot(n,a),0!=n.b.c.length);)a=YP(mF(n.b,0),33);return 0==n.b.c.length&&eat(n.j,n),o&&Qit(e.q),o}function oct(t,e){var n,i,r,a;if(ipt(),e.b<2)return!1;for(i=n=YP(kK(a=Wet(e,0)),8);a.b!=a.d.c;){if(Ddt(t,i,r=YP(kK(a),8)))return!0;i=r}return!!Ddt(t,i,n)}function sct(t,e,n,i){return 0==n?(!t.o&&(t.o=new gQ((ekt(),Lre),eae,t,0)),YN(t.o,e,i)):YP(_J(YP(B3(t,16),26)||t.zh(),n),66).Nj().Rj(t,uet(t),n-d$(t.zh()),e,i)}function cct(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=YP(t.sb,49).ih(t,1,Kre,n)),e&&(n=YP(e,49).gh(t,1,Kre,n)),(n=B8(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,4,e,e))}function uct(){uct=I,PGt=new fT("NORMAL",0),NGt=new fT("LONG_EDGE",1),OGt=new fT("EXTERNAL_PORT",2),BGt=new fT("NORTH_SOUTH_PORT",3),DGt=new fT("LABEL",4),LGt=new fT("BREAKING_POINT",5)}function lct(t,e,n){var i;tst(n,"Self-Loop routing",1),i=function(t){switch(YP(Sst(t,(hkt(),a1t)),218).g){case 1:return new na;case 3:return new sa;default:return new ea}}(e),lA(Sst(e,(XX(),I9t))),k_(oq(aq(aq(qZ(new xF(null,new AG(e.b,16)),new Ui),new Gi),new Yi),new Ki),new bT(t,i)),Dct(n)}function hct(t,e){var n,i,r;return(e&=63)<22?(n=t.l<>22-e,r=t.h<>22-e):e<44?(n=0,i=t.l<>44-e):(n=0,i=0,r=t.l<t)throw ow(new Ym("k must be smaller than n"));return 0==e||e==t?1:0==t?0:Nat(t)/(Nat(e)*Nat(t-e))}function pct(t,e){var n,i,r,a;for(n=new xM(t);null!=n.g||n.c?null==n.g||0!=n.i&&YP(n.g[n.i-1],47).Ob():TU(n);)if(EI(a=YP(ndt(n),56),160))for(i=YP(a,160),r=0;r0&&bbt(t,n,e),r):function(t,e,n){var i,r,a;return i=t.c[e.c.p][e.p],r=t.c[n.c.p][n.p],null!=i.a&&null!=r.a?((a=Hj(i.a,r.a))<0?bbt(t,e,n):a>0&&bbt(t,n,e),a):null!=i.a?(bbt(t,e,n),-1):null!=r.a?(bbt(t,n,e),1):0}(t,e,n)}function Lct(t,e,n){var i,r,a,o;if(0!=e.b){for(i=new x_,o=Wet(e,0);o.b!=o.d.c;)_2(i,F4(a=YP(kK(o),86))),(r=a.e).a=YP(Sst(a,(Jmt(),k5t)),19).a,r.b=YP(Sst(a,_5t),19).a;Lct(t,i,Y2(n,i.b/t.a|0))}}function Oct(t,e){var n,i,r,a,o;if(t.e<=e||function(t,e,n){var i;return(i=imt(t,e,!1)).b<=e&&i.a<=n}(t,t.g,e))return t.g;for(a=t.r,i=t.g,o=t.r,r=(a-i)/2+i;i+11&&(t.e.b+=t.a)):(t.e.a+=i.a,t.e.b=e.Math.max(t.e.b,i.b),t.d.c.length>1&&(t.e.a+=t.a))}function Fct(t){var e,n,i,r;switch(e=(r=t.i).b,i=r.j,n=r.g,r.a.g){case 0:n.a=(t.g.b.o.a-i.a)/2;break;case 1:n.a=e.d.n.a+e.d.a.a;break;case 2:n.a=e.d.n.a+e.d.a.a-i.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function jct(t,e,n,i,r){if(ii&&(t.a=i),t.br&&(t.b=r),t}function Rct(t){if(EI(t,149))return function(t){var e,n,i,r,a;return a=est(t),null!=t.a&&MB(a,"category",t.a),!kk(new Wf(t.d))&&(EJ(a,"knownOptions",i=new _f),e=new kb(i),zW(new Wf(t.d),e)),!kk(t.g)&&(EJ(a,"supportedFeatures",r=new _f),n=new _b(r),zW(t.g,n)),a}(YP(t,149));if(EI(t,229))return function(t){var e,n,i;return i=est(t),!kk(t.c)&&(EJ(i,"knownLayouters",n=new _f),e=new Eb(n),zW(t.c,e)),i}(YP(t,229));if(EI(t,23))return function(t){var e,n,i;return i=est(t),null!=t.e&&MB(i,cPt,t.e),!!t.k&&MB(i,"type",lO(t.k)),!kk(t.j)&&(n=new _f,EJ(i,qNt,n),e=new Tb(n),zW(t.j,e)),i}(YP(t,23));throw ow(new Ym(JNt+$st(new nv(M4($v(Rjt,1),Zkt,1,5,[t])))))}function $ct(t,e,n,i){var r,a;if(e.k==(uct(),NGt))for(a=new Sj(cL(e9(e).a.Kc(),new l));Ght(a);)if((r=YP(pX(a),17)).c.i.k==NGt&&t.c.a[r.c.i.c.p]==i&&t.c.a[e.c.p]==n)return!0;return!1}function zct(t,e,n,i){var r;this.b=i,this.e=t==(o0(),j3t),r=e[n],this.d=oF(Rce,[m_t,uCt],[177,25],16,[r.length,r.length],2),this.a=oF(jce,[m_t,vEt],[48,25],15,[r.length,r.length],2),this.c=new Sot(e,n)}function qct(t){var e,n,i;for(t.k=new _G((_xt(),M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie])).length,t.j.c.length),i=new gd(t.j);i.a=n)return Vct(t,e,i.p),!0;return!1}function Yct(t){var e;return 64&t.Db?bct(t):(e=new xL(sNt),!t.a||pA(pA((e.a+=' "',e),t.a),'"'),pA(Qx(pA(Qx(pA(Qx(pA(Qx((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Kct(t,e,n){var i,r,a,o,s;for(s=hgt(t.e.Tg(),e),r=YP(t.g,119),i=0,o=0;o0&&Zct(t,a,n));e.p=0}function Jct(t){var e;this.c=new x_,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,t.i?this.j=t.i:this.j=new tP(e=YP(Sx(v9t),9),YP(QD(e,e.length),9),0),this.g=t.f}function tut(t,e,n){var i,r,a;if(!(n<=e+2))for(r=(n-e)/2|0,i=0;i=0?t.Bh(r):mlt(t,i)}else Z8(t,n,i)}function rut(t){var e,n;if(n=null,e=!1,EI(t,204)&&(e=!0,n=YP(t,204).a),e||EI(t,258)&&(e=!0,n=""+YP(t,258).a),e||EI(t,483)&&(e=!0,n=""+YP(t,483).a),!e)throw ow(new $m(VNt));return n}function aut(t,e){var n,i;if(t.f){for(;e.Ob();)if(EI(i=(n=YP(e.Pb(),72)).ak(),99)&&YP(i,18).Bb&yNt&&(!t.e||i.Gj()!=Rre||0!=i.aj())&&null!=n.dd())return e.Ub(),!0;return!1}return e.Ob()}function out(t,e){var n,i;if(t.f){for(;e.Sb();)if(EI(i=(n=YP(e.Ub(),72)).ak(),99)&&YP(i,18).Bb&yNt&&(!t.e||i.Gj()!=Rre||0!=i.aj())&&null!=n.dd())return e.Pb(),!0;return!1}return e.Sb()}function sut(t,e,n){var i,r,a,o,s,c;for(c=hgt(t.e.Tg(),e),i=0,s=t.i,r=YP(t.g,119),o=0;o=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++0;)qU(this);this.b=e,this.a=null}function mut(t,e){var n,i;e.a?function(t,e){var n;if(!n$(t.b,e.b))throw ow(new Km("Invalid hitboxes for scanline constraint calculation."));(_4(e.b,YP(function(t,e){return Ax(Ltt(t.a,e,!0))}(t.b,e.b),57))||_4(e.b,YP(function(t,e){return Ax(Itt(t.a,e,!0))}(t.b,e.b),57)))&&(r_(),e.b),t.a[e.b.f]=YP(BN(t.b,e.b),57),(n=YP(PN(t.b,e.b),57))&&(t.a[n.f]=e.b)}(t,e):((n=YP(BN(t.b,e.b),57))&&n==t.a[e.b.f]&&n.a&&n.a!=e.b.a&&n.c.Fc(e.b),(i=YP(PN(t.b,e.b),57))&&t.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),OL(t.b,e.b))}function vut(t,e){var n,i;if(n=YP(Rz(t.b,e),124),YP(YP(DX(t.r,e),21),84).dc())return n.n.b=0,void(n.n.c=0);n.n.b=t.C.b,n.n.c=t.C.c,t.A.Hc((Ttt(),Yie))&&Hpt(t,e),i=function(t,e){var n,i,r;for(r=0,i=YP(YP(DX(t.r,e),21),84).Kc();i.Ob();)r+=(n=YP(i.Pb(),111)).d.b+n.b.rf().a+n.d.c,i.Ob()&&(r+=t.w);return r}(t,e),opt(t,e)==(Yet(),Wne)&&(i+=2*t.w),n.a.a=i}function xut(t,e){var n,i;if(n=YP(Rz(t.b,e),124),YP(YP(DX(t.r,e),21),84).dc())return n.n.d=0,void(n.n.a=0);n.n.d=t.C.d,n.n.a=t.C.a,t.A.Hc((Ttt(),Yie))&&Upt(t,e),i=function(t,e){var n,i,r;for(r=0,i=YP(YP(DX(t.r,e),21),84).Kc();i.Ob();)r+=(n=YP(i.Pb(),111)).d.d+n.b.rf().b+n.d.a,i.Ob()&&(r+=t.w);return r}(t,e),opt(t,e)==(Yet(),Wne)&&(i+=2*t.w),n.a.b=i}function kut(t,e){var n,i,r,a;for(a=new Jb,i=new gd(e);i.a=0&&NN(t.substr(s,2),"//")?(c=Bet(t,s+=2,jae,Rae),i=t.substr(s,c-s),s=c):null!=h&&(s==t.length||(SG(s,t.length),47!=t.charCodeAt(s)))&&(o=!1,-1==(c=ML(t,fst(35),s))&&(c=t.length),i=t.substr(s,c-s),s=c);if(!n&&s0&&58==qz(l,l.length-1)&&(r=l,s=c)),s0&&(SG(0,n.length),47!=n.charCodeAt(0))))throw ow(new Ym("invalid opaquePart: "+n));if(t&&(null==e||!s_(Sae,e.toLowerCase()))&&null!=n&&C9(n,jae,Rae))throw ow(new Ym(bBt+n));if(t&&null!=e&&s_(Sae,e.toLowerCase())&&!function(t){if(null!=t&&t.length>0&&33==qz(t,t.length-1))try{return null==Lut(sO(t,0,t.length-1)).e}catch(t){if(!EI(t=b4(t),32))throw ow(t)}return!1}(n))throw ow(new Ym(bBt+n));if(!function(t){var e;return null==t||(e=t.length)>0&&(SG(e-1,t.length),58==t.charCodeAt(e-1))&&!C9(t,jae,Rae)}(i))throw ow(new Ym("invalid device: "+i));if(!function(t){var e,n;if(null==t)return!1;for(e=0,n=t.length;en.a&&(i.Hc((lot(),ete))?r=(e.a-n.a)/2:i.Hc(ite)&&(r=e.a-n.a)),e.b>n.b&&(i.Hc((lot(),ate))?a=(e.b-n.b)/2:i.Hc(rte)&&(a=e.b-n.b)),_st(t,r,a)}function $ut(t,e,n,i,r,a,o,s,c,u,l,h,f){EI(t.Cb,88)&&tlt(sX(YP(t.Cb,88)),4),w2(t,n),t.f=o,I7(t,s),O7(t,c),M7(t,u),L7(t,l),o7(t,h),B7(t,f),i7(t,!0),D1(t,r),t.ok(a),t8(t,e),null!=i&&(t.i=null,Y0(t,i))}function zut(t){var e,n;if(t.f){for(;t.n>0;){if(EI(n=(e=YP(t.k.Xb(t.n-1),72)).ak(),99)&&YP(n,18).Bb&yNt&&(!t.e||n.Gj()!=Rre||0!=n.aj())&&null!=e.dd())return!0;--t.n}return!1}return t.n>0}function qut(t,e,n){if(t<0)return Vpt(Qkt,M4($v(Rjt,1),Zkt,1,5,[n,u7(t)]));if(e<0)throw ow(new Ym(Jkt+e));return Vpt("%s (%s) must not be greater than size (%s)",M4($v(Rjt,1),Zkt,1,5,[n,u7(t),u7(e)]))}function Hut(t,e,n,i,r,a){var o,s,c;if(i-n<7)!function(t,e,n,i){var r,a,o;for(r=e+1;re&&i.ue(t[a-1],t[a])>0;--a)o=t[a],L$(t,a,t[a-1]),L$(t,a-1,o)}(e,n,i,a);else if(Hut(e,t,s=n+r,c=s+((o=i+r)-s>>1),-r,a),Hut(e,t,c,o,-r,a),a.ue(t[c-1],t[c])<=0)for(;n=i||e=0?t.sh(a,n):ddt(t,r,n)}else w9(t,i,r,n)}function Yut(t){var e,n,i,r;if(n=YP(t,49).qh())try{if(i=null,(e=jft((pE(),Vae),rwt(function(t){return null==t.e?t:(!t.c&&(t.c=new Lpt(0!=(256&t.f),t.i,t.a,t.d,0!=(16&t.f),t.j,t.g,null)),t.c)}(n))))&&(r=e.rh())&&(i=r.Wk(function(t){return dz(t),t}(n.e))),i&&i!=t)return Yut(i)}catch(t){if(!EI(t=b4(t),60))throw ow(t)}return t}function Kut(t,e,n){var i,r,a;if(a=null==e?0:t.b.se(e),0==(i=t.a.get(a)??new Array).length)t.a.set(a,i);else if(r=F6(t,e,i))return r.ed(n);return L$(i,i.length,new zE(e,n)),++t.c,hH(t.b),null}function Wut(t,e){var n;return DY(t.a),jR(t.a,(h2(),i6t),i6t),jR(t.a,r6t,r6t),iF(n=new aK,r6t,(d9(),u6t)),JS(yft(e,(Nrt(),O6t)))!==JS((k6(),b6t))&&iF(n,r6t,s6t),iF(n,r6t,c6t),eM(t.a,n),Wmt(t.a,e)}function Xut(t){if(!t)return bv(),yRt;var n=t.valueOf?t.valueOf():t;if(n!==t){var i=mRt[typeof n];return i?i(n):K6(typeof n)}return t instanceof Array||t instanceof e.Array?new mf(t):new kf(t)}function Vut(t,n,i){var r,a,o;switch(o=t.o,(a=(r=YP(Rz(t.p,i),244)).i).b=Dlt(r),a.a=Olt(r),a.b=e.Math.max(a.b,o.a),a.b>o.a&&!n&&(a.b=o.a),a.c=-(a.b-o.a)/2,i.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}tyt(r),ayt(r)}function Qut(t,n,i){var r,a,o;switch(o=t.o,(a=(r=YP(Rz(t.p,i),244)).i).b=Dlt(r),a.a=Olt(r),a.a=e.Math.max(a.a,o.b),a.a>o.b&&!n&&(a.a=o.b),a.d=-(a.a-o.b)/2,i.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}tyt(r),ayt(r)}function Zut(t,e){var n,i,r,a;if(ipt(),e.b<2)return!1;for(i=n=YP(kK(a=Wet(e,0)),8);a.b!=a.d.c;){if(r=YP(kK(a),8),!i3(t,i)||!i3(t,r))return!1;i=r}return!(!i3(t,i)||!i3(t,n))}function Jut(t,e){var n,i,r,a,o;return n=F1(o=t,"x"),function(t,e){S1(t,null==e||QN((dz(e),e))||isNaN((dz(e),e))?0:(dz(e),e))}(new ub(e).a,n),i=F1(o,"y"),function(t,e){A1(t,null==e||QN((dz(e),e))||isNaN((dz(e),e))?0:(dz(e),e))}(new lb(e).a,i),r=F1(o,BNt),function(t,e){C1(t,null==e||QN((dz(e),e))||isNaN((dz(e),e))?0:(dz(e),e))}(new hb(e).a,r),a=F1(o,PNt),function(t,e){T1(t,null==e||QN((dz(e),e))||isNaN((dz(e),e))?0:(dz(e),e))}(new fb(e).a,a),a}function tlt(t,e){$pt(t,e),1&t.b&&(t.a.a=null),2&t.b&&(t.a.f=null),4&t.b&&(t.a.g=null,t.a.i=null),16&t.b&&(t.a.d=null,t.a.e=null),8&t.b&&(t.a.b=null),32&t.b&&(t.a.j=null,t.a.c=null)}function elt(t){var e,n,i,r,a;if(null==t)return e_t;for(a=new Y3(Vkt,"[","]"),i=0,r=(n=t).length;i0)for(o=t.c.d,r=DI(pN(new YC((s=t.d.d).a,s.b),o),1/(i+1)),a=new YC(o.a,o.b),n=new gd(t.a);n.a(CG(a+1,e.c.length),YP(e.c[a+1],19)).a-i&&++s,QP(r,(CG(a+s,e.c.length),YP(e.c[a+s],19))),o+=(CG(a+s,e.c.length),YP(e.c[a+s],19)).a-i,++n;n=0?t._g(n,!0,!0):Qlt(t,r,!0),153),YP(i,215).ol(e)}function vlt(t){var n,i;return t>-0x800000000000&&t<0x800000000000?0==t?0:((n=t<0)&&(t=-t),i=nU(e.Math.floor(e.Math.log(t)/.6931471805599453)),(!n||t!=e.Math.pow(2,i))&&++i,i):r4(I3(t))}function xlt(t,e){var n,i,r;return n4(i=new Jnt(t),e),s5(i,(Tkt(),eVt),e),s5(i,(hkt(),c0t),(Oot(),tie)),s5(i,SJt,(jnt(),F9t)),Af(i,(uct(),OGt)),KU(n=new Ect,i),llt(n,(_xt(),Pie)),KU(r=new Ect,i),llt(r,pie),i}function klt(t){switch(t.g){case 0:return new zm((o0(),F3t));case 1:return new uh;case 2:return new bh;default:throw ow(new Ym("No implementation is available for the crossing minimizer "+(null!=t.f?t.f:""+t.g)))}}function _lt(t,e){var n,i,r,a;for(t.c[e.p]=!0,QP(t.a,e),a=new gd(e.j);a.a=(a=o.gc()))o.$b();else for(r=o.Kc(),i=0;i0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}else o=Fv(N2(sq(aq(qR(t.a),new _t),new Et)));return o>0?o+t.n.d+t.n.a:0}function Dlt(t){var e,n,i,r,a,o;if(o=0,0==t.b)o=Fv(N2(sq(aq(qR(t.a),new xt),new kt)));else{for(e=0,r=0,a=(i=dit(t,!0)).length;r0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}return o>0?o+t.n.b+t.n.c:0}function Nlt(t){var e,n;return(n=new Sv).a+="e_",null!=(e=function(t){return 0!=t.b.c.length&&YP(mF(t.b,0),70).a?YP(mF(t.b,0),70).a:_q(t)}(t))&&(n.a+=""+e),t.c&&t.d&&(pA((n.a+=" ",n),brt(t.c)),pA(gA((n.a+="[",n),t.c.i),"]"),pA((n.a+=fAt,n),brt(t.d)),pA(gA((n.a+="[",n),t.d.i),"]")),n.a}function Plt(t){switch(t.g){case 0:return new hh;case 1:return new fh;case 2:return new lh;case 3:return new dh;default:throw ow(new Ym("No implementation is available for the layout phase "+(null!=t.f?t.f:""+t.g)))}}function Blt(t,n,i,r,a){var o;switch(o=0,a.g){case 1:o=e.Math.max(0,n.b+t.b-(i.b+r));break;case 3:o=e.Math.max(0,-t.b-r);break;case 2:o=e.Math.max(0,-t.a-r);break;case 4:o=e.Math.max(0,n.a+t.a-(i.a+r))}return o}function Flt(t){var e,n;switch(t.b){case-1:return!0;case 0:return(n=t.t)>1||-1==n||(e=oat(t))&&(vE(),e.Cj()==LBt)?(t.b=-1,!0):(t.b=1,!1);default:return!1}}function jlt(t,e){var n,i,r,a;if(bkt(t),0!=t.c||123!=t.a)throw ow(new lv(Dkt((RM(),PPt))));if(a=112==e,i=t.d,(n=cO(t.i,125,i))<0)throw ow(new lv(Dkt((RM(),BPt))));return r=sO(t.i,i,n),t.d=n+1,sQ(r,a,512==(512&t.e))}function Rlt(t,e,n,i,r){var a,o,s,c;return JS(c=XO(t,YP(r,56)))!==JS(r)?(s=YP(t.g[n],72),NI(t,n,$ot(t,0,a=HK(e,c))),hM(t.e)&&(kot(o=DH(t,9,a.ak(),r,c,i,!1),new gZ(t.e,9,t.c,s,a,i,!1)),fZ(o)),c):r}function $lt(t,e){var n,i;try{return function(t,e){var n;return mO(!!(n=(dz(t),t).g)),dz(e),n(e)}(t.a,e)}catch(r){if(EI(r=b4(r),32)){try{if(i=Jbt(e,X_t,Ykt),n=Sx(t.a),i>=0&&i=0?t._g(n,!0,!0):Qlt(t,r,!0),153),YP(i,215).ll(e);throw ow(new Ym(fNt+e.ne()+pNt))}function qlt(t,e){var n,i,r;if(r=0,(i=e[0])>=t.length)return-1;for(SG(i,t.length),n=t.charCodeAt(i);n>=48&&n<=57&&(r=10*r+(n-48),!(++i>=t.length));)SG(i,t.length),n=t.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function Hlt(t,e,n){var i,r,a,o;a=t.c,o=t.d,r=(C5(M4($v(D9t,1),m_t,8,0,[a.i.n,a.n,a.a])).b+C5(M4($v(D9t,1),m_t,8,0,[o.i.n,o.n,o.a])).b)/2,i=a.j==(_xt(),pie)?new YC(e+a.i.c.c.a+n,r):new YC(e-n,r),CO(t.a,0,i)}function Ult(t){var e,n,i;for(e=null,n=HR(W1(M4($v(Hjt,1),Zkt,20,0,[(!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),(!t.c&&(t.c=new CN(Hre,t,5,8)),t.c)])));Ght(n);)if(i=Zot(YP(pX(n),82)),e){if(e!=i)return!1}else e=i;return!0}function Glt(t,e,n){var i;if(++t.j,e>=t.i)throw ow(new jm(pPt+e+bPt+t.i));if(n>=t.i)throw ow(new jm(wPt+n+bPt+t.i));return i=t.g[n],e!=n&&(e>16)>>16&16),n+=e=(t>>=e)-256>>16&8,n+=e=(t<<=e)-XEt>>16&4,(n+=e=(t<<=e)-v_t>>16&2)+2-(e=(i=(t<<=e)>>14)&~(i>>1)))}function Wlt(t){var e,n,i,r;for(zq(),OHt=new Jb,LHt=new tw,IHt=new Jb,!t.a&&(t.a=new gR(Qre,t,10,11)),function(t){var e,n,i,r,a,o,s,c,u,h;for(e=new tw,o=new zI(t);o.e!=o.i.gc();){for(a=YP(ant(o),33),n=new Yw,Iz(LHt,a,n),h=new ae,i=YP(pW(new xF(null,new XR(new Sj(cL(sdt(a).a.Kc(),new l)))),ZF(h,dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[(_6(),izt)])))),83),Q1(n,YP(i.xc((mL(),!0)),14),new oe),r=YP(pW(aq(YP(i.xc(!1),15).Lc(),new se),dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[izt]))),15).Kc();r.Ob();)(u=Pst(YP(r.Pb(),79)))&&((s=YP(ZS(LH(e.f,u)),21))||(s=Sgt(u),Kut(e.f,u,s)),_2(n,s));for(i=YP(pW(new xF(null,new XR(new Sj(cL(cdt(a).a.Kc(),new l)))),ZF(h,dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[izt])))),83),Q1(n,YP(i.xc(!0),14),new ce),c=YP(pW(aq(YP(i.xc(!1),15).Lc(),new ue),dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[izt]))),15).Kc();c.Ob();)(u=Bst(YP(c.Pb(),79)))&&((s=YP(ZS(LH(e.f,u)),21))||(s=Sgt(u),Kut(e.f,u,s)),_2(n,s))}}(e=t.a),r=new zI(e);r.e!=r.i.gc();)i=YP(ant(r),33),-1==rZ(OHt,i,0)&&(n=new Jb,QP(IHt,n),Set(i,n));return IHt}function Xlt(t,n){var i,r,a,o,s,c,u,l;for(l=Qm(oD(Sst(n,(hkt(),$0t)))),u=t[0].n.a+t[0].o.a+t[0].d.c+l,c=1;c0?1:GA(isNaN(r),isNaN(0)))>=0^(n0(zLt),(e.Math.abs(c)<=zLt||0==c||isNaN(c)&&isNaN(0)?0:c<0?-1:c>0?1:GA(isNaN(c),isNaN(0)))>=0)?e.Math.max(c,r):(n0(zLt),(e.Math.abs(r)<=zLt||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:GA(isNaN(r),isNaN(0)))>0?e.Math.sqrt(c*c+r*r):-e.Math.sqrt(c*c+r*r))}(o=r.b,s=a.b))>=0?i:(c=oz(pN(new YC(s.c+s.b/2,s.d+s.a/2),new YC(o.c+o.b/2,o.d+o.a/2))),-(kwt(o,s)-1)*c)}function Qlt(t,e,n){var i,r,a;if(a=Zmt((lut(),rse),t.Tg(),e))return vE(),YP(a,66).Oj()||(a=PG(xZ(rse,a))),r=YP((i=t.Yg(a))>=0?t._g(i,!0,!0):Qlt(t,a,!0),153),YP(r,215).hl(e,n);throw ow(new Ym(fNt+e.ne()+pNt))}function Zlt(t,e,n,i){var r,a,o,s,c;if(r=t.d[e])if(a=r.g,c=r.i,null!=i){for(s=0;s>5),15,1))[n]=1<1;e>>=1)1&e&&(i=eJ(i,n)),n=1==n.d?eJ(n,n):new vet(owt(n.a,n.d,HV(jce,vEt,25,n.d<<1,15,1)));return eJ(i,n)}(t,e)}function tht(t){var e,n,i;for(U_(),this.b=nGt,this.c=(X8(),Wee),this.f=(H_(),QUt),this.a=t,Kv(this,new Ce),Rdt(this),i=new gd(t.b);i.a=null.jm()?(ndt(t),iht(t)):e.Ob()}function rht(t,n,i){var r,a,o,s;if(!(s=i)&&(s=IB(new nm,0)),tst(s,JSt,1),Svt(t.c,n),1==(o=function(t,e){var n,i,r,a,o,s,c,u,l,h,f,d;if(t.c=t.d,f=null==(d=aD(Sst(e,(hkt(),x0t))))||(dz(d),d),a=YP(Sst(e,(Tkt(),aVt)),21).Hc((Zgt(),mXt)),n=!((r=YP(Sst(e,c0t),98))==(Oot(),Jne)||r==eie||r==tie),!f||!n&&a)h=new nv(M4($v(AGt,1),cAt,37,0,[e]));else{for(l=new gd(e.a);l.ae.a&&(i.Hc((lot(),ete))?t.c.a+=(n.a-e.a)/2:i.Hc(ite)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((lot(),ate))?t.c.b+=(n.b-e.b)/2:i.Hc(rte)&&(t.c.b+=n.b-e.b)),YP(Sst(t,(Tkt(),aVt)),21).Hc((Zgt(),mXt))&&(n.a>e.a||n.b>e.b))for(s=new gd(t.a);s.a0?j9(n):E7(j9(n)),Cnt(e,d0t,r)}function pht(t,e){var n,i,r,a,o;for(o=t.j,e.a!=e.b&&KM(o,new Gr),r=o.c.length/2|0,i=0;i=0;)i=n[a],o.rl(i.ak())&&aQ(r,i);!qxt(t,r)&&hM(t.e)&&Hw(t,e.$j()?DH(t,6,e,(qq(),b$t),null,-1,!1):DH(t,e.Kj()?2:1,e,null,null,-1,!1))}function yht(){var t,e;for(yht=I,d$t=HV(p$t,m_t,91,32,0,1),g$t=HV(p$t,m_t,91,32,0,1),t=1,e=0;e<=18;e++)d$t[e]=zet(t),g$t[e]=zet(Rj(t,e)),t=V7(t,5);for(;eo)||e.q&&(i=e.C,o=i.c.c.a-i.o.a/2,r=i.n.a-n,r>o)))}function vht(t){var e,n,i,r,a,o;for(oG(),n=new sW,i=new gd(t.e.b);i.a1?t.e*=Qm(t.a):t.f/=Qm(t.a),function(t){var e,n;for(e=t.b.a.a.ec().Kc();e.Ob();)n=new Vft(YP(e.Pb(),561),t.e,t.f),QP(t.g,n)}(t),het(t),function(t){var n,i,r,a,o,s,c,u,l,h;for(i=function(t){var n,i,r,a,o,s,c,u,l,h;for(i=t.o,n=t.p,s=Ykt,a=X_t,c=Ykt,o=X_t,l=0;l=0?t.Qg(null):t.eh().ih(t,-1-e,null,null),t.Rg(YP(r,49),n),i&&i.Fi(),t.Lg()&&t.Mg()&&n>-1&&O3(t,new fR(t,9,n,a,r)),r):a}function jht(t){var e,n,i,r,a,o,s;for(a=0,r=t.f.e,n=0;n>5)>=t.d)return t.e<0;if(n=t.a[r],e=1<<(31&e),t.e<0){if(r<(i=Z2(t)))return!1;n=i==r?-n:~n}return 0!=(n&e)}function Hht(t,e){var n,i,r,a,o,s,c;if(a=e.e)for(n=Fht(a),i=YP(t.g,674),o=0;o>16)),15).Xc(a))>e,a=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(o=i?FEt:0,a=n>>e-22,r=t.m>>e-22|n<<44-e):(o=i?FEt:0,a=i?BEt:0,r=n>>e-44),JM(r&BEt,a&BEt,o&FEt)}function Zht(t){var n,i,r,a,o,s;for(this.c=new Jb,this.d=t,r=KEt,a=KEt,n=WEt,i=WEt,s=Wet(t,0);s.b!=s.d.c;)o=YP(kK(s),8),r=e.Math.min(r,o.a),a=e.Math.min(a,o.b),n=e.Math.max(n,o.a),i=e.Math.max(i,o.b);this.a=new gq(r,a,n-r,i-a)}function Jht(t,e){var n,i,r,a;for(i=new gd(t.b);i.a0&&EI(e,42)&&(t.a.qj(),a=null==(c=(u=YP(e,42)).cd())?0:q5(c),o=DD(t.a,a),n=t.a.d[o]))for(i=YP(n.g,367),l=n.i,s=0;s=2)for(n=oD((i=a.Kc()).Pb());i.Ob();)o=n,n=oD(i.Pb()),r=e.Math.min(r,(dz(n),n-(dz(o),o)));return r}function fft(t,e){var n,i,r,a,o;HW(i=new x_,e,i.c.b,i.c);do{for(xO(0!=i.b),n=YP(HJ(i,i.a.a),86),t.b[n.g]=1,a=Wet(n.d,0);a.b!=a.d.c;)o=(r=YP(kK(a),188)).c,1==t.b[o.g]?DB(t.a,r):2==t.b[o.g]?t.b[o.g]=1:HW(i,o,i.c.b,i.c)}while(0!=i.b)}function dft(t,e){var n,i,r;if(JS(e)===JS(v$(t)))return!0;if(!EI(e,15)||(i=YP(e,15),(r=t.gc())!=i.gc()))return!1;if(EI(i,54)){for(n=0;n0&&(r=n),o=new gd(t.f.e);o.a0&&a0):a<0&&-a0)}function Cft(t,e,n,i){var r,a,o,s,c,u;for(r=(e-t.d)/t.c.c.length,a=0,t.a+=n,t.d=e,u=new gd(t.c);u.a=0;e-=2)for(n=0;n<=e;n+=2)(t.b[n]>t.b[n+2]||t.b[n]===t.b[n+2]&&t.b[n+1]>t.b[n+3])&&(i=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=i,i=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=i);t.c=!0}}function Oft(t,e){var n,i,r,a,o,s,c;for(a=(1==e?tGt:JUt).a.ec().Kc();a.Ob();)for(r=YP(a.Pb(),103),s=YP(DX(t.f.c,r),21).Kc();s.Ob();)switch(o=YP(s.Pb(),46),i=YP(o.b,81),c=YP(o.a,189),n=c.c,r.g){case 2:case 1:i.g.d+=n;break;case 4:case 3:i.g.c+=n}}function Dft(t,e){var n,i,r,a,o,s,c,u,l;for(u=-1,l=0,s=0,c=(o=t).length;s0&&++l;++u}return l}function Nft(t){var e;return(e=new xL(Ix(t.gm))).a+="@",pA(e,(q5(t)>>>0).toString(16)),t.kh()?(e.a+=" (eProxyURI: ",gA(e,t.qh()),t.$g()&&(e.a+=" eClass: ",gA(e,t.$g())),e.a+=")"):t.$g()&&(e.a+=" (eClass: ",gA(e,t.$g()),e.a+=")"),e.a}function Pft(t){var e,n,i;if(t.e)throw ow(new Km((rD(vzt),zTt+vzt.k+qTt)));for(t.d==(X8(),Wee)&&Qvt(t,Yee),n=new gd(t.a.a);n.a=0)return r;for(a=1,o=new gd(n.j);o.a0&&e.ue((CG(r-1,t.c.length),YP(t.c[r-1],10)),a)>0;)UW(t,r,(CG(r-1,t.c.length),YP(t.c[r-1],10))),--r;CG(r,t.c.length),t.c[r]=a}n.a=new tw,n.b=new tw}function zft(t,e,n){var i;if(2==(t.c-t.b&t.a.length-1))e==(_xt(),bie)||e==pie?(FJ(YP(y5(t),15),(Prt(),Mne)),FJ(YP(y5(t),15),Ine)):(FJ(YP(y5(t),15),(Prt(),Ine)),FJ(YP(y5(t),15),Mne));else for(i=new Uz(t);i.a!=i.b;)FJ(YP(c8(i),15),n)}function qft(t,e){var n,i,r,a,o,s;for(o=new YY(i=KP(new Mb(t)),i.c.length),s=new YY(r=KP(new Mb(e)),r.c.length),a=null;o.b>0&&s.b>0&&(xO(o.b>0),n=YP(o.a.Xb(o.c=--o.b),33),xO(s.b>0),n==YP(s.a.Xb(s.c=--s.b),33));)a=n;return a}function Hft(t,n){var i,r,a,o;return a=t.a*bTt+1502*t.b,o=t.b*bTt+11,a+=i=e.Math.floor(o*wTt),o-=i*yTt,a%=yTt,t.a=a,t.b=o,n<=24?e.Math.floor(t.a*B$t[n]):((r=t.a*(1<=2147483648&&(r-=iTt),r)}function Uft(t,e,n){var i,r,a,o;qG(t,e)>qG(t,n)?(i=Q7(n,(_xt(),pie)),t.d=i.dc()?0:VB(YP(i.Xb(0),11)),o=Q7(e,Pie),t.b=o.dc()?0:VB(YP(o.Xb(0),11))):(r=Q7(n,(_xt(),Pie)),t.d=r.dc()?0:VB(YP(r.Xb(0),11)),a=Q7(e,pie),t.b=a.dc()?0:VB(YP(a.Xb(0),11)))}function Gft(t){var e,n,i,r,a,o,s;if(t&&(e=t.Hh(iFt))&&null!=(o=sD(gtt((!e.b&&(e.b=new $O((Ikt(),Coe),Zoe,e)),e.b),"conversionDelegates")))){for(s=new Jb,r=0,a=(i=Cbt(o,"\\w+")).length;r>1,t.k=i-1>>1}(this,this.d,this.c),function(t){var e,n,i,r,a,o,s;for(n=NM(t.e),a=DI(MO(lI(DM(t.e)),t.d*t.a,t.c*t.b),-.5),e=n.a-a.a,r=n.b-a.b,s=0;s0&&Vmt(this,a)}function Qft(t,e,n,i,r,a){var o,s,c;if(!r[e.b]){for(r[e.b]=!0,!(o=i)&&(o=new zX),QP(o.e,e),c=a[e.b].Kc();c.Ob();)(s=YP(c.Pb(),282)).d!=n&&s.c!=n&&(s.c!=e&&Qft(t,s.c,e,o,r,a),s.d!=e&&Qft(t,s.d,e,o,r,a),QP(o.c,s),v4(o.d,s.b));return o}return null}function Zft(t){var e,n,i;for(e=0,n=new gd(t.e);n.a=2}function Jft(t){var e,n;try{return null==t?e_t:k9(t)}catch(i){if(EI(i=b4(i),102))return e=i,n=Ix(H5(t))+"@"+(r_(),(Mnt(t)>>>0).toString(16)),Aet(E4(),(P_(),"Exception during lenientFormat for "+n),e),"<"+n+" threw "+Ix(e.gm)+">";throw ow(i)}}function tdt(t){switch(t.g){case 0:return new nh;case 1:return new Ql;case 2:return new eE;case 3:return new Aa;case 4:return new sN;case 5:return new ih;default:throw ow(new Ym("No implementation is available for the layerer "+(null!=t.f?t.f:""+t.g)))}}function edt(t,e,n){var i,r,a;for(a=new gd(t.t);a.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&DB(e,i.b));for(r=new gd(t.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&DB(n,i.a))}function ndt(t){var e,n,i;if(null==t.g&&(t.d=t.si(t.f),aQ(t,t.d),t.c))return t.f;if(i=(e=YP(t.g[t.i-1],47)).Pb(),t.e=e,(n=t.si(i)).Ob())t.d=n,aQ(t,n);else for(t.d=null;!e.Ob()&&(L$(t.g,--t.i,null),0!=t.i);)e=YP(t.g[t.i-1],47);return i}function idt(t,n,i,r){var a,o,s;for(Af(a=new Jnt(t),(uct(),DGt)),s5(a,(Tkt(),xVt),n),s5(a,DVt,r),s5(a,(hkt(),c0t),(Oot(),tie)),s5(a,bVt,n.c),s5(a,wVt,n.d),Fgt(n,a),s=e.Math.floor(i/2),o=new gd(a.j);o.a=0?t._g(i,!0,!0):Qlt(t,a,!0),153),YP(r,215).ml(e,n)}function gdt(t,e,n){tst(n,"Eades radial",1),n.n&&e&&WG(n,LY(e),(x6(),gre)),t.d=YP(yft(e,(QO(),e6t)),33),t.c=Qm(oD(yft(e,(Nrt(),q6t)))),t.e=Unt(YP(yft(e,H6t),293)),t.a=function(t){switch(t.g){case 0:return new Uo;case 1:return new Go;default:throw ow(new Ym(pOt+(null!=t.f?t.f:""+t.g)))}}(YP(yft(e,G6t),426)),t.b=function(t){switch(t.g){case 1:return new Ro;case 2:return new $o;case 3:return new jo;case 0:return null;default:throw ow(new Ym(pOt+(null!=t.f?t.f:""+t.g)))}}(YP(yft(e,j6t),340)),function(t){var e,n,i,r,a;if(i=0,r=uSt,t.b)for(e=0;e<360;e++)n=.017453292519943295*e,Rbt(t,t.d,0,0,uOt,n),(a=t.b.ig(t.d))0),a.a.Xb(a.c=--a.b),WD(a,r),xO(a.b0);n++);if(n>0&&n0);e++);return e>0&&n>16!=6&&e){if(tat(t,e))throw ow(new Ym(kNt+xht(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Yrt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=gnt(e,t,6,i)),(i=SD(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,6,e,e))}function xdt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=9&&e){if(tat(t,e))throw ow(new Ym(kNt+rbt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Wrt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=gnt(e,t,9,i)),(i=AD(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,9,e,e))}function kdt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(tat(t,e))throw ow(new Ym(kNt+cmt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?nat(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=gnt(e,t,12,i)),(i=CD(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,3,e,e))}function _dt(t){var e,n,i,r,a;if(i=oat(t),null==(a=t.j)&&i)return t.$j()?null:i.zj();if(EI(i,148)){if((n=i.Aj())&&(r=n.Nh())!=t.i){if((e=YP(i,148)).Ej())try{t.g=r.Kh(e,a)}catch(e){if(!EI(e=b4(e),78))throw ow(e);t.g=null}t.i=r}return t.g}return null}function Edt(t){var e;return QP(e=new Jb,new XE(new YC(t.c,t.d),new YC(t.c+t.b,t.d))),QP(e,new XE(new YC(t.c,t.d),new YC(t.c,t.d+t.a))),QP(e,new XE(new YC(t.c+t.b,t.d+t.a),new YC(t.c+t.b,t.d))),QP(e,new XE(new YC(t.c+t.b,t.d+t.a),new YC(t.c,t.d+t.a))),e}function Tdt(t,e,n,i){var r,a,o;if(o=Fat(e,n),i.c[i.c.length]=e,-1==t.j[o.p]||2==t.j[o.p]||t.a[e.p])return i;for(t.j[o.p]=-1,a=new Sj(cL(t9(o).a.Kc(),new l));Ght(a);)if(!KW(r=YP(pX(a),17))&&(KW(r)||r.c.i.c!=r.d.i.c)&&r!=e)return Tdt(t,r,o,i);return i}function Cdt(t,e,n){var i,r;for(r=e.a.ec().Kc();r.Ob();)i=YP(r.Pb(),79),!YP(B$(t.b,i),266)&&(kU(Nst(i))==kU(Fst(i))?Ugt(t,i,n):Nst(i)==kU(Fst(i))?null==B$(t.c,i)&&null!=B$(t.b,Fst(i))&&Rvt(t,i,n,!1):null==B$(t.d,i)&&null!=B$(t.b,Nst(i))&&Rvt(t,i,n,!0))}function Sdt(t,e){var n,i,r,a,o,s,c;for(r=t.Kc();r.Ob();)for(i=YP(r.Pb(),10),KU(s=new Ect,i),llt(s,(_xt(),pie)),s5(s,(Tkt(),AVt),(mL(),!0)),o=e.Kc();o.Ob();)a=YP(o.Pb(),10),KU(c=new Ect,a),llt(c,Pie),s5(c,AVt,!0),s5(n=new wH,AVt,!0),GU(n,s),UU(n,c)}function Adt(t,e,n,i){var r,a,o,s;r=Ptt(t,e,n),a=Ptt(t,n,e),o=YP(B$(t.c,e),112),s=YP(B$(t.c,n),112),r0&&g.a<=0){c.c=HV(Rjt,Zkt,1,0,5,1),c.c[c.c.length]=g;break}(d=g.i-g.d)>=s&&(d>s&&(c.c=HV(Rjt,Zkt,1,0,5,1),s=d),c.c[c.c.length]=g)}0!=c.c.length&&(o=YP(mF(c,znt(r,c.c.length)),112),aU(m.a,o),o.g=l++,Qwt(o,e,n,i),c.c=HV(Rjt,Zkt,1,0,5,1))}for(b=t.c.length+1,f=new gd(t);f.ai.b.g&&(a.c[a.c.length]=i);return a}function Ldt(){Ldt=I,H8t=new BC("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),q8t=new BC("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),G8t=new BC("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),U8t=new BC("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Y8t=new BC("WHOLE_DRAWING",4)}function Odt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=11&&e){if(tat(t,e))throw ow(new Ym(kNt+ibt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?iat(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=gnt(e,t,10,i)),(i=dN(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,11,e,e))}function Ddt(t,e,n){return ipt(),(!i3(t,e)||!i3(t,n))&&(Xvt(new YC(t.c,t.d),new YC(t.c+t.b,t.d),e,n)||Xvt(new YC(t.c+t.b,t.d),new YC(t.c+t.b,t.d+t.a),e,n)||Xvt(new YC(t.c+t.b,t.d+t.a),new YC(t.c,t.d+t.a),e,n)||Xvt(new YC(t.c,t.d+t.a),new YC(t.c,t.d),e,n))}function Ndt(t,e){var n,i,r,a;if(!t.dc())for(n=0,i=t.gc();n>16!=7&&e){if(tat(t,e))throw ow(new Ym(kNt+Yct(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Krt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=YP(e,49).gh(t,1,zre,i)),(i=bj(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,7,e,e))}function Udt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(tat(t,e))throw ow(new Ym(kNt+n7(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Vrt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=YP(e,49).gh(t,0,Yre,i)),(i=wj(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,3,e,e))}function Gdt(t,e){var n,i,r,a,o,s,c,u,l;return yht(),e.d>t.d&&(s=t,t=e,e=s),e.d<63?function(t,e){var n,i,r,a,o,s,c,u,l;return a=(n=t.d)+(i=e.d),o=t.e!=e.e?-1:1,2==a?(l=HF(c=V7(jG(t.a[0],nTt),jG(e.a[0],nTt))),0==(u=HF(zj(c,32)))?new cV(o,l):new ER(o,2,M4($v(jce,1),vEt,25,15,[l,u]))):(G8(t.a,n,e.a,i,r=HV(jce,vEt,25,a,15,1)),vY(s=new ER(o,a,r)),s)}(t,e):(u=gX(t,o=(-2&t.d)<<4),l=gX(e,o),i=yyt(t,dX(u,o)),r=yyt(e,dX(l,o)),c=Gdt(u,l),n=Gdt(i,r),a=dX(a=xmt(xmt(a=Gdt(yyt(u,i),yyt(r,l)),c),n),o),xmt(xmt(c=dX(c,o<<1),a),n))}function Ydt(t,e,n){var i,r,a,o,s;for(o=H8(t,n),s=HV(IGt,bAt,10,e.length,0,1),i=0,a=o.Kc();a.Ob();)Vm(aD(Sst(r=YP(a.Pb(),11),(Tkt(),cVt))))&&(s[i++]=YP(Sst(r,MVt),10));if(i=0;r+=n?1:-1)a|=e.c.Sf(s,r,n,i&&!Vm(aD(Sst(e.j,(Tkt(),rVt))))&&!Vm(aD(Sst(e.j,(Tkt(),PVt))))),a|=e.q._f(s,r,n),a|=zpt(t,s[r],n,i);return NR(t.c,e),a}function Vdt(t,e,n){var i,r,a,o,s,c,u,l;for(u=0,l=(c=XY(t.j)).length;u1&&(t.a=!0),aj(YP(n.b,65),gN(lI(YP(e.b,65).c),DI(pN(lI(YP(n.b,65).a),YP(e.b,65).a),r))),dG(t,e),Jdt(t,n)}function tgt(t){var e,n,i,r,a,o;for(r=new gd(t.a.a);r.a0&&a>0?e++:i>0?n++:a>0?r++:n++}qq(),KM(t.j,new fi)}function ngt(t,e){var n,i,r,a,o,s,c,u,l;for(s=e.j,o=e.g,c=YP(mF(s,s.c.length-1),113),CG(0,s.c.length),u=rrt(t,o,c,l=YP(s.c[0],113)),a=1;au&&(c=n,l=r,u=i);e.a=l,e.c=c}function igt(t){if(!t.a.d||!t.a.e)throw ow(new Km((rD(Wzt),Wzt.k+" must have a source and target "+(rD(Xzt),Xzt.k+" specified."))));if(t.a.d==t.a.e)throw ow(new Km("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return HL(t.a.d.g,t.a),HL(t.a.e.b,t.a),t.a}function rgt(t,e,n){var i,r,a,o,s,c;if(i=0,0!=e.b&&0!=n.b){a=Wet(e,0),o=Wet(n,0),s=Qm(oD(kK(a))),c=Qm(oD(kK(o))),r=!0;do{if(s>c-t.b&&sc-t.a&&se.a&&(i.Hc((lot(),ete))?t.c.a+=(n.a-e.a)/2:i.Hc(ite)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((lot(),ate))?t.c.b+=(n.b-e.b)/2:i.Hc(rte)&&(t.c.b+=n.b-e.b)),YP(Sst(t,(Tkt(),aVt)),21).Hc((Zgt(),mXt))&&(n.a>e.a||n.b>e.b))for(o=new gd(t.a);o.a0&&++f;++h}return f}function hgt(t,e){var n,i,r,a;return vE(),e?e==(evt(),Hse)||(e==Tse||e==_se||e==Ese)&&t!=kse?new pxt(t,e):((n=(i=YP(e,677)).pk())||(Xz(xZ((lut(),rse),e)),n=i.pk()),!n.i&&(n.i=new tw),!(r=YP(ZS(LH((a=n.i).f,t)),1942))&&Iz(a,t,r=new pxt(t,e)),r):hse}function fgt(t,e){var n,i,r,a,o,s,c,u;for(s=YP(Sst(t,(Tkt(),xVt)),11),c=C5(M4($v(D9t,1),m_t,8,0,[s.i.n,s.n,s.a])).a,u=t.i.n.b,r=0,a=(i=_Y(t.e)).length;r0&&(a+=(o=YP(mF(this.b,0),167)).o,r+=o.p),a*=2,r*=2,n>1?a=nU(e.Math.ceil(a*n)):r=nU(e.Math.ceil(r/n)),this.a=new rtt(a,r)}function xgt(t,n,i,r,a,o){var s,c,u,l,h,f,d,g,p,b;for(l=r,n.j&&n.o?(p=(d=YP(B$(t.f,n.A),57)).d.c+d.d.b,--l):p=n.a.c+n.a.b,h=a,i.q&&i.o?(u=(d=YP(B$(t.f,i.C),57)).d.c,++h):u=i.a.c,g=p+(c=(u-p)/e.Math.max(2,h-l)),f=l;f=0;o+=r?1:-1){for(s=e[o],c=i==(_xt(),pie)?r?Q7(s,i):k3(Q7(s,i)):r?k3(Q7(s,i)):Q7(s,i),a&&(t.c[s.p]=c.gc()),h=c.Kc();h.Ob();)l=YP(h.Pb(),11),t.d[l.p]=u++;v4(n,c)}}function _gt(t,e,n){var i,r,a,o,s,c,u,l;for(a=Qm(oD(t.b.Kc().Pb())),u=Qm(oD(function(t){var e;if(t){if((e=t).dc())throw ow(new Nw);return e.Xb(e.gc()-1)}return kG(t.Kc())}(e.b))),i=DI(lI(t.a),u-n),r=DI(lI(e.a),n-a),DI(l=gN(i,r),1/(u-a)),this.a=l,this.b=new Jb,s=!0,(o=t.b.Kc()).Pb();o.Ob();)c=Qm(oD(o.Pb())),s&&c-n>YLt&&(this.b.Fc(n),s=!1),this.b.Fc(c);s&&this.b.Fc(n)}function Egt(t){var n,i,r,a;if(function(t,n){var i,r,a,o,s,c,u;for(a=HV(jce,vEt,25,t.e.a.c.length,15,1),s=new gd(t.e.a);s.a0){for(rv(t.c);Kht(t,YP(BG(new gd(t.e.a)),121))>5,e&=31,i>=t.d)return t.e<0?(upt(),a$t):(upt(),l$t);if(a=t.d-i,function(t,e,n,i,r){var a,o,s;for(a=!0,o=0;o>>r|n[o+i+1]<>>r,++o}}(r=HV(jce,vEt,25,a+1,15,1),a,t.a,i,e),t.e<0){for(n=0;n0&&t.a[n]<<32-e){for(n=0;n=0)&&(!(n=Zmt((lut(),rse),r,e))||((i=n.Zj())>1||-1==i)&&3!=mz(xZ(rse,n))))}function Igt(t,e,n,i){var r,a,o,s,c;return s=Zot(YP(JJ((!e.b&&(e.b=new CN(Hre,e,4,7)),e.b),0),82)),c=Zot(YP(JJ((!e.c&&(e.c=new CN(Hre,e,5,8)),e.c),0),82)),kU(s)==kU(c)||zJ(c,s)?null:(o=wU(e))==n?i:(a=YP(B$(t.a,o),10))&&(r=a.e)?r:null}function Lgt(t,e,n){var i,r,a,o,s;if((a=t[function(t,e){return t?e-1:0}(n,t.length)])[0].k==(uct(),OGt))for(r=Xv(n,a.length),s=e.j,i=0;i>24}(t));break;case 2:t.g=p4(function(t){if(2!=t.p)throw ow(new Mw);return HF(t.f)&oEt}(t));break;case 3:t.g=function(t){if(3!=t.p)throw ow(new Mw);return t.e}(t);break;case 4:t.g=new td(function(t){if(4!=t.p)throw ow(new Mw);return t.e}(t));break;case 6:t.g=pet(function(t){if(6!=t.p)throw ow(new Mw);return t.f}(t));break;case 5:t.g=u7(function(t){if(5!=t.p)throw ow(new Mw);return HF(t.f)}(t));break;case 7:t.g=l7(function(t){if(7!=t.p)throw ow(new Mw);return HF(t.f)<<16>>16}(t))}return t.g}function Ngt(t){if(null==t.n)switch(t.p){case 0:t.n=function(t){if(0!=t.p)throw ow(new Mw);return oA(t.k,0)}(t)?(mL(),SRt):(mL(),CRt);break;case 1:t.n=QZ(function(t){if(1!=t.p)throw ow(new Mw);return HF(t.k)<<24>>24}(t));break;case 2:t.n=p4(function(t){if(2!=t.p)throw ow(new Mw);return HF(t.k)&oEt}(t));break;case 3:t.n=function(t){if(3!=t.p)throw ow(new Mw);return t.j}(t);break;case 4:t.n=new td(function(t){if(4!=t.p)throw ow(new Mw);return t.j}(t));break;case 6:t.n=pet(function(t){if(6!=t.p)throw ow(new Mw);return t.k}(t));break;case 5:t.n=u7(function(t){if(5!=t.p)throw ow(new Mw);return HF(t.k)}(t));break;case 7:t.n=l7(function(t){if(7!=t.p)throw ow(new Mw);return HF(t.k)<<16>>16}(t))}return t.n}function Pgt(t){var e,n,i,r,a,o;for(r=new gd(t.a.a);r.a0&&(i[0]+=t.d,s-=i[0]),i[2]>0&&(i[2]+=t.d,s-=i[2]),o=e.Math.max(0,s),i[1]=e.Math.max(i[1],s),vX(t,Zzt,a.c+r.b+i[0]-(i[1]-s)/2,i),n==Zzt&&(t.c.b=o,t.c.c=a.c+r.b+(o-s)/2)}function $gt(){this.c=HV(qce,JEt,25,(_xt(),M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie])).length,15,1),this.b=HV(qce,JEt,25,M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie]).length,15,1),this.a=HV(qce,JEt,25,M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie]).length,15,1),jE(this.c,KEt),jE(this.b,WEt),jE(this.a,WEt)}function zgt(t,e,n){var i,r,a,o;if(e<=n?(r=e,a=n):(r=n,a=e),i=0,null==t.b)t.b=HV(jce,vEt,25,2,15,1),t.b[0]=r,t.b[1]=a,t.c=!0;else{if(i=t.b.length,t.b[i-1]+1==r)return void(t.b[i-1]=a);o=HV(jce,vEt,25,i+2,15,1),rmt(t.b,0,o,0,i),t.b=o,t.b[i-1]>=r&&(t.c=!1,t.a=!1),t.b[i++]=r,t.b[i]=a,t.c||Lft(t)}}function qgt(t,e,n){var i,r,a,o,s,c;if(!mK(e)){for(tst(c=Y2(n,(EI(e,14)?YP(e,14).gc():NK(e.Kc()))/t.a|0),eOt,1),s=new Mo,o=0,a=e.Kc();a.Ob();)i=YP(a.Pb(),86),s=W1(M4($v(Hjt,1),Zkt,20,0,[s,new Dp(i)])),o1;)Qgt(r,r.i-1);return i}function Wgt(t,e){var n,i,r,a,o,s;for(n=new Zb,r=new gd(t.b);r.at.d[o.p]&&(n+=RW(t.b,a),EK(t.a,u7(a)));for(;!tv(t.a);)VZ(t.b,YP(SR(t.a),19).a)}return n}function Vgt(t,e,n){var i,r,a,o;for(a=(!e.a&&(e.a=new gR(Qre,e,10,11)),e.a).i,r=new zI((!e.a&&(e.a=new gR(Qre,e,10,11)),e.a));r.e!=r.i.gc();)0==(!(i=YP(ant(r),33)).a&&(i.a=new gR(Qre,i,10,11)),i.a).i||(a+=Vgt(t,i,!1));if(n)for(o=kU(e);o;)a+=(!o.a&&(o.a=new gR(Qre,o,10,11)),o.a).i,o=kU(o);return a}function Qgt(t,e){var n,i,r,a;return t.ej()?(i=null,r=t.fj(),t.ij()&&(i=t.kj(t.pi(e),null)),n=t.Zi(4,a=Trt(t,e),null,e,r),t.bj()&&null!=a&&(i=t.dj(a,i)),i?(i.Ei(n),i.Fi()):t.$i(n),a):(a=Trt(t,e),t.bj()&&null!=a&&(i=t.dj(a,null))&&i.Fi(),a)}function Zgt(){Zgt=I,wXt=new KT("COMMENTS",0),mXt=new KT("EXTERNAL_PORTS",1),vXt=new KT("HYPEREDGES",2),xXt=new KT("HYPERNODES",3),kXt=new KT("NON_FREE_PORTS",4),_Xt=new KT("NORTH_SOUTH_PORTS",5),TXt=new KT(tMt,6),bXt=new KT("CENTER_LABELS",7),yXt=new KT("END_LABELS",8),EXt=new KT("PARTITIONS",9)}function Jgt(t){var e,n,i,r,a;for(r=new Jb,e=new bF((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a)),i=new Sj(cL(cdt(t).a.Kc(),new l));Ght(i);)EI(JJ((!(n=YP(pX(i),79)).b&&(n.b=new CN(Hre,n,4,7)),n.b),0),186)||(a=Zot(YP(JJ((!n.c&&(n.c=new CN(Hre,n,5,8)),n.c),0),82)),e.a._b(a)||(r.c[r.c.length]=a));return r}function tpt(t){var e,n,i,r,a;for(r=new Yw,e=new bF((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a)),i=new Sj(cL(cdt(t).a.Kc(),new l));Ght(i);)EI(JJ((!(n=YP(pX(i),79)).b&&(n.b=new CN(Hre,n,4,7)),n.b),0),186)||(a=Zot(YP(JJ((!n.c&&(n.c=new CN(Hre,n,5,8)),n.c),0),82)),e.a._b(a)||r.a.zc(a,r));return r}function ept(t,n){var i,r,a;kU(t)&&(a=YP(Sst(n,(hkt(),Y1t)),174),JS(yft(t,c0t))===JS((Oot(),rie))&&Cnt(t,c0t,iie),hE(),r=axt(new Hm(kU(t)),new QL(kU(t)?new Hm(kU(t)):null,t),!1,!0),W0(a,(Ttt(),Hie)),(i=YP(Sst(n,W1t),8)).a=e.Math.max(r.a,i.a),i.b=e.Math.max(r.b,i.b))}function npt(){npt=I,WKt=new bq(MCt,0,(_xt(),bie),bie),QKt=new bq(LCt,1,Die,Die),KKt=new bq(ICt,2,pie,pie),tWt=new bq(OCt,3,Pie,Pie),VKt=new bq("NORTH_WEST_CORNER",4,Pie,bie),XKt=new bq("NORTH_EAST_CORNER",5,bie,pie),JKt=new bq("SOUTH_WEST_CORNER",6,Die,Pie),ZKt=new bq("SOUTH_EAST_CORNER",7,pie,Die)}function ipt(){ipt=I,L9t=M4($v($ce,1),VEt,25,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),e.Math.pow(2,-65)}function rpt(t,e){var n,i,r,a,o;if(0==t.c.length)return new pS(u7(0),u7(0));for(n=(CG(0,t.c.length),YP(t.c[0],11)).j,o=0,a=e.g,i=e.g+1;o=l&&(u=r);u&&(h=e.Math.max(h,u.a.o.a)),h>d&&(f=l,d=h)}return f}function opt(t,e){var n;switch(n=null,e.g){case 1:t.e.Xe((Ekt(),cee))&&(n=YP(t.e.We(cee),249));break;case 3:t.e.Xe((Ekt(),uee))&&(n=YP(t.e.We(uee),249));break;case 2:t.e.Xe((Ekt(),see))&&(n=YP(t.e.We(see),249));break;case 4:t.e.Xe((Ekt(),lee))&&(n=YP(t.e.We(lee),249))}return!n&&(n=YP(t.e.We((Ekt(),aee)),249)),n}function spt(t,e,n){var i,r,a,o,s,c;for(e.p=1,r=e.c,c=Q9(e,(r0(),V2t)).Kc();c.Ob();)for(i=new gd(YP(c.Pb(),11).g);i.aSOt?KM(u,t.b):r<=SOt&&r>AOt?KM(u,t.d):r<=AOt&&r>MOt?KM(u,t.c):r<=MOt&&KM(u,t.a),o=cpt(t,u,o);return a}function upt(){var t;for(upt=I,o$t=new cV(1,1),c$t=new cV(1,10),l$t=new cV(0,0),a$t=new cV(-1,1),s$t=M4($v(p$t,1),m_t,91,0,[l$t,o$t,new cV(1,2),new cV(1,3),new cV(1,4),new cV(1,5),new cV(1,6),new cV(1,7),new cV(1,8),new cV(1,9),c$t]),u$t=HV(p$t,m_t,91,32,0,1),t=0;t1&&(i=new YC(r,n.b),DB(e.a,i)),Z1(e.a,M4($v(D9t,1),m_t,8,0,[h,l]))}function bpt(t){iE(t,new Vot(tx(Vv(Jv(Zv(new gs,KDt),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Xs))),IY(t,KDt,oSt,Rie),IY(t,KDt,ASt,15),IY(t,KDt,ISt,u7(0)),IY(t,KDt,aSt,TSt)}function wpt(){var t,e,n,i,r,a;for(wpt=I,ece=HV(zce,CNt,25,255,15,1),nce=HV(Fce,rEt,25,16,15,1),e=0;e<255;e++)ece[e]=-1;for(n=57;n>=48;n--)ece[n]=n-48<<24>>24;for(i=70;i>=65;i--)ece[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)ece[r]=r-97+10<<24>>24;for(a=0;a<10;a++)nce[a]=48+a&oEt;for(t=10;t<=15;t++)nce[t]=65+t-10&oEt}function ypt(t,e,n){var i,r,a,o,s,c,u,l;return s=e.i-t.g/2,c=n.i-t.g/2,u=e.j-t.g/2,l=n.j-t.g/2,a=e.g+t.g/2,o=n.g+t.g/2,i=e.f+t.g/2,r=n.f+t.g/2,s=0;--i)for(e=n[i],r=0;r>19)return"-"+xpt(r5(t));for(n=t,i="";0!=n.l||0!=n.m||0!=n.h;){if(n=Kmt(n,lX(zEt),!0),e=""+tk(vRt),0!=n.l||0!=n.m||0!=n.h)for(r=9-e.length;r>0;r--)e="0"+e;i=e+i}return i}function kpt(t,n,i,r){var a,o,s,c;if(NK((CP(),new Sj(cL(t9(n).a.Kc(),new l))))>=t.a||!Bot(n,i))return-1;if(mK(YP(r.Kb(n),20)))return 1;for(a=0,s=YP(r.Kb(n),20).Kc();s.Ob();)if(-1==(c=kpt(t,(o=YP(s.Pb(),17)).c.i==n?o.d.i:o.c.i,i,r))||(a=e.Math.max(a,c))>t.c-1)return-1;return a+1}function _pt(t,e){var n,i,r,a,o,s;if(JS(e)===JS(t))return!0;if(!EI(e,15)||(i=YP(e,15),s=t.gc(),i.gc()!=s))return!1;if(o=i.Kc(),t.ni()){for(n=0;n0)if(t.qj(),null!=e){for(a=0;a0&&(t.a=s+(f-1)*r,e.c.b+=t.a,e.f.b+=t.a),0!=d.a.gc()&&(f=Cvt(new h$(1,r),e,d,g,e.f.b+s-e.c.b))>0&&(e.f.b+=s+(f-1)*r)}(t,n,r),function(t){var e,n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E;for(m=new Jb,h=new gd(t.b);h.a>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw ow(new Ev("Invalid hexadecimal"))}}function Spt(t,e,n){var i,r,a,o;for(tst(n,"Processor order nodes",2),t.a=Qm(oD(Sst(e,(eft(),z5t)))),r=new x_,o=Wet(e.b,0);o.b!=o.d.c;)Vm(aD(Sst(a=YP(kK(o),86),(Jmt(),x5t))))&&HW(r,a,r.c.b,r.c);xO(0!=r.b),Tmt(t,i=YP(r.a.a.c,86)),!n.b&&F0(n,1),nbt(t,i,0-Qm(oD(Sst(i,(Jmt(),d5t))))/2,0),!n.b&&F0(n,1),Dct(n)}function Apt(){Apt=I,Gzt=new nT("SPIRAL",0),$zt=new nT("LINE_BY_LINE",1),zzt=new nT("MANHATTAN",2),Rzt=new nT("JITTER",3),Hzt=new nT("QUADRANTS_LINE_BY_LINE",4),Uzt=new nT("QUADRANTS_MANHATTAN",5),qzt=new nT("QUADRANTS_JITTER",6),jzt=new nT("COMBINE_LINE_BY_LINE_MANHATTAN",7),Fzt=new nT("COMBINE_JITTER_MANHATTAN",8)}function Mpt(t,e,n,i){var r,a,o,s,c,u;for(c=jat(t,n),u=jat(e,n),r=!1;c&&u&&(i||yrt(c,u,n));)o=jat(c,n),s=jat(u,n),hZ(e),hZ(t),a=c.c,svt(c,!1),svt(u,!1),n?(Frt(e,u.p,a),e.p=u.p,Frt(t,c.p+1,a),t.p=c.p):(Frt(t,c.p,a),t.p=c.p,Frt(e,u.p+1,a),e.p=u.p),YU(c,null),YU(u,null),c=o,u=s,r=!0;return r}function Ipt(t,e,n,i){var r,a,o,s,c;for(r=!1,a=!1,s=new gd(i.j);s.a=e.length)throw ow(new jm("Greedy SwitchDecider: Free layer not in graph."));this.c=e[t],this.e=new JN(i),r2(this.e,this.c,(_xt(),Pie)),this.i=new JN(i),r2(this.i,this.c,pie),this.f=new $F(this.c),this.a=!a&&r.i&&!r.s&&this.c[0].k==(uct(),OGt),this.a&&function(t,e,n){var i,r,a,o,s,c,u;s=(a=t.d.p).e,c=a.r,t.g=new JN(c),i=(o=t.d.o.c.p)>0?s[o-1]:HV(IGt,bAt,10,0,0,1),r=s[o],u=or.d.d+r.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))),i.b!=i.d.c&&(e=n);h&&(a=YP(B$(t.f,o.d.i),57),e.ba.d.d+a.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))}for(s=new Sj(cL(e9(d).a.Kc(),new l));Ght(s);)0!=(o=YP(pX(s),17)).a.b&&(e=YP(fO(o.a),8),o.d.j==(_xt(),bie)&&((b=new Nyt(e,new YC(e.a,r.d.d),r,o)).f.a=!0,b.a=o.d,p.c[p.c.length]=b),o.d.j==Die&&((b=new Nyt(e,new YC(e.a,r.d.d+r.d.a),r,o)).f.d=!0,b.a=o.d,p.c[p.c.length]=b))}return p}(t);break;case 3:r=new Jb,k_(aq(oq(qZ(qZ(new xF(null,new AG(t.d.b,16)),new Mr),new Ir),new Lr),new br),new Wg(r)),i=r;break;default:throw ow(new Km("Compaction not supported for "+n+" edges."))}(function(t,n){var i,r,a,o,s,c,u;if(0!=n.c.length){for(qq(),KF(n.c,n.c.length,null),r=YP(BG(a=new gd(n)),145);a.a0&&e0?a.a?n>(s=a.b.rf().a)&&(r=(n-s)/2,a.d.b=r,a.d.c=r):a.d.c=t.s+n:tR(t.u)&&((i=rst(a.b)).c<0&&(a.d.b=-i.c),i.c+i.b>a.b.rf().a&&(a.d.c=i.c+i.b-a.b.rf().a))}(t,n),a=null,u=null,c){for(u=a=YP((o=s.Kc()).Pb(),111);o.Ob();)u=YP(o.Pb(),111);a.d.b=0,u.d.c=0,h&&!a.a&&(a.d.c=0)}f&&(function(t){var n,i,r,a,o;for(n=0,i=0,o=t.Kc();o.Ob();)r=YP(o.Pb(),111),n=e.Math.max(n,r.d.b),i=e.Math.max(i,r.d.c);for(a=t.Kc();a.Ob();)(r=YP(a.Pb(),111)).d.b=n,r.d.c=i}(s),c&&(a.d.b=0,u.d.c=0))}function Upt(t,n){var i,r,a,o,s,c,u,l,h,f;if(s=YP(YP(DX(t.r,n),21),84),c=t.u.Hc((Tlt(),hie)),i=t.u.Hc(cie),r=t.u.Hc(sie),u=t.u.Hc(fie),f=t.B.Hc((Gbt(),ire)),l=!i&&!r&&(u||2==s.gc()),function(t,n){var i,r,a,o,s,c,u;for(c=YP(YP(DX(t.r,n),21),84).Kc();c.Ob();)(r=(s=YP(c.Pb(),111)).c?qB(s.c):0)>0?s.a?r>(u=s.b.rf().b)&&(t.v||1==s.c.d.c.length?(o=(r-u)/2,s.d.d=o,s.d.a=o):(i=(YP(mF(s.c.d,0),181).rf().b-u)/2,s.d.d=e.Math.max(0,i),s.d.a=r-i-u)):s.d.a=t.t+r:tR(t.u)&&((a=rst(s.b)).d<0&&(s.d.d=-a.d),a.d+a.a>s.b.rf().b&&(s.d.a=a.d+a.a-s.b.rf().b))}(t,n),h=null,a=null,c){for(a=h=YP((o=s.Kc()).Pb(),111);o.Ob();)a=YP(o.Pb(),111);h.d.d=0,a.d.a=0,l&&!h.a&&(h.d.a=0)}f&&(function(t){var n,i,r,a,o;for(i=0,n=0,o=t.Kc();o.Ob();)r=YP(o.Pb(),111),i=e.Math.max(i,r.d.d),n=e.Math.max(n,r.d.a);for(a=t.Kc();a.Ob();)(r=YP(a.Pb(),111)).d.d=i,r.d.a=n}(s),c&&(h.d.d=0,a.d.a=0))}function Gpt(t,e,n){var i,r,a,o,s;if(i=e.k,e.p>=0)return!1;if(e.p=n.b,QP(n.e,e),i==(uct(),NGt)||i==BGt)for(r=new gd(e.j);r.a1||-1==o)&&(a|=16),r.Bb&yNt&&(a|=64)),n.Bb&QEt&&(a|=DBt),a|=MNt):EI(e,457)?a|=512:(i=e.Bj())&&1&i.i&&(a|=256),512&t.Bb&&(a|=128),a}function Vpt(t,e){var n,i,r,a,o;for(t=null==t?e_t:(dz(t),t),r=0;rt.d[s.p]&&(n+=RW(t.b,a),EK(t.a,u7(a))):++o;for(n+=t.b.d*o;!tv(t.a);)VZ(t.b,YP(SR(t.a),19).a)}return n}function Zpt(t){var e,n,i,r,a,o,s;for(s=new tw,i=new gd(t.a.b);i.a=t.o)throw ow(new $w);o=e>>5,a=Rj(1,HF(Rj(31&e,1))),t.n[n][o]=r?RG(t.n[n][o],a):jG(t.n[n][o],uB(a)),a=Rj(a,1),t.n[n][o]=i?RG(t.n[n][o],a):jG(t.n[n][o],uB(a))}catch(i){throw EI(i=b4(i),320)?ow(new jm(PCt+t.o+"*"+t.p+BCt+e+Vkt+n+FCt)):ow(i)}}function nbt(t,n,i,r){var a,o;n&&(a=Qm(oD(Sst(n,(Jmt(),w5t))))+r,o=i+Qm(oD(Sst(n,d5t)))/2,s5(n,k5t,u7(HF(I3(e.Math.round(a))))),s5(n,_5t,u7(HF(I3(e.Math.round(o))))),0==n.d.b||nbt(t,YP(kI(new Np(Wet(new Dp(n).a.d,0))),86),i+Qm(oD(Sst(n,d5t)))+t.a,r+Qm(oD(Sst(n,g5t)))),null!=Sst(n,v5t)&&nbt(t,YP(Sst(n,v5t),86),i,r))}function ibt(t){var e,n,i;return 64&t.Db?bct(t):(e=new xL(cNt),(n=t.k)?pA(pA((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new gR(Vre,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new gR(Vre,t,1,7)),YP(JJ(t.n,0),137)).a)||pA(pA((e.a+=' "',e),i),'"'))),pA(Qx(pA(Qx(pA(Qx(pA(Qx((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function rbt(t){var e,n,i;return 64&t.Db?bct(t):(e=new xL(uNt),(n=t.k)?pA(pA((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new gR(Vre,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new gR(Vre,t,1,7)),YP(JJ(t.n,0),137)).a)||pA(pA((e.a+=' "',e),i),'"'))),pA(Qx(pA(Qx(pA(Qx(pA(Qx((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function abt(t,e){var n,i,r,a,o,s;if(null==e||0==e.length)return null;if(!(r=YP(eU(t.a,e),149))){for(i=new rd(new Vf(t.b).a.vc().Kc());i.a.Ob();)if(a=YP(i.a.Pb(),42),o=(n=YP(a.dd(),149)).c,s=e.length,NN(o.substr(o.length-s,s),e)&&(e.length==o.length||46==qz(o,o.length-e.length-1))){if(r)return null;r=n}r&&jU(t.a,e,r)}return r}function obt(t){var e,n,i;TO(t,(hkt(),j1t))&&!(i=YP(Sst(t,j1t),21)).dc()&&(n=new tP(e=YP(Sx(Gne),9),YP(QD(e,e.length),9),0),i.Hc((mft(),Rne))?W0(n,Rne):W0(n,$ne),i.Hc(Fne)||W0(n,Fne),i.Hc(Bne)?W0(n,Hne):i.Hc(Pne)?W0(n,qne):i.Hc(jne)&&W0(n,zne),i.Hc(Hne)?W0(n,Bne):i.Hc(qne)?W0(n,Pne):i.Hc(zne)&&W0(n,jne),s5(t,j1t,n))}function sbt(t){var e,n,i,r,a,o,s;for(r=YP(Sst(t,(Tkt(),lVt)),10),CG(0,(i=t.j).c.length),n=YP(i.c[0],11),o=new gd(r.j);o.ar.p?(llt(a,Die),a.d&&(s=a.o.b,e=a.a.b,a.a.b=s-e)):a.j==Die&&r.p>t.p&&(llt(a,bie),a.d&&(s=a.o.b,e=a.a.b,a.a.b=-(s-e)));break}return r}function cbt(t,e,n,i,r){var a,o,s,c,u,l,h;if(!(EI(e,239)||EI(e,354)||EI(e,186)))throw ow(new Ym("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return o=t.a/2,c=e.i+i-o,l=e.j+r-o,u=c+e.g+t.a,h=l+e.f+t.a,DB(a=new Iy,new YC(c,l)),DB(a,new YC(c,h)),DB(a,new YC(u,h)),DB(a,new YC(u,l)),n4(s=new Zht(a),e),n&&Iz(t.b,e,s),s}function ubt(t,e,n){var i,r,a,o,s,c,u,l;for(a=new YC(e,n),u=new gd(t.a);u.a1&&(i=new YC(r,n.b),DB(e.a,i)),Z1(e.a,M4($v(D9t,1),m_t,8,0,[h,l]))}function Ebt(t,e,n){var i,r,a,o,s,c;if(e){if(n<=-1){if(EI(i=_J(e.Tg(),-1-n),99))return YP(i,18);for(s=0,c=(o=YP(e.ah(i),153)).gc();s0){for(r=c.length;r>0&&""==c[r-1];)--r;r=40)&&function(t){var e,n,i,r,a,o,s;for(t.o=new Zb,i=new x_,o=new gd(t.e.a);o.a0,s=y9(e,a),UL(n?s.b:s.g,e),1==s9(s).c.length&&HW(i,s,i.c.b,i.c),r=new pS(a,e),EK(t.o,r),eZ(t.e.a,a))}(t),function(t){var e,n,i,r,a,o,s,c,u,l;for(u=t.e.a.c.length,a=new gd(t.e.a);a.a0&&DB(t.f,a)):(t.c[o]-=u+1,t.c[o]<=0&&t.a[o]>0&&DB(t.e,a))))}function Hbt(t,e,n){var i,r,a,o,s,c,u,l,h;for(a=new hV(e.c.length),u=new gd(e);u.a=0&&c0&&(SG(0,t.length),45==t.charCodeAt(0)||(SG(0,t.length),43==t.charCodeAt(0)))?1:0;in)throw ow(new Ev(YEt+t+'"'));return o}function twt(t){switch(t){case 100:return Okt(wjt,!0);case 68:return Okt(wjt,!1);case 119:return Okt(yjt,!0);case 87:return Okt(yjt,!1);case 115:return Okt(mjt,!0);case 83:return Okt(mjt,!1);case 99:return Okt(vjt,!0);case 67:return Okt(vjt,!1);case 105:return Okt(xjt,!0);case 73:return Okt(xjt,!1);default:throw ow(new Em(bjt+t.toString(16)))}}function ewt(t,e,n,i,r){n&&(!i||(t.c-t.b&t.a.length-1)>1)&&1==e&&YP(t.a[t.b],10).k==(uct(),DGt)?Nwt(YP(t.a[t.b],10),(Prt(),Mne)):i&&(!n||(t.c-t.b&t.a.length-1)>1)&&1==e&&YP(t.a[t.c-1&t.a.length-1],10).k==(uct(),DGt)?Nwt(YP(t.a[t.c-1&t.a.length-1],10),(Prt(),Ine)):2==(t.c-t.b&t.a.length-1)?(Nwt(YP(y5(t),10),(Prt(),Mne)),Nwt(YP(y5(t),10),Ine)):function(t,e){var n,i,r,a,o,s,c,u,l;for(c=aO(t.c-t.b&t.a.length-1),u=null,l=null,a=new Uz(t);a.a!=a.b;)r=YP(c8(a),10),n=(s=YP(Sst(r,(Tkt(),bVt)),11))?s.i:null,i=(o=YP(Sst(r,wVt),11))?o.i:null,(u!=n||l!=i)&&(gft(c,e),u=n,l=i),c.c[c.c.length]=r;gft(c,e)}(t,r),QK(t)}function nwt(t){var e,n,i,r,a,o,s;for(r=new Jb,i=new Sj(cL(n9(t.b).a.Kc(),new l));Ght(i);)KW(n=YP(pX(i),17))&&QP(r,new HX(n,fQ(t,n.c),fQ(t,n.d)));for(s=new rd(new Vf(t.e).a.vc().Kc());s.a.Ob();)e=YP(s.a.Pb(),42),(a=YP(e.dd(),113)).d.p=0;for(o=new rd(new Vf(t.e).a.vc().Kc());o.a.Ob();)e=YP(o.a.Pb(),42),0==(a=YP(e.dd(),113)).d.p&&QP(t.d,Pbt(t,a))}function iwt(t,e,n,i){var r,a,o,s,c;return o=t.eh(),r=null,(c=t.Zg())?!e||Ebt(t,e,n).Bb&QEt?c=null:(i=mnt(c.Vk(),t,i),t.uh(null),r=e.fh()):(o&&(c=o.fh()),e&&(r=e.fh())),c!=r&&c&&c.Zk(t),s=t.Vg(),t.Rg(e,n),c!=r&&r&&r.Yk(t),t.Lg()&&t.Mg()&&(o&&s>=0&&s!=n&&(a=new fR(t,1,s,o,null),i?i.Ei(a):i=a),n>=0&&(a=new fR(t,1,n,s==n?o:null,e),i?i.Ei(a):i=a)),i}function rwt(t){var e,n,i;if(null==t.b){if(i=new Tv,null!=t.i&&(fA(i,t.i),i.a+=":"),256&t.f){for(256&t.f&&null!=t.a&&(function(t){return null!=t&&s_(Sae,t.toLowerCase())}(t.i)||(i.a+="//"),fA(i,t.a)),null!=t.d&&(i.a+="/",fA(i,t.d)),16&t.f&&(i.a+="/"),e=0,n=t.j.length;e0&&(e.td(n),n.i&&y7(n))}(r=ggt(t,e),(o=YP(bnt(r,0),214)).c.Rf()?o.c.Lf()?new fp(t):new dp(t):new hp(t)),function(t){var e,n,i;for(i=new gd(t.b);i.a>>31;0!=i&&(t[n]=i)}(n,n,e<<1),i=0,r=0,o=0;ru)&&(c+s+imt(i,u,!1).a<=e.b&&(hQ(n,a-n.s),n.c=!0,hQ(i,a-n.s),Gnt(i,n.s,n.t+n.d+s),i.k=!0,n3(n.q,i),l=!0,r&&(J1(e,i),i.j=e,t.c.length>o&&(eat((CG(o,t.c.length),YP(t.c[o],200)),i),0==(CG(o,t.c.length),YP(t.c[o],200)).a.c.length&&OX(t,o)))),l)}function uwt(t,e,n){var i,r,a,o,s;if(0==e.p){for(e.p=1,(r=n)||(r=new pS(new Jb,new tP(i=YP(Sx(qie),9),YP(QD(i,i.length),9),0))),YP(r.a,15).Fc(e),e.k==(uct(),OGt)&&YP(r.b,21).Fc(YP(Sst(e,(Tkt(),nVt)),61)),o=new gd(e.j);o.a0)if(r=YP(t.Ab.g,1934),null==e){for(a=0;a1)for(i=new gd(r);i.ai.s&&c=0&&u>=0&&co)return _xt(),pie;break;case 4:case 3:if(l<0)return _xt(),bie;if(l+n>a)return _xt(),Die}return(c=(u+s/2)/o)+(i=(l+n/2)/a)<=1&&c-i<=0?(_xt(),Pie):c+i>=1&&c-i>=0?(_xt(),pie):i<.5?(_xt(),bie):(_xt(),Die)}function vwt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d;for(n=!1,c=Qm(oD(Sst(e,(hkt(),B0t)))),f=W_t*c,r=new gd(e.b);r.ao.n.b-o.d.d+l.a+f&&(d=u.g+l.g,l.a=(l.g*l.a+u.g*u.a)/d,l.g=d,u.f=l,n=!0)),a=o,u=l;return n}function xwt(t,e,n,i,r,a,o){var s,c,u,l,h;for(h=new aM,c=e.Kc();c.Ob();)for(l=new gd(YP(c.Pb(),839).wf());l.at.b/2+n.b/2||(a=e.Math.abs(t.d+t.a/2-(n.d+n.a/2)))>t.a/2+n.a/2?1:0==i&&0==a?0:0==i?o/a+1:0==a?r/i+1:e.Math.min(r/i,o/a)+1}function _wt(t,n){var i,r,a,o,s,c;return(a=e0(t))==(c=e0(n))?t.e==n.e&&t.a<54&&n.a<54?t.fn.f?1:0:(r=t.e-n.e,(i=(t.d>0?t.d:e.Math.floor((t.a-1)*eTt)+1)-(n.d>0?n.d:e.Math.floor((n.a-1)*eTt)+1))>r+1?a:i0&&(s=eJ(s,Iyt(r))),eet(o,s))):a0&&t.d!=(_Z(),jUt)&&(s+=o*(i.d.a+t.a[e.b][i.b]*(e.d.a-i.d.a)/n)),n>0&&t.d!=(_Z(),BUt)&&(c+=o*(i.d.b+t.a[e.b][i.b]*(e.d.b-i.d.b)/n)));switch(t.d.g){case 1:return new YC(s/a,e.d.b);case 2:return new YC(e.d.a,c/a);default:return new YC(s/a,c/a)}}function Twt(t,e){var n,i,r,a;if(T6(),a=YP(Sst(t.i,(hkt(),c0t)),98),0!=t.j.g-e.j.g||a!=(Oot(),Jne)&&a!=eie&&a!=tie)return 0;if(a==(Oot(),Jne)&&(n=YP(Sst(t,u0t),19),i=YP(Sst(e,u0t),19),n&&i&&0!=(r=n.a-i.a)))return r;switch(t.j.g){case 1:return C7(t.n.a,e.n.a);case 2:return C7(t.n.b,e.n.b);case 3:return C7(e.n.a,t.n.a);case 4:return C7(e.n.b,t.n.b);default:throw ow(new Km(gAt))}}function Cwt(t){var e,n,i,r,a;for(QP(a=new hV((!t.a&&(t.a=new qI($re,t,5)),t.a).i+2),new YC(t.j,t.k)),k_(new xF(null,(!t.a&&(t.a=new qI($re,t,5)),new AG(t.a,16))),new Xp(a)),QP(a,new YC(t.b,t.c)),e=1;e0&&(G4(c,!1,(X8(),Yee)),G4(c,!0,Kee)),qJ(e.g,new _T(t,n)),Iz(t.g,e,n)}function Awt(){var t;for(Awt=I,zRt=M4($v(jce,1),vEt,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),qRt=HV(jce,vEt,25,37,15,1),HRt=M4($v(jce,1),vEt,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),URt=HV($ce,VEt,25,37,14,1),t=2;t<=36;t++)qRt[t]=nU(e.Math.pow(t,zRt[t])),URt[t]=Bat(__t,qRt[t])}function Mwt(t){var e;if(1!=(!t.a&&(t.a=new gR(Gre,t,6,6)),t.a).i)throw ow(new Ym(XDt+(!t.a&&(t.a=new gR(Gre,t,6,6)),t.a).i));return e=new Iy,w4(YP(JJ((!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),0),82))&&_2(e,gkt(t,w4(YP(JJ((!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),0),82)),!1)),w4(YP(JJ((!t.c&&(t.c=new CN(Hre,t,5,8)),t.c),0),82))&&_2(e,gkt(t,w4(YP(JJ((!t.c&&(t.c=new CN(Hre,t,5,8)),t.c),0),82)),!0)),e}function Iwt(t,e){var n,i,r;for(r=!1,i=new Sj(cL((e.d?t.a.c==(KH(),c4t)?e9(e.b):n9(e.b):t.a.c==(KH(),s4t)?e9(e.b):n9(e.b)).a.Kc(),new l));Ght(i);)if(n=YP(pX(i),17),(Vm(t.a.f[t.a.g[e.b.p].p])||KW(n)||n.c.i.c!=n.d.i.c)&&!Vm(t.a.n[t.a.g[e.b.p].p])&&!Vm(t.a.n[t.a.g[e.b.p].p])&&(r=!0,f_(t.b,t.a.g[$it(n,e.b).p])))return e.c=!0,e.a=n,e;return e.c=r,e.a=null,e}function Lwt(t,e,n){var i,r,a,o,s,c,u;if(0==(i=n.gc()))return!1;if(t.ej())if(c=t.fj(),U9(t,e,n),o=1==i?t.Zi(3,null,n.Kc().Pb(),e,c):t.Zi(5,null,n,e,c),t.bj()){for(s=i<100?null:new mx(i),a=e+i,r=e;r0){for(s=0;s>16==-15&&t.Cb.nh()&&fZ(new pQ(t.Cb,9,13,n,t.c,Ont(kZ(YP(t.Cb,59)),t))):EI(t.Cb,88)&&t.Db>>16==-23&&t.Cb.nh()&&(EI(e=t.c,88)||(Ikt(),e=voe),EI(n,88)||(Ikt(),n=voe),fZ(new pQ(t.Cb,9,10,n,e,Ont(XK(YP(t.Cb,26)),t)))))),t.c}function Fwt(t,e,n){var i,r,a,o,s,c,u,l;for(tst(n,"Hyperedge merging",1),function(t,e){var n,i,r,a;for((a=YP(pW(qZ(qZ(new xF(null,new AG(e.b,16)),new Bn),new Fn),dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[(_6(),izt)]))),15)).Jc(new jn),n=0,r=a.Kc();r.Ob();)-1==(i=YP(r.Pb(),11)).p&&lft(t,i,n++)}(t,e),s=new YY(e.b,0);s.bn);return r}function Rwt(t,e){var n,i,r;i=0!=Hft(t.d,1),!Vm(aD(Sst(e.j,(Tkt(),rVt))))&&!Vm(aD(Sst(e.j,PVt)))||JS(Sst(e.j,(hkt(),RJt)))===JS((p5(),z2t))?e.c.Tf(e.e,i):i=Vm(aD(Sst(e.j,rVt))),Xdt(t,e,i,!0),Vm(aD(Sst(e.j,PVt)))&&s5(e.j,PVt,(mL(),!1)),Vm(aD(Sst(e.j,rVt)))&&(s5(e.j,rVt,(mL(),!1)),s5(e.j,PVt,!0)),n=Dut(t,e);do{if(p2(t),0==n)return 0;r=n,Xdt(t,e,i=!i,!1),n=Dut(t,e)}while(r>n);return r}function $wt(t,e,n){var i,r,a,o,s,c,u;if(e==n)return!0;if(e=Hht(t,e),n=Hht(t,n),i=uit(e)){if((c=uit(n))!=i)return!!c&&(o=i.Dj())==c.Dj()&&null!=o;if(!e.d&&(e.d=new qI(toe,e,1)),r=(a=e.d).i,!n.d&&(n.d=new qI(toe,n,1)),r==(u=n.d).i)for(s=0;s0&&(d.d+=h.n.d,d.d+=h.d),d.a>0&&(d.a+=h.n.a,d.a+=h.d),d.b>0&&(d.b+=h.n.b,d.b+=h.d),d.c>0&&(d.c+=h.n.c,d.c+=h.d),d}((kU(t)&&(hE(),new Hm(kU(t))),hE(),new QL(kU(t)?new Hm(kU(t)):null,t)),Kee),o=YP(Sst(r,Q1t),116),CU(i=r.d,o),CU(i,a),r}function Uwt(t,n){var i,r,a,o;return r=e.Math.abs(eR(t.b).a-eR(n.b).a),o=e.Math.abs(eR(t.b).b-eR(n.b).b),i=1,a=1,r>t.b.b/2+n.b.b/2&&(i=1-e.Math.min(e.Math.abs(t.b.c-(n.b.c+n.b.b)),e.Math.abs(t.b.c+t.b.b-n.b.c))/r),o>t.b.a/2+n.b.a/2&&(a=1-e.Math.min(e.Math.abs(t.b.d-(n.b.d+n.b.a)),e.Math.abs(t.b.d+t.b.a-n.b.d))/o),(1-e.Math.min(i,a))*e.Math.sqrt(r*r+o*o)}function Gwt(t){var n,i,r;for(hxt(t,t.e,t.f,(YH(),$4t),!0,t.c,t.i),hxt(t,t.e,t.f,$4t,!1,t.c,t.i),hxt(t,t.e,t.f,z4t,!0,t.c,t.i),hxt(t,t.e,t.f,z4t,!1,t.c,t.i),function(t,e,n,i,r){var a,o,s,c,u,l,h;for(o=new gd(e);o.a=g&&(y>g&&(d.c=HV(Rjt,Zkt,1,0,5,1),g=y),d.c[d.c.length]=o);0!=d.c.length&&(f=YP(mF(d,znt(e,d.c.length)),128),S.a.Bc(f),f.s=p++,edt(f,T,k),d.c=HV(Rjt,Zkt,1,0,5,1))}for(v=t.c.length+1,s=new gd(t);s.aC.s&&(az(n),eZ(C.i,i),i.c>0&&(i.a=C,QP(C.t,i),i.b=_,QP(_.i,i)))})(t.i,YP(Sst(t.d,(Tkt(),OVt)),230)),function(t){var n,i,r,a,o,s,c,u,l;for(u=new x_,s=new x_,a=new gd(t);a.a-1){for(r=Wet(s,0);r.b!=r.d.c;)(i=YP(kK(r),128)).v=o;for(;0!=s.b;)for(n=new gd((i=YP(zrt(s,0),128)).i);n.a=65;n--)Jse[n]=n-65<<24>>24;for(i=122;i>=97;i--)Jse[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)Jse[r]=r-48+52<<24>>24;for(Jse[43]=62,Jse[47]=63,a=0;a<=25;a++)tce[a]=65+a&oEt;for(o=26,c=0;o<=51;++o,c++)tce[o]=97+c&oEt;for(t=52,s=0;t<=61;++t,s++)tce[t]=48+s&oEt;tce[62]=43,tce[63]=47}function Wwt(t,e){var n,i,r,a,o,s,c;if(!yU(t))throw ow(new Km(WDt));if(a=(i=yU(t)).g,r=i.f,a<=0&&r<=0)return _xt(),Nie;switch(s=t.i,c=t.j,e.g){case 2:case 1:if(s<0)return _xt(),Pie;if(s+t.g>a)return _xt(),pie;break;case 4:case 3:if(c<0)return _xt(),bie;if(c+t.f>r)return _xt(),Die}return(o=(s+t.g/2)/a)+(n=(c+t.f/2)/r)<=1&&o-n<=0?(_xt(),Pie):o+n>=1&&o-n>=0?(_xt(),pie):n<.5?(_xt(),bie):(_xt(),Die)}function Xwt(t){var e,n,i,r,a,o;if(Akt(),4!=t.e&&5!=t.e)throw ow(new Ym("Token#complementRanges(): must be RANGE: "+t.e));for(Lft(a=t),Amt(a),i=a.b.length+2,0==a.b[0]&&(i-=2),(n=a.b[a.b.length-1])==pjt&&(i-=2),(r=new JG(4)).b=HV(jce,vEt,25,i,15,1),o=0,a.b[0]>0&&(r.b[o++]=0,r.b[o++]=a.b[0]-1),e=1;e0&&(Pf(c,c.d-r.d),r.c==(QX(),L4t)&&Df(c,c.a-r.d),c.d<=0&&c.i>0&&HW(e,c,e.c.b,e.c));for(a=new gd(t.f);a.a0&&(Bf(s,s.i-r.d),r.c==(QX(),L4t)&&Nf(s,s.b-r.d),s.i<=0&&s.d>0&&HW(n,s,n.c.b,n.c))}function Zwt(t,e,n){var i,r,a,o,s,c,u,l;for(tst(n,"Processor compute fanout",1),zR(t.b),zR(t.a),s=null,a=Wet(e.b,0);!s&&a.b!=a.d.c;)Vm(aD(Sst(u=YP(kK(a),86),(Jmt(),x5t))))&&(s=u);for(HW(c=new x_,s,c.c.b,c.c),Ext(t,c),l=Wet(e.b,0);l.b!=l.d.c;)o=sD(Sst(u=YP(kK(l),86),(Jmt(),l5t))),r=null!=eU(t.b,o)?YP(eU(t.b,o),19).a:0,s5(u,u5t,u7(r)),i=1+(null!=eU(t.a,o)?YP(eU(t.a,o),19).a:0),s5(u,s5t,u7(i));Dct(n)}function Jwt(t,e,n,i,r){var a,o,s,c,u,l,h,f,d;for(h=function(t,e){var n,i,r;for(r=new YY(t.e,0),n=0;r.bYLt)return n;i>-1e-6&&++n}return n}(t,n),s=0;s0),i.a.Xb(i.c=--i.b),l>h+s&&az(i);for(a=new gd(f);a.a0),i.a.Xb(i.c=--i.b)}}function tyt(t){var n,i,r,a,o,s,c,u,l,h,f,d,g;if(i=t.i,n=t.n,0==t.b)for(g=i.c+n.b,d=i.b-n.b-n.c,u=0,h=(s=t.a).length;u0&&(f-=r[0]+t.c,r[0]+=t.c),r[2]>0&&(f-=r[2]+t.c),r[1]=e.Math.max(r[1],f),dj(t.a[1],i.c+n.b+r[0]-(r[1]-f)/2,r[1]);for(c=0,l=(o=t.a).length;co&&(o=r,u.c=HV(Rjt,Zkt,1,0,5,1)),r==o&&QP(u,new pS(n.c.i,n)));qq(),KM(u,t.c),WF(t.b,s.p,u)}}(f,t),f.f=aO(f.d),function(t,e){var n,i,r,a,o,s,c,u;for(a=new gd(e.b);a.ao&&(o=r,u.c=HV(Rjt,Zkt,1,0,5,1)),r==o&&QP(u,new pS(n.d.i,n)));qq(),KM(u,t.c),WF(t.f,s.p,u)}}(f,t),f}function nyt(t,n){var i,r,a;for(a=YP(mF(t.n,t.n.c.length-1),211).d,t.p=e.Math.min(t.p,n.g),t.r=e.Math.max(t.r,a),t.g=e.Math.max(t.g,n.g+(1==t.b.c.length?0:t.i)),t.o=e.Math.min(t.o,n.f),t.e+=n.f+(1==t.b.c.length?0:t.i),t.f=e.Math.max(t.f,n.f),r=t.n.c.length>0?(t.n.c.length-1)*t.i:0,i=new gd(t.n);i.a1)for(i=Wet(r,0);i.b!=i.d.c;)for(a=0,s=new gd((n=YP(kK(i),231)).e);s.a0&&(n[0]+=t.c,f-=n[0]),n[2]>0&&(f-=n[2]+t.c),n[1]=e.Math.max(n[1],f),gj(t.a[1],r.d+i.d+n[0]-(n[1]-f)/2,n[1]);else for(g=r.d+i.d,d=r.a-i.d-i.a,u=0,h=(s=t.a).length;u=0&&a!=n)throw ow(new Ym(gPt));for(r=0,c=0;c0||0==g9(a.b.d,t.b.d+t.b.a)&&r.b<0||0==g9(a.b.d+a.b.a,t.b.d)&&r.b>0){c=0;break}}else c=e.Math.min(c,ult(t,a,r));c=e.Math.min(c,cyt(t,o,c,r))}return c}function uyt(t,e){var n,i,r,a,o,s;if(t.b<2)throw ow(new Ym("The vector chain must contain at least a source and a target point."));for(xO(0!=t.b),mM(e,(i=YP(t.a.a.c,8)).a,i.b),s=new eO((!e.a&&(e.a=new qI($re,e,5)),e.a)),a=Wet(t,1);a.aQm(MI(o.g,o.d[0]).a)?(xO(c.b>0),c.a.Xb(c.c=--c.b),WD(c,o),r=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new Jb),s.e).Mc(e),u=(!s.e&&(s.e=new Jb),s.e).Mc(n),(a||u)&&((!s.e&&(s.e=new Jb),s.e).Fc(o),++o.c));r||(i.c[i.c.length]=o)}function byt(t){var e,n,i;if(lM(YP(Sst(t,(hkt(),c0t)),98)))for(n=new gd(t.j);n.a>>0).toString(16),e.length-2,e.length):t>=QEt?"\\v"+sO(e="0"+(t>>>0).toString(16),e.length-6,e.length):""+String.fromCharCode(t&oEt)}return n}function yyt(t,e){var n,i,r,a,o,s,c,u,l,h;if(o=t.e,0==(c=e.e))return t;if(0==o)return 0==e.e?e:new ER(-e.e,e.d,e.a);if((a=t.d)+(s=e.d)==2)return n=jG(t.a[0],nTt),i=jG(e.a[0],nTt),o<0&&(n=iZ(n)),c<0&&(i=iZ(i)),zet(W7(n,i));if(-1==(r=a!=s?a>s?1:-1:c6(t.a,e.a,a)))h=-c,l=o==c?jX(e.a,s,t.a,a):qV(e.a,s,t.a,a);else if(h=o,o==c){if(0==r)return upt(),l$t;l=jX(t.a,a,e.a,s)}else l=qV(t.a,a,e.a,s);return vY(u=new ER(h,l.length,l)),u}function myt(t){var e,n,i,r,a,o;for(this.e=new Jb,this.a=new Jb,n=t.b-1;n<3;n++)CO(t,0,YP(bnt(t,0),8));if(t.b<4)throw ow(new Ym("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,function(t,e){var n,i,r,a,o;if(e<2*t.b)throw ow(new Ym("The knot vector must have at least two time the dimension elements."));for(t.f=1,r=0;r=e.o&&n.f<=e.f||.5*e.a<=n.f&&1.5*e.a>=n.f){if((a=YP(mF(e.n,e.n.c.length-1),211)).e+a.d+n.g+r<=i&&(YP(mF(e.n,e.n.c.length-1),211).f-t.f+n.f<=t.b||1==t.a.c.length))return o9(e,n),!0;if(e.s+n.g<=i&&(e.t+e.d+n.f+r<=t.b||1==t.a.c.length))return QP(e.b,n),o=YP(mF(e.n,e.n.c.length-1),211),QP(e.n,new lU(e.s,o.f+o.a+e.i,e.i)),Eit(YP(mF(e.n,e.n.c.length-1),211),n),nyt(e,n),!0}return!1}function kyt(t,e,n){var i,r,a,o;return t.ej()?(r=null,a=t.fj(),i=t.Zi(1,o=BZ(t,e,n),n,e,a),t.bj()&&!(t.ni()&&null!=o?U8(o,n):JS(o)===JS(n))?(null!=o&&(r=t.dj(o,r)),r=t.cj(n,r),t.ij()&&(r=t.lj(o,n,r)),r?(r.Ei(i),r.Fi()):t.$i(i)):(t.ij()&&(r=t.lj(o,n,r)),r?(r.Ei(i),r.Fi()):t.$i(i)),o):(o=BZ(t,e,n),t.bj()&&!(t.ni()&&null!=o?U8(o,n):JS(o)===JS(n))&&(r=null,null!=o&&(r=t.dj(o,null)),(r=t.cj(n,r))&&r.Fi()),o)}function _yt(t,n){var i,r,a,o,s,c,u;n%=24,t.q.getHours()!=n&&((i=new e.Date(t.q.getTime())).setDate(i.getDate()+1),(s=t.q.getTimezoneOffset()-i.getTimezoneOffset())>0&&(c=s/60|0,u=s%60,r=t.q.getDate(),t.q.getHours()+c>=24&&++r,a=new e.Date(t.q.getFullYear(),t.q.getMonth(),r,n+c,t.q.getMinutes()+u,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(a.getTime()))),o=t.q.getTime(),t.q.setTime(o+36e5),t.q.getHours()!=n&&t.q.setTime(o)}function Eyt(t,e){var n,i,r,a;if(tst(e,"Path-Like Graph Wrapping",1),0!=t.b.c.length)if(null==(r=new tft(t)).i&&(r.i=I2(r,new va)),n=Qm(r.i)*r.f/(null==r.i&&(r.i=I2(r,new va)),Qm(r.i)),r.b>n)Dct(e);else{switch(YP(Sst(t,(hkt(),K0t)),337).g){case 2:a=new _a;break;case 0:a=new da;break;default:a=new Ea}if(i=a.Vf(t,r),!a.Wf())switch(YP(Sst(t,J0t),338).g){case 2:i=hlt(r,i);break;case 1:i=ist(r,i)}(function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d;if(!n.dc()){for(o=0,l=0,f=YP((i=n.Kc()).Pb(),19).a;o1||-1==g)if(h=YP(p,69),f=YP(l,69),h.dc())f.$b();else for(o=!!Xnt(e),a=0,s=t.a?h.Kc():h.Zh();s.Ob();)u=YP(s.Pb(),56),(r=YP($Z(t,u),56))?(o?-1==(c=f.Xc(r))?f.Xh(a,r):a!=c&&f.ji(a,r):f.Xh(a,r),++a):t.b&&!o&&(f.Xh(a,u),++a);else null==p?l.Wb(null):null==(r=$Z(t,p))?t.b&&!Xnt(e)&&l.Wb(p):l.Wb(r)}function Myt(t,n){var i,r,a,o,s,c,u,h;for(i=new On,a=new Sj(cL(e9(n).a.Kc(),new l));Ght(a);)if(!KW(r=YP(pX(a),17))&&Bot(c=r.c.i,JGt)){if(-1==(h=kpt(t,c,JGt,ZGt)))continue;i.b=e.Math.max(i.b,h),!i.a&&(i.a=new Jb),QP(i.a,c)}for(s=new Sj(cL(n9(n).a.Kc(),new l));Ght(s);)if(!KW(o=YP(pX(s),17))&&Bot(u=o.d.i,ZGt)){if(-1==(h=kpt(t,u,ZGt,JGt)))continue;i.d=e.Math.max(i.d,h),!i.c&&(i.c=new Jb),QP(i.c,u)}return i}function Iyt(t){var e,n,i,r;if(yht(),e=nU(t),t1e6)throw ow(new Fm("power of ten too big"));if(t<=Ykt)return dX(Jlt(d$t[1],e),e);for(r=i=Jlt(d$t[1],Ykt),n=I3(t-Ykt),e=nU(t%Ykt);p8(n,Ykt)>0;)r=eJ(r,i),n=W7(n,Ykt);for(r=dX(r=eJ(r,Jlt(d$t[1],e)),Ykt),n=I3(t-Ykt);p8(n,Ykt)>0;)r=dX(r,Ykt),n=W7(n,Ykt);return dX(r,e)}function Lyt(t,e){var n,i,r,a,o;tst(e,"Layer constraint postprocessing",1),0!=(o=t.b).c.length&&(CG(0,o.c.length),function(t,e,n,i,r){var a,o,s,c,u,l;for(a=new gd(t.b);a.a1))););(s>0||f.Hc((Tlt(),uie))&&(!a.n&&(a.n=new gR(Vre,a,1,7)),a.n).i>0)&&(c=!0),s>1&&(u=!0)}c&&e.Fc((Zgt(),mXt)),u&&e.Fc((Zgt(),vXt))}(e,i=YP(Sst(r,(Tkt(),aVt)),21)),i.Hc((Zgt(),mXt)))for(n=new zI((!e.c&&(e.c=new gR(Zre,e,9,9)),e.c));n.e!=n.i.gc();)cxt(t,e,r,YP(ant(n),118));return 0!=YP(yft(e,(hkt(),Y1t)),174).gc()&&ept(e,r),Vm(aD(Sst(r,J1t)))&&i.Fc(EXt),TO(r,k0t)&&Dm(new P9(Qm(oD(Sst(r,k0t)))),r),JS(yft(e,p1t))===JS((E8(),Ene))?function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E;for(o=new x_,y=YP(Sst(n,(hkt(),ZJt)),103),g=0,_2(o,(!e.a&&(e.a=new gR(Qre,e,10,11)),e.a));0!=o.b;)u=YP(0==o.b?null:(xO(0!=o.b),HJ(o,o.a.a)),33),(JS(yft(e,RJt))!==JS((p5(),z2t))||JS(yft(e,VJt))===JS((git(),IWt))||JS(yft(e,VJt))===JS((git(),AWt))||Vm(aD(yft(e,zJt)))||JS(yft(e,NJt))!==JS((V8(),xGt)))&&!Vm(aD(yft(u,jJt)))&&Cnt(u,(Tkt(),vVt),u7(g++)),!Vm(aD(yft(u,V1t)))&&(h=0!=(!u.a&&(u.a=new gR(Qre,u,10,11)),u.a).i,d=Yot(u),f=JS(yft(u,p1t))===JS((E8(),Ene)),b=null,(E=!RV(u,(Ekt(),cte))||NN(sD(yft(u,cte)),EAt))&&f&&(h||d)&&(s5(b=Hwt(u),ZJt,y),TO(b,k0t)&&Dm(new P9(Qm(oD(Sst(b,k0t)))),b),0!=YP(yft(u,Y1t),174).gc()&&(l=b,k_(new xF(null,(!u.c&&(u.c=new gR(Zre,u,9,9)),new AG(u.c,16))),new dg(l)),ept(u,b))),m=n,(v=YP(B$(t.a,kU(u)),10))&&(m=v.e),p=Gvt(t,u,m),b&&(p.e=b,b.e=p,_2(o,(!u.a&&(u.a=new gR(Qre,u,10,11)),u.a))));for(g=0,HW(o,e,o.c.b,o.c);0!=o.b;){for(c=new zI((!(a=YP(0==o.b?null:(xO(0!=o.b),HJ(o,o.a.a)),33)).b&&(a.b=new gR(Ure,a,12,3)),a.b));c.e!=c.i.gc();)hbt(s=YP(ant(c),79)),(JS(yft(e,RJt))!==JS((p5(),z2t))||JS(yft(e,VJt))===JS((git(),IWt))||JS(yft(e,VJt))===JS((git(),AWt))||Vm(aD(yft(e,zJt)))||JS(yft(e,NJt))!==JS((V8(),xGt)))&&Cnt(s,(Tkt(),vVt),u7(g++)),k=Zot(YP(JJ((!s.b&&(s.b=new CN(Hre,s,4,7)),s.b),0),82)),_=Zot(YP(JJ((!s.c&&(s.c=new CN(Hre,s,5,8)),s.c),0),82)),!(Vm(aD(yft(s,V1t)))||Vm(aD(yft(k,V1t)))||Vm(aD(yft(_,V1t))))&&(w=a,Ult(s)&&Vm(aD(yft(k,v1t)))&&Vm(aD(yft(s,x1t)))||zJ(_,k)?w=k:zJ(k,_)&&(w=_),m=n,(v=YP(B$(t.a,w),10))&&(m=v.e),s5(_kt(t,s,w,m),(Tkt(),YXt),Igt(t,s,e,n)));if(f=JS(yft(a,p1t))===JS((E8(),Ene)))for(r=new zI((!a.a&&(a.a=new gR(Qre,a,10,11)),a.a));r.e!=r.i.gc();)E=!RV(i=YP(ant(r),33),(Ekt(),cte))||NN(sD(yft(i,cte)),EAt),x=JS(yft(i,p1t))===JS(Ene),E&&x&&HW(o,i,o.c.b,o.c)}}(t,e,r):function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d,g,p;for(h=0,r=new zI((!e.a&&(e.a=new gR(Qre,e,10,11)),e.a));r.e!=r.i.gc();)Vm(aD(yft(i=YP(ant(r),33),(hkt(),V1t))))||((JS(yft(e,RJt))!==JS((p5(),z2t))||JS(yft(e,VJt))===JS((git(),IWt))||JS(yft(e,VJt))===JS((git(),AWt))||Vm(aD(yft(e,zJt)))||JS(yft(e,NJt))!==JS((V8(),xGt)))&&!Vm(aD(yft(i,jJt)))&&(Cnt(i,(Tkt(),vVt),u7(h)),++h),Gvt(t,i,n));for(h=0,u=new zI((!e.b&&(e.b=new gR(Ure,e,12,3)),e.b));u.e!=u.i.gc();)s=YP(ant(u),79),(JS(yft(e,(hkt(),RJt)))!==JS((p5(),z2t))||JS(yft(e,VJt))===JS((git(),IWt))||JS(yft(e,VJt))===JS((git(),AWt))||Vm(aD(yft(e,zJt)))||JS(yft(e,NJt))!==JS((V8(),xGt)))&&(Cnt(s,(Tkt(),vVt),u7(h)),++h),g=Nst(s),p=Fst(s),l=Vm(aD(yft(g,v1t))),d=!Vm(aD(yft(s,V1t))),f=l&&Ult(s)&&Vm(aD(yft(s,x1t))),a=kU(g)==e&&kU(g)==kU(p),o=(kU(g)==e&&p==e)^(kU(p)==e&&g==e),d&&!f&&(o||a)&&_kt(t,s,e,n);if(kU(e))for(c=new zI(Eq(kU(e)));c.e!=c.i.gc();)(g=Nst(s=YP(ant(c),79)))==e&&Ult(s)&&(f=Vm(aD(yft(g,(hkt(),v1t))))&&Vm(aD(yft(s,x1t))))&&_kt(t,s,e,n)}(t,e,r),r}function Nyt(t,n,i,r){var a,o,s;if(this.j=new Jb,this.k=new Jb,this.b=new Jb,this.c=new Jb,this.e=new aM,this.i=new Iy,this.f=new ew,this.d=new Jb,this.g=new Jb,QP(this.b,t),QP(this.b,n),this.e.c=e.Math.min(t.a,n.a),this.e.d=e.Math.min(t.b,n.b),this.e.b=e.Math.abs(t.a-n.a),this.e.a=e.Math.abs(t.b-n.b),a=YP(Sst(r,(hkt(),E1t)),74))for(s=Wet(a,0);s.b!=s.d.c;)c1((o=YP(kK(s),8)).a,t.a)&&DB(this.i,o);i&&QP(this.j,i),QP(this.k,r)}function Pyt(t,e,n){var i,r,a,o,s,c,u,l,h,f;for(l=new aR(new eg(n)),IR(s=HV(Rce,uCt,25,t.f.e.c.length,16,1),s.length),n[e.b]=0,u=new gd(t.f.e);u.au&&i>u)){r=!1,n.n&&AB(n,"bk node placement breaks on "+s+" which should have been after "+l);break}l=s,u=Qm(e.p[s.p])+Qm(e.d[s.p])+s.o.b+s.d.a}if(!r)break}return n.n&&AB(n,e+" is feasible: "+r),r}function Fyt(t,e,n,i){var r,a,o,s,c,u,l;if(n.d.i!=e.i){for(Af(r=new Jnt(t),(uct(),NGt)),s5(r,(Tkt(),xVt),n),s5(r,(hkt(),c0t),(Oot(),tie)),i.c[i.c.length]=r,KU(o=new Ect,r),llt(o,(_xt(),Pie)),KU(s=new Ect,r),llt(s,pie),l=n.d,UU(n,o),n4(a=new wH,n),s5(a,E1t,null),GU(a,s),UU(a,l),u=new YY(n.b,0);u.b=b&&t.e[u.p]>g*t.b||m>=i*b)&&(f.c[f.c.length]=c,c=new Jb,_2(s,o),o.a.$b(),l-=h,d=e.Math.max(d,l*t.b+p),l+=m,y=m,m=0,h=0,p=0);return new pS(d,f)}function $yt(t){var e,n,i,r,a,o,s,c,u,l,h,f;for(n=new rd(new Vf(t.c.b).a.vc().Kc());n.a.Ob();)s=YP(n.a.Pb(),42),null==(r=(e=YP(s.dd(),149)).a)&&(r=""),!(i=yD(t.c,r))&&0==r.length&&(i=N8(t)),i&&!H9(i.c,e,!1)&&DB(i.c,e);for(o=Wet(t.a,0);o.b!=o.d.c;)a=YP(kK(o),478),u=rX(t.c,a.a),f=rX(t.c,a.b),u&&f&&DB(u.c,new pS(f,a.c));for(Bq(t.a),h=Wet(t.b,0);h.b!=h.d.c;)l=YP(kK(h),478),e=wD(t.c,l.a),c=rX(t.c,l.b),e&&c&&aE(e,c,l.c);Bq(t.b)}function zyt(t){var e,n,i,r,a,o;if(!t.f){if(o=new _c,a=new _c,null==(e=Ooe).a.zc(t,e)){for(r=new zI(_H(t));r.e!=r.i.gc();)w$(o,zyt(YP(ant(r),26)));e.a.Bc(t),e.a.gc()}for(!t.s&&(t.s=new gR(Gae,t,21,17)),i=new zI(t.s);i.e!=i.i.gc();)EI(n=YP(ant(i),170),99)&&aQ(a,YP(n,18));P6(a),t.r=new _B(t,(YP(JJ(eH((Y$(),ooe).o),6),18),a.i),a.g),w$(o,t.r),P6(o),t.f=new FA((YP(JJ(eH(ooe.o),5),18),o.i),o.g),sX(t).b&=-3}return t.f}function qyt(t){var e,n,i,r,a,o,s,c,u,l,h,f,d,g;for(o=t.o,i=HV(jce,vEt,25,o,15,1),r=HV(jce,vEt,25,o,15,1),n=t.p,e=HV(jce,vEt,25,n,15,1),a=HV(jce,vEt,25,n,15,1),u=0;u=0&&!Mit(t,l,h);)--h;r[l]=h}for(d=0;d=0&&!Mit(t,s,g);)--s;a[g]=s}for(c=0;ce[f]&&fi[c]&&ebt(t,c,f,!1,!0)}function Hyt(t){var e,n,i,r,a,o,s,c;n=Vm(aD(Sst(t,(Fpt(),KHt)))),a=t.a.c.d,s=t.a.d.d,n?(o=DI(pN(new YC(s.a,s.b),a),.5),c=DI(lI(t.e),.5),e=pN(gN(new YC(a.a,a.b),o),c),IO(t.d,e)):(r=Qm(oD(Sst(t.a,lUt))),i=t.d,a.a>=s.a?a.b>=s.b?(i.a=s.a+(a.a-s.a)/2+r,i.b=s.b+(a.b-s.b)/2-r-t.e.b):(i.a=s.a+(a.a-s.a)/2+r,i.b=a.b+(s.b-a.b)/2+r):a.b>=s.b?(i.a=a.a+(s.a-a.a)/2+r,i.b=s.b+(a.b-s.b)/2+r):(i.a=a.a+(s.a-a.a)/2+r,i.b=a.b+(s.b-a.b)/2-r-t.e.b))}function Uyt(t,e){var n,i,r,a,o,s,c;if(null==t)return null;if(0==(a=t.length))return"";for(c=HV(Fce,rEt,25,a,15,1),GV(0,a,t.length),GV(0,a,c.length),e$(t,0,a,c,0),n=null,s=e,r=0,o=0;r0?sO(n.a,0,a-1):"":t.substr(0,a-1):n?n.a:t}function Gyt(t){iE(t,new Vot(tx(Vv(Jv(Zv(new gs,nSt),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new re))),IY(t,nSt,iSt,int(MHt)),IY(t,nSt,rSt,int(_Ht)),IY(t,nSt,aSt,int(yHt)),IY(t,nSt,oSt,int(EHt)),IY(t,nSt,iCt,int(SHt)),IY(t,nSt,rCt,int(CHt)),IY(t,nSt,nCt,int(AHt)),IY(t,nSt,aCt,int(THt)),IY(t,nSt,QCt,int(vHt)),IY(t,nSt,ZCt,int(mHt)),IY(t,nSt,JCt,int(xHt)),IY(t,nSt,tSt,int(kHt))}function Yyt(t,e,n,i){var r,a,o,s,c,u,l;if(Af(a=new Jnt(t),(uct(),BGt)),s5(a,(hkt(),c0t),(Oot(),tie)),r=0,e){for(s5(o=new Ect,(Tkt(),xVt),e),s5(a,xVt,e.i),llt(o,(_xt(),Pie)),KU(o,a),u=0,l=(c=_Y(e.e)).length;u=0&&f<=1&&d>=0&&d<=1?gN(new YC(t.a,t.b),DI(new YC(n.a,n.b),f)):null}function Xyt(t){var n,i,r,a,o,s,c,u,l,h;for(u=new Xf(new Wf(vht(t)).a.vc().Kc());u.a.Ob();){for(r=YP(u.a.Pb(),42),l=0,h=0,l=(c=YP(r.cd(),10)).d.d,h=c.o.b+c.d.a,t.d[c.p]=0,n=c;(a=t.a[n.p])!=c;)i=wet(n,a),0,s=t.c==(KH(),s4t)?i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,o=Qm(t.d[n.p])+s,t.d[a.p]=o,l=e.Math.max(l,a.d.d-o),h=e.Math.max(h,o+a.o.b+a.d.a),n=a;n=c;do{t.d[n.p]=Qm(t.d[n.p])+l,n=t.a[n.p]}while(n!=c);t.b[c.p]=l+h}}function Vyt(t){var n,i,r,a,o,s,c,u,l,h,f;for(t.b=!1,h=KEt,c=WEt,f=KEt,u=WEt,i=t.e.a.ec().Kc();i.Ob();)for(r=(n=YP(i.Pb(),266)).a,h=e.Math.min(h,r.c),c=e.Math.max(c,r.c+r.b),f=e.Math.min(f,r.d),u=e.Math.max(u,r.d+r.a),o=new gd(n.c);o.a=(CG(a,t.c.length),YP(t.c[a],200)).e,s=imt(i,f,!1),l=s.a,l>e.b&&!u))&&((u||l<=e.b)&&(u&&l>e.b?(n.d=l,hQ(n,Oct(n,l))):(rot(n.q,c),n.c=!0),hQ(i,r-(n.s+n.r)),Gnt(i,n.q.e+n.q.d,e.f),J1(e,i),t.c.length>a&&(eat((CG(a,t.c.length),YP(t.c[a],200)),i),0==(CG(a,t.c.length),YP(t.c[a],200)).a.c.length&&OX(t,a)),h=!0),h)}function Jyt(t,e,n,i){var r,a,o,s,c,u,l;if(l=hgt(t.e.Tg(),e),r=0,a=YP(t.g,119),c=null,vE(),YP(e,66).Oj()){for(s=0;s0?t.i:0)>n&&u>0&&(o=0,s+=u+t.i,a=e.Math.max(a,d),r+=u+t.i,u=0,d=0,i&&(++f,QP(t.n,new lU(t.s,s,t.i))),c=0),d+=l.g+(c>0?t.i:0),u=e.Math.max(u,l.f),i&&Eit(YP(mF(t.n,f),211),l),o+=l.g+(c>0?t.i:0),++c;return a=e.Math.max(a,d),r+=u,i&&(t.r=a,t.d=r,mrt(t.j)),new gq(t.s,t.t,a,r)}function rmt(t,e,n,i,r){var a,o,s,c,u,l,h,f,d;if(r_(),BR(t,"src"),BR(n,"dest"),f=H5(t),c=H5(n),bB(0!=(4&f.i),"srcType is not an array"),bB(0!=(4&c.i),"destType is not an array"),h=f.c,o=c.c,bB(1&h.i?h==o:0==(1&o.i),"Array types don't match"),d=t.length,u=n.length,e<0||i<0||r<0||e+r>d||i+r>u)throw ow(new Tw);if(1&h.i||f==c)r>0&&olt(t,e,n,i,r,!0);else if(l=r1(t),a=r1(n),JS(t)===JS(n)&&ei;)L$(a,s,l[--e]);else for(s=i+r;i=t.b.length?(a[r++]=o.b[i++],a[r++]=o.b[i++]):i>=o.b.length?(a[r++]=t.b[n++],a[r++]=t.b[n++]):o.b[i]0&&(!(r=(!t.n&&(t.n=new gR(Vre,t,1,7)),YP(JJ(t.n,0),137)).a)||pA(pA((e.a+=' "',e),r),'"'))),!t.b&&(t.b=new CN(Hre,t,4,7)),n=!(t.b.i<=1&&(!t.c&&(t.c=new CN(Hre,t,5,8)),t.c.i<=1)),e.a+=n?" [":" ",pA(e,sL(new vv,new zI(t.b))),n&&(e.a+="]"),e.a+=fAt,n&&(e.a+="["),pA(e,sL(new vv,new zI(t.c))),n&&(e.a+="]"),e.a)}function umt(t,e){var n,i,r,a,o,s,c;if(t.a){if(c=null,null!=(s=t.a.ne())?e.a+=""+s:null!=(o=t.a.Dj())&&(-1!=(a=UA(o,fst(91)))?(c=o.substr(a),e.a+=""+sO(null==o?e_t:(dz(o),o),0,a)):e.a+=""+o),t.d&&0!=t.d.i){for(r=!0,e.a+="<",i=new zI(t.d);i.e!=i.i.gc();)n=YP(ant(i),87),r?r=!1:e.a+=Vkt,umt(n,e);e.a+=">"}null!=c&&(e.a+=""+c)}else t.e?null!=(s=t.e.zb)&&(e.a+=""+s):(e.a+="?",t.b?(e.a+=" super ",umt(t.b,e)):t.f&&(e.a+=" extends ",umt(t.f,e)))}function lmt(t,e,n,i){var r,a,o,s,c,u;if(a=z7(i),!Vm(aD(Sst(i,(hkt(),P1t))))&&!Vm(aD(Sst(t,m1t)))||lM(YP(Sst(t,c0t),98)))switch(s=new Ect,KU(s,t),e?(u=s.n,u.a=e.a-t.n.a,u.b=e.b-t.n.b,jct(u,0,0,t.o.a,t.o.b),llt(s,mwt(s,a))):(r=j9(a),llt(s,n==(r0(),V2t)?r:E7(r))),o=YP(Sst(i,(Tkt(),aVt)),21),c=s.j,a.g){case 2:case 1:(c==(_xt(),bie)||c==Die)&&o.Fc((Zgt(),_Xt));break;case 4:case 3:(c==(_xt(),pie)||c==Pie)&&o.Fc((Zgt(),_Xt))}else r=j9(a),s=dwt(t,n,n==(r0(),V2t)?r:E7(r));return s}function hmt(t,n,i){var r,a,o,s,c,u,l;return e.Math.abs(n.s-n.c)l?new cG((QX(),O4t),i,n,u-l):u>0&&l>0&&(new cG((QX(),O4t),n,i,0),new cG(O4t,i,n,0))),o)}function fmt(t,n){var i,r,a,o,s;for(s=new X5(new Kf(t.f.b).a);s.b;){if(a=YP((o=i1(s)).cd(),594),1==n){if(a.gf()!=(X8(),Xee)&&a.gf()!=Gee)continue}else if(a.gf()!=(X8(),Yee)&&a.gf()!=Kee)continue;switch(r=YP(YP(o.dd(),46).b,81),i=YP(YP(o.dd(),46).a,189).c,a.gf().g){case 2:r.g.c=t.e.a,r.g.b=e.Math.max(1,r.g.b+i);break;case 1:r.g.c=r.g.c+i,r.g.b=e.Math.max(1,r.g.b-i);break;case 4:r.g.d=t.e.b,r.g.a=e.Math.max(1,r.g.a+i);break;case 3:r.g.d=r.g.d+i,r.g.a=e.Math.max(1,r.g.a-i)}}}function dmt(t,e){var n,i,r,a,o,s,c,u,h,f,d;for(i=new Sj(cL(cdt(e).a.Kc(),new l));Ght(i);)EI(JJ((!(n=YP(pX(i),79)).b&&(n.b=new CN(Hre,n,4,7)),n.b),0),186)||(c=Zot(YP(JJ((!n.c&&(n.c=new CN(Hre,n,5,8)),n.c),0),82)),Dht(n)||(o=e.i+e.g/2,s=e.j+e.f/2,h=c.i+c.g/2,f=c.j+c.f/2,(d=new _x).a=h-o,d.b=f-s,yat(a=new YC(d.a,d.b),e.g,e.f),d.a-=a.a,d.b-=a.b,o=h-d.a,s=f-d.b,yat(u=new YC(d.a,d.b),c.g,c.f),d.a-=u.a,d.b-=u.b,h=o+d.a,f=s+d.b,M1(r=Kgt(n,!0,!0),o),L1(r,s),E1(r,h),I1(r,f),dmt(t,c)))}function gmt(t){iE(t,new Vot(tx(Vv(Jv(Zv(new gs,KOt),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new es))),IY(t,KOt,WOt,int(S7t)),IY(t,KOt,XOt,int(E7t)),IY(t,KOt,VOt,int(_7t)),IY(t,KOt,QOt,int(x7t)),IY(t,KOt,ZOt,int(k7t)),IY(t,KOt,oSt,v7t),IY(t,KOt,ASt,8),IY(t,KOt,JOt,int(C7t)),IY(t,KOt,tDt,int(b7t)),IY(t,KOt,eDt,int(w7t)),IY(t,KOt,iLt,(mL(),!1))}function pmt(t,e,n){var i,r,a,o,s,c,u,l;return i=t.a.o==(LU(),f4t)?KEt:WEt,!(s=Iwt(t,new vC(e,n))).a&&s.c?(DB(t.d,s),i):s.a?(r=s.a.c,c=s.a.d,n?(u=t.a.c==(KH(),c4t)?c:r,a=t.a.c==c4t?r:c,o=t.a.g[a.i.p],l=Qm(t.a.p[o.p])+Qm(t.a.d[a.i.p])+a.n.b+a.a.b-Qm(t.a.d[u.i.p])-u.n.b-u.a.b):(u=t.a.c==(KH(),s4t)?c:r,a=t.a.c==s4t?r:c,l=Qm(t.a.p[t.a.g[a.i.p].p])+Qm(t.a.d[a.i.p])+a.n.b+a.a.b-Qm(t.a.d[u.i.p])-u.n.b-u.a.b),t.a.n[t.a.g[r.i.p].p]=(mL(),!0),t.a.n[t.a.g[c.i.p].p]=!0,l):i}function bmt(t,e,n){var i,r,a,o,s,c,u;if(Mgt(t.e,e))vE(),wht((s=YP(e,66).Oj()?new tF(e,t):new GS(e,t)).c,s.b),mI(s,YP(n,14));else{for(u=hgt(t.e.Tg(),e),i=YP(t.g,119),a=0;at.o.b||(n=Q7(t,pie),s=e.d+e.a+(n.gc()-1)*o,s>t.o.b)))}function xmt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g;if(o=t.e,c=e.e,0==o)return e;if(0==c)return t;if((a=t.d)+(s=e.d)==2)return n=jG(t.a[0],nTt),i=jG(e.a[0],nTt),o==c?(g=HF(l=X7(n,i)),0==(d=HF(zj(l,32)))?new cV(o,g):new ER(o,2,M4($v(jce,1),vEt,25,15,[g,d]))):zet(o<0?W7(i,n):W7(n,i));if(o==c)f=o,h=a>=s?qV(t.a,a,e.a,s):qV(e.a,s,t.a,a);else{if(0==(r=a!=s?a>s?1:-1:c6(t.a,e.a,a)))return upt(),l$t;1==r?(f=o,h=jX(t.a,a,e.a,s)):(f=c,h=jX(e.a,s,t.a,a))}return vY(u=new ER(f,h.length,h)),u}function kmt(t,n,i,r,a,o,s){var c,u,l,h,f,d,g;return f=Vm(aD(Sst(n,(hkt(),B1t)))),d=null,o==(r0(),X2t)&&r.c.i==i?d=r.c:o==V2t&&r.d.i==i&&(d=r.d),(l=s)&&f&&!d?(QP(l.e,r),g=e.Math.max(Qm(oD(Sst(l.d,f1t))),Qm(oD(Sst(r,f1t)))),s5(l.d,f1t,g)):(_xt(),h=Nie,d?h=d.j:lM(YP(Sst(i,c0t),98))&&(h=o==X2t?Pie:pie),u=function(t,e,n,i,r,a){var o,s,c,u,l,h;return o=null,u=i==(r0(),X2t)?a.c:a.d,c=z7(e),u.i==n?(o=YP(B$(t.b,u),10))||(s5(o=Kxt(u,YP(Sst(n,(hkt(),c0t)),98),r,function(t){var e,n,i,r,a,o,s,c,u,l,h,f;for(r=Vm(aD(Sst(s=t.i,(hkt(),v1t)))),l=0,i=0,u=new gd(t.g);u.a=t.b[r+1])r+=2;else{if(!(n=QEt?fA(n,$7(i)):D$(n,i&oEt),a=new XH(10,null,0),function(t,e,n){Zj(n,t.a.c.length),UW(t.a,n,e)}(t.a,a,o-1)):(a.bm().length,fA(n=new Cv,a.bm())),0==e.e?(i=e._l())>=QEt?fA(n,$7(i)):D$(n,i&oEt):fA(n,e.bm()),YP(a,521).b=n.a}}function Dmt(t){var e,n,i,r,a;return null!=t.g?t.g:t.a<32?(t.g=function(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p;if(amt(),(c=p8(t,0)<0)&&(t=iZ(t)),0==p8(t,0))switch(e){case 0:return"0";case 1:return rTt;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(d=new Sv).a+=e<0?"0E+":"0E",d.a+=e==X_t?"2147483648":""+-e,d.a}h=HV(Fce,rEt,25,1+(l=18),15,1),n=l,p=t;do{u=p,p=Bat(p,10),h[--n]=HF(X7(48,W7(u,V7(p,10))))&oEt}while(0!=p8(p,0));if(r=W7(W7(W7(l,n),e),1),0==e)return c&&(h[--n]=45),Htt(h,n,l-n);if(e>0&&p8(r,-6)>=0){if(p8(r,0)>=0){for(a=n+HF(r),s=l-1;s>=a;s--)h[s+1]=h[s];return h[++a]=46,c&&(h[--n]=45),Htt(h,n,l-n+1)}for(o=2;ME(o,X7(iZ(r),1));o++)h[--n]=48;return h[--n]=46,h[--n]=48,c&&(h[--n]=45),Htt(h,n,l-n)}return g=n+1,i=l,f=new Av,c&&(f.a+="-"),i-g>=1?(N$(f,h[n]),f.a+=".",f.a+=Htt(h,n+1,l-n-1)):f.a+=Htt(h,n,l-n),f.a+="E",p8(r,0)>0&&(f.a+="+"),f.a+=""+Fj(r),f.a}(I3(t.f),nU(t.e)),t.g):(r=fkt((!t.c&&(t.c=Y6(t.f)),t.c),0),0==t.e?r:(e=(!t.c&&(t.c=Y6(t.f)),t.c).e<0?2:1,n=r.length,i=-t.e+n-e,(a=new Sv).a+=""+r,t.e>0&&i>=-6?i>=0?$U(a,n-nU(t.e),String.fromCharCode(46)):(a.a=sO(a.a,0,e-1)+"0."+sA(a.a,e-1),$U(a,e+1,Htt(QRt,0,-nU(i)-1))):(n-e>=1&&($U(a,e,String.fromCharCode(46)),++n),$U(a,n,String.fromCharCode(69)),i>0&&$U(a,++n,String.fromCharCode(43)),$U(a,++n,""+Fj(I3(i)))),t.g=a.a,t.g))}function Nmt(t,n,i){var r,a,o;if((a=YP(Sst(n,(hkt(),DJt)),275))!=(ict(),fXt)){switch(1===(tst(i,"Horizontal Compaction",1),t.a=n,function(t,e){t.g=e}(r=new lht(((o=new uZ).d=n,o.c=YP(Sst(o.d,a1t),218),function(t){var e,n,i,r,a,o,s;for(e=!1,n=0,r=new gd(t.d.b);r.a0&&G4(c,!0,(X8(),Kee)),o.k==(uct(),OGt)&&Gz(c),Iz(t.f,o,e)):((u=(i=YP(oH(t9(o)),17)).c.i)==o&&(u=i.d.i),h=new pS(u,pN(lI(o.n),u.n)),Iz(t.b,o,h))}(o),Bpt(o),o.a)),t.b),YP(Sst(n,OJt),422).g)?qv(r,new t2(t.a)):qv(r,(Uq(),yzt)),a.g){case 1:Pft(r);break;case 2:Pft(Qvt(r,(X8(),Kee)));break;case 3:Pft(zv(Qvt(Pft(r),(X8(),Kee)),new pr));break;case 4:Pft(zv(Qvt(Pft(r),(X8(),Kee)),new zg(o)));break;case 5:Pft(function(t,e){return t.b=e,t}(r,vKt))}Qvt(r,(X8(),Yee)),r.e=!0,function(t){var n,i,r,a;for(k_(aq(new xF(null,new AG(t.a.b,16)),new mr),new vr),function(t){var e,n,i,r,a;for(i=new X5(new Kf(t.b).a);i.b;)e=YP((n=i1(i)).cd(),10),a=YP(YP(n.dd(),46).a,10),r=YP(YP(n.dd(),46).b,8),gN(TA(e.n),gN(lI(a.n),r))}(t),k_(aq(new xF(null,new AG(t.a.b,16)),new xr),new kr),t.c==(l9(),ane)&&(k_(aq(qZ(new xF(null,new AG(new Wf(t.f),1)),new _r),new Er),new Gg(t)),k_(aq(oq(qZ(qZ(new xF(null,new AG(t.d.b,16)),new Tr),new Cr),new Sr),new Ar),new Kg(t))),a=new YC(KEt,KEt),n=new YC(WEt,WEt),r=new gd(t.a.b);r.a1&&(u=l.mg(u,t.a,c));return 1==u.c.length?YP(mF(u,u.c.length-1),220):2==u.c.length?function(t,n,i,r){var a,o,s,c,u,l,h,f,d,g,p,b,w;return o=t.f,h=n.f,s=o==(Ldt(),q8t)||o==U8t,c=o==H8t||o==q8t,f=h==H8t||h==q8t,!s||h!=q8t&&h!=U8t?o!=H8t&&o!=G8t||h!=H8t&&h!=G8t?c&&f?(o==H8t?(l=t,u=n):(l=n,u=t),d=i.j+i.f,g=l.e+r.f,p=e.Math.max(d,g)-e.Math.min(i.j,l.e),a=(l.d+r.g-i.i)*p,b=i.i+i.g,w=u.d+r.g,a<=(e.Math.max(b,w)-e.Math.min(i.i,u.d))*(u.e+r.f-i.j)?t.f==H8t?t:n:t.f==q8t?t:n):t:t.f==G8t?t:n:t.f==U8t?t:n}((CG(0,u.c.length),YP(u.c[0],220)),(CG(1,u.c.length),YP(u.c[1],220)),s,o):null}function Bmt(t){var n,i,r,a,o,s;for(qJ(t.a,new Zt),i=new gd(t.a);i.a=e.Math.abs(r.b)?(r.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(e=new YS(t.i,t.g),a=(n=t.i)<100?null:new mx(n),t.ij())for(i=0;i0){for(s=t.g,u=t.i,MX(t),a=u<100?null:new mx(u),i=0;i4){if(!t.wj(e))return!1;if(t.rk()){if(s=(n=(i=YP(e,49)).Ug())==t.e&&(t.Dk()?i.Og(i.Vg(),t.zk())==t.Ak():-1-i.Vg()==t.aj()),t.Ek()&&!s&&!n&&i.Zg())for(r=0;r0)if(e=new X2(t.Gi()),a=(n=l)<100?null:new mx(n),MD(t,n,e.g),r=1==n?t.Zi(4,JJ(e,0),null,0,c):t.Zi(6,e,null,-1,c),t.bj()){for(i=new zI(e);i.e!=i.i.gc();)a=t.dj(ant(i),a);a?(a.Ei(r),a.Fi()):t.$i(r)}else a?(a.Ei(r),a.Fi()):t.$i(r);else MD(t,t.Vi(),t.Wi()),t.$i(t.Zi(6,(qq(),b$t),null,-1,c));else if(t.bj())if((l=t.Vi())>0){for(s=t.Wi(),u=l,MD(t,l,s),a=u<100?null:new mx(u),i=0;i2*a?(l=new VJ(h),u=LF(o)/IF(o),c=Xxt(l,e,new ky,n,i,r,u),gN(TA(l.e),c),h.c=HV(Rjt,Zkt,1,0,5,1),a=0,h.c[h.c.length]=l,h.c[h.c.length]=o,a=LF(l)*IF(l)+LF(o)*IF(o)):(h.c[h.c.length]=o,a+=LF(o)*IF(o));return h}(s,n,h.a,h.b,(u=r,dz(a),u));break;case 1:g=function(t,e,n,i,r){var a,o,s,c,u,l,h,f,d;for(qq(),KM(t,new Us),o=XP(t),d=new Jb,f=new Jb,s=null,c=0;0!=o.b;)a=YP(0==o.b?null:(xO(0!=o.b),HJ(o,o.a.a)),157),!s||LF(s)*IF(s)/21&&(c>LF(s)*IF(s)/2||0==o.b)&&(h=new VJ(f),l=LF(s)/IF(s),u=Xxt(h,e,new ky,n,i,r,l),gN(TA(h.e),u),s=h,d.c[d.c.length]=h,c=0,f.c=HV(Rjt,Zkt,1,0,5,1)));return v4(d,f),d}(s,n,h.a,h.b,(l=r,dz(a),l));break;default:g=function(t,e,n,i,r){var a,o,s,c,u,l,h,f,d;for(s=HV(qce,JEt,25,t.c.length,15,1),qrt(f=new aR(new Gs),t),u=0,d=new Jb;0!=f.b.c.length;)if(o=YP(0==f.b.c.length?null:mF(f.b,0),157),u>1&&LF(o)*IF(o)/2>s[0]){for(a=0;as[a];)++a;h=new VJ(new EG(d,0,a+1)),l=LF(o)/IF(o),c=Xxt(h,e,new ky,n,i,r,l),gN(TA(h.e),c),YV(pst(f,h)),qrt(f,new EG(d,a+1,d.c.length)),d.c=HV(Rjt,Zkt,1,0,5,1),u=0,XF(s,s.length,0)}else null!=(0==f.b.c.length?null:mF(f.b,0))&&V0(f,0),u>0&&(s[u]=s[u-1]),s[u]+=LF(o)*IF(o),++u,d.c[d.c.length]=o;return d}(s,n,h.a,h.b,(c=r,dz(a),c))}Ixt(t,(d=Xxt(new VJ(g),n,i,h.a,h.b,r,(dz(a),a))).a,d.b,!1,!0)}function Gmt(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w;for(a=0,o=0,u=new gd(t.a);u.a.5?w-=2*o*(g-.5):g<.5&&(w+=2*a*(.5-g)),w<(r=s.d.b)&&(w=r),p=s.d.c,w>b.a-p-l&&(w=b.a-p-l),s.n.a=n+w}}function Ymt(t,e){var n,i,r,a,o,s,c,u,l;return u="",0==e.length?t.de(iEt,eEt,-1,-1):(NN((l=Ust(e)).substr(0,3),"at ")&&(l=l.substr(3)),-1==(o=(l=l.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(o=l.indexOf("@"))?(u=l,l=""):(u=Ust(l.substr(o+1)),l=Ust(l.substr(0,o))):(n=l.indexOf(")",o),u=l.substr(o+1,n-(o+1)),l=Ust(l.substr(0,o))),-1!=(o=UA(l,fst(46)))&&(l=l.substr(o+1)),(0==l.length||NN(l,"Anonymous function"))&&(l=eEt),s=AL(u,fst(58)),r=jN(u,fst(58),s-1),c=-1,i=-1,a=iEt,-1!=s&&-1!=r&&(a=u.substr(0,r),c=oO(u.substr(r+1,s-(r+1))),i=oO(u.substr(s+1))),t.de(a,l,c,i))}function Kmt(t,e,n){var i,r,a,o,s,c;if(0==e.l&&0==e.m&&0==e.h)throw ow(new Fm("divide by zero"));if(0==t.l&&0==t.m&&0==t.h)return n&&(vRt=JM(0,0,0)),JM(0,0,0);if(e.h==jEt&&0==e.m&&0==e.l)return function(t,e){return t.h==jEt&&0==t.m&&0==t.l?(e&&(vRt=JM(0,0,0)),KA((SZ(),_Rt))):(e&&(vRt=JM(t.l,t.m,t.h)),JM(0,0,0))}(t,n);if(c=!1,e.h>>19&&(e=r5(e),c=!c),o=function(t){var e,n,i;return(n=t.l)&n-1||(i=t.m)&i-1||(e=t.h)&e-1||0==e&&0==i&&0==n?-1:0==e&&0==i&&0!=n?d0(n):0==e&&0!=i&&0==n?d0(i)+22:0!=e&&0==i&&0==n?d0(e)+44:-1}(e),a=!1,r=!1,i=!1,t.h==jEt&&0==t.m&&0==t.l){if(r=!0,a=!0,-1!=o)return s=Qht(t,o),c&&T5(s),n&&(vRt=JM(0,0,0)),s;t=KA((SZ(),xRt)),i=!0,c=!c}else t.h>>19&&(a=!0,t=r5(t),i=!0,c=!c);return-1!=o?D5(t,o,c,a,n):hat(t,e)<0?(n&&(vRt=a?r5(t):JM(t.l,t.m,t.h)),JM(0,0,0)):function(t,e,n,i,r,a){var o,s,c,u,l,h;for(o=hct(e,c=w5(e)-w5(t)),s=JM(0,0,0);c>=0&&(!_rt(t,o)||(c<22?s.l|=1<>>1,o.m=u>>>1|(1&l)<<21,o.l=h>>>1|(1&u)<<21,--c;return n&&T5(s),a&&(i?(vRt=r5(t),r&&(vRt=g4(vRt,(SZ(),_Rt)))):vRt=JM(t.l,t.m,t.h)),s}(i?t:JM(t.l,t.m,t.h),e,c,a,r,n)}function Wmt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g;if(t.e&&t.c.ce.f||e.g>t.f)){for(n=0,i=0,o=t.w.a.ec().Kc();o.Ob();)r=YP(o.Pb(),11),H6(C5(M4($v(D9t,1),m_t,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++n;for(s=t.r.a.ec().Kc();s.Ob();)r=YP(s.Pb(),11),H6(C5(M4($v(D9t,1),m_t,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--n;for(c=e.w.a.ec().Kc();c.Ob();)r=YP(c.Pb(),11),H6(C5(M4($v(D9t,1),m_t,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&++i;for(a=e.r.a.ec().Kc();a.Ob();)r=YP(a.Pb(),11),H6(C5(M4($v(D9t,1),m_t,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&--i;n=0)return r=function(t,e){var n;if(EI(n=Kdt(t.Tg(),e),99))return YP(n,18);throw ow(new Ym(fNt+e+"' is not a valid reference"))}(t,e.substr(1,a-1)),function(t,e,n){var i,r,a,o,s,c,u,l,h,f;for(c=new Jb,h=e.length,o=E5(n),u=0;u=0?t._g(u,!1,!0):Qlt(t,n,!1),58).Kc();a.Ob();){for(r=YP(a.Pb(),56),l=0;l=0){i=YP(yX(t,$J(t,e.substr(1,n-1)),!1),58),c=0;try{c=Jbt(e.substr(n+1),X_t,Ykt)}catch(t){throw EI(t=b4(t),127)?ow(new dZ(t)):ow(t)}if(c=0)return n;switch(mz(xZ(t,n))){case 2:if(NN("",$8(t,n.Hj()).ne())){if(c=Aft(t,e,s=Vz(xZ(t,n)),Xz(xZ(t,n))))return c;for(o=0,u=(r=Sbt(t,e)).gc();o1,l=new $X(d.b);WM(l.a)||WM(l.b);)f=(u=YP(WM(l.a)?BG(l.a):BG(l.b),17)).c==d?u.d:u.c,e.Math.abs(C5(M4($v(D9t,1),m_t,8,0,[f.i.n,f.n,f.a])).b-s.b)>1&&ygt(t,u,s,o,d)}}function evt(){evt=I,kse=(Px(),xse).b,Tse=YP(JJ(eH(xse.b),0),34),_se=YP(JJ(eH(xse.b),1),34),Ese=YP(JJ(eH(xse.b),2),34),Pse=xse.bb,YP(JJ(eH(xse.bb),0),34),YP(JJ(eH(xse.bb),1),34),Fse=xse.fb,jse=YP(JJ(eH(xse.fb),0),34),YP(JJ(eH(xse.fb),1),34),YP(JJ(eH(xse.fb),2),18),$se=xse.qb,Hse=YP(JJ(eH(xse.qb),0),34),YP(JJ(eH(xse.qb),1),18),YP(JJ(eH(xse.qb),2),18),zse=YP(JJ(eH(xse.qb),3),34),qse=YP(JJ(eH(xse.qb),4),34),Gse=YP(JJ(eH(xse.qb),6),34),Use=YP(JJ(eH(xse.qb),5),18),Cse=xse.j,Sse=xse.k,Ase=xse.q,Mse=xse.w,Ise=xse.B,Lse=xse.A,Ose=xse.C,Dse=xse.D,Nse=xse._,Bse=xse.cb,Rse=xse.hb}function nvt(t,e){var n,i,r,a;a=t.F,null==e?(t.F=null,b6(t,null)):(t.F=(dz(e),e),-1!=(i=UA(e,fst(60)))?(r=e.substr(0,i),-1==UA(e,fst(46))&&!NN(r,qkt)&&!NN(r,NBt)&&!NN(r,PBt)&&!NN(r,BBt)&&!NN(r,FBt)&&!NN(r,jBt)&&!NN(r,RBt)&&!NN(r,$Bt)&&(r=zBt),-1!=(n=AL(e,fst(62)))&&(r+=""+e.substr(n+1)),b6(t,r)):(r=e,-1==UA(e,fst(46))&&(-1!=(i=UA(e,fst(91)))&&(r=e.substr(0,i)),NN(r,qkt)||NN(r,NBt)||NN(r,PBt)||NN(r,BBt)||NN(r,FBt)||NN(r,jBt)||NN(r,RBt)||NN(r,$Bt)?r=e:(r=zBt,-1!=i&&(r+=""+e.substr(i)))),b6(t,r),r==e&&(t.F=t.D))),4&t.Db&&!(1&t.Db)&&O3(t,new fR(t,1,5,a,e))}function ivt(t,e){var n;if(null==e||NN(e,e_t)||0==e.length&&t.k!=(cut(),E9t))return null;switch(t.k.g){case 1:return det(e,bDt)?(mL(),SRt):det(e,wDt)?(mL(),CRt):null;case 2:try{return u7(Jbt(e,X_t,Ykt))}catch(t){if(EI(t=b4(t),127))return null;throw ow(t)}case 4:try{return fct(e)}catch(t){if(EI(t=b4(t),127))return null;throw ow(t)}case 3:return e;case 5:return N6(t),$lt(t,e);case 6:return N6(t),function(t,e,n){var i,r,a,o,s,c,u;for(u=new tP(i=YP(e.e&&e.e(),9),YP(QD(i,i.length),9),0),o=0,s=(a=Cbt(n,"[\\[\\]\\s,]+")).length;o-2;default:return!1}switch(e=t.gj(),t.p){case 0:return null!=e&&Vm(aD(e))!=oA(t.k,0);case 1:return null!=e&&YP(e,217).a!=HF(t.k)<<24>>24;case 2:return null!=e&&YP(e,172).a!=(HF(t.k)&oEt);case 6:return null!=e&&oA(YP(e,162).a,t.k);case 5:return null!=e&&YP(e,19).a!=HF(t.k);case 7:return null!=e&&YP(e,184).a!=HF(t.k)<<16>>16;case 3:return null!=e&&Qm(oD(e))!=t.j;case 4:return null!=e&&YP(e,155).a!=t.j;default:return null==e?null!=t.n:!U8(e,t.n)}}function avt(t,e,n){var i,r,a,o;return t.Fk()&&t.Ek()&&JS(o=nR(t,YP(n,56)))!==JS(n)?(t.Oi(e),t.Ui(e,CQ(t,0,o)),t.rk()&&(r=YP(n,49),a=t.Dk()?t.Bk()?r.ih(t.b,Xnt(YP(_J(EH(t.b),t.aj()),18)).n,YP(_J(EH(t.b),t.aj()).Yj(),26).Bj(),null):r.ih(t.b,X9(r.Tg(),Xnt(YP(_J(EH(t.b),t.aj()),18))),null,null):r.ih(t.b,-1-t.aj(),null,null),!YP(o,49).eh()&&(i=YP(o,49),a=t.Dk()?t.Bk()?i.gh(t.b,Xnt(YP(_J(EH(t.b),t.aj()),18)).n,YP(_J(EH(t.b),t.aj()).Yj(),26).Bj(),a):i.gh(t.b,X9(i.Tg(),Xnt(YP(_J(EH(t.b),t.aj()),18))),null,a):i.gh(t.b,-1-t.aj(),null,a)),a&&a.Fi()),hM(t.b)&&t.$i(t.Zi(9,n,o,e,!1)),o):n}function ovt(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x;for(h=Qm(oD(Sst(t,(hkt(),M0t)))),r=Qm(oD(Sst(t,H0t))),s5(d=new Vs,M0t,h+r),y=(l=n).d,b=l.c.i,m=l.d.i,w=QA(b.c),v=QA(m.c),a=new Jb,f=w;f<=v;f++)Af(c=new Jnt(t),(uct(),NGt)),s5(c,(Tkt(),xVt),l),s5(c,c0t,(Oot(),tie)),s5(c,L0t,d),g=YP(mF(t.b,f),29),f==w?Frt(c,g.a.c.length-i,g):YU(c,g),(x=Qm(oD(Sst(l,f1t))))<0&&s5(l,f1t,x=0),c.o.b=x,p=e.Math.floor(x/2),llt(s=new Ect,(_xt(),Pie)),KU(s,c),s.n.b=p,llt(u=new Ect,pie),KU(u,c),u.n.b=p,UU(l,s),n4(o=new wH,l),s5(o,E1t,null),GU(o,u),UU(o,y),wat(c,l,o),a.c[a.c.length]=o,l=o;return a}function svt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b;for(s=YP(Act(t,(_xt(),Pie)).Kc().Pb(),11).e,h=YP(Act(t,pie).Kc().Pb(),11).g,o=s.c.length,b=IG(YP(mF(t.j,0),11));o-- >0;){for(CG(0,s.c.length),d=YP(s.c[0],17),CG(0,h.c.length),r=rZ((i=YP(h.c[0],17)).d.e,i,0),VY(d,i.d,r),GU(i,null),UU(i,null),f=d.a,e&&DB(f,new oM(b)),n=Wet(i.a,0);n.b!=n.d.c;)DB(f,new oM(YP(kK(n),8)));for(p=d.b,l=new gd(i.b);l.a0&&(s=e.Math.max(s,z2(t.C.b+r.d.b,a))),h=r,f=a,d=o;t.C&&t.C.c>0&&(g=d+t.C.c,l&&(g+=h.d.c),s=e.Math.max(s,(qM(),n0(xCt),e.Math.abs(f-1)<=xCt||1==f||isNaN(f)&&isNaN(1)?0:g/(1-f)))),i.n.b=0,i.a.a=s}function uvt(t,n){var i,r,a,o,s,c,u,l,h,f,d,g;if(i=YP(Rz(t.b,n),124),(u=YP(YP(DX(t.r,n),21),84)).dc())return i.n.d=0,void(i.n.a=0);for(l=t.u.Hc((Tlt(),uie)),s=0,t.A.Hc((Ttt(),Yie))&&Upt(t,n),c=u.Kc(),h=null,d=0,f=0;c.Ob();)o=Qm(oD((r=YP(c.Pb(),111)).b.We((qL(),Rqt)))),a=r.b.rf().b,h?(g=f+h.d.a+t.w+r.d.d,s=e.Math.max(s,(qM(),n0(xCt),e.Math.abs(d-o)<=xCt||d==o||isNaN(d)&&isNaN(o)?0:g/(o-d)))):t.C&&t.C.d>0&&(s=e.Math.max(s,z2(t.C.d+r.d.d,o))),h=r,d=o,f=a;t.C&&t.C.a>0&&(g=f+t.C.a,l&&(g+=h.d.a),s=e.Math.max(s,(qM(),n0(xCt),e.Math.abs(d-1)<=xCt||1==d||isNaN(d)&&isNaN(1)?0:g/(1-d)))),i.n.d=0,i.a.b=s}function lvt(t,e,n){var i,r,a,o,s,c;for(this.g=t,s=e.d.length,c=n.d.length,this.d=HV(IGt,bAt,10,s+c,0,1),o=0;o0?e1(this,this.f/this.a):null!=MI(e.g,e.d[0]).a&&null!=MI(n.g,n.d[0]).a?e1(this,(Qm(MI(e.g,e.d[0]).a)+Qm(MI(n.g,n.d[0]).a))/2):null!=MI(e.g,e.d[0]).a?e1(this,MI(e.g,e.d[0]).a):null!=MI(n.g,n.d[0]).a&&e1(this,MI(n.g,n.d[0]).a)}function hvt(t,e){var n,i,r,a,o,s,c,u,l;for(t.a=new F$(function(t){var e;return new tP(e=YP(t.e&&t.e(),9),YP(JR(e,e.length),9),e.length)}(Qee)),i=new gd(e.a);i.a=1&&(b-o>0&&h>=0?(c.n.a+=p,c.n.b+=a*o):b-o<0&&l>=0&&(c.n.a+=p*b,c.n.b+=a));t.o.a=e.a,t.o.b=e.b,s5(t,(hkt(),Y1t),(Ttt(),new tP(i=YP(Sx(Wie),9),YP(QD(i,i.length),9),0)))}function gvt(t){var e,n,i,r,a,o,s,c,u,l;for(i=new Jb,o=new gd(t.e.a);o.a1)for(p=HV(jce,vEt,25,t.b.b.c.length,15,1),h=0,l=new gd(t.b.b);l.a=s&&r<=c)s<=r&&a<=c?(n[l++]=r,n[l++]=a,i+=2):s<=r?(n[l++]=r,n[l++]=c,t.b[i]=c+1,o+=2):a<=c?(n[l++]=s,n[l++]=a,i+=2):(n[l++]=s,n[l++]=c,t.b[i]=c+1);else{if(!(cW_t)&&c<10);Kv(t.c,new xe),wvt(t),function(t){Zvt(t,(X8(),Yee)),t.d=!0}(t.c),function(t){var n,i,r,a,o,s,c,u;for(o=new gd(t.a.b);o.a=2){for(o=YP(kK(c=Wet(n,0)),8),s=YP(kK(c),8);s.a0&&QP(t.p,f),QP(t.o,f);p=u+(n-=r),h+=n*t.e,UW(t.a,c,u7(p)),UW(t.b,c,h),t.j=e.Math.max(t.j,p),t.k=e.Math.max(t.k,h),t.d+=n,n+=w}}(t),t.q=YP(Sst(n,(hkt(),O1t)),260),f=YP(Sst(t.g,L1t),19).a,o=new ui,t.q.g){case 2:case 1:default:Cmt(t,o);break;case 3:for(t.q=(Pdt(),F2t),Cmt(t,o),u=0,c=new gd(t.a);c.at.j&&(t.q=L2t,Cmt(t,o));break;case 4:for(t.q=(Pdt(),F2t),Cmt(t,o),h=0,a=new gd(t.b);a.at.k&&(t.q=N2t,Cmt(t,o));break;case 6:Cmt(t,new Ag(nU(e.Math.ceil(t.f.length*f/100))));break;case 5:Cmt(t,new Mg(nU(e.Math.ceil(t.d*f/100))))}(function(t,e){var n,i,r,a,o,s;for(r=new Jb,n=0;n<=t.i;n++)(i=new j$(e)).p=t.i-n,r.c[r.c.length]=i;for(s=new gd(t.o);s.a=n}(this.k)}function Tvt(t,e){var n,i,r,a,o,s,c,u,h;for(s=!0,r=0,c=t.f[e.p],u=e.o.b+t.n,n=t.c[e.p][2],UW(t.a,c,u7(YP(mF(t.a,c),19).a-1+n)),UW(t.b,c,Qm(oD(mF(t.b,c)))-u+n*t.e),++c>=t.i?(++t.i,QP(t.a,u7(1)),QP(t.b,u)):(i=t.c[e.p][1],UW(t.a,c,u7(YP(mF(t.a,c),19).a+1-i)),UW(t.b,c,Qm(oD(mF(t.b,c)))+u-i*t.e)),(t.q==(Pdt(),L2t)&&(YP(mF(t.a,c),19).a>t.j||YP(mF(t.a,c-1),19).a>t.j)||t.q==N2t&&(Qm(oD(mF(t.b,c)))>t.k||Qm(oD(mF(t.b,c-1)))>t.k))&&(s=!1),a=new Sj(cL(e9(e).a.Kc(),new l));Ght(a);)o=YP(pX(a),17).c.i,t.f[o.p]==c&&(r+=YP((h=Tvt(t,o)).a,19).a,s=s&&Vm(aD(h.b)));return t.f[e.p]=c,new pS(u7(r+=t.c[e.p][0]),(mL(),!!s))}function Cvt(t,n,i,r,a){var o,s,c,u,l,h,f,d,g,p,b,w,y;for(f=new tw,s=new Jb,ylt(t,i,t.d.fg(),s,f),ylt(t,r,t.d.gg(),s,f),t.b=.2*(b=hft(qZ(new xF(null,new AG(s,16)),new Co)),w=hft(qZ(new xF(null,new AG(s,16)),new So)),e.Math.min(b,w)),o=0,c=0;c=2&&(y=Idt(s,!0,d),!t.e&&(t.e=new Op(t)),set(t.e,y,s,t.b)),Fot(s,d),function(t){var n,i,r,a,o,s,c,u,l;for(u=new Jb,s=new Jb,o=new gd(t);o.a-1){for(a=new gd(s);a.a0)&&(Ff(c,e.Math.min(c.o,r.o-1)),Bf(c,c.i-1),0==c.i&&(s.c[s.c.length]=c))}}(s),g=-1,h=new gd(s);h.an))}(t)&&(i=(JS(Sst(t,p1t))===JS(Ene)?YP(Sst(t,HJt),292):YP(Sst(t,UJt),292))==(Z3(),MXt)?(Skt(),UYt):(Skt(),rKt),iF(e,(Ast(),KUt),i)),YP(Sst(t,Q0t),377).g){case 1:iF(e,(Ast(),KUt),(Skt(),nKt));break;case 2:pj(iF(iF(e,(Ast(),YUt),(Skt(),nYt)),KUt,iYt),WUt,rYt)}return JS(Sst(t,RJt))!==JS((p5(),z2t))&&iF(e,(Ast(),YUt),(Skt(),iKt)),e}(e)),s5(e,LVt,Wmt(t.a,e))}function Avt(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m;for(l=KEt,h=KEt,c=WEt,u=WEt,d=new gd(n.i);d.a=s&&r<=c)s<=r&&a<=c?i+=2:s<=r?(t.b[i]=c+1,o+=2):a<=c?(n[l++]=r,n[l++]=s-1,i+=2):(n[l++]=r,n[l++]=s-1,t.b[i]=c+1,o+=2);else{if(!(c0?1:0;a.a[r]!=n;)a=a.a[r],r=t.a.ue(n.d,a.d)>0?1:0;a.a[r]=i,i.b=n.b,i.a[0]=n.a[0],i.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}(t,c,o,l=new WV(h.d,h.e)),f==o&&(f=l)),f.a[f.a[1]==h?1:0]=h.a[h.a[0]?0:1],--t.c),t.b=c.a[1],t.b&&(t.b.b=!1),n.b}function Bvt(t,n,i){var r,a,o,s,c,u,l,h,f,d;if(i)for(r=-1,h=new YY(n,0);h.b0&&0==n.c&&(!e&&(e=new Jb),e.c[e.c.length]=n);if(e)for(;0!=e.c.length;){if((n=YP(OX(e,0),233)).b&&n.b.c.length>0)for(!n.b&&(n.b=new Jb),a=new gd(n.b);a.arZ(t,n,0))return new pS(r,n)}else if(Qm(MI(r.g,r.d[0]).a)>Qm(MI(n.g,n.d[0]).a))return new pS(r,n);for(s=(!n.e&&(n.e=new Jb),n.e).Kc();s.Ob();)!(o=YP(s.Pb(),233)).b&&(o.b=new Jb),QU(0,(c=o.b).c.length),$E(c.c,0,n),o.c==c.c.length&&(e.c[e.c.length]=o)}return null}function jvt(t,e){var n,i,r,a,o,s;if(null==t)return e_t;if(null!=e.a.zc(t,e))return"[...]";for(n=new Y3(Vkt,"[","]"),a=0,o=(r=t).length;a=14&&s<=16?EI(i,177)?BX(n,rlt(YP(i,177))):EI(i,190)?BX(n,Dot(YP(i,190))):EI(i,195)?BX(n,yct(YP(i,195))):EI(i,2012)?BX(n,Not(YP(i,2012))):EI(i,48)?BX(n,ilt(YP(i,48))):EI(i,364)?BX(n,Slt(YP(i,364))):EI(i,832)?BX(n,nlt(YP(i,832))):EI(i,104)&&BX(n,elt(YP(i,104))):e.a._b(i)?(n.a?pA(n.a,n.b):n.a=new xL(n.d),dA(n.a,"[...]")):BX(n,jvt(r1(i),new bF(e))):BX(n,null==i?e_t:k9(i));return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function Rvt(t,n,i,r){var a,o,s,c,u,l,h,f,d,g,p,b;for(g=Nct(Kgt(n,!1,!1)),r&&(g=$5(g)),b=Qm(oD(yft(n,(snt(),_Ht)))),xO(0!=g.b),d=YP(g.a.a.c,8),l=YP(bnt(g,1),8),g.b>2?(v4(u=new Jb,new EG(g,1,g.b)),n4(p=new Zht(pkt(u,b+t.a)),n),i.c[i.c.length]=p):p=YP(B$(t.b,r?Nst(n):Fst(n)),266),s=Nst(n),r&&(s=Fst(n)),o=function(t,n){var i,r,a;return a=uSt,knt(),r=oHt,a=e.Math.abs(t.b),(i=e.Math.abs(n.f-t.b))>16==-10?n=YP(t.Cb,284).nk(e,n):t.Db>>16==-15&&(!e&&(Ikt(),e=woe),!s&&(Ikt(),s=woe),t.Cb.nh()&&(o=new gZ(t.Cb,1,13,s,e,Ont(kZ(YP(t.Cb,59)),t),!1),n?n.Ei(o):n=o));else if(EI(t.Cb,88))t.Db>>16==-23&&(EI(e,88)||(Ikt(),e=voe),EI(s,88)||(Ikt(),s=voe),t.Cb.nh()&&(o=new gZ(t.Cb,1,10,s,e,Ont(XK(YP(t.Cb,26)),t),!1),n?n.Ei(o):n=o));else if(EI(t.Cb,444))for(!(a=YP(t.Cb,836)).b&&(a.b=new Ub(new Uy)),r=new Gb(new X5(new Kf(a.b.a).a));r.a.b;)n=$vt(i=YP(i1(r.a).cd(),87),hdt(i,a),n);return n}function zvt(t){var n,i,r,a,o,s,c,u,l,h,f,d;if((d=YP(yft(t,(Ekt(),Ute)),21)).dc())return null;if(c=0,s=0,d.Hc((Ttt(),Gie))){for(h=YP(yft(t,dee),98),r=2,i=2,a=2,o=2,n=kU(t)?YP(yft(kU(t),mte),103):YP(yft(t,mte),103),l=new zI((!t.c&&(t.c=new gR(Zre,t,9,9)),t.c));l.e!=l.i.gc();)if(u=YP(ant(l),118),(f=YP(yft(u,vee),61))==(_xt(),Nie)&&(f=Wwt(u,n),Cnt(u,vee,f)),h==(Oot(),tie))switch(f.g){case 1:r=e.Math.max(r,u.i+u.g);break;case 2:i=e.Math.max(i,u.j+u.f);break;case 3:a=e.Math.max(a,u.i+u.g);break;case 4:o=e.Math.max(o,u.j+u.f)}else switch(f.g){case 1:r+=u.g+2;break;case 2:i+=u.f+2;break;case 3:a+=u.g+2;break;case 4:o+=u.f+2}c=e.Math.max(r,a),s=e.Math.max(i,o)}return Ixt(t,c,s,!0,!0)}function qvt(t,n,i,r,a){var o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x;for(m=YP(pW(BJ(aq(new xF(null,new AG(n.d,16)),new Zg(i)),new Jg(i)),dQ(new q,new z,new it,M4($v(ozt,1),q_t,132,0,[(_6(),izt)]))),15),f=Ykt,h=X_t,u=new gd(n.b.j);u.a0)?u&&(l=p.p,o?++l:--l,h=!(Ddt(i=n5(YP(mF(p.c.a,l),10)),v,n[0])||Jj(i,v,n[0]))):h=!0),f=!1,(m=e.D.i)&&m.c&&s.e&&(o&&m.p>0||!o&&m.p0&&(e.a+=Vkt),Kvt(YP(ant(o),160),e);for(e.a+=fAt,s=new eO((!i.c&&(i.c=new CN(Hre,i,5,8)),i.c));s.e!=s.i.gc();)s.e>0&&(e.a+=Vkt),Kvt(YP(ant(s),160),e);e.a+=")"}}}function Wvt(t,e,n){var i,r,a,o,s,c,u,l,h,f,d;if(a=YP(Sst(t,(Tkt(),xVt)),79)){for(i=t.a,gN(r=new oM(n),function(t){var e,n,i,r;if(r=YP(Sst(t,(Tkt(),YXt)),37)){for(i=new _x,e=lz(t.c.i);e!=r;)e=lz(n=e.e),SO(gN(gN(i,n.n),e.c),e.d.b,e.d.d);return i}return YGt}(t)),D3(t.d.i,t.c.i)?(f=t.c,pN(h=C5(M4($v(D9t,1),m_t,8,0,[f.n,f.a])),n)):h=IG(t.c),HW(i,h,i.a,i.a.a),d=IG(t.d),null!=Sst(t,HVt)&&gN(d,YP(Sst(t,HVt),8)),HW(i,d,i.c.b,i.c),n1(i,r),S0(o=Kgt(a,!0,!0),YP(JJ((!a.b&&(a.b=new CN(Hre,a,4,7)),a.b),0),82)),A0(o,YP(JJ((!a.c&&(a.c=new CN(Hre,a,5,8)),a.c),0),82)),uyt(i,o),l=new gd(t.b);l.ao?1:GA(isNaN(0),isNaN(o)))<0&&(n0(zLt),(e.Math.abs(o-1)<=zLt||1==o||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:GA(isNaN(o),isNaN(1)))<0)&&(n0(zLt),(e.Math.abs(0-s)<=zLt||0==s||isNaN(0)&&isNaN(s)?0:0s?1:GA(isNaN(0),isNaN(s)))<0)&&(n0(zLt),(e.Math.abs(s-1)<=zLt||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:GA(isNaN(s),isNaN(1)))<0))}function Vvt(t,n,i,r,a,o,s){var c,u,l,h,f,d,g,p,b,w,y,m;if(w=function(t,e,n){var i,r,a,o,s,c,u,l;for(l=new Jb,a=0,J1(u=new uY(0,n),new W5(0,0,u,n)),r=0,c=new zI(t);c.e!=c.i.gc();)s=YP(ant(c),33),i=YP(mF(u.a,u.a.c.length-1),187),r+s.g+(0==YP(mF(u.a,0),187).b.c.length?0:n)>e&&(r=0,a+=u.b+n,l.c[l.c.length]=u,J1(u=new uY(a,n),i=new W5(0,u.f,u,n)),r=0),0==i.b.c.length||s.f>=i.o&&s.f<=i.f||.5*i.a<=s.f&&1.5*i.a>=s.f?o9(i,s):(J1(u,o=new W5(i.s+i.r+n,u.f,u,n)),o9(o,s)),r=s.i+s.g;return l.c[l.c.length]=u,l}(n,i,t.g),a.n&&a.n&&o&&WG(a,LY(o),(x6(),gre)),t.b)for(b=0;b0?t.g:0),++i;t.c=a,t.d=r}(t,w),a.n&&a.n&&o&&WG(a,LY(o),(x6(),gre)),m=e.Math.max(t.d,r.a-(s.b+s.c)),c=(f=e.Math.max(t.c,r.b-(s.d+s.a)))-t.c,t.e&&t.f&&(m/f0&&(t.c[e.c.p][e.p].d+=Hft(t.i,24)*wTt*.07000000029802322-.03500000014901161,t.c[e.c.p][e.p].a=t.c[e.c.p][e.p].d/t.c[e.c.p][e.p].b)}}function ixt(t,n,i,r,a){var o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_;for(_=0,g=0,f=new gd(n.e);f.a=l&&k>=w&&(d+=p.n.b+b.n.b+b.a.b-x,++c));if(i)for(s=new gd(m.e);s.a=l&&k>=w&&(d+=p.n.b+b.n.b+b.a.b-x,++c))}c>0&&(_+=d/c,++g)}g>0?(n.a=a*_/g,n.g=g):(n.a=0,n.g=0)}function rxt(t,n){var i,r,a,o,s,c,u,l,h,f;for(r=new gd(t.a.b);r.aWEt||n.o==h4t&&lr.d,r.d=e.Math.max(r.d,n),c&&i&&(r.d=e.Math.max(r.d,r.a),r.a=r.d+a);break;case 3:i=n>r.a,r.a=e.Math.max(r.a,n),c&&i&&(r.a=e.Math.max(r.a,r.d),r.d=r.a+a);break;case 2:i=n>r.c,r.c=e.Math.max(r.c,n),c&&i&&(r.c=e.Math.max(r.b,r.c),r.b=r.c+a);break;case 4:i=n>r.b,r.b=e.Math.max(r.b,n),c&&i&&(r.b=e.Math.max(r.b,r.c),r.c=r.b+a)}}}(c),function(t){switch(t.q.g){case 5:Oat(t,(_xt(),bie)),Oat(t,Die);break;case 4:cvt(t,(_xt(),bie)),cvt(t,Die);break;default:vut(t,(_xt(),bie)),vut(t,Die)}}(c),function(t){switch(t.q.g){case 5:Dat(t,(_xt(),pie)),Dat(t,Pie);break;case 4:uvt(t,(_xt(),pie)),uvt(t,Pie);break;default:xut(t,(_xt(),pie)),xut(t,Pie)}}(c),function(t){var e,n,i,r,a,o,s;if(!t.A.dc()){if(t.A.Hc((Ttt(),Gie))&&(YP(Rz(t.b,(_xt(),bie)),124).k=!0,YP(Rz(t.b,Die),124).k=!0,e=t.q!=(Oot(),eie)&&t.q!=tie,Tf(YP(Rz(t.b,pie),124),e),Tf(YP(Rz(t.b,Pie),124),e),Tf(t.g,e),t.A.Hc(Yie)&&(YP(Rz(t.b,bie),124).j=!0,YP(Rz(t.b,Die),124).j=!0,YP(Rz(t.b,pie),124).k=!0,YP(Rz(t.b,Pie),124).k=!0,t.g.k=!0)),t.A.Hc(Uie))for(t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,s=t.B.Hc((Gbt(),tre)),a=0,o=(r=qet()).length;a0&&(u=t.n.a/a);break;case 2:case 4:(r=t.i.o.b)>0&&(u=t.n.b/r)}s5(t,(Tkt(),IVt),u)}if(c=t.o,o=t.a,i)o.a=i.a,o.b=i.b,t.d=!0;else if(e!=iie&&e!=rie&&s!=Nie)switch(s.g){case 1:o.a=c.a/2;break;case 2:o.a=c.a,o.b=c.b/2;break;case 3:o.a=c.a/2,o.b=c.b;break;case 4:o.b=c.b/2}else o.a=c.a/2,o.b=c.b/2}(u,a,r,YP(yft(e,o0t),8)),c=new zI((!e.n&&(e.n=new gR(Vre,e,1,7)),e.n));c.e!=c.i.gc();)!Vm(aD(yft(s=YP(ant(c),137),V1t)))&&s.a&&QP(u.f,u8(s));switch(r.g){case 2:case 1:(u.j==(_xt(),bie)||u.j==Die)&&i.Fc((Zgt(),_Xt));break;case 4:case 3:(u.j==(_xt(),pie)||u.j==Pie)&&i.Fc((Zgt(),_Xt))}return u}function hxt(t,n,i,r,a,o,s){var c,u,l,h,f,d,g,p,b,w,y,m;for(f=null,r==(YH(),$4t)?f=n:r==z4t&&(f=i),p=f.a.ec().Kc();p.Ob();){for(g=YP(p.Pb(),11),b=C5(M4($v(D9t,1),m_t,8,0,[g.i.n,g.n,g.a])).b,m=new Yw,c=new Yw,l=new $X(g.b);WM(l.a)||WM(l.b);)if(Vm(aD(Sst(u=YP(WM(l.a)?BG(l.a):BG(l.b),17),(Tkt(),NVt))))==a&&-1!=rZ(o,u,0)){if(w=u.d==g?u.c:u.d,y=C5(M4($v(D9t,1),m_t,8,0,[w.i.n,w.n,w.a])).b,e.Math.abs(y-b)<.2)continue;y1)for(zW(m,new _C(t,d=new jmt(g,m,r))),s.c[s.c.length]=d,h=m.a.ec().Kc();h.Ob();)eZ(o,YP(h.Pb(),46).b);if(c.a.gc()>1)for(zW(c,new EC(t,d=new jmt(g,c,r))),s.c[s.c.length]=d,h=c.a.ec().Kc();h.Ob();)eZ(o,YP(h.Pb(),46).b)}}function fxt(t){iE(t,new Vot(Qv(tx(Vv(Jv(Zv(new gs,EOt),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new qo),EOt))),IY(t,EOt,CLt,int(z6t)),IY(t,EOt,ASt,int(U6t)),IY(t,EOt,FSt,int(N6t)),IY(t,EOt,QSt,int(P6t)),IY(t,EOt,BSt,int(B6t)),IY(t,EOt,jSt,int(D6t)),IY(t,EOt,PSt,int(F6t)),IY(t,EOt,RSt,int($6t)),IY(t,EOt,vOt,int(L6t)),IY(t,EOt,mOt,int(O6t)),IY(t,EOt,_Ot,int(j6t)),IY(t,EOt,wOt,int(R6t)),IY(t,EOt,yOt,int(q6t)),IY(t,EOt,xOt,int(H6t)),IY(t,EOt,kOt,int(G6t))}function dxt(t){var e;if(this.r=function(t,e){return new vH(YP(v$(t),62),YP(v$(e),62))}(new Tt,new Ct),this.b=new _9(YP(v$(qie),290)),this.p=new _9(YP(v$(qie),290)),this.i=new _9(YP(v$($qt),290)),this.e=t,this.o=new oM(t.rf()),this.D=t.Df()||Vm(aD(t.We((Ekt(),Ote)))),this.A=YP(t.We((Ekt(),Ute)),21),this.B=YP(t.We(Xte),21),this.q=YP(t.We(dee),98),this.u=YP(t.We(wee),21),!function(t){var e;return Tlt(),!(H3(iU(VF(uie,M4($v(gie,1),q_t,273,0,[hie])),t))>1||(e=VF(cie,M4($v(gie,1),q_t,273,0,[sie,fie])),H3(iU(e,t))>1))}(this.u))throw ow(new cv("Invalid port label placement: "+this.u));if(this.v=Vm(aD(t.We(mee))),this.j=YP(t.We(qte),21),!function(t){var e,n;return mft(),!(H3(iU(VF(Rne,M4($v(Gne,1),q_t,93,0,[$ne])),t))>1||(e=VF(Bne,M4($v(Gne,1),q_t,93,0,[Pne,jne])),H3(iU(e,t))>1)||(n=VF(Hne,M4($v(Gne,1),q_t,93,0,[qne,zne])),H3(iU(n,t))>1))}(this.j))throw ow(new cv("Invalid node label placement: "+this.j));this.n=YP($rt(t,$te),116),this.k=Qm(oD($rt(t,Bee))),this.d=Qm(oD($rt(t,Pee))),this.w=Qm(oD($rt(t,Hee))),this.s=Qm(oD($rt(t,Fee))),this.t=Qm(oD($rt(t,jee))),this.C=YP($rt(t,zee),142),this.c=2*this.d,e=!this.B.Hc((Gbt(),Xie)),this.f=new xet(0,e,0),this.g=new xet(1,e,0),Im(this.f,(YJ(),Zzt),this.g)}function gxt(t){var e,n,i,r,a,o,s,c,u,l,h;if(null==t)throw ow(new Ev(e_t));if(u=t,c=!1,(a=t.length)>0&&(SG(0,t.length),(45==(e=t.charCodeAt(0))||43==e)&&(t=t.substr(1),--a,c=45==e)),0==a)throw ow(new Ev(YEt+u+'"'));for(;t.length>0&&(SG(0,t.length),48==t.charCodeAt(0));)t=t.substr(1),--a;if(a>(Awt(),HRt)[10])throw ow(new Ev(YEt+u+'"'));for(r=0;r0&&(h=-parseInt(t.substr(0,i),10),t=t.substr(i),a-=i,n=!1);a>=o;){if(i=parseInt(t.substr(0,o),10),t=t.substr(o),a-=o,n)n=!1;else{if(p8(h,s)<0)throw ow(new Ev(YEt+u+'"'));h=V7(h,l)}h=W7(h,i)}if(p8(h,0)>0)throw ow(new Ev(YEt+u+'"'));if(!c&&p8(h=iZ(h),0)<0)throw ow(new Ev(YEt+u+'"'));return h}function pxt(t,e){var n,i,r,a,o,s,c;if(YB(),this.a=new pI(this),this.b=t,this.c=e,this.f=RR(xZ((lut(),rse),e)),this.f.dc())if((s=Lat(rse,t))==e)for(this.e=!0,this.d=new Jb,this.f=new lc,this.f.Fc(NFt),YP(_mt(vZ(rse,QJ(t)),""),26)==t&&this.f.Fc(Tj(rse,QJ(t))),r=Abt(rse,t).Kc();r.Ob();)switch(i=YP(r.Pb(),170),mz(xZ(rse,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc(RR(xZ(rse,i)))}else if(vE(),YP(e,66).Oj())for(this.e=!0,this.f=null,this.d=new Jb,o=0,c=(null==t.i&&ryt(t),t.i).length;o=0&&o0&&(YP(Rz(t.b,n),124).a.b=i)}function wxt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y;if((h=e.length)>0&&(SG(0,e.length),64!=(s=e.charCodeAt(0)))){if(37==s&&(c=!1,0!=(l=e.lastIndexOf("%"))&&(l==h-1||(SG(l+1,e.length),c=46==e.charCodeAt(l+1))))){if(y=NN("%",o=e.substr(1,l-1))?null:Sxt(o),i=0,c)try{i=Jbt(e.substr(l+2),X_t,Ykt)}catch(t){throw EI(t=b4(t),127)?ow(new dZ(t)):ow(t)}for(p=s2(t.Wg());p.Ob();)if(EI(d=z3(p),510)&&(w=(r=YP(d,590)).d,(null==y?null==w:NN(y,w))&&0==i--))return r;return null}if(f=-1==(u=e.lastIndexOf("."))?e:e.substr(0,u),n=0,-1!=u)try{n=Jbt(e.substr(u+1),X_t,Ykt)}catch(t){if(!EI(t=b4(t),127))throw ow(t);f=e}for(f=NN("%",f)?null:Sxt(f),g=s2(t.Wg());g.Ob();)if(EI(d=z3(g),191)&&(b=(a=YP(d,191)).ne(),(null==f?null==b:NN(f,b))&&0==n--))return a;return null}return Qmt(t,e)}function yxt(){var t,e,n;for(yxt=I,new KZ(1,0),new KZ(10,0),new KZ(0,0),VRt=HV(r$t,m_t,240,11,0,1),QRt=HV(Fce,rEt,25,100,15,1),ZRt=M4($v(qce,1),JEt,25,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),JRt=HV(jce,vEt,25,ZRt.length,15,1),t$t=M4($v(qce,1),JEt,25,15,[1,10,100,aEt,1e4,tTt,1e6,1e7,1e8,zEt,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),e$t=HV(jce,vEt,25,t$t.length,15,1),n$t=HV(r$t,m_t,240,11,0,1),t=0;tr+2&&t5((SG(r+1,t.length),t.charCodeAt(r+1)),Nae,Pae)&&t5((SG(r+2,t.length),t.charCodeAt(r+2)),Nae,Pae))if(n=SB((SG(r+1,t.length),t.charCodeAt(r+1)),(SG(r+2,t.length),t.charCodeAt(r+2))),r+=2,i>0?128==(192&n)?e[s++]=n<<24>>24:i=0:n>=128&&(192==(224&n)?(e[s++]=n<<24>>24,i=2):224==(240&n)?(e[s++]=n<<24>>24,i=3):240==(248&n)&&(e[s++]=n<<24>>24,i=4)),i>0){if(s==i){switch(s){case 2:N$(c,((31&e[0])<<6|63&e[1])&oEt);break;case 3:N$(c,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&oEt)}s=0,i=0}}else{for(a=0;a0){if(o+i>t.length)return!1;s=qlt(t.substr(0,o+i),e)}else s=qlt(t,e);switch(a){case 71:return s=lst(t,o,M4($v(XRt,1),m_t,2,6,[xEt,kEt]),e),r.e=s,!0;case 77:case 76:return function(t,e,n,i,r){return i<0?((i=lst(t,r,M4($v(XRt,1),m_t,2,6,[sEt,cEt,uEt,lEt,hEt,fEt,dEt,gEt,pEt,bEt,wEt,yEt]),e))<0&&(i=lst(t,r,M4($v(XRt,1),m_t,2,6,["Jan","Feb","Mar","Apr",hEt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(n.k=i,0))):i>0&&(n.k=i-1,!0)}(t,e,r,s,o);case 69:case 99:return function(t,e,n,i){var r;return(r=lst(t,n,M4($v(XRt,1),m_t,2,6,[_Et,EEt,TEt,CEt,SEt,AEt,MEt]),e))<0&&(r=lst(t,n,M4($v(XRt,1),m_t,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(t,e,o,r);case 97:return s=lst(t,o,M4($v(XRt,1),m_t,2,6,["AM","PM"]),e),r.b=s,!0;case 121:return function(t,e,n,i,r,a){var o,s,c;if(s=32,i<0){if(e[0]>=t.length||43!=(s=qz(t,e[0]))&&45!=s||(++e[0],(i=qlt(t,e))<0))return!1;45==s&&(i=-i)}return 32==s&&e[0]-n==2&&2==r.b&&(o=(c=(new i_).q.getFullYear()-mEt+mEt-80)%100,a.a=i==o,i+=100*(c/100|0)+(i3;)r*=10,--a;t=(t+(r>>1))/r|0}return i.i=t,!0}(s,o,e[0],r);case 104:12==s&&(s=0);case 75:case 72:return!(s<0||(r.f=s,r.g=!1,0));case 107:return!(s<0||(r.f=s,r.g=!0,0));case 109:return!(s<0||(r.j=s,0));case 115:return!(s<0||(r.n=s,0));case 90:if(o=1&&(k-l>0&&p>=0?(S1(f,f.i+x),A1(f,f.j+u*l)):k-l<0&&g>=0&&(S1(f,f.i+x*k),A1(f,f.j+u)));return Cnt(t,(Ekt(),Ute),(Ttt(),new tP(o=YP(Sx(Wie),9),YP(QD(o,o.length),9),0))),new YC(_,h)}function Lxt(t){var n,i,r,a,o,s,c,u,l,h,f;if(h=kU(Zot(YP(JJ((!t.b&&(t.b=new CN(Hre,t,4,7)),t.b),0),82)))==kU(Zot(YP(JJ((!t.c&&(t.c=new CN(Hre,t,5,8)),t.c),0),82))),s=new _x,(n=YP(yft(t,(S6(),bne)),74))&&n.b>=2){if(0==(!t.a&&(t.a=new gR(Gre,t,6,6)),t.a).i)Lx(),i=new rc,aQ((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a),i);else if((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a).i>1)for(f=new eO((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a));f.e!=f.i.gc();)Vat(f);uyt(n,YP(JJ((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a),0),202))}if(h)for(r=new zI((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a));r.e!=r.i.gc();)for(u=new zI((!(i=YP(ant(r),202)).a&&(i.a=new qI($re,i,5)),i.a));u.e!=u.i.gc();)c=YP(ant(u),469),s.a=e.Math.max(s.a,c.a),s.b=e.Math.max(s.b,c.b);for(o=new zI((!t.n&&(t.n=new gR(Vre,t,1,7)),t.n));o.e!=o.i.gc();)a=YP(ant(o),137),(l=YP(yft(a,kne),8))&&wM(a,l.a,l.b),h&&(s.a=e.Math.max(s.a,a.i+a.g),s.b=e.Math.max(s.b,a.j+a.f));return s}function Oxt(t,e,n){var i,r,a,o,s;switch(i=e.i,a=t.i.o,r=t.i.d,s=t.n,o=C5(M4($v(D9t,1),m_t,8,0,[s,t.a])),t.j.g){case 1:TD(e,(EZ(),lqt)),i.d=-r.d-n-i.a,YP(YP(mF(e.d,0),181).We((Tkt(),dVt)),285)==(Prt(),Mne)?(oQ(e,(PQ(),oqt)),i.c=o.a-Qm(oD(Sst(t,mVt)))-n-i.b):(oQ(e,(PQ(),aqt)),i.c=o.a+Qm(oD(Sst(t,mVt)))+n);break;case 2:oQ(e,(PQ(),aqt)),i.c=a.a+r.c+n,YP(YP(mF(e.d,0),181).We((Tkt(),dVt)),285)==(Prt(),Mne)?(TD(e,(EZ(),lqt)),i.d=o.b-Qm(oD(Sst(t,mVt)))-n-i.a):(TD(e,(EZ(),fqt)),i.d=o.b+Qm(oD(Sst(t,mVt)))+n);break;case 3:TD(e,(EZ(),fqt)),i.d=a.b+r.a+n,YP(YP(mF(e.d,0),181).We((Tkt(),dVt)),285)==(Prt(),Mne)?(oQ(e,(PQ(),oqt)),i.c=o.a-Qm(oD(Sst(t,mVt)))-n-i.b):(oQ(e,(PQ(),aqt)),i.c=o.a+Qm(oD(Sst(t,mVt)))+n);break;case 4:oQ(e,(PQ(),oqt)),i.c=-r.b-n-i.b,YP(YP(mF(e.d,0),181).We((Tkt(),dVt)),285)==(Prt(),Mne)?(TD(e,(EZ(),lqt)),i.d=o.b-Qm(oD(Sst(t,mVt)))-n-i.a):(TD(e,(EZ(),fqt)),i.d=o.b+Qm(oD(Sst(t,mVt)))+n)}}function Dxt(t,n,i,r,a,o,s){var c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A,M,I;for(g=0,C=0,u=new gd(t);u.ag&&(o&&(yA(k,d),yA(E,u7(l.b-1))),M=i.b,I+=d+n,d=0,h=e.Math.max(h,i.b+i.c+A)),S1(c,M),A1(c,I),h=e.Math.max(h,M+A+i.c),d=e.Math.max(d,f),M+=A+n;if(h=e.Math.max(h,r),(S=I+d+i.a)c&&(v=0,x+=s+y,s=0),zbt(b,i,v,x),n=e.Math.max(n,v+w.a),s=e.Math.max(s,w.b),v+=w.a+y;return b}function Pxt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g;switch(l=new Iy,t.a.g){case 3:f=YP(Sst(e.e,(Tkt(),$Vt)),15),d=YP(Sst(e.j,$Vt),15),g=YP(Sst(e.f,$Vt),15),n=YP(Sst(e.e,jVt),15),i=YP(Sst(e.j,jVt),15),r=YP(Sst(e.f,jVt),15),v4(o=new Jb,f),d.Jc(new ma),v4(o,EI(d,152)?LX(YP(d,152)):EI(d,131)?YP(d,131).a:EI(d,54)?new vm(d):new t_(d)),v4(o,g),v4(a=new Jb,n),v4(a,EI(i,152)?LX(YP(i,152)):EI(i,131)?YP(i,131).a:EI(i,54)?new vm(i):new t_(i)),v4(a,r),s5(e.f,$Vt,o),s5(e.f,jVt,a),s5(e.f,zVt,e.f),s5(e.e,$Vt,null),s5(e.e,jVt,null),s5(e.j,$Vt,null),s5(e.j,jVt,null);break;case 1:_2(l,e.e.a),DB(l,e.i.n),_2(l,k3(e.j.a)),DB(l,e.a.n),_2(l,e.f.a);break;default:_2(l,e.e.a),_2(l,k3(e.j.a)),_2(l,e.f.a)}Bq(e.f.a),_2(e.f.a,l),GU(e.f,e.e.c),s=YP(Sst(e.e,(hkt(),E1t)),74),u=YP(Sst(e.j,E1t),74),c=YP(Sst(e.f,E1t),74),(s||u||c)&&(FR(h=new Iy,c),FR(h,u),FR(h,s),s5(e.f,E1t,h)),GU(e.j,null),UU(e.j,null),GU(e.e,null),UU(e.e,null),YU(e.a,null),YU(e.i,null),e.g&&Pxt(t,e.g)}function Bxt(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T;return v=t.c[(CG(0,n.c.length),YP(n.c[0],17)).p],E=t.c[(CG(1,n.c.length),YP(n.c[1],17)).p],!(v.a.e.e-v.a.a-(v.b.e.e-v.b.a)==0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)==0||(y=v.b.e.f,!EI(y,10))||(w=YP(y,10),k=t.i[w.p],_=w.c?rZ(w.c.a,w,0):-1,o=KEt,_>0&&(a=YP(mF(w.c.a,_-1),10),s=t.i[a.p],T=e.Math.ceil(sI(t.n,a,w)),o=k.a.e-w.d.d-(s.a.e+a.o.b+a.d.a)-T),l=KEt,_0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)<0,p=v.a.e.e-v.a.a-(v.b.e.e-v.b.a)<0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)>0,g=v.a.e.e+v.b.aE.b.e.e+E.a.a,x=0,!b&&!p&&(d?o+f>0?x=f:l-r>0&&(x=r):g&&(o+c>0?x=c:l-m>0&&(x=m))),k.a.e+=x,k.b&&(k.d.e+=x),1)))}function Fxt(t,n,i){var r,a,o,s,c,u,l,h,f,d;if(r=new gq(n.qf().a,n.qf().b,n.rf().a,n.rf().b),a=new aM,t.c)for(s=new gd(n.wf());s.a=2&&(i=YP(r.Kc().Pb(),111),n=t.u.Hc((Tlt(),cie)),a=t.u.Hc(fie),!i.a&&!n&&(2==r.gc()||a))}(t,e),n=t.u.Hc((Tlt(),sie)),c=u.Kc();c.Ob();)if((s=YP(c.Pb(),111)).c&&!(s.c.d.c.length<=0)){switch(f=s.b.rf(),(h=(l=s.c).i).b=(a=l.n,l.e.a+a.b+a.c),h.a=(r=l.n,l.e.b+r.d+r.a),e.g){case 1:s.a?(h.c=(f.a-h.b)/2,oQ(l,(PQ(),rqt))):o||n?(h.c=-h.b-t.s,oQ(l,(PQ(),oqt))):(h.c=f.a+t.s,oQ(l,(PQ(),aqt))),h.d=-h.a-t.t,TD(l,(EZ(),lqt));break;case 3:s.a?(h.c=(f.a-h.b)/2,oQ(l,(PQ(),rqt))):o||n?(h.c=-h.b-t.s,oQ(l,(PQ(),oqt))):(h.c=f.a+t.s,oQ(l,(PQ(),aqt))),h.d=f.b+t.t,TD(l,(EZ(),fqt));break;case 2:s.a?(i=t.v?h.a:YP(mF(l.d,0),181).rf().b,h.d=(f.b-i)/2,TD(l,(EZ(),hqt))):o||n?(h.d=-h.a-t.t,TD(l,(EZ(),lqt))):(h.d=f.b+t.t,TD(l,(EZ(),fqt))),h.c=f.a+t.s,oQ(l,(PQ(),aqt));break;case 4:s.a?(i=t.v?h.a:YP(mF(l.d,0),181).rf().b,h.d=(f.b-i)/2,TD(l,(EZ(),hqt))):o||n?(h.d=-h.a-t.t,TD(l,(EZ(),lqt))):(h.d=f.b+t.t,TD(l,(EZ(),fqt))),h.c=-h.b-t.s,oQ(l,(PQ(),oqt))}o=!1}}function Rxt(t,e){var n,i,r,a,o,s,c,u,l,h,f;if(Akt(),0==o_(cce)){for(h=HV(Nce,m_t,117,lce.length,0,1),o=0;ou&&(i.a+=_I(HV(Fce,rEt,25,-u,15,1))),i.a+="Is",UA(c,fst(32))>=0)for(r=0;r=i.o.b/2}y?(w=YP(Sst(i,(Tkt(),UVt)),15))?f?a=w:(r=YP(Sst(i,qXt),15))?a=w.gc()<=r.gc()?w:r:(a=new Jb,s5(i,qXt,a)):(a=new Jb,s5(i,UVt,a)):(r=YP(Sst(i,(Tkt(),qXt)),15))?h?a=r:(w=YP(Sst(i,UVt),15))?a=r.gc()<=w.gc()?r:w:(a=new Jb,s5(i,UVt,a)):(a=new Jb,s5(i,qXt,a)),a.Fc(t),s5(t,(Tkt(),UXt),n),e.d==n?(UU(e,null),n.e.c.length+n.g.c.length==0&&KU(n,null),function(t){var e,n;(e=YP(Sst(t,(Tkt(),MVt)),10))&&(eZ((n=e.c).a,e),0==n.a.c.length&&eZ(lz(e).b,n))}(n)):(GU(e,null),n.e.c.length+n.g.c.length==0&&KU(n,null)),Bq(e.a)}function zxt(t,n,i){var r,a,o,s,c,u,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A,M,I,L,O;for(tst(i,"MinWidth layering",1),p=n.b,T=n.a,O=YP(Sst(n,(hkt(),M1t)),19).a,c=YP(Sst(n,I1t),19).a,t.b=Qm(oD(Sst(n,C0t))),t.d=KEt,k=new gd(T);k.a0){for(f=l<100?null:new mx(l),g=new X2(e).g,b=HV(jce,vEt,25,l,15,1),i=0,m=new NJ(l),r=0;r=0;)if(null!=d?U8(d,g[c]):JS(d)===JS(g[c])){b.length<=i&&rmt(b,0,b=HV(jce,vEt,25,2*b.length,15,1),0,i),b[i++]=r,aQ(m,g[c]);break t}if(JS(d)===JS(s))break}}if(u=m,g=m.g,l=i,i>b.length&&rmt(b,0,b=HV(jce,vEt,25,i,15,1),0,i),i>0){for(y=!0,a=0;a=0;)Trt(t,b[o]);if(i!=l){for(r=l;--r>=i;)Trt(u,r);rmt(b,0,b=HV(jce,vEt,25,i,15,1),0,i)}e=u}}}else for(e=function(t,e){var n,i,r;if(e.dc())return ZO(),ZO(),kae;for(n=new FD(t,e.gc()),r=new zI(t);r.e!=r.i.gc();)i=ant(r),e.Hc(i)&&aQ(n,i);return n}(t,e),r=t.i;--r>=0;)e.Hc(t.g[r])&&(Trt(t,r),y=!0);if(y){if(null!=b){for(h=1==(n=e.gc())?RU(t,4,e.Kc().Pb(),null,b[0],p):RU(t,6,e,b,b[0],p),f=n<100?null:new mx(n),r=e.Kc();r.Ob();)f=KN(t,YP(d=r.Pb(),72),f);f?(f.Ei(h),f.Fi()):O3(t.e,h)}else{for(f=function(t){return t<100?null:new mx(t)}(e.gc()),r=e.Kc();r.Ob();)f=KN(t,YP(d=r.Pb(),72),f);f&&f.Fi()}return!0}return!1}function Hxt(t,n){var i,r,a,o,s,c,u,h,f,d,g,p,b,w,y,m,v;for((i=new Pnt(n)).a||function(t){var n,i,r,a,o;switch(a=YP(mF(t.a,0),10),n=new Jnt(t),QP(t.a,n),n.o.a=e.Math.max(1,a.o.a),n.o.b=e.Math.max(1,a.o.b),n.n.a=a.n.a,n.n.b=a.n.b,YP(Sst(a,(Tkt(),nVt)),61).g){case 4:n.n.a+=2;break;case 1:n.n.b+=2;break;case 2:n.n.a-=2;break;case 3:n.n.b-=2}KU(r=new Ect,n),GU(i=new wH,o=YP(mF(a.j,0),11)),UU(i,r),gN(TA(r.n),o.n),gN(TA(r.a),o.a)}(n),h=function(t){var e,n,i,r,a,o,s;for(s=new ZW,o=new gd(t.a);o.a=s.b.c)&&(s.b=e),(!s.c||e.c<=s.c.c)&&(s.d=s.c,s.c=e),(!s.e||e.d>=s.e.d)&&(s.e=e),(!s.f||e.d<=s.f.d)&&(s.f=e);return i=new cnt((D4(),oGt)),CY(t,gGt,new nv(M4($v(rGt,1),Zkt,369,0,[i]))),o=new cnt(uGt),CY(t,dGt,new nv(M4($v(rGt,1),Zkt,369,0,[o]))),r=new cnt(sGt),CY(t,fGt,new nv(M4($v(rGt,1),Zkt,369,0,[r]))),a=new cnt(cGt),CY(t,hGt,new nv(M4($v(rGt,1),Zkt,369,0,[a]))),wdt(i.c,oGt),wdt(r.c,sGt),wdt(a.c,cGt),wdt(o.c,uGt),s.a.c=HV(Rjt,Zkt,1,0,5,1),v4(s.a,i.c),v4(s.a,k3(r.c)),v4(s.a,a.c),v4(s.a,k3(o.c)),s}(h)),i}function Uxt(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p;if(null==i.p[n.p]){c=!0,i.p[n.p]=0,s=n,p=i.o==(LU(),h4t)?WEt:KEt;do{a=t.b.e[s.p],o=s.c.a.c.length,i.o==h4t&&a>0||i.o==f4t&&a(o=not(t,n))?pbt(t,e,n):pbt(t,n,e),ro?1:0}return(i=YP(Sst(e,(Tkt(),vVt)),19).a)>(a=YP(Sst(n,vVt),19).a)?pbt(t,e,n):pbt(t,n,e),ia?1:0}function Yxt(t,e,n,i){var r,a,o,s,c,u,h,f,d,g,p,b;if(Vm(aD(yft(e,(Ekt(),Qte)))))return qq(),qq(),b$t;if(c=0!=(!e.a&&(e.a=new gR(Qre,e,10,11)),e.a).i,u=!(h=function(t){var e,n,i;if(Vm(aD(yft(t,(Ekt(),Ote))))){for(i=new Jb,n=new Sj(cL(cdt(t).a.Kc(),new l));Ght(n);)Ult(e=YP(pX(n),79))&&Vm(aD(yft(e,Dte)))&&(i.c[i.c.length]=e);return i}return qq(),qq(),b$t}(e)).dc(),c||u){if(!(r=YP(yft(e,Tee),149)))throw ow(new cv("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(b=zC(r,(zht(),oae)),Tet(e),!c&&u&&!b)return qq(),qq(),b$t;if(s=new Jb,JS(yft(e,Mte))===JS((E8(),Ene))&&(zC(r,iae)||zC(r,nae)))for(d=qpt(t,e),_2(g=new x_,(!e.a&&(e.a=new gR(Qre,e,10,11)),e.a));0!=g.b;)Tet(f=YP(0==g.b?null:(xO(0!=g.b),HJ(g,g.a.a)),33)),JS(yft(f,Mte))===JS(Cne)||RV(f,cte)&&!nX(r,yft(f,Tee))?(v4(s,Yxt(t,f,n,i)),Cnt(f,Mte,Cne),Bbt(f)):_2(g,(!f.a&&(f.a=new gR(Qre,f,10,11)),f.a));else for(d=(!e.a&&(e.a=new gR(Qre,e,10,11)),e.a).i,o=new zI((!e.a&&(e.a=new gR(Qre,e,10,11)),e.a));o.e!=o.i.gc();)v4(s,Yxt(t,a=YP(ant(o),33),n,i)),Bbt(a);for(p=new gd(s);p.a=0?j9(s):E7(j9(s)),t.Ye(d0t,d)),u=new _x,f=!1,t.Xe(o0t)?(IO(u,YP(t.We(o0t),8)),f=!0):function(t,e,n){t.a=e,t.b=n}(u,o.a/2,o.b/2),d.g){case 4:s5(l,S1t,(u9(),KVt)),s5(l,VXt,(Q4(),RWt)),l.o.b=o.b,p<0&&(l.o.a=-p),llt(h,(_xt(),pie)),f||(u.a=o.a),u.a-=o.a;break;case 2:s5(l,S1t,(u9(),XVt)),s5(l,VXt,(Q4(),FWt)),l.o.b=o.b,p<0&&(l.o.a=-p),llt(h,(_xt(),Pie)),f||(u.a=0);break;case 1:s5(l,uVt,(TZ(),PXt)),l.o.a=o.a,p<0&&(l.o.b=-p),llt(h,(_xt(),Die)),f||(u.b=o.b),u.b-=o.b;break;case 3:s5(l,uVt,(TZ(),DXt)),l.o.a=o.a,p<0&&(l.o.b=-p),llt(h,(_xt(),bie)),f||(u.b=0)}if(IO(h.n,u),s5(l,o0t,u),e==Jne||e==eie||e==tie){if(g=0,e==Jne&&t.Xe(u0t))switch(d.g){case 1:case 2:g=YP(t.We(u0t),19).a;break;case 3:case 4:g=-YP(t.We(u0t),19).a}else switch(d.g){case 4:case 2:g=a.b,e==eie&&(g/=r.b);break;case 1:case 3:g=a.a,e==eie&&(g/=r.a)}s5(l,IVt,g)}return s5(l,nVt,d),l}function Wxt(t,e,n,i){var r,a,o,s,c,u,l,h,f,d;for(h=!1,u=t+1,CG(t,e.c.length),o=(l=YP(e.c[t],200)).a,s=null,a=0;au&&0==(CG(u,e.c.length),YP(e.c[u],200)).a.c.length;)eZ(e,(CG(u,e.c.length),e.c[u]));if(!c){--a;continue}if(cwt(e,l,r,c,f,n,u,i)){h=!0;continue}if(f){if(Zyt(e,l,r,c,n,u,i)){h=!0;continue}if(e8(l,r)){r.c=!0,h=!0;continue}}else if(e8(l,r)){r.c=!0,h=!0;continue}if(h)continue}if(e8(l,r)){r.c=!0,h=!0,c&&(c.k=!1);continue}Qit(r.q)}return h}function Xxt(t,n,i,r,a,o,s){var c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A,M,I,L;for(b=0,S=0,l=new gd(t.b);l.ab&&(o&&(yA(_,g),yA(T,u7(h.b-1)),QP(t.d,p),c.c=HV(Rjt,Zkt,1,0,5,1)),I=i.b,L+=g+n,g=0,f=e.Math.max(f,i.b+i.c+M)),c.c[c.c.length]=u,unt(u,I,L),f=e.Math.max(f,I+M+i.c),g=e.Math.max(g,d),I+=M+n,p=u;if(v4(t.a,c),QP(t.d,YP(mF(c,c.c.length-1),157)),f=e.Math.max(f,r),(A=L+g+i.a)1&&(s=e.Math.min(s,e.Math.abs(YP(bnt(c.a,1),8).b-h.b)))));else for(p=new gd(n.j);p.aa&&(o=d.a-a,s=Ykt,r.c=HV(Rjt,Zkt,1,0,5,1),a=d.a),d.a>=a&&(r.c[r.c.length]=c,c.a.b>1&&(s=e.Math.min(s,e.Math.abs(YP(bnt(c.a,c.a.b-2),8).b-d.b)))));if(0!=r.c.length&&o>n.o.a/2&&s>n.o.b/2){for(KU(g=new Ect,n),llt(g,(_xt(),bie)),g.n.a=n.o.a/2,KU(b=new Ect,n),llt(b,Die),b.n.a=n.o.a/2,b.n.b=n.o.b,u=new gd(r);u.a=l.b?GU(c,b):GU(c,g)):(l=YP(pB(c.a),8),(0==c.a.b?IG(c.c):YP(fO(c.a),8)).b>=l.b?UU(c,b):UU(c,g)),(f=YP(Sst(c,(hkt(),E1t)),74))&&H9(f,l,!0);n.n.a=a-n.o.a/2}}function Qxt(t,e,n){var i,r,a,o,s,c,u,l,h,f,d;if(u=e,C0(c=$K(t,LK(n),u),nK(u,QNt)),l=YP(l1(t.g,Ilt(bU(u,ONt))),33),i=null,(o=bU(u,"sourcePort"))&&(i=Ilt(o)),h=YP(l1(t.j,i),118),!l)throw ow(new ov("An edge must have a source node (edge id: '"+Qtt(u)+nPt));if(h&&!cz(yU(h),l))throw ow(new ov("The source port of an edge must be a port of the edge's source node (edge id: '"+nK(u,QNt)+nPt));if(!c.b&&(c.b=new CN(Hre,c,4,7)),aQ(c.b,h||l),f=YP(l1(t.g,Ilt(bU(u,aPt))),33),r=null,(s=bU(u,"targetPort"))&&(r=Ilt(s)),d=YP(l1(t.j,r),118),!f)throw ow(new ov("An edge must have a target node (edge id: '"+Qtt(u)+nPt));if(d&&!cz(yU(d),f))throw ow(new ov("The target port of an edge must be a port of the edge's target node (edge id: '"+nK(u,QNt)+nPt));if(!c.c&&(c.c=new CN(Hre,c,5,8)),aQ(c.c,d||f),0==(!c.b&&(c.b=new CN(Hre,c,4,7)),c.b).i||0==(!c.c&&(c.c=new CN(Hre,c,5,8)),c.c).i)throw a=nK(u,QNt),ow(new ov(ePt+a+nPt));return Qot(u,c),Eft(u,c),I5(t,u,c)}function Zxt(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S;return f=function(t,n){var i,r,a,o,s,c,u,l,h,f,d;if(t.dc())return new _x;for(u=0,h=0,r=t.Kc();r.Ob();)a=YP(r.Pb(),37).f,u=e.Math.max(u,a.a),h+=a.a*a.b;for(u=e.Math.max(u,e.Math.sqrt(h)*Qm(oD(Sst(YP(t.Kc().Pb(),37),(hkt(),MJt))))),f=0,d=0,c=0,i=n,s=t.Kc();s.Ob();)f+(l=(o=YP(s.Pb(),37)).f).a>u&&(f=0,d+=c+n,c=0),ubt(o,f,d),i=e.Math.max(i,f+l.a),c=e.Math.max(c,l.b),f+=l.a+n;return new YC(i+n,d+c+n)}(GL(t,(_xt(),xie)),n),p=srt(GL(t,kie),n),x=srt(GL(t,Iie),n),T=crt(GL(t,Oie),n),d=crt(GL(t,wie),n),m=srt(GL(t,Mie),n),b=srt(GL(t,_ie),n),_=srt(GL(t,Lie),n),k=srt(GL(t,yie),n),C=crt(GL(t,vie),n),y=srt(GL(t,Sie),n),v=srt(GL(t,Cie),n),E=srt(GL(t,mie),n),S=crt(GL(t,Aie),n),g=crt(GL(t,Eie),n),w=srt(GL(t,Tie),n),i=A5(M4($v(qce,1),JEt,25,15,[m.a,T.a,_.a,S.a])),r=A5(M4($v(qce,1),JEt,25,15,[p.a,f.a,x.a,w.a])),a=y.a,o=A5(M4($v(qce,1),JEt,25,15,[b.a,d.a,k.a,g.a])),l=A5(M4($v(qce,1),JEt,25,15,[m.b,p.b,b.b,v.b])),u=A5(M4($v(qce,1),JEt,25,15,[T.b,f.b,d.b,w.b])),h=C.b,c=A5(M4($v(qce,1),JEt,25,15,[_.b,x.b,k.b,E.b])),cQ(GL(t,xie),i+a,l+h),cQ(GL(t,Tie),i+a,l+h),cQ(GL(t,kie),i+a,0),cQ(GL(t,Iie),i+a,l+h+u),cQ(GL(t,Oie),0,l+h),cQ(GL(t,wie),i+a+r,l+h),cQ(GL(t,_ie),i+a+r,0),cQ(GL(t,Lie),0,l+h+u),cQ(GL(t,yie),i+a+r,l+h+u),cQ(GL(t,vie),0,l),cQ(GL(t,Sie),i,0),cQ(GL(t,mie),0,l+h+u),cQ(GL(t,Eie),i+a+r,0),(s=new _x).a=A5(M4($v(qce,1),JEt,25,15,[i+r+a+o,C.a,v.a,E.a])),s.b=A5(M4($v(qce,1),JEt,25,15,[l+u+h+c,y.b,S.b,g.b])),s}function Jxt(t,n,i){var r,a,o,s,c,u,h;if(tst(i,"Network simplex node placement",1),t.e=n,t.n=YP(Sst(n,(Tkt(),FVt)),304),function(t){var n,i,r,a,o,s,c,u,h,f,d,g;for(t.f=new Xw,c=0,r=0,a=new gd(t.e.b);a.a=u.c.c.length?jK((uct(),PGt),NGt):jK((uct(),NGt),NGt),l*=2,a=i.a.g,i.a.g=e.Math.max(a,a+(l-a)),o=i.b.g,i.b.g=e.Math.max(o,o+(l-o)),r=n}}(t),Dct(o)),Ynt(t.f),a=YP(Sst(n,z0t),19).a*t.f.a.c.length,$bt(Hv(Uv(EP(t.f),a),!1),Y2(i,1)),0!=t.d.a.gc()){for(tst(o=Y2(i,1),"Flexible Where Space Processing",1),s=YP(jL(Yj(oq(new xF(null,new AG(t.f.a,16)),new qa),new Pa)),19).a,c=YP(jL(Gj(oq(new xF(null,new AG(t.f.a,16)),new Ha),new Ba)),19).a-s,u=FL(new Zw,t.f),h=FL(new Zw,t.f),igt(I_(M_(A_(L_(new Qw,2e4),c),u),h)),k_(aq(aq(qR(t.i),new Ua),new Ga),new dq(s,u,c,h)),r=t.d.a.ec().Kc();r.Ob();)YP(r.Pb(),213).g=1;$bt(Hv(Uv(EP(t.f),a),!1),Y2(o,1)),Dct(o)}Vm(aD(Sst(n,z1t)))&&(tst(o=Y2(i,1),"Straight Edges Post-Processing",1),function(t){var e,n,i;for(_2(n=new x_,t.o),i=new wy;0!=n.b;)Bxt(t,e=YP(0==n.b?null:(xO(0!=n.b),HJ(n,n.a.a)),508),!0)&&QP(i.a,e);for(;0!=i.a.c.length;)Bxt(t,e=YP(O6(i),508),!1)}(t),Dct(o)),function(t){var e,n,i,r,a,o,s,c,u,l,h,f,d,g,p;for(n=new gd(t.e.b);n.a0)if(r=h.gc(),u=nU(e.Math.floor((r+1)/2))-1,a=nU(e.Math.ceil((r+1)/2))-1,n.o==f4t)for(l=a;l>=u;l--)n.a[v.p]==v&&(p=YP(h.Xb(l),46),g=YP(p.a,10),!f_(i,p.b)&&d>t.b.e[g.p]&&(n.a[g.p]=v,n.g[v.p]=n.g[g.p],n.a[v.p]=n.g[v.p],n.f[n.g[v.p].p]=(mL(),!!(Vm(n.f[n.g[v.p].p])&v.k==(uct(),NGt))),d=t.b.e[g.p]));else for(l=u;l<=a;l++)n.a[v.p]==v&&(w=YP(h.Xb(l),46),b=YP(w.a,10),!f_(i,w.b)&&d=48&&e<=57))throw ow(new lv(Dkt((RM(),eBt))));for(i=e-48;r=48&&e<=57;)if((i=10*i+e-48)<0)throw ow(new lv(Dkt((RM(),aBt))));if(n=i,44==e){if(r>=t.j)throw ow(new lv(Dkt((RM(),iBt))));if((e=qz(t.i,r++))>=48&&e<=57){for(n=e-48;r=48&&e<=57;)if((n=10*n+e-48)<0)throw ow(new lv(Dkt((RM(),aBt))));if(i>n)throw ow(new lv(Dkt((RM(),rBt))))}else n=-1}if(125!=e)throw ow(new lv(Dkt((RM(),nBt))));t.sl(r)?(Akt(),Akt(),a=new JK(9,a),t.d=r+1):(Akt(),Akt(),a=new JK(3,a),t.d=r),a.dm(i),a.cm(n),bkt(t)}}return a}function ikt(t,e,n,i,r){var a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T;for(g=new hV(e.b),y=new hV(e.b),f=new hV(e.b),k=new hV(e.b),p=new hV(e.b),x=Wet(e,0);x.b!=x.d.c;)for(s=new gd((m=YP(kK(x),11)).g);s.a0,b=m.g.c.length>0,u&&b?f.c[f.c.length]=m:u?g.c[g.c.length]=m:b&&(y.c[y.c.length]=m);for(d=new gd(g);d.a1)for(d=new eO((!t.a&&(t.a=new gR(Gre,t,6,6)),t.a));d.e!=d.i.gc();)Vat(d);for(p=A,A>v+m?p=v+m:Ax+g?b=x+g:Mv-m&&px-g&&bA+S?_=A+S:vM+k?E=M+k:xA-S&&_M-k&&Ei&&(h=i-1),(f=D+Hft(n,24)*wTt*l-l/2)<0?f=1:f>r&&(f=r-1),Lx(),k1(a=new ic,h),_1(a,f),aQ((!s.a&&(s.a=new qI($re,s,5)),s.a),a)}function hkt(){hkt=I,Ekt(),_0t=Aee,E0t=Mee,T0t=Iee,C0t=Lee,A0t=Oee,M0t=Dee,O0t=Pee,N0t=Fee,P0t=jee,D0t=Bee,B0t=Ree,j0t=$ee,$0t=Hee,L0t=Nee,Ckt(),k0t=GZt,S0t=YZt,I0t=KZt,F0t=WZt,b0t=new LM(_ee,u7(0)),w0t=qZt,y0t=HZt,m0t=UZt,Q0t=yJt,H0t=QZt,U0t=tJt,K0t=cJt,G0t=iJt,Y0t=aJt,J0t=_Jt,Z0t=vJt,X0t=gJt,W0t=fJt,V0t=bJt,H1t=DZt,U1t=NZt,l1t=UQt,h1t=KQt,Z1t=new OM(12),Q1t=new LM(Jte,Z1t),l9(),a1t=new LM(Ete,o1t=ine),s0t=new LM(fee,0),v0t=new LM(Eee,u7(1)),MJt=new LM(hte,TSt),V1t=Qte,c0t=dee,d0t=vee,QJt=yte,SJt=ute,p1t=Mte,x0t=new LM(See,(mL(),!0)),v1t=Ote,x1t=Dte,Y1t=Ute,X1t=Xte,K1t=Yte,X8(),ZJt=new LM(mte,t1t=Wee),j1t=qte,F1t=$te,h0t=wee,l0t=bee,f0t=mee,Yet(),new LM(aee,e0t=Vne),i0t=cee,r0t=uee,a0t=lee,n0t=see,q0t=VZt,D1t=yZt,O1t=bZt,z0t=XZt,S1t=cZt,VJt=IQt,XJt=AQt,zJt=dQt,qJt=gQt,UJt=mQt,HJt=pQt,WJt=CQt,P1t=vZt,B1t=xZt,_1t=eZt,G1t=jZt,$1t=TZt,d1t=VQt,q1t=LZt,c1t=$Qt,u1t=qQt,$Jt=bte,R1t=kZt,DJt=nQt,OJt=tQt,LJt=JVt,w1t=JQt,b1t=ZQt,y1t=tZt,W1t=Kte,E1t=Bte,f1t=Cte,i1t=kte,n1t=xte,GJt=kQt,u0t=pee,IJt=pte,m1t=Lte,o0t=hee,J1t=eee,t0t=iee,M1t=hZt,I1t=dZt,p0t=kee,AJt=ZVt,L1t=pZt,r1t=BQt,e1t=NQt,N1t=jte,T1t=aZt,z1t=AZt,R0t=zee,JJt=OQt,g0t=$Zt,s1t=jQt,C1t=sZt,YJt=EQt,k1t=Pte,A1t=lZt,KJt=TQt,RJt=hQt,FJt=cQt,PJt=oQt,BJt=sQt,jJt=lQt,NJt=rQt,g1t=QQt}function fkt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A;if(amt(),E=t.e,g=t.d,r=t.a,0==E)switch(e){case 0:return"0";case 1:return rTt;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(k=new Sv).a+=e<0?"0E+":"0E",k.a+=-e,k.a}if(v=HV(Fce,rEt,25,1+(m=10*g+1+7),15,1),n=m,1==g)if((s=r[0])<0){A=jG(s,nTt);do{p=A,A=Bat(A,10),v[--n]=48+HF(W7(p,V7(A,10)))&oEt}while(0!=p8(A,0))}else{A=s;do{p=A,A=A/10|0,v[--n]=p-10*A+48&oEt}while(0!=A)}else{rmt(r,0,C=HV(jce,vEt,25,g,15,1),0,S=g);t:for(;;){for(_=0,u=S-1;u>=0;u--)w=zot(X7(Rj(_,32),jG(C[u],nTt))),C[u]=HF(w),_=HF($j(w,32));y=HF(_),b=n;do{v[--n]=48+y%10&oEt}while(0!=(y=y/10|0)&&0!=n);for(i=9-b+n,c=0;c0;c++)v[--n]=48;for(h=S-1;0==C[h];h--)if(0==h)break t;S=h+1}for(;48==v[n];)++n}if(d=E<0,o=m-n-e-1,0==e)return d&&(v[--n]=45),Htt(v,n,m-n);if(e>0&&o>=-6){if(o>=0){for(l=n+o,f=m-1;f>=l;f--)v[f+1]=v[f];return v[++l]=46,d&&(v[--n]=45),Htt(v,n,m-n+1)}for(h=2;h<1-o;h++)v[--n]=48;return v[--n]=46,v[--n]=48,d&&(v[--n]=45),Htt(v,n,m-n)}return T=n+1,a=m,x=new Av,d&&(x.a+="-"),a-T>=1?(N$(x,v[n]),x.a+=".",x.a+=Htt(v,n+1,m-n-1)):x.a+=Htt(v,n,m-n),x.a+="E",o>0&&(x.a+="+"),x.a+=""+o,x.a}function dkt(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x;switch(t.c=n,t.g=new tw,hE(),L9(new Kd(new Hm(t.c))),y=sD(yft(t.c,(Ost(),x7t))),s=YP(yft(t.c,_7t),316),v=YP(yft(t.c,E7t),429),a=YP(yft(t.c,b7t),482),m=YP(yft(t.c,k7t),430),t.j=Qm(oD(yft(t.c,T7t))),o=t.a,s.g){case 0:o=t.a;break;case 1:o=t.b;break;case 2:o=t.i;break;case 3:o=t.e;break;case 4:o=t.f;break;default:throw ow(new Ym(UOt+(null!=s.f?s.f:""+s.g)))}if(t.d=new uU(o,v,a),s5(t.d,(g3(),nHt),aD(yft(t.c,y7t))),t.d.c=Vm(aD(yft(t.c,w7t))),0==nH(t.c).i)return t.d;for(l=new zI(nH(t.c));l.e!=l.i.gc();){for(f=(u=YP(ant(l),33)).g/2,h=u.f/2,x=new YC(u.i+f,u.j+h);kR(t.g,x);)SO(x,(e.Math.random()-.5)*kSt,(e.Math.random()-.5)*kSt);g=YP(yft(u,(Ekt(),jte)),142),p=new VU(x,new gq(x.a-f-t.j/2-g.b,x.b-h-t.j/2-g.d,u.g+t.j+(g.b+g.c),u.f+t.j+(g.d+g.a))),QP(t.d.i,p),Iz(t.g,x,new pS(p,u))}switch(m.g){case 0:if(null==y)t.d.d=YP(mF(t.d.i,0),65);else for(w=new gd(t.d.i);w.a1&&HW(h,y,h.c.b,h.c),PJ(a)));y=m}return h}function pkt(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w;for(i=new Jb,s=new Jb,b=e/2,d=t.gc(),r=YP(t.Xb(0),8),w=YP(t.Xb(1),8),QP(i,(CG(0,(g=wft(r.a,r.b,w.a,w.b,b)).c.length),YP(g.c[0],8))),QP(s,(CG(1,g.c.length),YP(g.c[1],8))),u=2;u=0;c--)DB(n,(CG(c,o.c.length),YP(o.c[c],8)));return n}function bkt(t){var e,n,i;if(t.d>=t.j)return t.a=-1,void(t.c=1);if(e=qz(t.i,t.d++),t.a=e,1!=t.b){switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,t.d>=t.j||63!=qz(t.i,t.d))break;if(++t.d>=t.j)throw ow(new lv(Dkt((RM(),TPt))));switch(e=qz(t.i,t.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(t.d>=t.j)throw ow(new lv(Dkt((RM(),TPt))));if(61==(e=qz(t.i,t.d++)))i=16;else{if(33!=e)throw ow(new lv(Dkt((RM(),CPt))));i=17}break;case 35:for(;t.d=t.j)throw ow(new lv(Dkt((RM(),EPt))));t.a=qz(t.i,t.d++);break;default:i=0}t.c=i}else{switch(e){case 92:if(i=10,t.d>=t.j)throw ow(new lv(Dkt((RM(),EPt))));t.a=qz(t.i,t.d++);break;case 45:512==(512&t.e)&&t.d=k||!Ftt(y,i))&&(i=mG(e,h)),YU(y,i),a=new Sj(cL(e9(y).a.Kc(),new l));Ght(a);)r=YP(pX(a),17),!t.a[r.p]&&(b=r.c.i,--t.e[b.p],0==t.e[b.p]&&YV(pst(g,b)));for(u=h.c.length-1;u>=0;--u)QP(e.b,(CG(u,h.c.length),YP(h.c[u],29)));e.a.c=HV(Rjt,Zkt,1,0,5,1),Dct(n)}else Dct(n)}function ykt(t){var e,n,i,r,a,o,s,c;for(t.b=1,bkt(t),e=null,0==t.c&&94==t.a?(bkt(t),Akt(),Akt(),zgt(e=new JG(4),0,pjt),o=new JG(4)):(Akt(),Akt(),o=new JG(4)),r=!0;1!=(c=t.c);){if(0==c&&93==t.a&&!r){e&&(Nvt(e,o),o=e);break}if(n=t.a,i=!1,10==c)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:omt(o,twt(n)),i=!0;break;case 105:case 73:case 99:case 67:omt(o,twt(n)),(n=-1)<0&&(i=!0);break;case 112:case 80:if(!(s=jlt(t,n)))throw ow(new lv(Dkt((RM(),jPt))));omt(o,s),i=!0;break;default:n=vpt(t)}else if(24==c&&!r){if(e&&(Nvt(e,o),o=e),Nvt(o,ykt(t)),0!=t.c||93!=t.a)throw ow(new lv(Dkt((RM(),qPt))));break}if(bkt(t),!i){if(0==c){if(91==n)throw ow(new lv(Dkt((RM(),HPt))));if(93==n)throw ow(new lv(Dkt((RM(),UPt))));if(45==n&&!r&&93!=t.a)throw ow(new lv(Dkt((RM(),GPt))))}if(0!=t.c||45!=t.a||45==n&&r)zgt(o,n,n);else{if(bkt(t),1==(c=t.c))throw ow(new lv(Dkt((RM(),$Pt))));if(0==c&&93==t.a)zgt(o,n,n),zgt(o,45,45);else{if(0==c&&93==t.a||24==c)throw ow(new lv(Dkt((RM(),GPt))));if(a=t.a,0==c){if(91==a)throw ow(new lv(Dkt((RM(),HPt))));if(93==a)throw ow(new lv(Dkt((RM(),UPt))));if(45==a)throw ow(new lv(Dkt((RM(),GPt))))}else 10==c&&(a=vpt(t));if(bkt(t),n>a)throw ow(new lv(Dkt((RM(),WPt))));zgt(o,n,a)}}}r=!1}if(1==t.c)throw ow(new lv(Dkt((RM(),$Pt))));return Lft(o),Amt(o),t.b=0,bkt(t),o}function mkt(){mkt=I,skt(),Ylt(_Gt=new WH,(_xt(),kie),xie),Ylt(_Gt,Oie,xie),Ylt(_Gt,_ie,xie),Ylt(_Gt,Mie,xie),Ylt(_Gt,Aie,xie),Ylt(_Gt,Cie,xie),Ylt(_Gt,Mie,kie),Ylt(_Gt,xie,wie),Ylt(_Gt,kie,wie),Ylt(_Gt,Oie,wie),Ylt(_Gt,_ie,wie),Ylt(_Gt,Sie,wie),Ylt(_Gt,Mie,wie),Ylt(_Gt,Aie,wie),Ylt(_Gt,Cie,wie),Ylt(_Gt,vie,wie),Ylt(_Gt,xie,Iie),Ylt(_Gt,kie,Iie),Ylt(_Gt,wie,Iie),Ylt(_Gt,Oie,Iie),Ylt(_Gt,_ie,Iie),Ylt(_Gt,Sie,Iie),Ylt(_Gt,Mie,Iie),Ylt(_Gt,vie,Iie),Ylt(_Gt,Lie,Iie),Ylt(_Gt,Aie,Iie),Ylt(_Gt,Eie,Iie),Ylt(_Gt,Cie,Iie),Ylt(_Gt,kie,Oie),Ylt(_Gt,_ie,Oie),Ylt(_Gt,Mie,Oie),Ylt(_Gt,Cie,Oie),Ylt(_Gt,kie,_ie),Ylt(_Gt,Oie,_ie),Ylt(_Gt,Mie,_ie),Ylt(_Gt,_ie,_ie),Ylt(_Gt,Aie,_ie),Ylt(_Gt,xie,yie),Ylt(_Gt,kie,yie),Ylt(_Gt,wie,yie),Ylt(_Gt,Iie,yie),Ylt(_Gt,Oie,yie),Ylt(_Gt,_ie,yie),Ylt(_Gt,Sie,yie),Ylt(_Gt,Mie,yie),Ylt(_Gt,Lie,yie),Ylt(_Gt,vie,yie),Ylt(_Gt,Cie,yie),Ylt(_Gt,Aie,yie),Ylt(_Gt,Tie,yie),Ylt(_Gt,xie,Lie),Ylt(_Gt,kie,Lie),Ylt(_Gt,wie,Lie),Ylt(_Gt,Oie,Lie),Ylt(_Gt,_ie,Lie),Ylt(_Gt,Sie,Lie),Ylt(_Gt,Mie,Lie),Ylt(_Gt,vie,Lie),Ylt(_Gt,Cie,Lie),Ylt(_Gt,Eie,Lie),Ylt(_Gt,Tie,Lie),Ylt(_Gt,kie,vie),Ylt(_Gt,Oie,vie),Ylt(_Gt,_ie,vie),Ylt(_Gt,Mie,vie),Ylt(_Gt,Lie,vie),Ylt(_Gt,Cie,vie),Ylt(_Gt,Aie,vie),Ylt(_Gt,xie,mie),Ylt(_Gt,kie,mie),Ylt(_Gt,wie,mie),Ylt(_Gt,Oie,mie),Ylt(_Gt,_ie,mie),Ylt(_Gt,Sie,mie),Ylt(_Gt,Mie,mie),Ylt(_Gt,vie,mie),Ylt(_Gt,Cie,mie),Ylt(_Gt,kie,Aie),Ylt(_Gt,wie,Aie),Ylt(_Gt,Iie,Aie),Ylt(_Gt,_ie,Aie),Ylt(_Gt,xie,Eie),Ylt(_Gt,kie,Eie),Ylt(_Gt,Iie,Eie),Ylt(_Gt,Oie,Eie),Ylt(_Gt,_ie,Eie),Ylt(_Gt,Sie,Eie),Ylt(_Gt,Mie,Eie),Ylt(_Gt,Mie,Tie),Ylt(_Gt,_ie,Tie),Ylt(_Gt,vie,xie),Ylt(_Gt,vie,Oie),Ylt(_Gt,vie,wie),Ylt(_Gt,Sie,xie),Ylt(_Gt,Sie,kie),Ylt(_Gt,Sie,Iie)}function vkt(t,e){switch(t.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new Qq(t.b,t.a,e,t.c);case 1:return new HI(t.a,e,X9(e.Tg(),t.c));case 43:return new GI(t.a,e,X9(e.Tg(),t.c));case 3:return new qI(t.a,e,X9(e.Tg(),t.c));case 45:return new UI(t.a,e,X9(e.Tg(),t.c));case 41:return new gQ(YP(oat(t.c),26),t.a,e,X9(e.Tg(),t.c));case 50:return new b0(YP(oat(t.c),26),t.a,e,X9(e.Tg(),t.c));case 5:return new mN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 47:return new vN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 7:return new gR(t.a,e,X9(e.Tg(),t.c),t.d.n);case 49:return new yN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 9:return new VI(t.a,e,X9(e.Tg(),t.c));case 11:return new XI(t.a,e,X9(e.Tg(),t.c));case 13:return new WI(t.a,e,X9(e.Tg(),t.c));case 15:return new EB(t.a,e,X9(e.Tg(),t.c));case 17:return new QI(t.a,e,X9(e.Tg(),t.c));case 19:return new KI(t.a,e,X9(e.Tg(),t.c));case 21:return new YI(t.a,e,X9(e.Tg(),t.c));case 23:return new mB(t.a,e,X9(e.Tg(),t.c));case 25:return new SN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 27:return new CN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 29:return new EN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 31:return new xN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 33:return new TN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 35:return new _N(t.a,e,X9(e.Tg(),t.c),t.d.n);case 37:return new kN(t.a,e,X9(e.Tg(),t.c),t.d.n);case 39:return new pR(t.a,e,X9(e.Tg(),t.c),t.d.n);case 40:return new V2(e,X9(e.Tg(),t.c));default:throw ow(new Em("Unknown feature style: "+t.e))}}function xkt(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k;switch(tst(i,"Brandes & Koepf node placement",1),t.a=n,t.c=eyt(n),r=YP(Sst(n,(hkt(),$1t)),274),g=Vm(aD(Sst(n,z1t))),t.d=r==(Hat(),iXt)&&!g||r==tXt,function(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m;if(!((p=e.b.c.length)<3)){for(d=HV(jce,vEt,25,p,15,1),h=0,l=new gd(e.b);l.ao)&&NR(t.b,YP(b.b,17));++s}a=o}}}(t,n),x=null,k=null,w=null,y=null,l0(4,z_t),b=new hV(4),YP(Sst(n,$1t),274).g){case 3:w=new Fbt(n,t.c.d,(LU(),h4t),(KH(),s4t)),b.c[b.c.length]=w;break;case 1:y=new Fbt(n,t.c.d,(LU(),f4t),(KH(),s4t)),b.c[b.c.length]=y;break;case 4:x=new Fbt(n,t.c.d,(LU(),h4t),(KH(),c4t)),b.c[b.c.length]=x;break;case 2:k=new Fbt(n,t.c.d,(LU(),f4t),(KH(),c4t)),b.c[b.c.length]=k;break;default:w=new Fbt(n,t.c.d,(LU(),h4t),(KH(),s4t)),y=new Fbt(n,t.c.d,f4t,s4t),x=new Fbt(n,t.c.d,h4t,c4t),k=new Fbt(n,t.c.d,f4t,c4t),b.c[b.c.length]=x,b.c[b.c.length]=k,b.c[b.c.length]=w,b.c[b.c.length]=y}for(a=new wC(n,t.c),c=new gd(b);c.a_[u]&&(p=u),h=new gd(t.a.b);h.aSft(o))&&(f=o);for(!f&&(CG(0,b.c.length),f=YP(b.c[0],180)),p=new gd(n.b);p.a=-1900?1:0,pA(t,i>=4?M4($v(XRt,1),m_t,2,6,[xEt,kEt])[s]:M4($v(XRt,1),m_t,2,6,["BC","AD"])[s]);break;case 121:!function(t,e,n){var i;switch((i=n.q.getFullYear()-mEt+mEt)<0&&(i=-i),e){case 1:t.a+=i;break;case 2:XZ(t,i%100,2);break;default:XZ(t,i,e)}}(t,i,r);break;case 77:!function(t,e,n){var i;switch(i=n.q.getMonth(),e){case 5:pA(t,M4($v(XRt,1),m_t,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:pA(t,M4($v(XRt,1),m_t,2,6,[sEt,cEt,uEt,lEt,hEt,fEt,dEt,gEt,pEt,bEt,wEt,yEt])[i]);break;case 3:pA(t,M4($v(XRt,1),m_t,2,6,["Jan","Feb","Mar","Apr",hEt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:XZ(t,i+1,e)}}(t,i,r);break;case 107:XZ(t,0==(c=a.q.getHours())?24:c,i);break;case 83:!function(t,n,i){var r,a;p8(r=I3(i.q.getTime()),0)<0?(a=aEt-HF(vtt(iZ(r),aEt)))==aEt&&(a=0):a=HF(vtt(r,aEt)),1==n?N$(t,48+(a=e.Math.min((a+50)/100|0,9))&oEt):2==n?XZ(t,a=e.Math.min((a+5)/10|0,99),2):(XZ(t,a,3),n>3&&XZ(t,0,n-3))}(t,i,a);break;case 69:u=r.q.getDay(),pA(t,5==i?M4($v(XRt,1),m_t,2,6,["S","M","T","W","T","F","S"])[u]:4==i?M4($v(XRt,1),m_t,2,6,[_Et,EEt,TEt,CEt,SEt,AEt,MEt])[u]:M4($v(XRt,1),m_t,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[u]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?pA(t,M4($v(XRt,1),m_t,2,6,["AM","PM"])[1]):pA(t,M4($v(XRt,1),m_t,2,6,["AM","PM"])[0]);break;case 104:XZ(t,0==(l=a.q.getHours()%12)?12:l,i);break;case 75:XZ(t,a.q.getHours()%12,i);break;case 72:XZ(t,a.q.getHours(),i);break;case 99:h=r.q.getDay(),5==i?pA(t,M4($v(XRt,1),m_t,2,6,["S","M","T","W","T","F","S"])[h]):4==i?pA(t,M4($v(XRt,1),m_t,2,6,[_Et,EEt,TEt,CEt,SEt,AEt,MEt])[h]):3==i?pA(t,M4($v(XRt,1),m_t,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[h]):XZ(t,h,1);break;case 76:f=r.q.getMonth(),5==i?pA(t,M4($v(XRt,1),m_t,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[f]):4==i?pA(t,M4($v(XRt,1),m_t,2,6,[sEt,cEt,uEt,lEt,hEt,fEt,dEt,gEt,pEt,bEt,wEt,yEt])[f]):3==i?pA(t,M4($v(XRt,1),m_t,2,6,["Jan","Feb","Mar","Apr",hEt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[f]):XZ(t,f+1,i);break;case 81:d=r.q.getMonth()/3|0,pA(t,i<4?M4($v(XRt,1),m_t,2,6,["Q1","Q2","Q3","Q4"])[d]:M4($v(XRt,1),m_t,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[d]);break;case 100:XZ(t,r.q.getDate(),i);break;case 109:XZ(t,a.q.getMinutes(),i);break;case 115:XZ(t,a.q.getSeconds(),i);break;case 122:pA(t,i<4?o.c[0]:o.c[1]);break;case 118:pA(t,o.b);break;case 90:pA(t,i<3?function(t){var e,n;return n=-t.a,e=M4($v(Fce,1),rEt,25,15,[43,48,48,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&oEt,e[2]=e[2]+(n/60|0)%10&oEt,e[3]=e[3]+(n%60/10|0)&oEt,e[4]=e[4]+n%10&oEt,Htt(e,0,e.length)}(o):3==i?function(t){var e,n;return n=-t.a,e=M4($v(Fce,1),rEt,25,15,[43,48,48,58,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&oEt,e[2]=e[2]+(n/60|0)%10&oEt,e[4]=e[4]+(n%60/10|0)&oEt,e[5]=e[5]+n%10&oEt,Htt(e,0,e.length)}(o):function(t){var e;return e=M4($v(Fce,1),rEt,25,15,[71,77,84,45,48,48,58,48,48]),t<=0&&(e[3]=43,t=-t),e[4]=e[4]+((t/60|0)/10|0)&oEt,e[5]=e[5]+(t/60|0)%10&oEt,e[7]=e[7]+(t%60/10|0)&oEt,e[8]=e[8]+t%10&oEt,Htt(e,0,e.length)}(o.a));break;default:return!1}return!0}function _kt(t,e,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A;if(hbt(e),c=YP(JJ((!e.b&&(e.b=new CN(Hre,e,4,7)),e.b),0),82),l=YP(JJ((!e.c&&(e.c=new CN(Hre,e,5,8)),e.c),0),82),s=Zot(c),u=Zot(l),o=0==(!e.a&&(e.a=new gR(Gre,e,6,6)),e.a).i?null:YP(JJ((!e.a&&(e.a=new gR(Gre,e,6,6)),e.a),0),202),k=YP(B$(t.a,s),10),C=YP(B$(t.a,u),10),_=null,S=null,EI(c,186)&&(EI(x=YP(B$(t.a,c),299),11)?_=YP(x,11):EI(x,10)&&(k=YP(x,10),_=YP(mF(k.j,0),11))),EI(l,186)&&(EI(T=YP(B$(t.a,l),299),11)?S=YP(T,11):EI(T,10)&&(C=YP(T,10),S=YP(mF(C.j,0),11))),!k||!C)throw ow(new uv("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(n4(p=new wH,e),s5(p,(Tkt(),xVt),e),s5(p,(hkt(),E1t),null),d=YP(Sst(i,aVt),21),k==C&&d.Fc((Zgt(),TXt)),_||(r0(),v=V2t,E=null,o&&lM(YP(Sst(k,c0t),98))&&(zK(E=new YC(o.j,o.k),wU(e)),$W(E,n),zJ(u,s)&&(v=X2t,gN(E,k.n))),_=lmt(k,E,v,i)),S||(r0(),v=X2t,A=null,o&&lM(YP(Sst(C,c0t),98))&&(zK(A=new YC(o.b,o.c),wU(e)),$W(A,n)),S=lmt(C,A,v,lz(C))),GU(p,_),UU(p,S),(_.e.c.length>1||_.g.c.length>1||S.e.c.length>1||S.g.c.length>1)&&d.Fc((Zgt(),vXt)),f=new zI((!e.n&&(e.n=new gR(Vre,e,1,7)),e.n));f.e!=f.i.gc();)if(!Vm(aD(yft(h=YP(ant(f),137),V1t)))&&h.a)switch(b=u8(h),QP(p.b,b),YP(Sst(b,i1t),272).g){case 1:case 2:d.Fc((Zgt(),yXt));break;case 0:d.Fc((Zgt(),bXt)),s5(b,i1t,(KJ(),Zee))}if(a=YP(Sst(i,XJt),314),w=YP(Sst(i,G1t),315),r=a==(E0(),bWt)||w==(eit(),E2t),o&&0!=(!o.a&&(o.a=new qI($re,o,5)),o.a).i&&r){for(y=Nct(o),g=new Iy,m=Wet(y,0);m.b!=m.d.c;)DB(g,new oM(YP(kK(m),8)));s5(p,kVt,g)}return p}function Ekt(){var t,e;Ekt=I,cte=new Sb(EDt),Tee=new Sb(TDt),jnt(),ute=new PA(rLt,lte=P9t),hte=new PA(aSt,null),fte=new Sb(CDt),lot(),wte=VF(ote,M4($v(Uee,1),q_t,291,0,[nte])),bte=new PA(wLt,wte),yte=new PA(iLt,(mL(),!1)),X8(),mte=new PA(cLt,vte=Wee),l9(),Ete=new PA(IIt,Tte=one),Ate=new PA(zOt,!1),E8(),Mte=new PA(TIt,Ite=Tne),tee=new OM(12),Jte=new PA(oSt,tee),Nte=new PA(OSt,!1),Pte=new PA(MLt,!1),Zte=new PA(PSt,!1),Oot(),dee=new PA(DSt,gee=rie),kee=new Sb(CLt),_ee=new Sb(SSt),Eee=new Sb(ISt),See=new Sb(LSt),Fte=new Iy,Bte=new PA(yLt,Fte),pte=new PA(xLt,!1),Lte=new PA(kLt,!1),Rte=new xy,jte=new PA(SLt,Rte),Qte=new PA(eLt,!1),Cee=new PA(SDt,1),new PA(ADt,!0),u7(0),new PA(MDt,u7(100)),new PA(IDt,!1),u7(0),new PA(LDt,u7(4e3)),u7(0),new PA(ODt,u7(400)),new PA(DDt,!1),new PA(NDt,!1),new PA(PDt,!0),new PA(BDt,!1),ett(),dte=new PA(_Dt,gte=ure),Aee=new PA(HIt,10),Mee=new PA(UIt,10),Iee=new PA(iSt,20),Lee=new PA(GIt,10),Oee=new PA(MSt,2),Dee=new PA(YIt,10),Pee=new PA(KIt,0),Bee=new PA(VIt,5),Fee=new PA(WIt,1),jee=new PA(XIt,1),Ree=new PA(ASt,20),$ee=new PA(QIt,10),Hee=new PA(ZIt,10),Nee=new Sb(JIt),qee=new rM,zee=new PA(ALt,qee),iee=new Sb(TLt),eee=new PA(ELt,nee=!1),zte=new OM(5),$te=new PA(uLt,zte),mft(),e=YP(Sx(Gne),9),Hte=new tP(e,YP(QD(e,e.length),9),0),qte=new PA(jSt,Hte),Yet(),aee=new PA(fLt,oee=Wne),cee=new Sb(dLt),uee=new Sb(gLt),lee=new Sb(pLt),see=new Sb(bLt),t=YP(Sx(Wie),9),Gte=new tP(t,YP(QD(t,t.length),9),0),Ute=new PA(FSt,Gte),Vte=Y7((Gbt(),Qie)),Xte=new PA(BSt,Vte),Wte=new YC(0,0),Kte=new PA(QSt,Wte),Yte=new PA(sLt,!1),KJ(),kte=new PA(mLt,_te=Zee),xte=new PA(NSt,!1),u7(1),new PA(FDt,null),hee=new Sb(_Lt),pee=new Sb(vLt),_xt(),vee=new PA(nLt,xee=Nie),fee=new Sb(tLt),Tlt(),yee=Y7(hie),wee=new PA(RSt,yee),bee=new PA(lLt,!1),mee=new PA(hLt,!0),Ote=new PA(aLt,!1),Dte=new PA(oLt,!1),Cte=new PA(rSt,1),gst(),new PA(jDt,Ste=dne),ree=!0}function Tkt(){var t,e;Tkt=I,xVt=new Sb($St),YXt=new Sb("coordinateOrigin"),LVt=new Sb("processors"),GXt=new ND("compoundNode",(mL(),!1)),cVt=new ND("insideConnections",!1),kVt=new Sb("originalBendpoints"),_Vt=new Sb("originalDummyNodePosition"),EVt=new Sb("originalLabelEdge"),DVt=new Sb("representedLabels"),QXt=new Sb("endLabels"),ZXt=new Sb("endLabel.origin"),dVt=new ND("labelSide",(Prt(),One)),mVt=new ND("maxEdgeThickness",0),NVt=new ND("reversed",!1),OVt=new Sb(zSt),bVt=new ND("longEdgeSource",null),wVt=new ND("longEdgeTarget",null),pVt=new ND("longEdgeHasLabelDummies",!1),gVt=new ND("longEdgeBeforeLabelDummy",!1),VXt=new ND("edgeConstraint",(Q4(),jWt)),lVt=new Sb("inLayerLayoutUnit"),uVt=new ND("inLayerConstraint",(TZ(),NXt)),hVt=new ND("inLayerSuccessorConstraint",new Jb),fVt=new ND("inLayerSuccessorConstraintBetweenNonDummies",!1),MVt=new Sb("portDummy"),KXt=new ND("crossingHint",u7(0)),aVt=new ND("graphProperties",new tP(e=YP(Sx(SXt),9),YP(QD(e,e.length),9),0)),nVt=new ND("externalPortSide",(_xt(),Nie)),iVt=new ND("externalPortSize",new _x),tVt=new Sb("externalPortReplacedDummies"),eVt=new Sb("externalPortReplacedDummy"),JXt=new ND("externalPortConnections",new tP(t=YP(Sx(qie),9),YP(QD(t,t.length),9),0)),IVt=new ND(TCt,0),zXt=new Sb("barycenterAssociates"),UVt=new Sb("TopSideComments"),qXt=new Sb("BottomSideComments"),UXt=new Sb("CommentConnectionPort"),sVt=new ND("inputCollect",!1),SVt=new ND("outputCollect",!1),XXt=new ND("cyclic",!1),WXt=new Sb("crossHierarchyMap"),HVt=new Sb("targetOffset"),new ND("splineLabelSize",new _x),FVt=new Sb("spacings"),AVt=new ND("partitionConstraint",!1),HXt=new Sb("breakingPoint.info"),zVt=new Sb("splines.survivingEdge"),$Vt=new Sb("splines.route.start"),jVt=new Sb("splines.edgeChain"),CVt=new Sb("originalPortConstraints"),BVt=new Sb("selfLoopHolder"),RVt=new Sb("splines.nsPortY"),vVt=new Sb("modelOrder"),yVt=new Sb("longEdgeTargetNode"),rVt=new ND(eMt,!1),PVt=new ND(eMt,!1),oVt=new Sb("layerConstraints.hiddenNodes"),TVt=new Sb("layerConstraints.opposidePort"),qVt=new Sb("targetNode.modelOrder")}function Ckt(){Ckt=I,aJ(),OQt=new PA(nMt,DQt=DWt),VQt=new PA(iMt,(mL(),!1)),uK(),eZt=new PA(rMt,nZt=jXt),vZt=new PA(aMt,!1),xZt=new PA(oMt,!0),ZVt=new PA(sMt,!1),CZ(),$Zt=new PA(cMt,zZt=G2t),u7(1),XZt=new PA(uMt,u7(7)),VZt=new PA(lMt,!1),QQt=new PA(hMt,!1),git(),IQt=new PA(fMt,LQt=SWt),Xot(),yZt=new PA(dMt,mZt=c2t),u9(),cZt=new PA(gMt,uZt=VVt),u7(-1),sZt=new PA(pMt,u7(-1)),u7(-1),lZt=new PA(bMt,u7(-1)),u7(-1),hZt=new PA(wMt,u7(4)),u7(-1),dZt=new PA(yMt,u7(2)),Pdt(),bZt=new PA(mMt,wZt=B2t),u7(0),pZt=new PA(vMt,u7(0)),aZt=new PA(xMt,u7(Ykt)),E0(),AQt=new PA(kMt,MQt=wWt),dQt=new PA(_Mt,!1),kQt=new PA(EMt,.1),CQt=new PA(TMt,!1),u7(-1),EQt=new PA(CMt,u7(-1)),u7(-1),TQt=new PA(SMt,u7(-1)),u7(0),gQt=new PA(AMt,u7(40)),Z3(),mQt=new PA(MMt,vQt=IXt),pQt=new PA(IMt,bQt=AXt),eit(),jZt=new PA(LMt,RZt=_2t),AZt=new Sb(OMt),JQ(),kZt=new PA(DMt,_Zt=VWt),Hat(),TZt=new PA(NMt,CZt=iXt),LZt=new PA(PMt,.3),DZt=new Sb(BMt),Fnt(),NZt=new PA(FMt,PZt=m2t),u3(),$Qt=new PA(jMt,zQt=e3t),ZX(),qQt=new PA(RMt,HQt=o3t),C6(),UQt=new PA($Mt,GQt=h3t),KQt=new PA(zMt,.2),jQt=new PA(qMt,2),GZt=new PA(HMt,null),KZt=new PA(UMt,10),YZt=new PA(GMt,10),WZt=new PA(YMt,20),u7(0),qZt=new PA(KMt,u7(0)),u7(0),HZt=new PA(WMt,u7(0)),u7(0),UZt=new PA(XMt,u7(0)),JVt=new PA(VMt,!1),ict(),nQt=new PA(QMt,iQt=fXt),tQ(),tQt=new PA(ZMt,eQt=dWt),JQt=new PA(JMt,!1),u7(0),ZQt=new PA(tIt,u7(16)),u7(0),tZt=new PA(eIt,u7(5)),N4(),yJt=new PA(nIt,mJt=v3t),QZt=new PA(iIt,10),tJt=new PA(rIt,1),a0(),cJt=new PA(aIt,uJt=_Wt),iJt=new Sb(oIt),oJt=u7(1),u7(0),aJt=new PA(sIt,oJt),H2(),_Jt=new PA(cIt,EJt=g3t),vJt=new Sb(uIt),gJt=new PA(lIt,!0),fJt=new PA(hIt,2),bJt=new PA(fIt,!0),dct(),BQt=new PA(dIt,FQt=YWt),dut(),NQt=new PA(gIt,PQt=oWt),p5(),hQt=new PA(pIt,fQt=z2t),lQt=new PA(bIt,!1),V8(),rQt=new PA(wIt,aQt=xGt),Q6(),cQt=new PA(yIt,uQt=f2t),oQt=new PA(mIt,0),sQt=new PA(vIt,0),rZt=MWt,iZt=bWt,fZt=s2t,gZt=s2t,oZt=r2t,E8(),_Qt=Ene,SQt=wWt,xQt=wWt,wQt=wWt,yQt=Ene,MZt=C2t,IZt=_2t,EZt=_2t,SZt=_2t,OZt=T2t,FZt=C2t,BZt=C2t,l9(),YQt=ane,WQt=ane,XQt=h3t,RQt=rne,ZZt=x3t,JZt=m3t,eJt=x3t,nJt=m3t,lJt=x3t,hJt=m3t,rJt=kWt,sJt=_Wt,TJt=x3t,CJt=m3t,xJt=x3t,kJt=m3t,pJt=m3t,dJt=m3t,wJt=m3t}function Skt(){Skt=I,hYt=new gT("DIRECTION_PREPROCESSOR",0),cYt=new gT("COMMENT_PREPROCESSOR",1),fYt=new gT("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),AYt=new gT("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),KYt=new gT("PARTITION_PREPROCESSOR",4),OYt=new gT("LABEL_DUMMY_INSERTER",5),JYt=new gT("SELF_LOOP_PREPROCESSOR",6),FYt=new gT("LAYER_CONSTRAINT_PREPROCESSOR",7),GYt=new gT("PARTITION_MIDPROCESSOR",8),_Yt=new gT("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),zYt=new gT("NODE_PROMOTION",10),BYt=new gT("LAYER_CONSTRAINT_POSTPROCESSOR",11),YYt=new gT("PARTITION_POSTPROCESSOR",12),mYt=new gT("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),eKt=new gT("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),nYt=new gT("BREAKING_POINT_INSERTER",15),$Yt=new gT("LONG_EDGE_SPLITTER",16),XYt=new gT("PORT_SIDE_PROCESSOR",17),MYt=new gT("INVERTED_PORT_PROCESSOR",18),WYt=new gT("PORT_LIST_SORTER",19),iKt=new gT("SORT_BY_INPUT_ORDER_OF_MODEL",20),HYt=new gT("NORTH_SOUTH_PORT_PREPROCESSOR",21),iYt=new gT("BREAKING_POINT_PROCESSOR",22),UYt=new gT(DAt,23),rKt=new gT(NAt,24),QYt=new gT("SELF_LOOP_PORT_RESTORER",25),nKt=new gT("SINGLE_EDGE_GRAPH_WRAPPER",26),IYt=new gT("IN_LAYER_CONSTRAINT_PROCESSOR",27),bYt=new gT("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),LYt=new gT("LABEL_AND_NODE_SIZE_PROCESSOR",29),SYt=new gT("INNERMOST_NODE_MARGIN_CALCULATOR",30),tKt=new gT("SELF_LOOP_ROUTER",31),oYt=new gT("COMMENT_NODE_MARGIN_CALCULATOR",32),gYt=new gT("END_LABEL_PREPROCESSOR",33),NYt=new gT("LABEL_DUMMY_SWITCHER",34),aYt=new gT("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),PYt=new gT("LABEL_SIDE_SELECTOR",36),TYt=new gT("HYPEREDGE_DUMMY_MERGER",37),vYt=new gT("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),jYt=new gT("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),kYt=new gT("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),uYt=new gT("CONSTRAINTS_POSTPROCESSOR",41),sYt=new gT("COMMENT_POSTPROCESSOR",42),CYt=new gT("HYPERNODE_PROCESSOR",43),xYt=new gT("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),RYt=new gT("LONG_EDGE_JOINER",45),ZYt=new gT("SELF_LOOP_POSTPROCESSOR",46),rYt=new gT("BREAKING_POINT_REMOVER",47),qYt=new gT("NORTH_SOUTH_PORT_POSTPROCESSOR",48),EYt=new gT("HORIZONTAL_COMPACTOR",49),DYt=new gT("LABEL_DUMMY_REMOVER",50),wYt=new gT("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),pYt=new gT("END_LABEL_SORTER",52),VYt=new gT("REVERSED_EDGE_RESTORER",53),dYt=new gT("END_LABEL_POSTPROCESSOR",54),yYt=new gT("HIERARCHICAL_NODE_RESIZER",55),lYt=new gT("DIRECTION_POSTPROCESSOR",56)}function Akt(){Akt=I,gce=new Qb(7),pce=new BF(8,94),new BF(8,64),bce=new BF(8,36),kce=new BF(8,65),_ce=new BF(8,122),Ece=new BF(8,90),Sce=new BF(8,98),vce=new BF(8,66),Tce=new BF(8,60),Ace=new BF(8,62),dce=new Qb(11),zgt(fce=new JG(4),48,57),zgt(Cce=new JG(4),48,57),zgt(Cce,65,90),zgt(Cce,95,95),zgt(Cce,97,122),zgt(xce=new JG(4),9,9),zgt(xce,10,10),zgt(xce,12,12),zgt(xce,13,13),zgt(xce,32,32),wce=Xwt(fce),mce=Xwt(Cce),yce=Xwt(xce),cce=new tw,uce=new tw,lce=M4($v(XRt,1),m_t,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),sce=M4($v(XRt,1),m_t,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",Ejt,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),hce=M4($v(jce,1),vEt,25,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function Mkt(){Mkt=I,Nqt=new $2("OUT_T_L",0,(PQ(),aqt),(EZ(),lqt),(YJ(),Qzt),Qzt,M4($v(Ujt,1),Zkt,21,0,[VF((mft(),$ne),M4($v(Gne,1),q_t,93,0,[Hne,Bne]))])),Dqt=new $2("OUT_T_C",1,rqt,lqt,Qzt,Zzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[Hne,Pne])),VF($ne,M4($v(Gne,1),q_t,93,0,[Hne,Pne,Fne]))])),Pqt=new $2("OUT_T_R",2,oqt,lqt,Qzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[Hne,jne]))])),Tqt=new $2("OUT_B_L",3,aqt,fqt,Jzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[zne,Bne]))])),Eqt=new $2("OUT_B_C",4,rqt,fqt,Jzt,Zzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[zne,Pne])),VF($ne,M4($v(Gne,1),q_t,93,0,[zne,Pne,Fne]))])),Cqt=new $2("OUT_B_R",5,oqt,fqt,Jzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[zne,jne]))])),Mqt=new $2("OUT_L_T",6,oqt,fqt,Qzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[Bne,Hne,Fne]))])),Aqt=new $2("OUT_L_C",7,oqt,hqt,Zzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[Bne,qne])),VF($ne,M4($v(Gne,1),q_t,93,0,[Bne,qne,Fne]))])),Sqt=new $2("OUT_L_B",8,oqt,lqt,Jzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[Bne,zne,Fne]))])),Oqt=new $2("OUT_R_T",9,aqt,fqt,Qzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[jne,Hne,Fne]))])),Lqt=new $2("OUT_R_C",10,aqt,hqt,Zzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[jne,qne])),VF($ne,M4($v(Gne,1),q_t,93,0,[jne,qne,Fne]))])),Iqt=new $2("OUT_R_B",11,aqt,lqt,Jzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF($ne,M4($v(Gne,1),q_t,93,0,[jne,zne,Fne]))])),kqt=new $2("IN_T_L",12,aqt,fqt,Qzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,Bne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,Bne,Fne]))])),xqt=new $2("IN_T_C",13,rqt,fqt,Qzt,Zzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,Pne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,Pne,Fne]))])),_qt=new $2("IN_T_R",14,oqt,fqt,Qzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,jne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[Hne,jne,Fne]))])),mqt=new $2("IN_C_L",15,aqt,hqt,Zzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,Bne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,Bne,Fne]))])),yqt=new $2("IN_C_C",16,rqt,hqt,Zzt,Zzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,Pne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,Pne,Fne]))])),vqt=new $2("IN_C_R",17,oqt,hqt,Zzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,jne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[qne,jne,Fne]))])),bqt=new $2("IN_B_L",18,aqt,lqt,Jzt,Qzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,Bne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,Bne,Fne]))])),pqt=new $2("IN_B_C",19,rqt,lqt,Jzt,Zzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,Pne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,Pne,Fne]))])),wqt=new $2("IN_B_R",20,oqt,lqt,Jzt,Jzt,M4($v(Ujt,1),Zkt,21,0,[VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,jne])),VF(Rne,M4($v(Gne,1),q_t,93,0,[zne,jne,Fne]))])),Bqt=new $2(vCt,21,null,null,null,null,M4($v(Ujt,1),Zkt,21,0,[]))}function Ikt(){Ikt=I,coe=(Y$(),ooe).b,YP(JJ(eH(ooe.b),0),34),YP(JJ(eH(ooe.b),1),18),soe=ooe.a,YP(JJ(eH(ooe.a),0),34),YP(JJ(eH(ooe.a),1),18),YP(JJ(eH(ooe.a),2),18),YP(JJ(eH(ooe.a),3),18),YP(JJ(eH(ooe.a),4),18),uoe=ooe.o,YP(JJ(eH(ooe.o),0),34),YP(JJ(eH(ooe.o),1),34),hoe=YP(JJ(eH(ooe.o),2),18),YP(JJ(eH(ooe.o),3),18),YP(JJ(eH(ooe.o),4),18),YP(JJ(eH(ooe.o),5),18),YP(JJ(eH(ooe.o),6),18),YP(JJ(eH(ooe.o),7),18),YP(JJ(eH(ooe.o),8),18),YP(JJ(eH(ooe.o),9),18),YP(JJ(eH(ooe.o),10),18),YP(JJ(eH(ooe.o),11),18),YP(JJ(eH(ooe.o),12),18),YP(JJ(eH(ooe.o),13),18),YP(JJ(eH(ooe.o),14),18),YP(JJ(eH(ooe.o),15),18),YP(JJ(tH(ooe.o),0),59),YP(JJ(tH(ooe.o),1),59),YP(JJ(tH(ooe.o),2),59),YP(JJ(tH(ooe.o),3),59),YP(JJ(tH(ooe.o),4),59),YP(JJ(tH(ooe.o),5),59),YP(JJ(tH(ooe.o),6),59),YP(JJ(tH(ooe.o),7),59),YP(JJ(tH(ooe.o),8),59),YP(JJ(tH(ooe.o),9),59),loe=ooe.p,YP(JJ(eH(ooe.p),0),34),YP(JJ(eH(ooe.p),1),34),YP(JJ(eH(ooe.p),2),34),YP(JJ(eH(ooe.p),3),34),YP(JJ(eH(ooe.p),4),18),YP(JJ(eH(ooe.p),5),18),YP(JJ(tH(ooe.p),0),59),YP(JJ(tH(ooe.p),1),59),foe=ooe.q,YP(JJ(eH(ooe.q),0),34),doe=ooe.v,YP(JJ(eH(ooe.v),0),18),YP(JJ(tH(ooe.v),0),59),YP(JJ(tH(ooe.v),1),59),YP(JJ(tH(ooe.v),2),59),goe=ooe.w,YP(JJ(eH(ooe.w),0),34),YP(JJ(eH(ooe.w),1),34),YP(JJ(eH(ooe.w),2),34),YP(JJ(eH(ooe.w),3),18),poe=ooe.B,YP(JJ(eH(ooe.B),0),18),YP(JJ(tH(ooe.B),0),59),YP(JJ(tH(ooe.B),1),59),YP(JJ(tH(ooe.B),2),59),yoe=ooe.Q,YP(JJ(eH(ooe.Q),0),18),YP(JJ(tH(ooe.Q),0),59),moe=ooe.R,YP(JJ(eH(ooe.R),0),34),voe=ooe.S,YP(JJ(tH(ooe.S),0),59),YP(JJ(tH(ooe.S),1),59),YP(JJ(tH(ooe.S),2),59),YP(JJ(tH(ooe.S),3),59),YP(JJ(tH(ooe.S),4),59),YP(JJ(tH(ooe.S),5),59),YP(JJ(tH(ooe.S),6),59),YP(JJ(tH(ooe.S),7),59),YP(JJ(tH(ooe.S),8),59),YP(JJ(tH(ooe.S),9),59),YP(JJ(tH(ooe.S),10),59),YP(JJ(tH(ooe.S),11),59),YP(JJ(tH(ooe.S),12),59),YP(JJ(tH(ooe.S),13),59),YP(JJ(tH(ooe.S),14),59),xoe=ooe.T,YP(JJ(eH(ooe.T),0),18),YP(JJ(eH(ooe.T),2),18),koe=YP(JJ(eH(ooe.T),3),18),YP(JJ(eH(ooe.T),4),18),YP(JJ(tH(ooe.T),0),59),YP(JJ(tH(ooe.T),1),59),YP(JJ(eH(ooe.T),1),18),_oe=ooe.U,YP(JJ(eH(ooe.U),0),34),YP(JJ(eH(ooe.U),1),34),YP(JJ(eH(ooe.U),2),18),YP(JJ(eH(ooe.U),3),18),YP(JJ(eH(ooe.U),4),18),YP(JJ(eH(ooe.U),5),18),YP(JJ(tH(ooe.U),0),59),Eoe=ooe.V,YP(JJ(eH(ooe.V),0),18),Toe=ooe.W,YP(JJ(eH(ooe.W),0),34),YP(JJ(eH(ooe.W),1),34),YP(JJ(eH(ooe.W),2),34),YP(JJ(eH(ooe.W),3),18),YP(JJ(eH(ooe.W),4),18),YP(JJ(eH(ooe.W),5),18),Soe=ooe.bb,YP(JJ(eH(ooe.bb),0),34),YP(JJ(eH(ooe.bb),1),34),YP(JJ(eH(ooe.bb),2),34),YP(JJ(eH(ooe.bb),3),34),YP(JJ(eH(ooe.bb),4),34),YP(JJ(eH(ooe.bb),5),34),YP(JJ(eH(ooe.bb),6),34),YP(JJ(eH(ooe.bb),7),18),YP(JJ(tH(ooe.bb),0),59),YP(JJ(tH(ooe.bb),1),59),Aoe=ooe.eb,YP(JJ(eH(ooe.eb),0),34),YP(JJ(eH(ooe.eb),1),34),YP(JJ(eH(ooe.eb),2),34),YP(JJ(eH(ooe.eb),3),34),YP(JJ(eH(ooe.eb),4),34),YP(JJ(eH(ooe.eb),5),34),YP(JJ(eH(ooe.eb),6),18),YP(JJ(eH(ooe.eb),7),18),Coe=ooe.ab,YP(JJ(eH(ooe.ab),0),34),YP(JJ(eH(ooe.ab),1),34),boe=ooe.H,YP(JJ(eH(ooe.H),0),18),YP(JJ(eH(ooe.H),1),18),YP(JJ(eH(ooe.H),2),18),YP(JJ(eH(ooe.H),3),18),YP(JJ(eH(ooe.H),4),18),YP(JJ(eH(ooe.H),5),18),YP(JJ(tH(ooe.H),0),59),Moe=ooe.db,YP(JJ(eH(ooe.db),0),18),woe=ooe.M}function Lkt(t){iE(t,new Vot(ex(Qv(tx(Vv(Jv(Zv(new gs,EAt),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Sa),EAt),VF((zht(),uae),M4($v(hae,1),q_t,237,0,[oae,sae,aae,cae,iae,nae]))))),IY(t,EAt,HIt,int(_0t)),IY(t,EAt,UIt,int(E0t)),IY(t,EAt,iSt,int(T0t)),IY(t,EAt,GIt,int(C0t)),IY(t,EAt,MSt,int(A0t)),IY(t,EAt,YIt,int(M0t)),IY(t,EAt,KIt,int(O0t)),IY(t,EAt,WIt,int(N0t)),IY(t,EAt,XIt,int(P0t)),IY(t,EAt,VIt,int(D0t)),IY(t,EAt,ASt,int(B0t)),IY(t,EAt,QIt,int(j0t)),IY(t,EAt,ZIt,int($0t)),IY(t,EAt,JIt,int(L0t)),IY(t,EAt,HMt,int(k0t)),IY(t,EAt,GMt,int(S0t)),IY(t,EAt,UMt,int(I0t)),IY(t,EAt,YMt,int(F0t)),IY(t,EAt,SSt,u7(0)),IY(t,EAt,KMt,int(w0t)),IY(t,EAt,WMt,int(y0t)),IY(t,EAt,XMt,int(m0t)),IY(t,EAt,nIt,int(Q0t)),IY(t,EAt,iIt,int(H0t)),IY(t,EAt,rIt,int(U0t)),IY(t,EAt,aIt,int(K0t)),IY(t,EAt,oIt,int(G0t)),IY(t,EAt,sIt,int(Y0t)),IY(t,EAt,cIt,int(J0t)),IY(t,EAt,uIt,int(Z0t)),IY(t,EAt,lIt,int(X0t)),IY(t,EAt,hIt,int(W0t)),IY(t,EAt,fIt,int(V0t)),IY(t,EAt,BMt,int(H1t)),IY(t,EAt,FMt,int(U1t)),IY(t,EAt,$Mt,int(l1t)),IY(t,EAt,zMt,int(h1t)),IY(t,EAt,oSt,Z1t),IY(t,EAt,IIt,o1t),IY(t,EAt,tLt,0),IY(t,EAt,ISt,u7(1)),IY(t,EAt,aSt,TSt),IY(t,EAt,eLt,int(V1t)),IY(t,EAt,DSt,int(c0t)),IY(t,EAt,nLt,int(d0t)),IY(t,EAt,iLt,int(QJt)),IY(t,EAt,rLt,int(SJt)),IY(t,EAt,TIt,int(p1t)),IY(t,EAt,LSt,(mL(),!0)),IY(t,EAt,aLt,int(v1t)),IY(t,EAt,oLt,int(x1t)),IY(t,EAt,FSt,int(Y1t)),IY(t,EAt,BSt,int(X1t)),IY(t,EAt,sLt,int(K1t)),IY(t,EAt,cLt,t1t),IY(t,EAt,jSt,int(j1t)),IY(t,EAt,uLt,int(F1t)),IY(t,EAt,RSt,int(h0t)),IY(t,EAt,lLt,int(l0t)),IY(t,EAt,hLt,int(f0t)),IY(t,EAt,fLt,e0t),IY(t,EAt,dLt,int(i0t)),IY(t,EAt,gLt,int(r0t)),IY(t,EAt,pLt,int(a0t)),IY(t,EAt,bLt,int(n0t)),IY(t,EAt,lMt,int(q0t)),IY(t,EAt,dMt,int(D1t)),IY(t,EAt,mMt,int(O1t)),IY(t,EAt,uMt,int(z0t)),IY(t,EAt,gMt,int(S1t)),IY(t,EAt,fMt,int(VJt)),IY(t,EAt,kMt,int(XJt)),IY(t,EAt,_Mt,int(zJt)),IY(t,EAt,AMt,int(qJt)),IY(t,EAt,MMt,int(UJt)),IY(t,EAt,IMt,int(HJt)),IY(t,EAt,TMt,int(WJt)),IY(t,EAt,aMt,int(P1t)),IY(t,EAt,oMt,int(B1t)),IY(t,EAt,rMt,int(_1t)),IY(t,EAt,LMt,int(G1t)),IY(t,EAt,NMt,int($1t)),IY(t,EAt,iMt,int(d1t)),IY(t,EAt,PMt,int(q1t)),IY(t,EAt,jMt,int(c1t)),IY(t,EAt,RMt,int(u1t)),IY(t,EAt,wLt,int($Jt)),IY(t,EAt,DMt,int(R1t)),IY(t,EAt,QMt,int(DJt)),IY(t,EAt,ZMt,int(OJt)),IY(t,EAt,VMt,int(LJt)),IY(t,EAt,JMt,int(w1t)),IY(t,EAt,tIt,int(b1t)),IY(t,EAt,eIt,int(y1t)),IY(t,EAt,QSt,int(W1t)),IY(t,EAt,yLt,int(E1t)),IY(t,EAt,rSt,int(f1t)),IY(t,EAt,mLt,int(i1t)),IY(t,EAt,NSt,int(n1t)),IY(t,EAt,EMt,int(GJt)),IY(t,EAt,vLt,int(u0t)),IY(t,EAt,xLt,int(IJt)),IY(t,EAt,kLt,int(m1t)),IY(t,EAt,_Lt,int(o0t)),IY(t,EAt,ELt,int(J1t)),IY(t,EAt,TLt,int(t0t)),IY(t,EAt,wMt,int(M1t)),IY(t,EAt,yMt,int(I1t)),IY(t,EAt,CLt,int(p0t)),IY(t,EAt,sMt,int(AJt)),IY(t,EAt,vMt,int(L1t)),IY(t,EAt,dIt,int(r1t)),IY(t,EAt,gIt,int(e1t)),IY(t,EAt,SLt,int(N1t)),IY(t,EAt,xMt,int(T1t)),IY(t,EAt,OMt,int(z1t)),IY(t,EAt,ALt,int(R0t)),IY(t,EAt,nMt,int(JJt)),IY(t,EAt,cMt,int(g0t)),IY(t,EAt,qMt,int(s1t)),IY(t,EAt,pMt,int(C1t)),IY(t,EAt,CMt,int(YJt)),IY(t,EAt,MLt,int(k1t)),IY(t,EAt,bMt,int(A1t)),IY(t,EAt,SMt,int(KJt)),IY(t,EAt,pIt,int(RJt)),IY(t,EAt,yIt,int(FJt)),IY(t,EAt,mIt,int(PJt)),IY(t,EAt,vIt,int(BJt)),IY(t,EAt,bIt,int(jJt)),IY(t,EAt,wIt,int(NJt)),IY(t,EAt,hMt,int(g1t))}function Okt(t,e){var n;return ace||(ace=new tw,oce=new tw,Akt(),Akt(),Ctt(n=new JG(4),"\t\n\r\r "),jU(ace,mjt,n),jU(oce,mjt,Xwt(n)),Ctt(n=new JG(4),kjt),jU(ace,wjt,n),jU(oce,wjt,Xwt(n)),Ctt(n=new JG(4),kjt),jU(ace,wjt,n),jU(oce,wjt,Xwt(n)),Ctt(n=new JG(4),_jt),omt(n,YP(eU(ace,wjt),117)),jU(ace,yjt,n),jU(oce,yjt,Xwt(n)),Ctt(n=new JG(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),jU(ace,vjt,n),jU(oce,vjt,Xwt(n)),Ctt(n=new JG(4),_jt),zgt(n,95,95),zgt(n,58,58),jU(ace,xjt,n),jU(oce,xjt,Xwt(n))),YP(eU(e?ace:oce,t),136)}function Dkt(t){return NN("_UI_EMFDiagnostic_marker",t)?"EMF Problem":NN("_UI_CircularContainment_diagnostic",t)?"An object may not circularly contain itself":NN(kPt,t)?"Wrong character.":NN(_Pt,t)?"Invalid reference number.":NN(EPt,t)?"A character is required after \\.":NN(TPt,t)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":NN(CPt,t)?"'(?<' or '(? toIndex: ",LTt=", toIndex: ",OTt="Index: ",DTt=", Size: ",NTt="org.eclipse.elk.alg.common",PTt={62:1},BTt="org.eclipse.elk.alg.common.compaction",FTt="Scanline/EventHandler",jTt="org.eclipse.elk.alg.common.compaction.oned",RTt="CNode belongs to another CGroup.",$Tt="ISpacingsHandler/1",zTt="The ",qTt=" instance has been finished already.",HTt="The direction ",UTt=" is not supported by the CGraph instance.",GTt="OneDimensionalCompactor",YTt="OneDimensionalCompactor/lambda$0$Type",KTt="Quadruplet",WTt="ScanlineConstraintCalculator",XTt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",VTt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",QTt="ScanlineConstraintCalculator/Timestamp",ZTt="ScanlineConstraintCalculator/lambda$0$Type",JTt={169:1,45:1},tCt="org.eclipse.elk.alg.common.compaction.options",eCt="org.eclipse.elk.core.data",nCt="org.eclipse.elk.polyomino.traversalStrategy",iCt="org.eclipse.elk.polyomino.lowLevelSort",rCt="org.eclipse.elk.polyomino.highLevelSort",aCt="org.eclipse.elk.polyomino.fill",oCt={130:1},sCt="polyomino",cCt="org.eclipse.elk.alg.common.networksimplex",uCt={177:1,3:1,4:1},lCt="org.eclipse.elk.alg.common.nodespacing",hCt="org.eclipse.elk.alg.common.nodespacing.cellsystem",fCt="CENTER",dCt={212:1,326:1},gCt={3:1,4:1,5:1,595:1},pCt="LEFT",bCt="RIGHT",wCt="Vertical alignment cannot be null",yCt="BOTTOM",mCt="org.eclipse.elk.alg.common.nodespacing.internal",vCt="UNDEFINED",xCt=.01,kCt="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",_Ct="LabelPlacer/lambda$0$Type",ECt="LabelPlacer/lambda$1$Type",TCt="portRatioOrPosition",CCt="org.eclipse.elk.alg.common.overlaps",SCt="DOWN",ACt="org.eclipse.elk.alg.common.polyomino",MCt="NORTH",ICt="EAST",LCt="SOUTH",OCt="WEST",DCt="org.eclipse.elk.alg.common.polyomino.structures",NCt="Direction",PCt="Grid is only of size ",BCt=". Requested point (",FCt=") is out of bounds.",jCt=" Given center based coordinates were (",RCt="org.eclipse.elk.graph.properties",$Ct="IPropertyHolder",zCt={3:1,94:1,134:1},qCt="org.eclipse.elk.alg.common.spore",HCt="org.eclipse.elk.alg.common.utils",UCt={209:1},GCt="org.eclipse.elk.core",YCt="Connected Components Compaction",KCt="org.eclipse.elk.alg.disco",WCt="org.eclipse.elk.alg.disco.graph",XCt="org.eclipse.elk.alg.disco.options",VCt="CompactionStrategy",QCt="org.eclipse.elk.disco.componentCompaction.strategy",ZCt="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",JCt="org.eclipse.elk.disco.debug.discoGraph",tSt="org.eclipse.elk.disco.debug.discoPolys",eSt="componentCompaction",nSt="org.eclipse.elk.disco",iSt="org.eclipse.elk.spacing.componentComponent",rSt="org.eclipse.elk.edge.thickness",aSt="org.eclipse.elk.aspectRatio",oSt="org.eclipse.elk.padding",sSt="org.eclipse.elk.alg.disco.transform",cSt=1.5707963267948966,uSt=17976931348623157e292,lSt={3:1,4:1,5:1,192:1},hSt={3:1,6:1,4:1,5:1,106:1,120:1},fSt="org.eclipse.elk.alg.force",dSt="ComponentsProcessor",gSt="ComponentsProcessor/1",pSt="org.eclipse.elk.alg.force.graph",bSt="Component Layout",wSt="org.eclipse.elk.alg.force.model",ySt="org.eclipse.elk.force.model",mSt="org.eclipse.elk.force.iterations",vSt="org.eclipse.elk.force.repulsivePower",xSt="org.eclipse.elk.force.temperature",kSt=.001,_St="org.eclipse.elk.force.repulsion",ESt="org.eclipse.elk.alg.force.options",TSt=1.600000023841858,CSt="org.eclipse.elk.force",SSt="org.eclipse.elk.priority",ASt="org.eclipse.elk.spacing.nodeNode",MSt="org.eclipse.elk.spacing.edgeLabel",ISt="org.eclipse.elk.randomSeed",LSt="org.eclipse.elk.separateConnectedComponents",OSt="org.eclipse.elk.interactive",DSt="org.eclipse.elk.portConstraints",NSt="org.eclipse.elk.edgeLabels.inline",PSt="org.eclipse.elk.omitNodeMicroLayout",BSt="org.eclipse.elk.nodeSize.options",FSt="org.eclipse.elk.nodeSize.constraints",jSt="org.eclipse.elk.nodeLabels.placement",RSt="org.eclipse.elk.portLabels.placement",$St="origin",zSt="random",qSt="boundingBox.upLeft",HSt="boundingBox.lowRight",USt="org.eclipse.elk.stress.fixed",GSt="org.eclipse.elk.stress.desiredEdgeLength",YSt="org.eclipse.elk.stress.dimension",KSt="org.eclipse.elk.stress.epsilon",WSt="org.eclipse.elk.stress.iterationLimit",XSt="org.eclipse.elk.stress",VSt="ELK Stress",QSt="org.eclipse.elk.nodeSize.minimum",ZSt="org.eclipse.elk.alg.force.stress",JSt="Layered layout",tAt="org.eclipse.elk.alg.layered",eAt="org.eclipse.elk.alg.layered.compaction.components",nAt="org.eclipse.elk.alg.layered.compaction.oned",iAt="org.eclipse.elk.alg.layered.compaction.oned.algs",rAt="org.eclipse.elk.alg.layered.compaction.recthull",aAt="org.eclipse.elk.alg.layered.components",oAt="NONE",sAt={3:1,6:1,4:1,9:1,5:1,122:1},cAt={3:1,6:1,4:1,5:1,141:1,106:1,120:1},uAt="org.eclipse.elk.alg.layered.compound",lAt={51:1},hAt="org.eclipse.elk.alg.layered.graph",fAt=" -> ",dAt="Not supported by LGraph",gAt="Port side is undefined",pAt={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},bAt={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},wAt={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},yAt="([{\"' \t\r\n",mAt=")]}\"' \t\r\n",vAt="The given string contains parts that cannot be parsed as numbers.",xAt="org.eclipse.elk.core.math",kAt={3:1,4:1,142:1,207:1,414:1},_At={3:1,4:1,116:1,207:1,414:1},EAt="org.eclipse.elk.layered",TAt="org.eclipse.elk.alg.layered.graph.transform",CAt="ElkGraphImporter",SAt="ElkGraphImporter/lambda$0$Type",AAt="ElkGraphImporter/lambda$1$Type",MAt="ElkGraphImporter/lambda$2$Type",IAt="ElkGraphImporter/lambda$4$Type",LAt="Node margin calculation",OAt="org.eclipse.elk.alg.layered.intermediate",DAt="ONE_SIDED_GREEDY_SWITCH",NAt="TWO_SIDED_GREEDY_SWITCH",PAt="No implementation is available for the layout processor ",BAt="IntermediateProcessorStrategy",FAt="Node '",jAt="FIRST_SEPARATE",RAt="LAST_SEPARATE",$At="Odd port side processing",zAt="org.eclipse.elk.alg.layered.intermediate.compaction",qAt="org.eclipse.elk.alg.layered.intermediate.greedyswitch",HAt="org.eclipse.elk.alg.layered.p3order.counting",UAt={225:1},GAt="org.eclipse.elk.alg.layered.intermediate.loops",YAt="org.eclipse.elk.alg.layered.intermediate.loops.ordering",KAt="org.eclipse.elk.alg.layered.intermediate.loops.routing",WAt="org.eclipse.elk.alg.layered.intermediate.preserveorder",XAt="org.eclipse.elk.alg.layered.intermediate.wrapping",VAt="org.eclipse.elk.alg.layered.options",QAt="INTERACTIVE",ZAt="DEPTH_FIRST",JAt="EDGE_LENGTH",tMt="SELF_LOOPS",eMt="firstTryWithInitialOrder",nMt="org.eclipse.elk.layered.directionCongruency",iMt="org.eclipse.elk.layered.feedbackEdges",rMt="org.eclipse.elk.layered.interactiveReferencePoint",aMt="org.eclipse.elk.layered.mergeEdges",oMt="org.eclipse.elk.layered.mergeHierarchyEdges",sMt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",cMt="org.eclipse.elk.layered.portSortingStrategy",uMt="org.eclipse.elk.layered.thoroughness",lMt="org.eclipse.elk.layered.unnecessaryBendpoints",hMt="org.eclipse.elk.layered.generatePositionAndLayerIds",fMt="org.eclipse.elk.layered.cycleBreaking.strategy",dMt="org.eclipse.elk.layered.layering.strategy",gMt="org.eclipse.elk.layered.layering.layerConstraint",pMt="org.eclipse.elk.layered.layering.layerChoiceConstraint",bMt="org.eclipse.elk.layered.layering.layerId",wMt="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",yMt="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",mMt="org.eclipse.elk.layered.layering.nodePromotion.strategy",vMt="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",xMt="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",kMt="org.eclipse.elk.layered.crossingMinimization.strategy",_Mt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",EMt="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",TMt="org.eclipse.elk.layered.crossingMinimization.semiInteractive",CMt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",SMt="org.eclipse.elk.layered.crossingMinimization.positionId",AMt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",MMt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",IMt="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",LMt="org.eclipse.elk.layered.nodePlacement.strategy",OMt="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",DMt="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",NMt="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",PMt="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",BMt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",FMt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",jMt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",RMt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",$Mt="org.eclipse.elk.layered.edgeRouting.splines.mode",zMt="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",qMt="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",HMt="org.eclipse.elk.layered.spacing.baseValue",UMt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",GMt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",YMt="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",KMt="org.eclipse.elk.layered.priority.direction",WMt="org.eclipse.elk.layered.priority.shortness",XMt="org.eclipse.elk.layered.priority.straightness",VMt="org.eclipse.elk.layered.compaction.connectedComponents",QMt="org.eclipse.elk.layered.compaction.postCompaction.strategy",ZMt="org.eclipse.elk.layered.compaction.postCompaction.constraints",JMt="org.eclipse.elk.layered.highDegreeNodes.treatment",tIt="org.eclipse.elk.layered.highDegreeNodes.threshold",eIt="org.eclipse.elk.layered.highDegreeNodes.treeHeight",nIt="org.eclipse.elk.layered.wrapping.strategy",iIt="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",rIt="org.eclipse.elk.layered.wrapping.correctionFactor",aIt="org.eclipse.elk.layered.wrapping.cutting.strategy",oIt="org.eclipse.elk.layered.wrapping.cutting.cuts",sIt="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",cIt="org.eclipse.elk.layered.wrapping.validify.strategy",uIt="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",lIt="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",hIt="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",fIt="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",dIt="org.eclipse.elk.layered.edgeLabels.sideSelection",gIt="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",pIt="org.eclipse.elk.layered.considerModelOrder.strategy",bIt="org.eclipse.elk.layered.considerModelOrder.noModelOrder",wIt="org.eclipse.elk.layered.considerModelOrder.components",yIt="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",mIt="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",vIt="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",xIt="layering",kIt="layering.minWidth",_It="layering.nodePromotion",EIt="crossingMinimization",TIt="org.eclipse.elk.hierarchyHandling",CIt="crossingMinimization.greedySwitch",SIt="nodePlacement",AIt="nodePlacement.bk",MIt="edgeRouting",IIt="org.eclipse.elk.edgeRouting",LIt="spacing",OIt="priority",DIt="compaction",NIt="compaction.postCompaction",PIt="Specifies whether and how post-process compaction is applied.",BIt="highDegreeNodes",FIt="wrapping",jIt="wrapping.cutting",RIt="wrapping.validify",$It="wrapping.multiEdge",zIt="edgeLabels",qIt="considerModelOrder",HIt="org.eclipse.elk.spacing.commentComment",UIt="org.eclipse.elk.spacing.commentNode",GIt="org.eclipse.elk.spacing.edgeEdge",YIt="org.eclipse.elk.spacing.edgeNode",KIt="org.eclipse.elk.spacing.labelLabel",WIt="org.eclipse.elk.spacing.labelPortHorizontal",XIt="org.eclipse.elk.spacing.labelPortVertical",VIt="org.eclipse.elk.spacing.labelNode",QIt="org.eclipse.elk.spacing.nodeSelfLoop",ZIt="org.eclipse.elk.spacing.portPort",JIt="org.eclipse.elk.spacing.individual",tLt="org.eclipse.elk.port.borderOffset",eLt="org.eclipse.elk.noLayout",nLt="org.eclipse.elk.port.side",iLt="org.eclipse.elk.debugMode",rLt="org.eclipse.elk.alignment",aLt="org.eclipse.elk.insideSelfLoops.activate",oLt="org.eclipse.elk.insideSelfLoops.yo",sLt="org.eclipse.elk.nodeSize.fixedGraphSize",cLt="org.eclipse.elk.direction",uLt="org.eclipse.elk.nodeLabels.padding",lLt="org.eclipse.elk.portLabels.nextToPortIfPossible",hLt="org.eclipse.elk.portLabels.treatAsGroup",fLt="org.eclipse.elk.portAlignment.default",dLt="org.eclipse.elk.portAlignment.north",gLt="org.eclipse.elk.portAlignment.south",pLt="org.eclipse.elk.portAlignment.west",bLt="org.eclipse.elk.portAlignment.east",wLt="org.eclipse.elk.contentAlignment",yLt="org.eclipse.elk.junctionPoints",mLt="org.eclipse.elk.edgeLabels.placement",vLt="org.eclipse.elk.port.index",xLt="org.eclipse.elk.commentBox",kLt="org.eclipse.elk.hypernode",_Lt="org.eclipse.elk.port.anchor",ELt="org.eclipse.elk.partitioning.activate",TLt="org.eclipse.elk.partitioning.partition",CLt="org.eclipse.elk.position",SLt="org.eclipse.elk.margins",ALt="org.eclipse.elk.spacing.portsSurrounding",MLt="org.eclipse.elk.interactiveLayout",ILt="org.eclipse.elk.core.util",LLt={3:1,4:1,5:1,593:1},OLt="NETWORK_SIMPLEX",DLt={123:1,51:1},NLt="org.eclipse.elk.alg.layered.p1cycles",PLt="org.eclipse.elk.alg.layered.p2layers",BLt={402:1,225:1},FLt={832:1,3:1,4:1},jLt="org.eclipse.elk.alg.layered.p3order",RLt="org.eclipse.elk.alg.layered.p4nodes",$Lt={3:1,4:1,5:1,840:1},zLt=1e-5,qLt="org.eclipse.elk.alg.layered.p4nodes.bk",HLt="org.eclipse.elk.alg.layered.p5edges",ULt="org.eclipse.elk.alg.layered.p5edges.orthogonal",GLt="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",YLt=1e-6,KLt="org.eclipse.elk.alg.layered.p5edges.splines",WLt=.09999999999999998,XLt=1e-8,VLt=4.71238898038469,QLt=3.141592653589793,ZLt="org.eclipse.elk.alg.mrtree",JLt="org.eclipse.elk.alg.mrtree.graph",tOt="org.eclipse.elk.alg.mrtree.intermediate",eOt="Set neighbors in level",nOt="DESCENDANTS",iOt="org.eclipse.elk.mrtree.weighting",rOt="org.eclipse.elk.mrtree.searchOrder",aOt="org.eclipse.elk.alg.mrtree.options",oOt="org.eclipse.elk.mrtree",sOt="org.eclipse.elk.tree",cOt="org.eclipse.elk.alg.radial",uOt=6.283185307179586,lOt=5e-324,hOt="org.eclipse.elk.alg.radial.intermediate",fOt="org.eclipse.elk.alg.radial.intermediate.compaction",dOt={3:1,4:1,5:1,106:1},gOt="org.eclipse.elk.alg.radial.intermediate.optimization",pOt="No implementation is available for the layout option ",bOt="org.eclipse.elk.alg.radial.options",wOt="org.eclipse.elk.radial.orderId",yOt="org.eclipse.elk.radial.radius",mOt="org.eclipse.elk.radial.compactor",vOt="org.eclipse.elk.radial.compactionStepSize",xOt="org.eclipse.elk.radial.sorter",kOt="org.eclipse.elk.radial.wedgeCriteria",_Ot="org.eclipse.elk.radial.optimizationCriteria",EOt="org.eclipse.elk.radial",TOt="org.eclipse.elk.alg.radial.p1position.wedge",COt="org.eclipse.elk.alg.radial.sorting",SOt=5.497787143782138,AOt=3.9269908169872414,MOt=2.356194490192345,IOt="org.eclipse.elk.alg.rectpacking",LOt="org.eclipse.elk.alg.rectpacking.firstiteration",OOt="org.eclipse.elk.alg.rectpacking.options",DOt="org.eclipse.elk.rectpacking.optimizationGoal",NOt="org.eclipse.elk.rectpacking.lastPlaceShift",POt="org.eclipse.elk.rectpacking.currentPosition",BOt="org.eclipse.elk.rectpacking.desiredPosition",FOt="org.eclipse.elk.rectpacking.onlyFirstIteration",jOt="org.eclipse.elk.rectpacking.rowCompaction",ROt="org.eclipse.elk.rectpacking.expandToAspectRatio",$Ot="org.eclipse.elk.rectpacking.targetWidth",zOt="org.eclipse.elk.expandNodes",qOt="org.eclipse.elk.rectpacking",HOt="org.eclipse.elk.alg.rectpacking.util",UOt="No implementation available for ",GOt="org.eclipse.elk.alg.spore",YOt="org.eclipse.elk.alg.spore.options",KOt="org.eclipse.elk.sporeCompaction",WOt="org.eclipse.elk.underlyingLayoutAlgorithm",XOt="org.eclipse.elk.processingOrder.treeConstruction",VOt="org.eclipse.elk.processingOrder.spanningTreeCostFunction",QOt="org.eclipse.elk.processingOrder.preferredRoot",ZOt="org.eclipse.elk.processingOrder.rootSelection",JOt="org.eclipse.elk.structure.structureExtractionStrategy",tDt="org.eclipse.elk.compaction.compactionStrategy",eDt="org.eclipse.elk.compaction.orthogonal",nDt="org.eclipse.elk.overlapRemoval.maxIterations",iDt="org.eclipse.elk.overlapRemoval.runScanline",rDt="processingOrder",aDt="overlapRemoval",oDt="org.eclipse.elk.sporeOverlap",sDt="org.eclipse.elk.alg.spore.p1structure",cDt="org.eclipse.elk.alg.spore.p2processingorder",uDt="org.eclipse.elk.alg.spore.p3execution",lDt="Invalid index: ",hDt="org.eclipse.elk.core.alg",fDt={331:1},dDt={288:1},gDt="Make sure its type is registered with the ",pDt=" utility class.",bDt="true",wDt="false",yDt="Couldn't clone property '",mDt=.05,vDt="org.eclipse.elk.core.options",xDt=1.2999999523162842,kDt="org.eclipse.elk.box",_Dt="org.eclipse.elk.box.packingMode",EDt="org.eclipse.elk.algorithm",TDt="org.eclipse.elk.resolvedAlgorithm",CDt="org.eclipse.elk.bendPoints",SDt="org.eclipse.elk.scaleFactor",ADt="org.eclipse.elk.animate",MDt="org.eclipse.elk.animTimeFactor",IDt="org.eclipse.elk.layoutAncestors",LDt="org.eclipse.elk.maxAnimTime",ODt="org.eclipse.elk.minAnimTime",DDt="org.eclipse.elk.progressBar",NDt="org.eclipse.elk.validateGraph",PDt="org.eclipse.elk.validateOptions",BDt="org.eclipse.elk.zoomToFit",FDt="org.eclipse.elk.font.size",jDt="org.eclipse.elk.edge.type",RDt="partitioning",$Dt="nodeLabels",zDt="portAlignment",qDt="nodeSize",HDt="port",UDt="portLabels",GDt="insideSelfLoops",YDt="org.eclipse.elk.fixed",KDt="org.eclipse.elk.random",WDt="port must have a parent node to calculate the port side",XDt="The edge needs to have exactly one edge section. Found: ",VDt="org.eclipse.elk.core.util.adapters",QDt="org.eclipse.emf.ecore",ZDt="org.eclipse.elk.graph",JDt="EMapPropertyHolder",tNt="ElkBendPoint",eNt="ElkGraphElement",nNt="ElkConnectableShape",iNt="ElkEdge",rNt="ElkEdgeSection",aNt="EModelElement",oNt="ENamedElement",sNt="ElkLabel",cNt="ElkNode",uNt="ElkPort",lNt={92:1,90:1},hNt="org.eclipse.emf.common.notify.impl",fNt="The feature '",dNt="' is not a valid changeable feature",gNt="Expecting null",pNt="' is not a valid feature",bNt="The feature ID",wNt=" is not a valid feature ID",yNt=32768,mNt={105:1,92:1,90:1,56:1,49:1,97:1},vNt="org.eclipse.emf.ecore.impl",xNt="org.eclipse.elk.graph.impl",kNt="Recursive containment not allowed for ",_Nt="The datatype '",ENt="' is not a valid classifier",TNt="The value '",CNt={190:1,3:1,4:1},SNt="The class '",ANt="http://www.eclipse.org/elk/ElkGraph",MNt=1024,INt="property",LNt="value",ONt="source",DNt="properties",NNt="identifier",PNt="height",BNt="width",FNt="parent",jNt="text",RNt="children",$Nt="hierarchical",zNt="sources",qNt="targets",HNt="sections",UNt="bendPoints",GNt="outgoingShape",YNt="incomingShape",KNt="outgoingSections",WNt="incomingSections",XNt="org.eclipse.emf.common.util",VNt="Severe implementation error in the Json to ElkGraph importer.",QNt="id",ZNt="org.eclipse.elk.graph.json",JNt="Unhandled parameter types: ",tPt="startPoint",ePt="An edge must have at least one source and one target (edge id: '",nPt="').",iPt="Referenced edge section does not exist: ",rPt=" (edge id: '",aPt="target",oPt="sourcePoint",sPt="targetPoint",cPt="group",uPt="name",lPt="connectableShape cannot be null",hPt="edge cannot be null",fPt="Passed edge is not 'simple'.",dPt="org.eclipse.elk.graph.util",gPt="The 'no duplicates' constraint is violated",pPt="targetIndex=",bPt=", size=",wPt="sourceIndex=",yPt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},mPt={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},vPt="logging",xPt="measureExecutionTime",kPt="parser.parse.1",_Pt="parser.parse.2",EPt="parser.next.1",TPt="parser.next.2",CPt="parser.next.3",SPt="parser.next.4",APt="parser.factor.1",MPt="parser.factor.2",IPt="parser.factor.3",LPt="parser.factor.4",OPt="parser.factor.5",DPt="parser.factor.6",NPt="parser.atom.1",PPt="parser.atom.2",BPt="parser.atom.3",FPt="parser.atom.4",jPt="parser.atom.5",RPt="parser.cc.1",$Pt="parser.cc.2",zPt="parser.cc.3",qPt="parser.cc.5",HPt="parser.cc.6",UPt="parser.cc.7",GPt="parser.cc.8",YPt="parser.ope.1",KPt="parser.ope.2",WPt="parser.ope.3",XPt="parser.descape.1",VPt="parser.descape.2",QPt="parser.descape.3",ZPt="parser.descape.4",JPt="parser.descape.5",tBt="parser.process.1",eBt="parser.quantifier.1",nBt="parser.quantifier.2",iBt="parser.quantifier.3",rBt="parser.quantifier.4",aBt="parser.quantifier.5",oBt="org.eclipse.emf.common.notify",sBt={415:1,672:1},cBt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},uBt={366:1,143:1},lBt="index=",hBt={3:1,4:1,5:1,126:1},fBt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},dBt={3:1,6:1,4:1,5:1,192:1},gBt={3:1,4:1,5:1,165:1,367:1},pBt=";/?:@&=+$,",bBt="invalid authority: ",wBt="EAnnotation",yBt="ETypedElement",mBt="EStructuralFeature",vBt="EAttribute",xBt="EClassifier",kBt="EEnumLiteral",_Bt="EGenericType",EBt="EOperation",TBt="EParameter",CBt="EReference",SBt="ETypeParameter",ABt="org.eclipse.emf.ecore.util",MBt={76:1},IBt={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},LBt="org.eclipse.emf.ecore.util.FeatureMap$Entry",OBt=8192,DBt=2048,NBt="byte",PBt="char",BBt="double",FBt="float",jBt="int",RBt="long",$Bt="short",zBt="java.lang.Object",qBt={3:1,4:1,5:1,247:1},HBt={3:1,4:1,5:1,673:1},UBt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},GBt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},YBt="mixed",KBt="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",WBt="kind",XBt={3:1,4:1,5:1,674:1},VBt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},QBt={20:1,28:1,52:1,14:1,15:1,58:1,69:1},ZBt={47:1,125:1,279:1},JBt={72:1,332:1},tFt="The value of type '",eFt="' must be of type '",nFt=1316,iFt="http://www.eclipse.org/emf/2002/Ecore",rFt=-32768,aFt="constraints",oFt="baseType",sFt="getEStructuralFeature",cFt="getFeatureID",uFt="feature",lFt="getOperationID",hFt="operation",fFt="defaultValue",dFt="eTypeParameters",gFt="isInstance",pFt="getEEnumLiteral",bFt="eContainingClass",wFt={55:1},yFt={3:1,4:1,5:1,119:1},mFt="org.eclipse.emf.ecore.resource",vFt={92:1,90:1,591:1,1935:1},xFt="org.eclipse.emf.ecore.resource.impl",kFt="unspecified",_Ft="simple",EFt="attribute",TFt="attributeWildcard",CFt="element",SFt="elementWildcard",AFt="collapse",MFt="itemType",IFt="namespace",LFt="##targetNamespace",OFt="whiteSpace",DFt="wildcards",NFt="http://www.eclipse.org/emf/2003/XMLType",PFt="##any",BFt="uninitialized",FFt="The multiplicity constraint is violated",jFt="org.eclipse.emf.ecore.xml.type",RFt="ProcessingInstruction",$Ft="SimpleAnyType",zFt="XMLTypeDocumentRoot",qFt="org.eclipse.emf.ecore.xml.type.impl",HFt="INF",UFt="processing",GFt="ENTITIES_._base",YFt="minLength",KFt="ENTITY",WFt="NCName",XFt="IDREFS_._base",VFt="integer",QFt="token",ZFt="pattern",JFt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",tjt="\\i\\c*",ejt="[\\i-[:]][\\c-[:]]*",njt="nonPositiveInteger",ijt="maxInclusive",rjt="NMTOKEN",ajt="NMTOKENS_._base",ojt="nonNegativeInteger",sjt="minInclusive",cjt="normalizedString",ujt="unsignedByte",ljt="unsignedInt",hjt="18446744073709551615",fjt="unsignedShort",djt="processingInstruction",gjt="org.eclipse.emf.ecore.xml.type.internal",pjt=1114111,bjt="Internal Error: shorthands: \\u",wjt="xml:isDigit",yjt="xml:isWord",mjt="xml:isSpace",vjt="xml:isNameChar",xjt="xml:isInitialNameChar",kjt="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",_jt="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",Ejt="Private Use",Tjt="ASSIGNED",Cjt="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",Sjt="UNASSIGNED",Ajt={3:1,117:1},Mjt="org.eclipse.emf.ecore.xml.type.util",Ijt={3:1,4:1,5:1,368:1},Ljt="org.eclipse.xtext.xbase.lib",Ojt="Cannot add elements to a Range",Djt="Cannot set elements in a Range",Njt="Cannot remove elements from a Range",Pjt="locale",Bjt="default",Fjt="user.agent";e.goog=e.goog||{},e.goog.global=e.goog.global||e,Bkt={},!Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!Date.now&&(Date.now=function(){return(new Date).getTime()}),Uht(1,null,{},r),Pkt.Fb=function(t){return HA(this,t)},Pkt.Gb=function(){return this.gm},Pkt.Hb=function(){return NL(this)},Pkt.Ib=function(){return Ix(H5(this))+"@"+(q5(this)>>>0).toString(16)},Pkt.equals=function(t){return this.Fb(t)},Pkt.hashCode=function(){return this.Hb()},Pkt.toString=function(){return this.Ib()},Uht(290,1,{290:1,2026:1},d5),Pkt.le=function(t){var e;return(e=new d5).i=4,e.c=t>1?FU(this,t-1):this,e},Pkt.me=function(){return rD(this),this.b},Pkt.ne=function(){return Ix(this)},Pkt.oe=function(){return rD(this),this.k},Pkt.pe=function(){return 0!=(4&this.i)},Pkt.qe=function(){return 0!=(1&this.i)},Pkt.Ib=function(){return SJ(this)},Pkt.i=0;var jjt,Rjt=y$(Kkt,"Object",1),$jt=y$(Kkt,"Class",290);Uht(1998,1,Wkt),y$(Xkt,"Optional",1998),Uht(1170,1998,Wkt,a),Pkt.Fb=function(t){return t===this},Pkt.Hb=function(){return 2040732332},Pkt.Ib=function(){return"Optional.absent()"},Pkt.Jb=function(t){return v$(t),fm(),jjt},y$(Xkt,"Absent",1170),Uht(628,1,{},vv),y$(Xkt,"Joiner",628);var zjt=eF(Xkt,"Predicate");Uht(582,1,{169:1,582:1,3:1,45:1},Bh),Pkt.Mb=function(t){return L5(this,t)},Pkt.Lb=function(t){return L5(this,t)},Pkt.Fb=function(t){var e;return!!EI(t,582)&&(e=YP(t,582),aft(this.a,e.a))},Pkt.Hb=function(){return O5(this.a)+306654252},Pkt.Ib=function(){return function(t){var e,n,i,r;for(e=N$(pA(new xL("Predicates."),"and"),40),n=!0,r=new Yf(t);r.b0},Pkt.Pb=function(){if(this.c>=this.d)throw ow(new Nw);return this.Xb(this.c++)},Pkt.Tb=function(){return this.c},Pkt.Ub=function(){if(this.c<=0)throw ow(new Nw);return this.Xb(--this.c)},Pkt.Vb=function(){return this.c-1},Pkt.c=0,Pkt.d=0,y$(i_t,"AbstractIndexedListIterator",386),Uht(699,198,n_t),Pkt.Ob=function(){return z0(this)},Pkt.Pb=function(){return sZ(this)},Pkt.e=1,y$(i_t,"AbstractIterator",699),Uht(1986,1,{224:1}),Pkt.Zb=function(){return this.f||(this.f=this.ac())},Pkt.Fb=function(t){return a6(this,t)},Pkt.Hb=function(){return q5(this.Zb())},Pkt.dc=function(){return 0==this.gc()},Pkt.ec=function(){return Pj(this)},Pkt.Ib=function(){return k9(this.Zb())},y$(i_t,"AbstractMultimap",1986),Uht(726,1986,a_t),Pkt.$b=function(){f0(this)},Pkt._b=function(t){return Cx(this,t)},Pkt.ac=function(){return new Hk(this,this.c)},Pkt.ic=function(t){return this.hc()},Pkt.bc=function(){return new ZI(this,this.c)},Pkt.jc=function(){return this.mc(this.hc())},Pkt.kc=function(){return new Qy(this)},Pkt.lc=function(){return cst(this.c.vc().Nc(),new s,64,this.d)},Pkt.cc=function(t){return DX(this,t)},Pkt.fc=function(t){return r8(this,t)},Pkt.gc=function(){return this.d},Pkt.mc=function(t){return qq(),new cd(t)},Pkt.nc=function(){return new Vy(this)},Pkt.oc=function(){return cst(this.c.Cc().Nc(),new o,64,this.d)},Pkt.pc=function(t,e){return new uV(this,t,e,null)},Pkt.d=0,y$(i_t,"AbstractMapBasedMultimap",726),Uht(1631,726,a_t),Pkt.hc=function(){return new hV(this.a)},Pkt.jc=function(){return qq(),qq(),b$t},Pkt.cc=function(t){return YP(DX(this,t),15)},Pkt.fc=function(t){return YP(r8(this,t),15)},Pkt.Zb=function(){return Gq(this)},Pkt.Fb=function(t){return a6(this,t)},Pkt.qc=function(t){return YP(DX(this,t),15)},Pkt.rc=function(t){return YP(r8(this,t),15)},Pkt.mc=function(t){return sH(YP(t,15))},Pkt.pc=function(t,e){return pK(this,t,YP(e,15),null)},y$(i_t,"AbstractListMultimap",1631),Uht(732,1,o_t),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return this.c.Ob()||this.e.Ob()},Pkt.Pb=function(){var t;return this.e.Ob()||(t=YP(this.c.Pb(),42),this.b=t.cd(),this.a=YP(t.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},Pkt.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},y$(i_t,"AbstractMapBasedMultimap/Itr",732),Uht(1099,732,o_t,Vy),Pkt.sc=function(t,e){return e},y$(i_t,"AbstractMapBasedMultimap/1",1099),Uht(1100,1,{},o),Pkt.Kb=function(t){return YP(t,14).Nc()},y$(i_t,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),Uht(1101,732,o_t,Qy),Pkt.sc=function(t,e){return new Uk(t,e)},y$(i_t,"AbstractMapBasedMultimap/2",1101);var qjt=eF(s_t,"Map");Uht(1967,1,c_t),Pkt.wc=function(t){v3(this,t)},Pkt.yc=function(t,e,n){return G7(this,t,e,n)},Pkt.$b=function(){this.vc().$b()},Pkt.tc=function(t){return Pit(this,t)},Pkt._b=function(t){return!!_ot(this,t,!1)},Pkt.uc=function(t){var e,n;for(e=this.vc().Kc();e.Ob();)if(n=YP(e.Pb(),42).dd(),JS(t)===JS(n)||null!=t&&U8(t,n))return!0;return!1},Pkt.Fb=function(t){var e,n,i;if(t===this)return!0;if(!EI(t,83)||(i=YP(t,83),this.gc()!=i.gc()))return!1;for(n=i.vc().Kc();n.Ob();)if(e=YP(n.Pb(),42),!this.tc(e))return!1;return!0},Pkt.xc=function(t){return ZS(_ot(this,t,!1))},Pkt.Hb=function(){return q4(this.vc())},Pkt.dc=function(){return 0==this.gc()},Pkt.ec=function(){return new Wf(this)},Pkt.zc=function(t,e){throw ow(new av("Put not supported on this map"))},Pkt.Ac=function(t){Q2(this,t)},Pkt.Bc=function(t){return ZS(_ot(this,t,!0))},Pkt.gc=function(){return this.vc().gc()},Pkt.Ib=function(){return Pot(this)},Pkt.Cc=function(){return new Vf(this)},y$(s_t,"AbstractMap",1967),Uht(1987,1967,c_t),Pkt.bc=function(){return new Zk(this)},Pkt.vc=function(){return Nj(this)},Pkt.ec=function(){return this.g||(this.g=this.bc())},Pkt.Cc=function(){return this.i||(this.i=new Jk(this))},y$(i_t,"Maps/ViewCachingAbstractMap",1987),Uht(389,1987,c_t,Hk),Pkt.xc=function(t){return function(t,e){var n,i;return(n=YP(M8(t.d,e),14))?(i=e,t.e.pc(i,n)):null}(this,t)},Pkt.Bc=function(t){return function(t,e){var n,i;return(n=YP(t.d.Bc(e),14))?((i=t.e.hc()).Gc(n),t.e.d-=n.gc(),n.$b(),i):null}(this,t)},Pkt.$b=function(){this.d==this.e.c?this.e.$b():dF(new gF(this))},Pkt._b=function(t){return L8(this.d,t)},Pkt.Ec=function(){return new zh(this)},Pkt.Dc=function(){return this.Ec()},Pkt.Fb=function(t){return this===t||U8(this.d,t)},Pkt.Hb=function(){return q5(this.d)},Pkt.ec=function(){return this.e.ec()},Pkt.gc=function(){return this.d.gc()},Pkt.Ib=function(){return k9(this.d)},y$(i_t,"AbstractMapBasedMultimap/AsMap",389);var Hjt=eF(Kkt,"Iterable");Uht(28,1,u_t),Pkt.Jc=function(t){zW(this,t)},Pkt.Lc=function(){return this.Oc()},Pkt.Nc=function(){return new AG(this,0)},Pkt.Oc=function(){return new xF(null,this.Nc())},Pkt.Fc=function(t){throw ow(new av("Add not supported on this collection"))},Pkt.Gc=function(t){return _2(this,t)},Pkt.$b=function(){Zz(this)},Pkt.Hc=function(t){return H9(this,t,!1)},Pkt.Ic=function(t){return d4(this,t)},Pkt.dc=function(){return 0==this.gc()},Pkt.Mc=function(t){return H9(this,t,!0)},Pkt.Pc=function(){return Ej(this)},Pkt.Qc=function(t){return Nit(this,t)},Pkt.Ib=function(){return $st(this)},y$(s_t,"AbstractCollection",28);var Ujt=eF(s_t,"Set");Uht(l_t,28,h_t),Pkt.Nc=function(){return new AG(this,1)},Pkt.Fb=function(t){return iet(this,t)},Pkt.Hb=function(){return q4(this)},y$(s_t,"AbstractSet",l_t),Uht(1970,l_t,h_t),y$(i_t,"Sets/ImprovedAbstractSet",1970),Uht(1971,1970,h_t),Pkt.$b=function(){this.Rc().$b()},Pkt.Hc=function(t){return ftt(this,t)},Pkt.dc=function(){return this.Rc().dc()},Pkt.Mc=function(t){var e;return!!this.Hc(t)&&(e=YP(t,42),this.Rc().ec().Mc(e.cd()))},Pkt.gc=function(){return this.Rc().gc()},y$(i_t,"Maps/EntrySet",1971),Uht(1097,1971,h_t,zh),Pkt.Hc=function(t){return I8(this.a.d.vc(),t)},Pkt.Kc=function(){return new gF(this.a)},Pkt.Rc=function(){return this.a},Pkt.Mc=function(t){var e;return!!I8(this.a.d.vc(),t)&&(e=YP(t,42),hX(this.a.e,e.cd()),!0)},Pkt.Nc=function(){return UP(this.a.d.vc().Nc(),new qh(this.a))},y$(i_t,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),Uht(1098,1,{},qh),Pkt.Kb=function(t){return qW(this.a,YP(t,42))},y$(i_t,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),Uht(730,1,o_t,gF),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){var t;return t=YP(this.b.Pb(),42),this.a=YP(t.dd(),14),qW(this.c,t)},Pkt.Ob=function(){return this.b.Ob()},Pkt.Qb=function(){M3(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},y$(i_t,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),Uht(532,1970,h_t,Zk),Pkt.$b=function(){this.b.$b()},Pkt.Hc=function(t){return this.b._b(t)},Pkt.Jc=function(t){v$(t),this.b.wc(new df(t))},Pkt.dc=function(){return this.b.dc()},Pkt.Kc=function(){return new xm(this.b.vc().Kc())},Pkt.Mc=function(t){return!!this.b._b(t)&&(this.b.Bc(t),!0)},Pkt.gc=function(){return this.b.gc()},y$(i_t,"Maps/KeySet",532),Uht(318,532,h_t,ZI),Pkt.$b=function(){dF(new Ak(this,this.b.vc().Kc()))},Pkt.Ic=function(t){return this.b.ec().Ic(t)},Pkt.Fb=function(t){return this===t||U8(this.b.ec(),t)},Pkt.Hb=function(){return q5(this.b.ec())},Pkt.Kc=function(){return new Ak(this,this.b.vc().Kc())},Pkt.Mc=function(t){var e,n;return n=0,(e=YP(this.b.Bc(t),14))&&(n=e.gc(),e.$b(),this.a.d-=n),n>0},Pkt.Nc=function(){return this.b.ec().Nc()},y$(i_t,"AbstractMapBasedMultimap/KeySet",318),Uht(731,1,o_t,Ak),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return this.c.Ob()},Pkt.Pb=function(){return this.a=YP(this.c.Pb(),42),this.a.cd()},Pkt.Qb=function(){var t;M3(!!this.a),t=YP(this.a.dd(),14),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},y$(i_t,"AbstractMapBasedMultimap/KeySet/1",731),Uht(491,389,{83:1,161:1},uD),Pkt.bc=function(){return this.Sc()},Pkt.ec=function(){return this.Tc()},Pkt.Sc=function(){return new Ck(this.c,this.Uc())},Pkt.Tc=function(){return this.b||(this.b=this.Sc())},Pkt.Uc=function(){return YP(this.d,161)},y$(i_t,"AbstractMapBasedMultimap/SortedAsMap",491),Uht(542,491,f_t,lD),Pkt.bc=function(){return new Sk(this.a,YP(YP(this.d,161),171))},Pkt.Sc=function(){return new Sk(this.a,YP(YP(this.d,161),171))},Pkt.ec=function(){return YP(this.b||(this.b=new Sk(this.a,YP(YP(this.d,161),171))),271)},Pkt.Tc=function(){return YP(this.b||(this.b=new Sk(this.a,YP(YP(this.d,161),171))),271)},Pkt.Uc=function(){return YP(YP(this.d,161),171)},y$(i_t,"AbstractMapBasedMultimap/NavigableAsMap",542),Uht(490,318,d_t,Ck),Pkt.Nc=function(){return this.b.ec().Nc()},y$(i_t,"AbstractMapBasedMultimap/SortedKeySet",490),Uht(388,490,g_t,Sk),y$(i_t,"AbstractMapBasedMultimap/NavigableKeySet",388),Uht(541,28,u_t,uV),Pkt.Fc=function(t){var e,n;return T9(this),n=this.d.dc(),(e=this.d.Fc(t))&&(++this.f.d,n&&VD(this)),e},Pkt.Gc=function(t){var e,n,i;return!t.dc()&&(T9(this),i=this.d.gc(),(e=this.d.Gc(t))&&(n=this.d.gc(),this.f.d+=n-i,0==i&&VD(this)),e)},Pkt.$b=function(){var t;T9(this),0!=(t=this.d.gc())&&(this.d.$b(),this.f.d-=t,ij(this))},Pkt.Hc=function(t){return T9(this),this.d.Hc(t)},Pkt.Ic=function(t){return T9(this),this.d.Ic(t)},Pkt.Fb=function(t){return t===this||(T9(this),U8(this.d,t))},Pkt.Hb=function(){return T9(this),q5(this.d)},Pkt.Kc=function(){return T9(this),new JP(this)},Pkt.Mc=function(t){var e;return T9(this),(e=this.d.Mc(t))&&(--this.f.d,ij(this)),e},Pkt.gc=function(){return cA(this)},Pkt.Nc=function(){return T9(this),this.d.Nc()},Pkt.Ib=function(){return T9(this),k9(this.d)},y$(i_t,"AbstractMapBasedMultimap/WrappedCollection",541);var Gjt=eF(s_t,"List");Uht(728,541,{20:1,28:1,14:1,15:1},Aj),Pkt.ad=function(t){k2(this,t)},Pkt.Nc=function(){return T9(this),this.d.Nc()},Pkt.Vc=function(t,e){var n;T9(this),n=this.d.dc(),YP(this.d,15).Vc(t,e),++this.a.d,n&&VD(this)},Pkt.Wc=function(t,e){var n,i,r;return!e.dc()&&(T9(this),r=this.d.gc(),(n=YP(this.d,15).Wc(t,e))&&(i=this.d.gc(),this.a.d+=i-r,0==r&&VD(this)),n)},Pkt.Xb=function(t){return T9(this),YP(this.d,15).Xb(t)},Pkt.Xc=function(t){return T9(this),YP(this.d,15).Xc(t)},Pkt.Yc=function(){return T9(this),new UM(this)},Pkt.Zc=function(t){return T9(this),new Oq(this,t)},Pkt.$c=function(t){var e;return T9(this),e=YP(this.d,15).$c(t),--this.a.d,ij(this),e},Pkt._c=function(t,e){return T9(this),YP(this.d,15)._c(t,e)},Pkt.bd=function(t,e){return T9(this),pK(this.a,this.e,YP(this.d,15).bd(t,e),this.b?this.b:this)},y$(i_t,"AbstractMapBasedMultimap/WrappedList",728),Uht(1096,728,{20:1,28:1,14:1,15:1,54:1},EO),y$(i_t,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),Uht(620,1,o_t,JP),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return Jz(this),this.b.Ob()},Pkt.Pb=function(){return Jz(this),this.b.Pb()},Pkt.Qb=function(){hL(this)},y$(i_t,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),Uht(729,620,p_t,UM,Oq),Pkt.Qb=function(){hL(this)},Pkt.Rb=function(t){var e;e=0==cA(this.a),(Jz(this),YP(this.b,125)).Rb(t),++this.a.a.d,e&&VD(this.a)},Pkt.Sb=function(){return(Jz(this),YP(this.b,125)).Sb()},Pkt.Tb=function(){return(Jz(this),YP(this.b,125)).Tb()},Pkt.Ub=function(){return(Jz(this),YP(this.b,125)).Ub()},Pkt.Vb=function(){return(Jz(this),YP(this.b,125)).Vb()},Pkt.Wb=function(t){(Jz(this),YP(this.b,125)).Wb(t)},y$(i_t,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),Uht(727,541,d_t,pD),Pkt.Nc=function(){return T9(this),this.d.Nc()},y$(i_t,"AbstractMapBasedMultimap/WrappedSortedSet",727),Uht(1095,727,g_t,kM),y$(i_t,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),Uht(1094,541,h_t,bD),Pkt.Nc=function(){return T9(this),this.d.Nc()},y$(i_t,"AbstractMapBasedMultimap/WrappedSet",1094),Uht(1103,1,{},s),Pkt.Kb=function(t){return function(t){var e;return e=t.cd(),UP(YP(t.dd(),14).Nc(),new Hh(e))}(YP(t,42))},y$(i_t,"AbstractMapBasedMultimap/lambda$1$Type",1103),Uht(1102,1,{},Hh),Pkt.Kb=function(t){return new Uk(this.a,t)},y$(i_t,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Yjt,Kjt,Wjt,Xjt,Vjt=eF(s_t,"Map/Entry");Uht(345,1,b_t),Pkt.Fb=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),cz(this.cd(),e.cd())&&cz(this.dd(),e.dd()))},Pkt.Hb=function(){var t,e;return t=this.cd(),e=this.dd(),(null==t?0:q5(t))^(null==e?0:q5(e))},Pkt.ed=function(t){throw ow(new Lw)},Pkt.Ib=function(){return this.cd()+"="+this.dd()},y$(i_t,w_t,345),Uht(1988,28,u_t),Pkt.$b=function(){this.fd().$b()},Pkt.Hc=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),function(t,e,n){var i;return!!(i=YP(t.Zb().xc(e),14))&&i.Hc(n)}(this.fd(),e.cd(),e.dd()))},Pkt.Mc=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),bY(this.fd(),e.cd(),e.dd()))},Pkt.gc=function(){return this.fd().d},y$(i_t,"Multimaps/Entries",1988),Uht(733,1988,u_t,Uh),Pkt.Kc=function(){return this.a.kc()},Pkt.fd=function(){return this.a},Pkt.Nc=function(){return this.a.lc()},y$(i_t,"AbstractMultimap/Entries",733),Uht(734,733,h_t,Zy),Pkt.Nc=function(){return this.a.lc()},Pkt.Fb=function(t){return Pct(this,t)},Pkt.Hb=function(){return E2(this)},y$(i_t,"AbstractMultimap/EntrySet",734),Uht(735,28,u_t,Gh),Pkt.$b=function(){this.a.$b()},Pkt.Hc=function(t){return function(t,e){var n;for(n=t.Zb().Cc().Kc();n.Ob();)if(YP(n.Pb(),14).Hc(e))return!0;return!1}(this.a,t)},Pkt.Kc=function(){return this.a.nc()},Pkt.gc=function(){return this.a.d},Pkt.Nc=function(){return this.a.oc()},y$(i_t,"AbstractMultimap/Values",735),Uht(1989,28,{835:1,20:1,28:1,14:1}),Pkt.Jc=function(t){v$(t),Qz(this).Jc(new ff(t))},Pkt.Nc=function(){var t;return cst(t=Qz(this).Nc(),new v,64|1296&t.qd(),this.a.d)},Pkt.Fc=function(t){return yv(),!0},Pkt.Gc=function(t){return v$(this),v$(t),EI(t,543)?PY(YP(t,835)):!t.dc()&&RZ(this,t.Kc())},Pkt.Hc=function(t){var e;return((e=YP(M8(Gq(this.a),t),14))?e.gc():0)>0},Pkt.Fb=function(t){return function(t,e){var n,i,r;if(e===t)return!0;if(EI(e,543)){if(r=YP(e,835),t.a.d!=r.a.d||Qz(t).gc()!=Qz(r).gc())return!1;for(i=Qz(r).Kc();i.Ob();)if(vG(t,(n=YP(i.Pb(),416)).a.cd())!=YP(n.a.dd(),14).gc())return!1;return!0}return!1}(this,t)},Pkt.Hb=function(){return q5(Qz(this))},Pkt.dc=function(){return Qz(this).dc()},Pkt.Mc=function(t){return Llt(this,t,1)>0},Pkt.Ib=function(){return k9(Qz(this))},y$(i_t,"AbstractMultiset",1989),Uht(1991,1970,h_t),Pkt.$b=function(){f0(this.a.a)},Pkt.Hc=function(t){var e;return!(!EI(t,492)||(e=YP(t,416),YP(e.a.dd(),14).gc()<=0||vG(this.a,e.a.cd())!=YP(e.a.dd(),14).gc()))},Pkt.Mc=function(t){var e,n,i;return!(!EI(t,492)||(n=YP(t,416),e=n.a.cd(),i=YP(n.a.dd(),14).gc(),0==i))&&function(t,e,n){var i,r,a;return l0(n,"oldCount"),l0(0,"newCount"),((i=YP(M8(Gq(t.a),e),14))?i.gc():0)==n&&(l0(0,"count"),(a=-((r=YP(M8(Gq(t.a),e),14))?r.gc():0))>0?yv():a<0&&Llt(t,e,-a),!0)}(this.a,e,i)},y$(i_t,"Multisets/EntrySet",1991),Uht(1109,1991,h_t,Yh),Pkt.Kc=function(){return new _m(Nj(Gq(this.a.a)).Kc())},Pkt.gc=function(){return Gq(this.a.a).gc()},y$(i_t,"AbstractMultiset/EntrySet",1109),Uht(619,726,a_t),Pkt.hc=function(){return this.gd()},Pkt.jc=function(){return this.hd()},Pkt.cc=function(t){return this.jd(t)},Pkt.fc=function(t){return this.kd(t)},Pkt.Zb=function(){return this.f||(this.f=this.ac())},Pkt.hd=function(){return qq(),qq(),y$t},Pkt.Fb=function(t){return a6(this,t)},Pkt.jd=function(t){return YP(DX(this,t),21)},Pkt.kd=function(t){return YP(r8(this,t),21)},Pkt.mc=function(t){return qq(),new Iv(YP(t,21))},Pkt.pc=function(t,e){return new bD(this,t,YP(e,21))},y$(i_t,"AbstractSetMultimap",619),Uht(1657,619,a_t),Pkt.hc=function(){return new Gx(this.b)},Pkt.gd=function(){return new Gx(this.b)},Pkt.jc=function(){return A$(new Gx(this.b))},Pkt.hd=function(){return A$(new Gx(this.b))},Pkt.cc=function(t){return YP(YP(DX(this,t),21),84)},Pkt.jd=function(t){return YP(YP(DX(this,t),21),84)},Pkt.fc=function(t){return YP(YP(r8(this,t),21),84)},Pkt.kd=function(t){return YP(YP(r8(this,t),21),84)},Pkt.mc=function(t){return EI(t,271)?A$(YP(t,271)):(qq(),new EL(YP(t,84)))},Pkt.Zb=function(){return this.f||(this.f=EI(this.c,171)?new lD(this,YP(this.c,171)):EI(this.c,161)?new uD(this,YP(this.c,161)):new Hk(this,this.c))},Pkt.pc=function(t,e){return EI(e,271)?new kM(this,t,YP(e,271)):new pD(this,t,YP(e,84))},y$(i_t,"AbstractSortedSetMultimap",1657),Uht(1658,1657,a_t),Pkt.Zb=function(){return YP(YP(this.f||(this.f=EI(this.c,171)?new lD(this,YP(this.c,171)):EI(this.c,161)?new uD(this,YP(this.c,161)):new Hk(this,this.c)),161),171)},Pkt.ec=function(){return YP(YP(this.i||(this.i=EI(this.c,171)?new Sk(this,YP(this.c,171)):EI(this.c,161)?new Ck(this,YP(this.c,161)):new ZI(this,this.c)),84),271)},Pkt.bc=function(){return EI(this.c,171)?new Sk(this,YP(this.c,171)):EI(this.c,161)?new Ck(this,YP(this.c,161)):new ZI(this,this.c)},y$(i_t,"AbstractSortedKeySortedSetMultimap",1658),Uht(2010,1,{1947:1}),Pkt.Fb=function(t){return function(t,e){var n;return e===t||!!EI(e,664)&&(n=YP(e,1947),iet(t.g||(t.g=new Kh(t)),n.g||(n.g=new Kh(n))))}(this,t)},Pkt.Hb=function(){return q4(this.g||(this.g=new Kh(this)))},Pkt.Ib=function(){return Pot(this.f||(this.f=new nL(this)))},y$(i_t,"AbstractTable",2010),Uht(665,l_t,h_t,Kh),Pkt.$b=function(){mv()},Pkt.Hc=function(t){var e,n;return!!EI(t,468)&&(e=YP(t,682),!!(n=YP(M8(k$(this.a),iA(e.c.e,e.b)),83))&&I8(n.vc(),new Uk(iA(e.c.c,e.a),sV(e.c,e.b,e.a))))},Pkt.Kc=function(){return new JI(t=this.a,t.e.Hd().gc()*t.c.Hd().gc());var t},Pkt.Mc=function(t){var e,n;return!!EI(t,468)&&(e=YP(t,682),!!(n=YP(M8(k$(this.a),iA(e.c.e,e.b)),83))&&function(t,e){v$(t);try{return t.Mc(e)}catch(t){if(EI(t=b4(t),205)||EI(t,173))return!1;throw ow(t)}}(n.vc(),new Uk(iA(e.c.c,e.a),sV(e.c,e.b,e.a))))},Pkt.gc=function(){return TF(this.a)},Pkt.Nc=function(){return aF((t=this.a).e.Hd().gc()*t.c.Hd().gc(),273,new jh(t));var t},y$(i_t,"AbstractTable/CellSet",665),Uht(1928,28,u_t,Wh),Pkt.$b=function(){mv()},Pkt.Hc=function(t){return function(t,e){var n,i,r,a,o,s,c;for(s=0,c=(o=t.a).length;s=0?"+":"")+(i/60|0),n=YA(e.Math.abs(i)%60),(Tst(),_$t)[this.q.getDay()]+" "+E$t[this.q.getMonth()]+" "+YA(this.q.getDate())+" "+YA(this.q.getHours())+":"+YA(this.q.getMinutes())+":"+YA(this.q.getSeconds())+" GMT"+t+n+" "+this.q.getFullYear()};var bRt,wRt,yRt,mRt,vRt,xRt,kRt,_Rt,ERt,TRt=y$(s_t,"Date",199);Uht(1915,199,NEt,mat),Pkt.a=!1,Pkt.b=0,Pkt.c=0,Pkt.d=0,Pkt.e=0,Pkt.f=0,Pkt.g=!1,Pkt.i=0,Pkt.j=0,Pkt.k=0,Pkt.n=0,Pkt.o=0,Pkt.p=0,y$("com.google.gwt.i18n.shared.impl","DateRecord",1915),Uht(1966,1,{}),Pkt.fe=function(){return null},Pkt.ge=function(){return null},Pkt.he=function(){return null},Pkt.ie=function(){return null},Pkt.je=function(){return null},y$(PEt,"JSONValue",1966),Uht(216,1966,{216:1},_f,mf),Pkt.Fb=function(t){return!!EI(t,216)&&YG(this.a,YP(t,216).a)},Pkt.ee=function(){return sw},Pkt.Hb=function(){return rH(this.a)},Pkt.fe=function(){return this},Pkt.Ib=function(){var t,e,n;for(n=new xL("["),e=0,t=this.a.length;e0&&(n.a+=","),gA(n,HZ(this,e));return n.a+="]",n.a},y$(PEt,"JSONArray",216),Uht(483,1966,{483:1},vf),Pkt.ee=function(){return cw},Pkt.ge=function(){return this},Pkt.Ib=function(){return mL(),""+this.a},Pkt.a=!1,y$(PEt,"JSONBoolean",483),Uht(985,60,Q_t,Tm),y$(PEt,"JSONException",985),Uht(1023,1966,{},y),Pkt.ee=function(){return dw},Pkt.Ib=function(){return e_t},y$(PEt,"JSONNull",1023),Uht(258,1966,{258:1},xf),Pkt.Fb=function(t){return!!EI(t,258)&&this.a==YP(t,258).a},Pkt.ee=function(){return uw},Pkt.Hb=function(){return WA(this.a)},Pkt.he=function(){return this},Pkt.Ib=function(){return this.a+""},Pkt.a=0,y$(PEt,"JSONNumber",258),Uht(183,1966,{183:1},Cm,kf),Pkt.Fb=function(t){return!!EI(t,183)&&YG(this.a,YP(t,183).a)},Pkt.ee=function(){return lw},Pkt.Hb=function(){return rH(this.a)},Pkt.ie=function(){return this},Pkt.Ib=function(){var t,e,n,i,r,a;for(a=new xL("{"),t=!0,i=0,r=(n=o2(this,HV(XRt,m_t,2,0,6,1))).length;i=0?":"+this.c:"")+")"},Pkt.c=0;var WRt=y$(Kkt,"StackTraceElement",310);$kt={3:1,475:1,35:1,2:1};var XRt=y$(Kkt,J_t,2);Uht(107,418,{475:1},Tv,Cv,vL),y$(Kkt,"StringBuffer",107),Uht(100,418,{475:1},Sv,Av,xL),y$(Kkt,"StringBuilder",100),Uht(687,73,UEt,Mv),y$(Kkt,"StringIndexOutOfBoundsException",687),Uht(2043,1,{}),Uht(844,1,{},P),Pkt.Kb=function(t){return YP(t,78).e},y$(Kkt,"Throwable/lambda$0$Type",844),Uht(41,60,{3:1,102:1,60:1,78:1,41:1},Lw,av),y$(Kkt,"UnsupportedOperationException",41),Uht(240,236,{3:1,35:1,236:1,240:1},KZ,Ux),Pkt.wd=function(t){return _wt(this,YP(t,240))},Pkt.ke=function(){return fct(Dmt(this))},Pkt.Fb=function(t){var e;return this===t||!!EI(t,240)&&(e=YP(t,240),this.e==e.e&&0==_wt(this,e))},Pkt.Hb=function(){var t;return 0!=this.b?this.b:this.a<54?(t=I3(this.f),this.b=HF(jG(t,-1)),this.b=33*this.b+HF(jG($j(t,32),-1)),this.b=17*this.b+nU(this.e),this.b):(this.b=17*s8(this.c)+nU(this.e),this.b)},Pkt.Ib=function(){return Dmt(this)},Pkt.a=0,Pkt.b=0,Pkt.d=0,Pkt.e=0,Pkt.f=0;var VRt,QRt,ZRt,JRt,t$t,e$t,n$t,i$t,r$t=y$("java.math","BigDecimal",240);Uht(91,236,{3:1,35:1,236:1,91:1},wnt,cV,ER,fot,vet,_M),Pkt.wd=function(t){return eet(this,YP(t,91))},Pkt.ke=function(){return fct(fkt(this,0))},Pkt.Fb=function(t){return F9(this,t)},Pkt.Hb=function(){return s8(this)},Pkt.Ib=function(){return fkt(this,0)},Pkt.b=-2,Pkt.c=0,Pkt.d=0,Pkt.e=0;var a$t,o$t,s$t,c$t,u$t,l$t,h$t,f$t,d$t,g$t,p$t=y$("java.math","BigInteger",91);Uht(488,1967,c_t),Pkt.$b=function(){zR(this)},Pkt._b=function(t){return kR(this,t)},Pkt.uc=function(t){return d6(this,t,this.g)||d6(this,t,this.f)},Pkt.vc=function(){return new Kf(this)},Pkt.xc=function(t){return B$(this,t)},Pkt.zc=function(t,e){return Iz(this,t,e)},Pkt.Bc=function(t){return RX(this,t)},Pkt.gc=function(){return o_(this)},y$(s_t,"AbstractHashMap",488),Uht(261,l_t,h_t,Kf),Pkt.$b=function(){this.a.$b()},Pkt.Hc=function(t){return zY(this,t)},Pkt.Kc=function(){return new X5(this.a)},Pkt.Mc=function(t){var e;return!!zY(this,t)&&(e=YP(t,42).cd(),this.a.Bc(e),!0)},Pkt.gc=function(){return this.a.gc()},y$(s_t,"AbstractHashMap/EntrySet",261),Uht(262,1,o_t,X5),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return i1(this)},Pkt.Ob=function(){return this.b},Pkt.Qb=function(){nQ(this)},Pkt.b=!1,y$(s_t,"AbstractHashMap/EntrySetIterator",262),Uht(417,1,o_t,Yf),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return CE(this)},Pkt.Pb=function(){return Pq(this)},Pkt.Qb=function(){az(this)},Pkt.b=0,Pkt.c=-1,y$(s_t,"AbstractList/IteratorImpl",417),Uht(96,417,p_t,YY),Pkt.Qb=function(){az(this)},Pkt.Rb=function(t){WD(this,t)},Pkt.Sb=function(){return this.b>0},Pkt.Tb=function(){return this.b},Pkt.Ub=function(){return xO(this.b>0),this.a.Xb(this.c=--this.b)},Pkt.Vb=function(){return this.b-1},Pkt.Wb=function(t){vO(-1!=this.c),this.a._c(this.c,t)},y$(s_t,"AbstractList/ListIteratorImpl",96),Uht(219,52,H_t,EG),Pkt.Vc=function(t,e){QU(t,this.b),this.c.Vc(this.a+t,e),++this.b},Pkt.Xb=function(t){return CG(t,this.b),this.c.Xb(this.a+t)},Pkt.$c=function(t){var e;return CG(t,this.b),e=this.c.$c(this.a+t),--this.b,e},Pkt._c=function(t,e){return CG(t,this.b),this.c._c(this.a+t,e)},Pkt.gc=function(){return this.b},Pkt.a=0,Pkt.b=0,y$(s_t,"AbstractList/SubList",219),Uht(384,l_t,h_t,Wf),Pkt.$b=function(){this.a.$b()},Pkt.Hc=function(t){return this.a._b(t)},Pkt.Kc=function(){return new Xf(this.a.vc().Kc())},Pkt.Mc=function(t){return!!this.a._b(t)&&(this.a.Bc(t),!0)},Pkt.gc=function(){return this.a.gc()},y$(s_t,"AbstractMap/1",384),Uht(691,1,o_t,Xf),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return this.a.Ob()},Pkt.Pb=function(){return YP(this.a.Pb(),42).cd()},Pkt.Qb=function(){this.a.Qb()},y$(s_t,"AbstractMap/1/1",691),Uht(226,28,u_t,Vf),Pkt.$b=function(){this.a.$b()},Pkt.Hc=function(t){return this.a.uc(t)},Pkt.Kc=function(){return new rd(this.a.vc().Kc())},Pkt.gc=function(){return this.a.gc()},y$(s_t,"AbstractMap/2",226),Uht(294,1,o_t,rd),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return this.a.Ob()},Pkt.Pb=function(){return YP(this.a.Pb(),42).dd()},Pkt.Qb=function(){this.a.Qb()},y$(s_t,"AbstractMap/2/1",294),Uht(484,1,{484:1,42:1}),Pkt.Fb=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),jz(this.d,e.cd())&&jz(this.e,e.dd()))},Pkt.cd=function(){return this.d},Pkt.dd=function(){return this.e},Pkt.Hb=function(){return MM(this.d)^MM(this.e)},Pkt.ed=function(t){return YD(this,t)},Pkt.Ib=function(){return this.d+"="+this.e},y$(s_t,"AbstractMap/AbstractEntry",484),Uht(383,484,{484:1,383:1,42:1},zE),y$(s_t,"AbstractMap/SimpleEntry",383),Uht(1984,1,aTt),Pkt.Fb=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),jz(this.cd(),e.cd())&&jz(this.dd(),e.dd()))},Pkt.Hb=function(){return MM(this.cd())^MM(this.dd())},Pkt.Ib=function(){return this.cd()+"="+this.dd()},y$(s_t,w_t,1984),Uht(1992,1967,f_t),Pkt.tc=function(t){return fX(this,t)},Pkt._b=function(t){return qN(this,t)},Pkt.vc=function(){return new sd(this)},Pkt.xc=function(t){return ZS(J5(this,t))},Pkt.ec=function(){return new ad(this)},y$(s_t,"AbstractNavigableMap",1992),Uht(739,l_t,h_t,sd),Pkt.Hc=function(t){return EI(t,42)&&fX(this.b,YP(t,42))},Pkt.Kc=function(){return new hN(this.b)},Pkt.Mc=function(t){var e;return!!EI(t,42)&&(e=YP(t,42),QV(this.b,e))},Pkt.gc=function(){return this.b.c},y$(s_t,"AbstractNavigableMap/EntrySet",739),Uht(493,l_t,g_t,ad),Pkt.Nc=function(){return new DE(this)},Pkt.$b=function(){Am(this.a)},Pkt.Hc=function(t){return qN(this.a,t)},Pkt.Kc=function(){return new od(new hN(new zL(this.a).b))},Pkt.Mc=function(t){return!!qN(this.a,t)&&(aU(this.a,t),!0)},Pkt.gc=function(){return this.a.c},y$(s_t,"AbstractNavigableMap/NavigableKeySet",493),Uht(494,1,o_t,od),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return CE(this.a.a)},Pkt.Pb=function(){return gO(this.a).cd()},Pkt.Qb=function(){aP(this.a)},y$(s_t,"AbstractNavigableMap/NavigableKeySet/1",494),Uht(2004,28,u_t),Pkt.Fc=function(t){return YV(pst(this,t)),!0},Pkt.Gc=function(t){return dz(t),wB(t!=this,"Can't add a queue to itself"),_2(this,t)},Pkt.$b=function(){for(;null!=GZ(this););},y$(s_t,"AbstractQueue",2004),Uht(302,28,{4:1,20:1,28:1,14:1},Zb,MG),Pkt.Fc=function(t){return _K(this,t),!0},Pkt.$b=function(){QK(this)},Pkt.Hc=function(t){return y4(new Uz(this),t)},Pkt.dc=function(){return tv(this)},Pkt.Kc=function(){return new Uz(this)},Pkt.Mc=function(t){return function(t,e){return!!y4(t,e)&&(t0(t),!0)}(new Uz(this),t)},Pkt.gc=function(){return this.c-this.b&this.a.length-1},Pkt.Nc=function(){return new AG(this,272)},Pkt.Qc=function(t){var e;return e=this.c-this.b&this.a.length-1,t.lengthe&&L$(t,e,null),t},Pkt.b=0,Pkt.c=0,y$(s_t,"ArrayDeque",302),Uht(446,1,o_t,Uz),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return this.a!=this.b},Pkt.Pb=function(){return c8(this)},Pkt.Qb=function(){t0(this)},Pkt.a=0,Pkt.b=0,Pkt.c=-1,y$(s_t,"ArrayDeque/IteratorImpl",446),Uht(12,52,oTt,Jb,hV,rP),Pkt.Vc=function(t,e){WF(this,t,e)},Pkt.Fc=function(t){return QP(this,t)},Pkt.Wc=function(t,e){return B6(this,t,e)},Pkt.Gc=function(t){return v4(this,t)},Pkt.$b=function(){this.c=HV(Rjt,Zkt,1,0,5,1)},Pkt.Hc=function(t){return-1!=rZ(this,t,0)},Pkt.Jc=function(t){qJ(this,t)},Pkt.Xb=function(t){return mF(this,t)},Pkt.Xc=function(t){return rZ(this,t,0)},Pkt.dc=function(){return 0==this.c.length},Pkt.Kc=function(){return new gd(this)},Pkt.$c=function(t){return OX(this,t)},Pkt.Mc=function(t){return eZ(this,t)},Pkt.Ud=function(t,e){TG(this,t,e)},Pkt._c=function(t,e){return UW(this,t,e)},Pkt.gc=function(){return this.c.length},Pkt.ad=function(t){KM(this,t)},Pkt.Pc=function(){return uO(this)},Pkt.Qc=function(t){return Fet(this,t)};var b$t,w$t,y$t,m$t,v$t,x$t,k$t,_$t,E$t,T$t=y$(s_t,"ArrayList",12);Uht(7,1,o_t,gd),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return WM(this)},Pkt.Pb=function(){return BG(this)},Pkt.Qb=function(){$R(this)},Pkt.a=0,Pkt.b=-1,y$(s_t,"ArrayList/1",7),Uht(2013,e.Function,{},E),Pkt.te=function(t,e){return C7(t,e)},Uht(154,52,sTt,nv),Pkt.Hc=function(t){return-1!=h0(this,t)},Pkt.Jc=function(t){var e,n,i,r;for(dz(t),i=0,r=(n=this.a).length;i>>0).toString(16))},Pkt.f=0,Pkt.i=WEt;var pzt,bzt=y$(jTt,"CNode",57);Uht(814,1,{},iy),y$(jTt,"CNode/CNodeBuilder",814),Uht(1525,1,{},dt),Pkt.Oe=function(t,e){return 0},Pkt.Pe=function(t,e){return 0},y$(jTt,$Tt,1525),Uht(1790,1,{},gt),Pkt.Le=function(t){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b;for(l=KEt,r=new gd(t.a.b);r.an.d.c||n.d.c==r.d.c&&n.d.b0?t+this.n.d+this.n.a:0},Pkt.Se=function(){var t,n,i,r,a;if(a=0,this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].Se());else if(this.g)a=M9(this,sat(this,null,!0));else for(YJ(),i=0,r=(n=M4($v(eqt,1),q_t,232,0,[Qzt,Zzt,Jzt])).length;i0?a+this.n.b+this.n.c:0},Pkt.Te=function(){var t,e,n,i,r;if(this.g)for(t=sat(this,null,!1),YJ(),i=0,r=(n=M4($v(eqt,1),q_t,232,0,[Qzt,Zzt,Jzt])).length;i0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=e.Math.max(0,i),this.c.d=n.d+t.d+(this.c.a-i)/2,r[1]=e.Math.max(r[1],i),mX(this,Zzt,n.d+t.d+r[0]-(r[1]-i)/2,r)},Pkt.b=null,Pkt.d=0,Pkt.e=!1,Pkt.f=!1,Pkt.g=!1;var nqt=0,iqt=0;y$(hCt,"GridContainerCell",1473),Uht(461,22,{3:1,35:1,22:1,461:1},rT);var rqt,aqt,oqt,sqt,cqt=z1(hCt,"HorizontalLabelAlignment",461,Jjt,(function(){return PQ(),M4($v(cqt,1),q_t,461,0,[aqt,rqt,oqt])}),(function(t){return PQ(),ZZ((dV(),sqt),t)}));Uht(306,212,{212:1,306:1},QH,OJ,jH),Pkt.Re=function(){return qB(this)},Pkt.Se=function(){return HB(this)},Pkt.a=0,Pkt.c=!1;var uqt=y$(hCt,"LabelCell",306);Uht(244,326,{212:1,326:1,244:1},xet),Pkt.Re=function(){return Olt(this)},Pkt.Se=function(){return Dlt(this)},Pkt.Te=function(){tyt(this)},Pkt.Ue=function(){ayt(this)},Pkt.b=0,Pkt.c=0,Pkt.d=!1,y$(hCt,"StripContainerCell",244),Uht(1626,1,Y_t,xt),Pkt.Mb=function(t){return!!(e=YP(t,212))&&e.k;var e},y$(hCt,"StripContainerCell/lambda$0$Type",1626),Uht(1627,1,{},kt),Pkt.Fe=function(t){return YP(t,212).Se()},y$(hCt,"StripContainerCell/lambda$1$Type",1627),Uht(1628,1,Y_t,_t),Pkt.Mb=function(t){return!!(e=YP(t,212))&&e.j;var e},y$(hCt,"StripContainerCell/lambda$2$Type",1628),Uht(1629,1,{},Et),Pkt.Fe=function(t){return YP(t,212).Re()},y$(hCt,"StripContainerCell/lambda$3$Type",1629),Uht(462,22,{3:1,35:1,22:1,462:1},aT);var lqt,hqt,fqt,dqt,gqt=z1(hCt,"VerticalLabelAlignment",462,Jjt,(function(){return EZ(),M4($v(gqt,1),q_t,462,0,[fqt,hqt,lqt])}),(function(t){return EZ(),ZZ((gV(),dqt),t)}));Uht(789,1,{},dxt),Pkt.c=0,Pkt.d=0,Pkt.k=0,Pkt.s=0,Pkt.t=0,Pkt.v=!1,Pkt.w=0,Pkt.D=!1,y$(mCt,"NodeContext",789),Uht(1471,1,PTt,Tt),Pkt.ue=function(t,e){return XA(YP(t,61),YP(e,61))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(mCt,"NodeContext/0methodref$comparePortSides$Type",1471),Uht(1472,1,PTt,Ct),Pkt.ue=function(t,e){return function(t,e){var n;if(0!=(n=XA(t.b.Hf(),e.b.Hf())))return n;switch(t.b.Hf().g){case 1:case 2:return QM(t.b.sf(),e.b.sf());case 3:case 4:return QM(e.b.sf(),t.b.sf())}return 0}(YP(t,111),YP(e,111))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(mCt,"NodeContext/1methodref$comparePortContexts$Type",1472),Uht(159,22,{3:1,35:1,22:1,159:1},$2);var pqt,bqt,wqt,yqt,mqt,vqt,xqt,kqt,_qt,Eqt,Tqt,Cqt,Sqt,Aqt,Mqt,Iqt,Lqt,Oqt,Dqt,Nqt,Pqt,Bqt,Fqt,jqt,Rqt,$qt=z1(mCt,"NodeLabelLocation",159,Jjt,qet,(function(t){return Mkt(),ZZ((AA(),Fqt),t)}));Uht(111,1,{111:1},fht),Pkt.a=!1,y$(mCt,"PortContext",111),Uht(1476,1,k_t,St),Pkt.td=function(t){rk(YP(t,306))},y$(kCt,_Ct,1476),Uht(1477,1,Y_t,At),Pkt.Mb=function(t){return!!YP(t,111).c},y$(kCt,ECt,1477),Uht(1478,1,k_t,Mt),Pkt.td=function(t){rk(YP(t,111).c)},y$(kCt,"LabelPlacer/lambda$2$Type",1478),Uht(1475,1,k_t,Lt),Pkt.td=function(t){var e;kD(),(e=YP(t,111)).b.tf(e.e)},y$(kCt,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),Uht(790,1,k_t,bP),Pkt.td=function(t){oE(this.b,this.c,this.a,YP(t,181))},Pkt.a=!1,Pkt.c=!1,y$(kCt,"NodeLabelCellCreator/lambda$0$Type",790),Uht(1474,1,k_t,Wd),Pkt.td=function(t){!function(t,e){Bct(t.c,e)}(this.a,YP(t,181))},y$(kCt,"PortContextCreator/lambda$0$Type",1474),Uht(1829,1,{},Ot),y$(CCt,"GreedyRectangleStripOverlapRemover",1829),Uht(1830,1,PTt,It),Pkt.ue=function(t,e){return function(t,e){return C7(t.c.d,e.c.d)}(YP(t,222),YP(e,222))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(CCt,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),Uht(1786,1,{},cy),Pkt.a=5,Pkt.e=0,y$(CCt,"RectangleStripOverlapRemover",1786),Uht(1787,1,PTt,Nt),Pkt.ue=function(t,e){return function(t,e){return C7(t.c.c,e.c.c)}(YP(t,222),YP(e,222))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(CCt,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),Uht(1789,1,PTt,Pt),Pkt.ue=function(t,e){return function(t,e){return C7(t.c.c+t.c.b,e.c.c+e.c.b)}(YP(t,222),YP(e,222))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(CCt,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),Uht(406,22,{3:1,35:1,22:1,406:1},oT);var zqt,qqt,Hqt,Uqt,Gqt,Yqt=z1(CCt,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Jjt,(function(){return V3(),M4($v(Yqt,1),q_t,406,0,[Uqt,zqt,qqt,Hqt])}),(function(t){return V3(),ZZ((RQ(),Gqt),t)}));Uht(222,1,{222:1},oj),y$(CCt,"RectangleStripOverlapRemover/RectangleNode",222),Uht(1788,1,k_t,Xd),Pkt.td=function(t){!function(t,e){var n,i;switch(i=e.c,n=e.a,t.b.g){case 0:n.d=t.e-i.a-i.d;break;case 1:n.d+=t.e;break;case 2:n.c=t.e-i.a-i.d;break;case 3:n.c=t.e+i.d}}(this.a,YP(t,222))},y$(CCt,"RectangleStripOverlapRemover/lambda$1$Type",1788),Uht(1304,1,PTt,Bt),Pkt.ue=function(t,e){return function(t,e){var n,i,r,a;return n=new Ft,1==(r=2==(r=(i=YP(pW(oq(new xF(null,new AG(t.f,16)),n),pZ(new V,new Q,new rt,new at,M4($v(ozt,1),q_t,132,0,[(_6(),rzt),izt]))),21)).gc())?1:0)&&aA(vtt(YP(pW(aq(i.Lc(),new jt),p3(pet(0),new nt)),162).a,2),0)&&(r=0),1==(a=2==(a=(i=YP(pW(oq(new xF(null,new AG(e.f,16)),n),pZ(new V,new Q,new rt,new at,M4($v(ozt,1),q_t,132,0,[rzt,izt]))),21)).gc())?1:0)&&aA(vtt(YP(pW(aq(i.Lc(),new Rt),p3(pet(0),new nt)),162).a,2),0)&&(a=0),r0?YR(t.a,e,n):YR(t.b,e,n)}(this,YP(t,46),YP(e,167))},y$(ACt,"SuccessorCombination",777),Uht(644,1,{},Yt),Pkt.Ce=function(t,n){var i;return function(t){var n,i,r,a,o;return i=a=YP(t.a,19).a,r=o=YP(t.b,19).a,n=e.Math.max(e.Math.abs(a),e.Math.abs(o)),a<=0&&a==o?(i=0,r=o-1):a==-n&&o!=n?(i=o,r=a,o>=0&&++i):(i=-o,r=a),new pS(u7(i),u7(r))}((i=YP(t,46),YP(n,167),i))},y$(ACt,"SuccessorJitter",644),Uht(643,1,{},Kt),Pkt.Ce=function(t,n){var i;return function(t){var n,i;if(n=YP(t.a,19).a,i=YP(t.b,19).a,n>=0){if(n==i)return new pS(u7(-n-1),u7(-n-1));if(n==-i)return new pS(u7(-n),u7(i+1))}return e.Math.abs(n)>e.Math.abs(i)?new pS(u7(-n),u7(n<0?i:i+1)):new pS(u7(n+1),u7(i))}((i=YP(t,46),YP(n,167),i))},y$(ACt,"SuccessorLineByLine",643),Uht(568,1,{},Wt),Pkt.Ce=function(t,e){var n;return function(t){var e,n,i,r;return e=i=YP(t.a,19).a,n=r=YP(t.b,19).a,0==i&&0==r?n-=1:-1==i&&r<=0?(e=0,n-=2):i<=0&&r>0?(e-=1,n-=1):i>=0&&r<0?(e+=1,n+=1):i>0&&r>=0?(e-=1,n+=1):(e+=1,n-=1),new pS(u7(e),u7(n))}((n=YP(t,46),YP(e,167),n))},y$(ACt,"SuccessorManhattan",568),Uht(1356,1,{},Xt),Pkt.Ce=function(t,n){var i;return function(t){var n,i,r;return i=YP(t.a,19).a,r=YP(t.b,19).a,i<(n=e.Math.max(e.Math.abs(i),e.Math.abs(r)))&&r==-n?new pS(u7(i+1),u7(r)):i==n&&r=-n&&r==n?new pS(u7(i-1),u7(r)):new pS(u7(i),u7(r-1))}((i=YP(t,46),YP(n,167),i))},y$(ACt,"SuccessorMaxNormWindingInMathPosSense",1356),Uht(400,1,{},Vd),Pkt.Ce=function(t,e){return YR(this,t,e)},Pkt.c=!1,Pkt.d=!1,Pkt.e=!1,Pkt.f=!1,y$(ACt,"SuccessorQuadrantsGeneric",400),Uht(1357,1,{},Vt),Pkt.Kb=function(t){return YP(t,324).a},y$(ACt,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),Uht(323,22,{3:1,35:1,22:1,323:1},JE),Pkt.a=!1;var Kqt,Wqt,Xqt,Vqt,Qqt,Zqt=z1(DCt,NCt,323,Jjt,(function(){return xnt(),M4($v(Zqt,1),q_t,323,0,[Wqt,Kqt,Xqt,Vqt])}),(function(t){return xnt(),ZZ(($Q(),Qqt),t)}));Uht(1298,1,{}),Pkt.Ib=function(){var t,e,n,i,r,a;for(n=" ",t=u7(0),r=0;r0&&S1(w,v*k),x>0&&A1(w,x*_);for(v3(t.b,new le),e=new Jb,s=new X5(new Kf(t.c).a);s.b;)i=YP((o=i1(s)).cd(),79),n=YP(o.dd(),395).a,r=Kgt(i,!1,!1),uyt(h=qot(Nst(i),Nct(r),n),r),(m=Pst(i))&&-1==rZ(e,m,0)&&(e.c[e.c.length]=m,Tq(m,(xO(0!=h.b),YP(h.a.a.c,8)),n));for(b=new X5(new Kf(t.d).a);b.b;)i=YP((p=i1(b)).cd(),79),n=YP(p.dd(),395).a,r=Kgt(i,!1,!1),h=qot(Fst(i),$5(Nct(r)),n),uyt(h=$5(h),r),(m=Bst(i))&&-1==rZ(e,m,0)&&(e.c[e.c.length]=m,Tq(m,(xO(0!=h.b),YP(h.c.b.c,8)),n))}(r),Cnt(t,xHt,this.b),Dct(e)},Pkt.a=0,y$(KCt,"DisCoLayoutProvider",1132),Uht(1244,1,{},ie),Pkt.c=!1,Pkt.e=0,Pkt.f=0,y$(KCt,"DisCoPolyominoCompactor",1244),Uht(561,1,{561:1},jF),Pkt.b=!0,y$(WCt,"DCComponent",561),Uht(394,22,{3:1,35:1,22:1,394:1},ZE),Pkt.a=!1;var aHt,oHt,sHt,cHt,uHt,lHt=z1(WCt,"DCDirection",394,Jjt,(function(){return knt(),M4($v(lHt,1),q_t,394,0,[oHt,aHt,sHt,cHt])}),(function(t){return knt(),ZZ((zQ(),uHt),t)}));Uht(266,134,{3:1,266:1,94:1,134:1},Zht),y$(WCt,"DCElement",266),Uht(395,1,{395:1},Bit),Pkt.c=0,y$(WCt,"DCExtension",395),Uht(755,134,zCt,yx),y$(WCt,"DCGraph",755),Uht(481,22,{3:1,35:1,22:1,481:1},_O);var hHt,fHt,dHt,gHt,pHt,bHt,wHt,yHt,mHt,vHt,xHt,kHt,_Ht,EHt,THt,CHt,SHt,AHt,MHt,IHt,LHt,OHt,DHt=z1(XCt,VCt,481,Jjt,(function(){return F_(),M4($v(DHt,1),q_t,481,0,[hHt])}),(function(t){return F_(),ZZ((gK(),fHt),t)}));Uht(854,1,oCt,Fl),Pkt.Qe=function(t){b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,QCt),eSt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),pHt),(cut(),_9t)),DHt),Y7((Get(),w9t))))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,ZCt),eSt),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),S9t),XRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,JCt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),C9t),Rjt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,tSt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),C9t),Rjt),Y7(w9t)))),Gyt((new jl,t))},y$(XCt,"DisCoMetaDataProvider",854),Uht(998,1,oCt,jl),Pkt.Qe=function(t){Gyt(t)},y$(XCt,"DisCoOptions",998),Uht(999,1,{},re),Pkt.$e=function(){return new ne},Pkt._e=function(t){},y$(XCt,"DisCoOptions/DiscoFactory",999),Uht(562,167,{321:1,167:1,562:1},Vft),Pkt.a=0,Pkt.b=0,Pkt.c=0,Pkt.d=0,y$("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),Uht(1268,1,Y_t,ae),Pkt.Mb=function(t){return SA(t)},y$(sSt,"ElkGraphComponentsProcessor/lambda$0$Type",1268),Uht(1269,1,{},oe),Pkt.Kb=function(t){return zq(),Nst(YP(t,79))},y$(sSt,"ElkGraphComponentsProcessor/lambda$1$Type",1269),Uht(1270,1,Y_t,se),Pkt.Mb=function(t){return e=YP(t,79),zq(),Nst(e)==kU(Fst(e));var e},y$(sSt,"ElkGraphComponentsProcessor/lambda$2$Type",1270),Uht(1271,1,{},ce),Pkt.Kb=function(t){return zq(),Fst(YP(t,79))},y$(sSt,"ElkGraphComponentsProcessor/lambda$3$Type",1271),Uht(1272,1,Y_t,ue),Pkt.Mb=function(t){return e=YP(t,79),zq(),Fst(e)==kU(Nst(e));var e},y$(sSt,"ElkGraphComponentsProcessor/lambda$4$Type",1272),Uht(1273,1,Y_t,Zd),Pkt.Mb=function(t){return function(t,e){return zq(),t==kU(Nst(e))||t==kU(Fst(e))}(this.a,YP(t,79))},y$(sSt,"ElkGraphComponentsProcessor/lambda$5$Type",1273),Uht(1274,1,{},Jd),Pkt.Kb=function(t){return function(t,e){return zq(),t==Nst(e)?Fst(e):Nst(e)}(this.a,YP(t,79))},y$(sSt,"ElkGraphComponentsProcessor/lambda$6$Type",1274),Uht(1241,1,{},ZK),Pkt.a=0,y$(sSt,"ElkGraphTransformer",1241),Uht(1242,1,{},le),Pkt.Od=function(t,e){!function(t,e,n){var i,r,a,o;t.a=n.b.d,EI(e,352)?(zW(a=Nct(r=Kgt(YP(e,79),!1,!1)),i=new tg(t)),uyt(a,r),null!=e.We((Ekt(),Bte))&&zW(YP(e.We(Bte),74),i)):((o=YP(e,470)).Hg(o.Dg()+t.a.a),o.Ig(o.Eg()+t.a.b))}(this,YP(t,160),YP(e,266))},y$(sSt,"ElkGraphTransformer/OffsetApplier",1242),Uht(1243,1,k_t,tg),Pkt.td=function(t){!function(t,e){SO(e,t.a.a.a,t.a.a.b)}(this,YP(t,8))},y$(sSt,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),Uht(753,1,{},he),y$(fSt,dSt,753),Uht(1232,1,PTt,fe),Pkt.ue=function(t,e){return function(t,e){var n,i,r;return 0==(n=YP(Sst(e,(Fpt(),aUt)),19).a-YP(Sst(t,aUt),19).a)?(i=pN(lI(YP(Sst(t,(u2(),dUt)),8)),YP(Sst(t,gUt),8)),r=pN(lI(YP(Sst(e,dUt),8)),YP(Sst(e,gUt),8)),C7(i.a*i.b,r.a*r.b)):n}(YP(t,231),YP(e,231))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(fSt,gSt,1232),Uht(740,209,UCt,Jw),Pkt.Ze=function(t,e){udt(this,t,e)},y$(fSt,"ForceLayoutProvider",740),Uht(357,134,{3:1,357:1,94:1,134:1}),y$(pSt,"FParticle",357),Uht(559,357,{3:1,559:1,357:1,94:1,134:1},l$),Pkt.Ib=function(){var t;return this.a?(t=rZ(this.a.a,this,0))>=0?"b"+t+"["+GW(this.a)+"]":"b["+GW(this.a)+"]":"b_"+NL(this)},y$(pSt,"FBendpoint",559),Uht(282,134,{3:1,282:1,94:1,134:1},JD),Pkt.Ib=function(){return GW(this)},y$(pSt,"FEdge",282),Uht(231,134,{3:1,231:1,94:1,134:1},zX);var NHt,PHt,BHt,FHt,jHt,RHt,$Ht,zHt,qHt=y$(pSt,"FGraph",231);Uht(447,357,{3:1,447:1,357:1,94:1,134:1},cW),Pkt.Ib=function(){return null==this.b||0==this.b.length?"l["+GW(this.a)+"]":"l_"+this.b},y$(pSt,"FLabel",447),Uht(144,357,{3:1,144:1,357:1,94:1,134:1},R$),Pkt.Ib=function(){return GG(this)},Pkt.b=0,y$(pSt,"FNode",144),Uht(2003,1,{}),Pkt.bf=function(t){Dwt(this,t)},Pkt.cf=function(){Vit(this)},Pkt.d=0,y$(wSt,"AbstractForceModel",2003),Uht(631,2003,{631:1},K3),Pkt.af=function(t,n){var i,r,a,o;return plt(this.f,t,n),a=pN(lI(n.d),t.d),o=e.Math.sqrt(a.a*a.a+a.b*a.b),r=e.Math.max(0,o-oz(t.e)/2-oz(n.e)/2),DI(a,((i=N5(this.e,t,n))>0?-function(t,n){return t>0?e.Math.log(t/n):-100}(r,this.c)*i:function(t,e){return t>0?e/(t*t):100*e}(r,this.b)*YP(Sst(t,(Fpt(),aUt)),19).a)/o),a},Pkt.bf=function(t){Dwt(this,t),this.a=YP(Sst(t,(Fpt(),XHt)),19).a,this.c=Qm(oD(Sst(t,hUt))),this.b=Qm(oD(Sst(t,sUt)))},Pkt.df=function(t){return t0?e*e/t:e*e*100}(r=e.Math.max(0,s-oz(t.e)/2-oz(n.e)/2),this.a)*YP(Sst(t,(Fpt(),aUt)),19).a,(i=N5(this.e,t,n))>0&&(o-=function(t,e){return t*t/e}(r,this.a)*i),DI(a,o*this.b/s),a},Pkt.bf=function(t){var n,i,r,a,o,s,c;for(Dwt(this,t),this.b=Qm(oD(Sst(t,(Fpt(),fUt)))),this.c=this.b/YP(Sst(t,XHt),19).a,r=t.e.c.length,o=0,a=0,c=new gd(t.e);c.a0},Pkt.a=0,Pkt.b=0,Pkt.c=0,y$(wSt,"FruchtermanReingoldModel",632),Uht(849,1,oCt,$l),Pkt.Qe=function(t){b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ySt),""),"Force Model"),"Determines the model for force calculation."),BHt),(cut(),_9t)),PUt),Y7((Get(),w9t))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,mSt),""),"Iterations"),"The number of iterations on the force model."),u7(300)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,vSt),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),u7(0)),T9t),RRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,xSt),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),kSt),k9t),PRt),Y7(w9t)))),MY(t,xSt,ySt,zHt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,_St),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),k9t),PRt),Y7(w9t)))),MY(t,_St,ySt,jHt),vxt((new zl,t))},y$(ESt,"ForceMetaDataProvider",849),Uht(424,22,{3:1,35:1,22:1,424:1},sT);var HHt,UHt,GHt,YHt,KHt,WHt,XHt,VHt,QHt,ZHt,JHt,tUt,eUt,nUt,iUt,rUt,aUt,oUt,sUt,cUt,uUt,lUt,hUt,fUt,dUt,gUt,pUt,bUt,wUt,yUt,mUt,vUt,xUt,kUt,_Ut,EUt,TUt,CUt,SUt,AUt,MUt,IUt,LUt,OUt,DUt,NUt,PUt=z1(ESt,"ForceModelStrategy",424,Jjt,(function(){return rJ(),M4($v(PUt,1),q_t,424,0,[HHt,UHt])}),(function(t){return rJ(),ZZ((mW(),GHt),t)}));Uht(988,1,oCt,zl),Pkt.Qe=function(t){vxt(t)},y$(ESt,"ForceOptions",988),Uht(989,1,{},de),Pkt.$e=function(){return new Jw},Pkt._e=function(t){},y$(ESt,"ForceOptions/ForceFactory",989),Uht(850,1,oCt,ql),Pkt.Qe=function(t){b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,USt),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(mL(),!1)),(cut(),x9t)),MRt),Y7((Get(),b9t))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,GSt),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),k9t),PRt),VF(w9t,M4($v(v9t,1),q_t,175,0,[g9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,YSt),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),mUt),_9t),HUt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,KSt),""),"Stress Epsilon"),"Termination criterion for the iterative process."),kSt),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,WSt),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),u7(Ykt)),T9t),RRt),Y7(w9t)))),Dvt((new Hl,t))},y$(ESt,"StressMetaDataProvider",850),Uht(992,1,oCt,Hl),Pkt.Qe=function(t){Dvt(t)},y$(ESt,"StressOptions",992),Uht(993,1,{},ge),Pkt.$e=function(){return new tN},Pkt._e=function(t){},y$(ESt,"StressOptions/StressFactory",993),Uht(1128,209,UCt,tN),Pkt.Ze=function(t,e){var n,i,r,a;for(tst(e,VSt,1),Vm(aD(yft(t,(Hrt(),SUt))))?Vm(aD(yft(t,DUt)))||JH(new Ud((hE(),new Hm(t)))):udt(new Jw,t,Y2(e,1)),i=c5(t),a=(n=iyt(this.a,i)).Kc();a.Ob();)!((r=YP(a.Pb(),231)).e.c.length<=1)&&(Smt(this.b,r),xft(this.b),qJ(r.d,new pe));Txt(i=Nxt(n)),Dct(e)},y$(ZSt,"StressLayoutProvider",1128),Uht(1129,1,k_t,pe),Pkt.td=function(t){Hyt(YP(t,447))},y$(ZSt,"StressLayoutProvider/lambda$0$Type",1129),Uht(990,1,{},jw),Pkt.c=0,Pkt.e=0,Pkt.g=0,y$(ZSt,"StressMajorization",990),Uht(379,22,{3:1,35:1,22:1,379:1},cT);var BUt,FUt,jUt,RUt,$Ut,zUt,qUt,HUt=z1(ZSt,"StressMajorization/Dimension",379,Jjt,(function(){return _Z(),M4($v(HUt,1),q_t,379,0,[FUt,BUt,jUt])}),(function(t){return _Z(),ZZ((bV(),RUt),t)}));Uht(991,1,PTt,eg),Pkt.ue=function(t,e){return function(t,e,n){return C7(t[e.b],t[n.b])}(this.a,YP(t,144),YP(e,144))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(ZSt,"StressMajorization/lambda$0$Type",991),Uht(1229,1,{},lY),y$(tAt,"ElkLayered",1229),Uht(1230,1,k_t,be),Pkt.td=function(t){!function(t){var e;if((e=YP(Sst(t,(hkt(),XJt)),314))==(E0(),wWt))throw ow(new uv("The hierarchy aware processor "+e+" in child node "+t+" is only allowed if the root node specifies the same hierarchical processor."))}(YP(t,37))},y$(tAt,"ElkLayered/lambda$0$Type",1230),Uht(1231,1,k_t,ng),Pkt.td=function(t){!function(t,e){s5(e,(hkt(),HJt),t)}(this.a,YP(t,37))},y$(tAt,"ElkLayered/lambda$1$Type",1231),Uht(1263,1,{},oI),y$(tAt,"GraphConfigurator",1263),Uht(759,1,k_t,ig),Pkt.td=function(t){tct(this.a,YP(t,10))},y$(tAt,"GraphConfigurator/lambda$0$Type",759),Uht(760,1,{},we),Pkt.Kb=function(t){return vat(),new xF(null,new AG(YP(t,29).a,16))},y$(tAt,"GraphConfigurator/lambda$1$Type",760),Uht(761,1,k_t,rg),Pkt.td=function(t){tct(this.a,YP(t,10))},y$(tAt,"GraphConfigurator/lambda$2$Type",761),Uht(1127,209,UCt,ey),Pkt.Ze=function(t,e){var n;n=Dyt(new ly,t),JS(yft(t,(hkt(),p1t)))===JS((E8(),Ene))?D9(this.a,n,e):rht(this.a,n,e),mxt(new Gl,n)},y$(tAt,"LayeredLayoutProvider",1127),Uht(356,22,{3:1,35:1,22:1,356:1},uT);var UUt,GUt,YUt,KUt,WUt,XUt,VUt,QUt,ZUt=z1(tAt,"LayeredPhases",356,Jjt,(function(){return Ast(),M4($v(ZUt,1),q_t,356,0,[UUt,GUt,YUt,KUt,WUt])}),(function(t){return Ast(),ZZ((dJ(),XUt),t)}));Uht(1651,1,{},g0),Pkt.i=0,y$(eAt,"ComponentsToCGraphTransformer",1651),Uht(1652,1,{},ye),Pkt.ef=function(t,n){return e.Math.min(null!=t.a?Qm(t.a):t.c.i,null!=n.a?Qm(n.a):n.c.i)},Pkt.ff=function(t,n){return e.Math.min(null!=t.a?Qm(t.a):t.c.i,null!=n.a?Qm(n.a):n.c.i)},y$(eAt,"ComponentsToCGraphTransformer/1",1652),Uht(81,1,{81:1}),Pkt.i=0,Pkt.k=!0,Pkt.o=WEt;var JUt,tGt,eGt=y$(nAt,"CNode",81);Uht(460,81,{460:1,81:1},$L,yet),Pkt.Ib=function(){return""},y$(eAt,"ComponentsToCGraphTransformer/CRectNode",460),Uht(1623,1,{},me),y$(eAt,"OneDimensionalComponentsCompaction",1623),Uht(1624,1,{},ve),Pkt.Kb=function(t){return e=YP(t,46),Z6(),mL(),0!=YP(e.a,81).d.e;var e},Pkt.Fb=function(t){return this===t},y$(eAt,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),Uht(1625,1,{},xe),Pkt.Kb=function(t){return e=YP(t,46),Z6(),mL(),!!(m9(YP(e.a,81).j,YP(e.b,103))||0!=YP(e.a,81).d.e&&m9(YP(e.a,81).j,YP(e.b,103)));var e},Pkt.Fb=function(t){return this===t},y$(eAt,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),Uht(1654,1,{},F$),y$(nAt,"CGraph",1654),Uht(189,1,{189:1},met),Pkt.b=0,Pkt.c=0,Pkt.e=0,Pkt.g=!0,Pkt.i=WEt,y$(nAt,"CGroup",189),Uht(1653,1,{},Te),Pkt.ef=function(t,n){return e.Math.max(null!=t.a?Qm(t.a):t.c.i,null!=n.a?Qm(n.a):n.c.i)},Pkt.ff=function(t,n){return e.Math.max(null!=t.a?Qm(t.a):t.c.i,null!=n.a?Qm(n.a):n.c.i)},y$(nAt,$Tt,1653),Uht(1655,1,{},tht),Pkt.d=!1;var nGt,iGt=y$(nAt,GTt,1655);Uht(1656,1,{},Ce),Pkt.Kb=function(t){return U_(),mL(),0!=YP(YP(t,46).a,81).d.e},Pkt.Fb=function(t){return this===t},y$(nAt,YTt,1656),Uht(823,1,{},hF),Pkt.a=!1,Pkt.b=!1,Pkt.c=!1,Pkt.d=!1,y$(nAt,KTt,823),Uht(1825,1,{},sj),y$(iAt,WTt,1825);var rGt=eF(rAt,FTt);Uht(1826,1,{369:1},pH),Pkt.Ke=function(t){!function(t,e){var n,i,r;e.a?(n$(t.b,e.b),t.a[e.b.i]=YP(BN(t.b,e.b),81),(n=YP(PN(t.b,e.b),81))&&(t.a[n.i]=e.b)):((i=YP(BN(t.b,e.b),81))&&i==t.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),(r=YP(PN(t.b,e.b),81))&&t.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),OL(t.b,e.b))}(this,YP(t,466))},y$(iAt,XTt,1826),Uht(1827,1,PTt,Se),Pkt.ue=function(t,e){return function(t,e){return C7(t.g.c+t.g.b/2,e.g.c+e.g.b/2)}(YP(t,81),YP(e,81))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(iAt,VTt,1827),Uht(466,1,{466:1},TT),Pkt.a=!1,y$(iAt,QTt,466),Uht(1828,1,PTt,Ae),Pkt.ue=function(t,e){return function(t,e){var n,i,r;if(i=t.b.g.d,t.a||(i+=t.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),0==(n=C7(i,r))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}(YP(t,466),YP(e,466))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(iAt,ZTt,1828),Uht(140,1,{140:1},MT,yB),Pkt.Fb=function(t){var e;return null!=t&&aGt==H5(t)&&(e=YP(t,140),jz(this.c,e.c)&&jz(this.d,e.d))},Pkt.Hb=function(){return j6(M4($v(Rjt,1),Zkt,1,5,[this.c,this.d]))},Pkt.Ib=function(){return"("+this.c+Vkt+this.d+(this.a?"cx":"")+this.b+")"},Pkt.a=!0,Pkt.c=0,Pkt.d=0;var aGt=y$(rAt,"Point",140);Uht(405,22,{3:1,35:1,22:1,405:1},lT);var oGt,sGt,cGt,uGt,lGt,hGt,fGt,dGt,gGt,pGt,bGt,wGt,yGt=z1(rAt,"Point/Quadrant",405,Jjt,(function(){return D4(),M4($v(yGt,1),q_t,405,0,[oGt,uGt,sGt,cGt])}),(function(t){return D4(),ZZ((jQ(),lGt),t)}));Uht(1642,1,{},ry),Pkt.b=null,Pkt.c=null,Pkt.d=null,Pkt.e=null,Pkt.f=null,y$(rAt,"RectilinearConvexHull",1642),Uht(574,1,{369:1},cnt),Pkt.Ke=function(t){!function(t,e){t.a.ue(e.d,t.b)>0&&(QP(t.c,new yB(e.c,e.d,t.d)),t.b=e.d)}(this,YP(t,140))},Pkt.b=0,y$(rAt,"RectilinearConvexHull/MaximalElementsEventHandler",574),Uht(1644,1,PTt,_e),Pkt.ue=function(t,e){return function(t,e){return G_(),C7((dz(t),t),(dz(e),e))}(oD(t),oD(e))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),Uht(1643,1,{369:1},MJ),Pkt.Ke=function(t){zdt(this,YP(t,140))},Pkt.a=0,Pkt.b=null,Pkt.c=null,Pkt.d=null,Pkt.e=null,y$(rAt,"RectilinearConvexHull/RectangleEventHandler",1643),Uht(1645,1,PTt,Ee),Pkt.ue=function(t,e){return function(t,e){return nJ(),t.c==e.c?C7(e.d,t.d):C7(t.c,e.c)}(YP(t,140),YP(e,140))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/lambda$0$Type",1645),Uht(1646,1,PTt,ke),Pkt.ue=function(t,e){return function(t,e){return nJ(),t.c==e.c?C7(t.d,e.d):C7(t.c,e.c)}(YP(t,140),YP(e,140))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/lambda$1$Type",1646),Uht(1647,1,PTt,Me),Pkt.ue=function(t,e){return function(t,e){return nJ(),t.c==e.c?C7(e.d,t.d):C7(e.c,t.c)}(YP(t,140),YP(e,140))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/lambda$2$Type",1647),Uht(1648,1,PTt,Ie),Pkt.ue=function(t,e){return function(t,e){return nJ(),t.c==e.c?C7(t.d,e.d):C7(e.c,t.c)}(YP(t,140),YP(e,140))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/lambda$3$Type",1648),Uht(1649,1,PTt,Le),Pkt.ue=function(t,e){return Ist(YP(t,140),YP(e,140))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(rAt,"RectilinearConvexHull/lambda$4$Type",1649),Uht(1650,1,{},XU),y$(rAt,"Scanline",1650),Uht(2005,1,{}),y$(aAt,"AbstractGraphPlacer",2005),Uht(325,1,{325:1},PO),Pkt.mf=function(t){return!!this.nf(t)&&(Ylt(this.b,YP(Sst(t,(Tkt(),JXt)),21),t),!0)},Pkt.nf=function(t){var e,n,i;for(e=YP(Sst(t,(Tkt(),JXt)),21),i=YP(DX(wGt,e),21).Kc();i.Ob();)if(n=YP(i.Pb(),21),!YP(DX(this.b,n),15).dc())return!1;return!0},y$(aAt,"ComponentGroup",325),Uht(765,2005,{},ay),Pkt.of=function(t){var e;for(e=new gd(this.a);e.ai?1:0}(YP(t,37),YP(e,37))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(aAt,"ComponentsProcessor/lambda$0$Type",1265),Uht(570,325,{325:1,570:1},QW),Pkt.mf=function(t){return t6(this,t)},Pkt.nf=function(t){return Bdt(this,t)},y$(aAt,"ModelOrderComponentGroup",570),Uht(1291,2005,{},Ne),Pkt.lf=function(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k;if(1!=t.gc()){if(t.dc())return n.a.c=HV(Rjt,Zkt,1,0,5,1),n.f.a=0,void(n.f.b=0);if(JS(Sst(n,(hkt(),NJt)))===JS((V8(),xGt))){for(u=t.Kc();u.Ob();){for(w=0,p=new gd((s=YP(u.Pb(),37)).a);p.ad&&(x=0,k+=f+a,f=0),ubt(s,x+(b=s.c).a,k+b.b),TA(b),i=e.Math.max(i,x+y.a),f=e.Math.max(f,y.b),x+=y.a+a;if(n.f.a=i,n.f.b=k+f,Vm(aD(Sst(o,LJt)))){for(ckt(r=new Oe,t,a),h=t.Kc();h.Ob();)gN(TA(YP(h.Pb(),37).c),r.e);gN(TA(n.f),r.a)}uQ(n,t)}else(m=YP(t.Xb(0),37))!=n&&(n.a.c=HV(Rjt,Zkt,1,0,5,1),Obt(n,m,0,0),n4(n,m),Fq(n.d,m.d),n.f.a=m.f.a,n.f.b=m.f.b)},y$(aAt,"SimpleRowGraphPlacer",1291),Uht(1292,1,PTt,Pe),Pkt.ue=function(t,e){return function(t,e){var n;return 0==(n=e.p-t.p)?C7(t.f.a*t.f.b,e.f.a*e.f.b):n}(YP(t,37),YP(e,37))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(aAt,"SimpleRowGraphPlacer/1",1292),Uht(1262,1,JTt,Be),Pkt.Lb=function(t){var e;return!!(e=YP(Sst(YP(t,243).b,(hkt(),E1t)),74))&&0!=e.b},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){var e;return!!(e=YP(Sst(YP(t,243).b,(hkt(),E1t)),74))&&0!=e.b},y$(uAt,"CompoundGraphPostprocessor/1",1262),Uht(1261,1,lAt,hy),Pkt.pf=function(t,e){Hnt(this,YP(t,37),e)},y$(uAt,"CompoundGraphPreprocessor",1261),Uht(441,1,{441:1},J8),Pkt.c=!1,y$(uAt,"CompoundGraphPreprocessor/ExternalPort",441),Uht(243,1,{243:1},wP),Pkt.Ib=function(){return lO(this.c)+":"+Nlt(this.b)},y$(uAt,"CrossHierarchyEdge",243),Uht(763,1,PTt,ag),Pkt.ue=function(t,e){return function(t,e,n){var i,r;return e.c==(r0(),V2t)&&n.c==X2t?-1:e.c==X2t&&n.c==V2t?1:(i=z6(e.a,t.a),r=z6(n.a,t.a),e.c==V2t?r-i:i-r)}(this,YP(t,243),YP(e,243))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(uAt,"CrossHierarchyEdgeComparator",763),Uht(299,134,{3:1,299:1,94:1,134:1}),Pkt.p=0,y$(hAt,"LGraphElement",299),Uht(17,299,{3:1,17:1,299:1,94:1,134:1},wH),Pkt.Ib=function(){return Nlt(this)};var CGt=y$(hAt,"LEdge",17);Uht(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},p0),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new gd(this.b)},Pkt.Ib=function(){return 0==this.b.c.length?"G-unlayered"+$st(this.a):0==this.a.c.length?"G-layered"+$st(this.b):"G[layerless"+$st(this.a)+", layers"+$st(this.b)+"]"};var SGt,AGt=y$(hAt,"LGraph",37);Uht(657,1,{}),Pkt.qf=function(){return this.e.n},Pkt.We=function(t){return Sst(this.e,t)},Pkt.rf=function(){return this.e.o},Pkt.sf=function(){return this.e.p},Pkt.Xe=function(t){return TO(this.e,t)},Pkt.tf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},Pkt.uf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},Pkt.vf=function(t){this.e.p=t},y$(hAt,"LGraphAdapters/AbstractLShapeAdapter",657),Uht(577,1,{839:1},og),Pkt.wf=function(){var t,e;if(!this.b)for(this.b=aO(this.a.b.c.length),e=new gd(this.a.b);e.a0&&o8((SG(e-1,t.length),t.charCodeAt(e-1)),mAt);)--e;if(r> ",t),brt(n)),pA(gA((t.a+="[",t),n.i),"]")),t.a},Pkt.c=!0,Pkt.d=!1;var $Gt,zGt,qGt,HGt,UGt,GGt,YGt,KGt,WGt=y$(hAt,"LPort",11);Uht(397,1,S_t,cg),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new ug(new gd(this.a.e))},y$(hAt,"LPort/1",397),Uht(1290,1,o_t,ug),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return YP(BG(this.a),17).c},Pkt.Ob=function(){return WM(this.a)},Pkt.Qb=function(){$R(this.a)},y$(hAt,"LPort/1/1",1290),Uht(359,1,S_t,lg),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new hg(new gd(this.a.g))},y$(hAt,"LPort/2",359),Uht(762,1,o_t,hg),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return YP(BG(this.a),17).d},Pkt.Ob=function(){return WM(this.a)},Pkt.Qb=function(){$R(this.a)},y$(hAt,"LPort/2/1",762),Uht(1283,1,S_t,ET),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new $X(this)},y$(hAt,"LPort/CombineIter",1283),Uht(201,1,o_t,$X),Pkt.Nb=function(t){_R(this,t)},Pkt.Qb=function(){Fx()},Pkt.Ob=function(){return YL(this)},Pkt.Pb=function(){return WM(this.a)?BG(this.a):BG(this.b)},y$(hAt,"LPort/CombineIter/1",201),Uht(1285,1,JTt,Re),Pkt.Lb=function(t){return Kj(t)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),0!=YP(t,11).e.c.length},y$(hAt,"LPort/lambda$0$Type",1285),Uht(1284,1,JTt,$e),Pkt.Lb=function(t){return Wj(t)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),0!=YP(t,11).g.c.length},y$(hAt,"LPort/lambda$1$Type",1284),Uht(1286,1,JTt,ze),Pkt.Lb=function(t){return U2(),YP(t,11).j==(_xt(),bie)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),YP(t,11).j==(_xt(),bie)},y$(hAt,"LPort/lambda$2$Type",1286),Uht(1287,1,JTt,qe),Pkt.Lb=function(t){return U2(),YP(t,11).j==(_xt(),pie)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),YP(t,11).j==(_xt(),pie)},y$(hAt,"LPort/lambda$3$Type",1287),Uht(1288,1,JTt,He),Pkt.Lb=function(t){return U2(),YP(t,11).j==(_xt(),Die)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),YP(t,11).j==(_xt(),Die)},y$(hAt,"LPort/lambda$4$Type",1288),Uht(1289,1,JTt,Ue),Pkt.Lb=function(t){return U2(),YP(t,11).j==(_xt(),Pie)},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return U2(),YP(t,11).j==(_xt(),Pie)},y$(hAt,"LPort/lambda$5$Type",1289),Uht(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},j$),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new gd(this.a)},Pkt.Ib=function(){return"L_"+rZ(this.b.b,this,0)+$st(this.a)},y$(hAt,"Layer",29),Uht(1342,1,{},ly),y$(TAt,CAt,1342),Uht(1346,1,{},Ge),Pkt.Kb=function(t){return Zot(YP(t,82))},y$(TAt,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),Uht(1349,1,{},Ye),Pkt.Kb=function(t){return Zot(YP(t,82))},y$(TAt,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),Uht(1343,1,k_t,fg),Pkt.td=function(t){ght(this.a,YP(t,118))},y$(TAt,SAt,1343),Uht(1344,1,k_t,dg),Pkt.td=function(t){ght(this.a,YP(t,118))},y$(TAt,AAt,1344),Uht(1345,1,{},Ke),Pkt.Kb=function(t){return new xF(null,new AG((!(e=YP(t,79)).c&&(e.c=new CN(Hre,e,5,8)),e.c),16));var e},y$(TAt,MAt,1345),Uht(1347,1,Y_t,gg),Pkt.Mb=function(t){return function(t,e){return zJ(e,yU(t))}(this.a,YP(t,33))},y$(TAt,IAt,1347),Uht(1348,1,{},We),Pkt.Kb=function(t){return new xF(null,new AG((!(e=YP(t,79)).b&&(e.b=new CN(Hre,e,4,7)),e.b),16));var e},y$(TAt,"ElkGraphImporter/lambda$5$Type",1348),Uht(1350,1,Y_t,pg),Pkt.Mb=function(t){return function(t,e){return zJ(e,yU(t))}(this.a,YP(t,33))},y$(TAt,"ElkGraphImporter/lambda$7$Type",1350),Uht(1351,1,Y_t,Xe),Pkt.Mb=function(t){return Ult(e=YP(t,79))&&Vm(aD(yft(e,(hkt(),x1t))));var e},y$(TAt,"ElkGraphImporter/lambda$8$Type",1351),Uht(1278,1,{},Gl),y$(TAt,"ElkGraphLayoutTransferrer",1278),Uht(1279,1,Y_t,bg),Pkt.Mb=function(t){return function(t,e){return q_(),!D3(e.d.i,t)}(this.a,YP(t,17))},y$(TAt,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),Uht(1280,1,k_t,wg),Pkt.td=function(t){q_(),QP(this.a,YP(t,17))},y$(TAt,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),Uht(1281,1,Y_t,yg),Pkt.Mb=function(t){return function(t,e){return q_(),D3(e.d.i,t)}(this.a,YP(t,17))},y$(TAt,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),Uht(1282,1,k_t,mg),Pkt.td=function(t){q_(),QP(this.a,YP(t,17))},y$(TAt,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),Uht(1485,1,lAt,Ve),Pkt.pf=function(t,e){!function(t,e){tst(e,LAt,1),k_(qZ(new xF(null,new AG(t.b,16)),new Qe),new Ze),Dct(e)}(YP(t,37),e)},y$(OAt,"CommentNodeMarginCalculator",1485),Uht(1486,1,{},Qe),Pkt.Kb=function(t){return new xF(null,new AG(YP(t,29).a,16))},y$(OAt,"CommentNodeMarginCalculator/lambda$0$Type",1486),Uht(1487,1,k_t,Ze),Pkt.td=function(t){!function(t){var n,i,r,a,o,s,c,u,l,h,f,d;if(c=t.d,f=YP(Sst(t,(Tkt(),UVt)),15),n=YP(Sst(t,qXt),15),f||n){if(o=Qm(oD(htt(t,(hkt(),_0t)))),s=Qm(oD(htt(t,E0t))),d=0,f){for(l=0,a=f.Kc();a.Ob();)r=YP(a.Pb(),10),l=e.Math.max(l,r.o.b),d+=r.o.a;d+=o*(f.gc()-1),c.d+=l+s}if(i=0,n){for(l=0,a=n.Kc();a.Ob();)r=YP(a.Pb(),10),l=e.Math.max(l,r.o.b),i+=r.o.a;i+=o*(n.gc()-1),c.a+=l+s}(u=e.Math.max(d,i))>t.o.a&&(h=(u-t.o.a)/2,c.b=e.Math.max(c.b,h),c.c=e.Math.max(c.c,h))}}(YP(t,10))},y$(OAt,"CommentNodeMarginCalculator/lambda$1$Type",1487),Uht(1488,1,lAt,Je),Pkt.pf=function(t,e){!function(t,e){var n,i,r,a,o,s,c;for(tst(e,"Comment post-processing",1),a=new gd(t.b);a.a0&&Wbt((CG(0,n.c.length),YP(n.c[0],29)),t),n.c.length>1&&Wbt(YP(mF(n,n.c.length-1),29),t),Dct(e)}(YP(t,37),e)},y$(OAt,"HierarchicalPortPositionProcessor",1517),Uht(1518,1,lAt,Yl),Pkt.pf=function(t,n){!function(t,n){var i,r,a,o,s,c,u,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T;for(t.b=n,t.a=YP(Sst(n,(hkt(),b1t)),19).a,t.c=YP(Sst(n,y1t),19).a,0==t.c&&(t.c=Ykt),b=new YY(n.b,0);b.b=t.a&&(r=Myt(t,y),f=e.Math.max(f,r.b),v=e.Math.max(v,r.d),QP(c,new pS(y,r)));for(_=new Jb,h=0;h0),b.a.Xb(b.c=--b.b),WD(b,E=new j$(t.b)),xO(b.b=2){for(d=!0,n=YP(BG(l=new gd(r.j)),11),h=null;l.a0)}(YP(t,17))},y$(OAt,"PartitionPreprocessor/lambda$2$Type",1577),Uht(1578,1,k_t,vi),Pkt.td=function(t){!function(t){var e;gyt(t,!0),e=aEt,TO(t,(hkt(),w0t))&&(e+=YP(Sst(t,w0t),19).a),s5(t,w0t,u7(e))}(YP(t,17))},y$(OAt,"PartitionPreprocessor/lambda$3$Type",1578),Uht(1579,1,lAt,th),Pkt.pf=function(t,e){!function(t,e){var n,i,r,a,o,s;for(tst(e,"Port order processing",1),s=YP(Sst(t,(hkt(),g0t)),421),n=new gd(t.b);n.ae.d.c){if((d=t.c[e.a.d])==(b=t.c[h.a.d]))continue;igt(I_(M_(L_(A_(new Qw,1),100),d),b))}}}(this),function(t){var e,n,i,r,a,o,s;for(a=new x_,r=new gd(t.d.a);r.a1)for(e=FL((n=new Zw,++t.b,n),t.d),s=Wet(a,0);s.b!=s.d.c;)o=YP(kK(s),121),igt(I_(M_(L_(A_(new Qw,1),0),e),o))}(this),$bt(EP(this.d),new nm),a=new gd(this.a.a.b);a.a=b&&(QP(o,u7(h)),m=e.Math.max(m,v[h-1]-f),c+=p,w+=v[h-1]-w,f=v[h-1],p=u[h]),p=e.Math.max(p,u[h]),++h;c+=p}(g=e.Math.min(1/m,1/n.b/c))>r&&(r=g,i=o)}return i},Pkt.Wf=function(){return!1},y$(XAt,"MSDCutIndexHeuristic",802),Uht(1617,1,lAt,Ta),Pkt.pf=function(t,e){Eyt(YP(t,37),e)},y$(XAt,"SingleEdgeGraphWrapper",1617),Uht(227,22,{3:1,35:1,22:1,227:1},BT);var rWt,aWt,oWt,sWt,cWt,uWt,lWt,hWt=z1(VAt,"CenterEdgeLabelPlacementStrategy",227,Jjt,(function(){return dut(),M4($v(hWt,1),q_t,227,0,[oWt,cWt,aWt,sWt,uWt,rWt])}),(function(t){return dut(),ZZ((g1(),lWt),t)}));Uht(422,22,{3:1,35:1,22:1,422:1},FT);var fWt,dWt,gWt,pWt=z1(VAt,"ConstraintCalculationStrategy",422,Jjt,(function(){return tQ(),M4($v(pWt,1),q_t,422,0,[fWt,dWt])}),(function(t){return tQ(),ZZ((TW(),gWt),t)}));Uht(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},jT),Pkt.Kf=function(){return klt(this)},Pkt.Xf=function(){return klt(this)};var bWt,wWt,yWt,mWt,vWt=z1(VAt,"CrossingMinimizationStrategy",314,Jjt,(function(){return E0(),M4($v(vWt,1),q_t,314,0,[wWt,bWt,yWt])}),(function(t){return E0(),ZZ((yV(),mWt),t)}));Uht(337,22,{3:1,35:1,22:1,337:1},RT);var xWt,kWt,_Wt,EWt,TWt=z1(VAt,"CuttingStrategy",337,Jjt,(function(){return a0(),M4($v(TWt,1),q_t,337,0,[xWt,_Wt,kWt])}),(function(t){return a0(),ZZ((mV(),EWt),t)}));Uht(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},$T),Pkt.Kf=function(){return sft(this)},Pkt.Xf=function(){return sft(this)};var CWt,SWt,AWt,MWt,IWt,LWt,OWt=z1(VAt,"CycleBreakingStrategy",335,Jjt,(function(){return git(),M4($v(OWt,1),q_t,335,0,[SWt,CWt,MWt,IWt,AWt])}),(function(t){return git(),ZZ((oJ(),LWt),t)}));Uht(419,22,{3:1,35:1,22:1,419:1},zT);var DWt,NWt,PWt,BWt=z1(VAt,"DirectionCongruency",419,Jjt,(function(){return aJ(),M4($v(BWt,1),q_t,419,0,[DWt,NWt])}),(function(t){return aJ(),ZZ((xW(),PWt),t)}));Uht(450,22,{3:1,35:1,22:1,450:1},qT);var FWt,jWt,RWt,$Wt,zWt=z1(VAt,"EdgeConstraint",450,Jjt,(function(){return Q4(),M4($v(zWt,1),q_t,450,0,[jWt,FWt,RWt])}),(function(t){return Q4(),ZZ((vV(),$Wt),t)}));Uht(276,22,{3:1,35:1,22:1,276:1},HT);var qWt,HWt,UWt,GWt,YWt,KWt,WWt,XWt=z1(VAt,"EdgeLabelSideSelection",276,Jjt,(function(){return dct(),M4($v(XWt,1),q_t,276,0,[HWt,qWt,GWt,UWt,KWt,YWt])}),(function(t){return dct(),ZZ((y1(),WWt),t)}));Uht(479,22,{3:1,35:1,22:1,479:1},UT);var VWt,QWt,ZWt,JWt=z1(VAt,"EdgeStraighteningStrategy",479,Jjt,(function(){return JQ(),M4($v(JWt,1),q_t,479,0,[QWt,VWt])}),(function(t){return JQ(),ZZ((kW(),ZWt),t)}));Uht(274,22,{3:1,35:1,22:1,274:1},GT);var tXt,eXt,nXt,iXt,rXt,aXt,oXt,sXt=z1(VAt,"FixedAlignment",274,Jjt,(function(){return Hat(),M4($v(sXt,1),q_t,274,0,[iXt,nXt,aXt,eXt,rXt,tXt])}),(function(t){return Hat(),ZZ((b1(),oXt),t)}));Uht(275,22,{3:1,35:1,22:1,275:1},YT);var cXt,uXt,lXt,hXt,fXt,dXt,gXt,pXt=z1(VAt,"GraphCompactionStrategy",275,Jjt,(function(){return ict(),M4($v(pXt,1),q_t,275,0,[fXt,uXt,dXt,hXt,lXt,cXt])}),(function(t){return ict(),ZZ((p1(),gXt),t)}));Uht(256,22,{3:1,35:1,22:1,256:1},KT);var bXt,wXt,yXt,mXt,vXt,xXt,kXt,_Xt,EXt,TXt,CXt,SXt=z1(VAt,"GraphProperties",256,Jjt,(function(){return Zgt(),M4($v(SXt,1),q_t,256,0,[wXt,mXt,vXt,xXt,kXt,_Xt,TXt,bXt,yXt,EXt])}),(function(t){return Zgt(),ZZ((W4(),CXt),t)}));Uht(292,22,{3:1,35:1,22:1,292:1},WT);var AXt,MXt,IXt,LXt,OXt=z1(VAt,"GreedySwitchType",292,Jjt,(function(){return Z3(),M4($v(OXt,1),q_t,292,0,[MXt,IXt,AXt])}),(function(t){return Z3(),ZZ((_V(),LXt),t)}));Uht(303,22,{3:1,35:1,22:1,303:1},XT);var DXt,NXt,PXt,BXt,FXt=z1(VAt,"InLayerConstraint",303,Jjt,(function(){return TZ(),M4($v(FXt,1),q_t,303,0,[NXt,PXt,DXt])}),(function(t){return TZ(),ZZ((kV(),BXt),t)}));Uht(420,22,{3:1,35:1,22:1,420:1},VT);var jXt,RXt,$Xt,zXt,qXt,HXt,UXt,GXt,YXt,KXt,WXt,XXt,VXt,QXt,ZXt,JXt,tVt,eVt,nVt,iVt,rVt,aVt,oVt,sVt,cVt,uVt,lVt,hVt,fVt,dVt,gVt,pVt,bVt,wVt,yVt,mVt,vVt,xVt,kVt,_Vt,EVt,TVt,CVt,SVt,AVt,MVt,IVt,LVt,OVt,DVt,NVt,PVt,BVt,FVt,jVt,RVt,$Vt,zVt,qVt,HVt,UVt,GVt=z1(VAt,"InteractiveReferencePoint",420,Jjt,(function(){return uK(),M4($v(GVt,1),q_t,420,0,[jXt,RXt])}),(function(t){return uK(),ZZ((CW(),$Xt),t)}));Uht(163,22,{3:1,35:1,22:1,163:1},eC);var YVt,KVt,WVt,XVt,VVt,QVt,ZVt,JVt,tQt,eQt,nQt,iQt,rQt,aQt,oQt,sQt,cQt,uQt,lQt,hQt,fQt,dQt,gQt,pQt,bQt,wQt,yQt,mQt,vQt,xQt,kQt,_Qt,EQt,TQt,CQt,SQt,AQt,MQt,IQt,LQt,OQt,DQt,NQt,PQt,BQt,FQt,jQt,RQt,$Qt,zQt,qQt,HQt,UQt,GQt,YQt,KQt,WQt,XQt,VQt,QQt,ZQt,JQt,tZt,eZt,nZt,iZt,rZt,aZt,oZt,sZt,cZt,uZt,lZt,hZt,fZt,dZt,gZt,pZt,bZt,wZt,yZt,mZt,vZt,xZt,kZt,_Zt,EZt,TZt,CZt,SZt,AZt,MZt,IZt,LZt,OZt,DZt,NZt,PZt,BZt,FZt,jZt,RZt,$Zt,zZt,qZt,HZt,UZt,GZt,YZt,KZt,WZt,XZt,VZt,QZt,ZZt,JZt,tJt,eJt,nJt,iJt,rJt,aJt,oJt,sJt,cJt,uJt,lJt,hJt,fJt,dJt,gJt,pJt,bJt,wJt,yJt,mJt,vJt,xJt,kJt,_Jt,EJt,TJt,CJt,SJt,AJt,MJt,IJt,LJt,OJt,DJt,NJt,PJt,BJt,FJt,jJt,RJt,$Jt,zJt,qJt,HJt,UJt,GJt,YJt,KJt,WJt,XJt,VJt,QJt,ZJt,JJt,t1t,e1t,n1t,i1t,r1t,a1t,o1t,s1t,c1t,u1t,l1t,h1t,f1t,d1t,g1t,p1t,b1t,w1t,y1t,m1t,v1t,x1t,k1t,_1t,E1t,T1t,C1t,S1t,A1t,M1t,I1t,L1t,O1t,D1t,N1t,P1t,B1t,F1t,j1t,R1t,$1t,z1t,q1t,H1t,U1t,G1t,Y1t,K1t,W1t,X1t,V1t,Q1t,Z1t,J1t,t0t,e0t,n0t,i0t,r0t,a0t,o0t,s0t,c0t,u0t,l0t,h0t,f0t,d0t,g0t,p0t,b0t,w0t,y0t,m0t,v0t,x0t,k0t,_0t,E0t,T0t,C0t,S0t,A0t,M0t,I0t,L0t,O0t,D0t,N0t,P0t,B0t,F0t,j0t,R0t,$0t,z0t,q0t,H0t,U0t,G0t,Y0t,K0t,W0t,X0t,V0t,Q0t,Z0t,J0t,t2t,e2t,n2t,i2t=z1(VAt,"LayerConstraint",163,Jjt,(function(){return u9(),M4($v(i2t,1),q_t,163,0,[VVt,YVt,KVt,WVt,XVt])}),(function(t){return u9(),ZZ((uJ(),QVt),t)}));Uht(848,1,oCt,rh),Pkt.Qe=function(t){b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,nMt),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),DQt),(cut(),_9t)),BWt),Y7((Get(),w9t))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,iMt),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(mL(),!1)),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,rMt),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),nZt),_9t),GVt),Y7(w9t)))),MY(t,rMt,fMt,rZt),MY(t,rMt,kMt,iZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,aMt),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,oMt),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),x9t),MRt),Y7(w9t)))),b9(t,new Jct(function(t,e){return t.f=e,t}(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,sMt),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),x9t),MRt),Y7(y9t)),M4($v(XRt,1),m_t,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,cMt),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),zZt),_9t),W2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,uMt),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),u7(7)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,lMt),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,hMt),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,fMt),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),LQt),_9t),OWt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,dMt),xIt),"Node Layering Strategy"),"Strategy for node layering."),mZt),_9t),h2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,gMt),xIt),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),uZt),_9t),i2t),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,pMt),xIt),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),u7(-1)),T9t),RRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,bMt),xIt),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),u7(-1)),T9t),RRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,wMt),kIt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),u7(4)),T9t),RRt),Y7(w9t)))),MY(t,wMt,dMt,fZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,yMt),kIt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),u7(2)),T9t),RRt),Y7(w9t)))),MY(t,yMt,dMt,gZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,mMt),_It),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),wZt),_9t),R2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,vMt),_It),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),u7(0)),T9t),RRt),Y7(w9t)))),MY(t,vMt,mMt,null),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,xMt),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),u7(Ykt)),T9t),RRt),Y7(w9t)))),MY(t,xMt,dMt,oZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,kMt),EIt),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),MQt),_9t),vWt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,_Mt),EIt),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,EMt),EIt),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),k9t),PRt),Y7(w9t)))),MY(t,EMt,TIt,_Qt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,TMt),EIt),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),x9t),MRt),Y7(w9t)))),MY(t,TMt,kMt,SQt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,CMt),EIt),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),u7(-1)),T9t),RRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,SMt),EIt),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),u7(-1)),T9t),RRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,AMt),CIt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),u7(40)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,MMt),CIt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),vQt),_9t),OXt),Y7(w9t)))),MY(t,MMt,kMt,xQt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,IMt),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),bQt),_9t),OXt),Y7(w9t)))),MY(t,IMt,kMt,wQt),MY(t,IMt,TIt,yQt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,LMt),SIt),"Node Placement Strategy"),"Strategy for node placement."),RZt),_9t),M2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,OMt),SIt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),x9t),MRt),Y7(w9t)))),MY(t,OMt,LMt,MZt),MY(t,OMt,LMt,IZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,DMt),AIt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),_Zt),_9t),JWt),Y7(w9t)))),MY(t,DMt,LMt,EZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,NMt),AIt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),CZt),_9t),sXt),Y7(w9t)))),MY(t,NMt,LMt,SZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,PMt),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),k9t),PRt),Y7(w9t)))),MY(t,PMt,LMt,OZt),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,BMt),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),_9t),k2t),Y7(b9t)))),MY(t,BMt,LMt,FZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,FMt),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),PZt),_9t),k2t),Y7(w9t)))),MY(t,FMt,LMt,BZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,jMt),MIt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),zQt),_9t),r3t),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,RMt),MIt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),HQt),_9t),c3t),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,$Mt),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),GQt),_9t),d3t),Y7(w9t)))),MY(t,$Mt,IIt,YQt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,zMt),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),k9t),PRt),Y7(w9t)))),MY(t,zMt,IIt,WQt),MY(t,zMt,$Mt,XQt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,qMt),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),k9t),PRt),Y7(w9t)))),MY(t,qMt,IIt,RQt),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,HMt),LIt),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,UMt),LIt),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,GMt),LIt),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,YMt),LIt),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,KMt),OIt),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),u7(0)),T9t),RRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,WMt),OIt),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),u7(0)),T9t),RRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,XMt),OIt),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),u7(0)),T9t),RRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,VMt),DIt),YCt),"Tries to further compact components (disconnected sub-graphs)."),!1),x9t),MRt),Y7(w9t)))),MY(t,VMt,LSt,!0),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,QMt),NIt),"Post Compaction Strategy"),PIt),iQt),_9t),pXt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ZMt),NIt),"Post Compaction Constraint Calculation"),PIt),eQt),_9t),pWt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,JMt),BIt),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,tIt),BIt),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),u7(16)),T9t),RRt),Y7(w9t)))),MY(t,tIt,JMt,!0),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,eIt),BIt),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),u7(5)),T9t),RRt),Y7(w9t)))),MY(t,eIt,JMt,!0),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,nIt),FIt),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),mJt),_9t),O3t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,iIt),FIt),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),k9t),PRt),Y7(w9t)))),MY(t,iIt,nIt,ZZt),MY(t,iIt,nIt,JZt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,rIt),FIt),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),k9t),PRt),Y7(w9t)))),MY(t,rIt,nIt,eJt),MY(t,rIt,nIt,nJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,aIt),jIt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),uJt),_9t),TWt),Y7(w9t)))),MY(t,aIt,nIt,lJt),MY(t,aIt,nIt,hJt),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,oIt),jIt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),C9t),Gjt),Y7(w9t)))),MY(t,oIt,aIt,rJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,sIt),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),oJt),T9t),RRt),Y7(w9t)))),MY(t,sIt,aIt,sJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,cIt),RIt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),EJt),_9t),y3t),Y7(w9t)))),MY(t,cIt,nIt,TJt),MY(t,cIt,nIt,CJt),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,uIt),RIt),"Valid Indices for Wrapping"),null),C9t),Gjt),Y7(w9t)))),MY(t,uIt,nIt,xJt),MY(t,uIt,nIt,kJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,lIt),$It),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),x9t),MRt),Y7(w9t)))),MY(t,lIt,nIt,pJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,hIt),$It),"Distance Penalty When Improving Cuts"),null),2),k9t),PRt),Y7(w9t)))),MY(t,hIt,nIt,dJt),MY(t,hIt,lIt,!0),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,fIt),$It),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),x9t),MRt),Y7(w9t)))),MY(t,fIt,nIt,wJt),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,dIt),zIt),"Edge Label Side Selection"),"Method to decide on edge label sides."),FQt),_9t),XWt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,gIt),zIt),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),PQt),_9t),hWt),VF(w9t,M4($v(v9t,1),q_t,175,0,[p9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,pIt),qIt),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),fQt),_9t),U2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,bIt),qIt),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,wIt),qIt),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),aQt),_9t),TGt),Y7(w9t)))),MY(t,wIt,LSt,null),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,yIt),qIt),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),uQt),_9t),b2t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,mIt),qIt),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),k9t),PRt),Y7(w9t)))),MY(t,mIt,pIt,null),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,vIt),qIt),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),k9t),PRt),Y7(w9t)))),MY(t,vIt,pIt,null),Lkt((new sh,t))},y$(VAt,"LayeredMetaDataProvider",848),Uht(986,1,oCt,sh),Pkt.Qe=function(t){Lkt(t)},y$(VAt,"LayeredOptions",986),Uht(987,1,{},Sa),Pkt.$e=function(){return new ey},Pkt._e=function(t){},y$(VAt,"LayeredOptions/LayeredFactory",987),Uht(1372,1,{}),Pkt.a=0,y$(ILt,"ElkSpacings/AbstractSpacingsBuilder",1372),Uht(779,1372,{},P9),y$(VAt,"LayeredSpacings/LayeredSpacingsBuilder",779),Uht(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},QT),Pkt.Kf=function(){return tdt(this)},Pkt.Xf=function(){return tdt(this)};var r2t,a2t,o2t,s2t,c2t,u2t,l2t,h2t=z1(VAt,"LayeringStrategy",313,Jjt,(function(){return Xot(),M4($v(h2t,1),q_t,313,0,[c2t,o2t,r2t,a2t,u2t,s2t])}),(function(t){return Xot(),ZZ((w1(),l2t),t)}));Uht(378,22,{3:1,35:1,22:1,378:1},ZT);var f2t,d2t,g2t,p2t,b2t=z1(VAt,"LongEdgeOrderingStrategy",378,Jjt,(function(){return Q6(),M4($v(b2t,1),q_t,378,0,[f2t,d2t,g2t])}),(function(t){return Q6(),ZZ((EV(),p2t),t)}));Uht(197,22,{3:1,35:1,22:1,197:1},JT);var w2t,y2t,m2t,v2t,x2t,k2t=z1(VAt,"NodeFlexibility",197,Jjt,(function(){return Fnt(),M4($v(k2t,1),q_t,197,0,[m2t,v2t,y2t,w2t])}),(function(t){return Fnt(),ZZ((YQ(),x2t),t)}));Uht(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},tC),Pkt.Kf=function(){return oft(this)},Pkt.Xf=function(){return oft(this)};var _2t,E2t,T2t,C2t,S2t,A2t,M2t=z1(VAt,"NodePlacementStrategy",315,Jjt,(function(){return eit(),M4($v(M2t,1),q_t,315,0,[S2t,E2t,T2t,_2t,C2t])}),(function(t){return eit(),ZZ((sJ(),A2t),t)}));Uht(260,22,{3:1,35:1,22:1,260:1},nC);var I2t,L2t,O2t,D2t,N2t,P2t,B2t,F2t,j2t,R2t=z1(VAt,"NodePromotionStrategy",260,Jjt,(function(){return Pdt(),M4($v(R2t,1),q_t,260,0,[B2t,L2t,N2t,O2t,D2t,I2t,P2t,F2t])}),(function(t){return Pdt(),ZZ((l3(),j2t),t)}));Uht(339,22,{3:1,35:1,22:1,339:1},iC);var $2t,z2t,q2t,H2t,U2t=z1(VAt,"OrderingStrategy",339,Jjt,(function(){return p5(),M4($v(U2t,1),q_t,339,0,[z2t,$2t,q2t])}),(function(t){return p5(),ZZ((CV(),H2t),t)}));Uht(421,22,{3:1,35:1,22:1,421:1},rC);var G2t,Y2t,K2t,W2t=z1(VAt,"PortSortingStrategy",421,Jjt,(function(){return CZ(),M4($v(W2t,1),q_t,421,0,[G2t,Y2t])}),(function(t){return CZ(),ZZ((EW(),K2t),t)}));Uht(452,22,{3:1,35:1,22:1,452:1},aC);var X2t,V2t,Q2t,Z2t,J2t=z1(VAt,"PortType",452,Jjt,(function(){return r0(),M4($v(J2t,1),q_t,452,0,[Q2t,X2t,V2t])}),(function(t){return r0(),ZZ((SV(),Z2t),t)}));Uht(375,22,{3:1,35:1,22:1,375:1},oC);var t3t,e3t,n3t,i3t,r3t=z1(VAt,"SelfLoopDistributionStrategy",375,Jjt,(function(){return u3(),M4($v(r3t,1),q_t,375,0,[t3t,e3t,n3t])}),(function(t){return u3(),ZZ((TV(),i3t),t)}));Uht(376,22,{3:1,35:1,22:1,376:1},sC);var a3t,o3t,s3t,c3t=z1(VAt,"SelfLoopOrderingStrategy",376,Jjt,(function(){return ZX(),M4($v(c3t,1),q_t,376,0,[o3t,a3t])}),(function(t){return ZX(),ZZ((_W(),s3t),t)}));Uht(304,1,{304:1},fvt),y$(VAt,"Spacings",304),Uht(336,22,{3:1,35:1,22:1,336:1},cC);var u3t,l3t,h3t,f3t,d3t=z1(VAt,"SplineRoutingMode",336,Jjt,(function(){return C6(),M4($v(d3t,1),q_t,336,0,[u3t,l3t,h3t])}),(function(t){return C6(),ZZ((MV(),f3t),t)}));Uht(338,22,{3:1,35:1,22:1,338:1},uC);var g3t,p3t,b3t,w3t,y3t=z1(VAt,"ValidifyStrategy",338,Jjt,(function(){return H2(),M4($v(y3t,1),q_t,338,0,[b3t,g3t,p3t])}),(function(t){return H2(),ZZ((IV(),w3t),t)}));Uht(377,22,{3:1,35:1,22:1,377:1},lC);var m3t,v3t,x3t,k3t,_3t,E3t,T3t,C3t,S3t,A3t,M3t,I3t,L3t,O3t=z1(VAt,"WrappingStrategy",377,Jjt,(function(){return N4(),M4($v(O3t,1),q_t,377,0,[v3t,x3t,m3t])}),(function(t){return N4(),ZZ((AV(),k3t),t)}));Uht(1383,1,DLt,ch),Pkt.Yf=function(t){return YP(t,37),_3t},Pkt.pf=function(t,e){!function(t,e,n){var i,r,a,o,s,c,u,l;for(tst(n,"Depth-first cycle removal",1),c=(u=e.a).c.length,t.c=new Jb,t.d=HV(Rce,uCt,25,c,16,1),t.a=HV(Rce,uCt,25,c,16,1),t.b=new Jb,a=0,s=new gd(u);s.a0?C+1:1);for(o=new gd(x.g);o.a0?C+1:1)}0==t.c[u]?DB(t.e,p):0==t.a[u]&&DB(t.f,p),++u}for(g=-1,d=1,h=new Jb,t.d=YP(Sst(e,(Tkt(),OVt)),230);L>0;){for(;0!=t.e.b;)A=YP(gB(t.e),10),t.b[A.p]=g--,qbt(t,A),--L;for(;0!=t.f.b;)M=YP(gB(t.f),10),t.b[M.p]=d++,qbt(t,M),--L;if(L>0){for(f=X_t,y=new gd(m);y.a=f&&(v>f&&(h.c=HV(Rjt,Zkt,1,0,5,1),f=v),h.c[h.c.length]=p);l=t.Zf(h),t.b[l.p]=d++,qbt(t,l),--L}}for(S=m.c.length+1,u=0;ut.b[I]&&(gyt(i,!0),s5(e,XXt,(mL(),!0)));t.a=null,t.c=null,t.b=null,Bq(t.f),Bq(t.e),Dct(n)}(this,YP(t,37),e)},Pkt.Zf=function(t){return YP(mF(t,znt(this.d,t.c.length)),10)},y$(NLt,"GreedyCycleBreaker",782),Uht(1386,782,DLt,NS),Pkt.Zf=function(t){var e,n,i,r;for(r=null,e=Ykt,i=new gd(t);i.a0&&Zct(t,s,l);for(r=new gd(l);r.a=u){xO(y.b>0),y.a.Xb(y.c=--y.b);break}b.a>l&&(a?(v4(a.b,b.b),a.a=e.Math.max(a.a,b.a),az(y)):(QP(b.b,f),b.c=e.Math.min(b.c,l),b.a=e.Math.max(b.a,u),a=b))}a||((a=new fy).c=l,a.a=u,WD(y,a),QP(a.b,f))}for(c=n.b,h=0,w=new gd(r);w.ae.p?-1:0}(YP(t,10),YP(e,10))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(PLt,"StretchWidthLayerer/1",1394),Uht(402,1,BLt),Pkt.Nf=function(t,e,n,i,r,a){},Pkt._f=function(t,e,n){return Xbt(this,t,e,n)},Pkt.Mf=function(){this.g=HV(Hce,FLt,25,this.d,15,1),this.f=HV(Hce,FLt,25,this.d,15,1)},Pkt.Of=function(t,e){this.e[t]=HV(jce,vEt,25,e[t].length,15,1)},Pkt.Pf=function(t,e,n){n[t][e].p=e,this.e[t][e]=e},Pkt.Qf=function(t,e,n,i){YP(mF(i[t][e].j,n),11).p=this.d++},Pkt.b=0,Pkt.c=0,Pkt.d=0,y$(jLt,"AbstractBarycenterPortDistributor",402),Uht(1633,1,PTt,ap),Pkt.ue=function(t,e){return function(t,e,n){var i,r,a,o;return(a=e.j)!=(o=n.j)?a.g-o.g:(i=t.f[e.p],r=t.f[n.p],0==i&&0==r?0:0==i?-1:0==r?1:C7(i,r))}(this.a,YP(t,11),YP(e,11))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(jLt,"AbstractBarycenterPortDistributor/lambda$0$Type",1633),Uht(817,1,UAt,cK),Pkt.Nf=function(t,e,n,i,r,a){},Pkt.Pf=function(t,e,n){},Pkt.Qf=function(t,e,n,i){},Pkt.Lf=function(){return!1},Pkt.Mf=function(){this.c=this.e.a,this.g=this.f.g},Pkt.Of=function(t,e){e[t][0].c.p=t},Pkt.Rf=function(){return!1},Pkt.ag=function(t,e,n,i){n?Tat(this,t):(Rat(this,t,i),Bvt(this,t,e)),t.c.length>1&&(Vm(aD(Sst(lz((CG(0,t.c.length),YP(t.c[0],10))),(hkt(),zJt))))?$ft(t,this.d,YP(this,660)):(qq(),KM(t,this.d)),e4(this.e,t))},Pkt.Sf=function(t,e,n,i){var r,a,o,s,c,u,l;for(e!=SF(n,t.length)&&(a=t[e-(n?1:-1)],oV(this.f,a,n?(r0(),V2t):(r0(),X2t))),r=t[e][0],l=!i||r.k==(uct(),OGt),u=IX(t[e]),this.ag(u,l,!1,n),o=0,c=new gd(u);c.a"),t0?IU(this.a,t[e-1],t[e]):!n&&e0&&(n+=c.n.a+c.o.a/2,++h),d=new gd(c.j);d.a0&&(n/=h),b=HV(qce,JEt,25,i.a.c.length,15,1),s=0,u=new gd(i.a);u.a1&&(Vm(aD(Sst(lz((CG(0,t.c.length),YP(t.c[0],10))),(hkt(),zJt))))?$ft(t,this.d,this):(qq(),KM(t,this.d)),Vm(aD(Sst(lz((CG(0,t.c.length),YP(t.c[0],10))),zJt)))||e4(this.e,t))},y$(jLt,"ModelOrderBarycenterHeuristic",660),Uht(1803,1,PTt,gp),Pkt.ue=function(t,e){return Ict(this.a,YP(t,10),YP(e,10))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(jLt,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),Uht(1403,1,DLt,bh),Pkt.Yf=function(t){var e;return YP(t,37),iF(e=dM(q3t),(Ast(),YUt),(Skt(),WYt)),e},Pkt.pf=function(t,e){var n;YP(t,37),tst(n=e,"No crossing minimization",1),Dct(n)},y$(jLt,"NoCrossingMinimizer",1403),Uht(796,402,BLt,bx),Pkt.$f=function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d;switch(h=this.g,n.g){case 1:for(r=0,a=0,l=new gd(t.j);l.a1&&(r.j==(_xt(),pie)?this.b[t]=!0:r.j==Pie&&t>0&&(this.b[t-1]=!0))},Pkt.f=0,y$(HAt,"AllCrossingsCounter",1798),Uht(587,1,{},i2),Pkt.b=0,Pkt.d=0,y$(HAt,"BinaryIndexedTree",587),Uht(524,1,{},JN),y$(HAt,"CrossingsCounter",524),Uht(1906,1,PTt,pp),Pkt.ue=function(t,e){return function(t,e,n){return QM(t.d[e.p],t.d[n.p])}(this.a,YP(t,11),YP(e,11))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(HAt,"CrossingsCounter/lambda$0$Type",1906),Uht(1907,1,PTt,bp),Pkt.ue=function(t,e){return function(t,e,n){return QM(t.d[e.p],t.d[n.p])}(this.a,YP(t,11),YP(e,11))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(HAt,"CrossingsCounter/lambda$1$Type",1907),Uht(1908,1,PTt,wp),Pkt.ue=function(t,e){return function(t,e,n){return QM(t.d[e.p],t.d[n.p])}(this.a,YP(t,11),YP(e,11))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(HAt,"CrossingsCounter/lambda$2$Type",1908),Uht(1909,1,PTt,yp),Pkt.ue=function(t,e){return function(t,e,n){return QM(t.d[e.p],t.d[n.p])}(this.a,YP(t,11),YP(e,11))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(HAt,"CrossingsCounter/lambda$3$Type",1909),Uht(1910,1,k_t,mp),Pkt.td=function(t){!function(t,e){lB(),QP(t,new pS(e,u7(e.e.c.length+e.g.c.length)))}(this.a,YP(t,11))},y$(HAt,"CrossingsCounter/lambda$4$Type",1910),Uht(1911,1,Y_t,vp),Pkt.Mb=function(t){return function(t,e){return lB(),e!=t}(this.a,YP(t,11))},y$(HAt,"CrossingsCounter/lambda$5$Type",1911),Uht(1912,1,k_t,xp),Pkt.td=function(t){IS(this,t)},y$(HAt,"CrossingsCounter/lambda$6$Type",1912),Uht(1913,1,k_t,dC),Pkt.td=function(t){var e;lB(),EK(this.b,(e=this.a,YP(t,11),e))},y$(HAt,"CrossingsCounter/lambda$7$Type",1913),Uht(826,1,JTt,Na),Pkt.Lb=function(t){return lB(),TO(YP(t,11),(Tkt(),MVt))},Pkt.Fb=function(t){return this===t},Pkt.Mb=function(t){return lB(),TO(YP(t,11),(Tkt(),MVt))},y$(HAt,"CrossingsCounter/lambda$8$Type",826),Uht(1905,1,{},kp),y$(HAt,"HyperedgeCrossingsCounter",1905),Uht(467,1,{35:1,467:1},oN),Pkt.wd=function(t){return function(t,e){return t.ee.e?1:t.fe.f?1:q5(t)-q5(e)}(this,YP(t,467))},Pkt.b=0,Pkt.c=0,Pkt.e=0,Pkt.f=0;var Y3t=y$(HAt,"HyperedgeCrossingsCounter/Hyperedge",467);Uht(362,1,{35:1,362:1},hq),Pkt.wd=function(t){return function(t,e){return t.ce.c?1:t.be.b?1:t.a!=e.a?q5(t.a)-q5(e.a):t.d==(jW(),X3t)&&e.d==W3t?-1:t.d==W3t&&e.d==X3t?1:0}(this,YP(t,362))},Pkt.b=0,Pkt.c=0;var K3t=y$(HAt,"HyperedgeCrossingsCounter/HyperedgeCorner",362);Uht(523,22,{3:1,35:1,22:1,523:1},fC);var W3t,X3t,V3t,Q3t,Z3t,J3t,t4t,e4t=z1(HAt,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Jjt,(function(){return jW(),M4($v(e4t,1),q_t,523,0,[X3t,W3t])}),(function(t){return jW(),ZZ((AW(),V3t),t)}));Uht(1405,1,DLt,oh),Pkt.Yf=function(t){return YP(Sst(YP(t,37),(Tkt(),aVt)),21).Hc((Zgt(),mXt))?Q3t:null},Pkt.pf=function(t,e){!function(t,e,n){var i;for(tst(n,"Interactive node placement",1),t.a=YP(Sst(e,(Tkt(),FVt)),304),i=new gd(e.b);i.a1},y$(RLt,"NetworkSimplexPlacer/lambda$18$Type",1431),Uht(1432,1,k_t,dq),Pkt.td=function(t){!function(t,e,n,i,r){rG(),igt(I_(M_(A_(L_(new Qw,0),r.d.e-t),e),r.d)),igt(I_(M_(A_(L_(new Qw,0),n-r.a.e),r.a),i))}(this.c,this.b,this.d,this.a,YP(t,401))},Pkt.c=0,Pkt.d=0,y$(RLt,"NetworkSimplexPlacer/lambda$19$Type",1432),Uht(1415,1,{},Ya),Pkt.Kb=function(t){return rG(),new xF(null,new AG(YP(t,29).a,16))},y$(RLt,"NetworkSimplexPlacer/lambda$2$Type",1415),Uht(1433,1,k_t,Cp),Pkt.td=function(t){!function(t,e){rG(),e.n.b+=t}(this.a,YP(t,11))},Pkt.a=0,y$(RLt,"NetworkSimplexPlacer/lambda$20$Type",1433),Uht(1434,1,{},Ka),Pkt.Kb=function(t){return rG(),new xF(null,new AG(YP(t,29).a,16))},y$(RLt,"NetworkSimplexPlacer/lambda$21$Type",1434),Uht(1435,1,k_t,Sp),Pkt.td=function(t){OI(this.a,YP(t,10))},y$(RLt,"NetworkSimplexPlacer/lambda$22$Type",1435),Uht(1436,1,Y_t,Wa),Pkt.Mb=function(t){return xD(t)},y$(RLt,"NetworkSimplexPlacer/lambda$23$Type",1436),Uht(1437,1,{},Xa),Pkt.Kb=function(t){return rG(),new xF(null,new AG(YP(t,29).a,16))},y$(RLt,"NetworkSimplexPlacer/lambda$24$Type",1437),Uht(1438,1,Y_t,Ap),Pkt.Mb=function(t){return function(t,e){return 2==t.j[e.p]}(this.a,YP(t,10))},y$(RLt,"NetworkSimplexPlacer/lambda$25$Type",1438),Uht(1439,1,k_t,bC),Pkt.td=function(t){!function(t,e,n){var i,r,a;for(r=new Sj(cL(t9(n).a.Kc(),new l));Ght(r);)!KW(i=YP(pX(r),17))&&(KW(i)||i.c.i.c!=i.d.i.c)&&(a=Tdt(t,i,n,new by)).c.length>1&&(e.c[e.c.length]=a)}(this.a,this.b,YP(t,10))},y$(RLt,"NetworkSimplexPlacer/lambda$26$Type",1439),Uht(1440,1,Y_t,Va),Pkt.Mb=function(t){return rG(),!KW(YP(t,17))},y$(RLt,"NetworkSimplexPlacer/lambda$27$Type",1440),Uht(1441,1,Y_t,Qa),Pkt.Mb=function(t){return rG(),!KW(YP(t,17))},y$(RLt,"NetworkSimplexPlacer/lambda$28$Type",1441),Uht(1442,1,{},Mp),Pkt.Ce=function(t,e){return CI(this.a,YP(t,29),YP(e,29))},y$(RLt,"NetworkSimplexPlacer/lambda$29$Type",1442),Uht(1416,1,{},Za),Pkt.Kb=function(t){return rG(),new xF(null,new XR(new Sj(cL(n9(YP(t,10)).a.Kc(),new l))))},y$(RLt,"NetworkSimplexPlacer/lambda$3$Type",1416),Uht(1417,1,Y_t,Ja),Pkt.Mb=function(t){return rG(),e=YP(t,17),rG(),!(KW(e)||!KW(e)&&e.c.i.c==e.d.i.c);var e},y$(RLt,"NetworkSimplexPlacer/lambda$4$Type",1417),Uht(1418,1,k_t,Ip),Pkt.td=function(t){!function(t,n){var i,r,a,o,s,c,u,l,h,f,d;i=FL(new Zw,t.f),c=t.i[n.c.i.p],f=t.i[n.d.i.p],s=n.c,h=n.d,o=s.a.b,l=h.a.b,c.b||(o+=s.n.b),f.b||(l+=h.n.b),u=nU(e.Math.max(0,o-l)),a=nU(e.Math.max(0,l-o)),d=e.Math.max(1,YP(Sst(n,(hkt(),m0t)),19).a)*jK(n.c.i.k,n.d.i.k),r=new gC(igt(I_(M_(A_(L_(new Qw,d),a),i),YP(B$(t.k,n.c),121))),igt(I_(M_(A_(L_(new Qw,d),u),i),YP(B$(t.k,n.d),121)))),t.c[n.p]=r}(this.a,YP(t,17))},y$(RLt,"NetworkSimplexPlacer/lambda$5$Type",1418),Uht(1419,1,{},to),Pkt.Kb=function(t){return rG(),new xF(null,new AG(YP(t,29).a,16))},y$(RLt,"NetworkSimplexPlacer/lambda$6$Type",1419),Uht(1420,1,Y_t,eo),Pkt.Mb=function(t){return rG(),YP(t,10).k==(uct(),PGt)},y$(RLt,"NetworkSimplexPlacer/lambda$7$Type",1420),Uht(1421,1,{},no),Pkt.Kb=function(t){return rG(),new xF(null,new XR(new Sj(cL(t9(YP(t,10)).a.Kc(),new l))))},y$(RLt,"NetworkSimplexPlacer/lambda$8$Type",1421),Uht(1422,1,Y_t,io),Pkt.Mb=function(t){return rG(),!KW(e=YP(t,17))&&e.c.i.c==e.d.i.c;var e},y$(RLt,"NetworkSimplexPlacer/lambda$9$Type",1422),Uht(1404,1,DLt,kh),Pkt.Yf=function(t){return YP(Sst(YP(t,37),(Tkt(),aVt)),21).Hc((Zgt(),mXt))?a4t:null},Pkt.pf=function(t,n){!function(t,n){var i,r,a,o,s,c,u,l,h,f;for(tst(n,"Simple node placement",1),f=YP(Sst(t,(Tkt(),FVt)),304),c=0,o=new gd(t.b);o.a0?(d=(g-1)*n,s&&(d+=i),l&&(d+=i),d0&&(x-=p),Gmt(s,x),f=0,g=new gd(s.a);g.a0),c.a.Xb(c.c=--c.b)),u=.4*r*f,!o&&c.b"+this.b+" ("+((null!=(t=this.c).f?t.f:""+t.g)+")");var t},Pkt.d=0,y$(ULt,"HyperEdgeSegmentDependency",129),Uht(520,22,{3:1,35:1,22:1,520:1},xC);var L4t,O4t,D4t,N4t,P4t,B4t,F4t,j4t,R4t=z1(ULt,"HyperEdgeSegmentDependency/DependencyType",520,Jjt,(function(){return QX(),M4($v(R4t,1),q_t,520,0,[O4t,L4t])}),(function(t){return QX(),ZZ((SW(),D4t),t)}));Uht(1815,1,{},Op),y$(ULt,"HyperEdgeSegmentSplitter",1815),Uht(1816,1,{},Ex),Pkt.a=0,Pkt.b=0,y$(ULt,"HyperEdgeSegmentSplitter/AreaRating",1816),Uht(329,1,{329:1},AP),Pkt.a=0,Pkt.b=0,Pkt.c=0,y$(ULt,"HyperEdgeSegmentSplitter/FreeArea",329),Uht(1817,1,PTt,ko),Pkt.ue=function(t,e){return function(t,e){return C7(t.c-t.s,e.c-e.s)}(YP(t,112),YP(e,112))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(ULt,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),Uht(1818,1,k_t,pq),Pkt.td=function(t){UK(this.a,this.d,this.c,this.b,YP(t,112))},Pkt.b=0,y$(ULt,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),Uht(1819,1,{},_o),Pkt.Kb=function(t){return new xF(null,new AG(YP(t,112).e,16))},y$(ULt,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),Uht(1820,1,{},Eo),Pkt.Kb=function(t){return new xF(null,new AG(YP(t,112).j,16))},y$(ULt,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),Uht(1821,1,{},To),Pkt.Fe=function(t){return Qm(oD(t))},y$(ULt,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),Uht(655,1,{},h$),Pkt.a=0,Pkt.b=0,Pkt.c=0,y$(ULt,"OrthogonalRoutingGenerator",655),Uht(1638,1,{},Co),Pkt.Kb=function(t){return new xF(null,new AG(YP(t,112).e,16))},y$(ULt,"OrthogonalRoutingGenerator/lambda$0$Type",1638),Uht(1639,1,{},So),Pkt.Kb=function(t){return new xF(null,new AG(YP(t,112).j,16))},y$(ULt,"OrthogonalRoutingGenerator/lambda$1$Type",1639),Uht(661,1,{}),y$(GLt,"BaseRoutingDirectionStrategy",661),Uht(1807,661,{},Cy),Pkt.dg=function(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b;if(!t.r||t.q)for(h=n+t.o*i,l=new gd(t.n);l.akSt&&(a=t,r=new YC(f,o=h),DB(s.a,r),bwt(this,s,a,r,!1),(d=t.r)&&(r=new YC(g=Qm(oD(bnt(d.e,0))),o),DB(s.a,r),bwt(this,s,a,r,!1),a=d,r=new YC(g,o=n+d.o*i),DB(s.a,r),bwt(this,s,a,r,!1)),r=new YC(b,o),DB(s.a,r),bwt(this,s,a,r,!1)))},Pkt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},Pkt.fg=function(){return _xt(),Die},Pkt.gg=function(){return _xt(),bie},y$(GLt,"NorthToSouthRoutingStrategy",1807),Uht(1808,661,{},Sy),Pkt.dg=function(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b;if(!t.r||t.q)for(h=n-t.o*i,l=new gd(t.n);l.akSt&&(a=t,r=new YC(f,o=h),DB(s.a,r),bwt(this,s,a,r,!1),(d=t.r)&&(r=new YC(g=Qm(oD(bnt(d.e,0))),o),DB(s.a,r),bwt(this,s,a,r,!1),a=d,r=new YC(g,o=n-d.o*i),DB(s.a,r),bwt(this,s,a,r,!1)),r=new YC(b,o),DB(s.a,r),bwt(this,s,a,r,!1)))},Pkt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},Pkt.fg=function(){return _xt(),bie},Pkt.gg=function(){return _xt(),Die},y$(GLt,"SouthToNorthRoutingStrategy",1808),Uht(1806,661,{},Ay),Pkt.dg=function(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b;if(!t.r||t.q)for(h=n+t.o*i,l=new gd(t.n);l.akSt&&(a=t,r=new YC(o=h,f),DB(s.a,r),bwt(this,s,a,r,!0),(d=t.r)&&(r=new YC(o,g=Qm(oD(bnt(d.e,0)))),DB(s.a,r),bwt(this,s,a,r,!0),a=d,r=new YC(o=n+d.o*i,g),DB(s.a,r),bwt(this,s,a,r,!0)),r=new YC(o,b),DB(s.a,r),bwt(this,s,a,r,!0)))},Pkt.eg=function(t){return t.i.n.b+t.n.b+t.a.b},Pkt.fg=function(){return _xt(),pie},Pkt.gg=function(){return _xt(),Pie},y$(GLt,"WestToEastRoutingStrategy",1806),Uht(813,1,{},myt),Pkt.Ib=function(){return $st(this.a)},Pkt.b=0,Pkt.c=!1,Pkt.d=!1,Pkt.f=0,y$(KLt,"NubSpline",813),Uht(407,1,{407:1},_gt,GH),y$(KLt,"NubSpline/PolarCP",407),Uht(1453,1,DLt,hrt),Pkt.Yf=function(t){return function(t){var e,n;return y3(e=new aK,N4t),(n=YP(Sst(t,(Tkt(),aVt)),21)).Hc((Zgt(),TXt))&&y3(e,j4t),n.Hc(bXt)&&y3(e,P4t),n.Hc(_Xt)&&y3(e,F4t),n.Hc(yXt)&&y3(e,B4t),e}(YP(t,37))},Pkt.pf=function(t,n){!function(t,n,i){var r,a,o,s,c,u,l,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C,S,A;if(tst(i,"Spline edge routing",1),0==n.b.c.length)return n.f.a=0,void Dct(i);y=Qm(oD(Sst(n,(hkt(),F0t)))),c=Qm(oD(Sst(n,I0t))),s=Qm(oD(Sst(n,S0t))),E=YP(Sst(n,l1t),336)==(C6(),h3t),_=Qm(oD(Sst(n,h1t))),t.d=n,t.j.c=HV(Rjt,Zkt,1,0,5,1),t.a.c=HV(Rjt,Zkt,1,0,5,1),zR(t.k),h=rA((u=YP(mF(n.b,0),29)).a,(bgt(),A4t)),f=rA((p=YP(mF(n.b,n.b.c.length-1),29)).a,A4t),b=new gd(n.b),w=null,A=0;do{for(Mxt(t,w,m=b.a0?(l=0,w&&(l+=c),l+=(T-1)*s,m&&(l+=c),E&&m&&(l=e.Math.max(l,ogt(m,s,y,_))),l("+this.c+") "+this.b},Pkt.c=0,y$(KLt,"SplineEdgeRouter/Dependency",268),Uht(455,22,{3:1,35:1,22:1,455:1},kC);var $4t,z4t,q4t,H4t=z1(KLt,"SplineEdgeRouter/SideToProcess",455,Jjt,(function(){return YH(),M4($v(H4t,1),q_t,455,0,[$4t,z4t])}),(function(t){return YH(),ZZ((LW(),q4t),t)}));Uht(1454,1,Y_t,vo),Pkt.Mb=function(t){return wgt(),!YP(t,128).o},y$(KLt,"SplineEdgeRouter/lambda$0$Type",1454),Uht(1455,1,{},mo),Pkt.Ge=function(t){return wgt(),YP(t,128).v+1},y$(KLt,"SplineEdgeRouter/lambda$1$Type",1455),Uht(1456,1,k_t,_C),Pkt.td=function(t){!function(t,e,n){Iz(t.b,YP(n.b,17),e)}(this.a,this.b,YP(t,46))},y$(KLt,"SplineEdgeRouter/lambda$2$Type",1456),Uht(1457,1,k_t,EC),Pkt.td=function(t){!function(t,e,n){Iz(t.b,YP(n.b,17),e)}(this.a,this.b,YP(t,46))},y$(KLt,"SplineEdgeRouter/lambda$3$Type",1457),Uht(128,1,{35:1,128:1},Nut,jmt),Pkt.wd=function(t){return function(t,e){return t.s-e.s}(this,YP(t,128))},Pkt.b=0,Pkt.e=!1,Pkt.f=0,Pkt.g=0,Pkt.j=!1,Pkt.k=!1,Pkt.n=0,Pkt.o=!1,Pkt.p=!1,Pkt.q=!1,Pkt.s=0,Pkt.u=0,Pkt.v=0,Pkt.F=0,y$(KLt,"SplineSegment",128),Uht(459,1,{459:1},xo),Pkt.a=0,Pkt.b=!1,Pkt.c=!1,Pkt.d=!1,Pkt.e=!1,Pkt.f=0,y$(KLt,"SplineSegment/EdgeInformation",459),Uht(1234,1,{},po),y$(ZLt,dSt,1234),Uht(1235,1,PTt,bo),Pkt.ue=function(t,e){return function(t,e){var n,i,r;return 0==(n=YP(Sst(e,(eft(),j5t)),19).a-YP(Sst(t,j5t),19).a)?(i=pN(lI(YP(Sst(t,(Jmt(),a5t)),8)),YP(Sst(t,o5t),8)),r=pN(lI(YP(Sst(e,a5t),8)),YP(Sst(e,o5t),8)),C7(i.a*i.b,r.a*r.b)):n}(YP(t,135),YP(e,135))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(ZLt,gSt,1235),Uht(1233,1,{},sk),y$(ZLt,"MrTree",1233),Uht(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},TC),Pkt.Kf=function(){return Plt(this)},Pkt.Xf=function(){return Plt(this)};var U4t,G4t,Y4t,K4t,W4t,X4t=z1(ZLt,"TreeLayoutPhases",393,Jjt,(function(){return Drt(),M4($v(X4t,1),q_t,393,0,[U4t,G4t,Y4t,K4t])}),(function(t){return Drt(),ZZ((qQ(),W4t),t)}));Uht(1130,209,UCt,uN),Pkt.Ze=function(t,n){var i,r,a,o,s,c;for(Vm(aD(yft(t,(eft(),N5t))))||JH(new Ud((hE(),new Hm(t)))),n4(s=new WX,t),s5(s,(Jmt(),p5t),t),function(t,n,i){var r,a,o,s,c;for(o=0,a=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));a.e!=a.i.gc();)s="",0==(!(r=YP(ant(a),33)).n&&(r.n=new gR(Vre,r,1,7)),r.n).i||(s=YP(JJ((!r.n&&(r.n=new gR(Vre,r,1,7)),r.n),0),137).a),n4(c=new K5(o++,n,s),r),s5(c,(Jmt(),p5t),r),c.e.b=r.j+r.f/2,c.f.a=e.Math.max(r.g,1),c.e.a=r.i+r.g/2,c.f.b=e.Math.max(r.f,1),DB(n.b,c),Kut(i.f,r,c)}(t,s,c=new tw),function(t,e,n){var i,r,a,o,s,c,u;for(o=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));o.e!=o.i.gc();)for(r=new Sj(cL(cdt(a=YP(ant(o),33)).a.Kc(),new l));Ght(r);)!Dht(i=YP(pX(r),79))&&!Dht(i)&&!Ult(i)&&(c=YP(ZS(LH(n.f,a)),86),u=YP(B$(n,Zot(YP(JJ((!i.c&&(i.c=new CN(Hre,i,5,8)),i.c),0),82))),86),c&&u&&(s5(s=new Zq(c,u),(Jmt(),p5t),i),n4(s,i),DB(c.d,s),DB(u.b,s),DB(e.a,s)))}(t,s,c),o=s,r=new gd(a=hwt(this.a,o));r.af&&(S=0,A+=h+_,h=0),fdt(x,s,S,A),n=e.Math.max(n,S+k.a),h=e.Math.max(h,k.b),S+=k.a+_;for(v=new tw,i=new tw,T=new gd(t);T.a"+UG(this.c):"e_"+q5(this)},y$(JLt,"TEdge",188),Uht(135,134,{3:1,135:1,94:1,134:1},WX),Pkt.Ib=function(){var t,e,n,i,r;for(r=null,i=Wet(this.b,0);i.b!=i.d.c;)r+=(null==(n=YP(kK(i),86)).c||0==n.c.length?"n_"+n.g:"n_"+n.c)+"\n";for(e=Wet(this.a,0);e.b!=e.d.c;)r+=((t=YP(kK(e),188)).b&&t.c?UG(t.b)+"->"+UG(t.c):"e_"+q5(t))+"\n";return r};var V4t=y$(JLt,"TGraph",135);Uht(633,502,{3:1,502:1,633:1,94:1,134:1}),y$(JLt,"TShape",633),Uht(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},K5),Pkt.Ib=function(){return UG(this)};var Q4t=y$(JLt,"TNode",86);Uht(255,1,S_t,Dp),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return new Np(Wet(this.a.d,0))},y$(JLt,"TNode/2",255),Uht(358,1,o_t,Np),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return YP(kK(this.a),188).c},Pkt.Ob=function(){return Jx(this.a)},Pkt.Qb=function(){PJ(this.a)},y$(JLt,"TNode/2/1",358),Uht(1840,1,lAt,cN),Pkt.pf=function(t,e){Zwt(this,YP(t,135),e)},y$(tOt,"FanProcessor",1840),Uht(327,22,{3:1,35:1,22:1,327:1,234:1},CC),Pkt.Kf=function(){switch(this.g){case 0:return new am;case 1:return new cN;case 2:return new Io;case 3:return new Ao;case 4:return new Oo;case 5:return new Do;default:throw ow(new Ym(PAt+(null!=this.f?this.f:""+this.g)))}};var Z4t,J4t,t5t,e5t,n5t,i5t,r5t,a5t,o5t,s5t,c5t,u5t,l5t,h5t,f5t,d5t,g5t,p5t,b5t,w5t,y5t,m5t,v5t,x5t,k5t,_5t,E5t,T5t,C5t,S5t,A5t,M5t,I5t,L5t,O5t,D5t,N5t,P5t,B5t,F5t,j5t,R5t,$5t,z5t,q5t,H5t=z1(tOt,BAt,327,Jjt,(function(){return but(),M4($v(H5t,1),q_t,327,0,[i5t,J4t,e5t,t5t,n5t,Z4t])}),(function(t){return but(),ZZ((m1(),r5t),t)}));Uht(1843,1,lAt,Ao),Pkt.pf=function(t,e){_ft(this,YP(t,135),e)},Pkt.a=0,y$(tOt,"LevelHeightProcessor",1843),Uht(1844,1,S_t,Mo),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return qq(),a_(),m$t},y$(tOt,"LevelHeightProcessor/1",1844),Uht(1841,1,lAt,Io),Pkt.pf=function(t,e){Iut(this,YP(t,135),e)},Pkt.a=0,y$(tOt,"NeighborsProcessor",1841),Uht(1842,1,S_t,Lo),Pkt.Jc=function(t){zW(this,t)},Pkt.Kc=function(){return qq(),a_(),m$t},y$(tOt,"NeighborsProcessor/1",1842),Uht(1845,1,lAt,Oo),Pkt.pf=function(t,e){kft(this,YP(t,135),e)},Pkt.a=0,y$(tOt,"NodePositionProcessor",1845),Uht(1839,1,lAt,am),Pkt.pf=function(t,e){!function(t,e){var n,i,r,a,o,s,c;for(t.a.c=HV(Rjt,Zkt,1,0,5,1),i=Wet(e.b,0);i.b!=i.d.c;)0==(n=YP(kK(i),86)).b.b&&(s5(n,(Jmt(),x5t),(mL(),!0)),QP(t.a,n));switch(t.a.c.length){case 0:s5(r=new K5(0,e,"DUMMY_ROOT"),(Jmt(),x5t),(mL(),!0)),s5(r,c5t,!0),DB(e.b,r);break;case 1:break;default:for(a=new K5(0,e,"SUPER_ROOT"),s=new gd(t.a);s.auOt&&(a-=uOt),l=(c=YP(yft(r,kee),8)).a,f=c.b+t,(o=e.Math.atan2(f,l))<0&&(o+=uOt),(o+=n)>uOt&&(o-=uOt),qM(),n0(1e-10),e.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:GA(isNaN(a),isNaN(o))}(this.a,this.b,YP(t,33),YP(n,33))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},Pkt.a=0,Pkt.b=0,y$(cOt,"RadialUtil/lambda$0$Type",549),Uht(1375,1,lAt,Bo),Pkt.pf=function(t,n){!function(t,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b,w,y;for(tst(n,"Calculate Graph Size",1),n.n&&t&&WG(n,LY(t),(x6(),gre)),c=uSt,u=uSt,o=lOt,s=lOt,f=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));f.e!=f.i.gc();)p=(l=YP(ant(f),33)).i,b=l.j,y=l.g,r=l.f,a=YP(yft(l,(Ekt(),jte)),142),c=e.Math.min(c,p-a.b),u=e.Math.min(u,b-a.d),o=e.Math.max(o,p+y+a.c),s=e.Math.max(s,b+r+a.a);for(d=new YC(c-(g=YP(yft(t,(Ekt(),Jte)),116)).b,u-g.d),h=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));h.e!=h.i.gc();)S1(l=YP(ant(h),33),l.i-d.a),A1(l,l.j-d.b);w=o-c+(g.b+g.c),i=s-u+(g.d+g.a),C1(t,w),T1(t,i),n.n&&t&&WG(n,LY(t),(x6(),gre))}(YP(t,33),n)},y$(hOt,"CalculateGraphSize",1375),Uht(442,22,{3:1,35:1,22:1,442:1,234:1},IC),Pkt.Kf=function(){switch(this.g){case 0:return new zo;case 1:return new Po;case 2:return new Bo;default:throw ow(new Ym(PAt+(null!=this.f?this.f:""+this.g)))}};var s6t,c6t,u6t,l6t,h6t=z1(hOt,BAt,442,Jjt,(function(){return d9(),M4($v(h6t,1),q_t,442,0,[u6t,s6t,c6t])}),(function(t){return d9(),ZZ((OV(),l6t),t)}));Uht(645,1,{}),Pkt.e=1,Pkt.g=0,y$(fOt,"AbstractRadiusExtensionCompaction",645),Uht(1772,645,{},JO),Pkt.hg=function(t){var e,n,i,r,a,o,s,c,u;for(this.c=YP(yft(t,(QO(),e6t)),33),function(t,e){t.f=e}(this,this.c),this.d=Unt(YP(yft(t,(Nrt(),H6t)),293)),(c=YP(yft(t,L6t),19))&&jf(this,c.a),Rf(this,(dz(s=oD(yft(t,(Ekt(),Ree)))),s)),u=Jgt(this.c),this.d&&this.d.lg(u),function(t,e){var n,i,r;for(i=new gd(e);i.ai?1:0}(YP(t,33),YP(e,33))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(IOt,"RectPackingLayoutProvider/lambda$0$Type",1137),Uht(1256,1,{},MP),Pkt.a=0,Pkt.c=!1,y$(LOt,"AreaApproximation",1256);var r8t=eF(LOt,"BestCandidateFilter");Uht(638,1,{526:1},Vo),Pkt.mg=function(t,n,i){var r,a,o,s,c,u;for(u=new Jb,o=KEt,c=new gd(t);c.a1)for(i=new gd(t.a);i.a>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[15&t]<<28);var t,e},Pkt.Jf=function(t){var e,n,i;for(n=0;n0&&a8((SG(e-1,t.length),t.charCodeAt(e-1)),mAt);)--e;if(n>=e)throw ow(new Ym("The given string does not contain any numbers."));if(2!=(i=Cbt(t.substr(n,e-n),",|;|\r|\n")).length)throw ow(new Ym("Exactly two numbers are expected, "+i.length+" were found."));try{this.a=fct(Ust(i[0])),this.b=fct(Ust(i[1]))}catch(t){throw EI(t=b4(t),127)?ow(new Ym(vAt+t)):ow(t)}},Pkt.Ib=function(){return"("+this.a+","+this.b+")"},Pkt.a=0,Pkt.b=0;var D9t=y$(xAt,"KVector",8);Uht(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Iy,wx,NO),Pkt.Pc=function(){return function(t){var e,n,i;for(e=0,i=HV(D9t,m_t,8,t.b,0,1),n=Wet(t,0);n.b!=n.d.c;)i[e++]=YP(kK(n),8);return i}(this)},Pkt.Jf=function(t){var e,n,i,r,a;n=Cbt(t,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),Bq(this);try{for(e=0,r=0,i=0,a=0;e0&&(r%2==0?i=fct(n[e]):a=fct(n[e]),r>0&&r%2!=0&&DB(this,new YC(i,a)),++r),++e}catch(t){throw EI(t=b4(t),127)?ow(new Ym("The given string does not match the expected format for vectors."+t)):ow(t)}},Pkt.Ib=function(){var t,e,n;for(t=new xL("("),e=Wet(this,0);e.b!=e.d.c;)pA(t,(n=YP(kK(e),8)).a+","+n.b),e.b!=e.d.c&&(t.a+="; ");return(t.a+=")",t).a};var N9t=y$(xAt,"KVectorChain",74);Uht(248,22,{3:1,35:1,22:1,248:1},KC);var P9t,B9t,F9t,j9t,R9t,$9t,z9t,q9t,H9t,U9t,G9t,Y9t,K9t,W9t,X9t,V9t,Q9t,Z9t,J9t,tte=z1(vDt,"Alignment",248,Jjt,(function(){return jnt(),M4($v(tte,1),q_t,248,0,[P9t,j9t,R9t,$9t,B9t,F9t])}),(function(t){return jnt(),ZZ((d1(),z9t),t)}));Uht(979,1,oCt,Sh),Pkt.Qe=function(t){ywt(t)},y$(vDt,"BoxLayouterOptions",979),Uht(980,1,{},Ns),Pkt.$e=function(){return new Hs},Pkt._e=function(t){},y$(vDt,"BoxLayouterOptions/BoxFactory",980),Uht(291,22,{3:1,35:1,22:1,291:1},WC);var ete,nte,ite,rte,ate,ote,ste,cte,ute,lte,hte,fte,dte,gte,pte,bte,wte,yte,mte,vte,xte,kte,_te,Ete,Tte,Cte,Ste,Ate,Mte,Ite,Lte,Ote,Dte,Nte,Pte,Bte,Fte,jte,Rte,$te,zte,qte,Hte,Ute,Gte,Yte,Kte,Wte,Xte,Vte,Qte,Zte,Jte,tee,eee,nee,iee,ree,aee,oee,see,cee,uee,lee,hee,fee,dee,gee,pee,bee,wee,yee,mee,vee,xee,kee,_ee,Eee,Tee,Cee,See,Aee,Mee,Iee,Lee,Oee,Dee,Nee,Pee,Bee,Fee,jee,Ree,$ee,zee,qee,Hee,Uee=z1(vDt,"ContentAlignment",291,Jjt,(function(){return lot(),M4($v(Uee,1),q_t,291,0,[ote,ate,rte,nte,ete,ite])}),(function(t){return lot(),ZZ((f1(),ste),t)}));Uht(684,1,oCt,Ah),Pkt.Qe=function(t){b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,EDt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(cut(),S9t)),XRt),Y7((Get(),w9t))))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,TDt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),C9t),f9t),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,rLt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),lte),_9t),tte),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,aSt),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,CDt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),C9t),N9t),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,wLt),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),wte),E9t),Uee),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,iLt),""),"Debug Mode"),"Whether additional debug information shall be generated."),(mL(),!1)),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,cLt),""),NCt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),vte),_9t),Qee),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,IIt),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Tte),_9t),cne),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,zOt),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,TIt),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Ite),_9t),Ane),VF(w9t,M4($v(v9t,1),q_t,175,0,[b9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,oSt),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),tee),C9t),RGt),VF(w9t,M4($v(v9t,1),q_t,175,0,[b9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,OSt),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,MLt),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,PSt),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,DSt),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),gee),_9t),oie),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,CLt),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),C9t),D9t),VF(b9t,M4($v(v9t,1),q_t,175,0,[y9t,p9t]))))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,SSt),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),T9t),RRt),VF(b9t,M4($v(v9t,1),q_t,175,0,[g9t]))))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,ISt),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,LSt),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,yLt),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Fte),C9t),N9t),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,xLt),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,kLt),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,"org.eclipse.elk.labelManager"),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),C9t),Gce),VF(w9t,M4($v(v9t,1),q_t,175,0,[p9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,SLt),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Rte),C9t),MGt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,eLt),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),x9t),MRt),VF(b9t,M4($v(v9t,1),q_t,175,0,[g9t,y9t,p9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,SDt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),k9t),PRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ADt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,MDt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),u7(100)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,IDt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,LDt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),u7(4e3)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ODt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),u7(400)),T9t),RRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,DDt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,NDt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,PDt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,BDt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,_Dt),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),gte),_9t),hre),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,HIt),LIt),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,UIt),LIt),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,iSt),LIt),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,GIt),LIt),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,MSt),LIt),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,YIt),LIt),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,KIt),LIt),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,VIt),LIt),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,WIt),LIt),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,XIt),LIt),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ASt),LIt),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,QIt),LIt),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),k9t),PRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ZIt),LIt),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),k9t),PRt),VF(w9t,M4($v(v9t,1),q_t,175,0,[b9t]))))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,JIt),LIt),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),C9t),fre),VF(b9t,M4($v(v9t,1),q_t,175,0,[g9t,y9t,p9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ALt),LIt),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),qee),C9t),MGt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,TLt),RDt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),T9t),RRt),VF(w9t,M4($v(v9t,1),q_t,175,0,[b9t]))))),MY(t,TLt,ELt,ree),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,ELt),RDt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),nee),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,uLt),$Dt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),zte),C9t),RGt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,jSt),$Dt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Hte),E9t),Gne),VF(b9t,M4($v(v9t,1),q_t,175,0,[p9t]))))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,fLt),zDt),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),oee),_9t),Zne),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,dLt),zDt),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),_9t),Zne),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,gLt),zDt),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),_9t),Zne),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,pLt),zDt),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),_9t),Zne),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,bLt),zDt),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),_9t),Zne),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,FSt),qDt),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Gte),E9t),Wie),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,BSt),qDt),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Vte),E9t),are),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,QSt),qDt),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Wte),C9t),D9t),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,sLt),qDt),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),x9t),MRt),Y7(w9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,mLt),zIt),"Edge Label Placement"),"Gives a hint on where to put edge labels."),_te),_9t),nne),Y7(p9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,NSt),zIt),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),x9t),MRt),Y7(p9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,"org.eclipse.elk.font.name"),"font"),"Font Name"),"Font name used for a label."),S9t),XRt),Y7(p9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,FDt),"font"),"Font Size"),"Font size used for a label."),T9t),RRt),Y7(p9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,_Lt),HDt),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),C9t),D9t),Y7(y9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,vLt),HDt),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),T9t),RRt),Y7(y9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,nLt),HDt),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),xee),_9t),qie),Y7(y9t)))),b9(t,new Jct(hx(lx(fx(ax(ux(sx(cx(new Rs,tLt),HDt),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),k9t),PRt),Y7(y9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,RSt),UDt),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),yee),E9t),gie),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,lLt),UDt),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,hLt),UDt),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,aLt),GDt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),x9t),MRt),Y7(b9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,oLt),GDt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),x9t),MRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,rSt),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),k9t),PRt),Y7(g9t)))),b9(t,new Jct(hx(lx(fx(ox(ax(ux(sx(cx(new Rs,jDt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Ste),_9t),_ne),Y7(g9t)))),rE(t,new uG(nx(rx(ix(new bs,EAt),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),rE(t,new uG(nx(rx(ix(new bs,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),rE(t,new uG(nx(rx(ix(new bs,CSt),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),rE(t,new uG(nx(rx(ix(new bs,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),rE(t,new uG(nx(rx(ix(new bs,sOt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),rE(t,new uG(nx(rx(ix(new bs,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),rE(t,new uG(nx(rx(ix(new bs,EOt),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),xbt((new Mh,t)),ywt((new Sh,t)),bpt((new Ih,t))},y$(vDt,"CoreOptions",684),Uht(103,22,{3:1,35:1,22:1,103:1},XC);var Gee,Yee,Kee,Wee,Xee,Vee,Qee=z1(vDt,NCt,103,Jjt,(function(){return X8(),M4($v(Qee,1),q_t,103,0,[Wee,Kee,Yee,Gee,Xee])}),(function(t){return X8(),ZZ((gJ(),Vee),t)}));Uht(272,22,{3:1,35:1,22:1,272:1},VC);var Zee,Jee,tne,ene,nne=z1(vDt,"EdgeLabelPlacement",272,Jjt,(function(){return KJ(),M4($v(nne,1),q_t,272,0,[Zee,Jee,tne])}),(function(t){return KJ(),ZZ((jV(),ene),t)}));Uht(218,22,{3:1,35:1,22:1,218:1},QC);var ine,rne,ane,one,sne,cne=z1(vDt,"EdgeRouting",218,Jjt,(function(){return l9(),M4($v(cne,1),q_t,218,0,[one,rne,ine,ane])}),(function(t){return l9(),ZZ((XQ(),sne),t)}));Uht(312,22,{3:1,35:1,22:1,312:1},ZC);var une,lne,hne,fne,dne,gne,pne,bne,wne,yne,mne,vne,xne,kne,_ne=z1(vDt,"EdgeType",312,Jjt,(function(){return gst(),M4($v(_ne,1),q_t,312,0,[dne,hne,gne,une,fne,lne])}),(function(t){return gst(),ZZ((x1(),pne),t)}));Uht(977,1,oCt,Mh),Pkt.Qe=function(t){xbt(t)},y$(vDt,"FixedLayouterOptions",977),Uht(978,1,{},Ws),Pkt.$e=function(){return new zs},Pkt._e=function(t){},y$(vDt,"FixedLayouterOptions/FixedFactory",978),Uht(334,22,{3:1,35:1,22:1,334:1},JC);var Ene,Tne,Cne,Sne,Ane=z1(vDt,"HierarchyHandling",334,Jjt,(function(){return E8(),M4($v(Ane,1),q_t,334,0,[Tne,Ene,Cne])}),(function(t){return E8(),ZZ((FV(),Sne),t)}));Uht(285,22,{3:1,35:1,22:1,285:1},tS);var Mne,Ine,Lne,One,Dne,Nne=z1(vDt,"LabelSide",285,Jjt,(function(){return Prt(),M4($v(Nne,1),q_t,285,0,[One,Mne,Ine,Lne])}),(function(t){return Prt(),ZZ((WQ(),Dne),t)}));Uht(93,22,{3:1,35:1,22:1,93:1},eS);var Pne,Bne,Fne,jne,Rne,$ne,zne,qne,Hne,Une,Gne=z1(vDt,"NodeLabelPlacement",93,Jjt,(function(){return mft(),M4($v(Gne,1),q_t,93,0,[Bne,Pne,jne,Hne,qne,zne,Rne,$ne,Fne])}),(function(t){return mft(),ZZ((W3(),Une),t)}));Uht(249,22,{3:1,35:1,22:1,249:1},nS);var Yne,Kne,Wne,Xne,Vne,Qne,Zne=z1(vDt,"PortAlignment",249,Jjt,(function(){return Yet(),M4($v(Zne,1),q_t,249,0,[Wne,Vne,Yne,Kne,Xne])}),(function(t){return Yet(),ZZ((pJ(),Qne),t)}));Uht(98,22,{3:1,35:1,22:1,98:1},iS);var Jne,tie,eie,nie,iie,rie,aie,oie=z1(vDt,"PortConstraints",98,Jjt,(function(){return Oot(),M4($v(oie,1),q_t,98,0,[rie,iie,nie,Jne,eie,tie])}),(function(t){return Oot(),ZZ((WJ(),aie),t)}));Uht(273,22,{3:1,35:1,22:1,273:1},rS);var sie,cie,uie,lie,hie,fie,die,gie=z1(vDt,"PortLabelPlacement",273,Jjt,(function(){return Tlt(),M4($v(gie,1),q_t,273,0,[hie,uie,lie,cie,sie,fie])}),(function(t){return Tlt(),ZZ((v1(),die),t)}));Uht(61,22,{3:1,35:1,22:1,61:1},aS);var pie,bie,wie,yie,mie,vie,xie,kie,_ie,Eie,Tie,Cie,Sie,Aie,Mie,Iie,Lie,Oie,Die,Nie,Pie,Bie,Fie,jie,Rie,$ie,zie,qie=z1(vDt,"PortSide",61,Jjt,(function(){return _xt(),M4($v(qie,1),sAt,61,0,[Nie,bie,pie,Die,Pie])}),(function(t){return _xt(),ZZ((bJ(),Bie),t)}));Uht(981,1,oCt,Ih),Pkt.Qe=function(t){bpt(t)},y$(vDt,"RandomLayouterOptions",981),Uht(982,1,{},Xs),Pkt.$e=function(){return new Js},Pkt._e=function(t){},y$(vDt,"RandomLayouterOptions/RandomFactory",982),Uht(374,22,{3:1,35:1,22:1,374:1},oS);var Hie,Uie,Gie,Yie,Kie,Wie=z1(vDt,"SizeConstraint",374,Jjt,(function(){return Ttt(),M4($v(Wie,1),q_t,374,0,[Gie,Yie,Uie,Hie])}),(function(t){return Ttt(),ZZ((QQ(),Kie),t)}));Uht(259,22,{3:1,35:1,22:1,259:1},sS);var Xie,Vie,Qie,Zie,Jie,tre,ere,nre,ire,rre,are=z1(vDt,"SizeOptions",259,Jjt,(function(){return Gbt(),M4($v(are,1),q_t,259,0,[Qie,Jie,Vie,tre,ere,ire,nre,Zie,Xie])}),(function(t){return Gbt(),ZZ((X4(),rre),t)}));Uht(370,1,{1949:1},nm),Pkt.b=!1,Pkt.c=0,Pkt.d=-1,Pkt.e=null,Pkt.f=null,Pkt.g=-1,Pkt.j=!1,Pkt.k=!1,Pkt.n=!1,Pkt.o=0,Pkt.q=0,Pkt.r=0,y$(ILt,"BasicProgressMonitor",370),Uht(972,209,UCt,Hs),Pkt.Ze=function(t,e){var n,i,r,a,o,s,c,u,l;0===(tst(e,"Box layout",2),r=Zm(oD(yft(t,(Dst(),J9t)))),a=YP(yft(t,V9t),116),n=Vm(aD(yft(t,G9t))),i=Vm(aD(yft(t,Y9t))),YP(yft(t,H9t),311).g)?(s=new rP((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a)),qq(),KM(s,new Yp(i)),o=s,c=Sut(t),(null==(u=oD(yft(t,q9t)))||(dz(u),u<=0))&&(u=1.3),Ixt(t,(l=Dxt(o,r,a,c.a,c.b,n,(dz(u),u))).a,l.b,!1,!0)):Umt(t,r,a,n),Dct(e)},y$(ILt,"BoxLayoutProvider",972),Uht(973,1,PTt,Yp),Pkt.ue=function(t,e){return function(t,e,n){var i,r,a;return!(r=YP(yft(e,(Dst(),Z9t)),19))&&(r=u7(0)),!(a=YP(yft(n,Z9t),19))&&(a=u7(0)),r.a>a.a?-1:r.a0&&p.b>0&&Ixt(b,p.a,p.b,!0,!0)),d=e.Math.max(d,b.i+b.g),g=e.Math.max(g,b.j+b.f),h=new zI((!b.n&&(b.n=new gR(Vre,b,1,7)),b.n));h.e!=h.i.gc();)c=YP(ant(h),137),(E=YP(yft(c,kne),8))&&wM(c,E.a,E.b),d=e.Math.max(d,b.i+c.i+c.g),g=e.Math.max(g,b.j+c.j+c.f);for(x=new zI((!b.c&&(b.c=new gR(Zre,b,9,9)),b.c));x.e!=x.i.gc();)for(v=YP(ant(x),118),(E=YP(yft(v,kne),8))&&wM(v,E.a,E.b),k=b.i+v.i,_=b.j+v.j,d=e.Math.max(d,k+v.g),g=e.Math.max(g,_+v.f),u=new zI((!v.n&&(v.n=new gR(Vre,v,1,7)),v.n));u.e!=u.i.gc();)c=YP(ant(u),137),(E=YP(yft(c,kne),8))&&wM(c,E.a,E.b),d=e.Math.max(d,k+c.i+c.g),g=e.Math.max(g,_+c.j+c.f);for(a=new Sj(cL(cdt(b).a.Kc(),new l));Ght(a);)f=Lxt(i=YP(pX(a),79)),d=e.Math.max(d,f.a),g=e.Math.max(g,f.b);for(r=new Sj(cL(sdt(b).a.Kc(),new l));Ght(r);)kU(Nst(i=YP(pX(r),79)))!=t&&(f=Lxt(i),d=e.Math.max(d,f.a),g=e.Math.max(g,f.b))}if(o==(l9(),ine))for(w=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));w.e!=w.i.gc();)for(r=new Sj(cL(cdt(b=YP(ant(w),33)).a.Kc(),new l));Ght(r);)0==(s=Mwt(i=YP(pX(r),79))).b?Cnt(i,Bte,null):Cnt(i,Bte,s);Vm(aD(yft(t,(S6(),yne))))||Ixt(t,d+(m=YP(yft(t,vne),116)).b+m.c,g+m.d+m.a,!0,!0),Dct(n)},y$(ILt,"FixedLayoutProvider",1138),Uht(373,134,{3:1,414:1,373:1,94:1,134:1},Vs,NZ),Pkt.Jf=function(t){var e,n,i,r,a,o,s;if(t)try{for(o=Cbt(t,";,;"),r=0,a=(i=o).length;r>16&oEt|t^(n&oEt)<<16},Pkt.Kc=function(){return new Vp(this)},Pkt.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+k9(this.b)+")":null==this.b?"pair("+k9(this.a)+",null)":"pair("+k9(this.a)+","+k9(this.b)+")"},y$(ILt,"Pair",46),Uht(983,1,o_t,Vp),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},Pkt.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw ow(new Nw)},Pkt.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),ow(new Mw)},Pkt.b=!1,Pkt.c=!1,y$(ILt,"Pair/1",983),Uht(448,1,{448:1},wq),Pkt.Fb=function(t){return jz(this.a,YP(t,448).a)&&jz(this.c,YP(t,448).c)&&jz(this.d,YP(t,448).d)&&jz(this.b,YP(t,448).b)},Pkt.Hb=function(){return j6(M4($v(Rjt,1),Zkt,1,5,[this.a,this.c,this.d,this.b]))},Pkt.Ib=function(){return"("+this.a+Vkt+this.c+Vkt+this.d+Vkt+this.b+")"},y$(ILt,"Quadruple",448),Uht(1126,209,UCt,Js),Pkt.Ze=function(t,n){var i;tst(n,"Random Layout",1),0!=(!t.a&&(t.a=new gR(Qre,t,10,11)),t.a).i?(function(t,n,i,r,a){var o,s,c,u,h,f,d,g,p,b,w,y,m,v,x,k,_,E,T,C;for(v=0,b=0,p=0,g=1,m=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));m.e!=m.i.gc();)g+=NK(new Sj(cL(cdt(w=YP(ant(m),33)).a.Kc(),new l))),E=w.g,b=e.Math.max(b,E),d=w.f,p=e.Math.max(p,d),v+=E*d;for(s=v+2*r*r*g*(!t.a&&(t.a=new gR(Qre,t,10,11)),t.a).i,o=e.Math.sqrt(s),u=e.Math.max(o*i,b),c=e.Math.max(o/i,p),y=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));y.e!=y.i.gc();)w=YP(ant(y),33),T=a.b+(Hft(n,26)*gTt+Hft(n,27)*pTt)*(u-w.g),C=a.b+(Hft(n,26)*gTt+Hft(n,27)*pTt)*(c-w.f),S1(w,T),A1(w,C);for(_=u+(a.b+a.c),k=c+(a.d+a.a),x=new zI((!t.a&&(t.a=new gR(Qre,t,10,11)),t.a));x.e!=x.i.gc();)for(f=new Sj(cL(cdt(YP(ant(x),33)).a.Kc(),new l));Ght(f);)Dht(h=YP(pX(f),79))||lkt(h,n,_,k);Ixt(t,_+=a.b+a.c,k+=a.d+a.a,!1,!0)}(t,(i=YP(yft(t,(Ett(),$ie)),19))&&0!=i.a?new bW(i.a):new J7,Zm(oD(yft(t,Fie))),Zm(oD(yft(t,zie))),YP(yft(t,jie),116)),Dct(n)):Dct(n)},y$(ILt,"RandomLayoutProvider",1126),Uht(553,1,{}),Pkt.qf=function(){return new YC(this.f.i,this.f.j)},Pkt.We=function(t){return TH(t,(Ekt(),fee))?yft(this.f,mre):yft(this.f,t)},Pkt.rf=function(){return new YC(this.f.g,this.f.f)},Pkt.sf=function(){return this.g},Pkt.Xe=function(t){return RV(this.f,t)},Pkt.tf=function(t){S1(this.f,t.a),A1(this.f,t.b)},Pkt.uf=function(t){C1(this.f,t.a),T1(this.f,t.b)},Pkt.vf=function(t){this.g=t},Pkt.g=0,y$(VDt,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),Uht(554,1,{839:1},Qp),Pkt.wf=function(){var t,e;if(!this.b)for(this.b=WY(Kz(this.a).i),e=new zI(Kz(this.a));e.e!=e.i.gc();)t=YP(ant(e),137),QP(this.b,new Um(t));return this.b},Pkt.b=null,y$(VDt,"ElkGraphAdapters/ElkEdgeAdapter",554),Uht(301,553,{},Hm),Pkt.xf=function(){return art(this)},Pkt.a=null,y$(VDt,"ElkGraphAdapters/ElkGraphAdapter",301),Uht(630,553,{181:1},Um),y$(VDt,"ElkGraphAdapters/ElkLabelAdapter",630),Uht(629,553,{680:1},QL),Pkt.wf=function(){return function(t){var e,n;if(!t.b)for(t.b=WY(YP(t.f,33).Ag().i),n=new zI(YP(t.f,33).Ag());n.e!=n.i.gc();)e=YP(ant(n),137),QP(t.b,new Um(e));return t.b}(this)},Pkt.Af=function(){var t;return!(t=YP(yft(this.f,(Ekt(),jte)),142))&&(t=new xy),t},Pkt.Cf=function(){return function(t){var e,n;if(!t.e)for(t.e=WY(Wz(YP(t.f,33)).i),n=new zI(Wz(YP(t.f,33)));n.e!=n.i.gc();)e=YP(ant(n),118),QP(t.e,new Ab(e));return t.e}(this)},Pkt.Ef=function(t){var e;e=new pP(t),Cnt(this.f,(Ekt(),jte),e)},Pkt.Ff=function(t){Cnt(this.f,(Ekt(),Jte),new gP(t))},Pkt.yf=function(){return this.d},Pkt.zf=function(){var t,e;if(!this.a)for(this.a=new Jb,e=new Sj(cL(sdt(YP(this.f,33)).a.Kc(),new l));Ght(e);)t=YP(pX(e),79),QP(this.a,new Qp(t));return this.a},Pkt.Bf=function(){var t,e;if(!this.c)for(this.c=new Jb,e=new Sj(cL(cdt(YP(this.f,33)).a.Kc(),new l));Ght(e);)t=YP(pX(e),79),QP(this.c,new Qp(t));return this.c},Pkt.Df=function(){return 0!=nH(YP(this.f,33)).i||Vm(aD(YP(this.f,33).We((Ekt(),Ote))))},Pkt.Gf=function(){mZ(this,(hE(),yre))},Pkt.a=null,Pkt.b=null,Pkt.c=null,Pkt.d=null,Pkt.e=null,y$(VDt,"ElkGraphAdapters/ElkNodeAdapter",629),Uht(1266,553,{838:1},Ab),Pkt.wf=function(){return function(t){var e,n;if(!t.b)for(t.b=WY(YP(t.f,118).Ag().i),n=new zI(YP(t.f,118).Ag());n.e!=n.i.gc();)e=YP(ant(n),137),QP(t.b,new Um(e));return t.b}(this)},Pkt.zf=function(){var t,e;if(!this.a)for(this.a=aO(YP(this.f,118).xg().i),e=new zI(YP(this.f,118).xg());e.e!=e.i.gc();)t=YP(ant(e),79),QP(this.a,new Qp(t));return this.a},Pkt.Bf=function(){var t,e;if(!this.c)for(this.c=aO(YP(this.f,118).yg().i),e=new zI(YP(this.f,118).yg());e.e!=e.i.gc();)t=YP(ant(e),79),QP(this.c,new Qp(t));return this.c},Pkt.Hf=function(){return YP(YP(this.f,118).We((Ekt(),vee)),61)},Pkt.If=function(){var t,e,n,i,r,a,o;for(i=yU(YP(this.f,118)),n=new zI(YP(this.f,118).yg());n.e!=n.i.gc();)for(o=new zI((!(t=YP(ant(n),79)).c&&(t.c=new CN(Hre,t,5,8)),t.c));o.e!=o.i.gc();){if(zJ(Zot(a=YP(ant(o),82)),i))return!0;if(Zot(a)==i&&Vm(aD(yft(t,(Ekt(),Dte)))))return!0}for(e=new zI(YP(this.f,118).xg());e.e!=e.i.gc();)for(r=new zI((!(t=YP(ant(e),79)).b&&(t.b=new CN(Hre,t,4,7)),t.b));r.e!=r.i.gc();)if(zJ(Zot(YP(ant(r),82)),i))return!0;return!1},Pkt.a=null,Pkt.b=null,Pkt.c=null,y$(VDt,"ElkGraphAdapters/ElkPortAdapter",1266),Uht(1267,1,PTt,tc),Pkt.ue=function(t,e){return function(t,e){var n,i,r,a;if(0!=(a=YP(yft(t,(Ekt(),vee)),61).g-YP(yft(e,vee),61).g))return a;if(n=YP(yft(t,pee),19),i=YP(yft(e,pee),19),n&&i&&0!=(r=n.a-i.a))return r;switch(YP(yft(t,vee),61).g){case 1:return C7(t.i,e.i);case 2:return C7(t.j,e.j);case 3:return C7(e.i,t.i);case 4:return C7(e.j,t.j);default:throw ow(new Km(gAt))}}(YP(t,118),YP(e,118))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(VDt,"ElkGraphAdapters/PortComparator",1267);var xre,kre,_re,Ere,Tre,Cre,Sre,Are,Mre,Ire,Lre,Ore,Dre,Nre,Pre,Bre,Fre,jre=eF(QDt,"EObject"),Rre=eF(ZDt,JDt),$re=eF(ZDt,tNt),zre=eF(ZDt,eNt),qre=eF(ZDt,"ElkShape"),Hre=eF(ZDt,nNt),Ure=eF(ZDt,iNt),Gre=eF(ZDt,rNt),Yre=eF(QDt,aNt),Kre=eF(QDt,"EFactory"),Wre=eF(QDt,oNt),Xre=eF(QDt,"EPackage"),Vre=eF(ZDt,sNt),Qre=eF(ZDt,cNt),Zre=eF(ZDt,uNt);Uht(90,1,lNt),Pkt.Jg=function(){return this.Kg(),null},Pkt.Kg=function(){return null},Pkt.Lg=function(){return this.Kg(),!1},Pkt.Mg=function(){return!1},Pkt.Ng=function(t){O3(this,t)},y$(hNt,"BasicNotifierImpl",90),Uht(97,90,mNt),Pkt.nh=function(){return hM(this)},Pkt.Og=function(t,e){return t},Pkt.Pg=function(){throw ow(new Lw)},Pkt.Qg=function(t){var e;return e=Xnt(YP(_J(this.Tg(),this.Vg()),18)),this.eh().ih(this,e.n,e.f,t)},Pkt.Rg=function(t,e){throw ow(new Lw)},Pkt.Sg=function(t,e,n){return iwt(this,t,e,n)},Pkt.Tg=function(){var t;return this.Pg()&&(t=this.Pg().ck())?t:this.zh()},Pkt.Ug=function(){return Fht(this)},Pkt.Vg=function(){throw ow(new Lw)},Pkt.Wg=function(){var t,e;return!(e=this.ph().dk())&&this.Pg().ik((wE(),e=null==(t=HH(ryt(this.Tg())))?Roe:new XL(this,t))),e},Pkt.Xg=function(t,e){return t},Pkt.Yg=function(t){return t.Gj()?t.aj():X9(this.Tg(),t)},Pkt.Zg=function(){var t;return(t=this.Pg())?t.fk():null},Pkt.$g=function(){return this.Pg()?this.Pg().ck():null},Pkt._g=function(t,e,n){return Snt(this,t,e,n)},Pkt.ah=function(t){return yQ(this,t)},Pkt.bh=function(t,e){return yX(this,t,e)},Pkt.dh=function(){var t;return!!(t=this.Pg())&&t.gk()},Pkt.eh=function(){throw ow(new Lw)},Pkt.fh=function(){return Ztt(this)},Pkt.gh=function(t,e,n,i){return gnt(this,t,e,i)},Pkt.hh=function(t,e,n){return YP(_J(this.Tg(),e),66).Nj().Qj(this,this.yh(),e-this.Ah(),t,n)},Pkt.ih=function(t,e,n,i){return zH(this,t,e,i)},Pkt.jh=function(t,e,n){return YP(_J(this.Tg(),e),66).Nj().Rj(this,this.yh(),e-this.Ah(),t,n)},Pkt.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},Pkt.lh=function(t){return nnt(this,t)},Pkt.mh=function(t){return _U(this,t)},Pkt.oh=function(t){return Qmt(this,t)},Pkt.ph=function(){throw ow(new Lw)},Pkt.qh=function(){return this.Pg()?this.Pg().ek():null},Pkt.rh=function(){return Ztt(this)},Pkt.sh=function(t,e){Gut(this,t,e)},Pkt.th=function(t){this.ph().hk(t)},Pkt.uh=function(t){this.ph().kk(t)},Pkt.vh=function(t){this.ph().jk(t)},Pkt.wh=function(t,e){var n,i,r,a;return(a=this.Zg())&&t&&(e=mnt(a.Vk(),this,e),a.Zk(this)),(i=this.eh())&&(Ebt(this,this.eh(),this.Vg()).Bb&QEt?(r=i.fh())&&(t?!a&&r.Zk(this):r.Yk(this)):(e=(n=this.Vg())>=0?this.Qg(e):this.eh().ih(this,-1-n,null,e),e=this.Sg(null,-1,e))),this.uh(t),e},Pkt.xh=function(t){var e,n,i,r,a,o,s;if((a=X9(n=this.Tg(),t))>=(e=this.Ah()))return YP(t,66).Nj().Uj(this,this.yh(),a-e);if(a<=-1){if(!(o=Zmt((lut(),rse),n,t)))throw ow(new Ym(fNt+t.ne()+pNt));if(vE(),YP(o,66).Oj()||(o=PG(xZ(rse,o))),r=YP((i=this.Yg(o))>=0?this._g(i,!0,!0):Qlt(this,o,!0),153),(s=o.Zj())>1||-1==s)return YP(YP(r,215).hl(t,!1),76)}else if(t.$j())return YP((i=this.Yg(t))>=0?this._g(i,!1,!0):Qlt(this,t,!1),76);return new RS(this,t)},Pkt.yh=function(){return IZ(this)},Pkt.zh=function(){return(Y$(),ooe).S},Pkt.Ah=function(){return d$(this.zh())},Pkt.Bh=function(t){iut(this,t)},Pkt.Ib=function(){return Nft(this)},y$(vNt,"BasicEObjectImpl",97),Uht(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),Pkt.Ch=function(t){return LZ(this)[t]},Pkt.Dh=function(t,e){L$(LZ(this),t,e)},Pkt.Eh=function(t){L$(LZ(this),t,null)},Pkt.Jg=function(){return YP(B3(this,4),126)},Pkt.Kg=function(){throw ow(new Lw)},Pkt.Lg=function(){return 0!=(4&this.Db)},Pkt.Pg=function(){throw ow(new Lw)},Pkt.Fh=function(t){cet(this,2,t)},Pkt.Rg=function(t,e){this.Db=e<<16|255&this.Db,this.Fh(t)},Pkt.Tg=function(){return EH(this)},Pkt.Vg=function(){return this.Db>>16},Pkt.Wg=function(){var t;return wE(),null==(t=HH(ryt(YP(B3(this,16),26)||this.zh())))?Roe:new XL(this,t)},Pkt.Mg=function(){return 0==(1&this.Db)},Pkt.Zg=function(){return YP(B3(this,128),1935)},Pkt.$g=function(){return YP(B3(this,16),26)},Pkt.dh=function(){return 0!=(32&this.Db)},Pkt.eh=function(){return YP(B3(this,2),49)},Pkt.kh=function(){return 0!=(64&this.Db)},Pkt.ph=function(){throw ow(new Lw)},Pkt.qh=function(){return YP(B3(this,64),281)},Pkt.th=function(t){cet(this,16,t)},Pkt.uh=function(t){cet(this,128,t)},Pkt.vh=function(t){cet(this,64,t)},Pkt.yh=function(){return uet(this)},Pkt.Db=0,y$(vNt,"MinimalEObjectImpl",114),Uht(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Pkt.Fh=function(t){this.Cb=t},Pkt.eh=function(){return this.Cb},y$(vNt,"MinimalEObjectImpl/Container",115),Uht(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Pkt._g=function(t,e,n){return vrt(this,t,e,n)},Pkt.jh=function(t,e,n){return sct(this,t,e,n)},Pkt.lh=function(t){return KG(this,t)},Pkt.sh=function(t,e){Y5(this,t,e)},Pkt.zh=function(){return ekt(),Dre},Pkt.Bh=function(t){U4(this,t)},Pkt.Ve=function(){return Qet(this)},Pkt.We=function(t){return yft(this,t)},Pkt.Xe=function(t){return RV(this,t)},Pkt.Ye=function(t,e){return Cnt(this,t,e)},y$(xNt,"EMapPropertyHolderImpl",1985),Uht(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ic),Pkt._g=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return Snt(this,t,e,n)},Pkt.lh=function(t){switch(t){case 0:return 0!=this.a;case 1:return 0!=this.b}return nnt(this,t)},Pkt.sh=function(t,e){switch(t){case 0:return void k1(this,Qm(oD(e)));case 1:return void _1(this,Qm(oD(e)))}Gut(this,t,e)},Pkt.zh=function(){return ekt(),_re},Pkt.Bh=function(t){switch(t){case 0:return void k1(this,0);case 1:return void _1(this,0)}iut(this,t)},Pkt.Ib=function(){var t;return 64&this.Db?Nft(this):((t=new vL(Nft(this))).a+=" (x: ",Wx(t,this.a),t.a+=", y: ",Wx(t,this.b),t.a+=")",t.a)},Pkt.a=0,Pkt.b=0,y$(xNt,"ElkBendPointImpl",567),Uht(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Pkt._g=function(t,e,n){return W8(this,t,e,n)},Pkt.hh=function(t,e,n){return ast(this,t,e,n)},Pkt.jh=function(t,e,n){return u4(this,t,e,n)},Pkt.lh=function(t){return R3(this,t)},Pkt.sh=function(t,e){Uat(this,t,e)},Pkt.zh=function(){return ekt(),Sre},Pkt.Bh=function(t){T8(this,t)},Pkt.zg=function(){return this.k},Pkt.Ag=function(){return Kz(this)},Pkt.Ib=function(){return H7(this)},Pkt.k=null,y$(xNt,"ElkGraphElementImpl",723),Uht(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Pkt._g=function(t,e,n){return v9(this,t,e,n)},Pkt.lh=function(t){return R9(this,t)},Pkt.sh=function(t,e){Gat(this,t,e)},Pkt.zh=function(){return ekt(),Ore},Pkt.Bh=function(t){Z9(this,t)},Pkt.Bg=function(){return this.f},Pkt.Cg=function(){return this.g},Pkt.Dg=function(){return this.i},Pkt.Eg=function(){return this.j},Pkt.Fg=function(t,e){bM(this,t,e)},Pkt.Gg=function(t,e){wM(this,t,e)},Pkt.Hg=function(t){S1(this,t)},Pkt.Ig=function(t){A1(this,t)},Pkt.Ib=function(){return bct(this)},Pkt.f=0,Pkt.g=0,Pkt.i=0,Pkt.j=0,y$(xNt,"ElkShapeImpl",724),Uht(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Pkt._g=function(t,e,n){return cit(this,t,e,n)},Pkt.hh=function(t,e,n){return Aat(this,t,e,n)},Pkt.jh=function(t,e,n){return Mat(this,t,e,n)},Pkt.lh=function(t){return P5(this,t)},Pkt.sh=function(t,e){rft(this,t,e)},Pkt.zh=function(){return ekt(),Ere},Pkt.Bh=function(t){pnt(this,t)},Pkt.xg=function(){return!this.d&&(this.d=new CN(Ure,this,8,5)),this.d},Pkt.yg=function(){return!this.e&&(this.e=new CN(Ure,this,7,4)),this.e},y$(xNt,"ElkConnectableShapeImpl",725),Uht(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},nc),Pkt.Qg=function(t){return nat(this,t)},Pkt._g=function(t,e,n){switch(t){case 3:return wU(this);case 4:return!this.b&&(this.b=new CN(Hre,this,4,7)),this.b;case 5:return!this.c&&(this.c=new CN(Hre,this,5,8)),this.c;case 6:return!this.a&&(this.a=new gR(Gre,this,6,6)),this.a;case 7:return mL(),!this.b&&(this.b=new CN(Hre,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new CN(Hre,this,5,8)),this.c.i<=1));case 8:return mL(),!!Dht(this);case 9:return mL(),!!Ult(this);case 10:return mL(),!this.b&&(this.b=new CN(Hre,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new CN(Hre,this,5,8)),0!=this.c.i)}return W8(this,t,e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?nat(this,n):this.Cb.ih(this,-1-i,null,n)),CD(this,YP(t,33),n);case 4:return!this.b&&(this.b=new CN(Hre,this,4,7)),ctt(this.b,t,n);case 5:return!this.c&&(this.c=new CN(Hre,this,5,8)),ctt(this.c,t,n);case 6:return!this.a&&(this.a=new gR(Gre,this,6,6)),ctt(this.a,t,n)}return ast(this,t,e,n)},Pkt.jh=function(t,e,n){switch(e){case 3:return CD(this,null,n);case 4:return!this.b&&(this.b=new CN(Hre,this,4,7)),mnt(this.b,t,n);case 5:return!this.c&&(this.c=new CN(Hre,this,5,8)),mnt(this.c,t,n);case 6:return!this.a&&(this.a=new gR(Gre,this,6,6)),mnt(this.a,t,n)}return u4(this,t,e,n)},Pkt.lh=function(t){switch(t){case 3:return!!wU(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new CN(Hre,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new CN(Hre,this,5,8)),this.c.i<=1));case 8:return Dht(this);case 9:return Ult(this);case 10:return!this.b&&(this.b=new CN(Hre,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new CN(Hre,this,5,8)),0!=this.c.i)}return R3(this,t)},Pkt.sh=function(t,e){switch(t){case 3:return void kdt(this,YP(e,33));case 4:return!this.b&&(this.b=new CN(Hre,this,4,7)),Fmt(this.b),!this.b&&(this.b=new CN(Hre,this,4,7)),void w$(this.b,YP(e,14));case 5:return!this.c&&(this.c=new CN(Hre,this,5,8)),Fmt(this.c),!this.c&&(this.c=new CN(Hre,this,5,8)),void w$(this.c,YP(e,14));case 6:return!this.a&&(this.a=new gR(Gre,this,6,6)),Fmt(this.a),!this.a&&(this.a=new gR(Gre,this,6,6)),void w$(this.a,YP(e,14))}Uat(this,t,e)},Pkt.zh=function(){return ekt(),Tre},Pkt.Bh=function(t){switch(t){case 3:return void kdt(this,null);case 4:return!this.b&&(this.b=new CN(Hre,this,4,7)),void Fmt(this.b);case 5:return!this.c&&(this.c=new CN(Hre,this,5,8)),void Fmt(this.c);case 6:return!this.a&&(this.a=new gR(Gre,this,6,6)),void Fmt(this.a)}T8(this,t)},Pkt.Ib=function(){return cmt(this)},y$(xNt,"ElkEdgeImpl",352),Uht(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},rc),Pkt.Qg=function(t){return Yrt(this,t)},Pkt._g=function(t,e,n){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new qI($re,this,5)),this.a;case 6:return mU(this);case 7:return e?Wnt(this):this.i;case 8:return e?Knt(this):this.f;case 9:return!this.g&&(this.g=new CN(Gre,this,9,10)),this.g;case 10:return!this.e&&(this.e=new CN(Gre,this,10,9)),this.e;case 11:return this.d}return vrt(this,t,e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?Yrt(this,n):this.Cb.ih(this,-1-i,null,n)),SD(this,YP(t,79),n);case 9:return!this.g&&(this.g=new CN(Gre,this,9,10)),ctt(this.g,t,n);case 10:return!this.e&&(this.e=new CN(Gre,this,10,9)),ctt(this.e,t,n)}return YP(_J(YP(B3(this,16),26)||(ekt(),Cre),e),66).Nj().Qj(this,uet(this),e-d$((ekt(),Cre)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 5:return!this.a&&(this.a=new qI($re,this,5)),mnt(this.a,t,n);case 6:return SD(this,null,n);case 9:return!this.g&&(this.g=new CN(Gre,this,9,10)),mnt(this.g,t,n);case 10:return!this.e&&(this.e=new CN(Gre,this,10,9)),mnt(this.e,t,n)}return sct(this,t,e,n)},Pkt.lh=function(t){switch(t){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!mU(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return KG(this,t)},Pkt.sh=function(t,e){switch(t){case 1:return void M1(this,Qm(oD(e)));case 2:return void L1(this,Qm(oD(e)));case 3:return void E1(this,Qm(oD(e)));case 4:return void I1(this,Qm(oD(e)));case 5:return!this.a&&(this.a=new qI($re,this,5)),Fmt(this.a),!this.a&&(this.a=new qI($re,this,5)),void w$(this.a,YP(e,14));case 6:return void vdt(this,YP(e,79));case 7:return void A0(this,YP(e,82));case 8:return void S0(this,YP(e,82));case 9:return!this.g&&(this.g=new CN(Gre,this,9,10)),Fmt(this.g),!this.g&&(this.g=new CN(Gre,this,9,10)),void w$(this.g,YP(e,14));case 10:return!this.e&&(this.e=new CN(Gre,this,10,9)),Fmt(this.e),!this.e&&(this.e=new CN(Gre,this,10,9)),void w$(this.e,YP(e,14));case 11:return void G0(this,sD(e))}Y5(this,t,e)},Pkt.zh=function(){return ekt(),Cre},Pkt.Bh=function(t){switch(t){case 1:return void M1(this,0);case 2:return void L1(this,0);case 3:return void E1(this,0);case 4:return void I1(this,0);case 5:return!this.a&&(this.a=new qI($re,this,5)),void Fmt(this.a);case 6:return void vdt(this,null);case 7:return void A0(this,null);case 8:return void S0(this,null);case 9:return!this.g&&(this.g=new CN(Gre,this,9,10)),void Fmt(this.g);case 10:return!this.e&&(this.e=new CN(Gre,this,10,9)),void Fmt(this.e);case 11:return void G0(this,null)}U4(this,t)},Pkt.Ib=function(){return xht(this)},Pkt.b=0,Pkt.c=0,Pkt.d=null,Pkt.j=0,Pkt.k=0,y$(xNt,"ElkEdgeSectionImpl",439),Uht(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),Pkt._g=function(t,e,n){return 0==t?(!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab):LQ(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e,n)},Pkt.hh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n)):YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Qj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.jh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n)):YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Rj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.lh=function(t){return 0==t?!!this.Ab&&0!=this.Ab.i:MK(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.oh=function(t){return wxt(this,t)},Pkt.sh=function(t,e){if(0===t)return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));w9(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e)},Pkt.uh=function(t){cet(this,128,t)},Pkt.zh=function(){return Ikt(),yoe},Pkt.Bh=function(t){if(0===t)return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);Z8(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.Gh=function(){this.Bb|=1},Pkt.Hh=function(t){return lwt(this,t)},Pkt.Bb=0,y$(vNt,"EModelElementImpl",150),Uht(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},Lh),Pkt.Ih=function(t,e){return Lvt(this,t,e)},Pkt.Jh=function(t){var e,n,i,r;if(this.a!=QJ(t)||256&t.Bb)throw ow(new Ym(SNt+t.zb+ENt));for(n=_H(t);0!=XK(n.a).i;){if(ort(e=YP(avt(n,0,EI(r=YP(JJ(XK(n.a),0),87).c,88)?YP(r,26):(Ikt(),voe)),26)))return YP(i=QJ(e).Nh().Jh(e),49).th(t),i;n=_H(e)}return"java.util.Map$Entry"==(null!=t.D?t.D:t.B)?new JB(t):new xB(t)},Pkt.Kh=function(t,e){return okt(this,t,e)},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.a}return LQ(this,t-d$((Ikt(),poe)),_J(YP(B3(this,16),26)||poe,t),e,n)},Pkt.hh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 1:return this.a&&(n=YP(this.a,49).ih(this,4,Xre,n)),y8(this,YP(t,235),n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),poe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),poe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 1:return y8(this,null,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),poe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),poe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return MK(this,t-d$((Ikt(),poe)),_J(YP(B3(this,16),26)||poe,t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void qst(this,YP(e,235))}w9(this,t-d$((Ikt(),poe)),_J(YP(B3(this,16),26)||poe,t),e)},Pkt.zh=function(){return Ikt(),poe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void qst(this,null)}Z8(this,t-d$((Ikt(),poe)),_J(YP(B3(this,16),26)||poe,t))},y$(vNt,"EFactoryImpl",704),Uht(MNt,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},ac),Pkt.Ih=function(t,e){switch(t.yj()){case 12:return YP(e,146).tg();case 13:return k9(e);default:throw ow(new Ym(_Nt+t.ne()+ENt))}},Pkt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=QJ(t))?Ont(e.Mh(),t):-1),t.G){case 4:return new oc;case 6:return new Ly;case 7:return new Oy;case 8:return new nc;case 9:return new ic;case 10:return new rc;case 11:return new cc;default:throw ow(new Ym(SNt+t.zb+ENt))}},Pkt.Kh=function(t,e){switch(t.yj()){case 13:case 12:return null;default:throw ow(new Ym(_Nt+t.ne()+ENt))}},y$(xNt,"ElkGraphFactoryImpl",MNt),Uht(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),Pkt.Wg=function(){var t;return null==(t=HH(ryt(YP(B3(this,16),26)||this.zh())))?(wE(),wE(),Roe):new BO(this,t)},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.ne()}return LQ(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return MK(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void this.Lh(sD(e))}w9(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e)},Pkt.zh=function(){return Ikt(),moe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void this.Lh(null)}Z8(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.ne=function(){return this.zb},Pkt.Lh=function(t){w2(this,t)},Pkt.Ib=function(){return P8(this)},Pkt.zb=null,y$(vNt,"ENamedElementImpl",438),Uht(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},xH),Pkt.Qg=function(t){return Qrt(this,t)},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new lR(this,Kae,this)),this.rb;case 6:return!this.vb&&(this.vb=new yN(Xre,this,6,7)),this.vb;case 7:return e?this.Db>>16==7?YP(this.Cb,235):null:vU(this)}return LQ(this,t-d$((Ikt(),_oe)),_J(YP(B3(this,16),26)||_oe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 4:return this.sb&&(n=YP(this.sb,49).ih(this,1,Kre,n)),B8(this,YP(t,471),n);case 5:return!this.rb&&(this.rb=new lR(this,Kae,this)),ctt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new yN(Xre,this,6,7)),ctt(this.vb,t,n);case 7:return this.Cb&&(n=(i=this.Db>>16)>=0?Qrt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,7,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),_oe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),_oe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 4:return B8(this,null,n);case 5:return!this.rb&&(this.rb=new lR(this,Kae,this)),mnt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new yN(Xre,this,6,7)),mnt(this.vb,t,n);case 7:return iwt(this,null,7,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),_oe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),_oe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!vU(this)}return MK(this,t-d$((Ikt(),_oe)),_J(YP(B3(this,16),26)||_oe,t))},Pkt.oh=function(t){return function(t,e){var n,i,r,a,o,s;if(!t.tb){for(!t.rb&&(t.rb=new lR(t,Kae,t)),s=new w_((a=t.rb).i),r=new zI(a);r.e!=r.i.gc();)i=YP(ant(r),138),(n=YP(null==(o=i.ne())?Kut(s.f,null,i):Z7(s.g,o,i),138))&&(null==o?Kut(s.f,null,n):Z7(s.g,o,n));t.tb=s}return YP(eU(t.tb,e),138)}(this,t)||wxt(this,t)},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void w2(this,sD(e));case 2:return void m2(this,sD(e));case 3:return void y2(this,sD(e));case 4:return void cct(this,YP(e,471));case 5:return!this.rb&&(this.rb=new lR(this,Kae,this)),Fmt(this.rb),!this.rb&&(this.rb=new lR(this,Kae,this)),void w$(this.rb,YP(e,14));case 6:return!this.vb&&(this.vb=new yN(Xre,this,6,7)),Fmt(this.vb),!this.vb&&(this.vb=new yN(Xre,this,6,7)),void w$(this.vb,YP(e,14))}w9(this,t-d$((Ikt(),_oe)),_J(YP(B3(this,16),26)||_oe,t),e)},Pkt.vh=function(t){var e,n;if(t&&this.rb)for(n=new zI(this.rb);n.e!=n.i.gc();)EI(e=ant(n),351)&&(YP(e,351).w=null);cet(this,64,t)},Pkt.zh=function(){return Ikt(),_oe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void w2(this,null);case 2:return void m2(this,null);case 3:return void y2(this,null);case 4:return void cct(this,null);case 5:return!this.rb&&(this.rb=new lR(this,Kae,this)),void Fmt(this.rb);case 6:return!this.vb&&(this.vb=new yN(Xre,this,6,7)),void Fmt(this.vb)}Z8(this,t-d$((Ikt(),_oe)),_J(YP(B3(this,16),26)||_oe,t))},Pkt.Gh=function(){xrt(this)},Pkt.Mh=function(){return!this.rb&&(this.rb=new lR(this,Kae,this)),this.rb},Pkt.Nh=function(){return this.sb},Pkt.Oh=function(){return this.ub},Pkt.Ph=function(){return this.xb},Pkt.Qh=function(){return this.yb},Pkt.Rh=function(t){this.ub=t},Pkt.Ib=function(){var t;return 64&this.Db?P8(this):((t=new vL(P8(this))).a+=" (nsURI: ",fA(t,this.yb),t.a+=", nsPrefix: ",fA(t,this.xb),t.a+=")",t.a)},Pkt.xb=null,Pkt.yb=null,y$(vNt,"EPackageImpl",179),Uht(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},$ht),Pkt.q=!1,Pkt.r=!1;var Jre=!1;y$(xNt,"ElkGraphPackageImpl",555),Uht(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},oc),Pkt.Qg=function(t){return Krt(this,t)},Pkt._g=function(t,e,n){switch(t){case 7:return xU(this);case 8:return this.a}return v9(this,t,e,n)},Pkt.hh=function(t,e,n){var i;return 7===e?(this.Cb&&(n=(i=this.Db>>16)>=0?Krt(this,n):this.Cb.ih(this,-1-i,null,n)),bj(this,YP(t,160),n)):ast(this,t,e,n)},Pkt.jh=function(t,e,n){return 7==e?bj(this,null,n):u4(this,t,e,n)},Pkt.lh=function(t){switch(t){case 7:return!!xU(this);case 8:return!NN("",this.a)}return R9(this,t)},Pkt.sh=function(t,e){switch(t){case 7:return void Hdt(this,YP(e,160));case 8:return void M0(this,sD(e))}Gat(this,t,e)},Pkt.zh=function(){return ekt(),Are},Pkt.Bh=function(t){switch(t){case 7:return void Hdt(this,null);case 8:return void M0(this,"")}Z9(this,t)},Pkt.Ib=function(){return Yct(this)},Pkt.a="",y$(xNt,"ElkLabelImpl",354),Uht(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Ly),Pkt.Qg=function(t){return iat(this,t)},Pkt._g=function(t,e,n){switch(t){case 9:return!this.c&&(this.c=new gR(Zre,this,9,9)),this.c;case 10:return!this.a&&(this.a=new gR(Qre,this,10,11)),this.a;case 11:return kU(this);case 12:return!this.b&&(this.b=new gR(Ure,this,12,3)),this.b;case 13:return mL(),!this.a&&(this.a=new gR(Qre,this,10,11)),this.a.i>0}return cit(this,t,e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 9:return!this.c&&(this.c=new gR(Zre,this,9,9)),ctt(this.c,t,n);case 10:return!this.a&&(this.a=new gR(Qre,this,10,11)),ctt(this.a,t,n);case 11:return this.Cb&&(n=(i=this.Db>>16)>=0?iat(this,n):this.Cb.ih(this,-1-i,null,n)),dN(this,YP(t,33),n);case 12:return!this.b&&(this.b=new gR(Ure,this,12,3)),ctt(this.b,t,n)}return Aat(this,t,e,n)},Pkt.jh=function(t,e,n){switch(e){case 9:return!this.c&&(this.c=new gR(Zre,this,9,9)),mnt(this.c,t,n);case 10:return!this.a&&(this.a=new gR(Qre,this,10,11)),mnt(this.a,t,n);case 11:return dN(this,null,n);case 12:return!this.b&&(this.b=new gR(Ure,this,12,3)),mnt(this.b,t,n)}return Mat(this,t,e,n)},Pkt.lh=function(t){switch(t){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!kU(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new gR(Qre,this,10,11)),this.a.i>0}return P5(this,t)},Pkt.sh=function(t,e){switch(t){case 9:return!this.c&&(this.c=new gR(Zre,this,9,9)),Fmt(this.c),!this.c&&(this.c=new gR(Zre,this,9,9)),void w$(this.c,YP(e,14));case 10:return!this.a&&(this.a=new gR(Qre,this,10,11)),Fmt(this.a),!this.a&&(this.a=new gR(Qre,this,10,11)),void w$(this.a,YP(e,14));case 11:return void Odt(this,YP(e,33));case 12:return!this.b&&(this.b=new gR(Ure,this,12,3)),Fmt(this.b),!this.b&&(this.b=new gR(Ure,this,12,3)),void w$(this.b,YP(e,14))}rft(this,t,e)},Pkt.zh=function(){return ekt(),Mre},Pkt.Bh=function(t){switch(t){case 9:return!this.c&&(this.c=new gR(Zre,this,9,9)),void Fmt(this.c);case 10:return!this.a&&(this.a=new gR(Qre,this,10,11)),void Fmt(this.a);case 11:return void Odt(this,null);case 12:return!this.b&&(this.b=new gR(Ure,this,12,3)),void Fmt(this.b)}pnt(this,t)},Pkt.Ib=function(){return ibt(this)},y$(xNt,"ElkNodeImpl",239),Uht(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Oy),Pkt.Qg=function(t){return Wrt(this,t)},Pkt._g=function(t,e,n){return 9==t?yU(this):cit(this,t,e,n)},Pkt.hh=function(t,e,n){var i;return 9===e?(this.Cb&&(n=(i=this.Db>>16)>=0?Wrt(this,n):this.Cb.ih(this,-1-i,null,n)),AD(this,YP(t,33),n)):Aat(this,t,e,n)},Pkt.jh=function(t,e,n){return 9==e?AD(this,null,n):Mat(this,t,e,n)},Pkt.lh=function(t){return 9==t?!!yU(this):P5(this,t)},Pkt.sh=function(t,e){9!==t?rft(this,t,e):xdt(this,YP(e,33))},Pkt.zh=function(){return ekt(),Ire},Pkt.Bh=function(t){9!==t?pnt(this,t):xdt(this,null)},Pkt.Ib=function(){return rbt(this)},y$(xNt,"ElkPortImpl",186);var tae=eF(XNt,"BasicEMap/Entry");Uht(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},cc),Pkt.Fb=function(t){return this===t},Pkt.cd=function(){return this.b},Pkt.Hb=function(){return NL(this)},Pkt.Uh=function(t){I0(this,YP(t,146))},Pkt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return Snt(this,t,e,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.b;case 1:return null!=this.c}return nnt(this,t)},Pkt.sh=function(t,e){switch(t){case 0:return void I0(this,YP(e,146));case 1:return void D0(this,e)}Gut(this,t,e)},Pkt.zh=function(){return ekt(),Lre},Pkt.Bh=function(t){switch(t){case 0:return void I0(this,null);case 1:return void D0(this,null)}iut(this,t)},Pkt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=t?q5(t):0),this.a},Pkt.dd=function(){return this.c},Pkt.Th=function(t){this.a=t},Pkt.ed=function(t){var e;return e=this.c,D0(this,t),e},Pkt.Ib=function(){var t;return 64&this.Db?Nft(this):(pA(pA(pA(t=new Sv,this.b?this.b.tg():e_t),fAt),IL(this.c)),t.a)},Pkt.a=-1,Pkt.c=null;var eae=y$(xNt,"ElkPropertyToValueMapEntryImpl",1092);Uht(984,1,{},hc),y$(ZNt,"JsonAdapter",984),Uht(210,60,Q_t,ov),y$(ZNt,"JsonImportException",210),Uht(857,1,{},Zrt),y$(ZNt,"JsonImporter",857),Uht(891,1,{},wS),y$(ZNt,"JsonImporter/lambda$0$Type",891),Uht(892,1,{},yS),y$(ZNt,"JsonImporter/lambda$1$Type",892),Uht(900,1,{},Zp),y$(ZNt,"JsonImporter/lambda$10$Type",900),Uht(902,1,{},mS),y$(ZNt,"JsonImporter/lambda$11$Type",902),Uht(903,1,{},vS),y$(ZNt,"JsonImporter/lambda$12$Type",903),Uht(909,1,{},Sq),y$(ZNt,"JsonImporter/lambda$13$Type",909),Uht(908,1,{},Cq),y$(ZNt,"JsonImporter/lambda$14$Type",908),Uht(904,1,{},xS),y$(ZNt,"JsonImporter/lambda$15$Type",904),Uht(905,1,{},kS),y$(ZNt,"JsonImporter/lambda$16$Type",905),Uht(906,1,{},_S),y$(ZNt,"JsonImporter/lambda$17$Type",906),Uht(907,1,{},ES),y$(ZNt,"JsonImporter/lambda$18$Type",907),Uht(912,1,{},Jp),y$(ZNt,"JsonImporter/lambda$19$Type",912),Uht(893,1,{},tb),y$(ZNt,"JsonImporter/lambda$2$Type",893),Uht(910,1,{},eb),y$(ZNt,"JsonImporter/lambda$20$Type",910),Uht(911,1,{},nb),y$(ZNt,"JsonImporter/lambda$21$Type",911),Uht(915,1,{},ib),y$(ZNt,"JsonImporter/lambda$22$Type",915),Uht(913,1,{},rb),y$(ZNt,"JsonImporter/lambda$23$Type",913),Uht(914,1,{},ab),y$(ZNt,"JsonImporter/lambda$24$Type",914),Uht(917,1,{},ob),y$(ZNt,"JsonImporter/lambda$25$Type",917),Uht(916,1,{},sb),y$(ZNt,"JsonImporter/lambda$26$Type",916),Uht(918,1,k_t,TS),Pkt.td=function(t){!function(t,e,n){var i,r;r=null,(i=bU(t,n))&&(r=rut(i)),Pet(e,n,r)}(this.b,this.a,sD(t))},y$(ZNt,"JsonImporter/lambda$27$Type",918),Uht(919,1,k_t,CS),Pkt.td=function(t){!function(t,e,n){var i,r;r=null,(i=bU(t,n))&&(r=rut(i)),Pet(e,n,r)}(this.b,this.a,sD(t))},y$(ZNt,"JsonImporter/lambda$28$Type",919),Uht(920,1,{},SS),y$(ZNt,"JsonImporter/lambda$29$Type",920),Uht(896,1,{},cb),y$(ZNt,"JsonImporter/lambda$3$Type",896),Uht(921,1,{},AS),y$(ZNt,"JsonImporter/lambda$30$Type",921),Uht(922,1,{},ub),y$(ZNt,"JsonImporter/lambda$31$Type",922),Uht(923,1,{},lb),y$(ZNt,"JsonImporter/lambda$32$Type",923),Uht(924,1,{},hb),y$(ZNt,"JsonImporter/lambda$33$Type",924),Uht(925,1,{},fb),y$(ZNt,"JsonImporter/lambda$34$Type",925),Uht(859,1,{},db),y$(ZNt,"JsonImporter/lambda$35$Type",859),Uht(929,1,{},OP),y$(ZNt,"JsonImporter/lambda$36$Type",929),Uht(926,1,k_t,gb),Pkt.td=function(t){!function(t,e){var n;Xq(n=new Cm,"x",e.a),Xq(n,"y",e.b),X$(t,n)}(this.a,YP(t,469))},y$(ZNt,"JsonImporter/lambda$37$Type",926),Uht(927,1,k_t,BS),Pkt.td=function(t){!function(t,e,n){zat(e,wut(t,n))}(this.a,this.b,YP(t,202))},y$(ZNt,"JsonImporter/lambda$38$Type",927),Uht(928,1,k_t,FS),Pkt.td=function(t){!function(t,e,n){zat(e,wut(t,n))}(this.a,this.b,YP(t,202))},y$(ZNt,"JsonImporter/lambda$39$Type",928),Uht(894,1,{},pb),y$(ZNt,"JsonImporter/lambda$4$Type",894),Uht(930,1,k_t,bb),Pkt.td=function(t){!function(t,e){var n;Xq(n=new Cm,"x",e.a),Xq(n,"y",e.b),X$(t,n)}(this.a,YP(t,8))},y$(ZNt,"JsonImporter/lambda$40$Type",930),Uht(895,1,{},wb),y$(ZNt,"JsonImporter/lambda$5$Type",895),Uht(899,1,{},yb),y$(ZNt,"JsonImporter/lambda$6$Type",899),Uht(897,1,{},mb),y$(ZNt,"JsonImporter/lambda$7$Type",897),Uht(898,1,{},vb),y$(ZNt,"JsonImporter/lambda$8$Type",898),Uht(901,1,{},xb),y$(ZNt,"JsonImporter/lambda$9$Type",901),Uht(948,1,k_t,kb),Pkt.td=function(t){X$(this.a,new $$(sD(t)))},y$(ZNt,"JsonMetaDataConverter/lambda$0$Type",948),Uht(949,1,k_t,_b),Pkt.td=function(t){!function(t,e){X$(t,new $$(null!=e.f?e.f:""+e.g))}(this.a,YP(t,237))},y$(ZNt,"JsonMetaDataConverter/lambda$1$Type",949),Uht(950,1,k_t,Eb),Pkt.td=function(t){!function(t,e){null!=e.c&&X$(t,new $$(e.c))}(this.a,YP(t,149))},y$(ZNt,"JsonMetaDataConverter/lambda$2$Type",950),Uht(951,1,k_t,Tb),Pkt.td=function(t){!function(t,e){X$(t,new $$(null!=e.f?e.f:""+e.g))}(this.a,YP(t,175))},y$(ZNt,"JsonMetaDataConverter/lambda$3$Type",951),Uht(237,22,{3:1,35:1,22:1,237:1},PS);var nae,iae,rae,aae,oae,sae,cae,uae,lae,hae=z1(RCt,"GraphFeature",237,Jjt,(function(){return zht(),M4($v(hae,1),q_t,237,0,[uae,oae,sae,aae,cae,iae,nae,rae])}),(function(t){return zht(),ZZ((d3(),lae),t)}));Uht(13,1,{35:1,146:1},Sb,ND,PA,LM),Pkt.wd=function(t){return function(t,e){return NX(t.b,e.tg())}(this,YP(t,146))},Pkt.Fb=function(t){return TH(this,t)},Pkt.wg=function(){return int(this)},Pkt.tg=function(){return this.b},Pkt.Hb=function(){return qnt(this.b)},Pkt.Ib=function(){return this.b},y$(RCt,"Property",13),Uht(818,1,PTt,Cb),Pkt.ue=function(t,e){return function(t,e,n){var i,r;return i=YP(e.We(t.a),35),r=YP(n.We(t.a),35),null!=i&&null!=r?e3(i,r):null!=i?-1:null!=r?1:0}(this,YP(t,94),YP(e,94))},Pkt.Fb=function(t){return this===t},Pkt.ve=function(){return new vd(this)},y$(RCt,"PropertyHolderComparator",818),Uht(695,1,o_t,Mb),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return function(t){var e;if(!t.a)throw ow(new Hz);return e=t.a,t.a=kU(t.a),e}(this)},Pkt.Qb=function(){Fx()},Pkt.Ob=function(){return!!this.a},y$(dPt,"ElkGraphUtil/AncestorIterator",695);var fae=eF(XNt,"EList");Uht(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),Pkt.Vc=function(t,e){g7(this,t,e)},Pkt.Fc=function(t){return aQ(this,t)},Pkt.Wc=function(t,e){return a5(this,t,e)},Pkt.Gc=function(t){return w$(this,t)},Pkt.Zh=function(){return new nO(this)},Pkt.$h=function(){return new iO(this)},Pkt._h=function(t){return s0(this,t)},Pkt.ai=function(){return!0},Pkt.bi=function(t,e){},Pkt.ci=function(){},Pkt.di=function(t,e){zV(this,t,e)},Pkt.ei=function(t,e,n){},Pkt.fi=function(t,e){},Pkt.gi=function(t,e,n){},Pkt.Fb=function(t){return _pt(this,t)},Pkt.Hb=function(){return S4(this)},Pkt.hi=function(){return!1},Pkt.Kc=function(){return new zI(this)},Pkt.Yc=function(){return new eO(this)},Pkt.Zc=function(t){var e;if(e=this.gc(),t<0||t>e)throw ow(new wN(t,e));return new WR(this,t)},Pkt.ji=function(t,e){this.ii(t,this.Xc(e))},Pkt.Mc=function(t){return FZ(this,t)},Pkt.li=function(t,e){return e},Pkt._c=function(t,e){return Dnt(this,t,e)},Pkt.Ib=function(){return I9(this)},Pkt.ni=function(){return!0},Pkt.oi=function(t,e){return p6(this,e)},y$(XNt,"AbstractEList",67),Uht(63,67,yPt,gc,NJ,X2),Pkt.Vh=function(t,e){return ost(this,t,e)},Pkt.Wh=function(t){return Sit(this,t)},Pkt.Xh=function(t,e){z8(this,t,e)},Pkt.Yh=function(t){AX(this,t)},Pkt.pi=function(t){return TQ(this,t)},Pkt.$b=function(){MX(this)},Pkt.Hc=function(t){return Pat(this,t)},Pkt.Xb=function(t){return JJ(this,t)},Pkt.qi=function(t){var e,n,i;++this.j,t>(n=null==this.g?0:this.g.length)&&(i=this.g,(e=n+(n/2|0)+4)=0&&(this.$c(e),!0)},Pkt.mi=function(t,e){return this.Ui(t,this.oi(t,e))},Pkt.gc=function(){return this.Vi()},Pkt.Pc=function(){return this.Wi()},Pkt.Qc=function(t){return this.Xi(t)},Pkt.Ib=function(){return this.Yi()},y$(XNt,"DelegatingEList",1995),Uht(1996,1995,cBt),Pkt.Vh=function(t,e){return Lwt(this,t,e)},Pkt.Wh=function(t){return this.Vh(this.Vi(),t)},Pkt.Xh=function(t,e){Pht(this,t,e)},Pkt.Yh=function(t){bht(this,t)},Pkt.ai=function(){return!this.bj()},Pkt.$b=function(){Hmt(this)},Pkt.Zi=function(t,e,n,i,r){return new NH(this,t,e,n,i,r)},Pkt.$i=function(t){O3(this.Ai(),t)},Pkt._i=function(){return null},Pkt.aj=function(){return-1},Pkt.Ai=function(){return null},Pkt.bj=function(){return!1},Pkt.cj=function(t,e){return e},Pkt.dj=function(t,e){return e},Pkt.ej=function(){return!1},Pkt.fj=function(){return!this.Ri()},Pkt.ii=function(t,e){var n,i;return this.ej()?(i=this.fj(),n=jst(this,t,e),this.$i(this.Zi(7,u7(e),n,t,i)),n):jst(this,t,e)},Pkt.$c=function(t){var e,n,i,r;return this.ej()?(n=null,i=this.fj(),e=this.Zi(4,r=nF(this,t),null,t,i),this.bj()&&r?(n=this.dj(r,n))?(n.Ei(e),n.Fi()):this.$i(e):n?(n.Ei(e),n.Fi()):this.$i(e),r):(r=nF(this,t),this.bj()&&r&&(n=this.dj(r,null))&&n.Fi(),r)},Pkt.mi=function(t,e){return Owt(this,t,e)},y$(hNt,"DelegatingNotifyingListImpl",1996),Uht(143,1,uBt),Pkt.Ei=function(t){return kot(this,t)},Pkt.Fi=function(){fZ(this)},Pkt.xi=function(){return this.d},Pkt._i=function(){return null},Pkt.gj=function(){return null},Pkt.yi=function(t){return-1},Pkt.zi=function(){return Dgt(this)},Pkt.Ai=function(){return null},Pkt.Bi=function(){return Ngt(this)},Pkt.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Pkt.hj=function(){return!1},Pkt.Di=function(t){var e,n,i,r,a,o,s,c;switch(this.d){case 1:case 2:switch(t.xi()){case 1:case 2:if(JS(t.Ai())===JS(this.Ai())&&this.yi(null)==t.yi(null))return this.g=t.zi(),1==t.xi()&&(this.d=1),!0}case 4:if(4===t.xi()&&JS(t.Ai())===JS(this.Ai())&&this.yi(null)==t.yi(null))return o=rvt(this),a=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,i=t.Ci(),this.d=6,c=new NJ(2),a<=i?(aQ(c,this.n),aQ(c,t.Bi()),this.g=M4($v(jce,1),vEt,25,15,[this.o=a,i+1])):(aQ(c,t.Bi()),aQ(c,this.n),this.g=M4($v(jce,1),vEt,25,15,[this.o=i,a])),this.n=c,o||(this.o=-2-this.o-1),!0;break;case 6:if(4===t.xi()&&JS(t.Ai())===JS(this.Ai())&&this.yi(null)==t.yi(null)){for(o=rvt(this),i=t.Ci(),s=YP(this.g,48),n=HV(jce,vEt,25,s.length+1,15,1),e=0;e>>0).toString(16))).a+=" (eventType: ",this.d){case 1:n.a+="SET";break;case 2:n.a+="UNSET";break;case 3:n.a+="ADD";break;case 5:n.a+="ADD_MANY";break;case 4:n.a+="REMOVE";break;case 6:n.a+="REMOVE_MANY";break;case 7:n.a+="MOVE";break;case 8:n.a+="REMOVING_ADAPTER";break;case 9:n.a+="RESOLVE";break;default:Xx(n,this.d)}if(vbt(this)&&(n.a+=", touch: true"),n.a+=", position: ",Xx(n,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),n.a+=", notifier: ",hA(n,this.Ai()),n.a+=", feature: ",hA(n,this._i()),n.a+=", oldValue: ",hA(n,Ngt(this)),n.a+=", newValue: ",6==this.d&&EI(this.g,48)){for(e=YP(this.g,48),n.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new bF(this),this.a=this.j),f_(this.b,t)):Pat(this,t)},Pkt.ni=function(){return!0},Pkt.a=0,y$(XNt,"AbstractEList/1",953),Uht(295,73,UEt,wN),y$(XNt,"AbstractEList/BasicIndexOutOfBoundsException",295),Uht(40,1,o_t,zI),Pkt.Nb=function(t){_R(this,t)},Pkt.mj=function(){if(this.i.j!=this.f)throw ow(new Ow)},Pkt.nj=function(){return ant(this)},Pkt.Ob=function(){return this.e!=this.i.gc()},Pkt.Pb=function(){return this.nj()},Pkt.Qb=function(){Vat(this)},Pkt.e=0,Pkt.f=0,Pkt.g=-1,y$(XNt,"AbstractEList/EIterator",40),Uht(278,40,p_t,eO,WR),Pkt.Qb=function(){Vat(this)},Pkt.Rb=function(t){wtt(this,t)},Pkt.oj=function(){var t;try{return t=this.d.Xb(--this.e),this.mj(),this.g=this.e,t}catch(t){throw EI(t=b4(t),73)?(this.mj(),ow(new Nw)):ow(t)}},Pkt.pj=function(t){Oit(this,t)},Pkt.Sb=function(){return 0!=this.e},Pkt.Tb=function(){return this.e},Pkt.Ub=function(){return this.oj()},Pkt.Vb=function(){return this.e-1},Pkt.Wb=function(t){this.pj(t)},y$(XNt,"AbstractEList/EListIterator",278),Uht(341,40,o_t,nO),Pkt.nj=function(){return ont(this)},Pkt.Qb=function(){throw ow(new Lw)},y$(XNt,"AbstractEList/NonResolvingEIterator",341),Uht(385,278,p_t,iO,HN),Pkt.Rb=function(t){throw ow(new Lw)},Pkt.nj=function(){var t;try{return t=this.c.ki(this.e),this.mj(),this.g=this.e++,t}catch(t){throw EI(t=b4(t),73)?(this.mj(),ow(new Nw)):ow(t)}},Pkt.oj=function(){var t;try{return t=this.c.ki(--this.e),this.mj(),this.g=this.e,t}catch(t){throw EI(t=b4(t),73)?(this.mj(),ow(new Nw)):ow(t)}},Pkt.Qb=function(){throw ow(new Lw)},Pkt.Wb=function(t){throw ow(new Lw)},y$(XNt,"AbstractEList/NonResolvingEListIterator",385),Uht(1982,67,fBt),Pkt.Vh=function(t,e){var n,i,r,a,o,s,c,u,l;if(0!=(i=e.gc())){for(n=u6(this,(u=null==(c=YP(B3(this.a,4),126))?0:c.length)+i),(l=u-t)>0&&rmt(c,t,n,t+i,l),s=e.Kc(),a=0;an)throw ow(new wN(t,n));return new kz(this,t)},Pkt.$b=function(){var t,e;++this.j,e=null==(t=YP(B3(this.a,4),126))?0:t.length,Iet(this,null),zV(this,e,t)},Pkt.Hc=function(t){var e,n,i,r;if(null!=(e=YP(B3(this.a,4),126)))if(null!=t){for(i=0,r=(n=e).length;i=(n=null==(e=YP(B3(this.a,4),126))?0:e.length))throw ow(new wN(t,n));return e[t]},Pkt.Xc=function(t){var e,n,i;if(null!=(e=YP(B3(this.a,4),126)))if(null!=t){for(n=0,i=e.length;nn)throw ow(new wN(t,n));return new xz(this,t)},Pkt.ii=function(t,e){var n,i,r;if(t>=(r=null==(n=Btt(this))?0:n.length))throw ow(new jm(pPt+t+bPt+r));if(e>=r)throw ow(new jm(wPt+e+bPt+r));return i=n[e],t!=e&&(t=(o=null==(n=YP(B3(t.a,4),126))?0:n.length))throw ow(new wN(e,o));return r=n[e],1==o?i=null:(rmt(n,0,i=HV(vae,hBt,415,o-1,0,1),0,e),(a=o-e-1)>0&&rmt(n,e+1,i,e,a)),Iet(t,i),Put(t,e,r),r}(this,t)},Pkt.mi=function(t,e){var n,i;return i=(n=Btt(this))[t],PM(n,t,p6(this,e)),Iet(this,n),i},Pkt.gc=function(){var t;return null==(t=YP(B3(this.a,4),126))?0:t.length},Pkt.Pc=function(){var t,e,n;return n=null==(t=YP(B3(this.a,4),126))?0:t.length,e=HV(vae,hBt,415,n,0,1),n>0&&rmt(t,0,e,0,n),e},Pkt.Qc=function(t){var e,n;return(n=null==(e=YP(B3(this.a,4),126))?0:e.length)>0&&(t.lengthn&&L$(t,n,null),t},y$(XNt,"ArrayDelegatingEList",1982),Uht(1038,40,o_t,aX),Pkt.mj=function(){if(this.b.j!=this.f||JS(YP(B3(this.b.a,4),126))!==JS(this.a))throw ow(new Ow)},Pkt.Qb=function(){Vat(this),this.a=YP(B3(this.b.a,4),126)},y$(XNt,"ArrayDelegatingEList/EIterator",1038),Uht(706,278,p_t,cR,xz),Pkt.mj=function(){if(this.b.j!=this.f||JS(YP(B3(this.b.a,4),126))!==JS(this.a))throw ow(new Ow)},Pkt.pj=function(t){Oit(this,t),this.a=YP(B3(this.b.a,4),126)},Pkt.Qb=function(){Vat(this),this.a=YP(B3(this.b.a,4),126)},y$(XNt,"ArrayDelegatingEList/EListIterator",706),Uht(1039,341,o_t,oX),Pkt.mj=function(){if(this.b.j!=this.f||JS(YP(B3(this.b.a,4),126))!==JS(this.a))throw ow(new Ow)},y$(XNt,"ArrayDelegatingEList/NonResolvingEIterator",1039),Uht(707,385,p_t,uR,kz),Pkt.mj=function(){if(this.b.j!=this.f||JS(YP(B3(this.b.a,4),126))!==JS(this.a))throw ow(new Ow)},y$(XNt,"ArrayDelegatingEList/NonResolvingEListIterator",707),Uht(606,295,UEt,BA),y$(XNt,"BasicEList/BasicIndexOutOfBoundsException",606),Uht(696,63,yPt,YS),Pkt.Vc=function(t,e){throw ow(new Lw)},Pkt.Fc=function(t){throw ow(new Lw)},Pkt.Wc=function(t,e){throw ow(new Lw)},Pkt.Gc=function(t){throw ow(new Lw)},Pkt.$b=function(){throw ow(new Lw)},Pkt.qi=function(t){throw ow(new Lw)},Pkt.Kc=function(){return this.Zh()},Pkt.Yc=function(){return this.$h()},Pkt.Zc=function(t){return this._h(t)},Pkt.ii=function(t,e){throw ow(new Lw)},Pkt.ji=function(t,e){throw ow(new Lw)},Pkt.$c=function(t){throw ow(new Lw)},Pkt.Mc=function(t){throw ow(new Lw)},Pkt._c=function(t,e){throw ow(new Lw)},y$(XNt,"BasicEList/UnmodifiableEList",696),Uht(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),Pkt.Vc=function(t,e){!function(t,e,n){t.c.Vc(e,YP(n,133))}(this,t,YP(e,42))},Pkt.Fc=function(t){return function(t,e){return t.c.Fc(YP(e,133))}(this,YP(t,42))},Pkt.Jc=function(t){zW(this,t)},Pkt.Xb=function(t){return YP(JJ(this.c,t),133)},Pkt.ii=function(t,e){return YP(this.c.ii(t,e),42)},Pkt.ji=function(t,e){!function(t,e,n){t.c.ji(e,YP(n,133))}(this,t,YP(e,42))},Pkt.Lc=function(){return new xF(null,new AG(this,16))},Pkt.$c=function(t){return YP(this.c.$c(t),42)},Pkt._c=function(t,e){return function(t,e,n){return YP(t.c._c(e,YP(n,133)),42)}(this,t,YP(e,42))},Pkt.ad=function(t){k2(this,t)},Pkt.Nc=function(){return new AG(this,16)},Pkt.Oc=function(){return new xF(null,new AG(this,16))},Pkt.Wc=function(t,e){return this.c.Wc(t,e)},Pkt.Gc=function(t){return this.c.Gc(t)},Pkt.$b=function(){this.c.$b()},Pkt.Hc=function(t){return this.c.Hc(t)},Pkt.Ic=function(t){return d4(this.c,t)},Pkt.qj=function(){var t,e;if(null==this.d){for(this.d=HV(dae,dBt,63,2*this.f+1,0,1),e=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)Vnt(this,YP(t.nj(),133));this.e=e}},Pkt.Fb=function(t){return zN(this,t)},Pkt.Hb=function(){return S4(this.c)},Pkt.Xc=function(t){return this.c.Xc(t)},Pkt.rj=function(){this.c=new Ib(this)},Pkt.dc=function(){return 0==this.f},Pkt.Kc=function(){return this.c.Kc()},Pkt.Yc=function(){return this.c.Yc()},Pkt.Zc=function(t){return this.c.Zc(t)},Pkt.sj=function(){return $V(this)},Pkt.tj=function(t,e,n){return new DP(t,e,n)},Pkt.uj=function(){return new bc},Pkt.Mc=function(t){return c0(this,t)},Pkt.gc=function(){return this.f},Pkt.bd=function(t,e){return new EG(this.c,t,e)},Pkt.Pc=function(){return this.c.Pc()},Pkt.Qc=function(t){return this.c.Qc(t)},Pkt.Ib=function(){return I9(this.c)},Pkt.e=0,Pkt.f=0,y$(XNt,"BasicEMap",705),Uht(1033,63,yPt,Ib),Pkt.bi=function(t,e){!function(t,e){Vnt(t.a,e)}(this,YP(e,133))},Pkt.ei=function(t,e,n){++(this,YP(e,133),this).a.e},Pkt.fi=function(t,e){!function(t,e){A7(t.a,e)}(this,YP(e,133))},Pkt.gi=function(t,e,n){!function(t,e,n){A7(t.a,n),Vnt(t.a,e)}(this,YP(e,133),YP(n,133))},Pkt.di=function(t,e){T3(this.a)},y$(XNt,"BasicEMap/1",1033),Uht(1034,63,yPt,bc),Pkt.ri=function(t){return HV(_ae,gBt,612,t,0,1)},y$(XNt,"BasicEMap/2",1034),Uht(1035,l_t,h_t,Lb),Pkt.$b=function(){this.a.c.$b()},Pkt.Hc=function(t){return dtt(this.a,t)},Pkt.Kc=function(){return 0==this.a.f?(ZO(),kae.a):new vx(this.a)},Pkt.Mc=function(t){var e;return e=this.a.f,Xtt(this.a,t),this.a.f!=e},Pkt.gc=function(){return this.a.f},y$(XNt,"BasicEMap/3",1035),Uht(1036,28,u_t,Ob),Pkt.$b=function(){this.a.c.$b()},Pkt.Hc=function(t){return Ept(this.a,t)},Pkt.Kc=function(){return 0==this.a.f?(ZO(),kae.a):new xx(this.a)},Pkt.gc=function(){return this.a.f},y$(XNt,"BasicEMap/4",1036),Uht(1037,l_t,h_t,Db),Pkt.$b=function(){this.a.c.$b()},Pkt.Hc=function(t){var e,n,i,r,a,o,s,c,u;if(this.a.f>0&&EI(t,42)&&(this.a.qj(),r=null==(s=(c=YP(t,42)).cd())?0:q5(s),a=DD(this.a,r),e=this.a.d[a]))for(n=YP(e.g,367),u=e.i,o=0;o"+this.c},Pkt.a=0;var kae,_ae=y$(XNt,"BasicEMap/EntryImpl",612);Uht(536,1,{},sc),y$(XNt,"BasicEMap/View",536),Uht(768,1,{}),Pkt.Fb=function(t){return aft((qq(),b$t),t)},Pkt.Hb=function(){return O5((qq(),b$t))},Pkt.Ib=function(){return $st((qq(),b$t))},y$(XNt,"ECollections/BasicEmptyUnmodifiableEList",768),Uht(1312,1,p_t,wc),Pkt.Nb=function(t){_R(this,t)},Pkt.Rb=function(t){throw ow(new Lw)},Pkt.Ob=function(){return!1},Pkt.Sb=function(){return!1},Pkt.Pb=function(){throw ow(new Nw)},Pkt.Tb=function(){return 0},Pkt.Ub=function(){throw ow(new Nw)},Pkt.Vb=function(){return-1},Pkt.Qb=function(){throw ow(new Lw)},Pkt.Wb=function(t){throw ow(new Lw)},y$(XNt,"ECollections/BasicEmptyUnmodifiableEList/1",1312),Uht(1310,768,{20:1,14:1,15:1,58:1},Dy),Pkt.Vc=function(t,e){lk()},Pkt.Fc=function(t){return hk()},Pkt.Wc=function(t,e){return fk()},Pkt.Gc=function(t){return dk()},Pkt.$b=function(){gk()},Pkt.Hc=function(t){return!1},Pkt.Ic=function(t){return!1},Pkt.Jc=function(t){zW(this,t)},Pkt.Xb=function(t){return EA((qq(),t)),null},Pkt.Xc=function(t){return-1},Pkt.dc=function(){return!0},Pkt.Kc=function(){return this.a},Pkt.Yc=function(){return this.a},Pkt.Zc=function(t){return this.a},Pkt.ii=function(t,e){return pk()},Pkt.ji=function(t,e){bk()},Pkt.Lc=function(){return new xF(null,new AG(this,16))},Pkt.$c=function(t){return wk()},Pkt.Mc=function(t){return yk()},Pkt._c=function(t,e){return mk()},Pkt.gc=function(){return 0},Pkt.ad=function(t){k2(this,t)},Pkt.Nc=function(){return new AG(this,16)},Pkt.Oc=function(){return new xF(null,new AG(this,16))},Pkt.bd=function(t,e){return qq(),new EG(b$t,t,e)},Pkt.Pc=function(){return Ej((qq(),b$t))},Pkt.Qc=function(t){return qq(),Nit(b$t,t)},y$(XNt,"ECollections/EmptyUnmodifiableEList",1310),Uht(1311,768,{20:1,14:1,15:1,58:1,589:1},Ny),Pkt.Vc=function(t,e){lk()},Pkt.Fc=function(t){return hk()},Pkt.Wc=function(t,e){return fk()},Pkt.Gc=function(t){return dk()},Pkt.$b=function(){gk()},Pkt.Hc=function(t){return!1},Pkt.Ic=function(t){return!1},Pkt.Jc=function(t){zW(this,t)},Pkt.Xb=function(t){return EA((qq(),t)),null},Pkt.Xc=function(t){return-1},Pkt.dc=function(){return!0},Pkt.Kc=function(){return this.a},Pkt.Yc=function(){return this.a},Pkt.Zc=function(t){return this.a},Pkt.ii=function(t,e){return pk()},Pkt.ji=function(t,e){bk()},Pkt.Lc=function(){return new xF(null,new AG(this,16))},Pkt.$c=function(t){return wk()},Pkt.Mc=function(t){return yk()},Pkt._c=function(t,e){return mk()},Pkt.gc=function(){return 0},Pkt.ad=function(t){k2(this,t)},Pkt.Nc=function(){return new AG(this,16)},Pkt.Oc=function(){return new xF(null,new AG(this,16))},Pkt.bd=function(t,e){return qq(),new EG(b$t,t,e)},Pkt.Pc=function(){return Ej((qq(),b$t))},Pkt.Qc=function(t){return qq(),Nit(b$t,t)},Pkt.sj=function(){return qq(),qq(),w$t},y$(XNt,"ECollections/EmptyUnmodifiableEMap",1311);var Eae,Tae=eF(XNt,"Enumerator");Uht(281,1,{281:1},Lpt),Pkt.Fb=function(t){var e;return this===t||!!EI(t,281)&&(e=YP(t,281),this.f==e.f&&function(t,e){return null==t?null==e:det(t,e)}(this.i,e.i)&&GF(this.a,256&this.f?256&e.f?e.a:null:256&e.f?null:e.a)&&GF(this.d,e.d)&&GF(this.g,e.g)&&GF(this.e,e.e)&&function(t,e){var n,i;if(t.j.length!=e.j.length)return!1;for(n=0,i=t.j.length;n=0?t.Bh(n):mlt(t,e)},y$(vNt,"BasicEObjectImpl/4",1027),Uht(1983,1,{108:1}),Pkt.bk=function(t){this.e=0==t?Ioe:HV(Rjt,Zkt,1,t,5,1)},Pkt.Ch=function(t){return this.e[t]},Pkt.Dh=function(t,e){this.e[t]=e},Pkt.Eh=function(t){this.e[t]=null},Pkt.ck=function(){return this.c},Pkt.dk=function(){throw ow(new Lw)},Pkt.ek=function(){throw ow(new Lw)},Pkt.fk=function(){return this.d},Pkt.gk=function(){return null!=this.e},Pkt.hk=function(t){this.c=t},Pkt.ik=function(t){throw ow(new Lw)},Pkt.jk=function(t){throw ow(new Lw)},Pkt.kk=function(t){this.d=t},y$(vNt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),Uht(185,1983,{108:1},Oh),Pkt.dk=function(){return this.a},Pkt.ek=function(){return this.b},Pkt.ik=function(t){this.a=t},Pkt.jk=function(t){this.b=t},y$(vNt,"BasicEObjectImpl/EPropertiesHolderImpl",185),Uht(506,97,mNt,yc),Pkt.Kg=function(){return this.f},Pkt.Pg=function(){return this.k},Pkt.Rg=function(t,e){this.g=t,this.i=e},Pkt.Tg=function(){return 2&this.j?this.ph().ck():this.zh()},Pkt.Vg=function(){return this.i},Pkt.Mg=function(){return 0!=(1&this.j)},Pkt.eh=function(){return this.g},Pkt.kh=function(){return 0!=(4&this.j)},Pkt.ph=function(){return!this.k&&(this.k=new Oh),this.k},Pkt.th=function(t){this.ph().hk(t),t?this.j|=2:this.j&=-3},Pkt.vh=function(t){this.ph().jk(t),t?this.j|=4:this.j&=-5},Pkt.zh=function(){return(Y$(),ooe).S},Pkt.i=0,Pkt.j=1,y$(vNt,"EObjectImpl",506),Uht(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},xB),Pkt.Ch=function(t){return this.e[t]},Pkt.Dh=function(t,e){this.e[t]=e},Pkt.Eh=function(t){this.e[t]=null},Pkt.Tg=function(){return this.d},Pkt.Yg=function(t){return X9(this.d,t)},Pkt.$g=function(){return this.d},Pkt.dh=function(){return null!=this.e},Pkt.ph=function(){return!this.k&&(this.k=new mc),this.k},Pkt.th=function(t){this.d=t},Pkt.yh=function(){var t;return null==this.e&&(t=d$(this.d),this.e=0==t?Loe:HV(Rjt,Zkt,1,t,5,1)),this},Pkt.Ah=function(){return 0},y$(vNt,"DynamicEObjectImpl",780),Uht(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},JB),Pkt.Fb=function(t){return this===t},Pkt.Hb=function(){return NL(this)},Pkt.th=function(t){this.d=t,this.b=Kdt(t,"key"),this.c=Kdt(t,LNt)},Pkt.Sh=function(){var t;return-1==this.a&&(t=OZ(this,this.b),this.a=null==t?0:q5(t)),this.a},Pkt.cd=function(){return OZ(this,this.b)},Pkt.dd=function(){return OZ(this,this.c)},Pkt.Th=function(t){this.a=t},Pkt.Uh=function(t){sU(this,this.b,t)},Pkt.ed=function(t){var e;return e=OZ(this,this.c),sU(this,this.c,t),e},Pkt.a=0,y$(vNt,"DynamicEObjectImpl/BasicEMapEntry",1376),Uht(1377,1,{108:1},mc),Pkt.bk=function(t){throw ow(new Lw)},Pkt.Ch=function(t){throw ow(new Lw)},Pkt.Dh=function(t,e){throw ow(new Lw)},Pkt.Eh=function(t){throw ow(new Lw)},Pkt.ck=function(){throw ow(new Lw)},Pkt.dk=function(){return this.a},Pkt.ek=function(){return this.b},Pkt.fk=function(){return this.c},Pkt.gk=function(){throw ow(new Lw)},Pkt.hk=function(t){throw ow(new Lw)},Pkt.ik=function(t){this.a=t},Pkt.jk=function(t){this.b=t},Pkt.kk=function(t){this.c=t},y$(vNt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),Uht(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},vc),Pkt.Qg=function(t){return Vrt(this,t)},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new $O((Ikt(),Coe),Zoe,this)),this.b):(!this.b&&(this.b=new $O((Ikt(),Coe),Zoe,this)),$V(this.b));case 3:return NU(this);case 4:return!this.a&&(this.a=new qI(jre,this,4)),this.a;case 5:return!this.c&&(this.c=new KI(jre,this,5)),this.c}return LQ(this,t-d$((Ikt(),soe)),_J(YP(B3(this,16),26)||soe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?Vrt(this,n):this.Cb.ih(this,-1-i,null,n)),wj(this,YP(t,147),n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),soe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),soe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 2:return!this.b&&(this.b=new $O((Ikt(),Coe),Zoe,this)),YN(this.b,t,n);case 3:return wj(this,null,n);case 4:return!this.a&&(this.a=new qI(jre,this,4)),mnt(this.a,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),soe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),soe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!NU(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return MK(this,t-d$((Ikt(),soe)),_J(YP(B3(this,16),26)||soe,t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void function(t,e){P0(t,null==e?null:(dz(e),e))}(this,sD(e));case 2:return!this.b&&(this.b=new $O((Ikt(),Coe),Zoe,this)),void x3(this.b,e);case 3:return void Udt(this,YP(e,147));case 4:return!this.a&&(this.a=new qI(jre,this,4)),Fmt(this.a),!this.a&&(this.a=new qI(jre,this,4)),void w$(this.a,YP(e,14));case 5:return!this.c&&(this.c=new KI(jre,this,5)),Fmt(this.c),!this.c&&(this.c=new KI(jre,this,5)),void w$(this.c,YP(e,14))}w9(this,t-d$((Ikt(),soe)),_J(YP(B3(this,16),26)||soe,t),e)},Pkt.zh=function(){return Ikt(),soe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void P0(this,null);case 2:return!this.b&&(this.b=new $O((Ikt(),Coe),Zoe,this)),void this.b.c.$b();case 3:return void Udt(this,null);case 4:return!this.a&&(this.a=new qI(jre,this,4)),void Fmt(this.a);case 5:return!this.c&&(this.c=new KI(jre,this,5)),void Fmt(this.c)}Z8(this,t-d$((Ikt(),soe)),_J(YP(B3(this,16),26)||soe,t))},Pkt.Ib=function(){return n7(this)},Pkt.d=null,y$(vNt,"EAnnotationImpl",510),Uht(151,705,IBt,gQ),Pkt.Xh=function(t,e){!function(t,e,n){YP(t.c,69).Xh(e,n)}(this,t,YP(e,42))},Pkt.lk=function(t,e){return function(t,e,n){return YP(t.c,69).lk(e,n)}(this,YP(t,42),e)},Pkt.pi=function(t){return YP(YP(this.c,69).pi(t),133)},Pkt.Zh=function(){return YP(this.c,69).Zh()},Pkt.$h=function(){return YP(this.c,69).$h()},Pkt._h=function(t){return YP(this.c,69)._h(t)},Pkt.mk=function(t,e){return YN(this,t,e)},Pkt.Wj=function(t){return YP(this.c,76).Wj(t)},Pkt.rj=function(){},Pkt.fj=function(){return YP(this.c,76).fj()},Pkt.tj=function(t,e,n){var i;return(i=YP(QJ(this.b).Nh().Jh(this.b),133)).Th(t),i.Uh(e),i.ed(n),i},Pkt.uj=function(){return new Xb(this)},Pkt.Wb=function(t){x3(this,t)},Pkt.Xj=function(){YP(this.c,76).Xj()},y$(ABt,"EcoreEMap",151),Uht(158,151,IBt,$O),Pkt.qj=function(){var t,e,n,i,r;if(null==this.d){for(r=HV(dae,dBt,63,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)!(t=r[i=((e=YP(n.nj(),133)).Sh()&Ykt)%r.length])&&(t=r[i]=new Xb(this)),t.Fc(e);this.d=r}},y$(vNt,"EAnnotationImpl/1",158),Uht(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),!!this.$j();case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q}return LQ(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 9:return b$(this,n)}return YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Rj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i)}return MK(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void this.Lh(sD(e));case 2:return void i7(this,Vm(aD(e)));case 3:return void o7(this,Vm(aD(e)));case 4:return void D1(this,YP(e,19).a);case 5:return void this.ok(YP(e,19).a);case 8:return void t8(this,YP(e,138));case 9:return void((n=sst(this,YP(e,87),null))&&n.Fi())}w9(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e)},Pkt.zh=function(){return Ikt(),Aoe},Pkt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void this.Lh(null);case 2:return void i7(this,!0);case 3:return void o7(this,!0);case 4:return void D1(this,0);case 5:return void this.ok(1);case 8:return void t8(this,null);case 9:return void((e=sst(this,null,null))&&e.Fi())}Z8(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.Gh=function(){oat(this),this.Bb|=1},Pkt.Yj=function(){return oat(this)},Pkt.Zj=function(){return this.t},Pkt.$j=function(){var t;return(t=this.t)>1||-1==t},Pkt.hi=function(){return 0!=(512&this.Bb)},Pkt.nk=function(t,e){return R8(this,t,e)},Pkt.ok=function(t){N1(this,t)},Pkt.Ib=function(){return kht(this)},Pkt.s=0,Pkt.t=1,y$(vNt,"ETypedElementImpl",284),Uht(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),Pkt.Qg=function(t){return Crt(this,t)},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),!!this.$j();case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q;case 10:return mL(),!!(this.Bb&MNt);case 11:return mL(),!!(this.Bb&DBt);case 12:return mL(),!!(this.Bb&XEt);case 13:return this.j;case 14:return _dt(this);case 15:return mL(),!!(this.Bb&OBt);case 16:return mL(),!!(this.Bb&v_t);case 17:return BU(this)}return LQ(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 17:return this.Cb&&(n=(i=this.Db>>16)>=0?Crt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,17,n)}return YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Qj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 9:return b$(this,n);case 17:return iwt(this,null,17,n)}return YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Rj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i);case 10:return 0==(this.Bb&MNt);case 11:return 0!=(this.Bb&DBt);case 12:return 0!=(this.Bb&XEt);case 13:return null!=this.j;case 14:return null!=_dt(this);case 15:return 0!=(this.Bb&OBt);case 16:return 0!=(this.Bb&v_t);case 17:return!!BU(this)}return MK(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void gG(this,sD(e));case 2:return void i7(this,Vm(aD(e)));case 3:return void o7(this,Vm(aD(e)));case 4:return void D1(this,YP(e,19).a);case 5:return void this.ok(YP(e,19).a);case 8:return void t8(this,YP(e,138));case 9:return void((n=sst(this,YP(e,87),null))&&n.Fi());case 10:return void M7(this,Vm(aD(e)));case 11:return void O7(this,Vm(aD(e)));case 12:return void I7(this,Vm(aD(e)));case 13:return void XS(this,sD(e));case 15:return void L7(this,Vm(aD(e)));case 16:return void B7(this,Vm(aD(e)))}w9(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e)},Pkt.zh=function(){return Ikt(),Soe},Pkt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,88)&&tlt(sX(YP(this.Cb,88)),4),void w2(this,null);case 2:return void i7(this,!0);case 3:return void o7(this,!0);case 4:return void D1(this,0);case 5:return void this.ok(1);case 8:return void t8(this,null);case 9:return void((e=sst(this,null,null))&&e.Fi());case 10:return void M7(this,!0);case 11:return void O7(this,!1);case 12:return void I7(this,!1);case 13:return this.i=null,void Y0(this,null);case 15:return void L7(this,!1);case 16:return void B7(this,!1)}Z8(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.Gh=function(){Xz(xZ((lut(),rse),this)),oat(this),this.Bb|=1},Pkt.Gj=function(){return this.f},Pkt.zj=function(){return _dt(this)},Pkt.Hj=function(){return BU(this)},Pkt.Lj=function(){return null},Pkt.pk=function(){return this.k},Pkt.aj=function(){return this.n},Pkt.Mj=function(){return oot(this)},Pkt.Nj=function(){var t,e,n,i,r,a,o,s,c;return this.p||((null==(n=BU(this)).i&&ryt(n),n.i).length,(i=this.Lj())&&d$(BU(i)),t=(o=(r=oat(this)).Bj())?1&o.i?o==Rce?MRt:o==jce?RRt:o==Hce?BRt:o==qce?PRt:o==$ce?GRt:o==Uce?KRt:o==zce?LRt:NRt:o:null,e=_dt(this),s=r.zj(),i9(this),this.Bb&v_t&&((a=Lat((lut(),rse),n))&&a!=this||(a=PG(xZ(rse,this))))?this.p=new zS(this,a):this.$j()?this.rk()?i?this.Bb&OBt?t?this.sk()?this.p=new Aq(47,t,this,i):this.p=new Aq(5,t,this,i):this.sk()?this.p=new iW(46,this,i):this.p=new iW(4,this,i):t?this.sk()?this.p=new Aq(49,t,this,i):this.p=new Aq(7,t,this,i):this.sk()?this.p=new iW(48,this,i):this.p=new iW(6,this,i):this.Bb&OBt?t?t==Vjt?this.p=new NP(50,tae,this):this.sk()?this.p=new NP(43,t,this):this.p=new NP(1,t,this):this.sk()?this.p=new FH(42,this):this.p=new FH(0,this):t?t==Vjt?this.p=new NP(41,tae,this):this.sk()?this.p=new NP(45,t,this):this.p=new NP(3,t,this):this.sk()?this.p=new FH(44,this):this.p=new FH(2,this):EI(r,148)?t==Foe?this.p=new FH(40,this):512&this.Bb?this.Bb&OBt?this.p=t?new NP(9,t,this):new FH(8,this):this.p=t?new NP(11,t,this):new FH(10,this):this.Bb&OBt?this.p=t?new NP(13,t,this):new FH(12,this):this.p=t?new NP(15,t,this):new FH(14,this):i?(c=i.t)>1||-1==c?this.sk()?this.Bb&OBt?this.p=t?new Aq(25,t,this,i):new iW(24,this,i):this.p=t?new Aq(27,t,this,i):new iW(26,this,i):this.Bb&OBt?this.p=t?new Aq(29,t,this,i):new iW(28,this,i):this.p=t?new Aq(31,t,this,i):new iW(30,this,i):this.sk()?this.Bb&OBt?this.p=t?new Aq(33,t,this,i):new iW(32,this,i):this.p=t?new Aq(35,t,this,i):new iW(34,this,i):this.Bb&OBt?this.p=t?new Aq(37,t,this,i):new iW(36,this,i):this.p=t?new Aq(39,t,this,i):new iW(38,this,i):this.sk()?this.Bb&OBt?this.p=t?new NP(17,t,this):new FH(16,this):this.p=t?new NP(19,t,this):new FH(18,this):this.Bb&OBt?this.p=t?new NP(21,t,this):new FH(20,this):this.p=t?new NP(23,t,this):new FH(22,this):this.qk()?this.sk()?this.p=new PP(YP(r,26),this,i):this.p=new VH(YP(r,26),this,i):EI(r,148)?t==Foe?this.p=new FH(40,this):this.Bb&OBt?this.p=t?new xj(e,s,this,(ntt(),o==jce?Woe:o==Rce?Hoe:o==$ce?Xoe:o==Hce?Koe:o==qce?Yoe:o==Uce?Qoe:o==zce?Uoe:o==Fce?Goe:Voe)):new Lq(YP(r,148),e,s,this):this.p=t?new vj(e,s,this,(ntt(),o==jce?Woe:o==Rce?Hoe:o==$ce?Xoe:o==Hce?Koe:o==qce?Yoe:o==Uce?Qoe:o==zce?Uoe:o==Fce?Goe:Voe)):new Iq(YP(r,148),e,s,this):this.rk()?i?this.Bb&OBt?this.sk()?this.p=new zP(YP(r,26),this,i):this.p=new $P(YP(r,26),this,i):this.sk()?this.p=new RP(YP(r,26),this,i):this.p=new BP(YP(r,26),this,i):this.Bb&OBt?this.sk()?this.p=new UO(YP(r,26),this):this.p=new HO(YP(r,26),this):this.sk()?this.p=new qO(YP(r,26),this):this.p=new zO(YP(r,26),this):this.sk()?i?this.Bb&OBt?this.p=new qP(YP(r,26),this,i):this.p=new FP(YP(r,26),this,i):this.Bb&OBt?this.p=new YO(YP(r,26),this):this.p=new GO(YP(r,26),this):i?this.Bb&OBt?this.p=new HP(YP(r,26),this,i):this.p=new jP(YP(r,26),this,i):this.Bb&OBt?this.p=new KO(YP(r,26),this):this.p=new DF(YP(r,26),this)),this.p},Pkt.Ij=function(){return 0!=(this.Bb&MNt)},Pkt.qk=function(){return!1},Pkt.rk=function(){return!1},Pkt.Jj=function(){return 0!=(this.Bb&v_t)},Pkt.Oj=function(){return jZ(this)},Pkt.sk=function(){return!1},Pkt.Kj=function(){return 0!=(this.Bb&OBt)},Pkt.tk=function(t){this.k=t},Pkt.Lh=function(t){gG(this,t)},Pkt.Ib=function(){return Ypt(this)},Pkt.e=!1,Pkt.n=0,y$(vNt,"EStructuralFeatureImpl",449),Uht(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},Ry),Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),!!Flt(this);case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q;case 10:return mL(),!!(this.Bb&MNt);case 11:return mL(),!!(this.Bb&DBt);case 12:return mL(),!!(this.Bb&XEt);case 13:return this.j;case 14:return _dt(this);case 15:return mL(),!!(this.Bb&OBt);case 16:return mL(),!!(this.Bb&v_t);case 17:return BU(this);case 18:return mL(),!!(this.Bb&yNt);case 19:return e?f4(this):eV(this)}return LQ(this,t-d$((Ikt(),coe)),_J(YP(B3(this,16),26)||coe,t),e,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return Flt(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i);case 10:return 0==(this.Bb&MNt);case 11:return 0!=(this.Bb&DBt);case 12:return 0!=(this.Bb&XEt);case 13:return null!=this.j;case 14:return null!=_dt(this);case 15:return 0!=(this.Bb&OBt);case 16:return 0!=(this.Bb&v_t);case 17:return!!BU(this);case 18:return 0!=(this.Bb&yNt);case 19:return!!eV(this)}return MK(this,t-d$((Ikt(),coe)),_J(YP(B3(this,16),26)||coe,t))},Pkt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void gG(this,sD(e));case 2:return void i7(this,Vm(aD(e)));case 3:return void o7(this,Vm(aD(e)));case 4:return void D1(this,YP(e,19).a);case 5:return void Tx(this,YP(e,19).a);case 8:return void t8(this,YP(e,138));case 9:return void((n=sst(this,YP(e,87),null))&&n.Fi());case 10:return void M7(this,Vm(aD(e)));case 11:return void O7(this,Vm(aD(e)));case 12:return void I7(this,Vm(aD(e)));case 13:return void XS(this,sD(e));case 15:return void L7(this,Vm(aD(e)));case 16:return void B7(this,Vm(aD(e)));case 18:return void F7(this,Vm(aD(e)))}w9(this,t-d$((Ikt(),coe)),_J(YP(B3(this,16),26)||coe,t),e)},Pkt.zh=function(){return Ikt(),coe},Pkt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,88)&&tlt(sX(YP(this.Cb,88)),4),void w2(this,null);case 2:return void i7(this,!0);case 3:return void o7(this,!0);case 4:return void D1(this,0);case 5:return this.b=0,void N1(this,1);case 8:return void t8(this,null);case 9:return void((e=sst(this,null,null))&&e.Fi());case 10:return void M7(this,!0);case 11:return void O7(this,!1);case 12:return void I7(this,!1);case 13:return this.i=null,void Y0(this,null);case 15:return void L7(this,!1);case 16:return void B7(this,!1);case 18:return void F7(this,!1)}Z8(this,t-d$((Ikt(),coe)),_J(YP(B3(this,16),26)||coe,t))},Pkt.Gh=function(){f4(this),Xz(xZ((lut(),rse),this)),oat(this),this.Bb|=1},Pkt.$j=function(){return Flt(this)},Pkt.nk=function(t,e){return this.b=0,this.a=null,R8(this,t,e)},Pkt.ok=function(t){Tx(this,t)},Pkt.Ib=function(){var t;return 64&this.Db?Ypt(this):((t=new vL(Ypt(this))).a+=" (iD: ",Vx(t,0!=(this.Bb&yNt)),t.a+=")",t.a)},Pkt.b=0,y$(vNt,"EAttributeImpl",322),Uht(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),Pkt.uk=function(t){return t.Tg()==this},Pkt.Qg=function(t){return frt(this,t)},Pkt.Rg=function(t,e){this.w=null,this.Db=e<<16|255&this.Db,this.Cb=t},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return ort(this);case 4:return this.zj();case 5:return this.F;case 6:return e?QJ(this):PU(this);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),this.A}return LQ(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?frt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,6,n)}return YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Qj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 6:return iwt(this,null,6,n);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),mnt(this.A,t,n)}return YP(_J(YP(B3(this,16),26)||this.zh(),e),66).Nj().Rj(this,uet(this),e-d$(this.zh()),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!ort(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!PU(this);case 7:return!!this.A&&0!=this.A.i}return MK(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void pG(this,sD(e));case 2:return void vM(this,sD(e));case 5:return void nvt(this,sD(e));case 7:return!this.A&&(this.A=new UI(Poe,this,7)),Fmt(this.A),!this.A&&(this.A=new UI(Poe,this,7)),void w$(this.A,YP(e,14))}w9(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t),e)},Pkt.zh=function(){return Ikt(),loe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,179)&&(YP(this.Cb,179).tb=null),void w2(this,null);case 2:return b6(this,null),void P1(this,this.D);case 5:return void nvt(this,null);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),void Fmt(this.A)}Z8(this,t-d$(this.zh()),_J(YP(B3(this,16),26)||this.zh(),t))},Pkt.yj=function(){var t;return-1==this.G&&(this.G=(t=QJ(this))?Ont(t.Mh(),this):-1),this.G},Pkt.zj=function(){return null},Pkt.Aj=function(){return QJ(this)},Pkt.vk=function(){return this.v},Pkt.Bj=function(){return ort(this)},Pkt.Cj=function(){return null!=this.D?this.D:this.B},Pkt.Dj=function(){return this.F},Pkt.wj=function(t){return Ywt(this,t)},Pkt.wk=function(t){this.v=t},Pkt.xk=function(t){A2(this,t)},Pkt.yk=function(t){this.C=t},Pkt.Lh=function(t){pG(this,t)},Pkt.Ib=function(){return W9(this)},Pkt.C=null,Pkt.D=null,Pkt.G=-1,y$(vNt,"EClassifierImpl",351),Uht(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},Dh),Pkt.uk=function(t){return function(t,e){return e==t||Pat(pdt(e),t)}(this,t.Tg())},Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return ort(this);case 4:return null;case 5:return this.F;case 6:return e?QJ(this):PU(this);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),this.A;case 8:return mL(),!!(256&this.Bb);case 9:return mL(),!!(512&this.Bb);case 10:return _H(this);case 11:return!this.q&&(this.q=new gR(eoe,this,11,10)),this.q;case 12:return Qyt(this);case 13:return zyt(this);case 14:return zyt(this),this.r;case 15:return Qyt(this),this.k;case 16:return Aut(this);case 17:return Cyt(this);case 18:return ryt(this);case 19:return pdt(this);case 20:return Qyt(this),this.o;case 21:return!this.s&&(this.s=new gR(Gae,this,21,17)),this.s;case 22:return XK(this);case 23:return mpt(this)}return LQ(this,t-d$((Ikt(),uoe)),_J(YP(B3(this,16),26)||uoe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?frt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,6,n);case 11:return!this.q&&(this.q=new gR(eoe,this,11,10)),ctt(this.q,t,n);case 21:return!this.s&&(this.s=new gR(Gae,this,21,17)),ctt(this.s,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),uoe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),uoe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 6:return iwt(this,null,6,n);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),mnt(this.A,t,n);case 11:return!this.q&&(this.q=new gR(eoe,this,11,10)),mnt(this.q,t,n);case 21:return!this.s&&(this.s=new gR(Gae,this,21,17)),mnt(this.s,t,n);case 22:return mnt(XK(this),t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),uoe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),uoe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!ort(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!PU(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0!=(256&this.Bb);case 9:return 0!=(512&this.Bb);case 10:return!(!this.u||0==XK(this.u.a).i||this.n&&rit(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=Qyt(this).i;case 13:return 0!=zyt(this).i;case 14:return zyt(this),0!=this.r.i;case 15:return Qyt(this),0!=this.k.i;case 16:return 0!=Aut(this).i;case 17:return 0!=Cyt(this).i;case 18:return 0!=ryt(this).i;case 19:return 0!=pdt(this).i;case 20:return Qyt(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&rit(this.n);case 23:return 0!=mpt(this).i}return MK(this,t-d$((Ikt(),uoe)),_J(YP(B3(this,16),26)||uoe,t))},Pkt.oh=function(t){return(null==this.i||this.q&&0!=this.q.i?null:Kdt(this,t))||wxt(this,t)},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void pG(this,sD(e));case 2:return void vM(this,sD(e));case 5:return void nvt(this,sD(e));case 7:return!this.A&&(this.A=new UI(Poe,this,7)),Fmt(this.A),!this.A&&(this.A=new UI(Poe,this,7)),void w$(this.A,YP(e,14));case 8:return void r7(this,Vm(aD(e)));case 9:return void s7(this,Vm(aD(e)));case 10:return Hmt(_H(this)),void w$(_H(this),YP(e,14));case 11:return!this.q&&(this.q=new gR(eoe,this,11,10)),Fmt(this.q),!this.q&&(this.q=new gR(eoe,this,11,10)),void w$(this.q,YP(e,14));case 21:return!this.s&&(this.s=new gR(Gae,this,21,17)),Fmt(this.s),!this.s&&(this.s=new gR(Gae,this,21,17)),void w$(this.s,YP(e,14));case 22:return Fmt(XK(this)),void w$(XK(this),YP(e,14))}w9(this,t-d$((Ikt(),uoe)),_J(YP(B3(this,16),26)||uoe,t),e)},Pkt.zh=function(){return Ikt(),uoe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,179)&&(YP(this.Cb,179).tb=null),void w2(this,null);case 2:return b6(this,null),void P1(this,this.D);case 5:return void nvt(this,null);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),void Fmt(this.A);case 8:return void r7(this,!1);case 9:return void s7(this,!1);case 10:return void(this.u&&Hmt(this.u));case 11:return!this.q&&(this.q=new gR(eoe,this,11,10)),void Fmt(this.q);case 21:return!this.s&&(this.s=new gR(Gae,this,21,17)),void Fmt(this.s);case 22:return void(this.n&&Fmt(this.n))}Z8(this,t-d$((Ikt(),uoe)),_J(YP(B3(this,16),26)||uoe,t))},Pkt.Gh=function(){var t,e,n;if(Qyt(this),zyt(this),Aut(this),Cyt(this),ryt(this),pdt(this),mpt(this),MX((!(n=sX(this)).c&&(n.c=new jc),n.c)),this.s)for(t=0,e=this.s.i;t=0;--e)JJ(this,e);return stt(this,t)},Pkt.Xj=function(){Fmt(this)},Pkt.oi=function(t,e){return R1(this,0,e)},y$(ABt,"EcoreEList",622),Uht(496,622,GBt,mB),Pkt.ai=function(){return!1},Pkt.aj=function(){return this.c},Pkt.bj=function(){return!1},Pkt.Fk=function(){return!0},Pkt.hi=function(){return!0},Pkt.li=function(t,e){return e},Pkt.ni=function(){return!1},Pkt.c=0,y$(ABt,"EObjectEList",496),Uht(85,496,GBt,qI),Pkt.bj=function(){return!0},Pkt.Dk=function(){return!1},Pkt.rk=function(){return!0},y$(ABt,"EObjectContainmentEList",85),Uht(545,85,GBt,HI),Pkt.ci=function(){this.b=!0},Pkt.fj=function(){return this.b},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.b,this.b=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.b=!1},Pkt.b=!1,y$(ABt,"EObjectContainmentEList/Unsettable",545),Uht(1140,545,GBt,yj),Pkt.ii=function(t,e){var n,i;return n=YP(S7(this,t,e),87),hM(this.e)&&Hw(this,new bQ(this.a,7,(Ikt(),hoe),u7(e),EI(i=n.c,88)?YP(i,26):voe,t)),n},Pkt.jj=function(t,e){return function(t,e,n){var i,r;return i=new gZ(t.e,3,10,null,EI(r=e.c,88)?YP(r,26):(Ikt(),voe),Ont(t,e),!1),n?n.Ei(i):n=i,n}(this,YP(t,87),e)},Pkt.kj=function(t,e){return function(t,e,n){var i,r;return i=new gZ(t.e,4,10,EI(r=e.c,88)?YP(r,26):(Ikt(),voe),null,Ont(t,e),!1),n?n.Ei(i):n=i,n}(this,YP(t,87),e)},Pkt.lj=function(t,e,n){return function(t,e,n,i){var r,a,o;return r=new gZ(t.e,1,10,EI(o=e.c,88)?YP(o,26):(Ikt(),voe),EI(a=n.c,88)?YP(a,26):(Ikt(),voe),Ont(t,e),!1),i?i.Ei(r):i=r,i}(this,YP(t,87),YP(e,87),n)},Pkt.Zi=function(t,e,n,i,r){switch(t){case 3:return RU(this,t,e,n,i,this.i>1);case 5:return RU(this,t,e,n,i,this.i-YP(n,15).gc()>0);default:return new gZ(this.e,t,this.c,e,n,i,!0)}},Pkt.ij=function(){return!0},Pkt.fj=function(){return rit(this)},Pkt.Xj=function(){Fmt(this)},y$(vNt,"EClassImpl/1",1140),Uht(1154,1153,sBt),Pkt.ui=function(t){var e,n,i,r,a,o,s;if(8!=(n=t.xi())){if(0==(i=function(t){switch(t.yi(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(t)))switch(n){case 1:case 9:null!=(s=t.Bi())&&(!(e=sX(YP(s,473))).c&&(e.c=new jc),FZ(e.c,t.Ai())),null!=(o=t.zi())&&(1&(r=YP(o,473)).Bb||(!(e=sX(r)).c&&(e.c=new jc),aQ(e.c,YP(t.Ai(),26))));break;case 3:null!=(o=t.zi())&&(1&(r=YP(o,473)).Bb||(!(e=sX(r)).c&&(e.c=new jc),aQ(e.c,YP(t.Ai(),26))));break;case 5:if(null!=(o=t.zi()))for(a=YP(o,14).Kc();a.Ob();)1&(r=YP(a.Pb(),473)).Bb||(!(e=sX(r)).c&&(e.c=new jc),aQ(e.c,YP(t.Ai(),26)));break;case 4:null!=(s=t.Bi())&&(1&(r=YP(s,473)).Bb||(!(e=sX(r)).c&&(e.c=new jc),FZ(e.c,t.Ai())));break;case 6:if(null!=(s=t.Bi()))for(a=YP(s,14).Kc();a.Ob();)1&(r=YP(a.Pb(),473)).Bb||(!(e=sX(r)).c&&(e.c=new jc),FZ(e.c,t.Ai()))}this.Hk(i)}},Pkt.Hk=function(t){$pt(this,t)},Pkt.b=63,y$(vNt,"ESuperAdapter",1154),Uht(1155,1154,sBt,Pb),Pkt.Hk=function(t){tlt(this,t)},y$(vNt,"EClassImpl/10",1155),Uht(1144,696,GBt),Pkt.Vh=function(t,e){return ost(this,t,e)},Pkt.Wh=function(t){return Sit(this,t)},Pkt.Xh=function(t,e){z8(this,t,e)},Pkt.Yh=function(t){AX(this,t)},Pkt.pi=function(t){return TQ(this,t)},Pkt.mi=function(t,e){return BZ(this,t,e)},Pkt.lk=function(t,e){throw ow(new Lw)},Pkt.Zh=function(){return new nO(this)},Pkt.$h=function(){return new iO(this)},Pkt._h=function(t){return s0(this,t)},Pkt.mk=function(t,e){throw ow(new Lw)},Pkt.Wj=function(t){return this},Pkt.fj=function(){return 0!=this.i},Pkt.Wb=function(t){throw ow(new Lw)},Pkt.Xj=function(){throw ow(new Lw)},y$(ABt,"EcoreEList/UnmodifiableEList",1144),Uht(319,1144,GBt,FA),Pkt.ni=function(){return!1},y$(ABt,"EcoreEList/UnmodifiableEList/FastCompare",319),Uht(1147,319,GBt,h5),Pkt.Xc=function(t){var e,n;if(EI(t,170)&&-1!=(e=YP(t,170).aj()))for(n=this.i;e4){if(!this.wj(t))return!1;if(this.rk()){if(o=(e=(n=YP(t,49)).Ug())==this.b&&(this.Dk()?n.Og(n.Vg(),YP(_J(EH(this.b),this.aj()).Yj(),26).Bj())==Xnt(YP(_J(EH(this.b),this.aj()),18)).n:-1-n.Vg()==this.aj()),this.Ek()&&!o&&!e&&n.Zg())for(i=0;i1||-1==n)},Pkt.Dk=function(){var t;return!!EI(t=_J(EH(this.b),this.aj()),99)&&!!Xnt(YP(t,18))},Pkt.Ek=function(){var t;return!!EI(t=_J(EH(this.b),this.aj()),99)&&0!=(YP(t,18).Bb&QEt)},Pkt.Xc=function(t){var e,n,i;if((n=this.Qi(t))>=0)return n;if(this.Fk())for(e=0,i=this.Vi();e=0;--t)avt(this,t,this.Oi(t));return this.Wi()},Pkt.Qc=function(t){var e;if(this.Ek())for(e=this.Vi()-1;e>=0;--e)avt(this,e,this.Oi(e));return this.Xi(t)},Pkt.Xj=function(){Hmt(this)},Pkt.oi=function(t,e){return CQ(this,0,e)},y$(ABt,"DelegatingEcoreEList",742),Uht(1150,742,VBt,jD),Pkt.Hi=function(t,e){!function(t,e,n){g7(XK(t.a),e,wG(n))}(this,t,YP(e,26))},Pkt.Ii=function(t){!function(t,e){aQ(XK(t.a),wG(e))}(this,YP(t,26))},Pkt.Oi=function(t){var e;return EI(e=YP(JJ(XK(this.a),t),87).c,88)?YP(e,26):(Ikt(),voe)},Pkt.Ti=function(t){var e;return EI(e=YP(Qgt(XK(this.a),t),87).c,88)?YP(e,26):(Ikt(),voe)},Pkt.Ui=function(t,e){return function(t,e,n){var i,r,a;return(64&(a=EI(r=(i=YP(JJ(XK(t.a),e),87)).c,88)?YP(r,26):(Ikt(),voe)).Db?x8(t.b,a):a)==n?Bwt(i):s1(i,n),a}(this,t,YP(e,26))},Pkt.ai=function(){return!1},Pkt.Zi=function(t,e,n,i,r){return null},Pkt.Ji=function(){return new Fb(this)},Pkt.Ki=function(){Fmt(XK(this.a))},Pkt.Li=function(t){return t7(this,t)},Pkt.Mi=function(t){var e;for(e=t.Kc();e.Ob();)if(!t7(this,e.Pb()))return!1;return!0},Pkt.Ni=function(t){var e,n,i;if(EI(t,15)&&(i=YP(t,15)).gc()==XK(this.a).i){for(e=i.Kc(),n=new zI(this);e.Ob();)if(JS(e.Pb())!==JS(ant(n)))return!1;return!0}return!1},Pkt.Pi=function(){var t,e,n,i;for(e=1,t=new zI(XK(this.a));t.e!=t.i.gc();)e=31*e+((n=EI(i=YP(ant(t),87).c,88)?YP(i,26):(Ikt(),voe))?NL(n):0);return e},Pkt.Qi=function(t){var e,n,i,r;for(i=0,n=new zI(XK(this.a));n.e!=n.i.gc();){if(e=YP(ant(n),87),JS(t)===JS(EI(r=e.c,88)?YP(r,26):(Ikt(),voe)))return i;++i}return-1},Pkt.Ri=function(){return 0==XK(this.a).i},Pkt.Si=function(){return null},Pkt.Vi=function(){return XK(this.a).i},Pkt.Wi=function(){var t,e,n,i,r,a;for(a=XK(this.a).i,r=HV(Rjt,Zkt,1,a,5,1),n=0,e=new zI(XK(this.a));e.e!=e.i.gc();)t=YP(ant(e),87),r[n++]=EI(i=t.c,88)?YP(i,26):(Ikt(),voe);return r},Pkt.Xi=function(t){var e,n,i,r;for(r=XK(this.a).i,t.lengthr&&L$(t,r,null),n=0,e=new zI(XK(this.a));e.e!=e.i.gc();)L$(t,n++,EI(i=YP(ant(e),87).c,88)?YP(i,26):(Ikt(),voe));return t},Pkt.Yi=function(){var t,e,n,i,r;for((r=new Tv).a+="[",t=XK(this.a),e=0,i=XK(this.a).i;e>16)>=0?frt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,6,n);case 9:return!this.a&&(this.a=new gR(Jae,this,9,5)),ctt(this.a,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),doe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),doe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 6:return iwt(this,null,6,n);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),mnt(this.A,t,n);case 9:return!this.a&&(this.a=new gR(Jae,this,9,5)),mnt(this.a,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),doe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),doe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!ort(this);case 4:return!!M6(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!PU(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0==(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return MK(this,t-d$((Ikt(),doe)),_J(YP(B3(this,16),26)||doe,t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void pG(this,sD(e));case 2:return void vM(this,sD(e));case 5:return void nvt(this,sD(e));case 7:return!this.A&&(this.A=new UI(Poe,this,7)),Fmt(this.A),!this.A&&(this.A=new UI(Poe,this,7)),void w$(this.A,YP(e,14));case 8:return void a7(this,Vm(aD(e)));case 9:return!this.a&&(this.a=new gR(Jae,this,9,5)),Fmt(this.a),!this.a&&(this.a=new gR(Jae,this,9,5)),void w$(this.a,YP(e,14))}w9(this,t-d$((Ikt(),doe)),_J(YP(B3(this,16),26)||doe,t),e)},Pkt.zh=function(){return Ikt(),doe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,179)&&(YP(this.Cb,179).tb=null),void w2(this,null);case 2:return b6(this,null),void P1(this,this.D);case 5:return void nvt(this,null);case 7:return!this.A&&(this.A=new UI(Poe,this,7)),void Fmt(this.A);case 8:return void a7(this,!0);case 9:return!this.a&&(this.a=new gR(Jae,this,9,5)),void Fmt(this.a)}Z8(this,t-d$((Ikt(),doe)),_J(YP(B3(this,16),26)||doe,t))},Pkt.Gh=function(){var t,e;if(this.a)for(t=0,e=this.a.i;t>16==5?YP(this.Cb,671):null}return LQ(this,t-d$((Ikt(),goe)),_J(YP(B3(this,16),26)||goe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 5:return this.Cb&&(n=(i=this.Db>>16)>=0?Xrt(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,5,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),goe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),goe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 5:return iwt(this,null,5,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),goe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),goe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!YP(this.Cb,671))}return MK(this,t-d$((Ikt(),goe)),_J(YP(B3(this,16),26)||goe,t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void w2(this,sD(e));case 2:return void O1(this,YP(e,19).a);case 3:return void oht(this,YP(e,1940));case 4:return void N0(this,sD(e))}w9(this,t-d$((Ikt(),goe)),_J(YP(B3(this,16),26)||goe,t),e)},Pkt.zh=function(){return Ikt(),goe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void w2(this,null);case 2:return void O1(this,0);case 3:return void oht(this,null);case 4:return void N0(this,null)}Z8(this,t-d$((Ikt(),goe)),_J(YP(B3(this,16),26)||goe,t))},Pkt.Ib=function(){return this.c??this.zb},Pkt.b=null,Pkt.c=null,Pkt.d=0,y$(vNt,"EEnumLiteralImpl",573);var joe,Roe,$oe,zoe=eF(vNt,"EFactoryImpl/InternalEDateTimeFormat");Uht(489,1,{2015:1},jb),y$(vNt,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),Uht(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},iw),Pkt.Sg=function(t,e,n){var i;return n=iwt(this,t,e,n),this.e&&EI(t,170)&&(i=hdt(this,this.e))!=this.c&&(n=$vt(this,i,n)),n},Pkt._g=function(t,e,n){switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new qI(toe,this,1)),this.d;case 2:return e?Bwt(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return e?uit(this):this.a}return LQ(this,t-d$((Ikt(),boe)),_J(YP(B3(this,16),26)||boe,t),e,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return v8(this,null,n);case 1:return!this.d&&(this.d=new qI(toe,this,1)),mnt(this.d,t,n);case 3:return m8(this,null,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),boe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),boe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return MK(this,t-d$((Ikt(),boe)),_J(YP(B3(this,16),26)||boe,t))},Pkt.sh=function(t,e){switch(t){case 0:return void got(this,YP(e,87));case 1:return!this.d&&(this.d=new qI(toe,this,1)),Fmt(this.d),!this.d&&(this.d=new qI(toe,this,1)),void w$(this.d,YP(e,14));case 3:return void dot(this,YP(e,87));case 4:return void Hst(this,YP(e,836));case 5:return void s1(this,YP(e,138))}w9(this,t-d$((Ikt(),boe)),_J(YP(B3(this,16),26)||boe,t),e)},Pkt.zh=function(){return Ikt(),boe},Pkt.Bh=function(t){switch(t){case 0:return void got(this,null);case 1:return!this.d&&(this.d=new qI(toe,this,1)),void Fmt(this.d);case 3:return void dot(this,null);case 4:return void Hst(this,null);case 5:return void s1(this,null)}Z8(this,t-d$((Ikt(),boe)),_J(YP(B3(this,16),26)||boe,t))},Pkt.Ib=function(){var t;return(t=new xL(Nft(this))).a+=" (expression: ",umt(this,t),t.a+=")",t.a},y$(vNt,"EGenericTypeImpl",241),Uht(1969,1964,QBt),Pkt.Xh=function(t,e){LD(this,t,e)},Pkt.lk=function(t,e){return LD(this,this.gc(),t),e},Pkt.pi=function(t){return bnt(this.Gi(),t)},Pkt.Zh=function(){return this.$h()},Pkt.Gi=function(){return new Kb(this)},Pkt.$h=function(){return this._h(0)},Pkt._h=function(t){return this.Gi().Zc(t)},Pkt.mk=function(t,e){return H9(this,t,!0),e},Pkt.ii=function(t,e){var n;return n=zrt(this,e),this.Zc(t).Rb(n),n},Pkt.ji=function(t,e){H9(this,e,!0),this.Zc(t).Rb(e)},y$(ABt,"AbstractSequentialInternalEList",1969),Uht(486,1969,QBt,XL),Pkt.pi=function(t){return bnt(this.Gi(),t)},Pkt.Zh=function(){return null==this.b?(yE(),yE(),$oe):this.Jk()},Pkt.Gi=function(){return new RA(this.a,this.b)},Pkt.$h=function(){return null==this.b?(yE(),yE(),$oe):this.Jk()},Pkt._h=function(t){var e,n;if(null==this.b){if(t<0||t>1)throw ow(new jm(lBt+t+", size=0"));return yE(),yE(),$oe}for(n=this.Jk(),e=0;e0;)if(e=this.c[--this.d],(!this.e||e.Gj()!=Rre||0!=e.aj())&&(!this.Mk()||this.b.mh(e)))if(a=this.b.bh(e,this.Lk()),this.f=(vE(),YP(e,66).Oj()),this.f||e.$j()){if(this.Lk()?(i=YP(a,15),this.k=i):(i=YP(a,69),this.k=this.j=i),EI(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?out(this,this.p):zut(this))return r=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((t=YP(r,72)).ak(),n=t.dd(),this.i=n):(n=r,this.i=n),this.g=-3,!0}else if(null!=a)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},Pkt.Pb=function(){return z3(this)},Pkt.Tb=function(){return this.a},Pkt.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ow(new Nw)},Pkt.Vb=function(){return this.a-1},Pkt.Qb=function(){throw ow(new Lw)},Pkt.Lk=function(){return!1},Pkt.Wb=function(t){throw ow(new Lw)},Pkt.Mk=function(){return!0},Pkt.a=0,Pkt.d=0,Pkt.f=!1,Pkt.g=0,Pkt.n=0,Pkt.o=0,y$(ABt,"EContentsEList/FeatureIteratorImpl",279),Uht(697,279,ZBt,FO),Pkt.Lk=function(){return!0},y$(ABt,"EContentsEList/ResolvingFeatureIteratorImpl",697),Uht(1157,697,ZBt,RO),Pkt.Mk=function(){return!1},y$(vNt,"ENamedElementImpl/1/1",1157),Uht(1158,279,ZBt,jO),Pkt.Mk=function(){return!1},y$(vNt,"ENamedElementImpl/1/2",1158),Uht(36,143,uBt,tW,eW,fR,pQ,gZ,EX,q1,tY,H1,eY,xX,nY,Y1,iY,kX,rY,U1,aY,dR,bQ,Vq,G1,oY,_X,sY),Pkt._i=function(){return rQ(this)},Pkt.gj=function(){var t;return(t=rQ(this))?t.zj():null},Pkt.yi=function(t){return-1==this.b&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,t)},Pkt.Ai=function(){return this.c},Pkt.hj=function(){var t;return!!(t=rQ(this))&&t.Kj()},Pkt.b=-1,y$(vNt,"ENotificationImpl",36),Uht(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},zy),Pkt.Qg=function(t){return rat(this,t)},Pkt._g=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),(i=this.t)>1||-1==i;case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?YP(this.Cb,26):null;case 11:return!this.d&&(this.d=new UI(Poe,this,11)),this.d;case 12:return!this.c&&(this.c=new gR(noe,this,12,10)),this.c;case 13:return!this.a&&(this.a=new RD(this,this)),this.a;case 14:return kZ(this)}return LQ(this,t-d$((Ikt(),xoe)),_J(YP(B3(this,16),26)||xoe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?rat(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,10,n);case 12:return!this.c&&(this.c=new gR(noe,this,12,10)),ctt(this.c,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),xoe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),xoe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 9:return b$(this,n);case 10:return iwt(this,null,10,n);case 11:return!this.d&&(this.d=new UI(Poe,this,11)),mnt(this.d,t,n);case 12:return!this.c&&(this.c=new gR(noe,this,12,10)),mnt(this.c,t,n);case 14:return mnt(kZ(this),t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),xoe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),xoe)),t,n)},Pkt.lh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i);case 10:return!(this.Db>>16!=10||!YP(this.Cb,26));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==kZ(this.a.a).i||this.b&&ait(this.b));case 14:return!!this.b&&ait(this.b)}return MK(this,t-d$((Ikt(),xoe)),_J(YP(B3(this,16),26)||xoe,t))},Pkt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void w2(this,sD(e));case 2:return void i7(this,Vm(aD(e)));case 3:return void o7(this,Vm(aD(e)));case 4:return void D1(this,YP(e,19).a);case 5:return void N1(this,YP(e,19).a);case 8:return void t8(this,YP(e,138));case 9:return void((n=sst(this,YP(e,87),null))&&n.Fi());case 11:return!this.d&&(this.d=new UI(Poe,this,11)),Fmt(this.d),!this.d&&(this.d=new UI(Poe,this,11)),void w$(this.d,YP(e,14));case 12:return!this.c&&(this.c=new gR(noe,this,12,10)),Fmt(this.c),!this.c&&(this.c=new gR(noe,this,12,10)),void w$(this.c,YP(e,14));case 13:return!this.a&&(this.a=new RD(this,this)),Hmt(this.a),!this.a&&(this.a=new RD(this,this)),void w$(this.a,YP(e,14));case 14:return Fmt(kZ(this)),void w$(kZ(this),YP(e,14))}w9(this,t-d$((Ikt(),xoe)),_J(YP(B3(this,16),26)||xoe,t),e)},Pkt.zh=function(){return Ikt(),xoe},Pkt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void w2(this,null);case 2:return void i7(this,!0);case 3:return void o7(this,!0);case 4:return void D1(this,0);case 5:return void N1(this,1);case 8:return void t8(this,null);case 9:return void((e=sst(this,null,null))&&e.Fi());case 11:return!this.d&&(this.d=new UI(Poe,this,11)),void Fmt(this.d);case 12:return!this.c&&(this.c=new gR(noe,this,12,10)),void Fmt(this.c);case 13:return void(this.a&&Hmt(this.a));case 14:return void(this.b&&Fmt(this.b))}Z8(this,t-d$((Ikt(),xoe)),_J(YP(B3(this,16),26)||xoe,t))},Pkt.Gh=function(){var t,e;if(this.c)for(t=0,e=this.c.i;ti&&L$(t,i,null),n=0,e=new zI(kZ(this.a));e.e!=e.i.gc();)L$(t,n++,YP(ant(e),87).c||(Ikt(),woe));return t},Pkt.Yi=function(){var t,e,n,i;for((i=new Tv).a+="[",t=kZ(this.a),e=0,n=kZ(this.a).i;e1);case 5:return RU(this,t,e,n,i,this.i-YP(n,15).gc()>0);default:return new gZ(this.e,t,this.c,e,n,i,!0)}},Pkt.ij=function(){return!0},Pkt.fj=function(){return ait(this)},Pkt.Xj=function(){Fmt(this)},y$(vNt,"EOperationImpl/2",1341),Uht(498,1,{1938:1,498:1},$S),y$(vNt,"EPackageImpl/1",498),Uht(16,85,GBt,gR),Pkt.zk=function(){return this.d},Pkt.Ak=function(){return this.b},Pkt.Dk=function(){return!0},Pkt.b=0,y$(ABt,"EObjectContainmentWithInverseEList",16),Uht(353,16,GBt,yN),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectContainmentWithInverseEList/Resolving",353),Uht(298,353,GBt,lR),Pkt.ci=function(){this.a.tb=null},y$(vNt,"EPackageImpl/2",298),Uht(1228,1,{},(function(){})),y$(vNt,"EPackageImpl/3",1228),Uht(718,43,hTt,Hy),Pkt._b=function(t){return nA(t)?aH(this,t):!!LH(this.f,t)},y$(vNt,"EPackageRegistryImpl",718),Uht(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},qy),Pkt.Qg=function(t){return aat(this,t)},Pkt._g=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),(i=this.t)>1||-1==i;case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?YP(this.Cb,59):null}return LQ(this,t-d$((Ikt(),Eoe)),_J(YP(B3(this,16),26)||Eoe,t),e,n)},Pkt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),ctt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?aat(this,n):this.Cb.ih(this,-1-i,null,n)),iwt(this,t,10,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),Eoe),e),66).Nj().Qj(this,uet(this),e-d$((Ikt(),Eoe)),t,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 9:return b$(this,n);case 10:return iwt(this,null,10,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),Eoe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),Eoe)),t,n)},Pkt.lh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i);case 10:return!(this.Db>>16!=10||!YP(this.Cb,59))}return MK(this,t-d$((Ikt(),Eoe)),_J(YP(B3(this,16),26)||Eoe,t))},Pkt.zh=function(){return Ikt(),Eoe},y$(vNt,"EParameterImpl",509),Uht(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},tD),Pkt._g=function(t,e,n){var i,r;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return mL(),!!(256&this.Bb);case 3:return mL(),!!(512&this.Bb);case 4:return u7(this.s);case 5:return u7(this.t);case 6:return mL(),(r=this.t)>1||-1==r;case 7:return mL(),this.s>=1;case 8:return e?oat(this):this.r;case 9:return this.q;case 10:return mL(),!!(this.Bb&MNt);case 11:return mL(),!!(this.Bb&DBt);case 12:return mL(),!!(this.Bb&XEt);case 13:return this.j;case 14:return _dt(this);case 15:return mL(),!!(this.Bb&OBt);case 16:return mL(),!!(this.Bb&v_t);case 17:return BU(this);case 18:return mL(),!!(this.Bb&yNt);case 19:return mL(),!!((i=Xnt(this))&&i.Bb&yNt);case 20:return mL(),!!(this.Bb&QEt);case 21:return e?Xnt(this):this.b;case 22:return e?E5(this):uX(this);case 23:return!this.a&&(this.a=new KI(Yae,this,23)),this.a}return LQ(this,t-d$((Ikt(),Toe)),_J(YP(B3(this,16),26)||Toe,t),e,n)},Pkt.lh=function(t){var e,n;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(n=this.t)>1||-1==n;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==fz(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==fz(this.q).i);case 10:return 0==(this.Bb&MNt);case 11:return 0!=(this.Bb&DBt);case 12:return 0!=(this.Bb&XEt);case 13:return null!=this.j;case 14:return null!=_dt(this);case 15:return 0!=(this.Bb&OBt);case 16:return 0!=(this.Bb&v_t);case 17:return!!BU(this);case 18:return 0!=(this.Bb&yNt);case 19:return!!(e=Xnt(this))&&0!=(e.Bb&yNt);case 20:return 0==(this.Bb&QEt);case 21:return!!this.b;case 22:return!!uX(this);case 23:return!!this.a&&0!=this.a.i}return MK(this,t-d$((Ikt(),Toe)),_J(YP(B3(this,16),26)||Toe,t))},Pkt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void gG(this,sD(e));case 2:return void i7(this,Vm(aD(e)));case 3:return void o7(this,Vm(aD(e)));case 4:return void D1(this,YP(e,19).a);case 5:return void N1(this,YP(e,19).a);case 8:return void t8(this,YP(e,138));case 9:return void((n=sst(this,YP(e,87),null))&&n.Fi());case 10:return void M7(this,Vm(aD(e)));case 11:return void O7(this,Vm(aD(e)));case 12:return void I7(this,Vm(aD(e)));case 13:return void XS(this,sD(e));case 15:return void L7(this,Vm(aD(e)));case 16:return void B7(this,Vm(aD(e)));case 18:return void function(t,e){j7(t,e),EI(t.Cb,88)&&tlt(sX(YP(t.Cb,88)),2)}(this,Vm(aD(e)));case 20:return void R7(this,Vm(aD(e)));case 21:return void U0(this,YP(e,18));case 23:return!this.a&&(this.a=new KI(Yae,this,23)),Fmt(this.a),!this.a&&(this.a=new KI(Yae,this,23)),void w$(this.a,YP(e,14))}w9(this,t-d$((Ikt(),Toe)),_J(YP(B3(this,16),26)||Toe,t),e)},Pkt.zh=function(){return Ikt(),Toe},Pkt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return EI(this.Cb,88)&&tlt(sX(YP(this.Cb,88)),4),void w2(this,null);case 2:return void i7(this,!0);case 3:return void o7(this,!0);case 4:return void D1(this,0);case 5:return void N1(this,1);case 8:return void t8(this,null);case 9:return void((e=sst(this,null,null))&&e.Fi());case 10:return void M7(this,!0);case 11:return void O7(this,!1);case 12:return void I7(this,!1);case 13:return this.i=null,void Y0(this,null);case 15:return void L7(this,!1);case 16:return void B7(this,!1);case 18:return j7(this,!1),void(EI(this.Cb,88)&&tlt(sX(YP(this.Cb,88)),2));case 20:return void R7(this,!0);case 21:return void U0(this,null);case 23:return!this.a&&(this.a=new KI(Yae,this,23)),void Fmt(this.a)}Z8(this,t-d$((Ikt(),Toe)),_J(YP(B3(this,16),26)||Toe,t))},Pkt.Gh=function(){E5(this),Xz(xZ((lut(),rse),this)),oat(this),this.Bb|=1},Pkt.Lj=function(){return Xnt(this)},Pkt.qk=function(){var t;return!!(t=Xnt(this))&&0!=(t.Bb&yNt)},Pkt.rk=function(){return 0!=(this.Bb&yNt)},Pkt.sk=function(){return 0!=(this.Bb&QEt)},Pkt.nk=function(t,e){return this.c=null,R8(this,t,e)},Pkt.Ib=function(){var t;return 64&this.Db?Ypt(this):((t=new vL(Ypt(this))).a+=" (containment: ",Vx(t,0!=(this.Bb&yNt)),t.a+=", resolveProxies: ",Vx(t,0!=(this.Bb&QEt)),t.a+=")",t.a)},y$(vNt,"EReferenceImpl",99),Uht(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},Ac),Pkt.Fb=function(t){return this===t},Pkt.cd=function(){return this.b},Pkt.dd=function(){return this.c},Pkt.Hb=function(){return NL(this)},Pkt.Uh=function(t){!function(t,e){L0(t,null==e?null:(dz(e),e))}(this,sD(t))},Pkt.ed=function(t){return function(t,e){var n;return n=t.c,O0(t,e),n}(this,sD(t))},Pkt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return LQ(this,t-d$((Ikt(),Coe)),_J(YP(B3(this,16),26)||Coe,t),e,n)},Pkt.lh=function(t){switch(t){case 0:return null!=this.b;case 1:return null!=this.c}return MK(this,t-d$((Ikt(),Coe)),_J(YP(B3(this,16),26)||Coe,t))},Pkt.sh=function(t,e){switch(t){case 0:return void function(t,e){L0(t,null==e?null:(dz(e),e))}(this,sD(e));case 1:return void O0(this,sD(e))}w9(this,t-d$((Ikt(),Coe)),_J(YP(B3(this,16),26)||Coe,t),e)},Pkt.zh=function(){return Ikt(),Coe},Pkt.Bh=function(t){switch(t){case 0:return void L0(this,null);case 1:return void O0(this,null)}Z8(this,t-d$((Ikt(),Coe)),_J(YP(B3(this,16),26)||Coe,t))},Pkt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=null==t?0:qnt(t)),this.a},Pkt.Th=function(t){this.a=t},Pkt.Ib=function(){var t;return 64&this.Db?Nft(this):((t=new vL(Nft(this))).a+=" (key: ",fA(t,this.b),t.a+=", value: ",fA(t,this.c),t.a+=")",t.a)},Pkt.a=-1,Pkt.b=null,Pkt.c=null;var qoe,Hoe,Uoe,Goe,Yoe,Koe,Woe,Xoe,Voe,Qoe,Zoe=y$(vNt,"EStringToStringMapEntryImpl",548),Joe=eF(ABt,"FeatureMap/Entry/Internal");Uht(565,1,JBt),Pkt.Ok=function(t){return this.Pk(YP(t,49))},Pkt.Pk=function(t){return this.Ok(t)},Pkt.Fb=function(t){var e,n;return this===t||!!EI(t,72)&&(e=YP(t,72)).ak()==this.c&&(null==(n=this.dd())?null==e.dd():U8(n,e.dd()))},Pkt.ak=function(){return this.c},Pkt.Hb=function(){var t;return t=this.dd(),q5(this.c)^(null==t?0:q5(t))},Pkt.Ib=function(){var t,e;return e=QJ((t=this.c).Hj()).Ph(),t.ne(),(null!=e&&0!=e.length?e+":"+t.ne():t.ne())+"="+this.dd()},y$(vNt,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),Uht(776,565,JBt,PD),Pkt.Pk=function(t){return new PD(this.c,t)},Pkt.dd=function(){return this.a},Pkt.Qk=function(t,e,n){return function(t,e,n,i,r){var a;return n&&(a=X9(e.Tg(),t.c),r=n.gh(e,-1-(-1==a?i:a),null,r)),r}(this,t,this.a,e,n)},Pkt.Rk=function(t,e,n){return function(t,e,n,i,r){var a;return n&&(a=X9(e.Tg(),t.c),r=n.ih(e,-1-(-1==a?i:a),null,r)),r}(this,t,this.a,e,n)},y$(vNt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),Uht(1314,1,{},zS),Pkt.Pj=function(t,e,n,i,r){return YP(yQ(t,this.b),215).nl(this.a).Wj(i)},Pkt.Qj=function(t,e,n,i,r){return YP(yQ(t,this.b),215).el(this.a,i,r)},Pkt.Rj=function(t,e,n,i,r){return YP(yQ(t,this.b),215).fl(this.a,i,r)},Pkt.Sj=function(t,e,n){return YP(yQ(t,this.b),215).nl(this.a).fj()},Pkt.Tj=function(t,e,n,i){YP(yQ(t,this.b),215).nl(this.a).Wb(i)},Pkt.Uj=function(t,e,n){return YP(yQ(t,this.b),215).nl(this.a)},Pkt.Vj=function(t,e,n){YP(yQ(t,this.b),215).nl(this.a).Xj()},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),Uht(89,1,{},NP,Aq,FH,iW),Pkt.Pj=function(t,e,n,i,r){var a;if(null==(a=e.Ch(n))&&e.Dh(n,a=vkt(this,t)),!r)switch(this.e){case 50:case 41:return YP(a,589).sj();case 40:return YP(a,215).kl()}return a},Pkt.Qj=function(t,e,n,i,r){var a;return null==(a=e.Ch(n))&&e.Dh(n,a=vkt(this,t)),YP(a,69).lk(i,r)},Pkt.Rj=function(t,e,n,i,r){var a;return null!=(a=e.Ch(n))&&(r=YP(a,69).mk(i,r)),r},Pkt.Sj=function(t,e,n){var i;return null!=(i=e.Ch(n))&&YP(i,76).fj()},Pkt.Tj=function(t,e,n,i){var r;!(r=YP(e.Ch(n),76))&&e.Dh(n,r=vkt(this,t)),r.Wb(i)},Pkt.Uj=function(t,e,n){var i;return null==(i=e.Ch(n))&&e.Dh(n,i=vkt(this,t)),EI(i,76)?YP(i,76):new Hb(YP(e.Ch(n),15))},Pkt.Vj=function(t,e,n){var i;!(i=YP(e.Ch(n),76))&&e.Dh(n,i=vkt(this,t)),i.Xj()},Pkt.b=0,Pkt.e=0,y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),Uht(504,1,{}),Pkt.Qj=function(t,e,n,i,r){throw ow(new Lw)},Pkt.Rj=function(t,e,n,i,r){throw ow(new Lw)},Pkt.Uj=function(t,e,n){return new Mq(this,t,e,n)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),Uht(1331,1,MBt,Mq),Pkt.Wj=function(t){return this.a.Pj(this.c,this.d,this.b,t,!0)},Pkt.fj=function(){return this.a.Sj(this.c,this.d,this.b)},Pkt.Wb=function(t){this.a.Tj(this.c,this.d,this.b,t)},Pkt.Xj=function(){this.a.Vj(this.c,this.d,this.b)},Pkt.b=0,y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),Uht(769,504,{},VH),Pkt.Pj=function(t,e,n,i,r){return Ebt(t,t.eh(),t.Vg())==this.b?this.sk()&&i?Fht(t):t.eh():null},Pkt.Qj=function(t,e,n,i,r){var a,o;return t.eh()&&(r=(a=t.Vg())>=0?t.Qg(r):t.eh().ih(t,-1-a,null,r)),o=X9(t.Tg(),this.e),t.Sg(i,o,r)},Pkt.Rj=function(t,e,n,i,r){var a;return a=X9(t.Tg(),this.e),t.Sg(null,a,r)},Pkt.Sj=function(t,e,n){var i;return i=X9(t.Tg(),this.e),!!t.eh()&&t.Vg()==i},Pkt.Tj=function(t,e,n,i){var r,a,o,s,c;if(null!=i&&!Ywt(this.a,i))throw ow(new Gm(tFt+(EI(i,56)?hot(YP(i,56).Tg()):SJ(H5(i)))+eFt+this.a+"'"));if(r=t.eh(),o=X9(t.Tg(),this.e),JS(i)!==JS(r)||t.Vg()!=o&&null!=i){if(tat(t,YP(i,56)))throw ow(new Ym(kNt+t.Ib()));c=null,r&&(c=(a=t.Vg())>=0?t.Qg(c):t.eh().ih(t,-1-a,null,c)),(s=YP(i,49))&&(c=s.gh(t,X9(s.Tg(),this.b),null,c)),(c=t.Sg(s,o,c))&&c.Fi()}else t.Lg()&&t.Mg()&&O3(t,new fR(t,1,o,i,i))},Pkt.Vj=function(t,e,n){var i,r,a;t.eh()?(a=(i=t.Vg())>=0?t.Qg(null):t.eh().ih(t,-1-i,null,null),r=X9(t.Tg(),this.e),(a=t.Sg(null,r,a))&&a.Fi()):t.Lg()&&t.Mg()&&O3(t,new dR(t,1,this.e,null,null))},Pkt.sk=function(){return!1},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),Uht(1315,769,{},PP),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),Uht(563,504,{}),Pkt.Pj=function(t,e,n,i,r){var a;return null==(a=e.Ch(n))?this.b:JS(a)===JS(qoe)?null:a},Pkt.Sj=function(t,e,n){var i;return null!=(i=e.Ch(n))&&(JS(i)===JS(qoe)||!U8(i,this.b))},Pkt.Tj=function(t,e,n,i){var r,a;t.Lg()&&t.Mg()?(r=null==(a=e.Ch(n))?this.b:JS(a)===JS(qoe)?null:a,null==i?null!=this.c?(e.Dh(n,null),i=this.b):null!=this.b?e.Dh(n,qoe):e.Dh(n,null):(this.Sk(i),e.Dh(n,i)),O3(t,this.d.Tk(t,1,this.e,r,i))):null==i?null!=this.c?e.Dh(n,null):null!=this.b?e.Dh(n,qoe):e.Dh(n,null):(this.Sk(i),e.Dh(n,i))},Pkt.Vj=function(t,e,n){var i,r;t.Lg()&&t.Mg()?(i=null==(r=e.Ch(n))?this.b:JS(r)===JS(qoe)?null:r,e.Eh(n),O3(t,this.d.Tk(t,1,this.e,i,this.b))):e.Eh(n)},Pkt.Sk=function(t){throw ow(new Sw)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),Uht(nFt,1,{},Mc),Pkt.Tk=function(t,e,n,i,r){return new dR(t,e,n,i,r)},Pkt.Uk=function(t,e,n,i,r,a){return new Vq(t,e,n,i,r,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",nFt),Uht(1332,nFt,{},Ic),Pkt.Tk=function(t,e,n,i,r){return new _X(t,e,n,Vm(aD(i)),Vm(aD(r)))},Pkt.Uk=function(t,e,n,i,r,a){return new sY(t,e,n,Vm(aD(i)),Vm(aD(r)),a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),Uht(1333,nFt,{},Lc),Pkt.Tk=function(t,e,n,i,r){return new q1(t,e,n,YP(i,217).a,YP(r,217).a)},Pkt.Uk=function(t,e,n,i,r,a){return new tY(t,e,n,YP(i,217).a,YP(r,217).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),Uht(1334,nFt,{},Oc),Pkt.Tk=function(t,e,n,i,r){return new H1(t,e,n,YP(i,172).a,YP(r,172).a)},Pkt.Uk=function(t,e,n,i,r,a){return new eY(t,e,n,YP(i,172).a,YP(r,172).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),Uht(1335,nFt,{},Dc),Pkt.Tk=function(t,e,n,i,r){return new xX(t,e,n,Qm(oD(i)),Qm(oD(r)))},Pkt.Uk=function(t,e,n,i,r,a){return new nY(t,e,n,Qm(oD(i)),Qm(oD(r)),a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),Uht(1336,nFt,{},Nc),Pkt.Tk=function(t,e,n,i,r){return new Y1(t,e,n,YP(i,155).a,YP(r,155).a)},Pkt.Uk=function(t,e,n,i,r,a){return new iY(t,e,n,YP(i,155).a,YP(r,155).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),Uht(1337,nFt,{},Pc),Pkt.Tk=function(t,e,n,i,r){return new kX(t,e,n,YP(i,19).a,YP(r,19).a)},Pkt.Uk=function(t,e,n,i,r,a){return new rY(t,e,n,YP(i,19).a,YP(r,19).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),Uht(1338,nFt,{},Bc),Pkt.Tk=function(t,e,n,i,r){return new U1(t,e,n,YP(i,162).a,YP(r,162).a)},Pkt.Uk=function(t,e,n,i,r,a){return new aY(t,e,n,YP(i,162).a,YP(r,162).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),Uht(1339,nFt,{},Fc),Pkt.Tk=function(t,e,n,i,r){return new G1(t,e,n,YP(i,184).a,YP(r,184).a)},Pkt.Uk=function(t,e,n,i,r,a){return new oY(t,e,n,YP(i,184).a,YP(r,184).a,a)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),Uht(1317,563,{},Iq),Pkt.Sk=function(t){if(!this.a.wj(t))throw ow(new Gm(tFt+H5(t)+eFt+this.a+"'"))},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),Uht(1318,563,{},vj),Pkt.Sk=function(t){},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),Uht(770,563,{}),Pkt.Sj=function(t,e,n){return null!=e.Ch(n)},Pkt.Tj=function(t,e,n,i){var r,a;t.Lg()&&t.Mg()?(r=!0,null==(a=e.Ch(n))?(r=!1,a=this.b):JS(a)===JS(qoe)&&(a=null),null==i?null!=this.c?(e.Dh(n,null),i=this.b):e.Dh(n,qoe):(this.Sk(i),e.Dh(n,i)),O3(t,this.d.Uk(t,1,this.e,a,i,!r))):null==i?null!=this.c?e.Dh(n,null):e.Dh(n,qoe):(this.Sk(i),e.Dh(n,i))},Pkt.Vj=function(t,e,n){var i,r;t.Lg()&&t.Mg()?(i=!0,null==(r=e.Ch(n))?(i=!1,r=this.b):JS(r)===JS(qoe)&&(r=null),e.Eh(n),O3(t,this.d.Uk(t,2,this.e,r,this.b,i))):e.Eh(n)},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),Uht(1319,770,{},Lq),Pkt.Sk=function(t){if(!this.a.wj(t))throw ow(new Gm(tFt+H5(t)+eFt+this.a+"'"))},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),Uht(1320,770,{},xj),Pkt.Sk=function(t){},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),Uht(398,504,{},DF),Pkt.Pj=function(t,e,n,i,r){var a,o,s,c,u;if(u=e.Ch(n),this.Kj()&&JS(u)===JS(qoe))return null;if(this.sk()&&i&&null!=u){if((s=YP(u,49)).kh()&&s!=(c=x8(t,s))){if(!Ywt(this.a,c))throw ow(new Gm(tFt+H5(c)+eFt+this.a+"'"));e.Dh(n,u=c),this.rk()&&(a=YP(c,49),o=s.ih(t,this.b?X9(s.Tg(),this.b):-1-X9(t.Tg(),this.e),null,null),!a.eh()&&(o=a.gh(t,this.b?X9(a.Tg(),this.b):-1-X9(t.Tg(),this.e),null,o)),o&&o.Fi()),t.Lg()&&t.Mg()&&O3(t,new dR(t,9,this.e,s,c))}return u}return u},Pkt.Qj=function(t,e,n,i,r){var a,o;return JS(o=e.Ch(n))===JS(qoe)&&(o=null),e.Dh(n,i),this.bj()?JS(o)!==JS(i)&&null!=o&&(r=(a=YP(o,49)).ih(t,X9(a.Tg(),this.b),null,r)):this.rk()&&null!=o&&(r=YP(o,49).ih(t,-1-X9(t.Tg(),this.e),null,r)),t.Lg()&&t.Mg()&&(!r&&(r=new mx(4)),r.Ei(new dR(t,1,this.e,o,i))),r},Pkt.Rj=function(t,e,n,i,r){var a;return JS(a=e.Ch(n))===JS(qoe)&&(a=null),e.Eh(n),t.Lg()&&t.Mg()&&(!r&&(r=new mx(4)),this.Kj()?r.Ei(new dR(t,2,this.e,a,null)):r.Ei(new dR(t,1,this.e,a,null))),r},Pkt.Sj=function(t,e,n){return null!=e.Ch(n)},Pkt.Tj=function(t,e,n,i){var r,a,o,s,c;if(null!=i&&!Ywt(this.a,i))throw ow(new Gm(tFt+(EI(i,56)?hot(YP(i,56).Tg()):SJ(H5(i)))+eFt+this.a+"'"));s=null!=(c=e.Ch(n)),this.Kj()&&JS(c)===JS(qoe)&&(c=null),o=null,this.bj()?JS(c)!==JS(i)&&(null!=c&&(o=(r=YP(c,49)).ih(t,X9(r.Tg(),this.b),null,o)),null!=i&&(o=(r=YP(i,49)).gh(t,X9(r.Tg(),this.b),null,o))):this.rk()&&JS(c)!==JS(i)&&(null!=c&&(o=YP(c,49).ih(t,-1-X9(t.Tg(),this.e),null,o)),null!=i&&(o=YP(i,49).gh(t,-1-X9(t.Tg(),this.e),null,o))),null==i&&this.Kj()?e.Dh(n,qoe):e.Dh(n,i),t.Lg()&&t.Mg()?(a=new Vq(t,1,this.e,c,i,this.Kj()&&!s),o?(o.Ei(a),o.Fi()):O3(t,a)):o&&o.Fi()},Pkt.Vj=function(t,e,n){var i,r,a,o,s;o=null!=(s=e.Ch(n)),this.Kj()&&JS(s)===JS(qoe)&&(s=null),a=null,null!=s&&(this.bj()?a=(i=YP(s,49)).ih(t,X9(i.Tg(),this.b),null,a):this.rk()&&(a=YP(s,49).ih(t,-1-X9(t.Tg(),this.e),null,a))),e.Eh(n),t.Lg()&&t.Mg()?(r=new Vq(t,this.Kj()?2:1,this.e,s,null,o),a?(a.Ei(r),a.Fi()):O3(t,r)):a&&a.Fi()},Pkt.bj=function(){return!1},Pkt.rk=function(){return!1},Pkt.sk=function(){return!1},Pkt.Kj=function(){return!1},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),Uht(564,398,{},zO),Pkt.rk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),Uht(1323,564,{},qO),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),Uht(772,564,{},HO),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),Uht(1325,772,{},UO),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),Uht(640,564,{},BP),Pkt.bj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),Uht(1324,640,{},RP),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),Uht(773,640,{},$P),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),Uht(1326,773,{},zP),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),Uht(641,398,{},GO),Pkt.sk=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),Uht(1327,641,{},YO),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),Uht(774,641,{},FP),Pkt.bj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),Uht(1328,774,{},qP),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),Uht(1321,398,{},KO),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),Uht(771,398,{},jP),Pkt.bj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),Uht(1322,771,{},HP),Pkt.Kj=function(){return!0},y$(vNt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),Uht(775,565,JBt,tz),Pkt.Pk=function(t){return new tz(this.a,this.c,t)},Pkt.dd=function(){return this.b},Pkt.Qk=function(t,e,n){return function(t,e,n,i){return n&&(i=n.gh(e,X9(n.Tg(),t.c.Lj()),null,i)),i}(this,t,this.b,n)},Pkt.Rk=function(t,e,n){return function(t,e,n,i){return n&&(i=n.ih(e,X9(n.Tg(),t.c.Lj()),null,i)),i}(this,t,this.b,n)},y$(vNt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),Uht(1329,1,MBt,Hb),Pkt.Wj=function(t){return this.a},Pkt.fj=function(){return EI(this.a,95)?YP(this.a,95).fj():!this.a.dc()},Pkt.Wb=function(t){this.a.$b(),this.a.Gc(YP(t,15))},Pkt.Xj=function(){EI(this.a,95)?YP(this.a,95).Xj():this.a.$b()},y$(vNt,"EStructuralFeatureImpl/SettingMany",1329),Uht(1330,565,JBt,aW),Pkt.Ok=function(t){return new BD((evt(),Gse),this.b.Ih(this.a,t))},Pkt.dd=function(){return null},Pkt.Qk=function(t,e,n){return n},Pkt.Rk=function(t,e,n){return n},y$(vNt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),Uht(642,565,JBt,BD),Pkt.Ok=function(t){return new BD(this.c,t)},Pkt.dd=function(){return this.a},Pkt.Qk=function(t,e,n){return n},Pkt.Rk=function(t,e,n){return n},y$(vNt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),Uht(391,497,yPt,jc),Pkt.ri=function(t){return HV(Wae,Zkt,26,t,0,1)},Pkt.ni=function(){return!1},y$(vNt,"ESuperAdapter/1",391),Uht(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},Rc),Pkt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new NF(this,toe,this)),this.a}return LQ(this,t-d$((Ikt(),Moe)),_J(YP(B3(this,16),26)||Moe,t),e,n)},Pkt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),mnt(this.Ab,t,n);case 2:return!this.a&&(this.a=new NF(this,toe,this)),mnt(this.a,t,n)}return YP(_J(YP(B3(this,16),26)||(Ikt(),Moe),e),66).Nj().Rj(this,uet(this),e-d$((Ikt(),Moe)),t,n)},Pkt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return MK(this,t-d$((Ikt(),Moe)),_J(YP(B3(this,16),26)||Moe,t))},Pkt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),Fmt(this.Ab),!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void w$(this.Ab,YP(e,14));case 1:return void w2(this,sD(e));case 2:return!this.a&&(this.a=new NF(this,toe,this)),Fmt(this.a),!this.a&&(this.a=new NF(this,toe,this)),void w$(this.a,YP(e,14))}w9(this,t-d$((Ikt(),Moe)),_J(YP(B3(this,16),26)||Moe,t),e)},Pkt.zh=function(){return Ikt(),Moe},Pkt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new gR(Hae,this,0,3)),void Fmt(this.Ab);case 1:return void w2(this,null);case 2:return!this.a&&(this.a=new NF(this,toe,this)),void Fmt(this.a)}Z8(this,t-d$((Ikt(),Moe)),_J(YP(B3(this,16),26)||Moe,t))},y$(vNt,"ETypeParameterImpl",444),Uht(445,85,GBt,NF),Pkt.cj=function(t,e){return function(t,e,n){var i,r;for(n=gnt(e,t.e,-1-t.c,n),r=new Gb(new X5(new Kf(yz(t.a).a).a));r.a.b;)n=$vt(i=YP(i1(r.a).cd(),87),hdt(i,t.a),n);return n}(this,YP(t,87),e)},Pkt.dj=function(t,e){return function(t,e,n){var i,r;for(n=zH(e,t.e,-1-t.c,n),r=new Gb(new X5(new Kf(yz(t.a).a).a));r.a.b;)n=$vt(i=YP(i1(r.a).cd(),87),hdt(i,t.a),n);return n}(this,YP(t,87),e)},y$(vNt,"ETypeParameterImpl/1",445),Uht(634,43,hTt,Uy),Pkt.ec=function(){return new Ub(this)},y$(vNt,"ETypeParameterImpl/2",634),Uht(556,l_t,h_t,Ub),Pkt.Fc=function(t){return bN(this,YP(t,87))},Pkt.Gc=function(t){var e,n,i;for(i=!1,n=t.Kc();n.Ob();)e=YP(n.Pb(),87),null==Iz(this.a,e,"")&&(i=!0);return i},Pkt.$b=function(){zR(this.a)},Pkt.Hc=function(t){return kR(this.a,t)},Pkt.Kc=function(){return new Gb(new X5(new Kf(this.a).a))},Pkt.Mc=function(t){return rV(this,t)},Pkt.gc=function(){return o_(this.a)},y$(vNt,"ETypeParameterImpl/2/1",556),Uht(557,1,o_t,Gb),Pkt.Nb=function(t){_R(this,t)},Pkt.Pb=function(){return YP(i1(this.a).cd(),87)},Pkt.Ob=function(){return this.a.b},Pkt.Qb=function(){nQ(this.a)},y$(vNt,"ETypeParameterImpl/2/1/1",557),Uht(1276,43,hTt,Gy),Pkt._b=function(t){return nA(t)?aH(this,t):!!LH(this.f,t)},Pkt.xc=function(t){var e;return EI(e=nA(t)?eU(this,t):ZS(LH(this.f,t)),837)?(e=YP(e,837)._j(),Iz(this,YP(t,235),e),e):e??(null==t?(mE(),use):null)},y$(vNt,"EValidatorRegistryImpl",1276),Uht(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},$c),Pkt.Ih=function(t,e){switch(t.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==e?null:k9(e);case 25:return ZJ(e);case 27:return EI(n=e,172)?""+YP(n,172).a:null==n?null:k9(n);case 28:return function(t){return EI(t,172)?""+YP(t,172).a:null==t?null:k9(t)}(e);case 29:return null==e?null:hI(Pre[0],YP(e,199));case 41:return null==e?"":Ix(YP(e,290));case 42:return k9(e);case 50:return sD(e);default:throw ow(new Ym(_Nt+t.ne()+ENt))}var n},Pkt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=QJ(t))?Ont(e.Mh(),t):-1),t.G){case 0:return new Ry;case 1:return new vc;case 2:return new Dh;case 4:return new Fw;case 5:return new $y;case 6:return new Bw;case 7:return new Lh;case 10:return new yc;case 11:return new zy;case 12:return new xH;case 13:return new qy;case 14:return new tD;case 17:return new Ac;case 18:return new iw;case 19:return new Rc;default:throw ow(new Ym(SNt+t.zb+ENt))}},Pkt.Kh=function(t,e){switch(t.yj()){case 20:return null==e?null:new Ux(e);case 21:return null==e?null:new _M(e);case 23:case 22:return null==e?null:function(t){if(det(bDt,t))return mL(),SRt;if(det(wDt,t))return mL(),CRt;throw ow(new Ym("Expecting true or false"))}(e);case 26:case 24:return null==e?null:QZ(Jbt(e,-128,127)<<24>>24);case 25:return function(t){var e,n,i,r,a,o,s;if(null==t)return null;for(s=t.length,o=HV(zce,CNt,25,r=(s+1)/2|0,15,1),s%2!=0&&(o[--r]=Cpt((SG(s-1,t.length),t.charCodeAt(s-1)))),n=0,i=0;n>24;return o}(e);case 27:return function(t){var e;if(null==t)return null;e=0;try{e=Jbt(t,X_t,Ykt)&oEt}catch(n){if(!EI(n=b4(n),127))throw ow(n);e=MZ(t)[0]}return p4(e)}(e);case 28:return function(t){var e;if(null==t)return null;e=0;try{e=Jbt(t,X_t,Ykt)&oEt}catch(n){if(!EI(n=b4(n),127))throw ow(n);e=MZ(t)[0]}return p4(e)}(e);case 29:return function(t){var e,n;if(null==t)return null;for(e=null,n=0;n>16);case 50:return e;default:throw ow(new Ym(_Nt+t.ne()+ENt))}},y$(vNt,"EcoreFactoryImpl",1313),Uht(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},Sz),Pkt.gb=!1,Pkt.hb=!1;var tse,ese=!1;y$(vNt,"EcorePackageImpl",547),Uht(1184,1,{837:1},zc),Pkt._j=function(){return yL(),lse},y$(vNt,"EcorePackageImpl/1",1184),Uht(1193,1,wFt,qc),Pkt.wj=function(t){return EI(t,147)},Pkt.xj=function(t){return HV(Yre,Zkt,147,t,0,1)},y$(vNt,"EcorePackageImpl/10",1193),Uht(1194,1,wFt,Hc),Pkt.wj=function(t){return EI(t,191)},Pkt.xj=function(t){return HV(Wre,Zkt,191,t,0,1)},y$(vNt,"EcorePackageImpl/11",1194),Uht(1195,1,wFt,Uc),Pkt.wj=function(t){return EI(t,56)},Pkt.xj=function(t){return HV(jre,Zkt,56,t,0,1)},y$(vNt,"EcorePackageImpl/12",1195),Uht(1196,1,wFt,Gc),Pkt.wj=function(t){return EI(t,399)},Pkt.xj=function(t){return HV(eoe,HBt,59,t,0,1)},y$(vNt,"EcorePackageImpl/13",1196),Uht(1197,1,wFt,Yc),Pkt.wj=function(t){return EI(t,235)},Pkt.xj=function(t){return HV(Xre,Zkt,235,t,0,1)},y$(vNt,"EcorePackageImpl/14",1197),Uht(1198,1,wFt,Kc),Pkt.wj=function(t){return EI(t,509)},Pkt.xj=function(t){return HV(noe,Zkt,2017,t,0,1)},y$(vNt,"EcorePackageImpl/15",1198),Uht(1199,1,wFt,Wc),Pkt.wj=function(t){return EI(t,99)},Pkt.xj=function(t){return HV(ioe,qBt,18,t,0,1)},y$(vNt,"EcorePackageImpl/16",1199),Uht(1200,1,wFt,Xc),Pkt.wj=function(t){return EI(t,170)},Pkt.xj=function(t){return HV(Gae,qBt,170,t,0,1)},y$(vNt,"EcorePackageImpl/17",1200),Uht(1201,1,wFt,Vc),Pkt.wj=function(t){return EI(t,472)},Pkt.xj=function(t){return HV(Uae,Zkt,472,t,0,1)},y$(vNt,"EcorePackageImpl/18",1201),Uht(1202,1,wFt,Qc),Pkt.wj=function(t){return EI(t,548)},Pkt.xj=function(t){return HV(Zoe,gBt,548,t,0,1)},y$(vNt,"EcorePackageImpl/19",1202),Uht(1185,1,wFt,Zc),Pkt.wj=function(t){return EI(t,322)},Pkt.xj=function(t){return HV(Yae,qBt,34,t,0,1)},y$(vNt,"EcorePackageImpl/2",1185),Uht(1203,1,wFt,Jc),Pkt.wj=function(t){return EI(t,241)},Pkt.xj=function(t){return HV(toe,XBt,87,t,0,1)},y$(vNt,"EcorePackageImpl/20",1203),Uht(1204,1,wFt,tu),Pkt.wj=function(t){return EI(t,444)},Pkt.xj=function(t){return HV(Poe,Zkt,836,t,0,1)},y$(vNt,"EcorePackageImpl/21",1204),Uht(1205,1,wFt,eu),Pkt.wj=function(t){return tA(t)},Pkt.xj=function(t){return HV(MRt,m_t,476,t,8,1)},y$(vNt,"EcorePackageImpl/22",1205),Uht(1206,1,wFt,nu),Pkt.wj=function(t){return EI(t,190)},Pkt.xj=function(t){return HV(zce,m_t,190,t,0,2)},y$(vNt,"EcorePackageImpl/23",1206),Uht(1207,1,wFt,iu),Pkt.wj=function(t){return EI(t,217)},Pkt.xj=function(t){return HV(LRt,m_t,217,t,0,1)},y$(vNt,"EcorePackageImpl/24",1207),Uht(1208,1,wFt,ru),Pkt.wj=function(t){return EI(t,172)},Pkt.xj=function(t){return HV(NRt,m_t,172,t,0,1)},y$(vNt,"EcorePackageImpl/25",1208),Uht(1209,1,wFt,au),Pkt.wj=function(t){return EI(t,199)},Pkt.xj=function(t){return HV(TRt,m_t,199,t,0,1)},y$(vNt,"EcorePackageImpl/26",1209),Uht(1210,1,wFt,ou),Pkt.wj=function(t){return!1},Pkt.xj=function(t){return HV(Yce,Zkt,2110,t,0,1)},y$(vNt,"EcorePackageImpl/27",1210),Uht(1211,1,wFt,su),Pkt.wj=function(t){return eA(t)},Pkt.xj=function(t){return HV(PRt,m_t,333,t,7,1)},y$(vNt,"EcorePackageImpl/28",1211),Uht(1212,1,wFt,cu),Pkt.wj=function(t){return EI(t,58)},Pkt.xj=function(t){return HV(fae,lSt,58,t,0,1)},y$(vNt,"EcorePackageImpl/29",1212),Uht(1186,1,wFt,uu),Pkt.wj=function(t){return EI(t,510)},Pkt.xj=function(t){return HV(Hae,{3:1,4:1,5:1,1934:1},590,t,0,1)},y$(vNt,"EcorePackageImpl/3",1186),Uht(1213,1,wFt,lu),Pkt.wj=function(t){return EI(t,573)},Pkt.xj=function(t){return HV(Tae,Zkt,1940,t,0,1)},y$(vNt,"EcorePackageImpl/30",1213),Uht(1214,1,wFt,hu),Pkt.wj=function(t){return EI(t,153)},Pkt.xj=function(t){return HV(dse,lSt,153,t,0,1)},y$(vNt,"EcorePackageImpl/31",1214),Uht(1215,1,wFt,fu),Pkt.wj=function(t){return EI(t,72)},Pkt.xj=function(t){return HV(Foe,yFt,72,t,0,1)},y$(vNt,"EcorePackageImpl/32",1215),Uht(1216,1,wFt,du),Pkt.wj=function(t){return EI(t,155)},Pkt.xj=function(t){return HV(BRt,m_t,155,t,0,1)},y$(vNt,"EcorePackageImpl/33",1216),Uht(1217,1,wFt,gu),Pkt.wj=function(t){return EI(t,19)},Pkt.xj=function(t){return HV(RRt,m_t,19,t,0,1)},y$(vNt,"EcorePackageImpl/34",1217),Uht(1218,1,wFt,pu),Pkt.wj=function(t){return EI(t,290)},Pkt.xj=function(t){return HV($jt,Zkt,290,t,0,1)},y$(vNt,"EcorePackageImpl/35",1218),Uht(1219,1,wFt,bu),Pkt.wj=function(t){return EI(t,162)},Pkt.xj=function(t){return HV(GRt,m_t,162,t,0,1)},y$(vNt,"EcorePackageImpl/36",1219),Uht(1220,1,wFt,wu),Pkt.wj=function(t){return EI(t,83)},Pkt.xj=function(t){return HV(qjt,Zkt,83,t,0,1)},y$(vNt,"EcorePackageImpl/37",1220),Uht(1221,1,wFt,yu),Pkt.wj=function(t){return EI(t,591)},Pkt.xj=function(t){return HV(cse,Zkt,591,t,0,1)},y$(vNt,"EcorePackageImpl/38",1221),Uht(1222,1,wFt,mu),Pkt.wj=function(t){return!1},Pkt.xj=function(t){return HV(Kce,Zkt,2111,t,0,1)},y$(vNt,"EcorePackageImpl/39",1222),Uht(1187,1,wFt,vu),Pkt.wj=function(t){return EI(t,88)},Pkt.xj=function(t){return HV(Wae,Zkt,26,t,0,1)},y$(vNt,"EcorePackageImpl/4",1187),Uht(1223,1,wFt,xu),Pkt.wj=function(t){return EI(t,184)},Pkt.xj=function(t){return HV(KRt,m_t,184,t,0,1)},y$(vNt,"EcorePackageImpl/40",1223),Uht(1224,1,wFt,ku),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(vNt,"EcorePackageImpl/41",1224),Uht(1225,1,wFt,_u),Pkt.wj=function(t){return EI(t,588)},Pkt.xj=function(t){return HV(gae,Zkt,588,t,0,1)},y$(vNt,"EcorePackageImpl/42",1225),Uht(1226,1,wFt,Eu),Pkt.wj=function(t){return!1},Pkt.xj=function(t){return HV(Wce,m_t,2112,t,0,1)},y$(vNt,"EcorePackageImpl/43",1226),Uht(1227,1,wFt,Tu),Pkt.wj=function(t){return EI(t,42)},Pkt.xj=function(t){return HV(Vjt,L_t,42,t,0,1)},y$(vNt,"EcorePackageImpl/44",1227),Uht(1188,1,wFt,Cu),Pkt.wj=function(t){return EI(t,138)},Pkt.xj=function(t){return HV(Kae,Zkt,138,t,0,1)},y$(vNt,"EcorePackageImpl/5",1188),Uht(1189,1,wFt,Su),Pkt.wj=function(t){return EI(t,148)},Pkt.xj=function(t){return HV(Xae,Zkt,148,t,0,1)},y$(vNt,"EcorePackageImpl/6",1189),Uht(1190,1,wFt,Au),Pkt.wj=function(t){return EI(t,457)},Pkt.xj=function(t){return HV(Zae,Zkt,671,t,0,1)},y$(vNt,"EcorePackageImpl/7",1190),Uht(1191,1,wFt,Mu),Pkt.wj=function(t){return EI(t,573)},Pkt.xj=function(t){return HV(Jae,Zkt,678,t,0,1)},y$(vNt,"EcorePackageImpl/8",1191),Uht(1192,1,wFt,Iu),Pkt.wj=function(t){return EI(t,471)},Pkt.xj=function(t){return HV(Kre,Zkt,471,t,0,1)},y$(vNt,"EcorePackageImpl/9",1192),Uht(1025,1982,fBt,qm),Pkt.bi=function(t,e){!function(t,e){var n,i,r;if(e.vi(t.a),null!=(r=YP(B3(t.a,8),1936)))for(n=0,i=r.length;n0){if(SG(0,t.length),47==t.charCodeAt(0)){for(a=new hV(4),r=1,e=1;e0&&(t=t.substr(0,n))}return function(t,e){var n,i,r,a,o,s;for(a=null,r=new bR((!t.a&&(t.a=new Yb(t)),t.a));iht(r);)if(Qyt(o=(n=YP(ndt(r),56)).Tg()),null!=(i=(s=o.o)&&n.mh(s)?ON(f4(s),n.ah(s)):null)&&NN(i,e)){a=n;break}return a}(this,t)},Pkt.Xk=function(){return this.c},Pkt.Ib=function(){return Ix(this.gm)+"@"+(q5(this)>>>0).toString(16)+" uri='"+this.d+"'"},Pkt.b=!1,y$(xFt,"ResourceImpl",781),Uht(1379,781,vFt,Wb),y$(xFt,"BinaryResourceImpl",1379),Uht(1169,694,mPt),Pkt.si=function(t){return EI(t,56)?function(t,e){return t.a?e.Wg().Kc():YP(e.Wg(),69).Zh()}(this,YP(t,56)):EI(t,591)?new zI(YP(t,591).Vk()):JS(t)===JS(this.f)?YP(t,14).Kc():(ZO(),kae.a)},Pkt.Ob=function(){return iht(this)},Pkt.a=!1,y$(ABt,"EcoreUtil/ContentTreeIterator",1169),Uht(1380,1169,mPt,bR),Pkt.si=function(t){return JS(t)===JS(this.f)?YP(t,15).Kc():new rK(YP(t,56))},y$(xFt,"ResourceImpl/5",1380),Uht(648,1994,UBt,Yb),Pkt.Hc=function(t){return this.i<=4?Pat(this,t):EI(t,49)&&YP(t,49).Zg()==this.a},Pkt.bi=function(t,e){t==this.i-1&&(this.a.b||(this.a.b=!0))},Pkt.di=function(t,e){0==t?this.a.b||(this.a.b=!0):zV(this,t,e)},Pkt.fi=function(t,e){},Pkt.gi=function(t,e,n){},Pkt.aj=function(){return 2},Pkt.Ai=function(){return this.a},Pkt.bj=function(){return!0},Pkt.cj=function(t,e){return YP(t,49).wh(this.a,e)},Pkt.dj=function(t,e){return YP(t,49).wh(null,e)},Pkt.ej=function(){return!1},Pkt.hi=function(){return!0},Pkt.ri=function(t){return HV(jre,Zkt,56,t,0,1)},Pkt.ni=function(){return!1},y$(xFt,"ResourceImpl/ContentsEList",648),Uht(957,1964,H_t,Kb),Pkt.Zc=function(t){return this.a._h(t)},Pkt.gc=function(){return this.a.gc()},y$(ABt,"AbstractSequentialInternalEList/1",957),Uht(624,1,{},TB),y$(ABt,"BasicExtendedMetaData",624),Uht(1160,1,{},qS),Pkt.$k=function(){return null},Pkt._k=function(){return-2==this.a&&(t=this,e=function(t,e){var n,i,r;if((n=e.Hh(t.a))&&null!=(r=gtt((!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),n.b),WBt)))for(i=1;i<(lut(),nse).length;++i)if(NN(nse[i],r))return i;return 0}(this.d,this.b),t.a=e),this.a;var t,e},Pkt.al=function(){return null},Pkt.bl=function(){return qq(),qq(),b$t},Pkt.ne=function(){return this.c==BFt&&(t=this,e=bet(this.d,this.b),t.c=e),this.c;var t,e},Pkt.cl=function(){return 0},Pkt.a=-2,Pkt.c=BFt,y$(ABt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),Uht(1161,1,{},dY),Pkt.$k=function(){return this.a==(cX(),ose)&&function(t,e){t.a=e}(this,(t=this.f,e=this.b,(i=e.Hh(t.a))&&(!i.b&&(i.b=new $O((Ikt(),Coe),Zoe,i)),null!=(n=sD(gtt(i.b,oFt)))&&EI(a=-1==(r=n.lastIndexOf("#"))?WO(t,e.Aj(),n):0==r?wQ(t,null,n.substr(1)):wQ(t,n.substr(0,r),n.substr(r+1)),148))?YP(a,148):null)),this.a;var t,e,n,i,r,a},Pkt._k=function(){return 0},Pkt.al=function(){return this.c==(cX(),ose)&&function(t,e){t.c=e}(this,(t=this.f,e=this.b,(n=e.Hh(t.a))&&(!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),null!=(r=sD(gtt(n.b,MFt)))&&EI(a=-1==(i=r.lastIndexOf("#"))?WO(t,e.Aj(),r):0==i?wQ(t,null,r.substr(1)):wQ(t,r.substr(0,i),r.substr(i+1)),148))?YP(a,148):null)),this.c;var t,e,n,i,r,a},Pkt.bl=function(){return!this.d&&(t=this,e=function(t,e){var n,i,r,a,o,s,c,u,l;if((n=e.Hh(t.a))&&null!=(c=sD(gtt((!n.b&&(n.b=new $O((Ikt(),Coe),Zoe,n)),n.b),"memberTypes")))){for(u=new Jb,o=0,s=(a=Cbt(c,"\\w")).length;on?e:n;u<=h;++u)u==n?s=i++:(a=r[u],l=g.rl(a.ak()),u==e&&(c=u!=h||l?i:i-1),l&&++i);return f=YP(S7(t,e,n),72),s!=c&&Hw(t,new bQ(t.e,7,o,u7(s),d.dd(),c)),f}return YP(S7(t,e,n),72)}(this,t,e)},Pkt.li=function(t,e){return function(t,e,n){var i,r,a,o,s,c,u,l,h,f,d,g,p,b;if(EI(o=n.ak(),99)&&YP(o,18).Bb&QEt&&(f=YP(n.dd(),49),(p=x8(t.e,f))!=f)){if(NI(t,e,$ot(t,0,l=HK(o,p))),h=null,hM(t.e)&&(i=Zmt((lut(),rse),t.e.Tg(),o))!=_J(t.e.Tg(),t.c)){for(b=hgt(t.e.Tg(),o),s=0,a=YP(t.g,119),c=0;c=0;)if(e=t[this.c],this.k.rl(e.ak()))return this.j=this.f?e:e.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},y$(ABt,"BasicFeatureMap/FeatureEIterator",410),Uht(662,410,p_t,jA),Pkt.Lk=function(){return!0},y$(ABt,"BasicFeatureMap/ResolvingFeatureEIterator",662),Uht(955,486,QBt,dI),Pkt.Gi=function(){return this},y$(ABt,"EContentsEList/1",955),Uht(956,486,QBt,RA),Pkt.Lk=function(){return!1},y$(ABt,"EContentsEList/2",956),Uht(954,279,ZBt,gI),Pkt.Nk=function(t){},Pkt.Ob=function(){return!1},Pkt.Sb=function(){return!1},y$(ABt,"EContentsEList/FeatureIteratorImpl/1",954),Uht(825,585,GBt,WI),Pkt.ci=function(){this.a=!0},Pkt.fj=function(){return this.a},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.a,this.a=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.a=!1},Pkt.a=!1,y$(ABt,"EDataTypeEList/Unsettable",825),Uht(1849,585,GBt,XI),Pkt.hi=function(){return!0},y$(ABt,"EDataTypeUniqueEList",1849),Uht(1850,825,GBt,VI),Pkt.hi=function(){return!0},y$(ABt,"EDataTypeUniqueEList/Unsettable",1850),Uht(139,85,GBt,UI),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectContainmentEList/Resolving",139),Uht(1163,545,GBt,GI),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectContainmentEList/Unsettable/Resolving",1163),Uht(748,16,GBt,mN),Pkt.ci=function(){this.a=!0},Pkt.fj=function(){return this.a},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.a,this.a=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.a=!1},Pkt.a=!1,y$(ABt,"EObjectContainmentWithInverseEList/Unsettable",748),Uht(1173,748,GBt,vN),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),Uht(743,496,GBt,YI),Pkt.ci=function(){this.a=!0},Pkt.fj=function(){return this.a},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.a,this.a=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.a=!1},Pkt.a=!1,y$(ABt,"EObjectEList/Unsettable",743),Uht(328,496,GBt,KI),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectResolvingEList",328),Uht(1641,743,GBt,QI),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectResolvingEList/Unsettable",1641),Uht(1381,1,{},Lu),y$(ABt,"EObjectValidator",1381),Uht(546,496,GBt,pR),Pkt.zk=function(){return this.d},Pkt.Ak=function(){return this.b},Pkt.bj=function(){return!0},Pkt.Dk=function(){return!0},Pkt.b=0,y$(ABt,"EObjectWithInverseEList",546),Uht(1176,546,GBt,xN),Pkt.Ck=function(){return!0},y$(ABt,"EObjectWithInverseEList/ManyInverse",1176),Uht(625,546,GBt,kN),Pkt.ci=function(){this.a=!0},Pkt.fj=function(){return this.a},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.a,this.a=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.a=!1},Pkt.a=!1,y$(ABt,"EObjectWithInverseEList/Unsettable",625),Uht(1175,625,GBt,EN),Pkt.Ck=function(){return!0},y$(ABt,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),Uht(749,546,GBt,_N),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectWithInverseResolvingEList",749),Uht(31,749,GBt,CN),Pkt.Ck=function(){return!0},y$(ABt,"EObjectWithInverseResolvingEList/ManyInverse",31),Uht(750,625,GBt,TN),Pkt.Ek=function(){return!0},Pkt.li=function(t,e){return Aht(this,t,YP(e,56))},y$(ABt,"EObjectWithInverseResolvingEList/Unsettable",750),Uht(1174,750,GBt,SN),Pkt.Ck=function(){return!0},y$(ABt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),Uht(1164,622,GBt),Pkt.ai=function(){return 0==(1792&this.b)},Pkt.ci=function(){this.b|=1},Pkt.Bk=function(){return 0!=(4&this.b)},Pkt.bj=function(){return 0!=(40&this.b)},Pkt.Ck=function(){return 0!=(16&this.b)},Pkt.Dk=function(){return 0!=(8&this.b)},Pkt.Ek=function(){return 0!=(this.b&DBt)},Pkt.rk=function(){return 0!=(32&this.b)},Pkt.Fk=function(){return 0!=(this.b&MNt)},Pkt.wj=function(t){return this.d?DK(this.d,t):this.ak().Yj().wj(t)},Pkt.fj=function(){return 2&this.b?0!=(1&this.b):0!=this.i},Pkt.hi=function(){return 0!=(128&this.b)},Pkt.Xj=function(){var t;Fmt(this),2&this.b&&(hM(this.e)?(t=0!=(1&this.b),this.b&=-2,Hw(this,new EX(this.e,2,X9(this.e.Tg(),this.ak()),t,!1))):this.b&=-2)},Pkt.ni=function(){return 0==(1536&this.b)},Pkt.b=0,y$(ABt,"EcoreEList/Generic",1164),Uht(1165,1164,GBt,Qq),Pkt.ak=function(){return this.a},y$(ABt,"EcoreEList/Dynamic",1165),Uht(747,63,yPt,Xb),Pkt.ri=function(t){return B1(this.a.a,t)},y$(ABt,"EcoreEMap/1",747),Uht(746,85,GBt,hR),Pkt.bi=function(t,e){Vnt(this.b,YP(e,133))},Pkt.di=function(t,e){T3(this.b)},Pkt.ei=function(t,e,n){var i;++(i=this.b,YP(e,133),i).e},Pkt.fi=function(t,e){A7(this.b,YP(e,133))},Pkt.gi=function(t,e,n){var i;A7(this.b,YP(n,133)),JS(n)===JS(e)&&YP(n,133).Th(null==(i=YP(e,133).cd())?0:q5(i)),Vnt(this.b,YP(e,133))},y$(ABt,"EcoreEMap/DelegateEObjectContainmentEList",746),Uht(1171,151,IBt,b0),y$(ABt,"EcoreEMap/Unsettable",1171),Uht(1172,746,GBt,AN),Pkt.ci=function(){this.a=!0},Pkt.fj=function(){return this.a},Pkt.Xj=function(){var t;Fmt(this),hM(this.e)?(t=this.a,this.a=!1,O3(this.e,new EX(this.e,2,this.c,t,!1))):this.a=!1},Pkt.a=!1,y$(ABt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),Uht(1168,228,hTt,f$),Pkt.a=!1,Pkt.b=!1,y$(ABt,"EcoreUtil/Copier",1168),Uht(745,1,o_t,rK),Pkt.Nb=function(t){_R(this,t)},Pkt.Ob=function(){return btt(this)},Pkt.Pb=function(){var t;return btt(this),t=this.b,this.b=null,t},Pkt.Qb=function(){this.a.Qb()},y$(ABt,"EcoreUtil/ProperContentIterator",745),Uht(1382,1381,{},Nh),y$(ABt,"EcoreValidator",1382),eF(ABt,"FeatureMapUtil/Validator"),Uht(1260,1,{1942:1},Ou),Pkt.rl=function(t){return!0},y$(ABt,"FeatureMapUtil/1",1260),Uht(757,1,{1942:1},pxt),Pkt.rl=function(t){var e;return this.c==t||(null==(e=aD(B$(this.a,t)))?function(t,e){var n;return t.f==fse?(n=mz(xZ((lut(),rse),e)),t.e?4==n&&e!=(hht(),wse)&&e!=(hht(),gse)&&e!=(hht(),pse)&&e!=(hht(),bse):2==n):!(!t.d||!(t.d.Hc(e)||t.d.Hc(PG(xZ((lut(),rse),e)))||t.d.Hc(Zmt((lut(),rse),t.b,e))))||!(!t.f||!Ndt((lut(),t.f),Vz(xZ(rse,e))))&&(n=mz(xZ(rse,e)),t.e?4==n:2==n)}(this,t)?(SX(this.a,t,(mL(),SRt)),!0):(SX(this.a,t,(mL(),CRt)),!1):e==(mL(),SRt))},Pkt.e=!1,y$(ABt,"FeatureMapUtil/BasicValidator",757),Uht(758,43,hTt,pI),y$(ABt,"FeatureMapUtil/BasicValidator/Cache",758),Uht(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},GS),Pkt.Vc=function(t,e){Agt(this.c,this.b,t,e)},Pkt.Fc=function(t){return Dbt(this.c,this.b,t)},Pkt.Wc=function(t,e){return function(t,e,n,i){var r,a,o,s,c,u,l,h;if(0==i.gc())return!1;if(vE(),o=(c=YP(e,66).Oj())?i:new NJ(i.gc()),Mgt(t.e,e)){if(e.hi())for(l=i.Kc();l.Ob();)oyt(t,e,u=l.Pb(),EI(e,99)&&0!=(YP(e,18).Bb&QEt))||(a=HK(e,u),o.Fc(a));else if(!c)for(l=i.Kc();l.Ob();)a=HK(e,u=l.Pb()),o.Fc(a)}else{for(h=hgt(t.e.Tg(),e),r=YP(t.g,119),s=0;s1)throw ow(new Ym(FFt));c||(a=HK(e,i.Kc().Pb()),o.Fc(a))}return a5(t,sut(t,e,n),o)}(this.c,this.b,t,e)},Pkt.Gc=function(t){return mI(this,t)},Pkt.Xh=function(t,e){!function(t,e,n,i){t.j=-1,Sht(t,sut(t,e,n),(vE(),YP(e,66).Mj().Ok(i)))}(this.c,this.b,t,e)},Pkt.lk=function(t,e){return Kpt(this.c,this.b,t,e)},Pkt.pi=function(t){return emt(this.c,this.b,t,!1)},Pkt.Zh=function(){return gM(this.c,this.b)},Pkt.$h=function(){return t=this.c,new G3(this.b,t);var t},Pkt._h=function(t){return function(t,e,n){var i,r;for(r=new G3(e,t),i=0;i0)if((i-=r.length-n)>=0){for(a.a+="0.";i>QRt.length;i-=QRt.length)yF(a,QRt);GD(a,QRt,nU(i)),pA(a,r.substr(n))}else pA(a,sO(r,n,nU(i=n-i))),a.a+=".",pA(a,sA(r,nU(i)));else{for(pA(a,r.substr(n));i<-QRt.length;i+=QRt.length)yF(a,QRt);GD(a,QRt,nU(-i))}return a.a}(YP(n,240));case 15:case 14:return null==n?null:(i=Qm(oD(n)))==KEt?HFt:i==WEt?"-INF":""+i;case 17:return pot((evt(),n));case 18:return pot(n);case 21:case 20:return null==n?null:function(t){return t==KEt?HFt:t==WEt?"-INF":""+t}(YP(n,155).a);case 27:return iD(YP(n,190));case 30:return Yit((evt(),YP(n,15)));case 31:return Yit(YP(n,15));case 40:case 59:case 48:return function(t){return null==t?null:k9(t)}((evt(),n));case 42:return bot((evt(),n));case 43:return bot(n);default:throw ow(new Ym(_Nt+t.ne()+ENt))}var i},Pkt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=QJ(t))?Ont(e.Mh(),t):-1),t.G){case 0:return new Yy;case 1:return new Nu;case 2:return new Wy;case 3:return new Ky;default:throw ow(new Ym(SNt+t.zb+ENt))}},Pkt.Kh=function(t,e){var n,i,r,a,o,s,c,u,l,h,f,d,g,p,b,w;switch(t.yj()){case 5:case 52:case 4:return e;case 6:return rnt(e);case 8:case 7:return null==e?null:function(t){if(t=Uyt(t,!0),NN(bDt,t)||NN("1",t))return mL(),SRt;if(NN(wDt,t)||NN("0",t))return mL(),CRt;throw ow(new sv("Invalid boolean value: '"+t+"'"))}(e);case 9:return null==e?null:QZ(Jbt((i=Uyt(e,!0)).length>0&&(SG(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 10:return null==e?null:QZ(Jbt((r=Uyt(e,!0)).length>0&&(SG(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 11:return sD(okt(this,(evt(),Cse),e));case 12:return sD(okt(this,(evt(),Sse),e));case 13:return null==e?null:new Ux(Uyt(e,!0));case 15:case 14:return function(t){var e,n,i,r;if(null==t)return null;if(i=Uyt(t,!0),r=HFt.length,NN(i.substr(i.length-r,r),HFt))if(4==(n=i.length)){if(SG(0,i.length),43==(e=i.charCodeAt(0)))return Kse;if(45==e)return Yse}else if(3==n)return Kse;return fct(i)}(e);case 16:return sD(okt(this,(evt(),Ase),e));case 17:return Utt((evt(),e));case 18:return Utt(e);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Uyt(e,!0);case 21:case 20:return function(t){var e,n,i,r;if(null==t)return null;if(i=Uyt(t,!0),r=HFt.length,NN(i.substr(i.length-r,r),HFt))if(4==(n=i.length)){if(SG(0,i.length),43==(e=i.charCodeAt(0)))return Xse;if(45==e)return Wse}else if(3==n)return Xse;return new Gw(i)}(e);case 22:return sD(okt(this,(evt(),Mse),e));case 23:return sD(okt(this,(evt(),Ise),e));case 24:return sD(okt(this,(evt(),Lse),e));case 25:return sD(okt(this,(evt(),Ose),e));case 26:return sD(okt(this,(evt(),Dse),e));case 27:return $et(e);case 30:return Gtt((evt(),e));case 31:return Gtt(e);case 32:return null==e?null:u7(Jbt((l=Uyt(e,!0)).length>0&&(SG(0,l.length),43==l.charCodeAt(0))?l.substr(1):l,X_t,Ykt));case 33:return null==e?null:new _M((h=Uyt(e,!0)).length>0&&(SG(0,h.length),43==h.charCodeAt(0))?h.substr(1):h);case 34:return null==e?null:u7(Jbt((f=Uyt(e,!0)).length>0&&(SG(0,f.length),43==f.charCodeAt(0))?f.substr(1):f,X_t,Ykt));case 36:return null==e?null:pet(gxt((d=Uyt(e,!0)).length>0&&(SG(0,d.length),43==d.charCodeAt(0))?d.substr(1):d));case 37:return null==e?null:pet(gxt((g=Uyt(e,!0)).length>0&&(SG(0,g.length),43==g.charCodeAt(0))?g.substr(1):g));case 40:case 59:case 48:return function(t){var e;return null==t?null:new _M((e=Uyt(t,!0)).length>0&&(SG(0,e.length),43==e.charCodeAt(0))?e.substr(1):e)}((evt(),e));case 42:return Ytt((evt(),e));case 43:return Ytt(e);case 44:return null==e?null:new _M((p=Uyt(e,!0)).length>0&&(SG(0,p.length),43==p.charCodeAt(0))?p.substr(1):p);case 45:return null==e?null:new _M((b=Uyt(e,!0)).length>0&&(SG(0,b.length),43==b.charCodeAt(0))?b.substr(1):b);case 46:return Uyt(e,!1);case 47:return sD(okt(this,(evt(),Nse),e));case 49:return sD(okt(this,(evt(),Bse),e));case 50:return null==e?null:l7(Jbt((w=Uyt(e,!0)).length>0&&(SG(0,w.length),43==w.charCodeAt(0))?w.substr(1):w,rFt,32767)<<16>>16);case 51:return null==e?null:l7(Jbt((a=Uyt(e,!0)).length>0&&(SG(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,rFt,32767)<<16>>16);case 53:return sD(okt(this,(evt(),Rse),e));case 55:return null==e?null:l7(Jbt((o=Uyt(e,!0)).length>0&&(SG(0,o.length),43==o.charCodeAt(0))?o.substr(1):o,rFt,32767)<<16>>16);case 56:return null==e?null:l7(Jbt((s=Uyt(e,!0)).length>0&&(SG(0,s.length),43==s.charCodeAt(0))?s.substr(1):s,rFt,32767)<<16>>16);case 57:return null==e?null:pet(gxt((c=Uyt(e,!0)).length>0&&(SG(0,c.length),43==c.charCodeAt(0))?c.substr(1):c));case 58:return null==e?null:pet(gxt((u=Uyt(e,!0)).length>0&&(SG(0,u.length),43==u.charCodeAt(0))?u.substr(1):u));case 60:return null==e?null:u7(Jbt((n=Uyt(e,!0)).length>0&&(SG(0,n.length),43==n.charCodeAt(0))?n.substr(1):n,X_t,Ykt));case 61:return null==e?null:u7(Jbt(Uyt(e,!0),X_t,Ykt));default:throw ow(new Ym(_Nt+t.ne()+ENt))}},y$(qFt,"XMLTypeFactoryImpl",1919),Uht(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},Cz),Pkt.N=!1,Pkt.O=!1;var Jse,tce,ece,nce,ice,rce=!1;y$(qFt,"XMLTypePackageImpl",586),Uht(1852,1,{837:1},Pu),Pkt._j=function(){return Pwt(),Mce},y$(qFt,"XMLTypePackageImpl/1",1852),Uht(1861,1,wFt,Bu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/10",1861),Uht(1862,1,wFt,Fu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/11",1862),Uht(1863,1,wFt,ju),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/12",1863),Uht(1864,1,wFt,Ru),Pkt.wj=function(t){return eA(t)},Pkt.xj=function(t){return HV(PRt,m_t,333,t,7,1)},y$(qFt,"XMLTypePackageImpl/13",1864),Uht(1865,1,wFt,$u),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/14",1865),Uht(1866,1,wFt,zu),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/15",1866),Uht(1867,1,wFt,qu),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/16",1867),Uht(1868,1,wFt,Hu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/17",1868),Uht(1869,1,wFt,Uu),Pkt.wj=function(t){return EI(t,155)},Pkt.xj=function(t){return HV(BRt,m_t,155,t,0,1)},y$(qFt,"XMLTypePackageImpl/18",1869),Uht(1870,1,wFt,Gu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/19",1870),Uht(1853,1,wFt,Yu),Pkt.wj=function(t){return EI(t,843)},Pkt.xj=function(t){return HV(mse,Zkt,843,t,0,1)},y$(qFt,"XMLTypePackageImpl/2",1853),Uht(1871,1,wFt,Ku),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/20",1871),Uht(1872,1,wFt,Wu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/21",1872),Uht(1873,1,wFt,Xu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/22",1873),Uht(1874,1,wFt,Vu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/23",1874),Uht(1875,1,wFt,Qu),Pkt.wj=function(t){return EI(t,190)},Pkt.xj=function(t){return HV(zce,m_t,190,t,0,2)},y$(qFt,"XMLTypePackageImpl/24",1875),Uht(1876,1,wFt,Zu),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/25",1876),Uht(1877,1,wFt,Ju),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/26",1877),Uht(1878,1,wFt,tl),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/27",1878),Uht(1879,1,wFt,el),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/28",1879),Uht(1880,1,wFt,nl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/29",1880),Uht(1854,1,wFt,il),Pkt.wj=function(t){return EI(t,667)},Pkt.xj=function(t){return HV(Vse,Zkt,2021,t,0,1)},y$(qFt,"XMLTypePackageImpl/3",1854),Uht(1881,1,wFt,rl),Pkt.wj=function(t){return EI(t,19)},Pkt.xj=function(t){return HV(RRt,m_t,19,t,0,1)},y$(qFt,"XMLTypePackageImpl/30",1881),Uht(1882,1,wFt,al),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/31",1882),Uht(1883,1,wFt,ol),Pkt.wj=function(t){return EI(t,162)},Pkt.xj=function(t){return HV(GRt,m_t,162,t,0,1)},y$(qFt,"XMLTypePackageImpl/32",1883),Uht(1884,1,wFt,sl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/33",1884),Uht(1885,1,wFt,cl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/34",1885),Uht(1886,1,wFt,ul),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/35",1886),Uht(1887,1,wFt,ll),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/36",1887),Uht(1888,1,wFt,hl),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/37",1888),Uht(1889,1,wFt,fl),Pkt.wj=function(t){return EI(t,15)},Pkt.xj=function(t){return HV(Gjt,lSt,15,t,0,1)},y$(qFt,"XMLTypePackageImpl/38",1889),Uht(1890,1,wFt,dl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/39",1890),Uht(1855,1,wFt,gl),Pkt.wj=function(t){return EI(t,668)},Pkt.xj=function(t){return HV(Qse,Zkt,2022,t,0,1)},y$(qFt,"XMLTypePackageImpl/4",1855),Uht(1891,1,wFt,pl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/40",1891),Uht(1892,1,wFt,bl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/41",1892),Uht(1893,1,wFt,wl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/42",1893),Uht(1894,1,wFt,yl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/43",1894),Uht(1895,1,wFt,ml),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/44",1895),Uht(1896,1,wFt,vl),Pkt.wj=function(t){return EI(t,184)},Pkt.xj=function(t){return HV(KRt,m_t,184,t,0,1)},y$(qFt,"XMLTypePackageImpl/45",1896),Uht(1897,1,wFt,xl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/46",1897),Uht(1898,1,wFt,kl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/47",1898),Uht(1899,1,wFt,_l),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/48",1899),Uht(mEt,1,wFt,El),Pkt.wj=function(t){return EI(t,184)},Pkt.xj=function(t){return HV(KRt,m_t,184,t,0,1)},y$(qFt,"XMLTypePackageImpl/49",mEt),Uht(1856,1,wFt,Tl),Pkt.wj=function(t){return EI(t,669)},Pkt.xj=function(t){return HV(Zse,Zkt,2023,t,0,1)},y$(qFt,"XMLTypePackageImpl/5",1856),Uht(1901,1,wFt,Cl),Pkt.wj=function(t){return EI(t,162)},Pkt.xj=function(t){return HV(GRt,m_t,162,t,0,1)},y$(qFt,"XMLTypePackageImpl/50",1901),Uht(1902,1,wFt,Sl),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/51",1902),Uht(1903,1,wFt,Al),Pkt.wj=function(t){return EI(t,19)},Pkt.xj=function(t){return HV(RRt,m_t,19,t,0,1)},y$(qFt,"XMLTypePackageImpl/52",1903),Uht(1857,1,wFt,Ml),Pkt.wj=function(t){return nA(t)},Pkt.xj=function(t){return HV(XRt,m_t,2,t,6,1)},y$(qFt,"XMLTypePackageImpl/6",1857),Uht(1858,1,wFt,Il),Pkt.wj=function(t){return EI(t,190)},Pkt.xj=function(t){return HV(zce,m_t,190,t,0,2)},y$(qFt,"XMLTypePackageImpl/7",1858),Uht(1859,1,wFt,Ll),Pkt.wj=function(t){return tA(t)},Pkt.xj=function(t){return HV(MRt,m_t,476,t,8,1)},y$(qFt,"XMLTypePackageImpl/8",1859),Uht(1860,1,wFt,Ol),Pkt.wj=function(t){return EI(t,217)},Pkt.xj=function(t){return HV(LRt,m_t,217,t,0,1)},y$(qFt,"XMLTypePackageImpl/9",1860),Uht(50,60,Q_t,lv),y$(gjt,"RegEx/ParseException",50),Uht(820,1,{},Dl),Pkt.sl=function(t){return t16*n)throw ow(new lv(Dkt((RM(),VPt))));n=16*n+r}if(125!=this.a)throw ow(new lv(Dkt((RM(),QPt))));if(n>pjt)throw ow(new lv(Dkt((RM(),ZPt))));t=n}else{if(r=0,0!=this.c||(r=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(n=r,bkt(this),0!=this.c||(r=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));t=n=16*n+r}break;case 117:if(i=0,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));t=e=16*e+i;break;case 118:if(bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if(e=16*e+i,bkt(this),0!=this.c||(i=lit(this.a))<0)throw ow(new lv(Dkt((RM(),XPt))));if((e=16*e+i)>pjt)throw ow(new lv(Dkt((RM(),"parser.descappe.4"))));t=e;break;case 65:case 90:case 122:throw ow(new lv(Dkt((RM(),JPt))))}return t},Pkt.ul=function(t){var e;switch(t){case 100:e=32==(32&this.e)?Rxt("Nd",!0):(Akt(),fce);break;case 68:e=32==(32&this.e)?Rxt("Nd",!1):(Akt(),wce);break;case 119:e=32==(32&this.e)?Rxt("IsWord",!0):(Akt(),Cce);break;case 87:e=32==(32&this.e)?Rxt("IsWord",!1):(Akt(),mce);break;case 115:e=32==(32&this.e)?Rxt("IsSpace",!0):(Akt(),xce);break;case 83:e=32==(32&this.e)?Rxt("IsSpace",!1):(Akt(),yce);break;default:throw ow(new Em(bjt+t.toString(16)))}return e},Pkt.vl=function(t){var e,n,i,r,a,o,s,c,u,l,h;for(this.b=1,bkt(this),e=null,0==this.c&&94==this.a?(bkt(this),t?(Akt(),Akt(),u=new JG(5)):(Akt(),Akt(),zgt(e=new JG(4),0,pjt),u=new JG(4))):(Akt(),Akt(),u=new JG(4)),r=!0;1!=(h=this.c)&&(0!=h||93!=this.a||r);){if(r=!1,n=this.a,i=!1,10==h)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:omt(u,this.ul(n)),i=!0;break;case 105:case 73:case 99:case 67:(n=this.Ll(u,n))<0&&(i=!0);break;case 112:case 80:if(!(l=jlt(this,n)))throw ow(new lv(Dkt((RM(),jPt))));omt(u,l),i=!0;break;default:n=this.tl()}else if(20==h){if((a=cO(this.i,58,this.d))<0)throw ow(new lv(Dkt((RM(),RPt))));if(o=!0,94==qz(this.i,this.d)&&(++this.d,o=!1),!(s=sQ(sO(this.i,this.d,a),o,512==(512&this.e))))throw ow(new lv(Dkt((RM(),zPt))));if(omt(u,s),i=!0,a+1>=this.j||93!=qz(this.i,a+1))throw ow(new lv(Dkt((RM(),RPt))));this.d=a+2}if(bkt(this),!i)if(0!=this.c||45!=this.a)zgt(u,n,n);else{if(bkt(this),1==(h=this.c))throw ow(new lv(Dkt((RM(),$Pt))));0==h&&93==this.a?(zgt(u,n,n),zgt(u,45,45)):(c=this.a,10==h&&(c=this.tl()),bkt(this),zgt(u,n,c))}(this.e&MNt)==MNt&&0==this.c&&44==this.a&&bkt(this)}if(1==this.c)throw ow(new lv(Dkt((RM(),$Pt))));return e&&(Nvt(e,u),u=e),Lft(u),Amt(u),this.b=0,bkt(this),u},Pkt.wl=function(){var t,e,n,i;for(n=this.vl(!1);7!=(i=this.c);){if(t=this.a,(0!=i||45!=t&&38!=t)&&4!=i)throw ow(new lv(Dkt((RM(),KPt))));if(bkt(this),9!=this.c)throw ow(new lv(Dkt((RM(),YPt))));if(e=this.vl(!1),4==i)omt(n,e);else if(45==t)Nvt(n,e);else{if(38!=t)throw ow(new Em("ASSERT"));yvt(n,e)}}return bkt(this),n},Pkt.xl=function(){var t,e;return t=this.a-48,Akt(),Akt(),e=new XH(12,null,t),!this.g&&(this.g=new Ww),qw(this.g,new Vb(t)),bkt(this),e},Pkt.yl=function(){return bkt(this),Akt(),kce},Pkt.zl=function(){return bkt(this),Akt(),vce},Pkt.Al=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Bl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Cl=function(){return bkt(this),Z5()},Pkt.Dl=function(){return bkt(this),Akt(),Ece},Pkt.El=function(){return bkt(this),Akt(),Sce},Pkt.Fl=function(){var t;if(this.d>=this.j||64!=(65504&(t=qz(this.i,this.d++))))throw ow(new lv(Dkt((RM(),NPt))));return bkt(this),Akt(),Akt(),new BF(0,t-64)},Pkt.Gl=function(){return bkt(this),function(){var t,e,n,i,r,a;if(Akt(),Dce)return Dce;for(omt(t=new JG(4),Rxt(Tjt,!0)),Nvt(t,Rxt("M",!0)),Nvt(t,Rxt("C",!0)),a=new JG(4),i=0;i<11;i++)zgt(a,i,i);return omt(e=new JG(4),Rxt("M",!0)),zgt(e,4448,4607),zgt(e,65438,65439),Omt(r=new FM(2),t),Omt(r,gce),(n=new FM(2)).$l(UF(a,Rxt("L",!0))),n.$l(e),n=new VR(r,n=new JK(3,n)),Dce=n}()},Pkt.Hl=function(){return bkt(this),Akt(),Ace},Pkt.Il=function(){var t;return Akt(),Akt(),t=new BF(0,105),bkt(this),t},Pkt.Jl=function(){return bkt(this),Akt(),Tce},Pkt.Kl=function(){return bkt(this),Akt(),_ce},Pkt.Ll=function(t,e){return this.tl()},Pkt.Ml=function(){return bkt(this),Akt(),pce},Pkt.Nl=function(){var t,e,n,i,r;if(this.d+1>=this.j)throw ow(new lv(Dkt((RM(),LPt))));if(i=-1,e=null,49<=(t=qz(this.i,this.d))&&t<=57){if(i=t-48,!this.g&&(this.g=new Ww),qw(this.g,new Vb(i)),++this.d,41!=qz(this.i,this.d))throw ow(new lv(Dkt((RM(),APt))));++this.d}else switch(63==t&&--this.d,bkt(this),e=nkt(this),e.e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw ow(new lv(Dkt((RM(),APt))));break;default:throw ow(new lv(Dkt((RM(),OPt))))}if(bkt(this),n=null,2==(r=Vtt(this)).e){if(2!=r.em())throw ow(new lv(Dkt((RM(),DPt))));n=r.am(1),r=r.am(0)}if(7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),Akt(),Akt(),new WZ(i,e,r,n)},Pkt.Ol=function(){return bkt(this),Akt(),bce},Pkt.Pl=function(){var t;if(bkt(this),t=mR(24,Vtt(this)),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Ql=function(){var t;if(bkt(this),t=mR(20,Vtt(this)),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Rl=function(){var t;if(bkt(this),t=mR(22,Vtt(this)),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Sl=function(){var t,e,n,i,r;for(t=0,n=0,e=-1;this.d=this.j)throw ow(new lv(Dkt((RM(),MPt))));if(45==e){for(++this.d;this.d=this.j)throw ow(new lv(Dkt((RM(),MPt))))}if(58==e){if(++this.d,bkt(this),i=I$(Vtt(this),t,n),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));bkt(this)}else{if(41!=e)throw ow(new lv(Dkt((RM(),IPt))));++this.d,bkt(this),i=I$(Vtt(this),t,n)}return i},Pkt.Tl=function(){var t;if(bkt(this),t=mR(21,Vtt(this)),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Ul=function(){var t;if(bkt(this),t=mR(23,Vtt(this)),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Vl=function(){var t,e;if(bkt(this),t=this.f++,e=vR(Vtt(this),t),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),e},Pkt.Wl=function(){var t;if(bkt(this),t=vR(Vtt(this),0),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Xl=function(t){return bkt(this),5==this.c?(bkt(this),UF(t,(Akt(),Akt(),new JK(9,t)))):UF(t,(Akt(),Akt(),new JK(3,t)))},Pkt.Yl=function(t){var e;return bkt(this),Akt(),Akt(),e=new FM(2),5==this.c?(bkt(this),Omt(e,gce),Omt(e,t)):(Omt(e,t),Omt(e,gce)),e},Pkt.Zl=function(t){return bkt(this),5==this.c?(bkt(this),Akt(),Akt(),new JK(9,t)):(Akt(),Akt(),new JK(3,t))},Pkt.a=0,Pkt.b=0,Pkt.c=0,Pkt.d=0,Pkt.e=0,Pkt.f=1,Pkt.g=null,Pkt.j=0,y$(gjt,"RegEx/RegexParser",820),Uht(1824,820,{},Xy),Pkt.sl=function(t){return!1},Pkt.tl=function(){return vpt(this)},Pkt.ul=function(t){return twt(t)},Pkt.vl=function(t){return ykt(this)},Pkt.wl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.xl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.yl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.zl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Al=function(){return bkt(this),twt(67)},Pkt.Bl=function(){return bkt(this),twt(73)},Pkt.Cl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Dl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.El=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Fl=function(){return bkt(this),twt(99)},Pkt.Gl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Hl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Il=function(){return bkt(this),twt(105)},Pkt.Jl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Kl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Ll=function(t,e){return omt(t,twt(e)),-1},Pkt.Ml=function(){return bkt(this),Akt(),Akt(),new BF(0,94)},Pkt.Nl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Ol=function(){return bkt(this),Akt(),Akt(),new BF(0,36)},Pkt.Pl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Ql=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Rl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Sl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Tl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Ul=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Vl=function(){var t;if(bkt(this),t=vR(Vtt(this),0),7!=this.c)throw ow(new lv(Dkt((RM(),APt))));return bkt(this),t},Pkt.Wl=function(){throw ow(new lv(Dkt((RM(),tBt))))},Pkt.Xl=function(t){return bkt(this),UF(t,(Akt(),Akt(),new JK(3,t)))},Pkt.Yl=function(t){var e;return bkt(this),Akt(),Akt(),Omt(e=new FM(2),t),Omt(e,gce),e},Pkt.Zl=function(t){return bkt(this),Akt(),Akt(),new JK(3,t)};var ace=null,oce=null;y$(gjt,"RegEx/ParserForXMLSchema",1824),Uht(117,1,Ajt,Qb),Pkt.$l=function(t){throw ow(new Em("Not supported."))},Pkt._l=function(){return-1},Pkt.am=function(t){return null},Pkt.bm=function(){return null},Pkt.cm=function(t){},Pkt.dm=function(t){},Pkt.em=function(){return 0},Pkt.Ib=function(){return this.fm(0)},Pkt.fm=function(t){return 11==this.e?".":""},Pkt.e=0;var sce,cce,uce,lce,hce,fce,dce,gce,pce,bce,wce,yce,mce,vce,xce,kce,_ce,Ece,Tce,Cce,Sce,Ace,Mce,Ice,Lce=null,Oce=null,Dce=null,Nce=y$(gjt,"RegEx/Token",117);Uht(136,117,{3:1,136:1,117:1},JG),Pkt.fm=function(t){var e,n,i;if(4==this.e)if(this==dce)n=".";else if(this==fce)n="\\d";else if(this==Cce)n="\\w";else if(this==xce)n="\\s";else{for((i=new Tv).a+="[",e=0;e0&&(i.a+=","),this.b[e]===this.b[e+1]?fA(i,wyt(this.b[e])):(fA(i,wyt(this.b[e])),i.a+="-",fA(i,wyt(this.b[e+1])));i.a+="]",n=i.a}else if(this==wce)n="\\D";else if(this==mce)n="\\W";else if(this==yce)n="\\S";else{for((i=new Tv).a+="[^",e=0;e0&&(i.a+=","),this.b[e]===this.b[e+1]?fA(i,wyt(this.b[e])):(fA(i,wyt(this.b[e])),i.a+="-",fA(i,wyt(this.b[e+1])));i.a+="]",n=i.a}return n},Pkt.a=!1,Pkt.c=!1,y$(gjt,"RegEx/RangeToken",136),Uht(584,1,{584:1},Vb),Pkt.a=0,y$(gjt,"RegEx/RegexParser/ReferencePosition",584),Uht(583,1,{3:1,583:1},xk),Pkt.Fb=function(t){var e;return!(null==t||!EI(t,583))&&(e=YP(t,583),NN(this.b,e.b)&&this.a==e.a)},Pkt.Hb=function(){return qnt(this.b+"/"+sgt(this.a))},Pkt.Ib=function(){return this.c.fm(this.a)},Pkt.a=0,y$(gjt,"RegEx/RegularExpression",583),Uht(223,117,Ajt,BF),Pkt._l=function(){return this.a},Pkt.fm=function(t){var e,n;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:n="\\"+ZD(this.a&oEt);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=this.a>=QEt?"\\v"+sO(e="0"+(this.a>>>0).toString(16),e.length-6,e.length):""+ZD(this.a&oEt)}break;case 8:n=this==pce||this==bce?""+ZD(this.a&oEt):"\\"+ZD(this.a&oEt);break;default:n=null}return n},Pkt.a=0,y$(gjt,"RegEx/Token/CharToken",223),Uht(309,117,Ajt,JK),Pkt.am=function(t){return this.a},Pkt.cm=function(t){this.b=t},Pkt.dm=function(t){this.c=t},Pkt.em=function(){return 1},Pkt.fm=function(t){var e;if(3==this.e)if(this.c<0&&this.b<0)e=this.a.fm(t)+"*";else if(this.c==this.b)e=this.a.fm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)e=this.a.fm(t)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw ow(new Em("Token#toString(): CLOSURE "+this.c+Vkt+this.b));e=this.a.fm(t)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)e=this.a.fm(t)+"*?";else if(this.c==this.b)e=this.a.fm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)e=this.a.fm(t)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw ow(new Em("Token#toString(): NONGREEDYCLOSURE "+this.c+Vkt+this.b));e=this.a.fm(t)+"{"+this.c+",}?"}return e},Pkt.b=0,Pkt.c=0,y$(gjt,"RegEx/Token/ClosureToken",309),Uht(821,117,Ajt,VR),Pkt.am=function(t){return 0==t?this.a:this.b},Pkt.em=function(){return 2},Pkt.fm=function(t){return 3==this.b.e&&this.b.am(0)==this.a?this.a.fm(t)+"+":9==this.b.e&&this.b.am(0)==this.a?this.a.fm(t)+"+?":this.a.fm(t)+""+this.b.fm(t)},y$(gjt,"RegEx/Token/ConcatToken",821),Uht(1822,117,Ajt,WZ),Pkt.am=function(t){if(0==t)return this.d;if(1==t)return this.b;throw ow(new Em("Internal Error: "+t))},Pkt.em=function(){return this.b?2:1},Pkt.fm=function(t){var e;return e=this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a,this.b?e+=this.d+"|"+this.b+")":e+=this.d+")",e},Pkt.c=0,y$(gjt,"RegEx/Token/ConditionToken",1822),Uht(1823,117,Ajt,ZG),Pkt.am=function(t){return this.b},Pkt.em=function(){return 1},Pkt.fm=function(t){return"(?"+(0==this.a?"":sgt(this.a))+(0==this.c?"":sgt(this.c))+":"+this.b.fm(t)+")"},Pkt.a=0,Pkt.c=0,y$(gjt,"RegEx/Token/ModifierToken",1823),Uht(822,117,Ajt,J$),Pkt.am=function(t){return this.a},Pkt.em=function(){return 1},Pkt.fm=function(t){var e;switch(e=null,this.e){case 6:e=0==this.b?"(?:"+this.a.fm(t)+")":"("+this.a.fm(t)+")";break;case 20:e="(?="+this.a.fm(t)+")";break;case 21:e="(?!"+this.a.fm(t)+")";break;case 22:e="(?<="+this.a.fm(t)+")";break;case 23:e="(?"+this.a.fm(t)+")"}return e},Pkt.b=0,y$(gjt,"RegEx/Token/ParenToken",822),Uht(521,117,{3:1,117:1,521:1},XH),Pkt.bm=function(){return this.b},Pkt.fm=function(t){return 12==this.e?"\\"+this.a:function(t){var e,n,i,r;for(r=t.length,e=null,i=0;i=0?(e||(e=new Cv,i>0&&fA(e,t.substr(0,i))),e.a+="\\",D$(e,n&oEt)):e&&D$(e,n&oEt);return e?e.a:t}(this.b)},Pkt.a=0,y$(gjt,"RegEx/Token/StringToken",521),Uht(465,117,Ajt,FM),Pkt.$l=function(t){Omt(this,t)},Pkt.am=function(t){return YP(sz(this.a,t),117)},Pkt.em=function(){return this.a?this.a.a.c.length:0},Pkt.fm=function(t){var e,n,i,r,a;if(1==this.e){if(2==this.a.a.c.length)e=YP(sz(this.a,0),117),r=3==(n=YP(sz(this.a,1),117)).e&&n.am(0)==e?e.fm(t)+"+":9==n.e&&n.am(0)==e?e.fm(t)+"+?":e.fm(t)+""+n.fm(t);else{for(a=new Tv,i=0;i=t.c.b:t.a<=t.c.b))throw ow(new Nw);return e=t.a,t.a+=t.c.c,++t.b,u7(e)}(this)},Pkt.Ub=function(){return function(t){if(t.b<=0)throw ow(new Nw);return--t.b,t.a-=t.c.c,u7(t.a)}(this)},Pkt.Wb=function(t){YP(t,19),function(){throw ow(new av(Djt))}()},Pkt.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},Pkt.Sb=function(){return this.b>0},Pkt.Tb=function(){return this.b},Pkt.Vb=function(){return this.b-1},Pkt.Qb=function(){throw ow(new av(Njt))},Pkt.a=0,Pkt.b=0,y$(Ljt,"ExclusiveRange/RangeIterator",254);var Pce,Bce,Fce=vz(PBt,"C"),jce=vz(jBt,"I"),Rce=vz(qkt,"Z"),$ce=vz(RBt,"J"),zce=vz(NBt,"B"),qce=vz(BBt,"D"),Hce=vz(FBt,"F"),Uce=vz($Bt,"S"),Gce=eF("org.eclipse.elk.core.labels","ILabelManager"),Yce=eF(XNt,"DiagnosticChain"),Kce=eF(mFt,"ResourceSet"),Wce=y$(XNt,"InvocationTargetException",null),Xce=(Pv(),function(t){return Pv(),function(){return iK(t,this,arguments)}}),Vce=Vce=function(t,e,n,i){Tk();var r=Fkt;function a(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var i=Object.assign({},e),r=!1;try{t.resolve("web-worker"),r=!0}catch{}if(e.workerUrl)if(r){var a=t("web-worker");i.workerFactory=function(t){return new a(t)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!i.workerFactory){var o=t("./elk-worker.min.js").Worker;i.workerFactory=function(t){return new o(t)}}return function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n}(t("./elk-api.js").default);Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports=i,i.default=i},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(t,e,n){e.exports=Worker},{}]},{},[3])(3)}(uO);const lO=new(n(uO.exports));let hO={};const fO={};let dO={};const gO=(t,e,n)=>{const i={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return i.TD=i.TB,o.info("abc88",n,e,t),i[n][e][t]},pO=(t,e,n)=>{if(o.info("getNextPort abc88",{node:t,edgeDirection:e,graphDirection:n}),!hO[t])switch(n){case"TB":case"TD":hO[t]={inPosition:"north",outPosition:"south"};break;case"BT":hO[t]={inPosition:"south",outPosition:"north"};break;case"RL":hO[t]={inPosition:"east",outPosition:"west"};break;case"LR":hO[t]={inPosition:"west",outPosition:"east"}}const i="in"===e?hO[t].inPosition:hO[t].outPosition;return"in"===e?hO[t].inPosition=gO(hO[t].inPosition,e,n):hO[t].outPosition=gO(hO[t].outPosition,e,n),i},bO=function(t,e,n,i,r){const a=function(t,e,n){const i=((t,e,n)=>{const{parentById:i}=n,r=new Set;let a=t;for(;a;){if(r.add(a),a===e)return a;a=i[a]}for(a=e;a;){if(r.has(a))return a;a=i[a]}return"root"})(t,e,n);if(void 0===i||"root"===i)return{x:0,y:0};const r=dO[i].offset;return{x:r.posX,y:r.posY}}(e.sourceId,e.targetId,r),o=e.sections[0].startPoint,s=e.sections[0].endPoint,c=(e.sections[0].bendPoints?e.sections[0].bendPoints:[]).map((t=>[t.x+a.x,t.y+a.y])),u=[[o.x+a.x,o.y+a.y],...c,[s.x+a.x,s.y+a.y]],l=Vo().curve(Ko),h=t.insert("path").attr("d",l(u)).attr("class","path "+n.classes).attr("fill","none"),f=t.insert("g").attr("class","edgeLabel"),d=ae(f.node().appendChild(e.labelEl)),g=d.node().firstChild.getBoundingClientRect();d.attr("width",g.width),d.attr("height",g.height),f.attr("transform",`translate(${e.labels[0].x+a.x}, ${e.labels[0].y+a.y})`),function(t,e,n,i){let r="";switch(i&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),e.arrowTypeStart){case"arrow_cross":t.attr("marker-start","url("+r+"#"+n+"-crossStart)");break;case"arrow_point":t.attr("marker-start","url("+r+"#"+n+"-pointStart)");break;case"arrow_barb":t.attr("marker-start","url("+r+"#"+n+"-barbStart)");break;case"arrow_circle":t.attr("marker-start","url("+r+"#"+n+"-circleStart)");break;case"aggregation":t.attr("marker-start","url("+r+"#"+n+"-aggregationStart)");break;case"extension":t.attr("marker-start","url("+r+"#"+n+"-extensionStart)");break;case"composition":t.attr("marker-start","url("+r+"#"+n+"-compositionStart)");break;case"dependency":t.attr("marker-start","url("+r+"#"+n+"-dependencyStart)");break;case"lollipop":t.attr("marker-start","url("+r+"#"+n+"-lollipopStart)")}switch(e.arrowTypeEnd){case"arrow_cross":t.attr("marker-end","url("+r+"#"+n+"-crossEnd)");break;case"arrow_point":t.attr("marker-end","url("+r+"#"+n+"-pointEnd)");break;case"arrow_barb":t.attr("marker-end","url("+r+"#"+n+"-barbEnd)");break;case"arrow_circle":t.attr("marker-end","url("+r+"#"+n+"-circleEnd)");break;case"aggregation":t.attr("marker-end","url("+r+"#"+n+"-aggregationEnd)");break;case"extension":t.attr("marker-end","url("+r+"#"+n+"-extensionEnd)");break;case"composition":t.attr("marker-end","url("+r+"#"+n+"-compositionEnd)");break;case"dependency":t.attr("marker-end","url("+r+"#"+n+"-dependencyEnd)");break;case"lollipop":t.attr("marker-end","url("+r+"#"+n+"-lollipopEnd)")}}(h,n,i.type,i.arrowMarkerAbsolute)},wO=(t,e)=>{t.forEach((t=>{t.children||(t.children=[]);const n=e.childrenById[t.id];n&&n.forEach((e=>{t.children.push(dO[e])})),wO(t.children,e)}))},yO=(t,e,n,i,r,a,s)=>{n.forEach((function(n){if(n)if(dO[n.id].offset={posX:n.x+t,posY:n.y+e,x:t,y:e,depth:s,width:n.width,height:n.height},"group"===n.type){const i=r.insert("g").attr("class","subgraph");i.insert("rect").attr("class","subgraph subgraph-lvl-"+s%5+" node").attr("x",n.x+t).attr("y",n.y+e).attr("width",n.width).attr("height",n.height);const a=i.insert("g").attr("class","label"),c=ch().flowchart.htmlLabels?n.labelData.width/2:0;a.attr("transform",`translate(${n.labels[0].x+t+n.x+c}, ${n.labels[0].y+e+n.y+3})`),a.node().appendChild(n.labelData.labelNode),o.info("Id (UGH)= ",n.type,n.labels)}else o.info("Id (UGH)= ",n.id),n.el.attr("transform",`translate(${n.x+t+n.width/2}, ${n.y+e+n.height/2})`)})),n.forEach((function(n){n&&"group"===n.type&&yO(t+n.x,e+n.y,n.children,i,r,a,s+1)}))},mO={getClasses:function(t,e){return o.info("Extracting classes"),e.db.getClasses()},draw:async function(t,e,n,i){var r;dO={},hO={};const a=ae("body").append("div").attr("style","height:400px").attr("id","cy");let s={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(o.info("Drawing flowchart using v3 renderer",lO),i.db.getDirection()){case"BT":s.layoutOptions["elk.direction"]="UP";break;case"TB":s.layoutOptions["elk.direction"]="DOWN";break;case"LR":s.layoutOptions["elk.direction"]="RIGHT";break;case"RL":s.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:c,flowchart:u}=ch();let l;"sandbox"===c&&(l=ae("#i"+e));const h=ae("sandbox"===c?l.nodes()[0].contentDocument.body:"body"),f="sandbox"===c?l.nodes()[0].contentDocument:document,d=h.select(`[id="${e}"]`);x_(d,["point","circle","cross"],i.type,i.arrowMarkerAbsolute);const g=i.db.getVertices();let p;const b=i.db.getSubGraphs();o.info("Subgraphs - ",b);for(let t=b.length-1;t>=0;t--)p=b[t],i.db.addVertex(p.id,{text:p.title,type:p.labelType},"group",void 0,p.classes,p.dir);const w=d.insert("g").attr("class","subgraphs"),y=function(t){const e={parentById:{},childrenById:{}},n=t.getSubGraphs();return o.info("Subgraphs - ",n),n.forEach((function(t){t.nodes.forEach((function(n){e.parentById[n]=t.id,void 0===e.childrenById[t.id]&&(e.childrenById[t.id]=[]),e.childrenById[t.id].push(n)}))})),n.forEach((function(t){t.id,void 0!==e.parentById[t.id]&&e.parentById[t.id]})),e}(i.db);s=await async function(t,e,n,i,r,a,o){const s=n.select(`[id="${e}"]`).insert("g").attr("class","nodes"),c=Object.keys(t);return await Promise.all(c.map((async function(e){const n=t[e];let o="default";n.classes.length>0&&(o=n.classes.join(" ")),o+=" flowchart-label";const c=Gf(n.styles);let u=void 0!==n.text?n.text:n.id;const l={width:0,height:0},h=[{id:n.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:n.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:n.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:n.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let f=0,d="",g={};switch(n.type){case"round":f=5,d="rect";break;case"square":case"group":default:d="rect";break;case"diamond":d="question",g={portConstraints:"FIXED_SIDE"};break;case"hexagon":d="hexagon";break;case"odd":case"odd_right":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"doublecircle":d="doublecircle"}const p={labelStyle:c.labelStyle,shape:d,labelText:u,labelType:n.labelType,rx:f,ry:f,class:o,style:c.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:r.db.getTooltip(n.id)||"",domId:r.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:ch().flowchart.padding};let b,w;if("group"!==p.type)w=await QT(s,p,n.dir),b=w.node().getBBox();else{i.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:t,bbox:e}=await mT(s,p,void 0,!0);l.width=e.width,l.wrappingWidth=ch().flowchart.wrappingWidth,l.height=e.height,l.labelNode=t.node(),p.labelData=l}const y={id:n.id,ports:"diamond"===n.type?h:[],layoutOptions:g,labelText:u,labelData:l,domId:r.db.lookUpDomId(n.id),width:null==b?void 0:b.width,height:null==b?void 0:b.height,type:n.type,el:w,parent:a.parentById[n.id]};dO[p.id]=y}))),o}(g,e,h,f,i,y,s);const m=d.insert("g").attr("class","edges edgePath"),v=i.db.getEdges();s=function(t,e,n,i){o.info("abc78 edges = ",t);const r=i.insert("g").attr("class","edgeLabels");let a,s,c={},u=e.db.getDirection();if(void 0!==t.defaultStyle){const e=Gf(t.defaultStyle);a=e.style,s=e.labelStyle}return t.forEach((function(e){const i="L-"+e.start+"-"+e.end;void 0===c[i]?(c[i]=0,o.info("abc78 new entry",i,c[i])):(c[i]++,o.info("abc78 new entry",i,c[i]));let l=i+"-"+c[i];o.info("abc78 new link id to be used is",i,l,c[i]);const h="LS-"+e.start,f="LE-"+e.end,d={style:"",labelStyle:""};switch(d.minlen=e.length||1,"arrow_open"===e.type?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",e.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle"}let g="",p="";switch(e.stroke){case"normal":g="fill:none;",void 0!==a&&(g=a),void 0!==s&&(p=s),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;"}if(void 0!==e.style){const t=Gf(e.style);g=t.style,p=t.labelStyle}d.style=d.style+=g,d.labelStyle=d.labelStyle+=p,void 0!==e.interpolate?d.curve=Hf(e.interpolate,Ko):void 0!==t.defaultInterpolate?d.curve=Hf(t.defaultInterpolate,Ko):d.curve=Hf(fO.curve,Ko),void 0===e.text?void 0!==e.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType=e.labelType,d.label=e.text.replace(Bc.lineBreakRegex,"\n"),void 0===e.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=l,d.classes="flowchart-link "+h+" "+f;const b=iC(r,d),{source:w,target:y,sourceId:m,targetId:v}=((t,e)=>{let n=t.start,i=t.end;const r=n,a=i,o=dO[n],s=dO[i];return o&&s?("diamond"===o.type&&(n=`${n}-${pO(n,"out",e)}`),"diamond"===s.type&&(i=`${i}-${pO(i,"in",e)}`),{source:n,target:i,sourceId:r,targetId:a}):{source:n,target:i}})(e,u);o.debug("abc78 source and target",w,y),n.edges.push({id:"e"+e.start+e.end,sources:[w],targets:[y],sourceId:m,targetId:v,labelEl:b,labels:[{width:d.width,height:d.height,orgWidth:d.width,orgHeight:d.height,text:d.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:d})})),n}(v,i,s,d),Object.keys(dO).forEach((t=>{const e=dO[t];e.parent||s.children.push(e),void 0!==y.childrenById[t]&&(e.labels=[{text:e.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:e.labelData.width,height:e.labelData.height}],delete e.x,delete e.y,delete e.width,delete e.height)})),wO(s.children,y),o.info("after layout",JSON.stringify(s,null,2));const x=await lO.layout(s);yO(0,0,x.children,d,w,i,0),o.info("after layout",x),null==(r=x.edges)||r.map((t=>{bO(m,t,t.edgeData,i,y)})),bh({},d,u.diagramPadding,u.useMaxWidth),a.remove()}},vO=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:Nw,renderer:mO,parser:Fb,styles:t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.85;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n\n .flowchart-label text {\n text-anchor: middle;\n }\n\n ${(t=>{let e="";for(let n=0;n<5;n++)e+=`\n .subgraph-lvl-${n} {\n fill: ${t[`surface${n}`]};\n stroke: ${t[`surfacePeer${n}`]};\n }\n `;return e})(t)}\n`}},Symbol.toStringTag,{value:"Module"}));var xO=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,26,27,28],r=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,23],l=[1,24],h=[1,27],f=[4,6,9,11,17,18,20,22,23,26,27,28],d={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:i.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:i.addTask(a[s],0,""),this.$=a[s];break;case 20:i.addEvent(a[s].substr(2)),this.$=a[s];break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),i.parseDirective(a[s],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:e,7:3,12:4,28:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,28:n},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:a,20:o,22:s,23:c,24:20,25:21,26:u,27:l,28:n},{1:[2,2]},{14:25,15:[1,26],31:h},t([15,31],[2,22]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:22,10:28,12:4,17:r,18:a,20:o,22:s,23:c,24:20,25:21,26:u,27:l,28:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,29]},{21:[1,30]},t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(f,[2,9]),{14:34,31:h},{31:[2,23]},{11:[1,35]},t(f,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,u=r.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},g={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/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;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};function p(){this.yy={}}return d.lexer=g,p.prototype=d,d.Parser=p,new p}();xO.parser=xO;const kO=xO;let _O="",EO=0;const TO=[],CO=[],SO=[],AO=()=>Mh,MO=(t,e,n)=>{Lh(globalThis,t,e,n)},IO=function(){TO.length=0,CO.length=0,_O="",SO.length=0,kh()},LO=function(t){_O=t,TO.push(t)},OO=function(){return TO},DO=function(){let t=FO(),e=0;for(;!t&&e<100;)t=FO(),e++;return CO.push(...SO),CO},NO=function(t,e,n){const i={id:EO++,section:_O,type:_O,task:t,score:e||0,events:n?[n]:[]};SO.push(i)},PO=function(t){SO.find((t=>t.id===EO-1)).events.push(t)},BO=function(t){const e={section:_O,type:_O,description:t,task:t,classes:[]};CO.push(e)},FO=function(){const t=function(t){return SO[t].processed};let e=!0;for(const[n,i]of SO.entries())t(n),e=e&&i.processed;return e},jO=Object.freeze(Object.defineProperty({__proto__:null,addEvent:PO,addSection:LO,addTask:NO,addTaskOrg:BO,clear:IO,default:{clear:IO,getCommonDb:AO,addSection:LO,getSections:OO,getTasks:DO,addTask:NO,addTaskOrg:BO,addEvent:PO,parseDirective:MO},getCommonDb:AO,getSections:OO,getTasks:DO,parseDirective:MO},Symbol.toStringTag,{value:"Module"}));function RO(t,e){t.each((function(){var t,n=ae(this),i=n.text().split(/(\s+|
)/).reverse(),r=[],a=n.attr("y"),o=parseFloat(n.attr("dy")),s=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em");for(let o=0;oe||"
"===t)&&(r.pop(),s.text(r.join(" ").trim()),r="
"===t?[""]:[t],s=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}const $O=function(t,e,n,i){const r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=a.append("g"),s=a.append("g"),c=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(RO,e.width).node().getBBox(),u=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=c.height+1.1*u*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,s.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}(o,e,r),e},zO=function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(RO,e.width).node().getBBox(),a=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},qO=function(t,e,n,i,r,a,s,c,u,l,h){var f;for(const c of e){const e={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:a};o.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),g=$O(d,e,n,s).height;if(o.debug("taskHeight after draw",g),d.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,g),c.events){const e=t.append("g").attr("class","lineWrapper");let o=a;r+=100,o+=HO(t,c.events,n,i,r,s),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+(h?a:l)+u+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,h&&(null==(f=s.timeline)||!f.disableMulticolor)&&n++}r-=10},HO=function(t,e,n,i,r,a){let s=0;const c=r;r+=100;for(const c of e){const e={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};o.debug("eventNode",e);const u=t.append("g").attr("class","eventWrapper"),l=$O(u,e,n,a).height;s+=l,u.attr("transform",`translate(${i}, ${r})`),r=r+10+l}return r=c,s},UO={setConf:()=>{},draw:function(t,e,n,i){var r,a;const s=ch(),c=s.leftMargin??50;o.debug("timeline",i.db);const u=s.securityLevel;let l;"sandbox"===u&&(l=ae("#i"+e));const h=ae("sandbox"===u?l.nodes()[0].contentDocument.body:"body").select("#"+e);h.append("g");const f=i.db.getTasks(),d=i.db.getCommonDb().getDiagramTitle();o.debug("task",f),function(t){t.append("defs").append("marker").attr("id","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")}(h);const g=i.db.getSections();o.debug("sections",g);let p=0,b=0,w=0,y=0,m=50+c,v=50;y=50;let x=0,k=!0;g.forEach((function(t){const e=zO(h,{number:x,descr:t,section:x,width:150,padding:20,maxHeight:p},s);o.debug("sectionHeight before draw",e),p=Math.max(p,e+20)}));let _=0,E=0;o.debug("tasks.length",f.length);for(const[t,e]of f.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:b},i=zO(h,n,s);o.debug("taskHeight before draw",i),b=Math.max(b,i+20),_=Math.max(_,e.events.length);let r=0;for(let t=0;t0?g.forEach((t=>{const e=f.filter((e=>e.section===t)),n={number:x,descr:t,section:x,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:p};o.debug("sectionNode",n);const i=h.append("g"),r=$O(i,n,x,s);o.debug("sectionNode output",r),i.attr("transform",`translate(${m}, 50)`),v+=p+50,e.length>0&&qO(h,e,x,m,v,b,s,0,E,p,!1),m+=200*Math.max(e.length,1),v=50,x++})):(k=!1,qO(h,f,x,m,v,b,s,0,E,p,!0));const T=h.node().getBBox();o.debug("bounds",T),d&&h.append("text").text(d).attr("x",T.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=k?p+b+150:b+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",c).attr("y1",w).attr("x2",T.width+3*c).attr("y2",w).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),bh(void 0,h,(null==(r=s.timeline)?void 0:r.padding)??50,(null==(a=s.timeline)?void 0:a.useMaxWidth)??!1)}},GO=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:jO,renderer:UO,parser:kO,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},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}}};function m(){this.yy={}}return w.lexer=y,m.prototype=w,w.Parser=m,new m}();YO.parser=YO;const KO=YO,WO=t=>Lc(t,ch());let XO=[],VO=0,QO={};const ZO={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},JO=(t,e)=>{QO[t]=e},tD=t=>{switch(t){case ZO.DEFAULT:return"no-border";case ZO.RECT:return"rect";case ZO.ROUNDED_RECT:return"rounded-rect";case ZO.CIRCLE:return"circle";case ZO.CLOUD:return"cloud";case ZO.BANG:return"bang";case ZO.HEXAGON:return"hexgon";default:return"no-border"}};let eD;const nD=t=>QO[t],iD=Object.freeze(Object.defineProperty({__proto__:null,addNode:(t,e,n,i)=>{o.info("addNode",t,e,n,i);const r=ch(),a={id:VO++,nodeId:WO(e),level:t,descr:WO(n),type:i,children:[],width:ch().mindmap.maxNodeWidth};switch(a.type){case ZO.ROUNDED_RECT:case ZO.RECT:case ZO.HEXAGON:a.padding=2*r.mindmap.padding;break;default:a.padding=r.mindmap.padding}const s=function(t){for(let e=XO.length-1;e>=0;e--)if(XO[e].level{XO=[],VO=0,QO={}},decorateNode:t=>{const e=XO[XO.length-1];t&&t.icon&&(e.icon=WO(t.icon)),t&&t.class&&(e.class=WO(t.class))},getElementById:nD,getLogger:()=>o,getMindmap:()=>XO.length>0?XO[0]:null,getNodeById:t=>XO[t],getType:(t,e)=>{switch(o.debug("In get type",t,e),t){case"[":return ZO.RECT;case"(":return")"===e?ZO.ROUNDED_RECT:ZO.CLOUD;case"((":return ZO.CIRCLE;case")":return ZO.CLOUD;case"))":return ZO.BANG;case"{{":return ZO.HEXAGON;default:return ZO.DEFAULT}},nodeType:ZO,get parseError(){return eD},sanitizeText:WO,setElementForId:JO,setErrorHandler:t=>{eD=t},type2Str:tD},Symbol.toStringTag,{value:"Module"}));var rD={exports:{}};!function(t,n){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n"u"?null:window,u=c?c.navigator:null;c&&c.document;var l=t(""),h=t({}),f=t((function(){})),d=typeof HTMLElement>"u"?"undefined":t(HTMLElement),g=function(t){return t&&t.instanceString&&b(t.instanceString)?t.instanceString():null},p=function(e){return null!=e&&t(e)==l},b=function(e){return null!=e&&t(e)===f},w=function(t){return!x(t)&&(Array.isArray?Array.isArray(t):null!=t&&t instanceof Array)},y=function(e){return null!=e&&t(e)===h&&!w(e)&&e.constructor===Object},m=function(e){return null!=e&&t(e)===t(1)&&!isNaN(e)},v=function(t){if("undefined"!==d)return null!=t&&t instanceof HTMLElement},x=function(t){return k(t)||_(t)},k=function(t){return"collection"===g(t)&&t._private.single},_=function(t){return"collection"===g(t)&&!t._private.single},E=function(t){return"core"===g(t)},T=function(t){return"stylesheet"===g(t)},C=function(t){return null==t||!(""!==t&&!t.match(/^\s+$/))},S=function(e){return function(e){return null!=e&&t(e)===h}(e)&&b(e.then)},A=function(t,e){e||(e=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var t=[],e=0;ee?1:0},R=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,n=1;n255)return;e.push(Math.floor(a))}var o=i[1]||i[2]||i[3],s=i[1]&&i[2]&&i[3];if(o&&!s)return;var c=n[4];if(void 0!==c){if((c=parseFloat(c))<0||c>1)return;e.push(c)}}return e}(t)||function(t){var e,n,i,r,a,o,s,c;function u(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var l=new RegExp("^"+B+"$").exec(t);if(l){if((n=parseInt(l[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(i=parseFloat(l[2]))<0||i>100||(i/=100,(r=parseFloat(l[3]))<0||r>100)||(r/=100,void 0!==(a=l[4])&&((a=parseFloat(a))<0||a>1)))return;if(0===i)o=s=c=Math.round(255*r);else{var h=r<.5?r*(1+i):r+i-r*i,f=2*r-h;o=Math.round(255*u(f,h,n+1/3)),s=Math.round(255*u(f,h,n)),c=Math.round(255*u(f,h,n-1/3))}e=[o,s,c,a]}return e}(t)},z={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],olive:[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]},q=function(t){for(var e=t.map,n=t.keys,i=n.length,r=0;r=e||n<0||h&&t-u>=a}function p(){var t=X();if(g(t))return b(t);s=setTimeout(p,function(t){var n=e-(t-c);return h?yt(n,a-(t-u)):n}(t))}function b(t){return s=void 0,f&&i?d(t):(i=r=void 0,o)}function w(){var t=X(),n=g(t);if(i=arguments,r=this,c=t,n){if(void 0===s)return function(t){return u=t,s=setTimeout(p,e),l?d(t):o}(c);if(h)return clearTimeout(s),s=setTimeout(p,e),d(c)}return void 0===s&&(s=setTimeout(p,e)),o}return e=bt(e)||0,U(n)&&(l=!!n.leading,a=(h="maxWait"in n)?wt(bt(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),w.cancel=function(){void 0!==s&&clearTimeout(s),u=0,i=c=r=s=void 0},w.flush=function(){return void 0===s?o:b(X())},w},vt=c?c.performance:null,xt=vt&&vt.now?function(){return vt.now()}:function(){return Date.now()},kt=function(){if(c){if(c.requestAnimationFrame)return function(t){c.requestAnimationFrame(t)};if(c.mozRequestAnimationFrame)return function(t){c.mozRequestAnimationFrame(t)};if(c.webkitRequestAnimationFrame)return function(t){c.webkitRequestAnimationFrame(t)};if(c.msRequestAnimationFrame)return function(t){c.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout((function(){t(xt())}),1e3/60)}}(),_t=function(t){return kt(t)},Et=xt,Tt=9261,Ct=5381,St=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt;!(e=t.next()).done;)n=65599*n+e.value|0;return n},At=function(t){return 65599*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt)+t|0},Mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ct;return(e<<5)+e+t|0},It=function(t){return 2097152*t[0]+t[1]},Lt=function(t,e){return[At(t[0],e[0]),Mt(t[1],e[1])]},Ot=function(t,e){var n={value:0,done:!1},i=0,r=t.length;return St({next:function(){return i=0&&(t[i]!==e||(t.splice(i,1),!n));i--);},Zt=function(t){t.splice(0,t.length)},Jt=function(t,e,n){return n&&(e=L(n,e)),t[e]},te=function(t,e,n,i){n&&(e=L(n,e)),t[e]=i},ee=function(){function t(){n(this,t),this._obj={}}return r(t,[{key:"set",value:function(t,e){return this._obj[t]=e,this}},{key:"delete",value:function(t){return this._obj[t]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(t){return void 0!==this._obj[t]}},{key:"get",value:function(t){return this._obj[t]}}]),t}(),ne=typeof Map<"u"?Map:ee,ie=function(){function t(e){if(n(this,t),this._obj=Object.create(null),this.size=0,null!=e){var i;i=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e;for(var r=0;r"u"?"undefined":t(Set))?Set:ie,ae=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==t&&void 0!==e&&E(t)){var i=e.group;if(null==i&&(i=e.data&&null!=e.data.source&&null!=e.data.target?"edges":"nodes"),"nodes"===i||"edges"===i){this.length=1,this[0]=this;var r=this._private={cy:t,single:!0,data:e.data||{},position:e.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:!!e.selected,selectable:void 0===e.selectable||!!e.selectable,locked:!!e.locked,grabbed:!1,grabbable:void 0===e.grabbable||!!e.grabbable,pannable:void 0===e.pannable?"edges"===i:!!e.pannable,active:!1,classes:new re,animation:{current:[],queue:[]},rscratch:{},scratch:e.scratch||{},edges:[],children:[],parent:e.parent&&e.parent.isNode()?e.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(null==r.position.x&&(r.position.x=0),null==r.position.y&&(r.position.y=0),e.renderedPosition){var a=e.renderedPosition,o=t.pan(),s=t.zoom();r.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var c=[];w(e.classes)?c=e.classes:p(e.classes)&&(c=e.classes.split(/\s+/));for(var u=0,l=c.length;ue?1:0},u=function(t,e,r,a,o){var s;if(null==r&&(r=0),null==o&&(o=n),r<0)throw new Error("lo must be non-negative");for(null==a&&(a=t.length);rn;0<=n?e++:e--)u.push(e);return u}.apply(this).reverse()).length;ap;0<=p?++f:--f)b.push(a(t,i));return b},g=function(t,e,i,r){var a,o,s;for(null==r&&(r=n),a=t[i];i>e&&r(a,o=t[s=i-1>>1])<0;)t[i]=o,i=s;return t[i]=a},p=function(t,e,i){var r,a,o,s,c;for(null==i&&(i=n),a=t.length,c=e,o=t[e],r=2*e+1;r0;){var E=v.pop(),T=m(E),C=E.id();if(d[C]=T,T!==1/0)for(var S=E.neighborhood().intersect(b),A=0;A0)for(n.unshift(e);f[r];){var a=f[r];n.unshift(a.edge),n.unshift(a.node),r=(i=a.node).id()}return c.spawn(n)}}}},he={kruskal:function(t){t=t||function(t){return 1};for(var e=this.byGroup(),n=e.nodes,i=e.edges,r=n.length,a=new Array(r),o=n,s=function(t){for(var e=0;e0;){if(c=b.pop(),u=c.id(),w.delete(u),x++,u===f){for(var k=[],_=r,E=f,T=m[E];k.unshift(_),null!=T&&k.unshift(T),null!=(_=y[E]);)T=m[E=_.id()];return{found:!0,distance:d[u],path:this.spawn(k),steps:x}}p[u]=!0;for(var C=c._private.edges,S=0;SS&&(d[C]=S,y[C]=T,m[C]=x),!r){var A=T*u+E;!r&&d[A]>S&&(d[A]=S,y[A]=E,m[A]=x)}}}for(var M=0;M1&&void 0!==arguments[1]?arguments[1]:a,i=[],r=m(t);;){if(null==r)return e.spawn();var o=y(r),c=o.edge,u=o.pred;if(i.unshift(r[0]),r.same(n)&&i.length>0)break;null!=c&&i.unshift(c),r=u}return s.spawn(i)},hasNegativeWeightCycle:g,negativeWeightCycles:b}}},ye=Math.sqrt(2),me=function(t,e,n){0===n.length&&Ht("Karger-Stein must be run on a connected (sub)graph");for(var i=n[t],r=i[1],a=i[2],o=e[r],s=e[a],c=n,u=c.length-1;u>=0;u--){var l=c[u],h=l[1],f=l[2];(e[h]===o&&e[f]===s||e[h]===s&&e[f]===o)&&c.splice(u,1)}for(var d=0;di;){var r=Math.floor(Math.random()*e.length);e=me(r,t,e),n--}return e},xe={kargerStein:function(){var t=this,e=this.byGroup(),n=e.nodes,i=e.edges;i.unmergeBy((function(t){return t.isLoop()}));var r=n.length,a=i.length,o=Math.ceil(Math.pow(Math.log(r)/Math.LN2,2)),s=Math.floor(r/ye);if(!(r<2)){for(var c=[],u=0;u0?1:t<0?-1:0},Ae=function(t,e){return Math.sqrt(Me(t,e))},Me=function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i},Ie=function(t){for(var e=t.length,n=0,i=0;i=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(null!=t.w&&null!=t.h&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},Pe=function(t,e){t.x1=Math.min(t.x1,e.x1),t.x2=Math.max(t.x2,e.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,e.y1),t.y2=Math.max(t.y2,e.y2),t.h=t.y2-t.y1},Be=function(t,e,n){t.x1=Math.min(t.x1,e),t.x2=Math.max(t.x2,e),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,n),t.y2=Math.max(t.y2,n),t.h=t.y2-t.y1},Fe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.x1-=e,t.x2+=e,t.y1-=e,t.y2+=e,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},je=function(t){var e,n,i,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)e=n=i=r=a[0];else if(2===a.length)e=i=a[0],r=n=a[1];else if(4===a.length){var s=o(a,4);e=s[0],n=s[1],i=s[2],r=s[3]}return t.x1-=r,t.x2+=n,t.y1-=e,t.y2+=i,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},Re=function(t,e){t.x1=e.x1,t.y1=e.y1,t.x2=e.x2,t.y2=e.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},$e=function(t,e){return!(t.x1>e.x2||e.x1>t.x2||t.x2e.y2||e.y1>t.y2)},ze=function(t,e,n){return t.x1<=e&&e<=t.x2&&t.y1<=n&&n<=t.y2},qe=function(t,e){return ze(t,e.x,e.y)},He=function(t,e){return ze(t,e.x1,e.y1)&&ze(t,e.x2,e.y2)},Ue=function(t,e,n,i,r,a,o){var s,c=un(r,a),u=r/2,l=a/2,h=i-l-o;if((s=nn(t,e,n,i,n-u+c-o,h,n+u-c+o,h,!1)).length>0)return s;var f=n+u+o;if((s=nn(t,e,n,i,f,i-l+c-o,f,i+l-c+o,!1)).length>0)return s;var d=i+l+o;if((s=nn(t,e,n,i,n-u+c-o,d,n+u-c+o,d,!1)).length>0)return s;var g,p=n-u-o;if((s=nn(t,e,n,i,p,i-l+c-o,p,i+l-c+o,!1)).length>0)return s;var b=n-u+c,w=i-l+c;if((g=tn(t,e,n,i,b,w,c+o)).length>0&&g[0]<=b&&g[1]<=w)return[g[0],g[1]];var y=n+u-c,m=i-l+c;if((g=tn(t,e,n,i,y,m,c+o)).length>0&&g[0]>=y&&g[1]<=m)return[g[0],g[1]];var v=n+u-c,x=i+l-c;if((g=tn(t,e,n,i,v,x,c+o)).length>0&&g[0]>=v&&g[1]>=x)return[g[0],g[1]];var k=n-u+c,_=i+l-c;return(g=tn(t,e,n,i,k,_,c+o)).length>0&&g[0]<=k&&g[1]>=_?[g[0],g[1]]:[]},Ge=function(t,e,n,i,r,a,o){var s=o,c=Math.min(n,r),u=Math.max(n,r),l=Math.min(i,a),h=Math.max(i,a);return c-s<=t&&t<=u+s&&l-s<=e&&e<=h+s},Ye=function(t,e,n,i,r,a,o,s,c){var u=Math.min(n,o,r)-c,l=Math.max(n,o,r)+c,h=Math.min(i,s,a)-c,f=Math.max(i,s,a)+c;return!(tl||ef)},Ke=function(t,e,n,i,r,a,o,s){var c=[];!function(t,e,n,i,r){var a,o,s,c,u,l,h,f;0===t&&(t=1e-5),s=-27*(i/=t)+(e/=t)*(9*(n/=t)-e*e*2),a=(o=(3*n-e*e)/9)*o*o+(s/=54)*s,r[1]=0,h=e/3,a>0?(u=(u=s+Math.sqrt(a))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),l=(l=s-Math.sqrt(a))<0?-Math.pow(-l,1/3):Math.pow(l,1/3),r[0]=-h+u+l,h+=(u+l)/2,r[4]=r[2]=-h,h=Math.sqrt(3)*(-l+u)/2,r[3]=h,r[5]=-h):(r[5]=r[3]=0,0===a?(f=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),r[0]=2*f-h,r[4]=r[2]=-(f+h)):(c=(o=-o)*o*o,c=Math.acos(s/Math.sqrt(c)),f=2*Math.sqrt(o),r[0]=-h+f*Math.cos(c/3),r[2]=-h+f*Math.cos((c+2*Math.PI)/3),r[4]=-h+f*Math.cos((c+4*Math.PI)/3)))}(1*n*n-4*n*r+2*n*o+4*r*r-4*r*o+o*o+i*i-4*i*a+2*i*s+4*a*a-4*a*s+s*s,9*n*r-3*n*n-3*n*o-6*r*r+3*r*o+9*i*a-3*i*i-3*i*s-6*a*a+3*a*s,3*n*n-6*n*r+n*o-n*t+2*r*r+2*r*t-o*t+3*i*i-6*i*a+i*s-i*e+2*a*a+2*a*e-s*e,1*n*r-n*n+n*t-r*t+i*a-i*i+i*e-a*e,c);for(var u=[],l=0;l<6;l+=2)Math.abs(c[l+1])<1e-7&&c[l]>=0&&c[l]<=1&&u.push(c[l]);u.push(1),u.push(0);for(var h,f,d,g=-1,p=0;p=0?dc?(t-r)*(t-r)+(e-a)*(e-a):u-h},Xe=function(t,e,n){for(var i,r,a,o,s=0,c=0;c=t&&t>=a||i<=t&&t<=a))continue;(t-i)/(a-i)*(o-r)+r>e&&s++}return s%2!=0},Ve=function(t,e,n,i,r,a,o,s,c){var u,l,h=new Array(n.length);null!=s[0]?(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2):u=s;for(var f=Math.cos(-u),d=Math.sin(-u),g=0;g0){var p=Ze(h,-c);l=Qe(p)}else l=h;return Xe(t,e,l)},Qe=function(t){for(var e,n,i,r,a,o,s,c,u=new Array(t.length/2),l=0;l=0&&g<=1&&b.push(g),p>=0&&p<=1&&b.push(p),0===b.length)return[];var w=b[0]*s[0]+t,y=b[0]*s[1]+e;return b.length>1?b[0]==b[1]?[w,y]:[w,y,b[1]*s[0]+t,b[1]*s[1]+e]:[w,y]},en=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},nn=function(t,e,n,i,r,a,o,s,c){var u=t-r,l=n-t,h=o-r,f=e-a,d=i-e,g=s-a,p=h*f-g*u,b=l*f-d*u,w=g*l-h*d;if(0!==w){var y=p/w,m=b/w,v=-.001;return v<=y&&y<=1.001&&v<=m&&m<=1.001||c?[t+y*l,e+y*d]:[]}return 0===p||0===b?en(t,n,o)===o?[o,s]:en(t,n,r)===r?[r,a]:en(r,o,n)===n?[n,i]:[]:[]},rn=function(t,e,n,i,r,a,o,s){var c,u,l=[],h=new Array(n.length),f=!0;if(null==a&&(f=!1),f){for(var d=0;d0){var g=Ze(h,-s);u=Qe(g)}else u=h}else u=n;for(var p,b,w,y,m=0;mu&&(u=e)},get:function(t){return c[t]}},h=0;h0?m.edgesTo(y)[0]:y.edgesTo(m)[0];var v=i(w);y=y.id(),h[y]>h[p]+v&&(h[y]=h[p]+v,f.nodes.indexOf(y)<0?f.push(y):f.updateItem(y),u[y]=0,c[y]=[]),h[y]==h[p]+v&&(u[y]=u[y]+u[p],c[y].push(p))}else for(var x=0;x0;){for(var T=n.pop(),C=0;C0&&o.push(n[s]);0!==o.length&&r.push(i.collection(o))}return r}(l,c,e,i);return function(t){for(var e=0;e5&&void 0!==arguments[5]?arguments[5]:In,o=i,s=0;s=2?Bn(t,e,n,0,Dn,Nn):Bn(t,e,n,0,On)},squaredEuclidean:function(t,e,n){return Bn(t,e,n,0,Dn)},manhattan:function(t,e,n){return Bn(t,e,n,0,On)},max:function(t,e,n){return Bn(t,e,n,-1/0,Pn)}};function jn(t,e,n,i,r,a){var o;return o=b(t)?t:Fn[t]||Fn.euclidean,0===e&&b(t)?o(r,a):o(e,n,i,r,a)}Fn["squared-euclidean"]=Fn.squaredEuclidean,Fn.squaredeuclidean=Fn.squaredEuclidean;var Rn=Vt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),$n=function(t){return Rn(t)},zn=function(t,e,n,i,r){var a="kMedoids"!==r?function(t){return n[t]}:function(t){return i[t](n)},o=n,s=e;return jn(t,i.length,a,(function(t){return i[t](e)}),o,s)},qn=function(t,e,n){for(var i=n.length,r=new Array(i),a=new Array(i),o=new Array(e),s=null,c=0;cn)return!1;return!0},Kn=function(t,e,n){for(var i=0;io&&(o=e[c][u],s=u);r[s].push(t[c])}for(var l=0;l=r.threshold||"dendrogram"===r.mode&&1===t.length)return!1;var d,g=e[o],p=e[i[o]];d="dendrogram"===r.mode?{left:g,right:p,key:g.key}:{value:g.value.concat(p.value),key:g.key},t[g.index]=d,t.splice(p.index,1),e[g.key]=d;for(var b=0;bn[p.key][w.key]&&(a=n[p.key][w.key])):"max"===r.linkage?(a=n[g.key][w.key],n[g.key][w.key]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n0&&t.splice(0,e)):t=t.slice(e,n);for(var a=0,o=t.length-1;o>=0;o--){var s=t[o];r?isFinite(s)||(t[o]=-1/0,a++):t.splice(o,1)}i&&t.sort((function(t,e){return t-e}));var c=t.length,u=Math.floor(c/2);return c%2!=0?t[u+1+a]:(t[u-1+a]+t[u+a])/2}(t):"mean"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0,a=e;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=1/0,r=e;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=-1/0,r=e;ro&&(a=c,o=e[r*t+c])}a>0&&i.push(a)}for(var u=0;u=S?(A=S,S=I,M=L):I>A&&(A=I);for(var O=0;O0?1:0;E[f%i.minIterations*o+j]=R,F+=R}if(F>0&&(f>=i.minIterations-1||f==i.maxIterations-1)){for(var $=0,z=0;z0&&i.push(r);return i}(o,l,h),U=function(t,e,n){for(var i=fi(t,e,n),r=0;rc&&(s=u,c=l)}n[r]=a[s]}return fi(t,e,n)}(o,c,H),G={},Y=0;Y1||o>1)&&(u=!0),l[e]=[],t.outgoers().forEach((function(t){t.isEdge()&&l[e].push(t.id())}))}else h[e]=[void 0,t.target().id()]})):c.forEach((function(t){var e=t.id();t.isNode()?(t.degree(!0)%2&&(n?i?u=!0:i=e:n=e),l[e]=[],t.connectedEdges().forEach((function(t){return l[e].push(t.id())}))):h[e]=[t.source().id(),t.target().id()]}));var f={found:!1,trail:void 0};if(u)return f;if(i&&n)if(s){if(r&&i!=r)return f;r=i}else{if(r&&i!=r&&n!=r)return f;r||(r=i)}else r||(r=c[0].id());var d=function(t){for(var e,n,i,r=t,a=[t];l[r].length;)e=l[r].shift(),n=h[e][0],r!=(i=h[e][1])?(l[i]=l[i].filter((function(t){return t!=e})),r=i):!s&&r!=n&&(l[n]=l[n].filter((function(t){return t!=e})),r=n),a.unshift(e),a.unshift(r);return a},g=[],b=[];for(b=d(r);1!=b.length;)0==l[b[0]].length?(g.unshift(c.getElementById(b.shift())),g.unshift(c.getElementById(b.shift()))):b=d(b.shift()).concat(b);for(var w in g.unshift(c.getElementById(b.shift())),l)if(l[w].length)return f;return f.found=!0,f.trail=this.spawn(g,!0),f}},wi=function(){var t=this,e={},n=0,i=0,r=[],a=[],o={},s=function s(c,u,l){c===l&&(i+=1),e[u]={id:n,low:n++,cutVertex:!1};var h,f,d,g,p=t.getElementById(u).connectedEdges().intersection(t);0===p.size()?r.push(t.spawn(t.getElementById(u))):p.forEach((function(n){h=n.source().id(),f=n.target().id(),(d=h===u?f:h)!==l&&(g=n.id(),o[g]||(o[g]=!0,a.push({x:u,y:d,edge:n})),d in e?e[u].low=Math.min(e[u].low,e[d].id):(s(c,d,u),e[u].low=Math.min(e[u].low,e[d].low),e[u].id<=e[d].low&&(e[u].cutVertex=!0,function(n,i){for(var o=a.length-1,s=[],c=t.spawn();a[o].x!=n||a[o].y!=i;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach((function(n){var i=n.connectedNodes().intersection(t);c.merge(n),i.forEach((function(n){var i=n.id(),r=n.connectedEdges().intersection(t);c.merge(n),e[i].cutVertex?c.merge(r.filter((function(t){return t.isLoop()}))):c.merge(r)}))})),r.push(c)}(u,d))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(i=0,s(n,n),e[n].cutVertex=i>1)}}));var c=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(c),components:r}},yi=function(){var t=this,e={},n=0,i=[],r=[],a=t.spawn(t),o=function o(s){if(r.push(s),e[s]={index:n,low:n++,explored:!1},t.getElementById(s).connectedEdges().intersection(t).forEach((function(t){var n=t.target().id();n!==s&&(n in e||o(n),e[n].explored||(e[s].low=Math.min(e[s].low,e[n].low)))})),e[s].index===e[s].low){for(var c=t.spawn();;){var u=r.pop();if(c.merge(t.getElementById(u)),e[u].low=e[s].index,e[u].explored=!0,u===s)break}var l=c.edgesWith(c),h=c.merge(l);i.push(h),a=a.difference(h)}};return t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||o(n)}})),{cut:a,components:i}},mi={};[se,le,he,de,pe,we,xe,dn,pn,wn,mn,Mn,ti,ci,gi,bi,{hopcroftTarjanBiconnected:wi,htbc:wi,htb:wi,hopcroftTarjanBiconnectedComponents:wi},{tarjanStronglyConnected:yi,tsc:yi,tscc:yi,tarjanStronglyConnectedComponents:yi}].forEach((function(t){R(mi,t)}));var vi=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};vi.prototype={fulfill:function(t){return xi(this,1,"fulfillValue",t)},reject:function(t){return xi(this,2,"rejectReason",t)},then:function(t,e){var n=this,i=new vi;return n.onFulfilled.push(Ei(t,i,"fulfill")),n.onRejected.push(Ei(e,i,"reject")),ki(n),i.proxy}};var xi=function(t,e,n,i){return 0===t.state&&(t.state=e,t[n]=i,ki(t)),t},ki=function(t){1===t.state?_i(t,"onFulfilled",t.fulfillValue):2===t.state&&_i(t,"onRejected",t.rejectReason)},_i=function(t,e,n){if(0!==t[e].length){var i=t[e];t[e]=[];var r=function(){for(var t=0;t0:void 0}},clearQueue:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n-1};var dr=function(t,e){var n=this.__data__,i=cr(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function gr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(i).updateStyle().emit("class"),e},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var e=this[0];return null!=e&&e._private.classes.has(t)},toggleClass:function(t,e){w(t)||(t=t.match(/\S+/g)||[]);for(var n=this,i=void 0===e,r=[],a=0,o=n.length;a0&&this.spawn(r).updateStyle().emit("class"),n},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,e){var n=this;if(null==e)e=250;else if(0===e)return n;return n.addClass(t),setTimeout((function(){n.removeClass(t)}),e),n}};Jr.className=Jr.classNames=Jr.classes;var ta={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:D,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ta.variable="(?:[\\w-.]|(?:\\\\"+ta.metaChar+"))+",ta.className="(?:[\\w-]|(?:\\\\"+ta.metaChar+"))+",ta.value=ta.string+"|"+ta.number,ta.id=ta.variable,function(){var t,e,n;for(t=ta.comparatorOp.split("|"),n=0;n=0)&&"="!==e&&(ta.comparatorOp+="|\\!"+e)}();var ea=0,na=1,ia=2,ra=3,aa=4,oa=5,sa=6,ca=7,ua=8,la=9,ha=10,fa=11,da=12,ga=13,pa=14,ba=15,wa=16,ya=17,ma=18,va=19,xa=20,ka=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort((function(t,e){return function(t,e){return-1*j(t,e)}(t.selector,e.selector)})),_a=function(){for(var t,e={},n=0;n0&&u.edgeCount>0)return Gt("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return Gt("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===u.edgeCount&&Gt("The selector `"+t+"` 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},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var t=function(t){return t??""},e=function(e){return p(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},i=function(r,a){return r.checks.reduce((function(o,s,c){return o+(a===r&&0===c?"$":"")+function(r,a){var o=r.type,s=r.value;switch(o){case ea:var c=t(s);return c.substring(0,c.length-1);case ra:var u=r.field,l=r.operator;return"["+u+n(t(l))+e(s)+"]";case oa:var h=r.operator,f=r.field;return"["+t(h)+f+"]";case aa:return"["+r.field+"]";case sa:var d=r.operator;return"[["+r.field+n(t(d))+e(s)+"]]";case ca:return s;case ua:return"#"+s;case la:return"."+s;case ya:case ba:return i(r.parent,a)+n(">")+i(r.child,a);case ma:case wa:return i(r.ancestor,a)+" "+i(r.descendant,a);case va:var g=i(r.left,a),p=i(r.subject,a),b=i(r.right,a);return g+(g.length>0?" ":"")+p+b;case xa:return""}}(s,a)}),"")},r="",a=0;a1&&a=0&&(e=e.replace("!",""),l=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),u=!0),(o||c||u)&&(r=o||s?""+t:"",a=""+n),u&&(t=r=r.toLowerCase(),n=a=a.toLowerCase()),e){case"*=":i=r.indexOf(a)>=0;break;case"$=":i=r.indexOf(a,r.length-a.length)>=0;break;case"^=":i=0===r.indexOf(a);break;case"=":i=t===n;break;case">":h=!0,i=t>n;break;case">=":h=!0,i=t>=n;break;case"<":h=!0,i=t0;){var u=r.shift();e(u),a.add(u.id()),o&&i(r,a,u)}return t}function Ha(t,e,n){if(n.isParent())for(var i=n._private.children,r=0;r1&&void 0!==arguments[1])||arguments[1],Ha)},za.forEachUp=function(t){return qa(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ua)},za.forEachUpAndDown=function(t){return qa(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ga)},za.ancestors=za.parents,(ja=Ra={data:Qr.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:Qr.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Qr.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Qr.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Qr.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Qr.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=ja.data,ja.removeAttr=ja.removeData;var Ya=Ra,Ka={};function Wa(t){return function(e){var n=this;if(void 0===e&&(e=!0),0===n.length);else if(n.isNode()&&!n.removed()){for(var i=0,r=n[0],a=r._private.edges,o=0;oe})),minIndegree:Xa("indegree",(function(t,e){return te})),minOutdegree:Xa("outdegree",(function(t,e){return te}))}),R(Ka,{totalDegree:function(t){for(var e=0,n=this.nodes(),i=0;i0,l=u;u&&(c=c[0]);var h=l?c.position():{x:0,y:0};return r={x:s.x-h.x,y:s.y-h.y},void 0===t?r:r[t]}for(var f=0;f0,w=b;b&&(g=g[0]);var m=w?g.position():{x:0,y:0};void 0!==e?d.position(t,e+m[t]):void 0!==r&&d.position({x:r.x+m.x,y:r.y+m.y})}}else if(!a)return;return this}}).modelPosition=Va.point=Va.position,Va.modelPositions=Va.points=Va.positions,Va.renderedPoint=Va.renderedPosition,Va.relativePoint=Va.relativePosition;var to,eo,no=Qa;to=eo={},eo.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),i=n.zoom(),r=n.pan(),a=e.x1*i+r.x,o=e.x2*i+r.x,s=e.y1*i+r.y,c=e.y2*i+r.y;return{x1:a,x2:o,y1:s,y2:c,w:o-a,h:c-s}},eo.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp((function(e){if(e.isParent()){var n=e._private;n.compoundBoundsClean=!1,n.bbCache=null,t||e.emitAndNotify("bounds")}})),this):this},eo.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function n(t){if(t.isParent()){var e=t._private,n=t.children(),i="include"===t.pstyle("compound-sizing-wrt-labels").value,r={width:{val:t.pstyle("min-width").pfValue,left:t.pstyle("min-width-bias-left"),right:t.pstyle("min-width-bias-right")},height:{val:t.pstyle("min-height").pfValue,top:t.pstyle("min-height-bias-top"),bottom:t.pstyle("min-height-bias-bottom")}},a=n.boundingBox({includeLabels:i,includeOverlays:!1,useCache:!1}),o=e.position;(0===a.w||0===a.h)&&((a={w:t.pstyle("width").pfValue,h:t.pstyle("height").pfValue}).x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);var s=r.width.left.value;"px"===r.width.left.units&&r.width.val>0&&(s=100*s/r.width.val);var c=r.width.right.value;"px"===r.width.right.units&&r.width.val>0&&(c=100*c/r.width.val);var u=r.height.top.value;"px"===r.height.top.units&&r.height.val>0&&(u=100*u/r.height.val);var l=r.height.bottom.value;"px"===r.height.bottom.units&&r.height.val>0&&(l=100*l/r.height.val);var h=w(r.width.val-a.w,s,c),f=h.biasDiff,d=h.biasComplementDiff,g=w(r.height.val-a.h,u,l),p=g.biasDiff,b=g.biasComplementDiff;e.autoPadding=function(t,e,n,i){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(i){case"width":return t>0?n.pfValue*t:0;case"height":return e>0?n.pfValue*e:0;case"average":return t>0&&e>0?n.pfValue*(t+e)/2:0;case"min":return t>0&&e>0?t>e?n.pfValue*e:n.pfValue*t:0;case"max":return t>0&&e>0?t>e?n.pfValue*t:n.pfValue*e:0;default:return 0}}(a.w,a.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(a.w,r.width.val),o.x=(-f+a.x1+a.x2+d)/2,e.autoHeight=Math.max(a.h,r.height.val),o.y=(-p+a.y1+a.y2+b)/2}function w(t,e,n){var i=0,r=0,a=e+n;return t>0&&a>0&&(i=e/a*t,r=n/a*t),{biasDiff:i,biasComplementDiff:r}}}for(var i=0;it.x2?i:t.x2,t.y1=nt.y2?r:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},ao=function(t,e){return null==e?t:ro(t,e.x1,e.y1,e.x2,e.y2)},oo=function(t,e,n){return Jt(t,e,n)},so=function(t,e,n){if(!e.cy().headless()){var i,r,a=e._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==e.pstyle(n+"-arrow-shape").value){"source"===n?(i=o.srcX,r=o.srcY):"target"===n?(i=o.tgtX,r=o.tgtY):(i=o.midX,r=o.midY);var c=a.arrowBounds=a.arrowBounds||{},u=c[n]=c[n]||{};u.x1=i-s,u.y1=r-s,u.x2=i+s,u.y2=r+s,u.w=u.x2-u.x1,u.h=u.y2-u.y1,Fe(u,1),ro(t,u.x1,u.y1,u.x2,u.y2)}}},co=function(t,e,n){if(!e.cy().headless()){var i;i=n?n+"-":"";var r=e._private,a=r.rstyle;if(e.pstyle(i+"label").strValue){var o,s,c,u,l=e.pstyle("text-halign"),h=e.pstyle("text-valign"),f=oo(a,"labelWidth",n),d=oo(a,"labelHeight",n),g=oo(a,"labelX",n),p=oo(a,"labelY",n),b=e.pstyle(i+"text-margin-x").pfValue,w=e.pstyle(i+"text-margin-y").pfValue,y=e.isEdge(),m=e.pstyle(i+"text-rotation"),v=e.pstyle("text-outline-width").pfValue,x=e.pstyle("text-border-width").pfValue/2,k=e.pstyle("text-background-padding").pfValue,_=d,E=f,T=E/2,C=_/2;if(y)o=g-T,s=g+T,c=p-C,u=p+C;else{switch(l.value){case"left":o=g-E,s=g;break;case"center":o=g-T,s=g+T;break;case"right":o=g,s=g+E}switch(h.value){case"top":c=p-_,u=p;break;case"center":c=p-C,u=p+C;break;case"bottom":c=p,u=p+_}}o+=b-Math.max(v,x)-k-2,s+=b+Math.max(v,x)+k+2,c+=w-Math.max(v,x)-k-2,u+=w+Math.max(v,x)+k+2;var S=n||"main",A=r.labelBounds,M=A[S]=A[S]||{};M.x1=o,M.y1=c,M.x2=s,M.y2=u,M.w=s-o,M.h=u-c;var I=y&&"autorotate"===m.strValue,L=null!=m.pfValue&&0!==m.pfValue;if(I||L){var O=I?oo(r.rstyle,"labelAngle",n):m.pfValue,D=Math.cos(O),N=Math.sin(O),P=(o+s)/2,B=(c+u)/2;if(!y){switch(l.value){case"left":P=s;break;case"right":P=o}switch(h.value){case"top":B=u;break;case"bottom":B=c}}var F=function(t,e){return{x:(t-=P)*D-(e-=B)*N+P,y:t*N+e*D+B}},j=F(o,c),R=F(o,u),$=F(s,c),z=F(s,u);o=Math.min(j.x,R.x,$.x,z.x),s=Math.max(j.x,R.x,$.x,z.x),c=Math.min(j.y,R.y,$.y,z.y),u=Math.max(j.y,R.y,$.y,z.y)}var q=S+"Rot",H=A[q]=A[q]||{};H.x1=o,H.y1=c,H.x2=s,H.y2=u,H.w=s-o,H.h=u-c,ro(t,o,c,s,u),ro(r.labelBounds.all,o,c,s,u)}return t}},uo=function(t){var e=0,n=function(t){return(t?1:0)<(i=S[1].x)){var A=n;n=i,i=A}if(r>(a=S[1].y)){var M=r;r=a,a=M}ro(h,n-k,r-k,i+k,a+k)}}else if("bezier"===C||"unbundled-bezier"===C||"segments"===C||"taxi"===C){var I;switch(C){case"bezier":case"unbundled-bezier":I=p.bezierPts;break;case"segments":case"taxi":I=p.linePts}if(null!=I)for(var L=0;L(i=N.x)){var P=n;n=i,i=P}if((r=D.y)>(a=N.y)){var B=r;r=a,a=B}ro(h,n-=k,r-=k,i+=k,a+=k)}if(u&&e.includeEdges&&g&&(so(h,t,"mid-source"),so(h,t,"mid-target"),so(h,t,"source"),so(h,t,"target")),u&&"yes"===t.pstyle("ghost").value){var F=t.pstyle("ghost-offset-x").pfValue,j=t.pstyle("ghost-offset-y").pfValue;ro(h,h.x1+F,h.y1+j,h.x2+F,h.y2+j)}var R=f.bodyBounds=f.bodyBounds||{};Re(R,h),je(R,b),Fe(R,1),u&&(n=h.x1,i=h.x2,r=h.y1,a=h.y2,ro(h,n-x,r-x,i+x,a+x));var $=f.overlayBounds=f.overlayBounds||{};Re($,h),je($,b),Fe($,1);var z=f.labelBounds=f.labelBounds||{};null!=z.all?function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0}(z.all):z.all=Ne(),u&&e.includeLabels&&(e.includeMainLabels&&co(h,t,null),g&&(e.includeSourceLabels&&co(h,t,"source"),e.includeTargetLabels&&co(h,t,"target")))}return h.x1=io(h.x1),h.y1=io(h.y1),h.x2=io(h.x2),h.y2=io(h.y2),h.w=io(h.x2-h.x1),h.h=io(h.y2-h.y1),h.w>0&&h.h>0&&y&&(je(h,b),Fe(h,1)),h}(t,fo),i.bbCache=n,i.bbCachePosKey=o):n=i.bbCache,!a){var l=t.isNode();n=Ne(),(e.includeNodes&&l||e.includeEdges&&!l)&&(e.includeOverlays?ao(n,i.overlayBounds):ao(n,i.bodyBounds)),e.includeLabels&&(e.includeMainLabels&&(!r||e.includeSourceLabels&&e.includeTargetLabels)?ao(n,i.labelBounds.all):(e.includeMainLabels&&ao(n,i.labelBounds.mainRot),e.includeSourceLabels&&ao(n,i.labelBounds.sourceRot),e.includeTargetLabels&&ao(n,i.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},fo={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},go=uo(fo),po=Vt(fo);eo.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=Ne();var n=po(t=t||fo),i=this;if(i.cy().styleEnabled())for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:Io,e=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},Oo.removeAllListeners=function(){return this.removeListener("*")},Oo.emit=Oo.trigger=function(t,e,n){var i=this.listeners,r=i.length;return this.emitting++,w(e)||(e=[e]),Po(this,(function(t,a){null!=n&&(i=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],r=i.length);for(var o=function(n){var r=i[n];if(r.type===a.type&&(!r.namespace||r.namespace===a.namespace||".*"===r.namespace)&&t.eventMatches(t.context,r,a)){var o=[a];null!=e&&function(t,e){for(var n=0;n1&&!i){var r=this.length-1,a=this[r],o=a._private.data.id;this[r]=void 0,this[t]=a,n.set(o,{ele:a,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var e=this._private,n=t._private.data.id,i=e.map.get(n);if(!i)return this;var r=i.index;return this.unmergeAt(r),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&p(t)){var n=t;t=e.mutableElements().filter(n)}for(var i=0;i=0;e--)t(this[e])&&this.unmergeAt(e);return this},map:function(t,e){for(var n=[],i=this,r=0;ri&&(i=s,n=o)}return{value:i,ele:n}},min:function(t,e){for(var n,i=1/0,r=this,a=0;a=0&&r"u"?"undefined":t(Symbol))!=Ho&&t(Symbol.iterator)!=Ho&&(qo[Symbol.iterator]=function(){var t=this,e={value:void 0,done:!1},n=0,i=this.length;return a({next:function(){return n1&&void 0!==arguments[1])||arguments[1],n=this[0],i=n.cy();if(i.styleEnabled()&&n)return this.cleanStyle(),n._private.style[t]??(e?i.style().getDefaultProperty(t):null)},numericStyle:function(t){var e=this[0];if(e.cy().styleEnabled()&&e){var n=e.pstyle(t);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(t){var e=this[0];if(e.cy().styleEnabled()&&e)return e.pstyle(t).units},renderedStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=this[0];return n?e.style().getRenderedStyle(n,t):void 0},style:function(t,e){var n=this.cy();if(!n.styleEnabled())return this;var i=n.style();if(y(t)){var r=t;i.applyBypass(this,r,false),this.emitAndNotify("style")}else if(p(t)){if(void 0===e){var a=this[0];return a?i.getStylePropertyValue(a,t):void 0}i.applyBypass(this,t,e,false),this.emitAndNotify("style")}else if(void 0===t){var o=this[0];return o?i.getRawStyle(o):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=e.style(),i=this;if(void 0===t)for(var r=0;r0&&e.push(l[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)}),"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}}),os.neighbourhood=os.neighborhood,os.closedNeighbourhood=os.closedNeighborhood,os.openNeighbourhood=os.openNeighborhood,R(os,{source:$a((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:$a((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:ls({attr:"source"}),targets:ls({attr:"target"})}),R(os,{edgesWith:$a(hs(),"edgesWith"),edgesTo:$a(hs({thisIsSrc:!0}),"edgesTo")}),R(os,{connectedEdges:$a((function(t){for(var e=[],n=0;n0);return a},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),os.componentsOf=os.components;var ds=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t){var r=new ne,a=!1;if(e){if(e.length>0&&y(e[0])&&!k(e[0])){a=!0;for(var o=[],s=new re,c=0,u=e.length;c0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,r=i.cy(),a=r._private,o=[],s=[],c=0,u=i.length;c0){for(var F=t.length===i.length?i:new ds(r,t),j=0;j0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,i=[],r={},a=n._private.cy;function o(t){var n=r[t.id()];e&&t.removed()||n||(r[t.id()]=!0,t.isNode()?(i.push(t),function(t){for(var e=t._private.edges,n=0;n0&&(t?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var _=0;_=.001?function(e,i){for(var a=0;a0?r=c:i=c}while(Math.abs(s)>a&&++uh&&Math.abs(s.v)>h;);return a?function(t){return u[t*(u.length-1)|0]}:l}}(),ys=function(t,e,n,i){var r=bs(t,e,n,i);return function(t,e,n){return t+(e-t)*r(n)}},ms={linear:function(t,e,n){return t+(e-t)*n},ease:ys(.25,.1,.25,1),"ease-in":ys(.42,0,1,1),"ease-out":ys(0,0,.58,1),"ease-in-out":ys(.42,0,.58,1),"ease-in-sine":ys(.47,0,.745,.715),"ease-out-sine":ys(.39,.575,.565,1),"ease-in-out-sine":ys(.445,.05,.55,.95),"ease-in-quad":ys(.55,.085,.68,.53),"ease-out-quad":ys(.25,.46,.45,.94),"ease-in-out-quad":ys(.455,.03,.515,.955),"ease-in-cubic":ys(.55,.055,.675,.19),"ease-out-cubic":ys(.215,.61,.355,1),"ease-in-out-cubic":ys(.645,.045,.355,1),"ease-in-quart":ys(.895,.03,.685,.22),"ease-out-quart":ys(.165,.84,.44,1),"ease-in-out-quart":ys(.77,0,.175,1),"ease-in-quint":ys(.755,.05,.855,.06),"ease-out-quint":ys(.23,1,.32,1),"ease-in-out-quint":ys(.86,0,.07,1),"ease-in-expo":ys(.95,.05,.795,.035),"ease-out-expo":ys(.19,1,.22,1),"ease-in-out-expo":ys(1,0,0,1),"ease-in-circ":ys(.6,.04,.98,.335),"ease-out-circ":ys(.075,.82,.165,1),"ease-in-out-circ":ys(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return ms.linear;var i=ws(t,e,n);return function(t,e,n){return t+(e-t)*i(n)}},"cubic-bezier":ys};function vs(t,e,n,i,r){if(1===i||e===n)return n;var a=r(e,n,i);return null==t||((t.roundValue||t.color)&&(a=Math.round(a)),void 0!==t.min&&(a=Math.max(a,t.min)),void 0!==t.max&&(a=Math.min(a,t.max))),a}function xs(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function ks(t,e,n,i,r){var a=null!=r?r.type:null;n<0?n=0:n>1&&(n=1);var o=xs(t,r),s=xs(e,r);if(m(o)&&m(s))return vs(a,o,s,n,i);if(w(o)&&w(s)){for(var c=[],u=0;u0?("spring"===h&&f.push(o.duration),o.easingImpl=ms[h].apply(null,f)):o.easingImpl=ms[h]}var d,g=o.easingImpl;if(d=0===o.duration?1:(n-c)/o.duration,o.applying&&(d=o.progress),d<0?d=0:d>1&&(d=1),null==o.delay){var b=o.startPosition,w=o.position;if(w&&r&&!t.locked()){var y={};Es(b.x,w.x)&&(y.x=ks(b.x,w.x,d,g)),Es(b.y,w.y)&&(y.y=ks(b.y,w.y,d,g)),t.position(y)}var m=o.startPan,v=o.pan,x=a.pan,k=null!=v&&i;k&&(Es(m.x,v.x)&&(x.x=ks(m.x,v.x,d,g)),Es(m.y,v.y)&&(x.y=ks(m.y,v.y,d,g)),t.emit("pan"));var _=o.startZoom,E=o.zoom,T=null!=E&&i;T&&(Es(_,E)&&(a.zoom=De(a.minZoom,ks(_,E,d,g),a.maxZoom)),t.emit("zoom")),(k||T)&&t.emit("viewport");var C=o.style;if(C&&C.length>0&&r){for(var S=0;S=0;e--)(0,t[e])();t.splice(0,t.length)},l=a.length-1;l>=0;l--){var h=a[l],f=h._private;f.stopped?(a.splice(l,1),f.hooked=!1,f.playing=!1,f.started=!1,u(f.frames)):!f.playing&&!f.applying||(f.playing&&f.applying&&(f.applying=!1),f.started||Ts(0,h,t),_s(e,h,t,n),f.applying&&(f.applying=!1),u(f.frames),null!=f.step&&f.step(t),h.completed()&&(a.splice(l,1),f.hooked=!1,f.playing=!1,f.started=!1,u(f.completes)),s=!0)}return!n&&0===a.length&&0===o.length&&i.push(e),s}for(var a=!1,o=0;o0?e.notify("draw",n):e.notify("draw")),n.unmerge(i),e.emit("step")}var Ss={animate:Qr.animate(),animation:Qr.animation(),animated:Qr.animated(),clearQueue:Qr.clearQueue(),delay:Qr.delay(),delayAnimation:Qr.delayAnimation(),stop:Qr.stop(),addToAnimationPool:function(t){this.styleEnabled()&&this._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,t.styleEnabled()){var e=t.renderer();e&&e.beforeRender?e.beforeRender((function(e,n){Cs(n,t)}),e.beforeRenderPriorities.animations):function e(){t._private.animationsRunning&&_t((function(n){Cs(n,t),e()}))}()}}},As={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var i=e.qualifier;return null==i||t!==n.target&&k(n.target)&&i.matches(n.target)},addEventFields:function(t,e){e.cy=t,e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t}},Ms=function(t){return p(t)?new Pa(t):t},Is={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new Lo(As,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,Ms(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,Ms(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,Ms(e),n),this},once:function(t,e,n){return this.emitter().one(t,Ms(e),n),this},emit:function(t,e){return this.emitter().emit(t,e),this},emitAndNotify:function(t,e){return this.emit(t),this.notify(t,e),this}};Qr.eventAliasesOn(Is);var Ls={png:function(t){return t=t||{},this._private.renderer.png(t)},jpg:function(t){var e=this._private.renderer;return(t=t||{}).bg=t.bg||"#fff",e.jpg(t)}};Ls.jpeg=Ls.jpg;var Os={layout:function(t){var e=this;if(null!=t)if(null!=t.name){var n,i=t.name,r=e.extension("layout",i);if(null!=r)return n=p(t.eles)?e.$(t.eles):null!=t.eles?t.eles:e.$(),new r(R({},t,{cy:e,eles:n}));Ht("No such layout `"+i+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Ht("A `name` must be specified to make a layout");else Ht("Layout options must be specified to make a layout")}};Os.createLayout=Os.makeLayout=Os.layout;var Ds={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&i.merge(e)}else if(n.notificationsEnabled){var r=this.renderer();this.destroyed()||!r||r.notify(t,e)}},notifications:function(t){var e=this._private;return void 0===t?e.notificationsEnabled:(e.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return null==t.batchCount&&(t.batchCount=0),0===t.batchCount&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(0===t.batchCount)return this;if(t.batchCount--,0===t.batchCount){t.batchStyleEles.updateStyle();var e=this.renderer();Object.keys(t.batchNotifications).forEach((function(n){var i=t.batchNotifications[n];i.empty()?e.notify(n):e.notify(n,i)}))}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var e=this;return this.batch((function(){for(var n=Object.keys(t),i=0;i0;)e.removeChild(e.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach((function(t){var e=t._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]}))},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};Ps.invalidateDimensions=Ps.resize;var Bs={collection:function(t,e){return p(t)?this.$(t):x(t)?t.collection():w(t)?(e||(e={}),new ds(this,t,e.unique,e.removed)):new ds(this)},nodes:function(t){var e=this.$((function(t){return t.isNode()}));return t?e.filter(t):e},edges:function(t){var e=this.$((function(t){return t.isEdge()}));return t?e.filter(t):e},$:function(t){var e=this._private.elements;return t?e.filter(t):e.spawnSelf()},mutableElements:function(){return this._private.elements}};Bs.elements=Bs.filter=Bs.$;var Fs={},js="t";Fs.apply=function(t){for(var e=this,n=e._private.cy.collection(),i=0;i0;if(f||h&&d){var g=void 0;f&&d||f?g=u.properties:d&&(g=u.mappedProperties);for(var p=0;p1&&(v=1),s.color){var k=r.valueMin[0],_=r.valueMax[0],E=r.valueMin[1],T=r.valueMax[1],C=r.valueMin[2],S=r.valueMax[2],A=null==r.valueMin[3]?1:r.valueMin[3],M=null==r.valueMax[3]?1:r.valueMax[3],I=[Math.round(k+(_-k)*v),Math.round(E+(T-E)*v),Math.round(C+(S-C)*v),Math.round(A+(M-A)*v)];n={bypass:r.bypass,name:r.name,value:I,strValue:"rgb("+I[0]+", "+I[1]+", "+I[2]+")"}}else{if(!s.number)return!1;var L=r.valueMin+(r.valueMax-r.valueMin)*v;n=this.parse(r.name,L,r.bypass,f)}if(!n)return p(),!1;n.mapping=r,r=n;break;case o.data:for(var O=r.field.split("."),D=h.data,N=0;N0&&a>0){for(var s={},c=!1,u=0;u0?t.delayAnimation(o).play().promise().then(e):e()})).then((function(){return t.animation({style:s,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1}))}else i.transitioning&&(this.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1)},Fs.checkTrigger=function(t,e,n,i,r,a){var o=this.properties[e],s=r(o);null!=s&&s(n,i)&&a(o)},Fs.checkZOrderTrigger=function(t,e,n,i){var r=this;this.checkTrigger(t,e,n,i,(function(t){return t.triggersZOrder}),(function(){r._private.cy.notify("zorder",t)}))},Fs.checkBoundsTrigger=function(t,e,n,i){this.checkTrigger(t,e,n,i,(function(t){return t.triggersBounds}),(function(r){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),r.triggersBoundsOfParallelBeziers&&("curve-style"===e&&("bezier"===n||"bezier"===i)||"display"===e&&("none"===n||"none"===i))&&t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()}))}))},Fs.checkTriggers=function(t,e,n,i){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,i),this.checkBoundsTrigger(t,e,n,i)};var Rs={applyBypass:function(t,e,n,i){var r=[];if("*"===e||"**"===e){if(void 0!==n)for(var a=0;ae.length?a.substr(e.length):""}function s(){n=n.length>i.length?n.substr(i.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var c=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!c){Gt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}e=c[0];var u=c[1];if("core"!==u&&new Pa(u).invalid)Gt("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),o();else{var l=c[2],h=!1;n=l;for(var f=[];!n.match(/^\s*$/);){var d=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!d){Gt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+l),h=!0;break}i=d[0];var g=d[1],p=d[2];this.properties[g]?r.parse(g,p)?(f.push({name:g,val:p}),s()):(Gt("Skipping property: Invalid property definition in: "+i),s()):(Gt("Skipping property: Invalid property name in: "+i),s())}if(h){o();break}r.selector(u);for(var b=0;b=7&&"d"===e[0]&&(u=new RegExp(s.data.regex).exec(e))){if(n)return!1;var f=s.data;return{name:t,value:u,strValue:""+e,mapped:f,field:u[1],bypass:n}}if(e.length>=10&&"m"===e[0]&&(l=new RegExp(s.mapData.regex).exec(e))){if(n||h.multiple)return!1;var d=s.mapData;if(!h.color&&!h.number)return!1;var g=this.parse(t,l[4]);if(!g||g.mapped)return!1;var y=this.parse(t,l[5]);if(!y||y.mapped)return!1;if(g.pfValue===y.pfValue||g.strValue===y.strValue)return Gt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(h.color){var v=g.value,x=y.value;if(!(v[0]!==x[0]||v[1]!==x[1]||v[2]!==x[2]||v[3]!==x[3]&&(null!=v[3]&&1!==v[3]||null!=x[3]&&1!==x[3])))return!1}return{name:t,value:l,strValue:""+e,mapped:d,field:l[1],fieldMin:parseFloat(l[2]),fieldMax:parseFloat(l[3]),valueMin:g.value,valueMax:y.value,bypass:n}}}if(h.multiple&&"multiple"!==i){var k;if(k=c?e.split(/\s+/):w(e)?e:[e],h.evenMultiple&&k.length%2!=0)return null;for(var _=[],E=[],T=[],C="",S=!1,A=0;A0?" ":"")+I.strValue}return h.validate&&!h.validate(_,E)?null:h.singleEnum&&S?1===_.length&&p(_[0])?{name:t,value:_[0],strValue:_[0],bypass:n}:null:{name:t,value:_,pfValue:T,strValue:C,bypass:n,units:E}}var L=function(){for(var i=0;ih.max||h.strictMax&&e===h.max))return null;var F={name:t,value:e,strValue:""+e+(O||""),units:O,bypass:n};return h.unitless||"px"!==O&&"em"!==O?F.pfValue=e:F.pfValue="px"!==O&&O?this.getEmSizeInPixels()*e:e,("ms"===O||"s"===O)&&(F.pfValue="ms"===O?e:1e3*e),("deg"===O||"rad"===O)&&(F.pfValue="rad"===O?e:function(t){return Math.PI*t/180}(e)),"%"===O&&(F.pfValue=e/100),F}if(h.propList){var j=[],R=""+e;if("none"!==R){for(var z=R.split(/\s*,\s*|\s+/),q=0;q0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:a=(a=(a=Math.min((o-2*e)/n.w,(s-2*e)/n.h))>this._private.maxZoom?this._private.maxZoom:a)=n.minZoom&&(n.maxZoom=e),this},minZoom:function(t){return void 0===t?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return void 0===t?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var e,n,i=this._private,r=i.pan,a=i.zoom,o=!1;if(i.zoomingEnabled||(o=!0),m(t)?n=t:y(t)&&(n=t.level,null!=t.position?e=ke(t.position,a,r):null!=t.renderedPosition&&(e=t.renderedPosition),null!=e&&!i.panningEnabled&&(o=!0)),n=(n=n>i.maxZoom?i.maxZoom:n)e.maxZoom||!e.zoomingEnabled?a=!0:(e.zoom=s,r.push("zoom"))}if(i&&(!a||!t.cancelOnFailedZoom)&&e.panningEnabled){var c=t.pan;m(c.x)&&(e.pan.x=c.x,o=!1),m(c.y)&&(e.pan.y=c.y,o=!1),o||r.push("pan")}return r.length>0&&(r.push("viewport"),this.emit(r.join(" ")),this.notify("viewport")),this},center:function(t){var e=this.getCenterPan(t);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,e){if(this._private.panningEnabled){if(p(t)){var n=t;t=this.mutableElements().filter(n)}else x(t)||(t=this.mutableElements());if(0!==t.length){var i=t.boundingBox(),r=this.width(),a=this.height();return{x:(r-(e=void 0===e?this._private.zoom:e)*(i.x1+i.x2))/2,y:(a-e*(i.y1+i.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t,e,n=this._private,i=n.container;return n.sizeCache=n.sizeCache||(i?(t=c.getComputedStyle(i),e=function(e){return parseFloat(t.getPropertyValue(e))},{width:i.clientWidth-e("padding-left")-e("padding-right"),height:i.clientHeight-e("padding-top")-e("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var t=this._private.pan,e=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-t.x)/e,x2:(n.x2-t.x)/e,y1:(n.y1-t.y)/e,y2:(n.y2-t.y)/e};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var t=this.width(),e=this.height();return{x1:0,y1:0,x2:t,y2:e,w:t,h:e}},multiClickDebounceTime:function(t){return t?(this._private.multiClickDebounceTime=t,this):this._private.multiClickDebounceTime}};Xs.centre=Xs.center,Xs.autolockNodes=Xs.autolock,Xs.autoungrabifyNodes=Xs.autoungrabify;var Vs={data:Qr.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Qr.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Qr.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Qr.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Vs.attr=Vs.data,Vs.removeAttr=Vs.removeData;var Qs=function(t){var e=this,n=(t=R({},t)).container;n&&!v(n)&&v(n[0])&&(n=n[0]);var i=n?n._cyreg:null;(i=i||{})&&i.cy&&(i.cy.destroy(),i={});var r=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=e;var a=void 0!==c&&void 0!==n&&!t.headless,o=t;o.layout=R({name:a?"grid":"null"},o.layout),o.renderer=R({name:a?"canvas":"null"},o.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},u=this._private={container:n,ready:!1,options:o,elements:new ds(this),listeners:[],aniEles:new ds(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:m(o.zoom)?o.zoom:1,pan:{x:y(o.pan)&&m(o.pan.x)?o.pan.x:0,y:y(o.pan)&&m(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});u.styleEnabled&&e.setStyle([]);var l=R({},o,o.renderer);e.initRenderer(l);!function(t,e){if(t.some(S))return Ci.all(t).then(e);e(t)}([o.style,o.elements],(function(t){var n=t[0],a=t[1];u.styleEnabled&&e.style().append(n),function(t,n,i){e.notifications(!1);var r=e.mutableElements();r.length>0&&r.remove(),null!=t&&(y(t)||w(t))&&e.add(t),e.one("layoutready",(function(t){e.notifications(!0),e.emit(t),e.one("load",n),e.emitAndNotify("load")})).one("layoutstop",(function(){e.one("done",i),e.emit("done")}));var a=R({},e._private.options.layout);a.eles=e.elements(),e.layout(a).run()}(a,(function(){e.startAnimationLoop(),u.ready=!0,b(o.ready)&&e.on("ready",o.ready);for(var t=0;t0,u=Ne(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()});if(x(n.roots))t=n.roots;else if(w(n.roots)){for(var l=[],h=0;h0;){var O=M.shift(),D=A(O,I);if(D)O.outgoers().filter((function(t){return t.isNode()&&r.has(t)})).forEach(L);else if(null===D){Gt("Detected double maximal shift for node `"+O.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}S();var N=0;if(n.avoidOverlap)for(var P=0;P0&&m[0].length<=3?c/2:0),h=2*Math.PI/m[i].length*r;return 0===i&&1===m[0].length&&(l=1),{x:W+l*Math.cos(h),y:X+l*Math.sin(h)}}return{x:W+(r+1-(a+1)/2)*o,y:(i+1)*s}})),this};var ic={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function rc(t){this.options=R({},ic,t)}rc.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=i.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o,s=Ne(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),c={x:s.x1+s.w/2,y:s.y1+s.h/2},u=(void 0===e.sweep?2*Math.PI-2*Math.PI/a.length:e.sweep)/Math.max(1,a.length-1),l=0,h=0;h1&&e.avoidOverlap){l*=1.75;var p=Math.cos(u)-Math.cos(0),b=Math.sin(u)-Math.sin(0),w=Math.sqrt(l*l/(p*p+b*b));o=Math.max(w,o)}return i.nodes().layoutPositions(this,e,(function(t,n){var i=e.startAngle+n*u*(r?1:-1),a=o*Math.cos(i),s=o*Math.sin(i);return{x:c.x+a,y:c.y+s}})),this};var ac={fit:!0,padding:30,startAngle:1.5*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:function(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function oc(t){this.options=R({},ac,t)}oc.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,i=t.cy,r=e.eles,a=r.nodes().not(":parent"),o=Ne(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=[],u=0,l=0;l0&&Math.abs(w[0].value-m.value)>=p&&(w=[],b.push(w)),w.push(m)}var v=u+e.minNodeSpacing;if(!e.avoidOverlap){var x=b.length>0&&b[0].length>1,k=(Math.min(o.w,o.h)/2-v)/(b.length+x?1:0);v=Math.min(v,k)}for(var _=0,E=0;E1&&e.avoidOverlap){var A=Math.cos(S)-Math.cos(0),M=Math.sin(S)-Math.sin(0),I=Math.sqrt(v*v/(A*A+M*M));_=Math.max(I,_)}T.r=_,_+=v}if(e.equidistant){for(var L=0,O=0,D=0;D=t.numIter||(bc(i,t),i.temperature=i.temperature*t.coolingFactor,i.temperature=t.animationThreshold&&a(),_t(e)):(Ac(i,t),s())}();else{for(;u;)u=o(c),c++;Ac(i,t),s()}return this},uc.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},uc.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var lc=function(t,e,n){for(var i=n.eles.edges(),r=n.eles.nodes(),a={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:r.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:t.width(),clientHeight:t.width(),boundingBox:Ne(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()})},o=n.eles.components(),s={},c=0;c0)for(a.graphSet.push(x),c=0;ci.count?0:i.graph},fc=function t(e,n,i,r){var a=r.graphSet[i];if(-10)var s=(u=i.nodeOverlap*o)*r/(p=Math.sqrt(r*r+a*a)),c=u*a/p;else{var u,l=xc(t,r,a),h=xc(e,-1*r,-1*a),f=h.x-l.x,d=h.y-l.y,g=f*f+d*d,p=Math.sqrt(g);s=(u=(t.nodeRepulsion+e.nodeRepulsion)/g)*f/p,c=u*d/p}t.isLocked||(t.offsetX-=s,t.offsetY-=c),e.isLocked||(e.offsetX+=s,e.offsetY+=c)}},vc=function(t,e,n,i){if(n>0)var r=t.maxX-e.minX;else r=e.maxX-t.minX;if(i>0)var a=t.maxY-e.minY;else a=e.maxY-t.minY;return r>=0&&a>=0?Math.sqrt(r*r+a*a):0},xc=function(t,e,n){var i=t.positionX,r=t.positionY,a=t.height||1,o=t.width||1,s=n/e,c=a/o,u={};return 0===e&&0n?(u.x=i,u.y=r+a/2,u):0e&&-1*c<=s&&s<=c?(u.x=i-o/2,u.y=r-o*n/2/e,u):0=c)?(u.x=i+a*e/2/n,u.y=r+a/2,u):(0>n&&(s<=-1*c||s>=c)&&(u.x=i-a*e/2/n,u.y=r-a/2),u)},kc=function(t,e){for(var n=0;n1){var g=e.gravity*h/d,p=e.gravity*f/d;l.offsetX+=g,l.offsetY+=p}}}}},Ec=function(t,e){var n=[],i=0,r=-1;for(n.push.apply(n,t.graphSet[0]),r+=t.graphSet[0].length;i<=r;){var a=n[i++],o=t.idToIndex[a],s=t.layoutNodes[o],c=s.children;if(0n)var r={x:n*t/i,y:n*e/i};else r={x:t,y:e};return r},Sc=function t(e,n){var i=e.parentId;if(null!=i){var r=n.layoutNodes[n.idToIndex[i]],a=!1;if((null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,a=!0),(null==r.minX||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,a=!0),(null==r.minY||e.minY-r.padTopg&&(h+=d+e.componentSpacing,l=0,f=0,d=0)}}},Mc={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:function(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Ic(t){this.options=R({},Mc,t)}Ic.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=i.nodes().not(":parent");e.sort&&(r=r.sort(e.sort));var a=Ne(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)i.nodes().layoutPositions(this,e,(function(t){return{x:a.x1,y:a.y1}}));else{var o=r.size(),s=Math.sqrt(o*a.h/a.w),c=Math.round(s),u=Math.round(a.w/a.h*s),l=function(t){if(null==t)return Math.min(c,u);Math.min(c,u)==c?c=t:u=t},h=function(t){if(null==t)return Math.max(c,u);Math.max(c,u)==c?c=t:u=t},f=e.rows,d=null!=e.cols?e.cols:e.columns;if(null!=f&&null!=d)c=f,u=d;else if(null!=f&&null==d)c=f,u=Math.ceil(o/c);else if(null==f&&null!=d)u=d,c=Math.ceil(o/u);else if(u*c>o){var g=l(),p=h();(g-1)*p>=o?l(g-1):(p-1)*g>=o&&h(p-1)}else for(;u*c=o?h(w+1):l(b+1)}var y=a.w/u,m=a.h/c;if(e.condense&&(y=0,m=0),e.avoidOverlap)for(var v=0;v=u&&(L=0,I++)},D={},N=0;N(i=We(t,e,v[x],v[x+1],v[x+2],v[x+3])))return b(n,i),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(v=a.allpts,x=0;x+5(i=Ke(t,e,v[x],v[x+1],v[x+2],v[x+3],v[x+4],v[x+5])))return b(n,i),!0;y=y||r.source,m=m||r.target;var k=o.getArrowWidth(c,l),_=[{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}];for(x=0;x<_.length;x++){var E=_[x],T=s.arrowShapes[n.pstyle(E.name+"-arrow-shape").value],C=n.pstyle("width").pfValue;if(T.roughCollide(t,e,k,E.angle,{x:E.x,y:E.y},C,f)&&T.collide(t,e,k,E.angle,{x:E.x,y:E.y},C,f))return b(n),!0}h&&u.length>0&&(w(y),w(m))}function m(t,e,n){return Jt(t,e,n)}function v(n,i){var r,a=n._private,o=g;r=i?i+"-":"",n.boundingBox();var s=a.labelBounds[i||"main"],c=n.pstyle(r+"label").value;if("yes"===n.pstyle("text-events").strValue&&c){var u=m(a.rscratch,"labelX",i),l=m(a.rscratch,"labelY",i),h=m(a.rscratch,"labelAngle",i),f=n.pstyle(r+"text-margin-x").pfValue,d=n.pstyle(r+"text-margin-y").pfValue,p=s.x1-o-f,w=s.x2+o-f,y=s.y1-o-d,v=s.y2+o-d;if(h){var x=Math.cos(h),k=Math.sin(h),_=function(t,e){return{x:(t-=u)*x-(e-=l)*k+u,y:t*k+e*x+l}},E=_(p,y),T=_(p,v),C=_(w,y),S=_(w,v),A=[E.x+f,E.y+d,C.x+f,C.y+d,S.x+f,S.y+d,T.x+f,T.y+d];if(Xe(t,e,A))return b(n),!0}else if(ze(s,t,e))return b(n),!0}}n&&(c=c.interactive);for(var x=c.length-1;x>=0;x--){var k=c[x];k.isNode()?w(k)||v(k):y(k)||v(k)||v(k,"source")||v(k,"target")}return u},getAllInBox:function(t,e,n,i){for(var r=this.getCachedZSortedEles().interactive,a=[],o=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,i),u=Math.max(e,i),l=Ne({x1:t=o,y1:e=c,x2:n=s,y2:i=u}),h=0;h0?Math.max(t-e,0):Math.min(t+e,0)},S=C(E,k),A=C(T,_),M=!1;"auto"===b?p=Math.abs(S)>Math.abs(A)?r:i:b===c||b===s?(p=i,M=!0):(b===a||b===o)&&(p=r,M=!0);var I,L=p===i,O=L?A:S,D=L?T:E,N=Se(D),P=!1;(!M||!y&&!v)&&(b===s&&D<0||b===c&&D>0||b===a&&D>0||b===o&&D<0)&&(O=(N*=-1)*Math.abs(O),P=!0);var B=function(t){return Math.abs(t)=Math.abs(O)},F=B(I=y?(m<0?1+m:m)*O:(m<0?O:0)+m*N),j=B(Math.abs(O)-Math.abs(I));if(!F&&!j||P)if(L){var R=u.y1+I+(g?h/2*N:0),$=u.x1,z=u.x2;n.segpts=[$,R,z,R]}else{var q=u.x1+I+(g?l/2*N:0),H=u.y1,U=u.y2;n.segpts=[q,H,q,U]}else if(L){var G=Math.abs(D)<=h/2,Y=Math.abs(E)<=f/2;if(G){var K=(u.x1+u.x2)/2,W=u.y1,X=u.y2;n.segpts=[K,W,K,X]}else if(Y){var V=(u.y1+u.y2)/2,Q=u.x1,Z=u.x2;n.segpts=[Q,V,Z,V]}else n.segpts=[u.x1,u.y2]}else{var J=Math.abs(D)<=l/2,tt=Math.abs(T)<=d/2;if(J){var et=(u.y1+u.y2)/2,nt=u.x1,it=u.x2;n.segpts=[nt,et,it,et]}else if(tt){var rt=(u.x1+u.x2)/2,at=u.y1,ot=u.y2;n.segpts=[rt,at,rt,ot]}else n.segpts=[u.x2,u.y1]}},Uc.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var i=e.srcPos,r=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,c=e.tgtH,u=e.srcShape,l=e.tgtShape,h=!m(n.startX)||!m(n.startY),f=!m(n.arrowStartX)||!m(n.arrowStartY),d=!m(n.endX)||!m(n.endY),g=!m(n.arrowEndX)||!m(n.arrowEndY),p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,b=Ae({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),w=bf.poolIndex()){var d=h;h=f,f=d}var g=s.srcPos=h.position(),p=s.tgtPos=f.position(),b=s.srcW=h.outerWidth(),w=s.srcH=h.outerHeight(),y=s.tgtW=f.outerWidth(),v=s.tgtH=f.outerHeight(),x=s.srcShape=n.nodeShapes[e.getNodeShape(h)],k=s.tgtShape=n.nodeShapes[e.getNodeShape(f)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_0){var q=u,H=Me(q,Ee(e)),U=Me(q,Ee(z)),G=H;U2&&Me(q,{x:z[2],y:z[3]})0){var rt=l,at=Me(rt,Ee(e)),ot=Me(rt,Ee(it)),st=at;ot2&&Me(rt,{x:it[2],y:it[3]})=u||y){l={cp:p,segment:w};break}}if(l)break}var m=l.cp,v=l.segment,x=(u-f)/v.length,k=v.t1-v.t0,_=s?v.t0+k*x:v.t1-k*x;_=De(0,_,1),e=Oe(m.p0,m.p1,m.p2,_),r=function(t,e,n,i){var r=De(0,i-.001,1),a=De(0,i+.001,1),o=Oe(t,e,n,r),s=Oe(t,e,n,a);return Qc(o,s)}(m.p0,m.p1,m.p2,_);break;case"straight":case"segments":case"haystack":for(var E,T,C,S,A=0,M=i.allpts.length,I=0;I+3=u));I+=2);var L=(u-T)/E;L=De(0,L,1),e=function(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=Ae(t,e),s=r/o,c=a/o;return n=n??0,i=i??n*o,{x:t.x+s*i,y:t.y+c*i}}(C,S,L),r=Qc(C,S)}o("labelX",n,e.x),o("labelY",n,e.y),o("labelAutoAngle",n,r)}};u("source"),u("target"),this.applyLabelDimensions(t)}},Xc.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},Xc.applyPrefixedLabelDimensions=function(t,e){var n=t._private,i=this.getLabelText(t,e),r=this.calculateLabelDimensions(t,i),a=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=Jt(n.rscratch,"labelWrapCachedLines",e)||[],c="wrap"!==o?1:Math.max(s.length,1),u=r.height/c,l=u*a,h=r.width,f=r.height+(c-1)*(a-1)*u;te(n.rstyle,"labelWidth",e,h),te(n.rscratch,"labelWidth",e,h),te(n.rstyle,"labelHeight",e,f),te(n.rscratch,"labelHeight",e,f),te(n.rscratch,"labelLineHeight",e,l)},Xc.getLabelText=function(t,e){var n=t._private,i=e?e+"-":"",r=t.pstyle(i+"label").strValue,a=t.pstyle("text-transform").value,o=function(t,i){return i?(te(n.rscratch,t,e,i),i):Jt(n.rscratch,t,e)};if(!r)return"";"none"==a||("uppercase"==a?r=r.toUpperCase():"lowercase"==a&&(r=r.toLowerCase()));var s=t.pstyle("text-wrap").value;if("wrap"===s){var c=o("labelKey");if(null!=c&&o("labelWrapKey")===c)return o("labelWrapCachedText");for(var u=r.split("\n"),l=t.pstyle("text-max-width").pfValue,h="anywhere"===t.pstyle("text-overflow-wrap").value,f=[],d=/[\s\u200b]+/,g=h?"":" ",p=0;pl){for(var m=b.split(d),v="",x=0;xE);S++)T+=r[S],S===r.length-1&&(C=!0);return C||(T+="…"),T}return r},Xc.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,n=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Xc.calculateLabelDimensions=function(t,e){var n=Ot(e,t._private.labelDimsKey),i=this.labelDimCache||(this.labelDimCache=[]),r=i[n];if(null!=r)return r;var a=t.pstyle("font-style").strValue,o=t.pstyle("font-size").pfValue,s=t.pstyle("font-family").strValue,c=t.pstyle("font-weight").strValue,u=this.labelCalcCanvas,l=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=document.createElement("canvas"),l=this.labelCalcCanvasContext=u.getContext("2d");var h=u.style;h.position="absolute",h.left="-9999px",h.top="-9999px",h.zIndex="-1",h.visibility="hidden",h.pointerEvents="none"}l.font="".concat(a," ").concat(c," ").concat(o,"px ").concat(s);for(var f=0,d=0,g=e.split("\n"),p=0;p1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var i=0;i"u")&&t instanceof HTMLElement}(t);if(null==e.supportsPassiveEvents){var i=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});window.addEventListener("test",null,r)}catch{}e.supportsPassiveEvents=i}var a=function(i,r,a){var o=Array.prototype.slice.call(arguments);return n&&e.supportsPassiveEvents&&(o[2]={capture:a??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:o}),(t.addEventListener||t.on).apply(t,o),this};return{on:a,addEventListener:a,addListener:a,bind:a}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()},load:function(){var t=this,e=function(t){return t.selected()},n=function(e,n,i,r){null==e&&(e=t.cy);for(var a=0;a=t.desktopTapThreshold2}var S=i(e);b&&(t.hoverData.tapholdCancelled=!0);a=!0,n(p,["mousemove","vmousemove","tapdrag"],e,{x:h[0],y:h[1]});var A=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:h[0],y:h[1]}}),g[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(b){var M={originalEvent:e,type:"cxtdrag",position:{x:h[0],y:h[1]}};y?y.emit(M):o.emit(M),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||p!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:h[0],y:h[1]}}),t.hoverData.cxtOver=p,p&&p.emit({originalEvent:e,type:"cxtdragover",position:{x:h[0],y:h[1]}}))}}else if(t.hoverData.dragging){if(a=!0,o.panningEnabled()&&o.userPanningEnabled()){var I;if(t.hoverData.justStartedPan){var L=t.hoverData.mdownPos;I={x:(h[0]-L[0])*s,y:(h[1]-L[1])*s},t.hoverData.justStartedPan=!1}else I={x:v[0]*s,y:v[1]*s};o.panBy(I),o.emit("dragpan"),t.hoverData.dragged=!0}h=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=g[4]||null!=y&&!y.pannable()){if(y&&y.pannable()&&y.active()&&y.unactivate(),(!y||!y.grabbed())&&p!=w&&(w&&n(w,["mouseout","tapdragout"],e,{x:h[0],y:h[1]}),p&&n(p,["mouseover","tapdragover"],e,{x:h[0],y:h[1]}),t.hoverData.last=p),y)if(b){if(o.boxSelectionEnabled()&&S)y&&y.grabbed()&&(l(k),y.emit("freeon"),k.emit("free"),t.dragData.didDrag&&(y.emit("dragfreeon"),k.emit("dragfree"))),A();else if(y&&y.grabbed()&&t.nodeIsDraggable(y)){var O=!t.dragData.didDrag;O&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||c(k,{inDragLayer:!0});var D={x:0,y:0};if(m(v[0])&&m(v[1])&&(D.x+=v[0],D.y+=v[1],O)){var N=t.hoverData.dragDelta;N&&m(N[0])&&m(N[1])&&(D.x+=N[0],D.y+=N[1])}t.hoverData.draggingEles=!0,k.silentShift(D).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else 0===(P=t.hoverData.dragDelta=t.hoverData.dragDelta||[]).length?(P.push(v[0]),P.push(v[1])):(P[0]+=v[0],P[1]+=v[1]);a=!0}else b&&(t.hoverData.dragging||!o.boxSelectionEnabled()||!S&&o.panningEnabled()&&o.userPanningEnabled()?!t.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()&&r(y,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,g[4]=0,t.data.bgActivePosistion=Ee(f),t.redrawHint("select",!0),t.redraw()):A(),y&&y.pannable()&&y.active()&&y.unactivate());if(g[2]=h[0],g[3]=h[1],a)return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}var P}),!1),t.registerBinding(window,"mouseup",(function(r){if(t.hoverData.capture){t.hoverData.capture=!1;var a=t.cy,o=t.projectIntoViewport(r.clientX,r.clientY),s=t.selection,c=t.findNearestElement(o[0],o[1],!0,!1),u=t.dragData.possibleDragElements,h=t.hoverData.down,f=i(r);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,h&&h.unactivate(),3===t.hoverData.which){var d={originalEvent:r,type:"cxttapend",position:{x:o[0],y:o[1]}};if(h?h.emit(d):a.emit(d),!t.hoverData.cxtDragged){var g={originalEvent:r,type:"cxttap",position:{x:o[0],y:o[1]}};h?h.emit(g):a.emit(g)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(n(c,["mouseup","tapend","vmouseup"],r,{x:o[0],y:o[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(n(h,["click","tap","vclick"],r,{x:o[0],y:o[1]}),y=!1,r.timeStamp-v<=a.multiClickDebounceTime()?(w&&clearTimeout(w),y=!0,v=null,n(h,["dblclick","dbltap","vdblclick"],r,{x:o[0],y:o[1]})):(w=setTimeout((function(){y||n(h,["oneclick","onetap","voneclick"],r,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),v=r.timeStamp)),null==h&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!i(r)&&(a.$(e).unselect(["tapunselect"]),u.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=u=a.collection()),c==h&&!t.dragData.didDrag&&!t.hoverData.selecting&&null!=c&&c._private.selectable&&(t.hoverData.dragging||("additive"===a.selectionType()||f?c.selected()?c.unselect(["tapunselect"]):c.select(["tapselect"]):f||(a.$(e).unmerge(c).unselect(["tapunselect"]),c.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var p=a.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),p.length>0&&t.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:r,position:{x:o[0],y:o[1]}});"additive"===a.selectionType()||f||a.$(e).unmerge(p).unselect(),p.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!s[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var b=h&&h.grabbed();l(u),b&&(h.emit("freeon"),u.emit("free"),t.dragData.didDrag&&(h.emit("dragfreeon"),u.emit("dragfree")))}}s[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}}),!1);var k=function(e){if(!t.scrollingPage){var n=t.cy,i=n.zoom(),r=n.pan(),a=t.projectIntoViewport(e.clientX,e.clientY),o=[a[0]*i+r.x,a[1]*i+r.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])return void e.preventDefault();if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;e.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout((function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()}),150),s=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,s*=t.wheelSensitivity,1===e.deltaMode&&(s*=33);var c=n.zoom()*Math.pow(10,s);"gesturechange"===e.type&&(c=t.gestureStartZoom*e.scale),n.zoom({level:c,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===e.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",k,!0),t.registerBinding(window,"scroll",(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout((function(){t.scrollingPage=!1}),250)}),!0),t.registerBinding(t.container,"gesturestart",(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()}),!0),t.registerBinding(t.container,"gesturechange",(function(e){t.hasTouchStarted||k(e)}),!0),t.registerBinding(t.container,"mouseout",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),t.registerBinding(t.container,"mouseover",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var _,E,T,C,S,A,M,I,L,O,D,N,P,B,F,j,R,$,z,q,H=function(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))},U=function(t,e,n,i){return(n-t)*(n-t)+(i-e)*(i-e)};if(t.registerBinding(t.container,"touchstart",B=function(e){if(t.hasTouchStarted=!0,x(e)){f(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var i=t.cy,r=t.touchData.now,a=t.touchData.earlier;if(e.touches[0]){var s=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);r[0]=s[0],r[1]=s[1]}if(e.touches[1]&&(s=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),r[2]=s[0],r[3]=s[1]),e.touches[2]&&(s=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),r[4]=s[0],r[5]=s[1]),e.touches[1]){t.touchData.singleTouchMoved=!0,l(t.dragData.touchDragEles);var h=t.findContainerClientCoords();L=h[0],O=h[1],D=h[2],N=h[3],_=e.touches[0].clientX-L,E=e.touches[0].clientY-O,T=e.touches[1].clientX-L,C=e.touches[1].clientY-O,P=0<=_&&_<=D&&0<=T&&T<=D&&0<=E&&E<=N&&0<=C&&C<=N;var d=i.pan(),g=i.zoom();S=H(_,E,T,C),A=U(_,E,T,C),I=[((M=[(_+T)/2,(E+C)/2])[0]-d.x)/g,(M[1]-d.y)/g];if(A<4e4&&!e.touches[2]){var p=t.findNearestElement(r[0],r[1],!0,!0),b=t.findNearestElement(r[2],r[3],!0,!0);return p&&p.isNode()?(p.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=p):b&&b.isNode()?(b.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=b):i.emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(e.touches[2])i.boxSelectionEnabled()&&e.preventDefault();else if(!e.touches[1]&&e.touches[0]){var w=t.findNearestElements(r[0],r[1],!0,!0),y=w[0];if(null!=y&&(y.activate(),t.touchData.start=y,t.touchData.starts=w,t.nodeIsGrabbable(y))){var m=t.dragData.touchDragEles=i.collection(),v=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),y.selected()?(v=i.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),c(v,{addToList:m})):u(y,{addToList:m}),o(y);var k=function(t){return{originalEvent:e,type:t,position:{x:r[0],y:r[1]}}};y.emit(k("grabon")),v?v.forEach((function(t){t.emit(k("grab"))})):y.emit(k("grab"))}n(y,["touchstart","tapstart","vmousedown"],e,{x:r[0],y:r[1]}),null==y&&(t.data.bgActivePosistion={x:s[0],y:s[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout((function(){!1===t.touchData.singleTouchMoved&&!t.pinching&&!t.touchData.selecting&&n(t.touchData.start,["taphold"],e,{x:r[0],y:r[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var B=t.touchData.startPosition=[],F=0;F=t.touchTapThreshold2}if(i&&t.touchData.cxt){e.preventDefault();var k=e.touches[0].clientX-L,M=e.touches[0].clientY-O,D=e.touches[1].clientX-L,N=e.touches[1].clientY-O,B=U(k,M,D,N);if(B/A>=2.25||B>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var F={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(F),t.touchData.start=null):o.emit(F)}}if(i&&t.touchData.cxt){F={originalEvent:e,type:"cxtdrag",position:{x:s[0],y:s[1]}},t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(F):o.emit(F),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var j=t.findNearestElement(s[0],s[1],!0,!0);(!t.touchData.cxtOver||j!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=j,j&&j.emit({originalEvent:e,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(i&&e.touches[2]&&o.boxSelectionEnabled())e.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:s[0],y:s[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,a[4]=1,a&&0!==a.length&&void 0!==a[0]?(a[2]=(s[0]+s[2]+s[4])/3,a[3]=(s[1]+s[3]+s[5])/3):(a[0]=(s[0]+s[2]+s[4])/3,a[1]=(s[1]+s[3]+s[5])/3,a[2]=(s[0]+s[2]+s[4])/3+1,a[3]=(s[1]+s[3]+s[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(i&&e.touches[1]&&!t.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(e.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),tt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var R=0;R0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(window,"touchcancel",j=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(window,"touchend",R=function(i){var r=t.touchData.start;if(t.touchData.capture){0===i.touches.length&&(t.touchData.capture=!1),i.preventDefault();var a=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var o,s=t.cy,c=s.zoom(),u=t.touchData.now,h=t.touchData.earlier;if(i.touches[0]){var f=t.projectIntoViewport(i.touches[0].clientX,i.touches[0].clientY);u[0]=f[0],u[1]=f[1]}if(i.touches[1]&&(f=t.projectIntoViewport(i.touches[1].clientX,i.touches[1].clientY),u[2]=f[0],u[3]=f[1]),i.touches[2]&&(f=t.projectIntoViewport(i.touches[2].clientX,i.touches[2].clientY),u[4]=f[0],u[5]=f[1]),r&&r.unactivate(),t.touchData.cxt){if(o={originalEvent:i,type:"cxttapend",position:{x:u[0],y:u[1]}},r?r.emit(o):s.emit(o),!t.touchData.cxtDragged){var d={originalEvent:i,type:"cxttap",position:{x:u[0],y:u[1]}};r?r.emit(d):s.emit(d)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!i.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var g=s.collection(t.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,t.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:i,position:{x:u[0],y:u[1]}});g.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),g.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=r&&r.unactivate(),i.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!i.touches[1]&&!i.touches[0]&&!i.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var p=t.dragData.touchDragEles;if(null!=r){var b=r._private.grabbed;l(p),t.redrawHint("drag",!0),t.redrawHint("eles",!0),b&&(r.emit("freeon"),p.emit("free"),t.dragData.didDrag&&(r.emit("dragfreeon"),p.emit("dragfree"))),n(r,["touchend","tapend","vmouseup","tapdragout"],i,{x:u[0],y:u[1]}),r.unactivate(),t.touchData.start=null}else{var w=t.findNearestElement(u[0],u[1],!0,!0);n(w,["touchend","tapend","vmouseup","tapdragout"],i,{x:u[0],y:u[1]})}var y=t.touchData.startPosition[0]-u[0],m=y*y,v=t.touchData.startPosition[1]-u[1],x=(m+v*v)*c*c;t.touchData.singleTouchMoved||(r||s.$(":selected").unselect(["tapunselect"]),n(r,["tap","vclick"],i,{x:u[0],y:u[1]}),$=!1,i.timeStamp-q<=s.multiClickDebounceTime()?(z&&clearTimeout(z),$=!0,q=null,n(r,["dbltap","vdblclick"],i,{x:u[0],y:u[1]})):(z=setTimeout((function(){$||n(r,["onetap","voneclick"],i,{x:u[0],y:u[1]})}),s.multiClickDebounceTime()),q=i.timeStamp)),null!=r&&!t.dragData.didDrag&&r._private.selectable&&x"u"){var G=[],Y=function(t){return{clientX:t.clientX,clientY:t.clientY,force:1,identifier:t.pointerId,pageX:t.pageX,pageY:t.pageY,radiusX:t.width/2,radiusY:t.height/2,screenX:t.screenX,screenY:t.screenY,target:t.target}},K=function(t){G.push(function(t){return{event:t,touch:Y(t)}}(t))},W=function(t){for(var e=0;e2){for(var A=[u[0],u[1]],M=Math.pow(A[0]-t,2)+Math.pow(A[1]-e,2),I=1;I0)return d[0]}return null},f=Object.keys(l),d=0;d0?c:Ue(r,a,t,e,n,i,o)},checkPoint:function(t,e,n,i,r,a,o){var s=un(i,r),c=2*s;if(Ve(t,e,this.points,a,o,i,r-c,[0,-1],n)||Ve(t,e,this.points,a,o,i-c,r,[0,-1],n))return!0;var u=i/2+2*n,l=r/2+2*n;return!!(Xe(t,e,[a-u,o-l,a-u,o,a+u,o,a+u,o-l])||Je(t,e,c,c,a+i/2-s,o+r/2-s,n)||Je(t,e,c,c,a-i/2+s,o+r/2-s,n))}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",on(3,0)),this.generateRoundPolygon("round-triangle",on(3,0)),this.generatePolygon("rectangle",on(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",on(5,0)),this.generateRoundPolygon("round-pentagon",on(5,0)),this.generatePolygon("hexagon",on(6,0)),this.generateRoundPolygon("round-hexagon",on(6,0)),this.generatePolygon("heptagon",on(7,0)),this.generateRoundPolygon("round-heptagon",on(7,0)),this.generatePolygon("octagon",on(8,0)),this.generateRoundPolygon("round-octagon",on(8,0));var i=new Array(20),r=cn(5,0),a=cn(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=t.deqFastCost*p)break}else if(r){if(d>=t.deqCost*c||d>=t.deqAvgCost*s)break}else if(g>=t.deqNoDrawCost*uu)break;var b=t.deq(e,h,l);if(!(b.length>0))break;for(var w=0;w0&&(t.onDeqd(e,u),!r&&t.shouldRedraw(e,u,h,l)&&i())}),r(e))}}},hu=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$t;n(this,t),this.idsByKey=new ne,this.keyForId=new ne,this.cachesByLvl=new ne,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=i}return r(t,[{key:"getIdsFor",value:function(t){null==t&&Ht("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new re,e.set(t,n)),n}},{key:"addIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).add(e)}},{key:"deleteIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).delete(e)}},{key:"getNumberOfIdsForKey",value:function(t){return null==t?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e),i=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(i,e),this.keyForId.set(e,i)}},{key:"deleteKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteIdForKey(n,e),this.keyForId.delete(e)}},{key:"keyHasChangedFor",value:function(t){var e=t.id();return this.keyForId.get(e)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var e=this.cachesByLvl,n=this.lvls,i=e.get(t);return i||(i=new ne,e.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),i=this.getCache(n,e);return null!=i&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,e){var n=this.keyForId.get(t.id());return this.getCache(n,e)}},{key:"hasCache",value:function(t,e){return this.getCachesAt(e).has(t)}},{key:"has",value:function(t,e){var n=this.getKey(t);return this.hasCache(n,e)}},{key:"setCache",value:function(t,e,n){n.key=t,this.getCachesAt(e).set(t,n)}},{key:"set",value:function(t,e,n){var i=this.getKey(t);this.setCache(i,e,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,e){this.getCachesAt(e).delete(t)}},{key:"delete",value:function(t,e){var n=this.getKey(t);this.deleteCache(n,e)}},{key:"invalidateKey",value:function(t){var e=this;this.lvls.forEach((function(n){return e.deleteCache(t,n)}))}},{key:"invalidate",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||0===this.getNumberOfIdsForKey(n)}}]),t}(),fu={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},du=Vt({getKey:null,doesEleInvalidateKey:$t,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Rt,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),gu=function(t,e){var n=this;n.renderer=t,n.onDequeues=[];var i=du(e);R(n,i),n.lookup=new hu(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},pu=gu.prototype;pu.reasons=fu,pu.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},pu.getRetiredTextureQueue=function(t){var e=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return e[t]=e[t]||[]},pu.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new ce((function(t,e){return e.reqs-t.reqs}))},pu.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},pu.getElement=function(t,e,n,i,r){var a=this,o=this.renderer,s=o.cy.zoom(),c=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(null==i&&(i=Math.ceil(Ce(s*n))),i<-4)i=-4;else if(s>=7.99||i>3)return null;var u=Math.pow(2,i),l=e.h*u,h=e.w*u,f=o.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,f))return null;var d,g=c.get(t,i);if(g&&g.invalidated&&(g.invalidated=!1,g.texture.invalidatedWidth-=g.width),g)return g;if(d=l<=25?25:l<=50?50:50*Math.ceil(l/50),l>1024||h>1024)return null;var p=a.getTextureQueue(d),b=p[p.length-2],w=function(){return a.recycleTexture(d,h)||a.addTexture(d,h)};b||(b=p[p.length-1]),b||(b=w()),b.width-b.usedWidthi;S--)T=a.getElement(t,e,n,S,fu.downscale);C()}else{var A;if(!v&&!x&&!k)for(var M=i-1;M>=-4;M--){var I=c.get(t,M);if(I){A=I;break}}if(m(A))return a.queueElement(t,i),A;b.context.translate(b.usedWidth,0),b.context.scale(u,u),this.drawElement(b.context,t,e,f,!1),b.context.scale(1/u,1/u),b.context.translate(-b.usedWidth,0)}return g={x:b.usedWidth,texture:b,level:i,scale:u,width:h,height:l,scaledLabelShown:f},b.usedWidth+=Math.ceil(h+8),b.eleCaches.push(g),c.set(t,i,g),a.checkTextureFullness(b),g},pu.invalidateElements=function(t){for(var e=0;e=.2*t.width&&this.retireTexture(t)},pu.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?Qt(e,t):t.fullnessChecks++},pu.retireTexture=function(t){var e=t.height,n=this.getTextureQueue(e),i=this.lookup;Qt(n,t),t.retired=!0;for(var r=t.eleCaches,a=0;a=e)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,Zt(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Qt(i,a),n.push(a),a}},pu.queueElement=function(t,e){var n=this.getElementQueue(),i=this.getElementKeyToQueue(),r=this.getKey(t),a=i[r];if(a)a.level=Math.max(a.level,e),a.eles.merge(t),a.reqs++,n.updateItem(a);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:r};n.push(o),i[r]=o}},pu.dequeue=function(t){for(var e=this,n=e.getElementQueue(),i=e.getElementKeyToQueue(),r=[],a=e.lookup,o=0;o<1&&n.size()>0;o++){var s=n.pop(),c=s.key,u=s.eles[0],l=a.hasCache(u,s.level);if(i[c]=null,!l){r.push(s);var h=e.getBoundingBox(u);e.getElement(u,h,t,s.level,fu.dequeue)}}return r},pu.removeFromQueue=function(t){var e=this.getElementQueue(),n=this.getElementKeyToQueue(),i=this.getKey(t),r=n[i];null!=r&&(1===r.eles.length?(r.reqs=jt,e.updateItem(r),e.pop(),n[i]=null):r.eles.unmerge(t))},pu.onDequeue=function(t){this.onDequeues.push(t)},pu.offDequeue=function(t){Qt(this.onDequeues,t)},pu.setupDequeueing=lu({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n=3.99||n>2)return null;i.validateLayersElesOrdering(n,t);var o,s,c=i.layersByLevel,u=Math.pow(2,n),l=c[n]=c[n]||[];if(i.levelIsComplete(n,t))return l;!function(){var e=function(e){if(i.validateLayersElesOrdering(e,t),i.levelIsComplete(e,t))return s=c[e],!0},r=function(t){if(!s)for(var i=n+t;-4<=i&&i<=2&&!e(i);i+=t);};r(1),r(-1);for(var a=l.length-1;a>=0;a--){var o=l[a];o.invalid&&Qt(l,o)}}();var h=function(e){var r=(e=e||{}).after;if(function(){if(!o){o=Ne();for(var e=0;e16e6)return null;var a=i.makeLayer(o,n);if(null!=r){var s=l.indexOf(r)+1;l.splice(s,0,a)}else(void 0===e.insert||e.insert)&&l.unshift(a);return a};if(i.skipping&&!a)return null;for(var f=null,d=t.length/1,g=!a,p=0;p=d||!He(f.bb,b.boundingBox()))&&!(f=h({insert:!0,after:f})))return null;s||g?i.queueLayer(f,b):i.drawEleInLayer(f,b,n,e),f.eles.push(b),y[n]=f}}return s||(g?null:l)},wu.getEleLevelForLayerLevel=function(t,e){return t},wu.drawEleInLayer=function(t,e,n,i){var r=this.renderer,a=t.context,o=e.boundingBox();0===o.w||0===o.h||!e.visible()||(n=this.getEleLevelForLayerLevel(n,i),r.setImgSmoothing(a,!1),r.drawCachedElement(a,e,null,null,n,true),r.setImgSmoothing(a,!0))},wu.levelIsComplete=function(t,e){var n=this.layersByLevel[t];if(!n||0===n.length)return!1;for(var i=0,r=0;r0||a.invalid)return!1;i+=a.eles.length}return i===e.length},wu.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var i=0;i0){t=!0;break}}return t},wu.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=Et(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,i){e.invalidateLayer(t)})))},wu.invalidateLayer=function(t){if(this.lastInvalidationTime=Et(),!t.invalid){var e=t.level,n=t.eles,i=this.layersByLevel[e];Qt(i,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var r=0;r3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this,s=e._private.rscratch;if((!a||e.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var c;n&&(c=n,t.translate(-c.x1,-c.y1));var u=a?e.pstyle("opacity").value:1,l=a?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,f=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,p=u*l,b=u*l,w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;"straight-triangle"===h?(o.eleStrokeStyle(t,e,n),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=g,o.eleStrokeStyle(t,e,n),o.drawEdgePath(e,t,s.allpts,f),t.lineCap="butt")},y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;o.drawArrowheads(t,e,n)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var m=e.pstyle("ghost-offset-x").pfValue,v=e.pstyle("ghost-offset-y").pfValue,x=e.pstyle("ghost-opacity").value,k=p*x;t.translate(m,v),w(k),y(k),t.translate(-m,-v)}r&&o.drawEdgeUnderlay(t,e),w(),y(),r&&o.drawEdgeOverlay(t,e),o.drawElementText(t,e,null,i),n&&t.translate(c.x1,c.y1)}}},Pu=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n){if(n.visible()){var i=n.pstyle("".concat(t,"-opacity")).value;if(0!==i){var r=this,a=r.usePaths(),o=n._private.rscratch,s=2*n.pstyle("".concat(t,"-padding")).pfValue,c=n.pstyle("".concat(t,"-color")).value;e.lineWidth=s,"self"!==o.edgeType||a?e.lineCap="round":e.lineCap="butt",r.colorStrokeStyle(e,c[0],c[1],c[2],i),r.drawEdgePath(n,e,o.allpts,"solid")}}}};Nu.drawEdgeOverlay=Pu("overlay"),Nu.drawEdgeUnderlay=Pu("underlay"),Nu.drawEdgePath=function(t,e,n,i){var r,a=t._private.rscratch,o=e,s=!1,c=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,l=t.pstyle("line-dash-offset").pfValue;if(c){var h=n.join("$");a.pathCacheKey&&a.pathCacheKey===h?(r=e=a.pathCache,s=!0):(r=e=new Path2D,a.pathCacheKey=h,a.pathCache=r)}if(o.setLineDash)switch(i){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(u),o.lineDashOffset=l;break;case"solid":o.setLineDash([])}if(!s&&!a.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var f=2;f+35&&void 0!==arguments[5])||arguments[5],o=this;if(null==i){if(a&&!o.eleTextBiggerThanMin(e))return}else if(!1===i)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var c=o.getLabelJustification(e);t.textAlign=c,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,l=e.pstyle("label"),h=e.pstyle("source-label"),f=e.pstyle("target-label");if(u||(!l||!l.value)&&(!h||!h.value)&&(!f||!f.value))return;t.textAlign="center",t.textBaseline="bottom"}var d,g=!n;n&&(d=n,t.translate(-d.x1,-d.y1)),null==r?(o.drawText(t,e,null,g,a),e.isEdge()&&(o.drawText(t,e,"source",g,a),o.drawText(t,e,"target",g,a))):o.drawText(t,e,r,g,a),n&&t.translate(d.x1,d.y1)},Fu.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&void 0!==arguments[2])||arguments[2],i=e.pstyle("font-style").strValue,r=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=n?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,c=e.pstyle("text-outline-opacity").value*s,u=e.pstyle("color").value,l=e.pstyle("text-outline-color").value;t.font=i+" "+o+" "+r+" "+a,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],s),this.colorStrokeStyle(t,l[0],l[1],l[2],c)},Fu.getTextAngle=function(t,e){var n=t._private.rscratch,i=e?e+"-":"",r=t.pstyle(i+"text-rotation"),a=Jt(n,"labelAngle",e);return"autorotate"===r.strValue?t.isEdge()?a:0:"none"===r.strValue?0:r.pfValue},Fu.drawText=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e._private.rscratch,o=r?e.effectiveOpacity():1;if(!r||0!==o&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var s,c,u=Jt(a,"labelX",n),l=Jt(a,"labelY",n),h=this.getLabelText(e,n);if(null!=h&&""!==h&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,r);var f,d=n?n+"-":"",g=Jt(a,"labelWidth",n),p=Jt(a,"labelHeight",n),b=e.pstyle(d+"text-margin-x").pfValue,w=e.pstyle(d+"text-margin-y").pfValue,y=e.isEdge(),m=e.pstyle("text-halign").value,v=e.pstyle("text-valign").value;switch(y&&(m="center",v="center"),u+=b,l+=w,0!==(f=i?this.getTextAngle(e,n):0)&&(s=u,c=l,t.translate(s,c),t.rotate(f),u=0,l=0),v){case"top":break;case"center":l+=p/2;break;case"bottom":l+=p}var x=e.pstyle("text-background-opacity").value,k=e.pstyle("text-border-opacity").value,_=e.pstyle("text-border-width").pfValue,E=e.pstyle("text-background-padding").pfValue;if(x>0||_>0&&k>0){var T=u-E;switch(m){case"left":T-=g;break;case"center":T-=g/2}var C=l-p-E,S=g+2*E,A=p+2*E;if(x>0){var M=t.fillStyle,I=e.pstyle("text-background-color").value;t.fillStyle="rgba("+I[0]+","+I[1]+","+I[2]+","+x*o+")",0===e.pstyle("text-background-shape").strValue.indexOf("round")?function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+i-a,n),t.quadraticCurveTo(e+i,n,e+i,n+a),t.lineTo(e+i,n+r-a),t.quadraticCurveTo(e+i,n+r,e+i-a,n+r),t.lineTo(e+a,n+r),t.quadraticCurveTo(e,n+r,e,n+r-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath(),t.fill()}(t,T,C,S,A,2):t.fillRect(T,C,S,A),t.fillStyle=M}if(_>0&&k>0){var L=t.strokeStyle,O=t.lineWidth,D=e.pstyle("text-border-color").value,N=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+D[0]+","+D[1]+","+D[2]+","+k*o+")",t.lineWidth=_,t.setLineDash)switch(N){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=_/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(t.strokeRect(T,C,S,A),"double"===N){var P=_/2;t.strokeRect(T+P,C+P,S-2*P,A-2*P)}t.setLineDash&&t.setLineDash([]),t.lineWidth=O,t.strokeStyle=L}}var B=2*e.pstyle("text-outline-width").pfValue;if(B>0&&(t.lineWidth=B),"wrap"===e.pstyle("text-wrap").value){var F=Jt(a,"labelWrapCachedLines",n),j=Jt(a,"labelLineHeight",n),R=g/2,$=this.getLabelJustification(e);switch("auto"===$||("left"===m?"left"===$?u+=-g:"center"===$&&(u+=-R):"center"===m?"left"===$?u+=-R:"right"===$&&(u+=R):"right"===m&&("center"===$?u+=R:"right"===$&&(u+=g))),v){case"top":case"center":case"bottom":l-=(F.length-1)*j}for(var z=0;z0&&t.strokeText(F[z],u,l),t.fillText(F[z],u,l),l+=j}else B>0&&t.strokeText(h,u,l),t.fillText(h,u,l);0!==f&&(t.rotate(-f),t.translate(-s,-c))}}};var ju={drawNode:function(t,e,n){var i,r,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c=this,u=e._private,l=u.rscratch,h=e.position();if(m(h.x)&&m(h.y)&&(!s||e.visible())){var f,d,g=s?e.effectiveOpacity():1,p=c.usePaths(),b=!1,w=e.padding();i=e.width()+2*w,r=e.height()+2*w,n&&(d=n,t.translate(-d.x1,-d.y1));for(var y=e.pstyle("background-image").value,v=new Array(y.length),x=new Array(y.length),k=0,_=0;_0&&void 0!==arguments[0]?arguments[0]:A;c.eleFillStyle(t,e,n)},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;c.colorStrokeStyle(t,M[0],M[1],M[2],e)},N=e.pstyle("shape").strValue,P=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var B=c.nodePathCache=c.nodePathCache||[],F=Dt("polygon"===N?N+","+P.join(","):N,""+r,""+i),j=B[F];null!=j?(f=j,b=!0,l.pathCache=f):(f=new Path2D,B[F]=l.pathCache=f)}var R=function(){if(!b){var n=h;p&&(n={x:0,y:0}),c.nodeShapes[c.getNodeShape(e)].draw(f||t,n.x,n.y,i,r)}p?t.fill(f):t.fill()},$=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=u.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;c.hasPie(e)&&(c.drawPie(t,e,a),n&&(p||c.nodeShapes[c.getNodeShape(e)].draw(t,h.x,h.y,i,r)))},q=function(){var e=(C>0?C:-C)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g),n=C>0?0:255;0!==C&&(c.colorFillStyle(t,n,n,n,e),p?t.fill(f):t.fill())},H=function(){if(S>0){if(t.lineWidth=S,t.lineCap="butt",t.setLineDash)switch(I){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}if(p?t.stroke(f):t.stroke(),"double"===I){t.lineWidth=S/3;var e=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(f):t.stroke(),t.globalCompositeOperation=e}t.setLineDash&&t.setLineDash([])}};if("yes"===e.pstyle("ghost").value){var U=e.pstyle("ghost-offset-x").pfValue,G=e.pstyle("ghost-offset-y").pfValue,Y=e.pstyle("ghost-opacity").value,K=Y*g;t.translate(U,G),O(Y*A),R(),$(K,!0),D(Y*L),H(),z(0!==C||0!==S),$(K,!1),q(K),t.translate(-U,-G)}p&&t.translate(-h.x,-h.y),o&&c.drawNodeUnderlay(t,e,h,i,r),p&&t.translate(h.x,h.y),O(),R(),$(g,!0),D(),H(),z(0!==C||0!==S),$(g,!1),q(),p&&t.translate(-h.x,-h.y),c.drawElementText(t,e,null,a),o&&c.drawNodeOverlay(t,e,h,i,r),n&&t.translate(d.x1,d.y1)}}},Ru=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n,i,r,a){if(n.visible()){var o=n.pstyle("".concat(t,"-padding")).pfValue,s=n.pstyle("".concat(t,"-opacity")).value,c=n.pstyle("".concat(t,"-color")).value,u=n.pstyle("".concat(t,"-shape")).value;if(s>0){if(i=i||n.position(),null==r||null==a){var l=n.padding();r=n.width()+2*l,a=n.height()+2*l}this.colorFillStyle(e,c[0],c[1],c[2],s),this.nodeShapes[u].draw(e,i.x,i.y,r+2*o,a+2*o),e.fill()}}}};ju.drawNodeOverlay=Ru("overlay"),ju.drawNodeUnderlay=Ru("underlay"),ju.hasPie=function(t){return(t=t[0])._private.hasPie},ju.drawPie=function(t,e,n,i){e=e[0],i=i||e.position();var r=e.cy().style(),a=e.pstyle("pie-size"),o=i.x,s=i.y,c=e.width(),u=e.height(),l=Math.min(c,u)/2,h=0;this.usePaths()&&(o=0,s=0),"%"===a.units?l*=a.pfValue:void 0!==a.pfValue&&(l=a.pfValue/2);for(var f=1;f<=r.pieBackgroundN;f++){var d=e.pstyle("pie-"+f+"-background-size").value,g=e.pstyle("pie-"+f+"-background-color").value,p=e.pstyle("pie-"+f+"-background-opacity").value*n,b=d/100;b+h>1&&(b=1-h);var w=1.5*Math.PI+2*Math.PI*h,y=w+2*Math.PI*b;0===d||h>=1||h+b>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,l,w,y),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],p),t.fill(),h+=b)}};var $u={};$u.getPixelRatio=function(){var t=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},$u.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],i=!0,r=0;ro.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!h&&(l[o.NODE]=!0,l[o.SELECT_BOX]=!0);var y=c.style(),m=c.zoom(),v=void 0!==r?r:m,x=c.pan(),k={x:x.x,y:x.y},_={zoom:m,pan:{x:x.x,y:x.y}},E=o.prevViewport;!(void 0===E||_.zoom!==E.zoom||_.pan.x!==E.pan.x||_.pan.y!==E.pan.y)&&!(p&&!g)&&(o.motionBlurPxRatio=1),a&&(k=a),v*=s,k.x*=s,k.y*=s;var T=o.getCachedZSortedEles();function C(t,e,n,i,r){var a=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,o.motionBlurTransparency),t.fillRect(e,n,i,r),t.globalCompositeOperation=a}function S(t,i){var s,c,l,h;o.clearingMotionBlur||t!==u.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&t!==u.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=k,c=v,l=o.canvasWidth,h=o.canvasHeight):(s={x:x.x*d,y:x.y*d},c=m*d,l=o.canvasWidth*d,h=o.canvasHeight*d),t.setTransform(1,0,0,1,0,0),"motionBlur"===i?C(t,0,0,l,h):!e&&(void 0===i||i)&&t.clearRect(0,0,l,h),n||(t.translate(s.x,s.y),t.scale(c,c)),a&&t.translate(a.x,a.y),r&&t.scale(r,r)}if(h||(o.textureDrawLastFrame=!1),h){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=c.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var A=o.data.bufferContexts[o.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(_=o.textureCache.viewport={zoom:c.zoom(),pan:c.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-_.pan.x)/_.zoom,y:(0-_.pan.y)/_.zoom}}l[o.DRAG]=!1,l[o.NODE]=!1;var M=u.contexts[o.NODE],I=o.textureCache.texture;_=o.textureCache.viewport,M.setTransform(1,0,0,1,0,0),f?C(M,0,0,_.width,_.height):M.clearRect(0,0,_.width,_.height);var L=y.core("outside-texture-bg-color").value,O=y.core("outside-texture-bg-opacity").value;o.colorFillStyle(M,L[0],L[1],L[2],O),M.fillRect(0,0,_.width,_.height),m=c.zoom(),S(M,!1),M.clearRect(_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s),M.drawImage(I,_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var D=c.extent(),N=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),P=o.hideEdgesOnViewport&&N,B=[];if(B[o.NODE]=!l[o.NODE]&&f&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,B[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),B[o.DRAG]=!l[o.DRAG]&&f&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,B[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),l[o.NODE]||n||i||B[o.NODE]){var F=f&&!B[o.NODE]&&1!==d;S(M=e||(F?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:u.contexts[o.NODE]),f&&!F?"motionBlur":void 0),P?o.drawCachedNodes(M,T.nondrag,s,D):o.drawLayeredElements(M,T.nondrag,s,D),o.debug&&o.drawDebugPoints(M,T.nondrag),!n&&!f&&(l[o.NODE]=!1)}if(!i&&(l[o.DRAG]||n||B[o.DRAG])&&(F=f&&!B[o.DRAG]&&1!==d,S(M=e||(F?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:u.contexts[o.DRAG]),f&&!F?"motionBlur":void 0),P?o.drawCachedNodes(M,T.drag,s,D):o.drawCachedElements(M,T.drag,s,D),o.debug&&o.drawDebugPoints(M,T.drag),!n&&!f&&(l[o.DRAG]=!1)),o.showFps||!i&&l[o.SELECT_BOX]&&!n){if(S(M=e||u.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){m=o.cy.zoom();var j=y.core("selection-box-border-width").value/m;M.lineWidth=j,M.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",M.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),j>0&&(M.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",M.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(u.bgActivePosistion&&!o.hoverData.selecting){m=o.cy.zoom();var R=u.bgActivePosistion;M.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",M.beginPath(),M.arc(R.x,R.y,y.core("active-bg-size").pfValue/m,0,2*Math.PI),M.fill()}var $=o.lastRedrawTime;if(o.showFps&&$){$=Math.round($);var z=Math.round(1e3/$);M.setTransform(1,0,0,1,0,0),M.fillStyle="rgba(255, 0, 0, 0.75)",M.strokeStyle="rgba(255, 0, 0, 0.75)",M.lineWidth=1,M.fillText("1 frame = "+$+" ms = "+z+" fps",0,20);M.strokeRect(0,30,250,20),M.fillRect(0,30,250*Math.min(z/60,1),20)}n||(l[o.SELECT_BOX]=!1)}if(f&&1!==d){var q=u.contexts[o.NODE],H=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],U=u.contexts[o.DRAG],G=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],Y=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!w?t.clearRect(0,0,o.canvasWidth,o.canvasHeight):C(t,0,0,o.canvasWidth,o.canvasHeight);var i=d;t.drawImage(e,0,0,o.canvasWidth*i,o.canvasHeight*i,0,0,o.canvasWidth,o.canvasHeight)};(l[o.NODE]||B[o.NODE])&&(Y(q,H,B[o.NODE]),l[o.NODE]=!1),(l[o.DRAG]||B[o.DRAG])&&(Y(U,G,B[o.DRAG]),l[o.DRAG]=!1)}o.prevViewport=_,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),f&&(o.motionBlurTimeout=setTimeout((function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!h,o.mbFrames=0,l[o.NODE]=!0,l[o.DRAG]=!0,o.redraw()}),100)),e||c.emit("render")};for(var zu={drawPolygonPath:function(t,e,n,i,r,a){var o=i/2,s=r/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*a[0],n+s*a[1]);for(var c=1;c0&&a>0){f.clearRect(0,0,r,a),f.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)f.translate(-n.x1*c,-n.y1*c),f.scale(c,c),this.drawElements(f,d),f.scale(1/c,1/c),f.translate(n.x1*c,n.y1*c);else{var g=e.pan(),p={x:g.x*c,y:g.y*c};c*=e.zoom(),f.translate(p.x,p.y),f.scale(c,c),this.drawElements(f,d),f.scale(1/c,1/c),f.translate(-p.x,-p.y)}t.bg&&(f.globalCompositeOperation="destination-over",f.fillStyle=t.bg,f.rect(0,0,r,a),f.fill())}return h},Wu.png=function(t){return Vu(t,this.bufferCanvasImage(t),"image/png")},Wu.jpg=function(t){return Vu(t,this.bufferCanvasImage(t),"image/jpeg")};var Qu=Ju,Zu=Ju.prototype;function Ju(t){var e=this;e.data={canvases:new Array(Zu.CANVAS_LAYERS),contexts:new Array(Zu.CANVAS_LAYERS),canvasNeedsRedraw:new Array(Zu.CANVAS_LAYERS),bufferCanvases:new Array(Zu.BUFFER_COUNT),bufferContexts:new Array(Zu.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var r=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=i,r.position="relative",r.zIndex="0",r.overflow="hidden";var a=t.cy.container();a.appendChild(e.data.canvasContainer),a.style[n]=i;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};u&&u.userAgent.match(/msie|trident|edge/i)&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s"u"?"undefined":t(OffscreenCanvas))?i=new OffscreenCanvas(e,n):((i=document.createElement("canvas")).width=e,i.height=n),i},[xu,Su,Nu,Bu,Fu,ju,$u,zu,Wu,{nodeShapeImpl:function(t,e,n,i,r,a,o){switch(t){case"ellipse":return this.drawEllipsePath(e,n,i,r,a);case"polygon":return this.drawPolygonPath(e,n,i,r,a,o);case"round-polygon":return this.drawRoundPolygonPath(e,n,i,r,a,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,i,r,a);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,i,r,a);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,i,r,a);case"barrel":return this.drawBarrelPath(e,n,i,r,a)}}}].forEach((function(t){R(Zu,t)}));var el=[{type:"layout",extensions:Fc},{type:"renderer",extensions:[{name:"null",impl:jc},{name:"base",impl:su},{name:"canvas",impl:Qu}]}],nl={},il={};function rl(t,e,n){var i=n,r=function(n){Gt("Can not register `"+e+"` for `"+t+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===t){if(Qs.prototype[e])return r(e);Qs.prototype[e]=n}else if("collection"===t){if(ds.prototype[e])return r(e);ds.prototype[e]=n}else if("layout"===t){for(var a=function(t){this.options=t,n.call(this,t),y(this._private)||(this._private={}),this._private.cy=t.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(n.prototype),s=[],c=0;ce&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},u.prototype.transform=function(t){var e=this.rect.x;e>o.WORLD_BOUNDARY?e=o.WORLD_BOUNDARY:e<-o.WORLD_BOUNDARY&&(e=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var i=new c(e,n),r=t.inverseTransformPoint(i);this.setLocation(r.x,r.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=u},function(t,e,n){function i(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(t){this.x=t},i.prototype.setY=function(t){this.y=t},i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=i},function(t,e,n){var i=n(2),r=n(10),a=n(0),o=n(6),s=n(3),c=n(1),u=n(13),l=n(12),h=n(11);function f(t,e,n){i.call(this,n),this.estimatedSize=r.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof o?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in f.prototype=Object.create(i.prototype),i)f[d]=i[d];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(t,e,n){if(null==e&&null==n){var i=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(i)>-1)throw"Node already in graph!";return i.owner=this,this.getNodes().push(i),i}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(e.owner!=n.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=n.owner?null:(r.source=e,r.target=n,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),n!=e&&n.edges.push(r),r)},f.prototype.remove=function(t){var e=t;if(t instanceof s){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=e.edges.slice(),i=n.length,r=0;r-1&&l>-1))throw"Source and/or target doesn't know this edge!";if(a.source.edges.splice(u,1),a.target!=a.source&&a.target.edges.splice(l,1),-1==(o=a.source.owner.getEdges().indexOf(a)))throw"Not in owner's edge list!";a.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var t,e,n,i=r.MAX_VALUE,a=r.MAX_VALUE,o=this.getNodes(),s=o.length,c=0;c(t=u.getTop())&&(i=t),a>(e=u.getLeft())&&(a=e)}return i==r.MAX_VALUE?null:(n=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=a-n,this.top=i-n,new l(this.left,this.top))},f.prototype.updateBounds=function(t){for(var e,n,i,a,o,s=r.MAX_VALUE,c=-r.MAX_VALUE,l=r.MAX_VALUE,h=-r.MAX_VALUE,f=this.nodes,d=f.length,g=0;g(e=p.getLeft())&&(s=e),c<(n=p.getRight())&&(c=n),l>(i=p.getTop())&&(l=i),h<(a=p.getBottom())&&(h=a)}var b=new u(s,l,c-s,h-l);s==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),o=null!=f[0].getParent().paddingLeft?f[0].getParent().paddingLeft:this.margin,this.left=b.x-o,this.right=b.x+b.width+o,this.top=b.y-o,this.bottom=b.y+b.height+o},f.calculateBounds=function(t){for(var e,n,i,a,o=r.MAX_VALUE,s=-r.MAX_VALUE,c=r.MAX_VALUE,l=-r.MAX_VALUE,h=t.length,f=0;f(e=d.getLeft())&&(o=e),s<(n=d.getRight())&&(s=n),c>(i=d.getTop())&&(c=i),l<(a=d.getBottom())&&(l=a)}return new u(o,c,s-o,l-c)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,n=e.length,i=0;i=this.nodes.length){var c=0;r.forEach((function(e){e.owner==t&&c++})),c==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=f},function(t,e,n){var i,r=n(1);function a(t){i=n(5),this.layout=t,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(t,e,n,i,r){if(null==n&&null==i&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=n,n=t;var a=(i=e).getOwner(),o=r.getOwner();if(null==a||a.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==o||o.getGraphManager()!=this)throw"Target not in this graph mgr!";if(a==o)return n.isInterGraph=!1,a.add(n,i,r);if(n.isInterGraph=!0,n.source=i,n.target=r,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(t){if(t instanceof i){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var n,a=[],o=(a=a.concat(e.getEdges())).length,s=0;s=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var a=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=i,n[1]=c,n[2]=a,n[3]=m,!1;if(ra)return n[0]=s,n[1]=r,n[2]=w,n[3]=o,!1;if(ia?(n[0]=l,n[1]=h,_=!0):(n[0]=u,n[1]=c,_=!0):T===S&&(i>a?(n[0]=s,n[1]=c,_=!0):(n[0]=f,n[1]=h,_=!0)),-C===S?a>i?(n[2]=y,n[3]=m,E=!0):(n[2]=w,n[3]=b,E=!0):C===S&&(a>i?(n[2]=p,n[3]=b,E=!0):(n[2]=v,n[3]=m,E=!0)),_&&E)return!1;if(i>a?r>o?(A=this.getCardinalDirection(T,S,4),M=this.getCardinalDirection(C,S,2)):(A=this.getCardinalDirection(-T,S,3),M=this.getCardinalDirection(-C,S,1)):r>o?(A=this.getCardinalDirection(-T,S,1),M=this.getCardinalDirection(-C,S,3)):(A=this.getCardinalDirection(T,S,2),M=this.getCardinalDirection(C,S,4)),!_)switch(A){case 1:L=c,I=i+-g/S,n[0]=I,n[1]=L;break;case 2:I=f,L=r+d*S,n[0]=I,n[1]=L;break;case 3:L=h,I=i+g/S,n[0]=I,n[1]=L;break;case 4:I=l,L=r+-d*S,n[0]=I,n[1]=L}if(!E)switch(M){case 1:D=b,O=a+-k/S,n[2]=O,n[3]=D;break;case 2:O=v,D=o+x*S,n[2]=O,n[3]=D;break;case 3:D=m,O=a+k/S,n[2]=O,n[3]=D;break;case 4:O=y,D=o+-x*S,n[2]=O,n[3]=D}}return!1},r.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},r.getIntersection=function(t,e,n,r){if(null==r)return this.getIntersection2(t,e,n);var a,o,s,c,u,l,h,f=t.x,d=t.y,g=e.x,p=e.y,b=n.x,w=n.y,y=r.x,m=r.y;return u=g*d-f*p,l=y*w-b*m,0==(h=(a=p-d)*(c=b-y)-(o=m-w)*(s=f-g))?null:new i((s*l-c*u)/h,(o*u-a*l)/h)},r.angleOfVector=function(t,e,n,i){var r=void 0;return t!==n?(r=Math.atan((i-e)/(n-t)),n0?1:t<0?-1:0},i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=i},function(t,e,n){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,t.exports=i},function(t,e,n){var i=function(){function t(t,e){for(var n=0;n"u"?"undefined":i(t);return null==t||"object"!=e&&"function"!=e},t.exports=r},function(t,e,n){function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&e;){for(s.push(u[0]);s.length>0&&e;){var l=s[0];s.splice(0,1),o.add(l);var h=l.getEdges();for(a=0;a-1&&u.splice(p,1)}o=new Set,c=new Map}else t=[]}return t},f.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,i=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r0){for(var r=this.edgeToDummyNodes.get(n),a=0;a=0&&e.splice(h,1),l.getNeighborsList().forEach((function(t){if(n.indexOf(t)<0){var e=i.get(t)-1;1==e&&c.push(t),i.set(t,e)}}))}n=n.concat(c),(1==e.length||2==e.length)&&(r=!0,a=e[0])}return a},f.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=f},function(t,e,n){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=1e4*Math.sin(i.seed++),i.x-Math.floor(i.x)},t.exports=i},function(t,e,n){var i=n(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},r.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},r.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},r.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},r.prototype.inverseTransformPoint=function(t){return new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,n){var i=n(15),r=n(7),a=n(0),o=n(8),s=n(9);function c(){i.call(this),this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.springConstant=r.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=r.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=r.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=r.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*r.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=r.MAX_ITERATIONS}for(var u in c.prototype=Object.create(i.prototype),i)c[u]=i[u];c.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},c.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,i,o,s,c=this.getGraphManager().getAllEdges(),u=0;ur.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*r.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-r.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>r.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(r.COOLING_ADAPTATION_FACTOR,1-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*(1-r.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},c.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),a=new Set,t=0;t(c=e.getEstimatedSize()*this.gravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*a):(o>(c=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant)},c.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=s.length||u>=s[0].length))for(var l=0;lt}}]),t}();t.exports=a},function(t,e,n){var i=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.sequence1=e,this.sequence2=n,this.match_score=i,this.mismatch_penalty=r,this.gap_penalty=a,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;n--){var i=this.listeners[n];i.event===t&&i.callback===e&&this.listeners.splice(n,1)}},r.emit=function(t,e){for(var n=0;nt.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.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},a.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),r=0;r0?this.positionNodesRadially(n):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)})),this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly())}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(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 t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.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=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!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(n,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n1)for(s=0;si&&(i=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(l.WORLD_CENTER_X-o.x/2,l.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(t,e,n){var i=Math.max(this.maxDiagonalInTree(t),c.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(e,null,0,359,0,i);var r=b.calculateBounds(t),a=new w;a.setDeviceOrgX(r.getMinX()),a.setDeviceOrgY(r.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var w=b[0];b.splice(0,1);var m=l.indexOf(w);m>=0&&l.splice(m,1),g--,h--}f=null!=e?(l.indexOf(b[0])+1)%g:0;for(var v=Math.abs(i-n)/h,x=f;d!=h;x=++x%g){var k=l[x].getOtherEnd(t);if(k!=e){var _=(n+d*v)%360,E=(_+v)%360;y.branchRadialLayout(k,t,_,E,r+a,a),d++}}},y.maxDiagonalInTree=function(t){for(var e=g.MIN_VALUE,n=0;ne&&(e=i)}return e},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],i=this.graphManager.getAllNodes(),r=0;r"u"&&(e[c]=[]),e[c]=e[c].concat(s)}Object.keys(e).forEach((function(n){if(e[n].length>1){var i="DummyCompound_"+n;t.memberGroups[i]=e[n];var r=e[n][0].getParent(),a=new o(t.graphManager);a.id=i,a.paddingLeft=r.paddingLeft||0,a.paddingRight=r.paddingRight||0,a.paddingBottom=r.paddingBottom||0,a.paddingTop=r.paddingTop||0,t.idToDummyNode[i]=a;var s=t.getGraphManager().add(t.newGraph(),a),c=r.getChild();c.add(a);for(var u=0;u=0;t--){var e=this.compoundOrder[t],n=e.id,i=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,i,r)}},y.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(n){var i=t.idToDummyNode[n],r=i.paddingLeft,a=i.paddingTop;t.adjustLocations(e[n],i.rect.x,i.rect.y,r,a)}))},y.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var i=n.getNodes(),r=0;r0)return this.toBeTiled[e]=!1,!1;if(null!=a.getChild()){if(!this.getToBeTiled(a))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[a.id]=!1}return this.toBeTiled[e]=!0,!0},y.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,i=0;ic&&(c=l.rect.height)}n+=c+t.verticalPadding}},y.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(i){var r=e[i];n.tiledMemberPack[i]=n.tileNodes(t[i],r.paddingLeft+r.paddingRight),r.rect.width=n.tiledMemberPack[i].width,r.rect.height=n.tiledMemberPack[i].height}))},y.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height0&&(a+=t.horizontalPadding),t.rowWidth[n]=a,t.width0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[n]&&(s=t.rowHeight[n],t.rowHeight[n]=o,s=t.rowHeight[n]-s),t.height+=s,t.rows[n].push(e)},y.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,i=0;in&&(e=i,n=t.rowWidth[i]);return e},y.prototype.canAddHorizontal=function(t,e,n){var i=this.getShortestRowIndex(t);if(i<0)return!0;var r=t.rowWidth[i];if(r+t.horizontalPadding+e<=t.width)return!0;var a,o,s=0;return t.rowHeight[i]0&&(s=n+t.verticalPadding-t.rowHeight[i]),a=t.width-r>=e+t.horizontalPadding?(t.height+s)/(r+e+t.horizontalPadding):(t.height+s)/t.width,s=n+t.verticalPadding,(o=t.widtha&&e!=n){i.splice(-1,1),t.rows[n].push(r),t.rowWidth[e]=t.rowWidth[e]-a,t.rowWidth[n]=t.rowWidth[n]+a,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var o=Number.MIN_VALUE,s=0;so&&(o=i[s].height);e>0&&(o+=t.verticalPadding);var c=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=o,t.rowHeight[n]0)for(var l=r;l<=a;l++)c[0]+=this.grid[l][o-1].length+this.grid[l][o].length-1;if(a0)for(l=o;l<=s;l++)c[3]+=this.grid[r-1][l].length+this.grid[r][l].length-1;for(var h,f,d=g.MAX_VALUE,p=0;p0&&(o=n.getGraphManager().add(n.newGraph(),a),this.processChildrenList(o,h,n))}},h.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",h)};typeof cytoscape<"u"&&d(cytoscape),t.exports=d}]))}(cD);const fD=n(cD.exports);function dD(t,e,n,i){(function(t,e,n,i){const r=i.htmlLabels,a=n%11,o=t.append("g");e.section=a;let s="section-"+a;a<0&&(s+=" section-root"),o.attr("class",(e.class?e.class+" ":"")+"mindmap-node "+s);const c=o.append("g"),u=o.append("g"),l=e.descr.replace(/()/g,"\n");yT(u,l,{useHtmlLabels:r,width:e.width,classes:"mindmap-node-label"}),r||u.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const h=u.node().getBBox(),f=i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=h.height+1.1*f*.5+e.padding,e.width=h.width+2*e.padding,e.icon)if(e.type===ZO.CIRCLE)e.height+=50,e.width+=50,o.append("foreignObject").attr("height","50px").attr("width",e.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+a+" "+e.icon),u.attr("transform","translate("+e.width/2+", "+(e.height/2-1.5*e.padding)+")");else{e.width+=50;const t=e.height;e.height=Math.max(t,60);const n=Math.abs(e.height-t);o.append("foreignObject").attr("width","60px").attr("height",e.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+a+" "+e.icon),u.attr("transform","translate("+(25+e.width/2)+", "+(n/2+e.padding/2)+")")}else if(r){const t=(e.width-h.width)/2,n=(e.height-h.height)/2;u.attr("transform","translate("+t+", "+n+")")}else{const t=e.width/2,n=e.padding/2;u.attr("transform","translate("+t+", "+n+")")}switch(e.type){case ZO.DEFAULT:!function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}(c,e,a);break;case ZO.ROUNDED_RECT:!function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("height",e.height).attr("rx",e.padding).attr("ry",e.padding).attr("width",e.width)}(c,e);break;case ZO.RECT:!function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("height",e.height).attr("width",e.width)}(c,e);break;case ZO.CIRCLE:c.attr("transform","translate("+e.width/2+", "+ +e.height/2+")"),function(t,e){t.append("circle").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("r",e.width/2)}(c,e);break;case ZO.CLOUD:!function(t,e){const n=e.width,i=e.height,r=.15*n,a=.25*n,o=.35*n,s=.2*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("d",`M0 0 a${r},${r} 0 0,1 ${.25*n},${-1*n*.1}\n a${o},${o} 1 0,1 ${.4*n},${-1*n*.1}\n a${a},${a} 1 0,1 ${.35*n},${1*n*.2}\n\n a${r},${r} 1 0,1 ${.15*n},${1*i*.35}\n a${s},${s} 1 0,1 ${-1*n*.15},${1*i*.65}\n\n a${a},${r} 1 0,1 ${-1*n*.25},${.15*n}\n a${o},${o} 1 0,1 ${-1*n*.5},0\n a${r},${r} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n a${r},${r} 1 0,1 ${-1*n*.1},${-1*i*.35}\n a${s},${s} 1 0,1 ${.1*n},${-1*i*.65}\n\n H0 V0 Z`)}(c,e);break;case ZO.BANG:!function(t,e){const n=e.width,i=e.height,r=.15*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+tD(e.type)).attr("d",`M0 0 a${r},${r} 1 0,0 ${.25*n},${-1*i*.1}\n a${r},${r} 1 0,0 ${.25*n},0\n a${r},${r} 1 0,0 ${.25*n},0\n a${r},${r} 1 0,0 ${.25*n},${1*i*.1}\n\n a${r},${r} 1 0,0 ${.15*n},${1*i*.33}\n a${.8*r},${.8*r} 1 0,0 0,${1*i*.34}\n a${r},${r} 1 0,0 ${-1*n*.15},${1*i*.33}\n\n a${r},${r} 1 0,0 ${-1*n*.25},${.15*i}\n a${r},${r} 1 0,0 ${-1*n*.25},0\n a${r},${r} 1 0,0 ${-1*n*.25},0\n a${r},${r} 1 0,0 ${-1*n*.25},${-1*i*.15}\n\n a${r},${r} 1 0,0 ${-1*n*.1},${-1*i*.33}\n a${.8*r},${.8*r} 1 0,0 0,${-1*i*.34}\n a${r},${r} 1 0,0 ${.1*n},${-1*i*.33}\n\n H0 V0 Z`)}(c,e);break;case ZO.HEXAGON:!function(t,e){const n=e.height,i=n/4,r=e.width-e.padding+2*i;!function(t,e,n,i,r){t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+(r.width-e)/2+", "+n+")")}(t,r,n,[{x:i,y:0},{x:r-i,y:0},{x:r,y:-n/2},{x:r-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}],e)}(c,e)}JO(e.id,o),e.height})(t,e,n,i),e.children&&e.children.forEach(((e,r)=>{dD(t,e,n<0?r:n,i)}))}function gD(t,e,n,i){e.add({group:"nodes",data:{id:t.id,labelText:t.descr,height:t.height,width:t.width,level:i,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach((r=>{gD(r,e,n,i+1),e.add({group:"edges",data:{id:`${t.id}_${r.id}`,source:t.id,target:r.id,depth:i,section:r.section}})}))}function pD(t,e){return new Promise((n=>{const i=ae("body").append("div").attr("id","cy").attr("style","display:none"),r=aD({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),gD(t,r,e,0),r.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}})),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready((t=>{o.info("Ready",t),n(r)}))}))}aD.use(fD);const bD={draw:async(t,e,n,i)=>{const r=ch();r.htmlLabels=!1,o.debug("Rendering mindmap diagram\n"+t,i.parser);const a=ch().securityLevel;let s;"sandbox"===a&&(s=ae("#i"+e));const c=ae("sandbox"===a?s.nodes()[0].contentDocument.body:"body").select("#"+e);c.append("g");const u=i.db.getMindmap(),l=c.append("g");l.attr("class","mindmap-edges");const h=c.append("g");h.attr("class","mindmap-nodes"),dD(h,u,-1,r);const f=await pD(u,r);(function(t,e){e.edges().map(((e,n)=>{const i=e.data();if(e[0]._private.bodyBounds){const r=e[0]._private.rscratch;o.trace("Edge: ",n,i),t.insert("path").attr("d",`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}}))})(l,f),function(t){t.nodes().map(((t,e)=>{const n=t.data();n.x=t.position().x,n.y=t.position().y,function(t){const e=nD(t.id),n=t.x||0,i=t.y||0;e.attr("transform","translate("+n+","+i+")")}(n);const i=nD(n.nodeId);o.info("Id:",e,"Position: (",t.position().x,", ",t.position().y,")",n),i.attr("transform",`translate(${t.position().x-n.width/2}, ${t.position().y-n.height/2})`),i.attr("attr",`apa-${e})`)}))}(f),bh(void 0,c,r.mindmap.padding,r.mindmap.useMaxWidth)}},wD=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:iD,renderer:bD,parser:KO,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e"u"&&(l.yylloc={});var d=l.yylloc;r.push(d);var g,p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,y,m,v,x,k,_,E={};;){if(w=e[e.length-1],this.defaultActions[w]?y=this.defaultActions[w]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||l.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[w]&&a[w][b]),typeof y>"u"||!y.length||!y[0]){var T;for(v in _=[],a[w])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");T=l.showPosition?"Parse error on line "+(s+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[b]||b,line:l.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(l.yytext),r.push(l.yylloc),e.push(y[1]),b=null,c=l.yyleng,o=l.yytext,s=l.yylineno,d=l.yylloc;break;case 2:if(x=this.productions_[y[1]][1],E.$=i[i.length-x],E._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(E._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(m=this.performAction.apply(E,[o,c,s,h.yy,y[1],i,r].concat(u)))<"u")return m;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(E.$),r.push(E._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},a={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{easy_keword_rules:!0},performAction:function(t,e,n,i){switch(n){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/,/^(?:$)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:(\u002C))/,/^(?:(\u0022))/,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,/^(?:(\u0022)(?!(\u0022)))/,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};function o(){this.yy={}}return r.lexer=a,o.prototype=r,r.Parser=o,new o}();yD.parser=yD;const mD=yD;let vD=[],xD=[],kD={};class _D{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}}class ED{constructor(t){this.ID=t}}const TD={nodesMap:kD,getConfig:()=>ch().sankey,getNodes:()=>xD,getLinks:()=>vD,getGraph:()=>({nodes:xD.map((t=>({id:t.ID}))),links:vD.map((t=>({source:t.source.ID,target:t.target.ID,value:t.value})))}),addLink:(t,e,n)=>{vD.push(new _D(t,e,n))},findOrCreateNode:t=>(t=Bc.sanitizeText(t,ch()),kD[t]||(kD[t]=new ED(t),xD.push(kD[t])),kD[t]),getAccTitle:Eh,setAccTitle:_h,getAccDescription:Ch,setAccDescription:Th,getDiagramTitle:Ah,setDiagramTitle:Sh,clear:()=>{vD=[],xD=[],kD={},kh()}};function CD(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function SD(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function AD(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function MD(t){return t.target.depth}function ID(t,e){return t.sourceLinks.length?t.depth:e-1}function LD(t){return function(){return t}}function OD(t,e){return ND(t.source,e.source)||t.index-e.index}function DD(t,e){return ND(t.target,e.target)||t.index-e.index}function ND(t,e){return t.y0-e.y0}function PD(t){return t.value}function BD(t){return t.index}function FD(t){return t.nodes}function jD(t){return t.links}function RD(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function $D({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var zD=Math.PI,qD=2*zD,HD=1e-6,UD=qD-HD;function GD(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function YD(){return new GD}function KD(t){return function(){return t}}function WD(t){return t[0]}function XD(t){return t[1]}GD.prototype=YD.prototype={constructor:GD,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,c=i-e,u=a-t,l=o-e,h=u*u+l*l;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>HD)if(Math.abs(l*s-c*u)>HD&&r){var f=n-a,d=i-o,g=s*s+c*c,p=f*f+d*d,b=Math.sqrt(g),w=Math.sqrt(h),y=r*Math.tan((zD-Math.acos((g+h-p)/(2*b*w)))/2),m=y/w,v=y/b;Math.abs(m-1)>HD&&(this._+="L"+(t+m*u)+","+(e+m*l)),this._+="A"+r+","+r+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+v*s)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=t+o,u=e+s,l=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>HD||Math.abs(this._y1-u)>HD)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%qD+qD),h>UD?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>HD&&(this._+="A"+n+","+n+",0,"+ +(h>=zD)+","+l+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var VD=Array.prototype.slice;function QD(t){return t.source}function ZD(t){return t.target}function JD(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function tN(t){return[t.source.x1,t.y0]}function eN(t){return[t.target.x0,t.y1]}const nN=class{static next(t){return new nN(t+ ++nN.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}};let iN=nN;iN.count=0;const rN={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?SD(t.sourceLinks,MD)-1:0},justify:ID},aN={draw:function(t,e,n,i){const{securityLevel:r,sankey:a}=ch(),o=th.sankey;let s;"sandbox"===r&&(s=ae("#i"+e));const c=ae("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),u="sandbox"===r?c.select(`[id="${e}"]`):ae(`[id="${e}"]`),l=(null==a?void 0:a.width)||o.width,h=(null==a?void 0:a.height)||o.width,f=(null==a?void 0:a.useMaxWidth)||o.useMaxWidth,d=(null==a?void 0:a.nodeAlignment)||o.nodeAlignment;ph(u,h,l,f);const g=i.db.getGraph(),p=rN[d];(function(){let t,e,n,i=0,r=0,a=1,o=1,s=24,c=8,u=BD,l=ID,h=FD,f=jD,d=6;function g(){const g={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const i=new Map(t.map(((e,n)=>[u(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:r}=n;"object"!=typeof e&&(e=n.source=RD(i,e)),"object"!=typeof r&&(r=n.target=RD(i,r)),e.sourceLinks.push(n),r.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:i}of t)e.sort(n),i.sort(n)}(g),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(AD(e.sourceLinks,PD),AD(e.targetLinks,PD)):e.fixedValue}(g),function({nodes:t}){const e=t.length;let n=new Set(t),i=new Set,r=0;for(;n.size;){for(const t of n){t.depth=r;for(const{target:e}of t.sourceLinks)i.add(e)}if(++r>e)throw new Error("circular link");n=i,i=new Set}}(g),function({nodes:t}){const e=t.length;let n=new Set(t),i=new Set,r=0;for(;n.size;){for(const t of n){t.height=r;for(const{source:e}of t.targetLinks)i.add(e)}if(++r>e)throw new Error("circular link");n=i,i=new Set}}(g),function(n){const u=function({nodes:t}){const n=CD(t,(t=>t.depth))+1,r=(a-i-s)/(n-1),o=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(l.call(null,e,n))));e.layer=t,e.x0=i+t*r,e.x1=e.x0+s,o[t]?o[t].push(e):o[t]=[e]}if(e)for(const t of o)t.sort(e);return o}(n);t=Math.min(c,(o-r)/(CD(u,(t=>t.length))-1)),function(e){const n=SD(e,(e=>(o-r-(e.length-1)*t)/AD(e,PD)));for(const i of e){let e=r;for(const r of i){r.y0=e,r.y1=e+r.value*n,e=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*n}e=(o-e+t)/(i.length+1);for(let t=0;t0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,v(t)}void 0===e&&a.sort(ND),w(a,i)}}function b(t,n,i){for(let r=t.length-2;r>=0;--r){const a=t[r];for(const t of a){let e=0,i=0;for(const{target:n,value:r}of t.sourceLinks){let a=r*(n.layer-t.layer);e+=_(t,n)*a,i+=a}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,v(t)}void 0===e&&a.sort(ND),w(a,i)}}function w(e,n){const i=e.length>>1,a=e[i];m(e,a.y0-t,i-1,n),y(e,a.y1+t,i+1,n),m(e,o,e.length-1,n),y(e,r,0,n)}function y(e,n,i,r){for(;i1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function m(e,n,i,r){for(;i>=0;--i){const a=e[i],o=(a.y1-n)*r;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function v({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(DD);for(const{target:{targetLinks:e}}of t)e.sort(OD)}}function x(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(DD),n.sort(OD)}function k(e,n){let i=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:r,width:a}of e.sourceLinks){if(r===n)break;i+=a+t}for(const{source:t,width:r}of n.targetLinks){if(t===e)break;i-=r}return i}function _(e,n){let i=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:r,width:a}of n.targetLinks){if(r===e)break;i+=a+t}for(const{target:t,width:r}of e.sourceLinks){if(t===n)break;i-=r}return i}return g.update=function(t){return $D(t),t},g.nodeId=function(t){return arguments.length?(u="function"==typeof t?t:LD(t),g):u},g.nodeAlign=function(t){return arguments.length?(l="function"==typeof t?t:LD(t),g):l},g.nodeSort=function(t){return arguments.length?(e=t,g):e},g.nodeWidth=function(t){return arguments.length?(s=+t,g):s},g.nodePadding=function(e){return arguments.length?(c=t=+e,g):c},g.nodes=function(t){return arguments.length?(h="function"==typeof t?t:LD(t),g):h},g.links=function(t){return arguments.length?(f="function"==typeof t?t:LD(t),g):f},g.linkSort=function(t){return arguments.length?(n=t,g):n},g.size=function(t){return arguments.length?(i=r=0,a=+t[0],o=+t[1],g):[a-i,o-r]},g.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],r=+t[0][1],o=+t[1][1],g):[[i,r],[a,o]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g})().nodeId((t=>t.id)).nodeWidth(10).nodePadding(10).nodeAlign(p).extent([[0,0],[l,h]])(g);const b=Wi(Eo);u.append("g").attr("class","nodes").selectAll(".node").data(g.nodes).join("g").attr("class","node").attr("id",(t=>(t.uid=iN.next("node-")).id)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"})).attr("x",(t=>t.x0)).attr("y",(t=>t.y0)).append("rect").attr("height",(t=>t.y1-t.y0)).attr("width",(t=>t.x1-t.x0)).attr("fill",(t=>b(t.id))),u.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(g.nodes).join("text").attr("x",(t=>t.x0(t.y1+t.y0)/2)).attr("dy","0.35em").attr("text-anchor",(t=>t.x0t.id));const w=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(g.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),y=(null==a?void 0:a.linkColor)||"gradient";if("gradient"===y){const t=w.append("linearGradient").attr("id",(t=>(t.uid=iN.next("linearGradient-")).id)).attr("gradientUnits","userSpaceOnUse").attr("x1",(t=>t.source.x1)).attr("x2",(t=>t.target.x0));t.append("stop").attr("offset","0%").attr("stop-color",(t=>b(t.source.id))),t.append("stop").attr("offset","100%").attr("stop-color",(t=>b(t.target.id)))}let m;switch(y){case"gradient":m=t=>t.uid;break;case"source":m=t=>b(t.source.id);break;case"target":m=t=>b(t.target.id);break;default:m=y}w.append("path").attr("d",function(t){var e=QD,n=ZD,i=WD,r=XD,a=null;function o(){var o,s=VD.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(a||(a=o=YD()),t(a,+i.apply(this,(s[0]=c,s)),+r.apply(this,s),+i.apply(this,(s[0]=u,s)),+r.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:KD(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:KD(+t),o):r},o.context=function(t){return arguments.length?(a=t??null,o):a},o}(JD).source(tN).target(eN)).attr("stroke",m).attr("stroke-width",(t=>Math.max(1,t.width)))}},oN=mD.parse.bind(mD);mD.parse=t=>oN((t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim())(t));const sN=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:mD,db:TD,renderer:aN}},Symbol.toStringTag,{value:"Module"}));return Vp})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&typeof module<"u"?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).mermaid=e()}(this,(function(){var t,e;function n(t){for(var e=[],n=1;n=e?t:""+Array(e+1-i.length).join(n)+t},m={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+b(i,2,"0")+":"+b(r,2,"0")},m:function t(e,n){if(e.date()1)return t(o[0])}else{var s=e.name;w[s]=e,r=s}return!i&&r&&(y=r),r||!i&&y},_=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},T=m;T.l=k,T.i=x,T.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function p(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var b=p.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.init()},b.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},b.$utils=function(){return T},b.isValid=function(){return this.$d.toString()!==f},b.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return _(t){},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},u=function(t="fatal"){let e=s.fatal;"string"==typeof t?(t=t.toLowerCase())in s&&(e=s[t]):"number"==typeof t&&(e=t),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},e<=s.fatal&&(l.fatal=console.error?console.error.bind(console,h("FATAL"),"color: orange"):console.log.bind(console,"",h("FATAL"))),e<=s.error&&(l.error=console.error?console.error.bind(console,h("ERROR"),"color: orange"):console.log.bind(console,"",h("ERROR"))),e<=s.warn&&(l.warn=console.warn?console.warn.bind(console,h("WARN"),"color: orange"):console.log.bind(console,"",h("WARN"))),e<=s.info&&(l.info=console.info?console.info.bind(console,h("INFO"),"color: lightblue"):console.log.bind(console,"",h("INFO"))),e<=s.debug&&(l.debug=console.debug?console.debug.bind(console,h("DEBUG"),"color: lightgreen"):console.log.bind(console,"",h("DEBUG"))),e<=s.trace&&(l.trace=console.debug?console.debug.bind(console,h("TRACE"),"color: lightgreen"):console.log.bind(console,"",h("TRACE")))},h=t=>`%c${o().format("ss.SSS")} : ${t} : `;var f={};function d(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function g(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function p(t){let e,n,i;function r(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<0?r=e+1:a=e}while(rd(t(e),n),i=(e,n)=>t(e)-n):(e=t===d||t===g?t:b,n=t,i=t),{left:r,center:function(t,e,n=0,a=t.length){const o=r(t,e,n,a-1);return o>n&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i,r=0,a=t.length){if(r>>1;n(t[e],i)<=0?r=e+1:a=e}while(r-1}(c))return c;var l=c.match(a);if(!l)return c;var u=l[0];return e.test(u)?t.BLANK_URL:c}}(f);const m=p(d).right;p((function(t){return null===t?NaN:+t})).center;const y=m;class w extends Map{constructor(t,e=x){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(v(this,t))}has(t){return super.has(v(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}(this,t))}}function v({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function x(t){return null!==t&&"object"==typeof t?t.valueOf():t}const k=Math.sqrt(50),_=Math.sqrt(10),T=Math.sqrt(2);function E(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=k?10:a>=_?5:a>=T?2:1;let s,c,l;return r<0?(l=Math.pow(10,-r)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,r)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function M(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function L(t){return t}var I=1e-6;function O(t){return"translate("+t+",0)"}function N(t){return"translate(0,"+t+")"}function D(t){return e=>+t(e)}function P(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function B(){return!this.__axis}function R(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,u=4===t||2===t?"x":"y",h=1===t||3===t?O:N;function f(f){var d=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):L),p=Math.max(a,0)+s,b=e.range(),m=+b[0]+c,y=+b[b.length-1]+c,w=(e.bandwidth?P:D)(e.copy(),c),v=f.selection?f.selection():f,x=v.selectAll(".domain").data([null]),k=v.selectAll(".tick").data(d,e).order(),_=k.exit(),T=k.enter().append("g").attr("class","tick"),E=k.select("line"),S=k.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(T),E=E.merge(T.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),S=S.merge(T.append("text").attr("fill","currentColor").attr(u,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==v&&(x=x.transition(f),k=k.transition(f),E=E.transition(f),S=S.transition(f),_=_.transition(f).attr("opacity",I).attr("transform",(function(t){return isFinite(t=w(t))?h(t+c):this.getAttribute("transform")})),T.attr("opacity",I).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:w(t))+c)}))),_.remove(),x.attr("d",4===t||2===t?o?"M"+l*o+","+m+"H"+c+"V"+y+"H"+l*o:"M"+c+","+m+"V"+y:o?"M"+m+","+l*o+"V"+c+"H"+y+"V"+l*o:"M"+m+","+c+"H"+y),k.attr("opacity",1).attr("transform",(function(t){return h(w(t)+c)})),E.attr(u+"2",l*a),S.attr(u,l*p).text(g),v.filter(B).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each((function(){this.__axis=w}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),f):i&&i.slice()},f.tickFormat=function(t){return arguments.length?(r=t,f):r},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(c=+t,f):c},f}var F={value:()=>{}};function $(){for(var t,e=0,n=arguments.length,i={};e=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",i),a=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,i,r=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),U.hasOwnProperty(e)?{space:U[e],local:t}:t}function K(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===H&&e.documentElement.namespaceURI===H?e.createElement(t):e.createElementNS(n,t)}}function Y(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function V(t){var e=G(t);return(e.local?Y:K)(e)}function W(){}function X(t){return null==t?W:function(){return this.querySelector(t)}}function Q(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Z(){return[]}function J(t){return null==t?Z:function(){return this.querySelectorAll(t)}}function tt(t){return function(){return this.matches(t)}}function et(t){return function(e){return e.matches(t)}}var nt=Array.prototype.find;function it(){return this.firstElementChild}var rt=Array.prototype.filter;function at(){return Array.from(this.children)}function ot(t){return new Array(t.length)}function st(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ct(t,e,n,i,r,a){for(var o,s=0,c=e.length,l=a.length;se?1:t>=e?0:NaN}function dt(t){return function(){this.removeAttribute(t)}}function gt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pt(t,e){return function(){this.setAttribute(t,e)}}function bt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function yt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function vt(t){return function(){this.style.removeProperty(t)}}function xt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function kt(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function _t(t,e){return t.style.getPropertyValue(e)||wt(t).getComputedStyle(t,null).getPropertyValue(e)}function Tt(t){return function(){delete this[t]}}function Et(t,e){return function(){this[t]=e}}function St(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ct(t){return t.trim().split(/^|\s+/)}function At(t){return t.classList||new Mt(t)}function Mt(t){this._node=t,this._names=Ct(t.getAttribute("class")||"")}function Lt(t,e){for(var n=At(t),i=-1,r=e.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zt=[null];function Jt(t,e){this._groups=t,this._parents=e}function te(){return new Jt([[document.documentElement]],Zt)}function ee(t){return"string"==typeof t?new Jt([[document.querySelector(t)]],[document.documentElement]):new Jt([[t]],Zt)}function ne(t){return"string"==typeof t?new Jt([document.querySelectorAll(t)],[document.documentElement]):new Jt([Q(t)],Zt)}function ie(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function re(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ae(){}Jt.prototype=te.prototype={constructor:Jt,select:function(t){"function"!=typeof t&&(t=X(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r=v&&(v=w+1);!(y=b[v])&&++v=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ft);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a1?this.each((null==e?vt:"function"==typeof e?kt:xt)(t,e,n??"")):_t(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Tt:"function"==typeof e?St:Et)(t,e)):this.node()[t]},classed:function(t,e){var n=Ct(t+"");if(arguments.length<2){for(var i=At(this.node()),r=-1,a=n.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Vt:Yt,i=0;i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_e(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_e(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=fe.exec(t))?new Se(e[1],e[2],e[3],1):(e=de.exec(t))?new Se(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ge.exec(t))?_e(e[1],e[2],e[3],e[4]):(e=pe.exec(t))?_e(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=be.exec(t))?Oe(e[1],e[2]/100,e[3]/100,1):(e=me.exec(t))?Oe(e[1],e[2]/100,e[3]/100,e[4]):ye.hasOwnProperty(t)?ke(ye[t]):"transparent"===t?new Se(NaN,NaN,NaN,0):null}function ke(t){return new Se(t>>16&255,t>>8&255,255&t,1)}function _e(t,e,n,i){return i<=0&&(t=e=n=NaN),new Se(t,e,n,i)}function Te(t){return t instanceof ae||(t=xe(t)),t?new Se((t=t.rgb()).r,t.g,t.b,t.opacity):new Se}function Ee(t,e,n,i){return 1===arguments.length?Te(t):new Se(t,e,n,i??1)}function Se(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ce(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}`}function Ae(){const t=Me(this.opacity);return`${1===t?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===t?")":`, ${t})`}`}function Me(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ie(t){return((t=Le(t))<16?"0":"")+t.toString(16)}function Oe(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new De(t,e,n,i)}function Ne(t){if(t instanceof De)return new De(t.h,t.s,t.l,t.opacity);if(t instanceof ae||(t=xe(t)),!t)return new De;if(t instanceof De)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,c=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n0&&c<1?0:o,new De(o,s,c,t.opacity)}function De(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Pe(t){return(t=(t||0)%360)<0?t+360:t}function Be(t){return Math.max(0,Math.min(1,t||0))}function Re(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ie(ae,xe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:we,formatHex:we,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:ve,toString:ve}),ie(Se,Ee,re(ae,{brighter(t){return t=null==t?se:Math.pow(se,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?oe:Math.pow(oe,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Se(Le(this.r),Le(this.g),Le(this.b),Me(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:Ce,formatHex:Ce,formatHex8:function(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}${Ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ae,toString:Ae})),ie(De,(function(t,e,n,i){return 1===arguments.length?Ne(t):new De(t,e,n,i??1)}),re(ae,{brighter(t){return t=null==t?se:Math.pow(se,t),new De(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?oe:Math.pow(oe,t),new De(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Se(Re(t>=240?t-240:t+120,r,i),Re(t,r,i),Re(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new De(Pe(this.h),Be(this.s),Be(this.l),Me(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Me(this.opacity);return`${1===t?"hsl(":"hsla("}${Pe(this.h)}, ${100*Be(this.s)}%, ${100*Be(this.l)}%${1===t?")":`, ${t})`}`}}));const Fe=Math.PI/180,$e=180/Math.PI,je=.96422,ze=1,qe=.82521,He=4/29,Ue=6/29,Ge=3*Ue*Ue,Ke=Ue*Ue*Ue;function Ye(t){if(t instanceof Ve)return new Ve(t.l,t.a,t.b,t.opacity);if(t instanceof tn)return en(t);t instanceof Se||(t=Te(t));var e,n,i=Ze(t.r),r=Ze(t.g),a=Ze(t.b),o=We((.2225045*i+.7168786*r+.0606169*a)/ze);return i===r&&r===a?e=n=o:(e=We((.4360747*i+.3850649*r+.1430804*a)/je),n=We((.0139322*i+.0971045*r+.7141733*a)/qe)),new Ve(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Ve(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function We(t){return t>Ke?Math.pow(t,1/3):t/Ge+He}function Xe(t){return t>Ue?t*t*t:Ge*(t-He)}function Qe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof tn)return new tn(t.h,t.c,t.l,t.opacity);if(t instanceof Ve||(t=Ye(t)),0===t.a&&0===t.b)return new tn(NaN,0()=>t;function rn(t,e){return function(n){return t+n*e}}function an(t,e){var n=e-t;return n?rn(t,n):nn(isNaN(t)?e:t)}const on=function t(e){var n=function(t){return 1==(t=+t)?an:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):nn(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Ee(t)).r,(e=Ee(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=an(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function sn(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;na&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:un(n,i)})),a=dn.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:un(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:un(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,o.skewX,s,c),function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:un(t,n)},{i:s-2,x:un(e,i)})}else(1!==n||1!==i)&&a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,i=c.length;++n180||n<-180?n-360*Math.round(n/360):n):nn(isNaN(t)?e:t)}((t=Je(t)).h,(e=Je(e)).h),i=an(t.c,e.c),r=an(t.l,e.l),a=an(t.opacity,e.opacity);return function(e){return t.h=n(e),t.c=i(e),t.l=r(e),t.opacity=a(e),t+""}};var En,Sn,Cn=0,An=0,Mn=0,Ln=1e3,In=0,On=0,Nn=0,Dn="object"==typeof performance&&performance.now?performance:Date,Pn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Bn(){return On||(Pn(Rn),On=Dn.now()+Nn)}function Rn(){On=0}function Fn(){this._call=this._time=this._next=null}function $n(t,e,n){var i=new Fn;return i.restart(t,e,n),i}function jn(){On=(In=Dn.now())+Nn,Cn=An=0;try{!function(){Bn(),++Cn;for(var t,e=En;e;)(t=On-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Cn}()}finally{Cn=0,function(){for(var t,e,n=En,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:En=e);Sn=t,qn(i)}(),On=0}}function zn(){var t=Dn.now(),e=t-In;e>Ln&&(Nn-=e,In=t)}function qn(t){Cn||(An&&(An=clearTimeout(An)),t-On>24?(t<1/0&&(An=setTimeout(jn,t-Dn.now()-Nn)),Mn&&(Mn=clearInterval(Mn))):(Mn||(In=Dn.now(),Mn=setInterval(zn,Ln)),Cn=1,Pn(jn)))}function Hn(t,e,n){var i=new Fn;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}Fn.prototype=$n.prototype={constructor:Fn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Bn():+n)+(null==e?0:+e),!this._next&&Sn!==this&&(Sn?Sn._next=this:En=this,Sn=this),this._call=t,this._time=n,qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,qn())}};var Un=$("start","end","cancel","interrupt"),Gn=[],Kn=0,Yn=3;function Vn(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(c){var l,u,h,f;if(1!==n.state)return s();for(l in r)if((f=r[l]).name===n.name){if(f.state===Yn)return Hn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[l]):+lKn)throw new Error("too late; already scheduled");return n}function Xn(t,e){var n=Qn(t,e);if(n.state>Yn)throw new Error("too late; already running");return n}function Qn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Zn(t,e){var n,i;return function(){var r=Xn(this,t),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Wn:Xn;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}(n,t,e))},attr:function(t,e){var n=G(t),i="transform"===n?_n:ei;return this.attrTween(t,"function"==typeof e?(n.local?si:oi)(n,i,ti(this,"attr."+t,e)):null==e?(n.local?ii:ni)(n):(n.local?ai:ri)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=G(t);return this.tween(n,(i.local?ci:li)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?kn:ei;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=_t(this,t),o=(this.style.removeProperty(t),_t(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,pi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=_t(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=_t(this,t)),o===c?null:o===i&&c===r?a:(r=c,a=e(i=o,s))}}(t,i,ti(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e,s="end."+o;return function(){var c=Xn(this,t),l=c.on,u=null==c.value[o]?a||(a=pi(e)):void 0;(l!==n||r!==u)&&(i=(n=l).copy()).on(s,r=u),c.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var o=_t(this,t);return o===a?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,a,n)),i}return a._value=e,a}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ti(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Qn(this.node(),n).tween,a=0,o=r.length;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete t.__transition}}(this,t)}))},te.prototype.transition=function(t){var e,n;t instanceof mi?(e=t._id,t=t._name):(e=yi(),(n=vi).time=Bn(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Si;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;eTi)if(Math.abs(u*s-c*l)>Ti&&r){let f=n-a,d=i-o,g=s*s+c*c,p=f*f+d*d,b=Math.sqrt(g),m=Math.sqrt(h),y=r*Math.tan((ki-Math.acos((g+h-p)/(2*b*m)))/2),w=y/m,v=y/b;Math.abs(w-1)>Ti&&this._append`L${t+w*l},${e+w*u}`,this._append`A${r},${r},0,0,${+(u*f>l*d)},${this._x1=t+v*s},${this._y1=e+v*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),s=n*Math.sin(i),c=t+o,l=e+s,u=1^a,h=a?i-r:r-i;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ti||Math.abs(this._y1-l)>Ti)&&this._append`L${c},${l}`,n&&(h<0&&(h=h%_i+_i),h>Ei?this._append`A${n},${n},0,1,${u},${t-o},${e-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:h>Ti&&this._append`A${n},${n},0,${+(h>=ki)},${u},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function Ai(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Mi(t){return(t=Ai(Math.abs(t)))?t[1]:NaN}var Li,Ii=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oi(t){if(!(e=Ii.exec(t)))throw new Error("invalid format: "+t);var e;return new Ni({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ni(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Di(t,e){var n=Ai(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}Oi.prototype=Ni.prototype,Ni.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Pi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Di(100*t,e),r:Di,s:function(t,e){var n=Ai(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Li=3*Math.max(-8,Math.min(8,Math.floor(r/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")+Ai(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bi(t){return t}var Ri,Fi,$i,ji=Array.prototype.map,zi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}Ri=function(t){var e=void 0===t.grouping||void 0===t.thousands?Bi:function(t,e){return function(n,i){for(var r=n.length,a=[],o=0,s=t[0],c=0;r>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),a.push(n.substring(r-=s,r+s)),!((c+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}(ji.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Bi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ji.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function l(t){var l=(t=Oi(t)).fill,u=t.align,h=t.sign,f=t.symbol,d=t.zero,g=t.width,p=t.comma,b=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Pi[y]||(void 0===b&&(b=12),m=!0,y="g"),(d||"0"===l&&"="===u)&&(d=!0,l="0",u="=");var w="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===f?i:/[%p]/.test(y)?o:"",x=Pi[y],k=/[defgprs%]/.test(y);function _(t){var n,i,o,f=w,_=v;if("c"===y)_=x(t)+_,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),b),m&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==h&&(T=!1),f=(T?"("===h?h:s:"-"===h||"("===h?"":h)+f,_=("s"===y?zi[8+Li/3]:"")+_+(T&&"("===h?")":""),k)for(n=-1,i=t.length;++n(o=t.charCodeAt(n))||o>57){_=(46===o?r+t.slice(n+1):t.slice(n))+_,t=t.slice(0,n);break}}p&&!d&&(t=e(t,1/0));var E=f.length+t.length+_.length,S=E>1)+f+t+_+S.slice(E);break;default:t=S+f+t+_}return a(t)}return b=void 0===b?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),_.toString=function(){return t+""},_}return{format:l,formatPrefix:function(t,e){var n=l(((t=Oi(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Mi(e)/3))),r=Math.pow(10,-i),a=zi[8+i/3];return function(t){return n(r*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),Fi=Ri.format,$i=Ri.formatPrefix;const Hi=Symbol("implicit");function Ui(){var t=new w,e=[],n=[],i=Hi;function r(r){let a=t.get(r);if(void 0===a){if(i!==Hi)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new w;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Ui(e,n).unknown(i)},qi.apply(r,arguments),r}function Gi(){var t,e,n=Ui().unknown(void 0),i=n.domain,r=n.range,a=0,o=1,s=!1,c=0,l=0,u=.5;function h(){var n=i().length,h=oe&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(o[0],o[t-1])),i=t>2?Qi:Xi,r=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((a||(a=i(s,o.map(t),un)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,Ki),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=bn,u()},h.clamp=function(t){return arguments.length?(l=!!t||Vi,u()):l!==Vi},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}()(Vi,Vi)}function tr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const i=e=r))return[];const s=a-r+1,c=new Array(s);if(i)if(o<0)for(let t=0;t0;){if((r=S(c,l,n))===i)return a[o]=c,a[s]=l,e(a);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function er(){var t=Ji();return t.copy=function(){return Zi(t,er())},qi.apply(t,arguments),tr(t)}const nr=new Date,ir=new Date;function rr(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=e=>(t(e=new Date(+e)),e),r.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),r.round=t=>{const e=r(t),n=r.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),r.range=(n,i,a)=>{const o=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n0))return o;let s;do{o.push(s=new Date(+n)),e(n,a),t(n)}while(srr((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})),n&&(r.count=(e,i)=>(nr.setTime(+e),ir.setTime(+i),t(nr),t(ir),Math.floor(n(nr,ir))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?e=>i(e)%t==0:e=>r.count(0,e)%t==0):r:null)),r}const ar=rr((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ar.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?rr((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):ar:null),ar.range;const or=1e3,sr=6e4,cr=60*sr,lr=24*cr,ur=7*lr,hr=30*lr,fr=365*lr,dr=rr((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*or)}),((t,e)=>(e-t)/or),(t=>t.getUTCSeconds()));dr.range;const gr=rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*or)}),((t,e)=>{t.setTime(+t+e*sr)}),((t,e)=>(e-t)/sr),(t=>t.getMinutes()));gr.range,rr((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*sr)}),((t,e)=>(e-t)/sr),(t=>t.getUTCMinutes())).range;const pr=rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*or-t.getMinutes()*sr)}),((t,e)=>{t.setTime(+t+e*cr)}),((t,e)=>(e-t)/cr),(t=>t.getHours()));pr.range,rr((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*cr)}),((t,e)=>(e-t)/cr),(t=>t.getUTCHours())).range;const br=rr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sr)/lr),(t=>t.getDate()-1));br.range;const mr=rr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/lr),(t=>t.getUTCDate()-1));function yr(t){return rr((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sr)/ur))}mr.range,rr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/lr),(t=>Math.floor(t/lr))).range;const wr=yr(0),vr=yr(1),xr=yr(2),kr=yr(3),_r=yr(4),Tr=yr(5),Er=yr(6);function Sr(t){return rr((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/ur))}wr.range,vr.range,xr.range,kr.range,_r.range,Tr.range,Er.range;const Cr=Sr(0),Ar=Sr(1),Mr=Sr(2),Lr=Sr(3),Ir=Sr(4),Or=Sr(5),Nr=Sr(6);Cr.range,Ar.range,Mr.range,Lr.range,Ir.range,Or.range,Nr.range;const Dr=rr((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));Dr.range,rr((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())).range;const Pr=rr((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Pr.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,Pr.range;const Br=rr((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Br.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,Br.range;const[Rr,Fr]=function(t,e,n,i,r,a){const o=[[dr,1,or],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[a,1,sr],[a,5,5*sr],[a,15,15*sr],[a,30,30*sr],[r,1,cr],[r,3,3*cr],[r,6,6*cr],[r,12,12*cr],[i,1,lr],[i,2,2*lr],[n,1,ur],[e,1,hr],[e,3,3*hr],[t,1,fr]];function s(e,n,i){const r=Math.abs(n-e)/i,a=p((([,,t])=>t)).right(o,r);if(a===o.length)return t.every(C(e/fr,n/fr,i));if(0===a)return ar.every(Math.max(C(e,n,i),1));const[s,c]=o[r/o[a-1][2][t.toLowerCase(),e])))}function Zr(t,e,n){var i=Gr.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Jr(t,e,n){var i=Gr.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function ta(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function ea(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function na(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function ia(t,e,n){var i=Gr.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ra(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function aa(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function oa(t,e,n){var i=Gr.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function sa(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function ca(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function la(t,e,n){var i=Gr.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function ua(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function ha(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function fa(t,e,n){var i=Gr.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function da(t,e,n){var i=Gr.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function ga(t,e,n){var i=Gr.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function pa(t,e,n){var i=Kr.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function ba(t,e,n){var i=Gr.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function ma(t,e,n){var i=Gr.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ya(t,e){return Vr(t.getDate(),e,2)}function wa(t,e){return Vr(t.getHours(),e,2)}function va(t,e){return Vr(t.getHours()%12||12,e,2)}function xa(t,e){return Vr(1+br.count(Pr(t),t),e,3)}function ka(t,e){return Vr(t.getMilliseconds(),e,3)}function _a(t,e){return ka(t,e)+"000"}function Ta(t,e){return Vr(t.getMonth()+1,e,2)}function Ea(t,e){return Vr(t.getMinutes(),e,2)}function Sa(t,e){return Vr(t.getSeconds(),e,2)}function Ca(t){var e=t.getDay();return 0===e?7:e}function Aa(t,e){return Vr(wr.count(Pr(t)-1,t),e,2)}function Ma(t){var e=t.getDay();return e>=4||0===e?_r(t):_r.ceil(t)}function La(t,e){return t=Ma(t),Vr(_r.count(Pr(t),t)+(4===Pr(t).getDay()),e,2)}function Ia(t){return t.getDay()}function Oa(t,e){return Vr(vr.count(Pr(t)-1,t),e,2)}function Na(t,e){return Vr(t.getFullYear()%100,e,2)}function Da(t,e){return Vr((t=Ma(t)).getFullYear()%100,e,2)}function Pa(t,e){return Vr(t.getFullYear()%1e4,e,4)}function Ba(t,e){var n=t.getDay();return Vr((t=n>=4||0===n?_r(t):_r.ceil(t)).getFullYear()%1e4,e,4)}function Ra(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Vr(e/60|0,"0",2)+Vr(e%60,"0",2)}function Fa(t,e){return Vr(t.getUTCDate(),e,2)}function $a(t,e){return Vr(t.getUTCHours(),e,2)}function ja(t,e){return Vr(t.getUTCHours()%12||12,e,2)}function za(t,e){return Vr(1+mr.count(Br(t),t),e,3)}function qa(t,e){return Vr(t.getUTCMilliseconds(),e,3)}function Ha(t,e){return qa(t,e)+"000"}function Ua(t,e){return Vr(t.getUTCMonth()+1,e,2)}function Ga(t,e){return Vr(t.getUTCMinutes(),e,2)}function Ka(t,e){return Vr(t.getUTCSeconds(),e,2)}function Ya(t){var e=t.getUTCDay();return 0===e?7:e}function Va(t,e){return Vr(Cr.count(Br(t)-1,t),e,2)}function Wa(t){var e=t.getUTCDay();return e>=4||0===e?Ir(t):Ir.ceil(t)}function Xa(t,e){return t=Wa(t),Vr(Ir.count(Br(t),t)+(4===Br(t).getUTCDay()),e,2)}function Qa(t){return t.getUTCDay()}function Za(t,e){return Vr(Ar.count(Br(t)-1,t),e,2)}function Ja(t,e){return Vr(t.getUTCFullYear()%100,e,2)}function to(t,e){return Vr((t=Wa(t)).getUTCFullYear()%100,e,2)}function eo(t,e){return Vr(t.getUTCFullYear()%1e4,e,4)}function no(t,e){var n=t.getUTCDay();return Vr((t=n>=4||0===n?Ir(t):Ir.ceil(t)).getUTCFullYear()%1e4,e,4)}function io(){return"+0000"}function ro(){return"%"}function ao(t){return+t}function oo(t){return Math.floor(+t/1e3)}function so(t){return new Date(t)}function co(t){return t instanceof Date?+t:+new Date(+t)}function lo(t,e,n,i,r,a,o,s,c,l){var u=Ji(),h=u.invert,f=u.domain,d=l(".%L"),g=l(":%S"),p=l("%I:%M"),b=l("%I %p"),m=l("%a %d"),y=l("%b %d"),w=l("%B"),v=l("%Y");function x(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ao,s:oo,S:Sa,u:Ca,U:Aa,V:La,w:Ia,W:Oa,x:null,X:null,y:Na,Y:Pa,Z:Ra,"%":ro},v={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Fa,e:Fa,f:Ha,g:to,G:no,H:$a,I:ja,j:za,L:qa,m:Ua,M:Ga,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ao,s:oo,S:Ka,u:Ya,U:Va,V:Xa,w:Qa,W:Za,x:null,X:null,y:Ja,Y:eo,Z:io,"%":ro},x={a:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=y.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return T(t,e,n,i)},d:ca,e:ca,f:ga,g:ra,G:ia,H:ua,I:ua,j:la,L:da,m:sa,M:ha,p:function(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:oa,Q:ba,s:ma,S:fa,u:Jr,U:ta,V:ea,w:Zr,W:na,x:function(t,e,i){return T(t,n,e,i)},X:function(t,e,n){return T(t,i,e,n)},y:ra,Y:ia,Z:aa,"%":pa};function k(t,e){return function(n){var i,r,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=jr(zr(a.y,0,1))).getUTCDay(),i=r>4||0===r?Ar.ceil(i):Ar(i),i=mr.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=$r(zr(a.y,0,1))).getDay(),i=r>4||0===r?vr.ceil(i):vr(i),i=br.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?jr(zr(a.y,0,1)).getUTCDay():$r(zr(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,jr(a)):$r(a)}}function T(t,e,n,i){for(var r,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(a=x[r in Ur?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return w.x=k(n,w),w.X=k(i,w),w.c=k(e,w),v.x=k(n,v),v.X=k(i,v),v.c=k(e,v),{format:function(t){var e=k(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Hr=qr.format,qr.parse,qr.utcFormat,qr.utcParse;const ho=function(t){for(var e=new Array(10),n=0;n<10;)e[n]="#"+t.slice(6*n,6*++n);return e}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function fo(t){return function(){return t}}const go=Math.abs,po=Math.atan2,bo=Math.cos,mo=Math.max,yo=Math.min,wo=Math.sin,vo=Math.sqrt,xo=1e-12,ko=Math.PI,_o=ko/2,To=2*ko;function Eo(t){return t>=1?_o:t<=-1?-_o:Math.asin(t)}function So(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Ci(e)}function Co(t){return t.innerRadius}function Ao(t){return t.outerRadius}function Mo(t){return t.startAngle}function Lo(t){return t.endAngle}function Io(t){return t&&t.padAngle}function Oo(t,e,n,i,r,a,o){var s=t-n,c=e-i,l=(o?a:-a)/vo(s*s+c*c),u=l*c,h=-l*s,f=t+u,d=e+h,g=n+u,p=i+h,b=(f+g)/2,m=(d+p)/2,y=g-f,w=p-d,v=y*y+w*w,x=r-a,k=f*p-g*d,_=(w<0?-1:1)*vo(mo(0,x*x*v-k*k)),T=(k*w-y*_)/v,E=(-k*y-w*_)/v,S=(k*w+y*_)/v,C=(-k*y+w*_)/v,A=T-b,M=E-m,L=S-b,I=C-m;return A*A+M*M>L*L+I*I&&(T=S,E=C),{cx:T,cy:E,x01:-u,y01:-h,x11:T*(r/x-1),y11:E*(r/x-1)}}function No(){var t=Co,e=Ao,n=fo(0),i=null,r=Mo,a=Lo,o=Io,s=null,c=So(l);function l(){var l,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=r.apply(this,arguments)-_o,g=a.apply(this,arguments)-_o,p=go(g-d),b=g>d;if(s||(s=l=c()),fxo)if(p>To-xo)s.moveTo(f*bo(d),f*wo(d)),s.arc(0,0,f,d,g,!b),h>xo&&(s.moveTo(h*bo(g),h*wo(g)),s.arc(0,0,h,g,d,b));else{var m,y,w=d,v=g,x=d,k=g,_=p,T=p,E=o.apply(this,arguments)/2,S=E>xo&&(i?+i.apply(this,arguments):vo(h*h+f*f)),C=yo(go(f-h)/2,+n.apply(this,arguments)),A=C,M=C;if(S>xo){var L=Eo(S/h*wo(E)),I=Eo(S/f*wo(E));(_-=2*L)>xo?(x+=L*=b?1:-1,k-=L):(_=0,x=k=(d+g)/2),(T-=2*I)>xo?(w+=I*=b?1:-1,v-=I):(T=0,w=v=(d+g)/2)}var O=f*bo(w),N=f*wo(w),D=h*bo(k),P=h*wo(k);if(C>xo){var B,R=f*bo(v),F=f*wo(v),$=h*bo(x),j=h*wo(x);if(p1?0:t<-1?ko:Math.acos(t)}((z*H+q*U)/(vo(z*z+q*q)*vo(H*H+U*U)))/2),K=vo(B[0]*B[0]+B[1]*B[1]);A=yo(C,(h-K)/(G-1)),M=yo(C,(f-K)/(G+1))}else A=M=0}T>xo?M>xo?(m=Oo($,j,O,N,f,M,b),y=Oo(R,F,D,P,f,M,b),s.moveTo(m.cx+m.x01,m.cy+m.y01),Mxo&&_>xo?A>xo?(m=Oo(D,P,R,F,h,-A,b),y=Oo(O,N,$,j,h,-A,b),s.lineTo(m.cx+m.x01,m.cy+m.y01),At?1:e>=t?0:NaN}function zo(t){return t}Po.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class qo{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Ho(){}function Uo(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Go(t){this._context=t}function Ko(t){return new Go(t)}function Yo(t){this._context=t}function Vo(t){this._context=t}function Wo(t,e){this._basis=new Go(t),this._beta=e}Go.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Uo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Uo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yo.prototype={areaStart:Ho,areaEnd:Ho,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Uo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Vo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Uo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Wo.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],a=e[0],o=t[n]-r,s=e[n]-a,c=-1;++c<=n;)i=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(r+i*o),this._beta*e[c]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Xo=function t(e){function n(t){return 1===e?new Go(t):new Wo(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Qo(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Zo(t,e){this._context=t,this._k=(1-e)/6}Zo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Qo(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Qo(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Jo=function t(e){function n(t){return new Zo(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ts(t,e){this._context=t,this._k=(1-e)/6}ts.prototype={areaStart:Ho,areaEnd:Ho,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Qo(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const es=function t(e){function n(t){return new ts(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ns(t,e){this._context=t,this._k=(1-e)/6}ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qo(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const is=function t(e){function n(t){return new ns(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rs(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>xo){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>xo){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function as(t,e){this._context=t,this._alpha=e}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:rs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const os=function t(e){function n(t){return e?new as(t,e):new Zo(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ss(t,e){this._context=t,this._alpha=e}ss.prototype={areaStart:Ho,areaEnd:Ho,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cs=function t(e){function n(t){return e?new ss(t,e):new ts(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:rs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const us=function t(e){function n(t){return e?new ls(t,e):new ns(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hs(t){this._context=t}function fs(t){return t<0?-1:1}function ds(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(fs(a)+fs(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function gs(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ps(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function bs(t){this._context=t}function ms(t){this._context=new ys(t)}function ys(t){this._context=t}function ws(t){this._context=t}function vs(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),o=new Array(i);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},ks.prototype={constructor:ks,scale:function(t){return 1===t?this:new ks(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ks(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},ks.prototype;const{entries:_s,setPrototypeOf:Ts,isFrozen:Es,getPrototypeOf:Ss,getOwnPropertyDescriptor:Cs}=Object;let{freeze:As,seal:Ms,create:Ls}=Object,{apply:Is,construct:Os}=typeof Reflect<"u"&&Reflect;As||(As=function(t){return t}),Ms||(Ms=function(t){return t}),Is||(Is=function(t,e,n){return t.apply(e,n)}),Os||(Os=function(t,e){return new t(...e)});const Ns=Ks(Array.prototype.forEach),Ds=Ks(Array.prototype.pop),Ps=Ks(Array.prototype.push),Bs=Ks(String.prototype.toLowerCase),Rs=Ks(String.prototype.toString),Fs=Ks(String.prototype.match),$s=Ks(String.prototype.replace),js=Ks(String.prototype.indexOf),zs=Ks(String.prototype.trim),qs=Ks(Object.prototype.hasOwnProperty),Hs=Ks(RegExp.prototype.test),Us=(Gs=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:Bs;Ts&&Ts(t,null);let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(Es(e)||(e[i]=t),r=t)}t[r]=!0}return t}function Vs(t){for(let e=0;e/gm),uc=Ms(/\${[\w\W]*}/gm),hc=Ms(/^data-[\-\w.\u00B7-\uFFFF]/),fc=Ms(/^aria-[\-\w]+$/),dc=Ms(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gc=Ms(/^(?:\w+script|data):/i),pc=Ms(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bc=Ms(/^html$/i);var mc=Object.freeze({__proto__:null,MUSTACHE_EXPR:cc,ERB_EXPR:lc,TMPLIT_EXPR:uc,DATA_ATTR:hc,ARIA_ATTR:fc,IS_ALLOWED_URI:dc,IS_SCRIPT_OR_DATA:gc,ATTR_WHITESPACE:pc,DOCTYPE_NAME:bc}),yc=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window;const n=e=>t(e);if(n.version="3.0.9",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:i}=e;const r=i,a=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:l,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:g}=e,p=l.prototype,b=Xs(p,"cloneNode"),m=Xs(p,"nextSibling"),y=Xs(p,"childNodes"),w=Xs(p,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:_,createDocumentFragment:T,getElementsByTagName:E}=i,{importNode:S}=r;let C={};n.isSupported="function"==typeof _s&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:M,TMPLIT_EXPR:L,DATA_ATTR:I,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D}=mc;let{IS_ALLOWED_URI:P}=mc,B=null;const R=Ys({},[...Qs,...Zs,...Js,...ec,...ic]);let F=null;const $=Ys({},[...rc,...ac,...oc,...sc]);let j=Object.seal(Ls(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}})),z=null,q=null,H=!0,U=!0,G=!1,K=!0,Y=!1,V=!1,W=!1,X=!1,Q=!1,Z=!1,J=!1,tt=!0,et=!1,nt=!0,it=!1,rt={},at=null;const ot=Ys({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const ct=Ys({},["audio","video","img","source","image","track"]);let lt=null;const ut=Ys({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let gt=dt,pt=!1,bt=null;const mt=Ys({},[ht,ft,dt],Rs);let yt=null;const wt=["application/xhtml+xml","text/html"];let vt=null,xt=null;const kt=i.createElement("form"),_t=function(t){return t instanceof RegExp||t instanceof Function},Tt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!xt||xt!==t){if((!t||"object"!=typeof t)&&(t={}),t=Ws(t),yt=-1===wt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,vt="application/xhtml+xml"===yt?Rs:Bs,B=qs(t,"ALLOWED_TAGS")?Ys({},t.ALLOWED_TAGS,vt):R,F=qs(t,"ALLOWED_ATTR")?Ys({},t.ALLOWED_ATTR,vt):$,bt=qs(t,"ALLOWED_NAMESPACES")?Ys({},t.ALLOWED_NAMESPACES,Rs):mt,lt=qs(t,"ADD_URI_SAFE_ATTR")?Ys(Ws(ut),t.ADD_URI_SAFE_ATTR,vt):ut,st=qs(t,"ADD_DATA_URI_TAGS")?Ys(Ws(ct),t.ADD_DATA_URI_TAGS,vt):ct,at=qs(t,"FORBID_CONTENTS")?Ys({},t.FORBID_CONTENTS,vt):ot,z=qs(t,"FORBID_TAGS")?Ys({},t.FORBID_TAGS,vt):{},q=qs(t,"FORBID_ATTR")?Ys({},t.FORBID_ATTR,vt):{},rt=!!qs(t,"USE_PROFILES")&&t.USE_PROFILES,H=!1!==t.ALLOW_ARIA_ATTR,U=!1!==t.ALLOW_DATA_ATTR,G=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Y=t.SAFE_FOR_TEMPLATES||!1,V=t.WHOLE_DOCUMENT||!1,Q=t.RETURN_DOM||!1,Z=t.RETURN_DOM_FRAGMENT||!1,J=t.RETURN_TRUSTED_TYPE||!1,X=t.FORCE_BODY||!1,tt=!1!==t.SANITIZE_DOM,et=t.SANITIZE_NAMED_PROPS||!1,nt=!1!==t.KEEP_CONTENT,it=t.IN_PLACE||!1,P=t.ALLOWED_URI_REGEXP||dc,gt=t.NAMESPACE||dt,j=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&_t(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&_t(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(U=!1),Z&&(Q=!0),rt&&(B=Ys({},ic),F=[],!0===rt.html&&(Ys(B,Qs),Ys(F,rc)),!0===rt.svg&&(Ys(B,Zs),Ys(F,ac),Ys(F,sc)),!0===rt.svgFilters&&(Ys(B,Js),Ys(F,ac),Ys(F,sc)),!0===rt.mathMl&&(Ys(B,ec),Ys(F,oc),Ys(F,sc))),t.ADD_TAGS&&(B===R&&(B=Ws(B)),Ys(B,t.ADD_TAGS,vt)),t.ADD_ATTR&&(F===$&&(F=Ws(F)),Ys(F,t.ADD_ATTR,vt)),t.ADD_URI_SAFE_ATTR&&Ys(lt,t.ADD_URI_SAFE_ATTR,vt),t.FORBID_CONTENTS&&(at===ot&&(at=Ws(at)),Ys(at,t.FORBID_CONTENTS,vt)),nt&&(B["#text"]=!0),V&&Ys(B,["html","head","body"]),B.table&&(Ys(B,["tbody"]),delete z.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=t.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(g,a)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));As&&As(t),xt=t}},Et=Ys({},["mi","mo","mn","ms","mtext"]),St=Ys({},["foreignobject","desc","title","annotation-xml"]),Ct=Ys({},["title","style","font","a","script"]),At=Ys({},[...Zs,...Js,...tc]),Mt=Ys({},[...ec,...nc]),Lt=function(t){Ps(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch{t.remove()}},It=function(t,e){try{Ps(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch{Ps(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!F[t])if(Q||Z)try{Lt(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Ot=function(t){let e=null,n=null;if(X)t=""+t;else{const e=Fs(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===yt&>===dt&&(t=''+t+"");const r=v?v.createHTML(t):t;if(gt===dt)try{e=(new d).parseFromString(r,yt)}catch{}if(!e||!e.documentElement){e=k.createDocument(gt,"template",null);try{e.documentElement.innerHTML=pt?x:r}catch{}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),gt===dt?E.call(e,V?"html":"body")[0]:V?e.documentElement:a},Nt=function(t){return _.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Dt=function(t){return"function"==typeof c&&t instanceof c},Pt=function(t,e,i){C[t]&&Ns(C[t],(t=>{t.call(n,e,i,xt)}))},Bt=function(t){let e=null;if(Pt("beforeSanitizeElements",t,null),function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)}(t))return Lt(t),!0;const i=vt(t.nodeName);if(Pt("uponSanitizeElement",t,{tagName:i,allowedTags:B}),t.hasChildNodes()&&!Dt(t.firstElementChild)&&Hs(/<[/\w]/g,t.innerHTML)&&Hs(/<[/\w]/g,t.textContent))return Lt(t),!0;if(!B[i]||z[i]){if(!z[i]&&Ft(i)&&(j.tagNameCheck instanceof RegExp&&Hs(j.tagNameCheck,i)||j.tagNameCheck instanceof Function&&j.tagNameCheck(i)))return!1;if(nt&&!at[i]){const e=w(t)||t.parentNode,n=y(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i)e.insertBefore(b(n[i],!0),m(t))}return Lt(t),!0}return t instanceof l&&!function(t){let e=w(t);(!e||!e.tagName)&&(e={namespaceURI:gt,tagName:"template"});const n=Bs(t.tagName),i=Bs(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===ft?e.namespaceURI===dt?"svg"===n:e.namespaceURI===ht?"svg"===n&&("annotation-xml"===i||Et[i]):!!At[n]:t.namespaceURI===ht?e.namespaceURI===dt?"math"===n:e.namespaceURI===ft?"math"===n&&St[i]:!!Mt[n]:t.namespaceURI===dt?!(e.namespaceURI===ft&&!St[i]||e.namespaceURI===ht&&!Et[i])&&!Mt[n]&&(Ct[n]||!At[n]):!("application/xhtml+xml"!==yt||!bt[t.namespaceURI]))}(t)||("noscript"===i||"noembed"===i||"noframes"===i)&&Hs(/<\/no(script|embed|frames)/i,t.innerHTML)?(Lt(t),!0):(Y&&3===t.nodeType&&(e=t.textContent,Ns([A,M,L],(t=>{e=$s(e,t," ")})),t.textContent!==e&&(Ps(n.removed,{element:t.cloneNode()}),t.textContent=e)),Pt("afterSanitizeElements",t,null),!1)},Rt=function(t,e,n){if(tt&&("id"===e||"name"===e)&&(n in i||n in kt))return!1;if((!U||q[e]||!Hs(I,e))&&(!H||!Hs(O,e)))if(!F[e]||q[e]){if(!(Ft(t)&&(j.tagNameCheck instanceof RegExp&&Hs(j.tagNameCheck,t)||j.tagNameCheck instanceof Function&&j.tagNameCheck(t))&&(j.attributeNameCheck instanceof RegExp&&Hs(j.attributeNameCheck,e)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(e))||"is"===e&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Hs(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(!lt[e]&&!Hs(P,$s(n,D,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==js(n,"data:")||!st[t])&&(!G||Hs(N,$s(n,D,"")))&&n)return!1;return!0},Ft=function(t){return"annotation-xml"!==t&&t.indexOf("-")>0},$t=function(t){Pt("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};let r=e.length;for(;r--;){const a=e[r],{name:o,namespaceURI:s,value:c}=a,l=vt(o);let u="value"===o?c:zs(c);if(i.attrName=l,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Pt("uponSanitizeAttribute",t,i),u=i.attrValue,i.forceKeepAttr||(It(o,t),!i.keepAttr))continue;if(!K&&Hs(/\/>/i,u)){It(o,t);continue}Y&&Ns([A,M,L],(t=>{u=$s(u,t," ")}));const h=vt(t.nodeName);if(Rt(h,l,u)){if(et&&("id"===l||"name"===l)&&(It(o,t),u="user-content-"+u),v&&"object"==typeof g&&"function"==typeof g.getAttributeType&&!s)switch(g.getAttributeType(h,l)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{s?t.setAttributeNS(s,o,u):t.setAttribute(o,u),Ds(n.removed)}catch{}}}Pt("afterSanitizeAttributes",t,null)},jt=function t(e){let n=null;const i=Nt(e);for(Pt("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)Pt("uponSanitizeShadowNode",n,null),!Bt(n)&&(n.content instanceof o&&t(n.content),$t(n));Pt("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,s=null,l=null;if(pt=!t,pt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Dt(t)){if("function"!=typeof t.toString)throw Us("toString is not a function");if("string"!=typeof(t=t.toString()))throw Us("dirty is not a string, aborting")}if(!n.isSupported)return t;if(W||Tt(e),n.removed=[],"string"==typeof t&&(it=!1),it){if(t.nodeName){const e=vt(t.nodeName);if(!B[e]||z[e])throw Us("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)i=Ot("\x3c!----\x3e"),a=i.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Q&&!Y&&!V&&-1===t.indexOf("<"))return v&&J?v.createHTML(t):t;if(i=Ot(t),!i)return Q?null:J?x:""}i&&X&&Lt(i.firstChild);const u=Nt(it?t:i);for(;s=u.nextNode();)Bt(s)||(s.content instanceof o&&jt(s.content),$t(s));if(it)return t;if(Q){if(Z)for(l=T.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(F.shadowroot||F.shadowrootmode)&&(l=S.call(r,l,!0)),l}let h=V?i.outerHTML:i.innerHTML;return V&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Hs(bc,i.ownerDocument.doctype.name)&&(h="\n"+h),Y&&Ns([A,M,L],(t=>{h=$s(h,t," ")})),v&&J?v.createHTML(h):h},n.setConfig=function(){Tt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),W=!0},n.clearConfig=function(){xt=null,W=!1},n.isValidAttribute=function(t,e,n){xt||Tt({});const i=vt(t),r=vt(e);return Rt(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&(C[t]=C[t]||[],Ps(C[t],e))},n.removeHook=function(t){if(C[t])return Ds(C[t])},n.removeHooks=function(t){C[t]&&(C[t]=[])},n.removeAllHooks=function(){C={}},n}();const wc=//gi,vc=(()=>{let t=!1;return()=>{t||(function(){const t="data-temp-href-target";yc.addHook("beforeSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")})),yc.addHook("afterSanitizeAttributes",(e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}(),t=!0)}})(),xc=t=>(vc(),yc.sanitize(t)),kc=(t,e)=>{var n;if(!1!==(null==(n=e.flowchart)?void 0:n.htmlLabels)){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=xc(t):"loose"!==n&&(t=(t=(t=Ec(t)).replace(//g,">")).replace(/=/g,"="),t=Tc(t))}return t},_c=(t,e)=>t&&(e.dompurifyConfig?yc.sanitize(kc(t,e),e.dompurifyConfig).toString():yc.sanitize(kc(t,e),{FORBID_TAGS:["style"]}).toString()),Tc=t=>t.replace(/#br#/g,"
"),Ec=t=>t.replace(wc,"#br#"),Sc=t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),Cc=function(t){const e=t.split(/(,)/),n=[];for(let t=0;t0&&t+1Math.max(0,t.split(e).length-1),Mc=(t,e)=>{const n=Ac(t,"~"),i=Ac(e,"~");return 1===n&&1===i},Lc=t=>{const e=Ac(t,"~");let n=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const i=[...t];let r=i.indexOf("~"),a=i.lastIndexOf("~");for(;-1!==r&&-1!==a&&r!==a;)i[r]="<",i[a]=">",r=i.indexOf("~"),a=i.lastIndexOf("~");return n&&i.unshift("~"),i.join("")},Ic=()=>void 0!==window.MathMLElement,Oc=/\$\$(.*)\$\$/g,Nc=t=>{var e;return((null==(e=t.match(Oc))?void 0:e.length)??0)>0},Dc=async(t,e)=>{t=await Pc(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const i=document.querySelector("body");null==i||i.insertAdjacentElement("beforeend",n);const r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},Pc=async(t,e)=>{if(!Nc(t))return t;if(!Ic()&&!e.legacyMathML)return t.replace(Oc,"MathML is unsupported in this environment.");const{default:n}=await Promise.resolve().then((()=>rk));return t.split(wc).map((t=>Nc(t)?`\n
\n ${t}\n
\n `:`
${t}
`)).join("").replace(Oc,((t,e)=>n.renderToString(e,{throwOnError:!0,displayMode:!0,output:Ic()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,"")))},Bc={getRows:t=>t?Ec(t).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:_c,sanitizeTextOrArray:(t,e)=>"string"==typeof t?_c(t,e):t.flat().map((t=>_c(t,e))),hasBreaks:t=>wc.test(t),splitBreaks:t=>t.split(wc),lineBreakRegex:wc,removeScript:xc,getUrl:t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},evaluate:Sc,getMax:function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)},getMin:function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}},Rc={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const r=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-r;switch(i){case"r":return 255*Rc.hue2rgb(a,r,t+1/3);case"g":return 255*Rc.hue2rgb(a,r,t);case"b":return 255*Rc.hue2rgb(a,r,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),a=Math.min(t,e,n),o=(r+a)/2;if("l"===i)return 100*o;if(r===a)return 0;const s=r-a;if("s"===i)return 100*(o>.5?s/(2-r-a):s/(r+a));switch(r){case t:return 60*((e-n)/s+(ee>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},$c={};for(let t=0;t<=255;t++)$c[t]=Fc.unit.dec2hex(t);const jc=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=Fc.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=Fc.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=Fc.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=Fc.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=Fc.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=Fc.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),Fc.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),Fc.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),Fc.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),Fc.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),Fc.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),Fc.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),zc={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(zc.re);if(!e)return;const n=e[1],i=parseInt(n,16),r=n.length,a=r%4==0,o=r>4,s=o?1:17,c=o?8:4,l=a?0:-1,u=o?255:15;return jc.set({r:(i>>c*(l+3)&u)*s,g:(i>>c*(l+2)&u)*s,b:(i>>c*(l+1)&u)*s,a:a?(i&u)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`#${$c[Math.round(e)]}${$c[Math.round(n)]}${$c[Math.round(i)]}${$c[Math.round(255*r)]}`:`#${$c[Math.round(e)]}${$c[Math.round(n)]}${$c[Math.round(i)]}`}},qc=zc,Hc={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Hc.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return Fc.channel.clamp.h(.9*parseFloat(t));case"rad":return Fc.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return Fc.channel.clamp.h(360*parseFloat(t))}}return Fc.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(Hc.re);if(!n)return;const[,i,r,a,o,s]=n;return jc.set({h:Hc._hue2deg(i),s:Fc.channel.clamp.s(parseFloat(r)),l:Fc.channel.clamp.l(parseFloat(a)),a:o?Fc.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:i,a:r}=t;return r<1?`hsla(${Fc.lang.round(e)}, ${Fc.lang.round(n)}%, ${Fc.lang.round(i)}%, ${r})`:`hsl(${Fc.lang.round(e)}, ${Fc.lang.round(n)}%, ${Fc.lang.round(i)}%)`}},Uc=Hc,Gc={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Gc.colors[t];if(e)return qc.parse(e)},stringify:t=>{const e=qc.stringify(t);for(const t in Gc.colors)if(Gc.colors[t]===e)return t}},Kc=Gc,Yc={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(Yc.re);if(!n)return;const[,i,r,a,o,s,c,l,u]=n;return jc.set({r:Fc.channel.clamp.r(r?2.55*parseFloat(i):parseFloat(i)),g:Fc.channel.clamp.g(o?2.55*parseFloat(a):parseFloat(a)),b:Fc.channel.clamp.b(c?2.55*parseFloat(s):parseFloat(s)),a:l?Fc.channel.clamp.a(u?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`rgba(${Fc.lang.round(e)}, ${Fc.lang.round(n)}, ${Fc.lang.round(i)}, ${Fc.lang.round(r)})`:`rgb(${Fc.lang.round(e)}, ${Fc.lang.round(n)}, ${Fc.lang.round(i)})`}},Vc=Yc,Wc=t=>{if("string"!=typeof t)return t;const e=qc.parse(t)||Vc.parse(t)||Uc.parse(t)||Kc.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},Xc=t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?Uc.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Vc.stringify(t):qc.stringify(t),Qc=(t,e)=>{const n=Wc(t);for(const t in e)n[t]=Fc.channel.clamp[t](e[t]);return Xc(n)},Zc=(t,e,n=0,i=1)=>{if("number"!=typeof t)return Qc(t,{a:e});const r=jc.set({r:Fc.channel.clamp.r(t),g:Fc.channel.clamp.g(e),b:Fc.channel.clamp.b(n),a:Fc.channel.clamp.a(i)});return Xc(r)},Jc=(t,e)=>Fc.lang.round(Wc(t)[e]),tl=t=>!(t=>(t=>{const{r:e,g:n,b:i}=Wc(t),r=.2126*Fc.channel.toLinear(e)+.7152*Fc.channel.toLinear(n)+.0722*Fc.channel.toLinear(i);return Fc.lang.round(r)})(t)>=.5)(t),el=(t,e,n)=>{const i=Wc(t),r=i[e],a=Fc.channel.clamp[e](r+n);return r!==a&&(i[e]=a),Xc(i)},nl=(t,e)=>el(t,"l",e),il=(t,e)=>el(t,"l",-e),rl=(t,e)=>{const n=Wc(t),i={};for(const t in e)e[t]&&(i[t]=n[t]+e[t]);return Qc(t,i)},al=(t,e=100)=>{const n=Wc(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((t,e,n=50)=>{const{r:i,g:r,b:a,a:o}=Wc(t),{r:s,g:c,b:l,a:u}=Wc(e),h=n/100,f=2*h-1,d=o-u,g=((f*d==-1?f:(f+d)/(1+f*d))+1)/2,p=1-g;return Zc(i*g+s*p,r*g+c*p,a*g+l*p,o*h+u*(1-h))})(n,t,e)},ol=(t,e)=>rl(t,e?{s:-40,l:10}:{s:-40,l:-10}),sl="#ffffff",cl="#f2f2f2",ll=t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=rl(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=rl(this.primaryColor,{h:-160}),this.primaryBorderColor=ol(this.primaryColor,this.darkMode),this.secondaryBorderColor=ol(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ol(this.tertiaryColor,this.darkMode),this.primaryTextColor=al(this.primaryColor),this.secondaryTextColor=al(this.secondaryColor),this.tertiaryTextColor=al(this.tertiaryColor),this.lineColor=al(this.background),this.textColor=al(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Zc(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,e,n,i,r,a,o,s,c,l,u;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||rl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||rl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||rl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||rl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||rl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||rl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||rl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||rl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||rl(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||il(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||il(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e};class ul{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=nl(this.contrast,55),this.background="#ffffff",this.tertiaryColor=rl(this.primaryColor,{h:-160}),this.primaryBorderColor=ol(this.primaryColor,this.darkMode),this.secondaryBorderColor=ol(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ol(this.tertiaryColor,this.darkMode),this.primaryTextColor=al(this.primaryColor),this.secondaryTextColor=al(this.secondaryColor),this.tertiaryTextColor=al(this.tertiaryColor),this.lineColor=al(this.background),this.textColor=al(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,n,i,r,a,o,s,c,l,u;this.secondBkg=nl(this.contrast,55),this.border2=this.contrast,this.actorBorder=nl(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const hl={base:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,e,n,i,r,a,o,s,c,l,u;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||rl(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||rl(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ol(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ol(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ol(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ol(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||al(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||al(this.tertiaryColor),this.lineColor=this.lineColor||al(this.background),this.arrowheadColor=this.arrowheadColor||al(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?il(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||"grey",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||il(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||al(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||nl(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||rl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||rl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||rl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||rl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||rl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||rl(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||rl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||rl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||rl(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},dark:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nl(this.primaryColor,16),this.tertiaryColor=rl(this.primaryColor,{h:-160}),this.primaryBorderColor=al(this.background),this.secondaryBorderColor=ol(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ol(this.tertiaryColor,this.darkMode),this.primaryTextColor=al(this.primaryColor),this.secondaryTextColor=al(this.secondaryColor),this.tertiaryTextColor=al(this.tertiaryColor),this.lineColor=al(this.background),this.textColor=al(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nl(al("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Zc(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=il("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=il(this.sectionBkgColor,10),this.taskBorderColor=Zc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Zc(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,e,n,i,r,a,o,s,c,l,u;this.secondBkg=nl(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=nl(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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=nl(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=rl(this.primaryColor,{h:64}),this.fillType3=rl(this.secondaryColor,{h:64}),this.fillType4=rl(this.primaryColor,{h:-64}),this.fillType5=rl(this.secondaryColor,{h:-64}),this.fillType6=rl(this.primaryColor,{h:128}),this.fillType7=rl(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||rl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||rl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||rl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||rl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||rl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||rl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||rl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||rl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||rl(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},default:{getThemeVariables:ll},forest:{getThemeVariables:t=>{const e=new 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=nl("#cde498",10),this.primaryBorderColor=ol(this.primaryColor,this.darkMode),this.secondaryBorderColor=ol(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ol(this.tertiaryColor,this.darkMode),this.primaryTextColor=al(this.primaryColor),this.secondaryTextColor=al(this.secondaryColor),this.tertiaryTextColor=al(this.primaryColor),this.lineColor=al(this.background),this.textColor=al(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,n,i,r,a,o,s,c,l,u;this.actorBorder=il(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||rl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||rl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||rl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||rl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||rl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||rl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||rl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||rl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||rl(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||il(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||il(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},neutral:{getThemeVariables:t=>{const e=new ul;return e.calculate(t),e}}},fl={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},dl={...fl,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:hl.default.getThemeVariables(),sequence:{...fl.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...fl.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fl.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...fl.pie,useWidth:984},xyChart:{...fl.xyChart,useWidth:void 0},requirement:{...fl.requirement,useWidth:void 0},gitGraph:{...fl.gitGraph,useMaxWidth:!1},sankey:{...fl.sankey,useMaxWidth:!1}},gl=(t,e="")=>Object.keys(t).reduce(((n,i)=>Array.isArray(t[i])?n:"object"==typeof t[i]&&null!==t[i]?[...n,e+i,...gl(t[i],"")]:[...n,e+i]),[]),pl=new Set(gl(dl,"")),bl=dl,ml=t=>{if(l.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t))return void t.forEach((t=>ml(t)));for(const e of Object.keys(t)){if(l.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!pl.has(e)||null==t[e]){l.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){l.debug("sanitizing object",e),ml(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const i of n)e.includes(i)&&(l.debug("sanitizing css option",e),t[e]=yl(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];null!=n&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}l.debug("After sanitization",t)}},yl=t=>{let e=0,n=0;for(const i of t){if(e{for(const{id:e,detector:n,loader:i}of t)Sl(e,n,i)},Sl=(t,e,n)=>{_l[t]?l.error(`Detector with key ${t} already exists`):_l[t]={detector:e,loader:n},l.debug(`Detector with key ${t} added${n?" with loader":""}`)},Cl=(t,e,{depth:n=2,clobber:i=!1}={})=>{const r={depth:n,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>Cl(t,e,r))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((r=>{"object"!=typeof e[r]||void 0!==t[r]&&"object"!=typeof t[r]?(i||"object"!=typeof t[r]&&"object"!=typeof e[r])&&(t[r]=e[r]):(void 0===t[r]&&(t[r]=Array.isArray(e[r])?[]:{}),t[r]=Cl(t[r],e[r],{depth:n-1,clobber:i}))})),t)},Al=Cl,Ml="object"==typeof global&&global&&global.Object===Object&&global;var Ll="object"==typeof self&&self&&self.Object===Object&&self;const Il=Ml||Ll||Function("return this")(),Ol=Il.Symbol;var Nl=Object.prototype,Dl=Nl.hasOwnProperty,Pl=Nl.toString,Bl=Ol?Ol.toStringTag:void 0,Rl=Object.prototype.toString,Fl="[object Null]",$l="[object Undefined]",jl=Ol?Ol.toStringTag:void 0;function zl(t){return null==t?void 0===t?$l:Fl:jl&&jl in Object(t)?function(t){var e=Dl.call(t,Bl),n=t[Bl];try{t[Bl]=void 0;var i=!0}catch{}var r=Pl.call(t);return i&&(e?t[Bl]=n:delete t[Bl]),r}(t):function(t){return Rl.call(t)}(t)}function ql(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Hl="[object AsyncFunction]",Ul="[object Function]",Gl="[object GeneratorFunction]",Kl="[object Proxy]";function Yl(t){if(!ql(t))return!1;var e=zl(t);return e==Ul||e==Gl||e==Hl||e==Kl}const Vl=Il["__core-js_shared__"];var Wl=function(){var t=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Xl=Function.prototype.toString;function Ql(t){if(null!=t){try{return Xl.call(t)}catch{}try{return t+""}catch{}}return""}var Zl=/^\[object .+?Constructor\]$/,Jl=Function.prototype,tu=Object.prototype,eu=Jl.toString,nu=tu.hasOwnProperty,iu=RegExp("^"+eu.call(nu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ru(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!ql(t)||function(t){return!!Wl&&Wl in t}(t))&&(Yl(t)?iu:Zl).test(Ql(t))}(n)?n:void 0}const au=ru(Object,"create");var ou=Object.prototype.hasOwnProperty,su=Object.prototype.hasOwnProperty;function cu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},fu.prototype.set=function(t,e){var n=this.__data__,i=uu(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};const du=ru(Il,"Map");function gu(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function pu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Wu}function Qu(t){return null!=t&&Xu(t.length)&&!Yl(t)}function Zu(t){return zu(t)&&Qu(t)}var Ju="object"==typeof exports&&exports&&!exports.nodeType&&exports,th=Ju&&"object"==typeof module&&module&&!module.nodeType&&module,eh=th&&th.exports===Ju?Il.Buffer:void 0;const nh=(eh?eh.isBuffer:void 0)||function(){return!1};var ih="[object Object]",rh=Function.prototype,ah=Object.prototype,oh=rh.toString,sh=ah.hasOwnProperty,ch=oh.call(Object);var lh={};function uh(t){return function(e){return t(e)}}lh["[object Float32Array]"]=lh["[object Float64Array]"]=lh["[object Int8Array]"]=lh["[object Int16Array]"]=lh["[object Int32Array]"]=lh["[object Uint8Array]"]=lh["[object Uint8ClampedArray]"]=lh["[object Uint16Array]"]=lh["[object Uint32Array]"]=!0,lh["[object Arguments]"]=lh["[object Array]"]=lh["[object ArrayBuffer]"]=lh["[object Boolean]"]=lh["[object DataView]"]=lh["[object Date]"]=lh["[object Error]"]=lh["[object Function]"]=lh["[object Map]"]=lh["[object Number]"]=lh["[object Object]"]=lh["[object RegExp]"]=lh["[object Set]"]=lh["[object String]"]=lh["[object WeakMap]"]=!1;var hh="object"==typeof exports&&exports&&!exports.nodeType&&exports,fh=hh&&"object"==typeof module&&module&&!module.nodeType&&module,dh=fh&&fh.exports===hh&&Ml.process;const gh=function(){try{return fh&&fh.require&&fh.require("util").types||dh&&dh.binding&&dh.binding("util")}catch{}}();var ph=gh&&gh.isTypedArray,bh=ph?uh(ph):function(t){return zu(t)&&Xu(t.length)&&!!lh[zl(t)]};const mh=bh;function yh(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wh=Object.prototype.hasOwnProperty;function vh(t,e,n){var i=t[e];(!wh.call(t,e)||!lu(i,n)||void 0===n&&!(e in t))&&vu(t,e,n)}function xh(t,e,n,i){var r=!n;n||(n={});for(var a=-1,o=e.length;++a-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Bh);const $h=Fh;function jh(t,e){return $h(Nh(t,e,Ih),t+"")}function zh(t,e,n){if(!ql(n))return!1;var i=typeof e;return!!("number"==i?Qu(n)&&Th(e,n.length):"string"==i&&e in n)&&lu(n[e],t)}var qh=function(t){return jh((function(e,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,o&&zh(n[0],n[1],o)&&(a=r<3?void 0:a,r=1),e=Object(e);++i{const n=Math.pow(10,e);return Math.round(t*n)/n},Qh=(t,e)=>{let n,i=e;for(const e of t){if(n){const t=Wh(e,n);if(t=1)return{x:e.x,y:e.y};if(r>0&&r<1)return{x:Xh((1-r)*n.x+r*e.x,5),y:Xh((1-r)*n.y+r*e.y,5)}}}n=e}throw new Error("Could not find a suitable point for the given distance")};function Zh(t){let e="",n="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":e=e+i+";");return{style:e,labelStyle:n}}let Jh=0;const tf=()=>(Jh++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Jh),ef=t=>function(t){let e="";for(let n=0;n{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},n),Bc.lineBreakRegex.test(t)))return t;const i=t.split(" "),r=[];let a="";return i.forEach(((t,o)=>{const s=sf(`${t} `,n),c=sf(a,n);if(s>e){const{hyphenatedStrings:i,remainingWord:o}=af(t,e,"-",n);r.push(a,...i),a=o}else c+s>=e?(r.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===i.length&&r.push(a)})),r.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),af=bu(((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...t],a=[];let o="";return r.forEach(((t,s)=>{const c=`${o}${t}`;if(sf(c,i)>=e){const t=s+1,e=r.length===t,i=`${c}${n}`;a.push(e?c:i),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),((t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function of(t,e){return cf(t,e).height}function sf(t,e){return cf(t,e).width}const cf=bu(((t,e)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:r=400}=e;if(!t)return{width:0,height:0};const[,a]=hf(n),o=["sans-serif",i],s=t.split(Bc.lineBreakRegex),c=[],l=ee("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const u=l.append("svg");for(const t of o){let e=0;const n={width:0,height:0,lineHeight:0};for(const i of s){const o={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:""};o.text=i||"​";const s=nf(u,o).style("font-size",a).style("font-weight",r).style("font-family",t),c=(s._groups||s)[0][0].getBBox();if(0===c.width&&0===c.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,c.width)),e=Math.round(c.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}c.push(n)}return u.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));let lf;function uf(t){return"str"in t}const hf=t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function ff(t,e){return Hh({},t,e)}const df={assignWithDepth:Al,wrapLabel:rf,calculateTextHeight:of,calculateTextWidth:sf,calculateTextDimensions:cf,cleanAndMerge:ff,detectInit:function(t,e){const n=Kh(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));ml(t),i=Al(i,[...t])}else i=n.args;if(!i)return;let r=Tl(t,e);const a="config";return void 0!==i[a]&&("flowchart-v2"===r&&(r="flowchart"),i[r]=i[a],delete i[a]),i},detectDirective:Kh,isSubstringInArray:function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1},interpolateToCurve:Vh,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,n=0;return t.forEach((t=>{n+=Wh(t,e),e=t})),Qh(t,n/2)}(t)},calcCardinalityPosition:(t,e,n)=>{l.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const i=Qh(e,25),r=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(a)*r+(e[0].x+i.x)/2,o.y=-Math.cos(a)*r+(e[0].y+i.y)/2,o},calcTerminalLabelPosition:function(t,e,n){const i=structuredClone(n);l.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const r=Qh(i,25+t),a=10+.5*t,o=Math.atan2(i[0].y-r.y,i[0].x-r.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(o+Math.PI)*a+(i[0].x+r.x)/2,s.y=-Math.cos(o+Math.PI)*a+(i[0].y+r.y)/2):"end_right"===e?(s.x=Math.sin(o-Math.PI)*a+(i[0].x+r.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(i[0].y+r.y)/2-5):"end_left"===e?(s.x=Math.sin(o)*a+(i[0].x+r.x)/2-5,s.y=-Math.cos(o)*a+(i[0].y+r.y)/2-5):(s.x=Math.sin(o)*a+(i[0].x+r.x)/2,s.y=-Math.cos(o)*a+(i[0].y+r.y)/2),s},formatUrl:function(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?f.sanitizeUrl(n):n},getStylesFromArray:Zh,generateId:tf,random:ef,runFunc:(t,...e)=>{const n=t.split("."),i=n.length-1,r=n[i];let a=window;for(let e=0;e{var r;if(!i)return;const a=null==(r=t.node())?void 0:r.getBBox();a&&t.append("text").text(i).attr("x",a.x+a.width/2).attr("y",-n).attr("class",e)},parseFontSize:hf,InitIDGenerator:class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}}},gf=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var pf="comm",bf="rule",mf="decl",yf=Math.abs,wf=String.fromCharCode;function vf(t){return t.trim()}function xf(t,e,n){return t.replace(e,n)}function kf(t,e,n){return t.indexOf(e,n)}function _f(t,e){return 0|t.charCodeAt(e)}function Tf(t,e,n){return t.slice(e,n)}function Ef(t){return t.length}function Sf(t,e){return e.push(t),t}var Cf=1,Af=1,Mf=0,Lf=0,If=0,Of="";function Nf(t,e,n,i,r,a,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:a,line:Cf,column:Af,length:o,return:"",siblings:s}}function Df(){return If=Lf2||Ff(If)>3?"":" "}function zf(t,e){for(;--e&&Df()&&!(If<48||If>102||If>57&&If<65||If>70&&If<97););return Rf(t,Bf()+(e<6&&32==Pf()&&32==Df()))}function qf(t){for(;Df();)switch(If){case t:return Lf;case 34:case 39:34!==t&&39!==t&&qf(If);break;case 40:41===t&&qf(t);break;case 92:Df()}return Lf}function Hf(t,e){for(;Df()&&t+If!==57&&(t+If!==84||47!==Pf()););return"/*"+Rf(e,Lf-1)+"*"+wf(47===t?t:Df())}function Uf(t){for(;!Ff(Pf());)Df();return Rf(t,Lf)}function Gf(t){return function(t){return Of="",t}(Kf("",null,null,null,[""],t=function(t){return Cf=Af=1,Mf=Ef(Of=t),Lf=0,[]}(t),0,[0],t))}function Kf(t,e,n,i,r,a,o,s,c){for(var l=0,u=0,h=o,f=0,d=0,g=0,p=1,b=1,m=1,y=0,w="",v=r,x=a,k=i,_=w;b;)switch(g=y,y=Df()){case 40:if(108!=g&&58==_f(_,h-1)){-1!=kf(_+=xf($f(y),"&","&\f"),"&\f",yf(l?s[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:_+=$f(y);break;case 9:case 10:case 13:case 32:_+=jf(g);break;case 92:_+=zf(Bf()-1,7);continue;case 47:switch(Pf()){case 42:case 47:Sf(Vf(Hf(Df(),Bf()),e,n,c),c);break;default:_+="/"}break;case 123*p:s[l++]=Ef(_)*m;case 125*p:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+u:-1==m&&(_=xf(_,/\f/g,"")),d>0&&Ef(_)-h&&Sf(d>32?Wf(_+";",i,n,h-1,c):Wf(xf(_," ","")+";",i,n,h-2,c),c);break;case 59:_+=";";default:if(Sf(k=Yf(_,e,n,l,u,r,s,w,v=[],x=[],h,a),a),123===y)if(0===u)Kf(_,e,k,k,v,a,h,s,x);else switch(99===f&&110===_f(_,3)?100:f){case 100:case 108:case 109:case 115:Kf(t,k,k,i&&Sf(Yf(t,k,k,0,0,r,s,w,r,v=[],h,x),x),r,x,h,s,i?v:x);break;default:Kf(_,k,k,k,[""],x,0,s,x)}}l=u=d=0,p=m=1,w=_="",h=o;break;case 58:h=1+Ef(_),d=g;default:if(p<1)if(123==y)--p;else if(125==y&&0==p++&&125==(If=Lf>0?_f(Of,--Lf):0,Af--,10===If&&(Af=1,Cf--),If))continue;switch(_+=wf(y),y*p){case 38:m=u>0?1:(_+="\f",-1);break;case 44:s[l++]=(Ef(_)-1)*m,m=1;break;case 64:45===Pf()&&(_+=$f(Df())),f=Pf(),u=h=Ef(w=_+=Uf(Bf())),y++;break;case 45:45===g&&2==Ef(_)&&(p=0)}}return a}function Yf(t,e,n,i,r,a,o,s,c,l,u,h){for(var f=r-1,d=0===r?a:[""],g=function(t){return t.length}(d),p=0,b=0,m=0;p0?d[y]+" "+w:xf(w,/&\f/g,d[y])))&&(c[m++]=v);return Nf(t,e,n,0===r?bf:s,c,l,u,h)}function Vf(t,e,n,i){return Nf(t,e,n,pf,wf(If),Tf(t,2,-2),0,i)}function Wf(t,e,n,i,r){return Nf(t,e,n,mf,Tf(t,0,i),Tf(t,i+1,-1),i,r)}function Xf(t,e){for(var n="",i=0;i{let n=Al({},t),i={};for(const t of e)cd(t),i=Al(i,t);if(n=Al(n,i),i.theme&&i.theme in hl){const t=Al({},td),e=Al(t.themeVariables||{},i.themeVariables);n.theme&&n.theme in hl&&(n.themeVariables=hl[n.theme].getThemeVariables(e))}return id=n,fd(id),id},ad=()=>Al({},ed),od=t=>(fd(t),Al(id,t),sd()),sd=()=>Al({},id),cd=t=>{t&&(["secure",...ed.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(l.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&cd(t[e])})))},ld=(t=ed)=>{nd=[],rd(t,nd)},ud={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},hd={},fd=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&(t=>{hd[t]||(l.warn(ud[t]),hd[t]=!0)})("LAZY_LOAD_DEPRECATED")},dd={id:"c4",detector:t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>Uk));return{id:"c4",diagram:t}}},gd="flowchart",pd={id:gd,detector:(t,e)=>{var n,i;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&/^\s*graph/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>II));return{id:gd,diagram:t}}},bd="flowchart-v2",md={id:bd,detector:(t,e)=>{var n,i,r;return"dagre-d3"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&(!(!/^\s*graph/.test(t)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer))||/^\s*flowchart/.test(t))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>OI));return{id:bd,diagram:t}}},yd={id:"er",detector:t=>/^\s*erDiagram/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>JI));return{id:"er",diagram:t}}},wd="gitGraph",vd={id:wd,detector:t=>/^\s*gitGraph/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>MO));return{id:wd,diagram:t}}},xd="gantt",kd={id:xd,detector:t=>/^\s*gantt/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>kN));return{id:xd,diagram:t}}},_d="info",Td={id:_d,detector:t=>/^\s*info/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>SN));return{id:_d,diagram:t}}},Ed={id:"pie",detector:t=>/^\s*pie/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>PN));return{id:"pie",diagram:t}}},Sd="quadrantChart",Cd={id:Sd,detector:t=>/^\s*quadrantChart/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>qN));return{id:Sd,diagram:t}}},Ad="xychart",Md={id:Ad,detector:t=>/^\s*xychart-beta/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>xD));return{id:Ad,diagram:t}}},Ld="requirement",Id={id:Ld,detector:t=>/^\s*requirement(Diagram)?/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>FD));return{id:Ld,diagram:t}}},Od="sequence",Nd={id:Od,detector:t=>/^\s*sequenceDiagram/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>GP));return{id:Od,diagram:t}}},Dd="class",Pd={id:Dd,detector:(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)&&/^\s*classDiagram/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>wB));return{id:Dd,diagram:t}}},Bd="classDiagram",Rd={id:Bd,detector:(t,e)=>{var n;return!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer))||/^\s*classDiagram-v2/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>TB));return{id:Bd,diagram:t}}},Fd="state",$d={id:Fd,detector:(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer)&&/^\s*stateDiagram/.test(t)},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>fR));return{id:Fd,diagram:t}}},jd="stateDiagram",zd={id:jd,detector:(t,e)=>{var n;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>RR));return{id:jd,diagram:t}}},qd="journey",Hd={id:qd,detector:t=>/^\s*journey/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>sF));return{id:qd,diagram:t}}},Ud=function(t,e,n,i){const r=function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i}(e,n,i);!function(t,e){for(let n of e)t.attr(n[0],n[1])}(t,r)},Gd=function(t,e,n,i){const r=e.node().getBBox(),a=r.width,o=r.height;l.info(`SVG bounds: ${a}x${o}`,r);let s=0,c=0;l.info(`Graph bounds: ${s}x${c}`,t),s=a+2*n,c=o+2*n,l.info(`Calculated bounds: ${s}x${c}`),Ud(e,c,s,i);const u=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",u)},Kd={};let Yd="",Vd="",Wd="";const Xd=t=>_c(t,sd()),Qd=()=>{Yd="",Wd="",Vd=""},Zd=t=>{Yd=Xd(t).replace(/^\s+/g,"")},Jd=()=>Yd,tg=t=>{Wd=Xd(t).replace(/\n\s+/g,"\n")},eg=()=>Wd,ng=t=>{Vd=Xd(t)},ig=()=>Vd,rg=Object.freeze(Object.defineProperty({__proto__:null,clear:Qd,getAccDescription:eg,getAccTitle:Jd,getDiagramTitle:ig,setAccDescription:tg,setAccTitle:Zd,setDiagramTitle:ng},Symbol.toStringTag,{value:"Module"})),ag=l,og=u,sg=sd,cg=od,lg=Jf,ug=t=>_c(t,sg()),hg=Gd,fg={},dg=(t,e,n)=>{var i;if(fg[t])throw new Error(`Diagram ${t} already registered.`);fg[t]=e,n&&Sl(t,n),((t,e)=>{void 0!==e&&(Kd[t]=e)})(t,e.styles),null==(i=e.injectUtils)||i.call(e,ag,og,sg,ug,hg,rg,(()=>{}))},gg=t=>{if(t in fg)return fg[t];throw new pg(t)};class pg extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const bg=t=>{var e;const{securityLevel:n}=sg();let i=ee("body");if("sandbox"===n){const n=(null==(e=ee(`#i${t}`).node())?void 0:e.contentDocument)??document;i=ee(n.body)}return i.select(`#${t}`)},mg={draw:(t,e,n)=>{l.debug("rendering svg for syntax error\n");const i=bg(e),r=i.append("g");i.attr("viewBox","0 0 2412 512"),Ud(i,100,512,!0),r.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"),r.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"),r.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"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.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"),r.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"),r.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"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}},yg=mg,wg={db:{},renderer:mg,parser:{parser:{yy:{}},parse:()=>{}}},vg="flowchart-elk",xg={id:vg,detector:(t,e)=>{var n;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>vF));return{id:vg,diagram:t}}},kg="timeline",_g={id:kg,detector:t=>/^\s*timeline/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>UF));return{id:kg,diagram:t}}},Tg="mindmap",Eg={id:Tg,detector:t=>/^\s*mindmap/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>h$));return{id:Tg,diagram:t}}},Sg="sankey",Cg={id:Sg,detector:t=>/^\s*sankey-beta/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>ej));return{id:Sg,diagram:t}}},Ag="block",Mg={id:Ag,detector:t=>/^\s*block-beta/.test(t),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>Oj));return{id:Ag,diagram:t}}};let Lg=!1;const Ig=()=>{Lg||(Lg=!0,dg("error",wg,(t=>"error"===t.toLowerCase().trim())),dg("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),El(dd,Rd,Pd,yd,kd,Td,Ed,Id,Nd,xg,md,pd,Eg,_g,vd,zd,$d,Hd,Cd,Cg,Md,Mg))};class Og{constructor(t,e={}){this.text=t,this.metadata=e,this.type="graph",this.text=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}(t),this.text+="\n";const n=sd();try{this.type=Tl(t,n)}catch(t){this.type="error",this.detectError=t}const i=gg(this.type);l.debug("Type "+this.type),this.db=i.db,this.renderer=i.renderer,this.parser=i.parser,this.parser.parser.yy=this.db,this.init=i.init,this.parse()}parse(){var t,e,n,i,r;if(this.detectError)throw this.detectError;null==(e=(t=this.db).clear)||e.call(t);const a=sd();null==(n=this.init)||n.call(this,a),this.metadata.title&&(null==(r=(i=this.db).setDiagramTitle)||r.call(i,this.metadata.title)),this.parser.parse(this.text)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}}let Ng=[];const Dg=Bu(Object.keys,Object);var Pg=Object.prototype.hasOwnProperty;function Bg(t){if(!$u(t))return Dg(t);var e=[];for(var n in Object(t))Pg.call(t,n)&&"constructor"!=n&&e.push(n);return e}const Rg=ru(Il,"DataView"),Fg=ru(Il,"Promise"),$g=ru(Il,"Set"),jg=ru(Il,"WeakMap");var zg="[object Map]",qg="[object Promise]",Hg="[object Set]",Ug="[object WeakMap]",Gg="[object DataView]",Kg=Ql(Rg),Yg=Ql(du),Vg=Ql(Fg),Wg=Ql($g),Xg=Ql(jg),Qg=zl;(Rg&&Qg(new Rg(new ArrayBuffer(1)))!=Gg||du&&Qg(new du)!=zg||Fg&&Qg(Fg.resolve())!=qg||$g&&Qg(new $g)!=Hg||jg&&Qg(new jg)!=Ug)&&(Qg=function(t){var e=zl(t),n="[object Object]"==e?t.constructor:void 0,i=n?Ql(n):"";if(i)switch(i){case Kg:return Gg;case Yg:return zg;case Vg:return qg;case Wg:return Hg;case Xg:return Ug}return e});const Zg=Qg;var Jg=Object.prototype.hasOwnProperty;function tp(t){if(null==t)return!0;if(Qu(t)&&(Vu(t)||"string"==typeof t||"function"==typeof t.splice||nh(t)||mh(t)||Yu(t)))return!t.length;var e=Zg(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if($u(t))return!Bg(t).length;for(var n in t)if(Jg.call(t,n))return!1;return!0}const ep=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function np(t){return typeof t>"u"||null===t}var ip={isNothing:np,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:np(t)?[]:[t]},repeat:function(t,e){var n,i="";for(n=0;ns&&(e=i-s+(a=" ... ").length),n-i>s&&(n=i+s-(o=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+o,pos:i-e+a.length}}function cp(t,e){return ip.repeat(" ",e-t.length)+t}var lp=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],a=[],o=-1;n=i.exec(t.buffer);)a.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s,c,l="",u=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)c=sp(t.buffer,r[o-s],a[o-s],t.position-(r[o]-r[o-s]),h),l=ip.repeat(" ",e.indent)+cp((t.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=sp(t.buffer,r[o],a[o],t.position,h),l+=ip.repeat(" ",e.indent)+cp((t.line+1).toString(),u)+" | "+c.str+"\n",l+=ip.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)c=sp(t.buffer,r[o+s],a[o+s],t.position-(r[o]-r[o+s]),h),l+=ip.repeat(" ",e.indent)+cp((t.line+s+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},up=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],hp=["scalar","sequence","mapping"],fp=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===up.indexOf(e))throw new op('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}(e.styleAliases||null),-1===hp.indexOf(this.kind))throw new op('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function dp(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function gp(t){return this.extend(t)}gp.prototype.extend=function(t){var e=[],n=[];if(t instanceof fp)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new op("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof fp))throw new op("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new op("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new op("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof fp))throw new op("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(gp.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=dp(i,"implicit"),i.compiledExplicit=dp(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Sp=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Cp=/^[-+]?[0-9]+e/,Ap=new fp("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return!(null===t||!Sp.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||ip.isNegativeZero(t))},represent:function(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ip.isNegativeZero(t))return"-0.0";return n=t.toString(10),Cp.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),Mp=wp.extend({implicit:[vp,xp,Ep,Ap]}),Lp=Mp,Ip=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Op=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]))?))?$"),Np=new fp("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==Ip.exec(t)||null!==Op.exec(t))},construct:function(t){var e,n,i,r,a,o,s,c,l=0,u=null;if(null===(e=Ip.exec(t))&&(e=Op.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,a,o,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(t){return t.toISOString()}}),Dp=new fp("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),Pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Bp=new fp("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=0,r=t.length,a=Pp;for(n=0;n64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,a=Pp,o=0,s=[];for(e=0;e>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(i.charAt(e));return 0==(n=r%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===n?(s.push(o>>10&255),s.push(o>>2&255)):12===n&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,a=t.length,o=Pp;for(e=0;e>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]),r=(r<<8)+t[e];return 0==(n=a%3)?(i+=o[r>>18&63],i+=o[r>>12&63],i+=o[r>>6&63],i+=o[63&r]):2===n?(i+=o[r>>10&63],i+=o[r>>4&63],i+=o[r<<2&63],i+=o[64]):1===n&&(i+=o[r>>2&63],i+=o[r<<4&63],i+=o[64],i+=o[64]),i}}),Rp=Object.prototype.hasOwnProperty,Fp=Object.prototype.toString,$p=new fp("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,a,o=[],s=t;for(e=0,n=s.length;e>10),56320+(t-65536&1023))}for(var gb=new Array(256),pb=new Array(256),bb=0;bb<256;bb++)gb[bb]=fb(bb)?1:0,pb[bb]=fb(bb);function mb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Up,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yb(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=lp(n),new op(e,n)}function wb(t,e){throw yb(t,e)}function vb(t,e){t.onWarning&&t.onWarning.call(null,yb(t,e))}var xb={YAML:function(t,e,n){var i,r,a;null!==t.version&&wb(t,"duplication of %YAML directive"),1!==n.length&&wb(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&wb(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),a=parseInt(i[2],10),1!==r&&wb(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&vb(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&wb(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],nb.test(i)||wb(t,"ill-formed tag handle (first argument) of the TAG directive"),Gp.call(t.tagMap,i)&&wb(t,'there is a previously declared suffix for "'+i+'" tag handle'),ib.test(r)||wb(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{wb(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function kb(t,e,n,i){var r,a,o,s;if(e1&&(t.result+=ip.repeat("\n",e-1))}function Mb(t,e){var n,i,r=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,wb(t,"tab characters must not be used in indentation")),45===i&&sb(t.input.charCodeAt(t.position+1)));)if(s=!0,t.position++,Sb(t,!0,-1)&&t.lineIndent<=e)o.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,Ob(t,e,Vp,!1,!0),o.push(t.result),Sb(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)wb(t,"bad indentation of a sequence entry");else if(t.lineIndente?g=1:t.lineIndent===e?g=0:t.lineIndente?g=1:t.lineIndent===e?g=0:t.lineIndente)&&(m&&(o=t.line,s=t.lineStart,c=t.position),Ob(t,e,Wp,!0,r)&&(m?p=t.result:b=t.result),m||(Tb(t,f,d,g,p,b,o,s,c),g=p=b=null),Sb(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==l)wb(t,"bad indentation of a mapping entry");else if(t.lineIndent=0))break;0===r?wb(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?wb(t,"repeat of an indentation width identifier"):(l=e+r-1,c=!0)}if(ob(a)){do{a=t.input.charCodeAt(++t.position)}while(ob(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!ab(a)&&0!==a)}for(;0!==a;){for(Eb(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!c||t.lineIndentl&&(l=t.lineIndent),ab(a))u++;else{if(t.lineIndent0){for(r=o,a=0;r>0;r--)(o=lb(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:wb(t,"expected hexadecimal character");t.result+=db(a),t.position++}else wb(t,"unknown escape sequence");n=i=t.position}else ab(s)?(kb(t,n,i,!0),Ab(t,Sb(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Cb(t)?wb(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}wb(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?b=!0:function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!sb(i)&&!cb(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&wb(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Gp.call(t.anchorMap,n)||wb(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Sb(t,!0,-1),!0}(t)?(b=!0,(null!==t.tag||null!==t.anchor)&&wb(t,"alias node should not have any properties")):function(t,e,n){var i,r,a,o,s,c,l,u,h=t.kind,f=t.result;if(sb(u=t.input.charCodeAt(t.position))||cb(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(sb(i=t.input.charCodeAt(t.position+1))||n&&cb(i)))return!1;for(t.kind="scalar",t.result="",r=a=t.position,o=!1;0!==u;){if(58===u){if(sb(i=t.input.charCodeAt(t.position+1))||n&&cb(i))break}else if(35===u){if(sb(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Cb(t)||n&&cb(u))break;if(ab(u)){if(s=t.line,c=t.lineStart,l=t.lineIndent,Sb(t,!1,-1),t.lineIndent>=e){o=!0,u=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=c,t.lineIndent=l;break}}o&&(kb(t,r,a,!1),Ab(t,t.line-s),r=a=t.position,o=!1),ob(u)||(a=t.position+1),u=t.input.charCodeAt(++t.position)}return kb(t,r,a,!1),!!t.result||(t.kind=h,t.result=f,!1)}(t,f,Kp===n)&&(b=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(b=s&&Mb(t,d))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&wb(t,'unacceptable node kind for ! tag; it should be "scalar", not "'+t.kind+'"'),c=0,l=t.implicitTypes.length;c"),null!==t.result&&h.kind!==t.kind&&wb(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):wb(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||b}function Nb(t){var e,n,i,r,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(Sb(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(o=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!sb(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&wb(t,"directive name must not be less than one character in length");0!==r;){for(;ob(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!ab(r));break}if(ab(r))break;for(e=t.position;0!==r&&!sb(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&Eb(t),Gp.call(xb,n)?xb[n](t,n,i):vb(t,'unknown document directive "'+n+'"')}Sb(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Sb(t,!0,-1)):o&&wb(t,"directives end mark is expected"),Ob(t,t.lineIndent-1,Wp,!1,!0),Sb(t,!0,-1),t.checkLineBreaks&&tb.test(t.input.slice(a,t.position))&&vb(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Cb(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Sb(t,!0,-1)):t.positiont.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">")),Fb=t=>{const{text:e,metadata:n}=function(t){const e=t.match(wl);if(!e)return{text:t,metadata:{}};let n=Bb(e[1],{schema:Pb})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:t.slice(e[0].length),metadata:i}}(t),{displayMode:i,title:r,config:a={}}=n;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:r,config:a,text:e}},$b=t=>{const e=df.detectInit(t)??{},n=df.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some((({type:t})=>{})):"wrap"===(null==n?void 0:n.type)&&(e.wrap=!0),{text:Yh(t),directive:e}};function jb(t){const e=Rb(t),n=Fb(e),i=$b(n.text),r=ff(n.config,i.directive);return{code:t=ep(i.text),title:n.title,config:r}}const zb=["foreignobject"],qb=["dominant-baseline"];function Hb(t){const e=jb(t);return ld(),(t=>{ml(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),nd.push(t),rd(ed,nd)})(e.config??{}),e}const Ub=(t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`,Gb=(t,e,n,i)=>{const r=((t,e={})=>{var n;let i="";if(void 0!==t.themeCSS&&(i+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(i+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(i+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!tp(e)){const r=t.htmlLabels||(null==(n=t.flowchart)?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in e){const n=e[t];tp(n.styles)||r.forEach((t=>{i+=Ub(n.id,t,n.styles)})),tp(n.textStyles)||(i+=Ub(n.id,"tspan",n.textStyles))}}return i})(t,n);return Xf(Gf(`${i}{${((t,e,n)=>{let i="";return t in Kd&&Kd[t]?i=Kd[t](n):l.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${i}\n\n ${e}\n`})(e,r,t.themeVariables)}}`),Qf)},Kb=(t,e,n,i,r)=>{const a=t.append("div");a.attr("id",n),i&&a.attr("style",i);const o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return r&&o.attr("xmlns:xlink",r),o.append("g"),t};function Yb(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Vb=(t,e={})=>{const{code:n}=jb(t);return(async(t,e={})=>{const n=Tl(t,sd());try{gg(n)}catch{const t=(t=>_l[t].loader)(n);if(!t)throw new kl(`Diagram ${n} not found.`);const{id:e,diagram:i}=await t();dg(e,i)}return new Og(t,e)})(n,e)},Wb=Object.freeze({render:async function(t,e,n){var i,r,a,o,s,c;Ig();const u=Hb(e);e=u.code;const h=sd();l.debug(h),e.length>((null==h?void 0:h.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const f="#"+t,d="i"+t,g="#"+d,p="d"+t,b="#"+p;let m=ee("body");const y="sandbox"===h.securityLevel,w="loose"===h.securityLevel,v=h.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),y){const t=Yb(ee(n),d);m=ee(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=ee(n);Kb(m,t,p,`font-family: ${v}`,"http://www.w3.org/1999/xlink")}else{if(((t,e,n,i)=>{var r,a,o;null==(r=t.getElementById(e))||r.remove(),null==(a=t.getElementById(n))||a.remove(),null==(o=t.getElementById(i))||o.remove()})(document,t,p,d),y){const t=Yb(ee("body"),d);m=ee(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=ee("body");Kb(m,t,p)}let x,k;try{x=await Vb(e,{title:u.title})}catch(t){x=new Og("error"),k=t}const _=m.select(b).node(),T=x.type,E=_.firstChild,S=E.firstChild,C=null==(r=(i=x.renderer).getClasses)?void 0:r.call(i,e,x),A=Gb(h,T,C,f),M=document.createElement("style");M.innerHTML=A,E.insertBefore(M,S);try{await x.renderer.draw(e,t,Zf,x)}catch(n){throw yg.draw(e,t,Zf),n}(function(t,e,n,i){(function(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)})(e,t),function(t,e,n,i){if(void 0!==t.insert){if(n){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(e,n,i,e.attr("id"))})(T,m.select(`${b} svg`),null==(o=(a=x.db).getAccTitle)?void 0:o.call(a),null==(c=(s=x.db).getAccDescription)?void 0:c.call(s)),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let L=m.select(b).node().innerHTML;if(l.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),L=((t="",e,n)=>{let i=t;return!n&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=gf(i),i=i.replace(/
/g,"
"),i})(L,y,Sc(h.arrowMarkerAbsolute)),y?L=((t="",e)=>{var n,i;return``})(L,m.select(b+" svg").node()):w||(L=yc.sanitize(L,{ADD_TAGS:zb,ADD_ATTR:qb})),Ng.forEach((t=>{t()})),Ng=[],k)throw k;const I=ee(y?g:b).node();return I&&"remove"in I&&I.remove(),{svg:L,bindFunctions:x.db.bindFunctions}},parse:async function(t,e){Ig(),t=Hb(t).code;try{await Vb(t)}catch(t){if(null!=e&&e.suppressErrors)return!1;throw t}return!0},getDiagramFromText:Vb,initialize:function(t={}){var e;null!=t&&t.fontFamily&&!(null!=(e=t.themeVariables)&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(t=>{td=Al({},t)})(t),null!=t&&t.theme&&t.theme in hl?t.themeVariables=hl[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=hl.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?(t=>(ed=Al({},Jf),ed=Al(ed,t),t.theme&&hl[t.theme]&&(ed.themeVariables=hl[t.theme].getThemeVariables(t.themeVariables)),rd(ed,nd),ed))(t):ad();u(n.logLevel),Ig()},getConfig:sd,setConfig:od,getSiteConfig:ad,updateSiteConfig:t=>(ed=Al(ed,t),rd(ed,nd),ed),reset:()=>{ld()},globalReset:()=>{ld(Jf)},defaultConfig:Jf});u(sd().logLevel),ld(sd());const Xb=(t,e,n)=>{l.warn(t),uf(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Qb=async function(t={querySelector:".mermaid"}){try{await Zb(t)}catch(e){if(uf(e)&&l.error(e.str),am.parseError&&am.parseError(e),!t.suppressErrors)throw l.error("Use the suppressErrors option to suppress these errors"),e}},Zb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Wb.getConfig();let a;if(l.debug((t?"":"No ")+"Callback function found"),i)a=i;else{if(!e)throw new Error("Nodes and querySelector are both undefined");a=document.querySelectorAll(e)}l.debug(`Found ${a.length} diagrams`),void 0!==(null==r?void 0:r.startOnLoad)&&(l.debug("Start On Load: "+(null==r?void 0:r.startOnLoad)),Wb.updateSiteConfig({startOnLoad:null==r?void 0:r.startOnLoad}));const o=new df.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const c=[];for(const e of Array.from(a)){if(l.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const i=`mermaid-${o.next()}`;s=e.innerHTML,s=n(df.entityDecode(s)).trim().replace(//gi,"
");const r=df.detectInit(s);r&&l.debug("Detected early reinit: ",r);try{const{svg:n,bindFunctions:r}=await rm(i,s,e);e.innerHTML=n,t&&await t(i),r&&r(e)}catch(t){Xb(t,c,am.parseError)}}if(c.length>0)throw c[0]},Jb=function(t){Wb.initialize(t)},tm=function(){if(am.startOnLoad){const{startOnLoad:t}=Wb.getConfig();t&&am.run().catch((t=>l.error("Mermaid failed to initialize",t)))}};typeof document<"u"&&window.addEventListener("load",tm,!1);const em=[];let nm=!1;const im=async()=>{if(!nm){for(nm=!0;em.length>0;){const t=em.shift();if(t)try{await t()}catch(t){l.error("Error executing queue",t)}}nm=!1}},rm=(t,e,n)=>new Promise(((i,r)=>{em.push((()=>new Promise(((a,o)=>{Wb.render(t,e,n).then((t=>{a(t),i(t)}),(t=>{var e;l.error("Error parsing",t),null==(e=am.parseError)||e.call(am,t),o(t),r(t)}))})))),im().catch(r)})),am={startOnLoad:!0,mermaidAPI:Wb,parse:async(t,e)=>new Promise(((n,i)=>{em.push((()=>new Promise(((r,a)=>{Wb.parse(t,e).then((t=>{r(t),n(t)}),(t=>{var e;l.error("Error parsing",t),null==(e=am.parseError)||e.call(am,t),a(t),i(t)}))})))),im().catch(i)})),render:rm,init:async function(t,e,n){l.warn("mermaid.init is deprecated. Please use run instead."),t&&Jb(t);const i={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await Qb(i)},run:Qb,registerExternalDiagrams:async(t,{lazyLoad:e=!0}={})=>{El(...t),!1===e&&await(async()=>{l.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_l).map((async([t,{detector:e,loader:n}])=>{if(n)try{gg(t)}catch{try{const{diagram:t,id:i}=await n();dg(i,t,e)}catch(e){throw l.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete _l[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){l.error(`Failed to load ${t.length} external diagrams`);for(const e of t)l.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}})()},initialize:Jb,parseError:void 0,contentLoaded:tm,setParseErrorHandler:function(t){am.parseError=t},detectType:Tl};class om{constructor(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}static range(t,e){return e?t&&t.loc&&e.loc&&t.loc.lexer===e.loc.lexer?new om(t.loc.lexer,t.loc.start,e.loc.end):null:t&&t.loc}}class sm{constructor(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}range(t,e){return new sm(e,om.range(this,t))}}class cm{constructor(t,e){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,i,r="KaTeX parse error: "+t,a=e&&e.loc;if(a&&a.start<=a.end){var o=a.lexer.input;n=a.start,i=a.end,n===o.length?r+=" at end of input: ":r+=" at position "+(n+1)+": ";var s=o.slice(n,i).replace(/[^]/g,"$&̲");r+=(n>15?"…"+o.slice(n-15,n):o.slice(0,n))+s+(i+15":">","<":"<",'"':""","'":"'"},hm=/[&><"']/g,fm=function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},dm=function(t,e){return-1!==t.indexOf(e)},gm=function(t,e){return void 0===t?e:t},pm=function(t){return String(t).replace(hm,(t=>um[t]))},bm=function(t){return t.replace(lm,"-$1").toLowerCase()},mm=fm,ym=function(t){var e=fm(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},wm=function(t){var e=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"},vm={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>"Infinity"===t?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function xm(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class km{constructor(t){for(var e in 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,t=t||{},vm)if(vm.hasOwnProperty(e)){var n=vm[e];this[e]=void 0!==t[e]?n.processor?n.processor(t[e]):t[e]:xm(n)}}reportNonstrict(t,e,n){var i=this.strict;if("function"==typeof i&&(i=i(t,e,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new cm("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",n);"warn"===i?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]")}}useStrictBehavior(t,e,n){var i=this.strict;if("function"==typeof i)try{i=i(t,e,n)}catch{i="error"}return!(!i||"ignore"===i||!0!==i&&"error"!==i&&("warn"===i?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+e+" ["+t+"]"),1)))}isTrusted(t){return t.url&&!t.protocol&&(t.protocol=wm(t.url)),!!("function"==typeof this.trust?this.trust(t):this.trust)}}class _m{constructor(t,e,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=n}sup(){return Tm[Em[this.id]]}sub(){return Tm[Sm[this.id]]}fracNum(){return Tm[Cm[this.id]]}fracDen(){return Tm[Am[this.id]]}cramp(){return Tm[Mm[this.id]]}text(){return Tm[Lm[this.id]]}isTight(){return this.size>=2}}var Tm=[new _m(0,0,!1),new _m(1,0,!0),new _m(2,1,!1),new _m(3,1,!0),new _m(4,2,!1),new _m(5,2,!0),new _m(6,3,!1),new _m(7,3,!0)],Em=[4,5,4,5,6,7,6,7],Sm=[5,5,5,5,7,7,7,7],Cm=[2,3,4,5,6,7,6,7],Am=[3,3,5,5,7,7,7,7],Mm=[1,1,3,3,5,5,7,7],Lm=[0,1,2,3,2,3,2,3],Im={DISPLAY:Tm[0],TEXT:Tm[2],SCRIPT:Tm[4],SCRIPTSCRIPT:Tm[6]},Om=[{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]]}],Nm=[];function Dm(t){for(var e=0;e=Nm[e]&&t<=Nm[e+1])return!0;return!1}Om.forEach((t=>t.blocks.forEach((t=>Nm.push(...t)))));var Pm={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 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\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 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\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class Bm{constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return dm(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),e=0;et.toText())).join("")}}var Rm={"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]}},Fm={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]},$m={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function jm(t,e,n){if(!Rm[e])throw new Error("Font metrics not found for font: "+e+".");var i=t.charCodeAt(0),r=Rm[e][i];if(!r&&t[0]in $m&&(i=$m[t[0]].charCodeAt(0),r=Rm[e][i]),!r&&"text"===n&&Dm(i)&&(r=Rm[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var zm={},qm=[[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]],Hm=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Um=function(t,e){return e.size<2?t:qm[t-1][e.size-1]};class Gm{constructor(t){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=t.style,this.color=t.color,this.size=t.size||Gm.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Hm[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var e={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return new Gm(e)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Um(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Hm[t-1]})}havingBaseStyle(t){t=t||this.style.text();var e=Um(Gm.BASESIZE,t);return this.size===e&&this.textSize===Gm.BASESIZE&&this.style===t?this:this.extend({style:t,size:e})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Gm.BASESIZE?["sizing","reset-size"+this.size,"size"+Gm.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(t){var e;if(!zm[e=t>=5?0:t>=3?1:2]){var n=zm[e]={cssEmPerMu:Fm.quad[e]/18};for(var i in Fm)Fm.hasOwnProperty(i)&&(n[i]=Fm[i][e])}return zm[e]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Gm.BASESIZE=6;var Km={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Ym={ex:!0,em:!0,mu:!0},Vm=function(t){return"string"!=typeof t&&(t=t.unit),t in Km||t in Ym||"ex"===t},Wm=function(t,e){var n;if(t.unit in Km)n=Km[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)n=e.fontMetrics().cssEmPerMu;else{var i;if(i=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)n=i.fontMetrics().xHeight;else{if("em"!==t.unit)throw new cm("Invalid unit: '"+t.unit+"'");n=i.fontMetrics().quad}i!==e&&(n*=i.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*n,e.maxSize)},Xm=function(t){return+t.toFixed(4)+"em"},Qm=function(t){return t.filter((t=>t)).join(" ")},Zm=function(t,e,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},e){e.style.isTight()&&this.classes.push("mtight");var i=e.getColor();i&&(this.style.color=i)}},Jm=function(t){var e=document.createElement(t);for(var n in e.className=Qm(this.classes),this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&e.setAttribute(i,this.attributes[i]);for(var r=0;r"};class ey{constructor(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Zm.call(this,t,n,i),this.children=e||[]}setAttribute(t,e){this.attributes[t]=e}hasClass(t){return dm(this.classes,t)}toNode(){return Jm.call(this,"span")}toMarkup(){return ty.call(this,"span")}}class ny{constructor(t,e,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Zm.call(this,e,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,e){this.attributes[t]=e}hasClass(t){return dm(this.classes,t)}toNode(){return Jm.call(this,"a")}toMarkup(){return ty.call(this,"a")}}class iy{constructor(t,e,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return dm(this.classes,t)}toNode(){var t=document.createElement("img");for(var e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t}toMarkup(){var t=""+this.alt+""}}var ry={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class ay{constructor(t,e,n,i,r,a,o,s){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=t,this.height=e||0,this.depth=n||0,this.italic=i||0,this.skew=r||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=function(t){for(var e=0;e=r[0]&&t<=r[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ry[this.text])}hasClass(t){return dm(this.classes,t)}toNode(){var t=document.createTextNode(this.text),e=null;for(var n in this.italic>0&&((e=document.createElement("span")).style.marginRight=Xm(this.italic)),this.classes.length>0&&((e=e||document.createElement("span")).className=Qm(this.classes)),this.style)this.style.hasOwnProperty(n)&&((e=e||document.createElement("span")).style[n]=this.style[n]);return e?(e.appendChild(t),e):t}toMarkup(){var t=!1,e="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=bm(i)+":"+this.style[i]+";");n&&(t=!0,e+=' style="'+pm(n)+'"');var r=pm(this.text);return t?(e+=">",e+=r,e+=""):r}}class oy{constructor(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var n=0;n"}}class sy{constructor(t,e){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=e}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Pm[this.pathName]),t}toMarkup(){return this.alternate?"":""}}class cy{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t}toMarkup(){var t=""}}function ly(t){if(t instanceof ay)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}var uy={bin:1,close:1,inner:1,open:1,punct:1,rel:1},hy={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fy={math:{},text:{}};function dy(t,e,n,i,r,a){fy[t][r]={font:e,group:n,replace:i},a&&i&&(fy[t][i]=fy[t][r])}var gy="math",py="text",by="main",my="ams",yy="accent-token",wy="bin",vy="close",xy="inner",ky="mathord",_y="op-token",Ty="open",Ey="punct",Sy="rel",Cy="spacing",Ay="textord";dy(gy,by,Sy,"≡","\\equiv",!0),dy(gy,by,Sy,"≺","\\prec",!0),dy(gy,by,Sy,"≻","\\succ",!0),dy(gy,by,Sy,"∼","\\sim",!0),dy(gy,by,Sy,"⊥","\\perp"),dy(gy,by,Sy,"⪯","\\preceq",!0),dy(gy,by,Sy,"⪰","\\succeq",!0),dy(gy,by,Sy,"≃","\\simeq",!0),dy(gy,by,Sy,"∣","\\mid",!0),dy(gy,by,Sy,"≪","\\ll",!0),dy(gy,by,Sy,"≫","\\gg",!0),dy(gy,by,Sy,"≍","\\asymp",!0),dy(gy,by,Sy,"∥","\\parallel"),dy(gy,by,Sy,"⋈","\\bowtie",!0),dy(gy,by,Sy,"⌣","\\smile",!0),dy(gy,by,Sy,"⊑","\\sqsubseteq",!0),dy(gy,by,Sy,"⊒","\\sqsupseteq",!0),dy(gy,by,Sy,"≐","\\doteq",!0),dy(gy,by,Sy,"⌢","\\frown",!0),dy(gy,by,Sy,"∋","\\ni",!0),dy(gy,by,Sy,"∝","\\propto",!0),dy(gy,by,Sy,"⊢","\\vdash",!0),dy(gy,by,Sy,"⊣","\\dashv",!0),dy(gy,by,Sy,"∋","\\owns"),dy(gy,by,Ey,".","\\ldotp"),dy(gy,by,Ey,"⋅","\\cdotp"),dy(gy,by,Ay,"#","\\#"),dy(py,by,Ay,"#","\\#"),dy(gy,by,Ay,"&","\\&"),dy(py,by,Ay,"&","\\&"),dy(gy,by,Ay,"ℵ","\\aleph",!0),dy(gy,by,Ay,"∀","\\forall",!0),dy(gy,by,Ay,"ℏ","\\hbar",!0),dy(gy,by,Ay,"∃","\\exists",!0),dy(gy,by,Ay,"∇","\\nabla",!0),dy(gy,by,Ay,"♭","\\flat",!0),dy(gy,by,Ay,"ℓ","\\ell",!0),dy(gy,by,Ay,"♮","\\natural",!0),dy(gy,by,Ay,"♣","\\clubsuit",!0),dy(gy,by,Ay,"℘","\\wp",!0),dy(gy,by,Ay,"♯","\\sharp",!0),dy(gy,by,Ay,"♢","\\diamondsuit",!0),dy(gy,by,Ay,"ℜ","\\Re",!0),dy(gy,by,Ay,"♡","\\heartsuit",!0),dy(gy,by,Ay,"ℑ","\\Im",!0),dy(gy,by,Ay,"♠","\\spadesuit",!0),dy(gy,by,Ay,"§","\\S",!0),dy(py,by,Ay,"§","\\S"),dy(gy,by,Ay,"¶","\\P",!0),dy(py,by,Ay,"¶","\\P"),dy(gy,by,Ay,"†","\\dag"),dy(py,by,Ay,"†","\\dag"),dy(py,by,Ay,"†","\\textdagger"),dy(gy,by,Ay,"‡","\\ddag"),dy(py,by,Ay,"‡","\\ddag"),dy(py,by,Ay,"‡","\\textdaggerdbl"),dy(gy,by,vy,"⎱","\\rmoustache",!0),dy(gy,by,Ty,"⎰","\\lmoustache",!0),dy(gy,by,vy,"⟯","\\rgroup",!0),dy(gy,by,Ty,"⟮","\\lgroup",!0),dy(gy,by,wy,"∓","\\mp",!0),dy(gy,by,wy,"⊖","\\ominus",!0),dy(gy,by,wy,"⊎","\\uplus",!0),dy(gy,by,wy,"⊓","\\sqcap",!0),dy(gy,by,wy,"∗","\\ast"),dy(gy,by,wy,"⊔","\\sqcup",!0),dy(gy,by,wy,"◯","\\bigcirc",!0),dy(gy,by,wy,"∙","\\bullet",!0),dy(gy,by,wy,"‡","\\ddagger"),dy(gy,by,wy,"≀","\\wr",!0),dy(gy,by,wy,"⨿","\\amalg"),dy(gy,by,wy,"&","\\And"),dy(gy,by,Sy,"⟵","\\longleftarrow",!0),dy(gy,by,Sy,"⇐","\\Leftarrow",!0),dy(gy,by,Sy,"⟸","\\Longleftarrow",!0),dy(gy,by,Sy,"⟶","\\longrightarrow",!0),dy(gy,by,Sy,"⇒","\\Rightarrow",!0),dy(gy,by,Sy,"⟹","\\Longrightarrow",!0),dy(gy,by,Sy,"↔","\\leftrightarrow",!0),dy(gy,by,Sy,"⟷","\\longleftrightarrow",!0),dy(gy,by,Sy,"⇔","\\Leftrightarrow",!0),dy(gy,by,Sy,"⟺","\\Longleftrightarrow",!0),dy(gy,by,Sy,"↦","\\mapsto",!0),dy(gy,by,Sy,"⟼","\\longmapsto",!0),dy(gy,by,Sy,"↗","\\nearrow",!0),dy(gy,by,Sy,"↩","\\hookleftarrow",!0),dy(gy,by,Sy,"↪","\\hookrightarrow",!0),dy(gy,by,Sy,"↘","\\searrow",!0),dy(gy,by,Sy,"↼","\\leftharpoonup",!0),dy(gy,by,Sy,"⇀","\\rightharpoonup",!0),dy(gy,by,Sy,"↙","\\swarrow",!0),dy(gy,by,Sy,"↽","\\leftharpoondown",!0),dy(gy,by,Sy,"⇁","\\rightharpoondown",!0),dy(gy,by,Sy,"↖","\\nwarrow",!0),dy(gy,by,Sy,"⇌","\\rightleftharpoons",!0),dy(gy,my,Sy,"≮","\\nless",!0),dy(gy,my,Sy,"","\\@nleqslant"),dy(gy,my,Sy,"","\\@nleqq"),dy(gy,my,Sy,"⪇","\\lneq",!0),dy(gy,my,Sy,"≨","\\lneqq",!0),dy(gy,my,Sy,"","\\@lvertneqq"),dy(gy,my,Sy,"⋦","\\lnsim",!0),dy(gy,my,Sy,"⪉","\\lnapprox",!0),dy(gy,my,Sy,"⊀","\\nprec",!0),dy(gy,my,Sy,"⋠","\\npreceq",!0),dy(gy,my,Sy,"⋨","\\precnsim",!0),dy(gy,my,Sy,"⪹","\\precnapprox",!0),dy(gy,my,Sy,"≁","\\nsim",!0),dy(gy,my,Sy,"","\\@nshortmid"),dy(gy,my,Sy,"∤","\\nmid",!0),dy(gy,my,Sy,"⊬","\\nvdash",!0),dy(gy,my,Sy,"⊭","\\nvDash",!0),dy(gy,my,Sy,"⋪","\\ntriangleleft"),dy(gy,my,Sy,"⋬","\\ntrianglelefteq",!0),dy(gy,my,Sy,"⊊","\\subsetneq",!0),dy(gy,my,Sy,"","\\@varsubsetneq"),dy(gy,my,Sy,"⫋","\\subsetneqq",!0),dy(gy,my,Sy,"","\\@varsubsetneqq"),dy(gy,my,Sy,"≯","\\ngtr",!0),dy(gy,my,Sy,"","\\@ngeqslant"),dy(gy,my,Sy,"","\\@ngeqq"),dy(gy,my,Sy,"⪈","\\gneq",!0),dy(gy,my,Sy,"≩","\\gneqq",!0),dy(gy,my,Sy,"","\\@gvertneqq"),dy(gy,my,Sy,"⋧","\\gnsim",!0),dy(gy,my,Sy,"⪊","\\gnapprox",!0),dy(gy,my,Sy,"⊁","\\nsucc",!0),dy(gy,my,Sy,"⋡","\\nsucceq",!0),dy(gy,my,Sy,"⋩","\\succnsim",!0),dy(gy,my,Sy,"⪺","\\succnapprox",!0),dy(gy,my,Sy,"≆","\\ncong",!0),dy(gy,my,Sy,"","\\@nshortparallel"),dy(gy,my,Sy,"∦","\\nparallel",!0),dy(gy,my,Sy,"⊯","\\nVDash",!0),dy(gy,my,Sy,"⋫","\\ntriangleright"),dy(gy,my,Sy,"⋭","\\ntrianglerighteq",!0),dy(gy,my,Sy,"","\\@nsupseteqq"),dy(gy,my,Sy,"⊋","\\supsetneq",!0),dy(gy,my,Sy,"","\\@varsupsetneq"),dy(gy,my,Sy,"⫌","\\supsetneqq",!0),dy(gy,my,Sy,"","\\@varsupsetneqq"),dy(gy,my,Sy,"⊮","\\nVdash",!0),dy(gy,my,Sy,"⪵","\\precneqq",!0),dy(gy,my,Sy,"⪶","\\succneqq",!0),dy(gy,my,Sy,"","\\@nsubseteqq"),dy(gy,my,wy,"⊴","\\unlhd"),dy(gy,my,wy,"⊵","\\unrhd"),dy(gy,my,Sy,"↚","\\nleftarrow",!0),dy(gy,my,Sy,"↛","\\nrightarrow",!0),dy(gy,my,Sy,"⇍","\\nLeftarrow",!0),dy(gy,my,Sy,"⇏","\\nRightarrow",!0),dy(gy,my,Sy,"↮","\\nleftrightarrow",!0),dy(gy,my,Sy,"⇎","\\nLeftrightarrow",!0),dy(gy,my,Sy,"△","\\vartriangle"),dy(gy,my,Ay,"ℏ","\\hslash"),dy(gy,my,Ay,"▽","\\triangledown"),dy(gy,my,Ay,"◊","\\lozenge"),dy(gy,my,Ay,"Ⓢ","\\circledS"),dy(gy,my,Ay,"®","\\circledR"),dy(py,my,Ay,"®","\\circledR"),dy(gy,my,Ay,"∡","\\measuredangle",!0),dy(gy,my,Ay,"∄","\\nexists"),dy(gy,my,Ay,"℧","\\mho"),dy(gy,my,Ay,"Ⅎ","\\Finv",!0),dy(gy,my,Ay,"⅁","\\Game",!0),dy(gy,my,Ay,"‵","\\backprime"),dy(gy,my,Ay,"▲","\\blacktriangle"),dy(gy,my,Ay,"▼","\\blacktriangledown"),dy(gy,my,Ay,"■","\\blacksquare"),dy(gy,my,Ay,"⧫","\\blacklozenge"),dy(gy,my,Ay,"★","\\bigstar"),dy(gy,my,Ay,"∢","\\sphericalangle",!0),dy(gy,my,Ay,"∁","\\complement",!0),dy(gy,my,Ay,"ð","\\eth",!0),dy(py,by,Ay,"ð","ð"),dy(gy,my,Ay,"╱","\\diagup"),dy(gy,my,Ay,"╲","\\diagdown"),dy(gy,my,Ay,"□","\\square"),dy(gy,my,Ay,"□","\\Box"),dy(gy,my,Ay,"◊","\\Diamond"),dy(gy,my,Ay,"¥","\\yen",!0),dy(py,my,Ay,"¥","\\yen",!0),dy(gy,my,Ay,"✓","\\checkmark",!0),dy(py,my,Ay,"✓","\\checkmark"),dy(gy,my,Ay,"ℶ","\\beth",!0),dy(gy,my,Ay,"ℸ","\\daleth",!0),dy(gy,my,Ay,"ℷ","\\gimel",!0),dy(gy,my,Ay,"ϝ","\\digamma",!0),dy(gy,my,Ay,"ϰ","\\varkappa"),dy(gy,my,Ty,"┌","\\@ulcorner",!0),dy(gy,my,vy,"┐","\\@urcorner",!0),dy(gy,my,Ty,"└","\\@llcorner",!0),dy(gy,my,vy,"┘","\\@lrcorner",!0),dy(gy,my,Sy,"≦","\\leqq",!0),dy(gy,my,Sy,"⩽","\\leqslant",!0),dy(gy,my,Sy,"⪕","\\eqslantless",!0),dy(gy,my,Sy,"≲","\\lesssim",!0),dy(gy,my,Sy,"⪅","\\lessapprox",!0),dy(gy,my,Sy,"≊","\\approxeq",!0),dy(gy,my,wy,"⋖","\\lessdot"),dy(gy,my,Sy,"⋘","\\lll",!0),dy(gy,my,Sy,"≶","\\lessgtr",!0),dy(gy,my,Sy,"⋚","\\lesseqgtr",!0),dy(gy,my,Sy,"⪋","\\lesseqqgtr",!0),dy(gy,my,Sy,"≑","\\doteqdot"),dy(gy,my,Sy,"≓","\\risingdotseq",!0),dy(gy,my,Sy,"≒","\\fallingdotseq",!0),dy(gy,my,Sy,"∽","\\backsim",!0),dy(gy,my,Sy,"⋍","\\backsimeq",!0),dy(gy,my,Sy,"⫅","\\subseteqq",!0),dy(gy,my,Sy,"⋐","\\Subset",!0),dy(gy,my,Sy,"⊏","\\sqsubset",!0),dy(gy,my,Sy,"≼","\\preccurlyeq",!0),dy(gy,my,Sy,"⋞","\\curlyeqprec",!0),dy(gy,my,Sy,"≾","\\precsim",!0),dy(gy,my,Sy,"⪷","\\precapprox",!0),dy(gy,my,Sy,"⊲","\\vartriangleleft"),dy(gy,my,Sy,"⊴","\\trianglelefteq"),dy(gy,my,Sy,"⊨","\\vDash",!0),dy(gy,my,Sy,"⊪","\\Vvdash",!0),dy(gy,my,Sy,"⌣","\\smallsmile"),dy(gy,my,Sy,"⌢","\\smallfrown"),dy(gy,my,Sy,"≏","\\bumpeq",!0),dy(gy,my,Sy,"≎","\\Bumpeq",!0),dy(gy,my,Sy,"≧","\\geqq",!0),dy(gy,my,Sy,"⩾","\\geqslant",!0),dy(gy,my,Sy,"⪖","\\eqslantgtr",!0),dy(gy,my,Sy,"≳","\\gtrsim",!0),dy(gy,my,Sy,"⪆","\\gtrapprox",!0),dy(gy,my,wy,"⋗","\\gtrdot"),dy(gy,my,Sy,"⋙","\\ggg",!0),dy(gy,my,Sy,"≷","\\gtrless",!0),dy(gy,my,Sy,"⋛","\\gtreqless",!0),dy(gy,my,Sy,"⪌","\\gtreqqless",!0),dy(gy,my,Sy,"≖","\\eqcirc",!0),dy(gy,my,Sy,"≗","\\circeq",!0),dy(gy,my,Sy,"≜","\\triangleq",!0),dy(gy,my,Sy,"∼","\\thicksim"),dy(gy,my,Sy,"≈","\\thickapprox"),dy(gy,my,Sy,"⫆","\\supseteqq",!0),dy(gy,my,Sy,"⋑","\\Supset",!0),dy(gy,my,Sy,"⊐","\\sqsupset",!0),dy(gy,my,Sy,"≽","\\succcurlyeq",!0),dy(gy,my,Sy,"⋟","\\curlyeqsucc",!0),dy(gy,my,Sy,"≿","\\succsim",!0),dy(gy,my,Sy,"⪸","\\succapprox",!0),dy(gy,my,Sy,"⊳","\\vartriangleright"),dy(gy,my,Sy,"⊵","\\trianglerighteq"),dy(gy,my,Sy,"⊩","\\Vdash",!0),dy(gy,my,Sy,"∣","\\shortmid"),dy(gy,my,Sy,"∥","\\shortparallel"),dy(gy,my,Sy,"≬","\\between",!0),dy(gy,my,Sy,"⋔","\\pitchfork",!0),dy(gy,my,Sy,"∝","\\varpropto"),dy(gy,my,Sy,"◀","\\blacktriangleleft"),dy(gy,my,Sy,"∴","\\therefore",!0),dy(gy,my,Sy,"∍","\\backepsilon"),dy(gy,my,Sy,"▶","\\blacktriangleright"),dy(gy,my,Sy,"∵","\\because",!0),dy(gy,my,Sy,"⋘","\\llless"),dy(gy,my,Sy,"⋙","\\gggtr"),dy(gy,my,wy,"⊲","\\lhd"),dy(gy,my,wy,"⊳","\\rhd"),dy(gy,my,Sy,"≂","\\eqsim",!0),dy(gy,by,Sy,"⋈","\\Join"),dy(gy,my,Sy,"≑","\\Doteq",!0),dy(gy,my,wy,"∔","\\dotplus",!0),dy(gy,my,wy,"∖","\\smallsetminus"),dy(gy,my,wy,"⋒","\\Cap",!0),dy(gy,my,wy,"⋓","\\Cup",!0),dy(gy,my,wy,"⩞","\\doublebarwedge",!0),dy(gy,my,wy,"⊟","\\boxminus",!0),dy(gy,my,wy,"⊞","\\boxplus",!0),dy(gy,my,wy,"⋇","\\divideontimes",!0),dy(gy,my,wy,"⋉","\\ltimes",!0),dy(gy,my,wy,"⋊","\\rtimes",!0),dy(gy,my,wy,"⋋","\\leftthreetimes",!0),dy(gy,my,wy,"⋌","\\rightthreetimes",!0),dy(gy,my,wy,"⋏","\\curlywedge",!0),dy(gy,my,wy,"⋎","\\curlyvee",!0),dy(gy,my,wy,"⊝","\\circleddash",!0),dy(gy,my,wy,"⊛","\\circledast",!0),dy(gy,my,wy,"⋅","\\centerdot"),dy(gy,my,wy,"⊺","\\intercal",!0),dy(gy,my,wy,"⋒","\\doublecap"),dy(gy,my,wy,"⋓","\\doublecup"),dy(gy,my,wy,"⊠","\\boxtimes",!0),dy(gy,my,Sy,"⇢","\\dashrightarrow",!0),dy(gy,my,Sy,"⇠","\\dashleftarrow",!0),dy(gy,my,Sy,"⇇","\\leftleftarrows",!0),dy(gy,my,Sy,"⇆","\\leftrightarrows",!0),dy(gy,my,Sy,"⇚","\\Lleftarrow",!0),dy(gy,my,Sy,"↞","\\twoheadleftarrow",!0),dy(gy,my,Sy,"↢","\\leftarrowtail",!0),dy(gy,my,Sy,"↫","\\looparrowleft",!0),dy(gy,my,Sy,"⇋","\\leftrightharpoons",!0),dy(gy,my,Sy,"↶","\\curvearrowleft",!0),dy(gy,my,Sy,"↺","\\circlearrowleft",!0),dy(gy,my,Sy,"↰","\\Lsh",!0),dy(gy,my,Sy,"⇈","\\upuparrows",!0),dy(gy,my,Sy,"↿","\\upharpoonleft",!0),dy(gy,my,Sy,"⇃","\\downharpoonleft",!0),dy(gy,by,Sy,"⊶","\\origof",!0),dy(gy,by,Sy,"⊷","\\imageof",!0),dy(gy,my,Sy,"⊸","\\multimap",!0),dy(gy,my,Sy,"↭","\\leftrightsquigarrow",!0),dy(gy,my,Sy,"⇉","\\rightrightarrows",!0),dy(gy,my,Sy,"⇄","\\rightleftarrows",!0),dy(gy,my,Sy,"↠","\\twoheadrightarrow",!0),dy(gy,my,Sy,"↣","\\rightarrowtail",!0),dy(gy,my,Sy,"↬","\\looparrowright",!0),dy(gy,my,Sy,"↷","\\curvearrowright",!0),dy(gy,my,Sy,"↻","\\circlearrowright",!0),dy(gy,my,Sy,"↱","\\Rsh",!0),dy(gy,my,Sy,"⇊","\\downdownarrows",!0),dy(gy,my,Sy,"↾","\\upharpoonright",!0),dy(gy,my,Sy,"⇂","\\downharpoonright",!0),dy(gy,my,Sy,"⇝","\\rightsquigarrow",!0),dy(gy,my,Sy,"⇝","\\leadsto"),dy(gy,my,Sy,"⇛","\\Rrightarrow",!0),dy(gy,my,Sy,"↾","\\restriction"),dy(gy,by,Ay,"‘","`"),dy(gy,by,Ay,"$","\\$"),dy(py,by,Ay,"$","\\$"),dy(py,by,Ay,"$","\\textdollar"),dy(gy,by,Ay,"%","\\%"),dy(py,by,Ay,"%","\\%"),dy(gy,by,Ay,"_","\\_"),dy(py,by,Ay,"_","\\_"),dy(py,by,Ay,"_","\\textunderscore"),dy(gy,by,Ay,"∠","\\angle",!0),dy(gy,by,Ay,"∞","\\infty",!0),dy(gy,by,Ay,"′","\\prime"),dy(gy,by,Ay,"△","\\triangle"),dy(gy,by,Ay,"Γ","\\Gamma",!0),dy(gy,by,Ay,"Δ","\\Delta",!0),dy(gy,by,Ay,"Θ","\\Theta",!0),dy(gy,by,Ay,"Λ","\\Lambda",!0),dy(gy,by,Ay,"Ξ","\\Xi",!0),dy(gy,by,Ay,"Π","\\Pi",!0),dy(gy,by,Ay,"Σ","\\Sigma",!0),dy(gy,by,Ay,"Υ","\\Upsilon",!0),dy(gy,by,Ay,"Φ","\\Phi",!0),dy(gy,by,Ay,"Ψ","\\Psi",!0),dy(gy,by,Ay,"Ω","\\Omega",!0),dy(gy,by,Ay,"A","Α"),dy(gy,by,Ay,"B","Β"),dy(gy,by,Ay,"E","Ε"),dy(gy,by,Ay,"Z","Ζ"),dy(gy,by,Ay,"H","Η"),dy(gy,by,Ay,"I","Ι"),dy(gy,by,Ay,"K","Κ"),dy(gy,by,Ay,"M","Μ"),dy(gy,by,Ay,"N","Ν"),dy(gy,by,Ay,"O","Ο"),dy(gy,by,Ay,"P","Ρ"),dy(gy,by,Ay,"T","Τ"),dy(gy,by,Ay,"X","Χ"),dy(gy,by,Ay,"¬","\\neg",!0),dy(gy,by,Ay,"¬","\\lnot"),dy(gy,by,Ay,"⊤","\\top"),dy(gy,by,Ay,"⊥","\\bot"),dy(gy,by,Ay,"∅","\\emptyset"),dy(gy,my,Ay,"∅","\\varnothing"),dy(gy,by,ky,"α","\\alpha",!0),dy(gy,by,ky,"β","\\beta",!0),dy(gy,by,ky,"γ","\\gamma",!0),dy(gy,by,ky,"δ","\\delta",!0),dy(gy,by,ky,"ϵ","\\epsilon",!0),dy(gy,by,ky,"ζ","\\zeta",!0),dy(gy,by,ky,"η","\\eta",!0),dy(gy,by,ky,"θ","\\theta",!0),dy(gy,by,ky,"ι","\\iota",!0),dy(gy,by,ky,"κ","\\kappa",!0),dy(gy,by,ky,"λ","\\lambda",!0),dy(gy,by,ky,"μ","\\mu",!0),dy(gy,by,ky,"ν","\\nu",!0),dy(gy,by,ky,"ξ","\\xi",!0),dy(gy,by,ky,"ο","\\omicron",!0),dy(gy,by,ky,"π","\\pi",!0),dy(gy,by,ky,"ρ","\\rho",!0),dy(gy,by,ky,"σ","\\sigma",!0),dy(gy,by,ky,"τ","\\tau",!0),dy(gy,by,ky,"υ","\\upsilon",!0),dy(gy,by,ky,"ϕ","\\phi",!0),dy(gy,by,ky,"χ","\\chi",!0),dy(gy,by,ky,"ψ","\\psi",!0),dy(gy,by,ky,"ω","\\omega",!0),dy(gy,by,ky,"ε","\\varepsilon",!0),dy(gy,by,ky,"ϑ","\\vartheta",!0),dy(gy,by,ky,"ϖ","\\varpi",!0),dy(gy,by,ky,"ϱ","\\varrho",!0),dy(gy,by,ky,"ς","\\varsigma",!0),dy(gy,by,ky,"φ","\\varphi",!0),dy(gy,by,wy,"∗","*",!0),dy(gy,by,wy,"+","+"),dy(gy,by,wy,"−","-",!0),dy(gy,by,wy,"⋅","\\cdot",!0),dy(gy,by,wy,"∘","\\circ",!0),dy(gy,by,wy,"÷","\\div",!0),dy(gy,by,wy,"±","\\pm",!0),dy(gy,by,wy,"×","\\times",!0),dy(gy,by,wy,"∩","\\cap",!0),dy(gy,by,wy,"∪","\\cup",!0),dy(gy,by,wy,"∖","\\setminus",!0),dy(gy,by,wy,"∧","\\land"),dy(gy,by,wy,"∨","\\lor"),dy(gy,by,wy,"∧","\\wedge",!0),dy(gy,by,wy,"∨","\\vee",!0),dy(gy,by,Ay,"√","\\surd"),dy(gy,by,Ty,"⟨","\\langle",!0),dy(gy,by,Ty,"∣","\\lvert"),dy(gy,by,Ty,"∥","\\lVert"),dy(gy,by,vy,"?","?"),dy(gy,by,vy,"!","!"),dy(gy,by,vy,"⟩","\\rangle",!0),dy(gy,by,vy,"∣","\\rvert"),dy(gy,by,vy,"∥","\\rVert"),dy(gy,by,Sy,"=","="),dy(gy,by,Sy,":",":"),dy(gy,by,Sy,"≈","\\approx",!0),dy(gy,by,Sy,"≅","\\cong",!0),dy(gy,by,Sy,"≥","\\ge"),dy(gy,by,Sy,"≥","\\geq",!0),dy(gy,by,Sy,"←","\\gets"),dy(gy,by,Sy,">","\\gt",!0),dy(gy,by,Sy,"∈","\\in",!0),dy(gy,by,Sy,"","\\@not"),dy(gy,by,Sy,"⊂","\\subset",!0),dy(gy,by,Sy,"⊃","\\supset",!0),dy(gy,by,Sy,"⊆","\\subseteq",!0),dy(gy,by,Sy,"⊇","\\supseteq",!0),dy(gy,my,Sy,"⊈","\\nsubseteq",!0),dy(gy,my,Sy,"⊉","\\nsupseteq",!0),dy(gy,by,Sy,"⊨","\\models"),dy(gy,by,Sy,"←","\\leftarrow",!0),dy(gy,by,Sy,"≤","\\le"),dy(gy,by,Sy,"≤","\\leq",!0),dy(gy,by,Sy,"<","\\lt",!0),dy(gy,by,Sy,"→","\\rightarrow",!0),dy(gy,by,Sy,"→","\\to"),dy(gy,my,Sy,"≱","\\ngeq",!0),dy(gy,my,Sy,"≰","\\nleq",!0),dy(gy,by,Cy," ","\\ "),dy(gy,by,Cy," ","\\space"),dy(gy,by,Cy," ","\\nobreakspace"),dy(py,by,Cy," ","\\ "),dy(py,by,Cy," "," "),dy(py,by,Cy," ","\\space"),dy(py,by,Cy," ","\\nobreakspace"),dy(gy,by,Cy,null,"\\nobreak"),dy(gy,by,Cy,null,"\\allowbreak"),dy(gy,by,Ey,",",","),dy(gy,by,Ey,";",";"),dy(gy,my,wy,"⊼","\\barwedge",!0),dy(gy,my,wy,"⊻","\\veebar",!0),dy(gy,by,wy,"⊙","\\odot",!0),dy(gy,by,wy,"⊕","\\oplus",!0),dy(gy,by,wy,"⊗","\\otimes",!0),dy(gy,by,Ay,"∂","\\partial",!0),dy(gy,by,wy,"⊘","\\oslash",!0),dy(gy,my,wy,"⊚","\\circledcirc",!0),dy(gy,my,wy,"⊡","\\boxdot",!0),dy(gy,by,wy,"△","\\bigtriangleup"),dy(gy,by,wy,"▽","\\bigtriangledown"),dy(gy,by,wy,"†","\\dagger"),dy(gy,by,wy,"⋄","\\diamond"),dy(gy,by,wy,"⋆","\\star"),dy(gy,by,wy,"◃","\\triangleleft"),dy(gy,by,wy,"▹","\\triangleright"),dy(gy,by,Ty,"{","\\{"),dy(py,by,Ay,"{","\\{"),dy(py,by,Ay,"{","\\textbraceleft"),dy(gy,by,vy,"}","\\}"),dy(py,by,Ay,"}","\\}"),dy(py,by,Ay,"}","\\textbraceright"),dy(gy,by,Ty,"{","\\lbrace"),dy(gy,by,vy,"}","\\rbrace"),dy(gy,by,Ty,"[","\\lbrack",!0),dy(py,by,Ay,"[","\\lbrack",!0),dy(gy,by,vy,"]","\\rbrack",!0),dy(py,by,Ay,"]","\\rbrack",!0),dy(gy,by,Ty,"(","\\lparen",!0),dy(gy,by,vy,")","\\rparen",!0),dy(py,by,Ay,"<","\\textless",!0),dy(py,by,Ay,">","\\textgreater",!0),dy(gy,by,Ty,"⌊","\\lfloor",!0),dy(gy,by,vy,"⌋","\\rfloor",!0),dy(gy,by,Ty,"⌈","\\lceil",!0),dy(gy,by,vy,"⌉","\\rceil",!0),dy(gy,by,Ay,"\\","\\backslash"),dy(gy,by,Ay,"∣","|"),dy(gy,by,Ay,"∣","\\vert"),dy(py,by,Ay,"|","\\textbar",!0),dy(gy,by,Ay,"∥","\\|"),dy(gy,by,Ay,"∥","\\Vert"),dy(py,by,Ay,"∥","\\textbardbl"),dy(py,by,Ay,"~","\\textasciitilde"),dy(py,by,Ay,"\\","\\textbackslash"),dy(py,by,Ay,"^","\\textasciicircum"),dy(gy,by,Sy,"↑","\\uparrow",!0),dy(gy,by,Sy,"⇑","\\Uparrow",!0),dy(gy,by,Sy,"↓","\\downarrow",!0),dy(gy,by,Sy,"⇓","\\Downarrow",!0),dy(gy,by,Sy,"↕","\\updownarrow",!0),dy(gy,by,Sy,"⇕","\\Updownarrow",!0),dy(gy,by,_y,"∐","\\coprod"),dy(gy,by,_y,"⋁","\\bigvee"),dy(gy,by,_y,"⋀","\\bigwedge"),dy(gy,by,_y,"⨄","\\biguplus"),dy(gy,by,_y,"⋂","\\bigcap"),dy(gy,by,_y,"⋃","\\bigcup"),dy(gy,by,_y,"∫","\\int"),dy(gy,by,_y,"∫","\\intop"),dy(gy,by,_y,"∬","\\iint"),dy(gy,by,_y,"∭","\\iiint"),dy(gy,by,_y,"∏","\\prod"),dy(gy,by,_y,"∑","\\sum"),dy(gy,by,_y,"⨂","\\bigotimes"),dy(gy,by,_y,"⨁","\\bigoplus"),dy(gy,by,_y,"⨀","\\bigodot"),dy(gy,by,_y,"∮","\\oint"),dy(gy,by,_y,"∯","\\oiint"),dy(gy,by,_y,"∰","\\oiiint"),dy(gy,by,_y,"⨆","\\bigsqcup"),dy(gy,by,_y,"∫","\\smallint"),dy(py,by,xy,"…","\\textellipsis"),dy(gy,by,xy,"…","\\mathellipsis"),dy(py,by,xy,"…","\\ldots",!0),dy(gy,by,xy,"…","\\ldots",!0),dy(gy,by,xy,"⋯","\\@cdots",!0),dy(gy,by,xy,"⋱","\\ddots",!0),dy(gy,by,Ay,"⋮","\\varvdots"),dy(gy,by,yy,"ˊ","\\acute"),dy(gy,by,yy,"ˋ","\\grave"),dy(gy,by,yy,"¨","\\ddot"),dy(gy,by,yy,"~","\\tilde"),dy(gy,by,yy,"ˉ","\\bar"),dy(gy,by,yy,"˘","\\breve"),dy(gy,by,yy,"ˇ","\\check"),dy(gy,by,yy,"^","\\hat"),dy(gy,by,yy,"⃗","\\vec"),dy(gy,by,yy,"˙","\\dot"),dy(gy,by,yy,"˚","\\mathring"),dy(gy,by,ky,"","\\@imath"),dy(gy,by,ky,"","\\@jmath"),dy(gy,by,Ay,"ı","ı"),dy(gy,by,Ay,"ȷ","ȷ"),dy(py,by,Ay,"ı","\\i",!0),dy(py,by,Ay,"ȷ","\\j",!0),dy(py,by,Ay,"ß","\\ss",!0),dy(py,by,Ay,"æ","\\ae",!0),dy(py,by,Ay,"œ","\\oe",!0),dy(py,by,Ay,"ø","\\o",!0),dy(py,by,Ay,"Æ","\\AE",!0),dy(py,by,Ay,"Œ","\\OE",!0),dy(py,by,Ay,"Ø","\\O",!0),dy(py,by,yy,"ˊ","\\'"),dy(py,by,yy,"ˋ","\\`"),dy(py,by,yy,"ˆ","\\^"),dy(py,by,yy,"˜","\\~"),dy(py,by,yy,"ˉ","\\="),dy(py,by,yy,"˘","\\u"),dy(py,by,yy,"˙","\\."),dy(py,by,yy,"¸","\\c"),dy(py,by,yy,"˚","\\r"),dy(py,by,yy,"ˇ","\\v"),dy(py,by,yy,"¨",'\\"'),dy(py,by,yy,"˝","\\H"),dy(py,by,yy,"◯","\\textcircled");var My={"--":!0,"---":!0,"``":!0,"''":!0};dy(py,by,Ay,"–","--",!0),dy(py,by,Ay,"–","\\textendash"),dy(py,by,Ay,"—","---",!0),dy(py,by,Ay,"—","\\textemdash"),dy(py,by,Ay,"‘","`",!0),dy(py,by,Ay,"‘","\\textquoteleft"),dy(py,by,Ay,"’","'",!0),dy(py,by,Ay,"’","\\textquoteright"),dy(py,by,Ay,"“","``",!0),dy(py,by,Ay,"“","\\textquotedblleft"),dy(py,by,Ay,"”","''",!0),dy(py,by,Ay,"”","\\textquotedblright"),dy(gy,by,Ay,"°","\\degree",!0),dy(py,by,Ay,"°","\\degree"),dy(py,by,Ay,"°","\\textdegree",!0),dy(gy,by,Ay,"£","\\pounds"),dy(gy,by,Ay,"£","\\mathsterling",!0),dy(py,by,Ay,"£","\\pounds"),dy(py,by,Ay,"£","\\textsterling",!0),dy(gy,my,Ay,"✠","\\maltese"),dy(py,my,Ay,"✠","\\maltese");for(var Ly=0;Ly<14;Ly++){var Iy='0123456789/@."'.charAt(Ly);dy(gy,by,Ay,Iy,Iy)}for(var Oy=0;Oy<25;Oy++){var Ny='0123456789!@*()-=+";:?/.,'.charAt(Oy);dy(py,by,Ay,Ny,Ny)}for(var Dy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Py=0;Py<52;Py++){var By=Dy.charAt(Py);dy(gy,by,ky,By,By),dy(py,by,Ay,By,By)}dy(gy,my,Ay,"C","ℂ"),dy(py,my,Ay,"C","ℂ"),dy(gy,my,Ay,"H","ℍ"),dy(py,my,Ay,"H","ℍ"),dy(gy,my,Ay,"N","ℕ"),dy(py,my,Ay,"N","ℕ"),dy(gy,my,Ay,"P","ℙ"),dy(py,my,Ay,"P","ℙ"),dy(gy,my,Ay,"Q","ℚ"),dy(py,my,Ay,"Q","ℚ"),dy(gy,my,Ay,"R","ℝ"),dy(py,my,Ay,"R","ℝ"),dy(gy,my,Ay,"Z","ℤ"),dy(py,my,Ay,"Z","ℤ"),dy(gy,by,ky,"h","ℎ"),dy(py,by,ky,"h","ℎ");for(var Ry="",Fy=0;Fy<52;Fy++){var $y=Dy.charAt(Fy);dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56320+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56372+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56424+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56580+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56684+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56736+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56788+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56840+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56944+Fy)),dy(py,by,Ay,$y,Ry),Fy<26&&(dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56632+Fy)),dy(py,by,Ay,$y,Ry),dy(gy,by,ky,$y,Ry=String.fromCharCode(55349,56476+Fy)),dy(py,by,Ay,$y,Ry))}dy(gy,by,ky,"k",Ry=String.fromCharCode(55349,56668)),dy(py,by,Ay,"k",Ry);for(var jy=0;jy<10;jy++){var zy=jy.toString();dy(gy,by,ky,zy,Ry=String.fromCharCode(55349,57294+jy)),dy(py,by,Ay,zy,Ry),dy(gy,by,ky,zy,Ry=String.fromCharCode(55349,57314+jy)),dy(py,by,Ay,zy,Ry),dy(gy,by,ky,zy,Ry=String.fromCharCode(55349,57324+jy)),dy(py,by,Ay,zy,Ry),dy(gy,by,ky,zy,Ry=String.fromCharCode(55349,57334+jy)),dy(py,by,Ay,zy,Ry)}for(var qy=0;qy<3;qy++){var Hy="ÐÞþ".charAt(qy);dy(gy,by,ky,Hy,Hy),dy(py,by,Ay,Hy,Hy)}var Uy=[["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"]],Gy=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ky=function(t,e,n){return fy[n][t]&&fy[n][t].replace&&(t=fy[n][t].replace),{value:t,metrics:jm(t,e,n)}},Yy=function(t,e,n,i,r){var a,o=Ky(t,e,n),s=o.metrics;if(t=o.value,s){var c=s.italic;("text"===n||i&&"mathit"===i.font)&&(c=0),a=new ay(t,s.height,s.depth,c,s.skew,s.width,r)}else typeof console<"u"&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+n+"'"),a=new ay(t,0,0,0,0,0,r);if(i){a.maxFontSize=i.sizeMultiplier,i.style.isTight()&&a.classes.push("mtight");var l=i.getColor();l&&(a.style.color=l)}return a},Vy=(t,e)=>{if(Qm(t.classes)!==Qm(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(1===t.classes.length){var n=t.classes[0];if("mbin"===n||"mord"===n)return!1}for(var i in t.style)if(t.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},Wy=function(t){for(var e=0,n=0,i=0,r=0;re&&(e=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}t.height=e,t.depth=n,t.maxFontSize=i},Xy=function(t,e,n,i){var r=new ey(t,e,n,i);return Wy(r),r},Qy=(t,e,n,i)=>new ey(t,e,n,i),Zy=function(t){var e=new Bm(t);return Wy(e),e},Jy=function(t,e,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}return i+"-"+("textbf"===e&&"textit"===n?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular")},tw={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ew={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},nw={fontMap:tw,makeSymbol:Yy,mathsym:function(t,e,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&Ky(t,"Main-Bold",e).metrics?Yy(t,"Main-Bold",e,n,i.concat(["mathbf"])):"\\"===t||"main"===fy[e][t].font?Yy(t,"Main-Regular",e,n,i):Yy(t,"AMS-Regular",e,n,i.concat(["amsrm"]))},makeSpan:Xy,makeSvgSpan:Qy,makeLineSpan:function(t,e,n){var i=Xy([t],[],e);return i.height=Math.max(n||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),i.style.borderBottomWidth=Xm(i.height),i.maxFontSize=1,i},makeAnchor:function(t,e,n,i){var r=new ny(t,e,n,i);return Wy(r),r},makeFragment:Zy,wrapFragment:function(t,e){return t instanceof Bm?Xy([],[t],e):t},makeVList:function(t,e){for(var{children:n,depth:i}=function(t){if("individualShift"===t.positionType){for(var e=t.children,n=[e[0]],i=-e[0].shift-e[0].elem.depth,r=i,a=1;a0)return Yy(r,c,i,e,a.concat(l));if(s){var u,h;if("boldsymbol"===s){var f=function(t,e,n,i,r){return"textord"!==r&&Ky(t,"Math-BoldItalic",e).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(r,i,0,0,n);u=f.fontName,h=[f.fontClass]}else o?(u=tw[s].fontName,h=[s]):(u=Jy(s,e.fontWeight,e.fontShape),h=[s,e.fontWeight,e.fontShape]);if(Ky(r,u,i).metrics)return Yy(r,u,i,e,a.concat(h));if(My.hasOwnProperty(r)&&"Typewriter"===u.slice(0,10)){for(var d=[],g=0;g{var n=Xy(["mspace"],[],e),i=Wm(t,e);return n.style.marginRight=Xm(i),n},staticSvg:function(t,e){var[n,i,r]=ew[t],a=new sy(n),o=new oy([a],{width:Xm(i),height:Xm(r),style:"width:"+Xm(i),viewBox:"0 0 "+1e3*i+" "+1e3*r,preserveAspectRatio:"xMinYMin"}),s=Qy(["overlay"],[o],e);return s.height=r,s.style.height=Xm(r),s.style.width=Xm(i),s},svgData:ew,tryCombineChars:t=>{for(var e=0;e{var n=e.classes[0],i=t.classes[0];"mbin"===n&&dm(mw,i)?e.classes[0]="mord":"mbin"===i&&dm(bw,n)&&(t.classes[0]="mord")}),{node:u},h,f),xw(r,((t,e)=>{var n=Tw(e),i=Tw(t),r=n&&i?t.hasClass("mtight")?sw[n][i]:ow[n][i]:null;if(r)return nw.makeGlue(r,c)}),{node:u},h,f),r},xw=function t(e,n,i,r,a){r&&e.push(r);for(var o=0;on=>{e.splice(t+1,0,n),o++})(o)}}r&&e.pop()},kw=function(t){return t instanceof Bm||t instanceof ny||t instanceof ey&&t.hasClass("enclosing")?t:null},_w=function t(e,n){var i=kw(e);if(i){var r=i.children;if(r.length){if("right"===n)return t(r[r.length-1],"right");if("left"===n)return t(r[0],"left")}}return e},Tw=function(t,e){return t?(e&&(t=_w(t,e)),ww[t.classes[0]]||null):null},Ew=function(t,e){var n=["nulldelimiter"].concat(t.baseSizingClasses());return pw(e.concat(n))},Sw=function(t,e,n){if(!t)return pw();if(lw[t.type]){var i=lw[t.type](t,e);if(n&&e.size!==n.size){i=pw(e.sizingClasses(n),[i],e);var r=e.sizeMultiplier/n.sizeMultiplier;i.height*=r,i.depth*=r}return i}throw new cm("Got group of unknown type: '"+t.type+"'")};function Cw(t,e){var n=pw(["base"],t,e),i=pw(["strut"]);return i.style.height=Xm(n.height+n.depth),n.depth&&(i.style.verticalAlign=Xm(-n.depth)),n.children.unshift(i),n}function Aw(t,e){var n=null;1===t.length&&"tag"===t[0].type&&(n=t[0].tag,t=t[0].body);var i,r,a=vw(t,e,"root");2===a.length&&a[1].hasClass("tag")&&(i=a.pop());for(var o=[],s=[],c=0;c0&&(o.push(Cw(s,e)),s=[]),o.push(a[c]));s.length>0&&o.push(Cw(s,e)),n?((r=Cw(vw(n,e,!0))).classes=["tag"],o.push(r)):i&&o.push(i);var u=pw(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),r){var h=r.children[0];h.style.height=Xm(u.height+u.depth),u.depth&&(h.style.verticalAlign=Xm(-u.depth))}return u}function Mw(t){return new Bm(t)}class Lw{constructor(t,e,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=e||[],this.classes=n||[]}setAttribute(t,e){this.attributes[t]=e}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);this.classes.length>0&&(t.className=Qm(this.classes));for(var n=0;n0&&(t+=' class ="'+pm(Qm(this.classes))+'"'),t+=">";for(var n=0;n"}toText(){return this.children.map((t=>t.toText())).join("")}}class Iw{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pm(this.toText())}toText(){return this.text}}var Ow={MathNode:Lw,TextNode:Iw,SpaceNode:class{constructor(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?" ":t>=.1666&&t<=.1667?" ":t>=.2222&&t<=.2223?" ":t>=.2777&&t<=.2778?"  ":t>=-.05556&&t<=-.05555?" ⁣":t>=-.1667&&t<=-.1666?" ⁣":t>=-.2223&&t<=-.2222?" ⁣":t>=-.2778&&t<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Xm(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:Mw},Nw=function(t,e,n){return fy[e][t]&&fy[e][t].replace&&55349!==t.charCodeAt(0)&&!(My.hasOwnProperty(t)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6)))&&(t=fy[e][t].replace),new Ow.TextNode(t)},Dw=function(t){return 1===t.length?t[0]:new Ow.MathNode("mrow",t)},Pw=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var n=e.font;if(!n||"mathnormal"===n)return null;var i=t.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===t.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=t.text;return dm(["\\imath","\\jmath"],r)?null:(fy[i][r]&&fy[i][r].replace&&(r=fy[i][r].replace),jm(r,nw.fontMap[n].fontName,i)?nw.fontMap[n].variant:null)},Bw=function(t,e,n){if(1===t.length){var i=Fw(t[0],e);return n&&i instanceof Lw&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,a=[],o=0;o0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),r=s}return a},Rw=function(t,e,n){return Dw(Bw(t,e,n))},Fw=function(t,e){if(!t)return new Ow.MathNode("mrow");if(uw[t.type])return uw[t.type](t,e);throw new cm("Got group of unknown type: '"+t.type+"'")};function $w(t,e,n,i,r){var a,o=Bw(t,n);a=1===o.length&&o[0]instanceof Lw&&dm(["mrow","mtable"],o[0].type)?o[0]:new Ow.MathNode("mrow",o);var s=new Ow.MathNode("annotation",[new Ow.TextNode(e)]);s.setAttribute("encoding","application/x-tex");var c=new Ow.MathNode("semantics",[a,s]),l=new Ow.MathNode("math",[c]);return l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&l.setAttribute("display","block"),nw.makeSpan([r?"katex":"katex-mathml"],[l])}var jw=function(t){return new Gm({style:t.displayMode?Im.DISPLAY:Im.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},zw=function(t,e){if(e.displayMode){var n=["katex-display"];e.leqno&&n.push("leqno"),e.fleqn&&n.push("fleqn"),t=nw.makeSpan(n,[t])}return t},qw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Hw={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]},Uw=function(t){var e=new Ow.MathNode("mo",[new Ow.TextNode(qw[t.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},Gw=function(t,e){var{span:n,minWidth:i,height:r}=function(){var n=4e5,i=t.label.slice(1);if(dm(["widehat","widecheck","widetilde","utilde"],i)){var r,a,o,s=function(t){return"ordgroup"===t.type?t.body.length:1}(t.base);if(s>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,o=.42,a=i+"4"):(r=312,n=2340,o=.34,a="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][c],r=[0,239,300,360,420][c],o=[0,.24,.3,.3,.36,.42][c],a=i+c):(n=[0,600,1033,2339,2340][c],r=[0,260,286,306,312][c],o=[0,.26,.286,.3,.306,.34][c],a="tilde"+c)}var l=new sy(a),u=new oy([l],{width:"100%",height:Xm(o),viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:nw.makeSvgSpan([],[u],e),minWidth:0,height:o}}var h,f,d=[],g=Hw[i],[p,b,m]=g,y=m/1e3,w=p.length;if(1===w)h=["hide-tail"],f=[g[3]];else if(2===w)h=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");h=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var v=0;v0&&(n.style.minWidth=Xm(i)),n};function Kw(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Yw(t){var e=Vw(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Vw(t){return t&&("atom"===t.type||hy.hasOwnProperty(t.type))?t:null}var Ww=(t,e)=>{var n,i,r;t&&"supsub"===t.type?(n=(i=Kw(t.base,"accent")).base,t.base=n,r=function(t){if(t instanceof ey)return t;throw new Error("Expected span but got "+String(t)+".")}(Sw(t,e)),t.base=i):n=(i=Kw(t,"accent")).base;var a=Sw(n,e.havingCrampedStyle()),o=0;if(i.isShifty&&ym(n)){var s=mm(n);o=ly(Sw(s,e.havingCrampedStyle())).skew}var c,l="\\c"===i.label,u=l?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight);if(i.isStretchy)c=Gw(i,e),c=nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Xm(2*o)+")",marginLeft:Xm(2*o)}:void 0}]},e);else{var h,f;"\\vec"===i.label?(h=nw.staticSvg("vec",e),f=nw.svgData.vec[1]):((h=ly(h=nw.makeOrd({mode:i.mode,text:i.label},e,"textord"))).italic=0,f=h.width,l&&(u+=h.depth)),c=nw.makeSpan(["accent-body"],[h]);var d="\\textcircled"===i.label;d&&(c.classes.push("accent-full"),u=a.height);var g=o;d||(g-=f/2),c.style.left=Xm(g),"\\textcircled"===i.label&&(c.style.top=".2em"),c=nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:c}]},e)}var p=nw.makeSpan(["mord","accent"],[c],e);return r?(r.children[0]=p,r.height=Math.max(p.height,r.height),r.classes[0]="mord",r):p},Xw=(t,e)=>{var n=t.isStretchy?Uw(t.label):new Ow.MathNode("mo",[Nw(t.label,t.mode)]),i=new Ow.MathNode("mover",[Fw(t.base,e),n]);return i.setAttribute("accent","true"),i},Qw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((t=>"\\"+t)).join("|"));hw({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:(t,e)=>{var n=dw(e[0]),i=!Qw.test(t.funcName),r=!i||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:Ww,mathmlBuilder:Xw}),hw({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],i=t.parser.mode;return"math"===i&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ww,mathmlBuilder:Xw}),hw({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=e[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:(t,e)=>{var n=Sw(t.base,e),i=Gw(t,e),r="\\utilde"===t.label?.12:0,a=nw.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},e);return nw.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var n=Uw(t.label),i=new Ow.MathNode("munder",[Fw(t.base,e),n]);return i.setAttribute("accentunder","true"),i}});var Zw=t=>{var e=new Ow.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};hw({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:i,funcName:r}=t;return{type:"xArrow",mode:i.mode,label:r,body:e[0],below:n[0]}},htmlBuilder(t,e){var n,i=e.style,r=e.havingStyle(i.sup()),a=nw.wrapFragment(Sw(t.body,r,e),e),o="\\x"===t.label.slice(0,2)?"x":"cd";a.classes.push(o+"-arrow-pad"),t.below&&(r=e.havingStyle(i.sub()),(n=nw.wrapFragment(Sw(t.below,r,e),e)).classes.push(o+"-arrow-pad"));var s,c=Gw(t,e),l=-e.fontMetrics().axisHeight+.5*c.height,u=-e.fontMetrics().axisHeight-.5*c.height-.111;if((a.depth>.25||"\\xleftequilibrium"===t.label)&&(u-=a.depth),n){var h=-e.fontMetrics().axisHeight+n.height+.5*c.height+.111;s=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:c,shift:l},{type:"elem",elem:n,shift:h}]},e)}else s=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:c,shift:l}]},e);return s.children[0].children[0].children[1].classes.push("svg-align"),nw.makeSpan(["mrel","x-arrow"],[s],e)},mathmlBuilder(t,e){var n,i=Uw(t.label);if(i.setAttribute("minsize","x"===t.label.charAt(0)?"1.75em":"3.0em"),t.body){var r=Zw(Fw(t.body,e));if(t.below){var a=Zw(Fw(t.below,e));n=new Ow.MathNode("munderover",[i,a,r])}else n=new Ow.MathNode("mover",[i,r])}else if(t.below){var o=Zw(Fw(t.below,e));n=new Ow.MathNode("munder",[i,o])}else n=Zw(),n=new Ow.MathNode("mover",[i,n]);return n}});var Jw=nw.makeSpan;function tv(t,e){var n=vw(t.body,e,!0);return Jw([t.mclass],n,e)}function ev(t,e){var n,i=Bw(t.body,e);return"minner"===t.mclass?n=new Ow.MathNode("mpadded",i):"mord"===t.mclass?t.isCharacterBox?(n=i[0]).type="mi":n=new Ow.MathNode("mi",i):(t.isCharacterBox?(n=i[0]).type="mo":n=new Ow.MathNode("mo",i),"mbin"===t.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===t.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===t.mclass||"mclose"===t.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===t.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}hw({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:i}=t,r=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:gw(r),isCharacterBox:ym(r)}},htmlBuilder:tv,mathmlBuilder:ev});var nv=t=>{var e="ordgroup"===t.type&&t.body.length?t.body[0]:t;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family};hw({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:n}=t;return{type:"mclass",mode:n.mode,mclass:nv(e[0]),body:gw(e[1]),isCharacterBox:ym(e[1])}}}),hw({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var n,{parser:i,funcName:r}=t,a=e[1],o=e[0];n="\\stackrel"!==r?nv(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:gw(a)},c={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===r?null:o,sub:"\\underset"===r?o:null};return{type:"mclass",mode:i.mode,mclass:n,body:[c],isCharacterBox:ym(c)}},htmlBuilder:tv,mathmlBuilder:ev}),hw({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:nv(e[0]),body:gw(e[0])}},htmlBuilder(t,e){var n=vw(t.body,e,!0),i=nw.makeSpan([t.mclass],n,e);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(t,e){var n=Bw(t.body,e),i=new Ow.MathNode("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var iv={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},rv=t=>"textord"===t.type&&"@"===t.text,av=(t,e)=>("mathord"===t.type||"atom"===t.type)&&t.text===e;function ov(t,e,n){var i=iv[t];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":var r={type:"atom",text:i,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[e[0]],[]),n.callFunction("\\Big",[r],[]),n.callFunction("\\\\cdright",[e[1]],[])]};return n.callFunction("\\\\cdparent",[a],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}hw({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:i}=t;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),i=nw.wrapFragment(Sw(t.label,n,e),e);return i.classes.push("cd-label-"+t.side),i.style.bottom=Xm(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(t,e){var n=new Ow.MathNode("mrow",[Fw(t.label,e)]);return(n=new Ow.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===t.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new Ow.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),hw({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=nw.wrapFragment(Sw(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(t,e)=>new Ow.MathNode("mrow",[Fw(t.fragment,e)])}),hw({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:n}=t,i=Kw(e[0],"ordgroup").body,r="",a=0;a=1114111)throw new cm("\\@char with invalid code point "+r);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:n.mode,text:o}}});var sv=(t,e)=>{var n=vw(t.body,e.withColor(t.color),!1);return nw.makeFragment(n)},cv=(t,e)=>{var n=Bw(t.body,e.withColor(t.color)),i=new Ow.MathNode("mstyle",n);return i.setAttribute("mathcolor",t.color),i};hw({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,i=Kw(e[0],"color-token").color,r=e[1];return{type:"color",mode:n.mode,color:i,body:gw(r)}},htmlBuilder:sv,mathmlBuilder:cv}),hw({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:i}=t,r=Kw(e[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var a=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:r,body:a}},htmlBuilder:sv,mathmlBuilder:cv}),hw({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:i}=t,r="["===i.gullet.future().text?i.parseSizeGroup(!0):null,a=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:a,size:r&&Kw(r,"size").value}},htmlBuilder(t,e){var n=nw.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=Xm(Wm(t.size,e)))),n},mathmlBuilder(t,e){var n=new Ow.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",Xm(Wm(t.size,e)))),n}});var lv={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},uv=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new cm("Expected a control sequence",t);return e},hv=(t,e,n,i)=>{var r=t.gullet.macros.get(n.text);null==r&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,r,i)};hw({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var i=e.fetch();if(lv[i.text])return("\\global"===n||"\\\\globallong"===n)&&(i.text=lv[i.text]),Kw(e.parseFunction(),"internal");throw new cm("Invalid token after macro prefix",i)}}),hw({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,i=e.gullet.popToken(),r=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new cm("Expected a control sequence",i);for(var a,o=0,s=[[]];"{"!==e.gullet.future().text;)if("#"===(i=e.gullet.popToken()).text){if("{"===e.gullet.future().text){a=e.gullet.future(),s[o].push("{");break}if(i=e.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new cm('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==o+1)throw new cm('Argument number "'+i.text+'" out of order');o++,s.push([])}else{if("EOF"===i.text)throw new cm("Expected a macro definition");s[o].push(i.text)}var{tokens:c}=e.gullet.consumeArg();return a&&c.unshift(a),("\\edef"===n||"\\xdef"===n)&&(c=e.gullet.expandTokens(c)).reverse(),e.gullet.macros.set(r,{tokens:c,numArgs:o,delimiters:s},n===lv[n]),{type:"internal",mode:e.mode}}}),hw({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,i=uv(e.gullet.popToken());e.gullet.consumeSpaces();var r=(t=>{var e=t.gullet.popToken();return"="===e.text&&" "===(e=t.gullet.popToken()).text&&(e=t.gullet.popToken()),e})(e);return hv(e,i,r,"\\\\globallet"===n),{type:"internal",mode:e.mode}}}),hw({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,i=uv(e.gullet.popToken()),r=e.gullet.popToken(),a=e.gullet.popToken();return hv(e,i,a,"\\\\globalfuture"===n),e.gullet.pushToken(a),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var fv=function(t,e,n){var i=jm(fy.math[t]&&fy.math[t].replace||t,e,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+e+".");return i},dv=function(t,e,n,i){var r=n.havingBaseStyle(e),a=nw.makeSpan(i.concat(r.sizingClasses(n)),[t],n),o=r.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=r.sizeMultiplier,a},gv=function(t,e,n){var i=e.havingBaseStyle(n),r=(1-e.sizeMultiplier/i.sizeMultiplier)*e.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Xm(r),t.height-=r,t.depth+=r},pv=function(t,e,n,i,r,a){var o=function(t,e,n,i){return nw.makeSymbol(t,"Size"+e+"-Regular",n,i)}(t,e,r,i),s=dv(nw.makeSpan(["delimsizing","size"+e],[o],i),Im.TEXT,i,a);return n&&gv(s,i,Im.TEXT),s},bv=function(t,e,n){return{type:"elem",elem:nw.makeSpan(["delimsizinginner","Size1-Regular"===e?"delim-size1":"delim-size4"],[nw.makeSpan([],[nw.makeSymbol(t,e,n)])])}},mv=function(t,e,n){var i=Rm["Size4-Regular"][t.charCodeAt(0)]?Rm["Size4-Regular"][t.charCodeAt(0)][4]:Rm["Size1-Regular"][t.charCodeAt(0)][4],r=new sy("inner",function(t,e){switch(t){case"⎜":return"M291 0 H417 V"+e+" H291z M291 0 H417 V"+e+" H291z";case"∣":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z";case"∥":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145zM367 0 H410 V"+e+" H367z M367 0 H410 V"+e+" H367z";case"⎟":return"M457 0 H583 V"+e+" H457z M457 0 H583 V"+e+" H457z";case"⎢":return"M319 0 H403 V"+e+" H319z M319 0 H403 V"+e+" H319z";case"⎥":return"M263 0 H347 V"+e+" H263z M263 0 H347 V"+e+" H263z";case"⎪":return"M384 0 H504 V"+e+" H384z M384 0 H504 V"+e+" H384z";case"⏐":return"M312 0 H355 V"+e+" H312z M312 0 H355 V"+e+" H312z";case"‖":return"M257 0 H300 V"+e+" H257z M257 0 H300 V"+e+" H257zM478 0 H521 V"+e+" H478z M478 0 H521 V"+e+" H478z";default:return""}}(t,Math.round(1e3*e))),a=new oy([r],{width:Xm(i),height:Xm(e),style:"width:"+Xm(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*e),preserveAspectRatio:"xMinYMin"}),o=nw.makeSvgSpan([],[a],n);return o.height=e,o.style.height=Xm(e),o.style.width=Xm(i),{type:"elem",elem:o}},yv={type:"kern",size:-.008},wv=["|","\\lvert","\\rvert","\\vert"],vv=["\\|","\\lVert","\\rVert","\\Vert"],xv=function(t,e,n,i,r,a){var o,s,c,l,u="",h=0;o=c=l=t,s=null;var f="Size1-Regular";"\\uparrow"===t?c=l="⏐":"\\Uparrow"===t?c=l="‖":"\\downarrow"===t?o=c="⏐":"\\Downarrow"===t?o=c="‖":"\\updownarrow"===t?(o="\\uparrow",c="⏐",l="\\downarrow"):"\\Updownarrow"===t?(o="\\Uparrow",c="‖",l="\\Downarrow"):dm(wv,t)?(c="∣",u="vert",h=333):dm(vv,t)?(c="∥",u="doublevert",h=556):"["===t||"\\lbrack"===t?(o="⎡",c="⎢",l="⎣",f="Size4-Regular",u="lbrack",h=667):"]"===t||"\\rbrack"===t?(o="⎤",c="⎥",l="⎦",f="Size4-Regular",u="rbrack",h=667):"\\lfloor"===t||"⌊"===t?(c=o="⎢",l="⎣",f="Size4-Regular",u="lfloor",h=667):"\\lceil"===t||"⌈"===t?(o="⎡",c=l="⎢",f="Size4-Regular",u="lceil",h=667):"\\rfloor"===t||"⌋"===t?(c=o="⎥",l="⎦",f="Size4-Regular",u="rfloor",h=667):"\\rceil"===t||"⌉"===t?(o="⎤",c=l="⎥",f="Size4-Regular",u="rceil",h=667):"("===t||"\\lparen"===t?(o="⎛",c="⎜",l="⎝",f="Size4-Regular",u="lparen",h=875):")"===t||"\\rparen"===t?(o="⎞",c="⎟",l="⎠",f="Size4-Regular",u="rparen",h=875):"\\{"===t||"\\lbrace"===t?(o="⎧",s="⎨",l="⎩",c="⎪",f="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(o="⎫",s="⎬",l="⎭",c="⎪",f="Size4-Regular"):"\\lgroup"===t||"⟮"===t?(o="⎧",l="⎩",c="⎪",f="Size4-Regular"):"\\rgroup"===t||"⟯"===t?(o="⎫",l="⎭",c="⎪",f="Size4-Regular"):"\\lmoustache"===t||"⎰"===t?(o="⎧",l="⎭",c="⎪",f="Size4-Regular"):("\\rmoustache"===t||"⎱"===t)&&(o="⎫",l="⎩",c="⎪",f="Size4-Regular");var d=fv(o,f,r),g=d.height+d.depth,p=fv(c,f,r),b=p.height+p.depth,m=fv(l,f,r),y=m.height+m.depth,w=0,v=1;if(null!==s){var x=fv(s,f,r);w=x.height+x.depth,v=2}var k=g+y+w,_=k+Math.max(0,Math.ceil((e-k)/(v*b)))*v*b,T=i.fontMetrics().axisHeight;n&&(T*=i.sizeMultiplier);var E=_/2-T,S=[];if(u.length>0){var C=_-g-y,A=Math.round(1e3*_),M=function(t,e){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+e+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+e+" v1759 h84z";case"vert":return"M145 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+e+" v585 h43z";case"doublevert":return"M145 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+e+" v585 h43z\nM367 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+e+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+e+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+e+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+e+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+e+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+" v602 h84z\nM403 1759 V0 H319 V1759 v"+e+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+e+" 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\nc-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,\n-36,557 l0,"+(e+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.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\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(e+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-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,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(e+9)+"\nc-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\nc-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\nc0,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\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(e+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-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.")}}(u,Math.round(1e3*C)),L=new sy(u,M),I=(h/1e3).toFixed(3)+"em",O=(A/1e3).toFixed(3)+"em",N=new oy([L],{width:I,height:O,viewBox:"0 0 "+h+" "+A}),D=nw.makeSvgSpan([],[N],i);D.height=A/1e3,D.style.width=I,D.style.height=O,S.push({type:"elem",elem:D})}else{if(S.push(bv(l,f,r)),S.push(yv),null===s){var P=_-g-y+.016;S.push(mv(c,P,i))}else{var B=(_-g-y-w)/2+.016;S.push(mv(c,B,i)),S.push(yv),S.push(bv(s,f,r)),S.push(yv),S.push(mv(c,B,i))}S.push(yv),S.push(bv(o,f,r))}var R=i.havingBaseStyle(Im.TEXT),F=nw.makeVList({positionType:"bottom",positionData:E,children:S},R);return dv(nw.makeSpan(["delimsizing","mult"],[F],R),Im.TEXT,i,a)},kv=.08,_v=function(t,e,n,i,r){var a=function(t,e,n){e*=1e3;var i="";switch(t){case"sqrtMain":i=function(t,e){return"M95,"+(622+t+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.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\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+t/2.075+" -"+t+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+t)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+t)+" 80h400000v"+(40+t)+"h-400000z"}(e);break;case"sqrtSize1":i=function(t,e){return"M263,"+(601+t+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+t/2.084+" -"+t+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+t)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+t)+" 80h400000v"+(40+t)+"h-400000z"}(e);break;case"sqrtSize2":i=function(t,e){return"M983 "+(10+t+80)+"\nl"+t/3.13+" -"+t+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+t)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+t)+" 80h400000v"+(40+t)+"h-400000z"}(e);break;case"sqrtSize3":i=function(t,e){return"M424,"+(2398+t+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-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\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+t/4.223+" -"+t+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+t)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+t)+" 80\nh400000v"+(40+t)+"h-400000z"}(e);break;case"sqrtSize4":i=function(t,e){return"M473,"+(2713+t+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+t/5.298+" -"+t+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+t)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-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\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+t)+" 80h400000v"+(40+t)+"H1017.7z"}(e);break;case"sqrtTall":i=function(t,e,n){return"M702 "+(t+80)+"H400000"+(40+t)+"\nH742v"+(n-54-80-t)+"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\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+t)+"H742z"}(e,0,n)}return i}(t,i,n),o=new sy(t,a),s=new oy([o],{width:"400em",height:Xm(e),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return nw.makeSvgSpan(["hide-tail"],[s],r)},Tv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Ev=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Sv=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Cv=[0,1.2,1.8,2.4,3],Av=[{type:"small",style:Im.SCRIPTSCRIPT},{type:"small",style:Im.SCRIPT},{type:"small",style:Im.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Mv=[{type:"small",style:Im.SCRIPTSCRIPT},{type:"small",style:Im.SCRIPT},{type:"small",style:Im.TEXT},{type:"stack"}],Lv=[{type:"small",style:Im.SCRIPTSCRIPT},{type:"small",style:Im.SCRIPT},{type:"small",style:Im.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Iv=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Ov=function(t,e,n,i){for(var r=Math.min(2,3-i.style.size);re)return n[r]}return n[n.length-1]},Nv=function(t,e,n,i,r,a){var o;"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":(">"===t||"\\gt"===t||"⟩"===t)&&(t="\\rangle"),o=dm(Sv,t)?Av:dm(Tv,t)?Lv:Mv;var s=Ov(t,e,o,i);return"small"===s.type?function(t,e,n,i,r,a){var o=nw.makeSymbol(t,"Main-Regular",r,i),s=dv(o,e,i,a);return n&&gv(s,i,e),s}(t,s.style,n,i,r,a):"large"===s.type?pv(t,s.size,n,i,r,a):xv(t,e,n,i,r,a)},Dv={sqrtImage:function(t,e){var n,i,r=e.havingBaseSizing(),a=Ov("\\surd",t*r.sizeMultiplier,Lv,r),o=r.sizeMultiplier,s=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),c=0,l=0,u=0;return"small"===a.type?(t<1?o=1:t<1.4&&(o=.7),l=(1+s)/o,(n=_v("sqrtMain",c=(1+s+kv)/o,u=1e3+1e3*s+80,s,e)).style.minWidth="0.853em",i=.833/o):"large"===a.type?(u=1080*Cv[a.size],l=(Cv[a.size]+s)/o,c=(Cv[a.size]+s+kv)/o,(n=_v("sqrtSize"+a.size,c,u,s,e)).style.minWidth="1.02em",i=1/o):(c=t+s+kv,l=t+s,u=Math.floor(1e3*t+s)+80,(n=_v("sqrtTall",c,u,s,e)).style.minWidth="0.742em",i=1.056),n.height=l,n.style.height=Xm(c),{span:n,advanceWidth:i,ruleWidth:(e.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(t,e,n,i,r){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":(">"===t||"\\gt"===t||"⟩"===t)&&(t="\\rangle"),dm(Tv,t)||dm(Sv,t))return pv(t,e,!1,n,i,r);if(dm(Ev,t))return xv(t,Cv[e],!1,n,i,r);throw new cm("Illegal delimiter: '"+t+"'")},sizeToMaxHeight:Cv,customSizedDelim:Nv,leftRightDelim:function(t,e,n,i,r,a){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,s=5/i.fontMetrics().ptPerEm,c=Math.max(e-o,n+o),l=Math.max(c/500*901,2*c-s);return Nv(t,l,!0,i,r,a)}},Pv={"\\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}},Bv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Rv(t,e){var n=Vw(t);if(n&&dm(Bv,n.text))return n;throw new cm(n?"Invalid delimiter '"+n.text+"' after '"+e.funcName+"'":"Invalid delimiter type '"+t.type+"'",t)}function Fv(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}hw({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:(t,e)=>{var n=Rv(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Pv[t.funcName].size,mclass:Pv[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>"."===t.delim?nw.makeSpan([t.mclass]):Dv.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];"."!==t.delim&&e.push(Nw(t.delim,t.mode));var n=new Ow.MathNode("mo",e);"mopen"===t.mclass||"mclose"===t.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=Xm(Dv.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}}),hw({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=t.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new cm("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Rv(e[0],t).text,color:n}}}),hw({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=Rv(e[0],t),i=t.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var a=Kw(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{Fv(t);for(var n=vw(t.body,e,!0,["mopen","mclose"]),i=0,r=0,a=!1,o=0;o{Fv(t);var n=Bw(t.body,e);if("."!==t.left){var i=new Ow.MathNode("mo",[Nw(t.left,t.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if("."!==t.right){var r=new Ow.MathNode("mo",[Nw(t.right,t.mode)]);r.setAttribute("fence","true"),t.rightColor&&r.setAttribute("mathcolor",t.rightColor),n.push(r)}return Dw(n)}}),hw({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=Rv(e[0],t);if(!t.parser.leftrightDepth)throw new cm("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if("."===t.delim)n=Ew(e,[]);else{n=Dv.sizedDelim(t.delim,1,e,t.mode,[]);var i={delim:t.delim,options:e};n.isMiddle=i}return n},mathmlBuilder:(t,e)=>{var n="\\vert"===t.delim||"|"===t.delim?Nw("|","text"):Nw(t.delim,t.mode),i=new Ow.MathNode("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var $v=(t,e)=>{var n,i,r=nw.wrapFragment(Sw(t.body,e),e),a=t.label.slice(1),o=e.sizeMultiplier,s=0,c=ym(t.body);if("sout"===a)(n=nw.makeSpan(["stretchy","sout"])).height=e.fontMetrics().defaultRuleThickness/o,s=-.5*e.fontMetrics().xHeight;else if("phase"===a){var l=Wm({number:.6,unit:"pt"},e),u=Wm({number:.35,unit:"ex"},e);o/=e.havingBaseSizing().sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Xm(h/2+l);var f=Math.floor(1e3*h*o),d=function(t){return"M400000 "+t+" H0 L"+t/2+" 0 l65 45 L145 "+(t-80)+" H400000z"}(f),g=new oy([new sy("phase",d)],{width:"400em",height:Xm(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});(n=nw.makeSvgSpan(["hide-tail"],[g],e)).style.height=Xm(h),s=r.depth+l+u}else{/cancel/.test(a)?c||r.classes.push("cancel-pad"):"angl"===a?r.classes.push("anglpad"):r.classes.push("boxpad");var p=0,b=0,m=0;/box/.test(a)?(m=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),b=p=e.fontMetrics().fboxsep+("colorbox"===a?0:m)):"angl"===a?(p=4*(m=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness)),b=Math.max(0,.25-r.depth)):b=p=c?.2:0,n=function(t,e,n,i,r){var a,o=t.height+t.depth+n+i;if(/fbox|color|angl/.test(e)){if(a=nw.makeSpan(["stretchy",e],[],r),"fbox"===e){var s=r.color&&r.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(e)&&c.push(new cy({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&c.push(new cy({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new oy(c,{width:"100%",height:Xm(o)});a=nw.makeSvgSpan([],[l],r)}return a.height=o,a.style.height=Xm(o),a}(r,a,p,b,e),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=Xm(m)):"angl"===a&&.049!==m&&(n.style.borderTopWidth=Xm(m),n.style.borderRightWidth=Xm(m)),s=r.depth+b,t.backgroundColor&&(n.style.backgroundColor=t.backgroundColor,t.borderColor&&(n.style.borderColor=t.borderColor))}if(t.backgroundColor)i=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:r,shift:0}]},e);else{var y=/cancel|phase/.test(a)?["svg-align"]:[];i=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:y}]},e)}return/cancel/.test(a)&&(i.height=r.height,i.depth=r.depth),/cancel/.test(a)&&!c?nw.makeSpan(["mord","cancel-lap"],[i],e):nw.makeSpan(["mord"],[i],e)},jv=(t,e)=>{var n=0,i=new Ow.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Fw(t.body,e)]);switch(t.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===t.label){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(t.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return t.backgroundColor&&i.setAttribute("mathbackground",t.backgroundColor),i};hw({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:i,funcName:r}=t,a=Kw(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,body:o}},htmlBuilder:$v,mathmlBuilder:jv}),hw({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:i,funcName:r}=t,a=Kw(e[0],"color-token").color,o=Kw(e[1],"color-token").color,s=e[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:$v,mathmlBuilder:jv}),hw({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}}),hw({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:i}=t,r=e[0];return{type:"enclose",mode:n.mode,label:i,body:r}},htmlBuilder:$v,mathmlBuilder:jv}),hw({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var zv={};function qv(t){for(var{type:e,names:n,props:i,handler:r,htmlBuilder:a,mathmlBuilder:o}=t,s={type:e,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},c=0;c{if(!t.parser.settings.displayMode)throw new cm("{"+t.envName+"} can be used only in display mode.")};function Yv(t){if(-1===t.indexOf("ed"))return-1===t.indexOf("*")}function Vv(t,e,n){var{hskipBeforeAndAfter:i,addJot:r,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:h,leqno:f}=e;if(t.gullet.beginGroup(),l||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){var d=t.gullet.expandMacroAsText("\\arraystretch");if(null==d)o=1;else if(!(o=parseFloat(d))||o<0)throw new cm("Invalid \\arraystretch: "+d)}t.gullet.beginGroup();var g=[],p=[g],b=[],m=[],y=null!=c?[]:void 0;function w(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function v(){y&&(t.gullet.macros.get("\\df@tag")?(y.push(t.subparse([new sm("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!c&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(w(),m.push(Gv(t));;){var x=t.parseExpression(!1,l?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),x={type:"ordgroup",mode:t.mode,body:x},n&&(x={type:"styling",mode:t.mode,style:n,body:[x]}),g.push(x);var k=t.fetch().text;if("&"===k){if(h&&g.length===h){if(l||s)throw new cm("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===k){v(),1===g.length&&"styling"===x.type&&0===x.body[0].body.length&&(p.length>1||!u)&&p.pop(),m.length0&&(m+=.25),c.push({pos:m,isDashed:t[e]})}for(y(a[0]),n=0;n0&&(x<(E+=b)&&(x=E),E=0),t.addJot&&(x+=d),k.height=v,k.depth=x,m+=v,k.pos=m,m+=x+E,s[n]=k,y(a[n+1])}var S,C,A=m/2+e.fontMetrics().axisHeight,M=t.cols||[],L=[],I=[];if(t.tags&&t.tags.some((t=>t)))for(n=0;n=o)){var z=void 0;(i>0||t.hskipBeforeAndAfter)&&0!==(z=gm(B.pregap,h))&&((S=nw.makeSpan(["arraycolsep"],[])).style.width=Xm(z),L.push(S));var q=[];for(n=0;n0){for(var K=nw.makeLineSpan("hline",e,l),Y=nw.makeLineSpan("hdashline",e,l),V=[{type:"elem",elem:s,shift:0}];c.length>0;){var W=c.pop(),X=W.pos-A;W.isDashed?V.push({type:"elem",elem:Y,shift:X}):V.push({type:"elem",elem:K,shift:X})}s=nw.makeVList({positionType:"individualShift",children:V},e)}if(0===I.length)return nw.makeSpan(["mord"],[s],e);var Q=nw.makeVList({positionType:"individualShift",children:I},e);return Q=nw.makeSpan(["tag"],[Q],e),nw.makeFragment([s,Q])},Qv={c:"center ",l:"left ",r:"right "},Zv=function(t,e){for(var n=[],i=new Ow.MathNode("mtd",[],["mtr-glue"]),r=new Ow.MathNode("mtd",[],["mml-eqn-num"]),a=0;a0){var d=t.cols,g="",p=!1,b=0,m=d.length;"separator"===d[0].type&&(h+="top ",b=1),"separator"===d[d.length-1].type&&(h+="bottom ",m-=1);for(var y=b;y0?"left ":"",h+=_[_.length-1].length>0?"right ":"";for(var T=1;T<_.length-1;T++)k+=0===_[T].length?"none ":_[T][0]?"dashed ":"solid ";return/[sd]/.test(k)&&l.setAttribute("rowlines",k.trim()),""!==h&&(l=new Ow.MathNode("menclose",[l])).setAttribute("notation",h.trim()),t.arraystretch&&t.arraystretch<1&&(l=new Ow.MathNode("mstyle",[l])).setAttribute("scriptlevel","1"),l},Jv=function(t,e){-1===t.envName.indexOf("ed")&&Kv(t);var n,i=[],r=t.envName.indexOf("at")>-1?"alignat":"align",a="split"===t.envName,o=Vv(t.parser,{cols:i,addJot:!0,autoTag:a?void 0:Yv(t.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,c={type:"ordgroup",mode:t.mode,body:[]};if(e[0]&&"ordgroup"===e[0].type){for(var l="",u=0;u0&&h&&(g=1),i[f]={type:"align",align:d,pregap:g,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};qv({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=(Vw(e[0])?[e[0]]:Kw(e[0],"ordgroup").body).map((function(t){var e=Yw(t).text;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};if(":"===e)return{type:"separator",separator:":"};throw new cm("Unknown column alignment: "+e,t)})),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Vv(t.parser,i,Wv(t.envName))},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===t.envName.charAt(t.envName.length-1)){var r=t.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,-1==="lcr".indexOf(n))throw new cm("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),i.cols=[{type:"align",align:n}]}}var a=Vv(t.parser,i,Wv(t.envName)),o=Math.max(0,...a.body.map((t=>t.length)));return a.cols=new Array(o).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e=Vv(t.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=(Vw(e[0])?[e[0]]:Kw(e[0],"ordgroup").body).map((function(t){var e=Yw(t).text;if(-1!=="lc".indexOf(e))return{type:"align",align:e};throw new cm("Unknown column alignment: "+e,t)}));if(n.length>1)throw new cm("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=Vv(t.parser,i,"script")).body.length>0&&i.body[0].length>1)throw new cm("{subarray} can contain only one column");return i},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e=Vv(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Wv(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Jv,htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){dm(["gather","gather*"],t.envName)&&Kv(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Yv(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Vv(t.parser,e,"display")},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Jv,htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Kv(t);var e={autoTag:Yv(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Vv(t.parser,e,"display")},htmlBuilder:Xv,mathmlBuilder:Zv}),qv({type:"array",names:["CD"],props:{numArgs:0},handler:t=>(Kv(t),function(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var n=t.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===e[e.length-1].length&&e.pop();break}throw new cm("Expected \\\\ or \\cr or \\end",t.nextToken)}t.consume()}for(var i=[],r=[i],a=0;a-1)){if(!("<>AV".indexOf(l)>-1))throw new cm('Expected one of "<>AV=|." after @',o[c]);for(var h=0;h<2;h++){for(var f=!0,d=c+1;d{var n=t.font,i=e.withFont(n);return Sw(t.body,i)},nx=(t,e)=>{var n=t.font,i=e.withFont(n);return Fw(t.body,i)},ix={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};hw({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=dw(e[0]),a=i;return a in ix&&(a=ix[a]),{type:"font",mode:n.mode,font:a.slice(1),body:r}},htmlBuilder:ex,mathmlBuilder:nx}),hw({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,i=e[0],r=ym(i);return{type:"mclass",mode:n.mode,mclass:nv(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:r}}}),hw({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:i,breakOnTokenText:r}=t,{mode:a}=n,o=n.parseExpression(!0,r);return{type:"font",mode:a,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:ex,mathmlBuilder:nx});var rx=(t,e)=>{var n=e;return"display"===t?n=n.id>=Im.SCRIPT.id?n.text():Im.DISPLAY:"text"===t&&n.size===Im.DISPLAY.size?n=Im.TEXT:"script"===t?n=Im.SCRIPT:"scriptscript"===t&&(n=Im.SCRIPTSCRIPT),n},ax=(t,e)=>{var n,i=rx(t.size,e.style),r=i.fracNum(),a=i.fracDen();n=e.havingStyle(r);var o=Sw(t.numer,n,e);if(t.continued){var s=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?3*h:7*h,g=e.fontMetrics().denom1):(u>0?(f=e.fontMetrics().num2,d=h):(f=e.fontMetrics().num3,d=3*h),g=e.fontMetrics().denom2),l){var v=e.fontMetrics().axisHeight;f-o.depth-(v+.5*u){var n=new Ow.MathNode("mfrac",[Fw(t.numer,e),Fw(t.denom,e)]);if(t.hasBarLine){if(t.barSize){var i=Wm(t.barSize,e);n.setAttribute("linethickness",Xm(i))}}else n.setAttribute("linethickness","0px");var r=rx(t.size,e.style);if(r.size!==e.style.size){n=new Ow.MathNode("mstyle",[n]);var a=r.size===Im.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(null!=t.leftDelim||null!=t.rightDelim){var o=[];if(null!=t.leftDelim){var s=new Ow.MathNode("mo",[new Ow.TextNode(t.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=t.rightDelim){var c=new Ow.MathNode("mo",[new Ow.TextNode(t.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return Dw(o)}return n};hw({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var n,{parser:i,funcName:r}=t,a=e[0],o=e[1],s=null,c=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",c=")";break;case"\\\\bracefrac":n=!1,s="\\{",c="\\}";break;case"\\\\brackfrac":n=!1,s="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:i.mode,continued:!1,numer:a,denom:o,hasBarLine:n,leftDelim:s,rightDelim:c,size:l,barSize:null}},htmlBuilder:ax,mathmlBuilder:ox}),hw({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=e[0],a=e[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:r,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),hw({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var e,{parser:n,funcName:i,token:r}=t;switch(i){case"\\over":e="\\frac";break;case"\\choose":e="\\binom";break;case"\\atop":e="\\\\atopfrac";break;case"\\brace":e="\\\\bracefrac";break;case"\\brack":e="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:e,token:r}}});var sx=["display","text","script","scriptscript"],cx=function(t){var e=null;return t.length>0&&(e="."===(e=t)?null:e),e};hw({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var n,{parser:i}=t,r=e[4],a=e[5],o=dw(e[0]),s="atom"===o.type&&"open"===o.family?cx(o.text):null,c=dw(e[1]),l="atom"===c.type&&"close"===c.family?cx(c.text):null,u=Kw(e[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var f="auto",d=e[3];if("ordgroup"===d.type){if(d.body.length>0){var g=Kw(d.body[0],"textord");f=sx[Number(g.text)]}}else d=Kw(d,"textord"),f=sx[Number(d.text)];return{type:"genfrac",mode:i.mode,numer:r,denom:a,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:l,size:f}},htmlBuilder:ax,mathmlBuilder:ox}),hw({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:i,token:r}=t;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Kw(e[0],"size").value,token:r}}}),hw({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=e[0],a=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}(Kw(e[1],"infix").size),o=e[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ax,mathmlBuilder:ox});var lx=(t,e)=>{var n,i,r=e.style;"supsub"===t.type?(n=t.sup?Sw(t.sup,e.havingStyle(r.sup()),e):Sw(t.sub,e.havingStyle(r.sub()),e),i=Kw(t.base,"horizBrace")):i=Kw(t,"horizBrace");var a,o=Sw(i.base,e.havingBaseStyle(Im.DISPLAY)),s=Gw(i,e);if(i.isOver?(a=nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(a=nw.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=nw.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);a=i.isOver?nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},e):nw.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return nw.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)};hw({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:i}=t;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:e[0]}},htmlBuilder:lx,mathmlBuilder:(t,e)=>{var n=Uw(t.label);return new Ow.MathNode(t.isOver?"mover":"munder",[Fw(t.base,e),n])}}),hw({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,i=e[1],r=Kw(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:gw(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=vw(t.body,e,!1);return nw.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=Rw(t.body,e);return n instanceof Lw||(n=new Lw("mrow",[n])),n.setAttribute("href",t.href),n}}),hw({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,i=Kw(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],a=0;anew Ow.MathNode("mrow",Bw(t.body,e))}),hw({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:i,token:r}=t,a=Kw(e[0],"raw").string,o=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,c={};switch(i){case"\\htmlClass":c.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":c.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":c.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var l=a.split(","),u=0;u{var n=vw(t.body,e,!1),i=["enclosing"];t.attributes.class&&i.push(...t.attributes.class.trim().split(/\s+/));var r=nw.makeSpan(i,n,e);for(var a in t.attributes)"class"!==a&&t.attributes.hasOwnProperty(a)&&r.setAttribute(a,t.attributes[a]);return r},mathmlBuilder:(t,e)=>Rw(t.body,e)}),hw({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:gw(e[0]),mathml:gw(e[1])}},htmlBuilder:(t,e)=>{var n=vw(t.html,e,!1);return nw.makeFragment(n)},mathmlBuilder:(t,e)=>Rw(t.mathml,e)});var ux=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!e)throw new cm("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(e[1]+e[2]),unit:e[3]};if(!Vm(n))throw new cm("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};hw({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:i}=t,r={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var c=Kw(n[0],"raw").string.split(","),l=0;l{var n=Wm(t.height,e),i=0;t.totalheight.number>0&&(i=Wm(t.totalheight,e)-n);var r=0;t.width.number>0&&(r=Wm(t.width,e));var a={height:Xm(n+i)};r>0&&(a.width=Xm(r)),i>0&&(a.verticalAlign=Xm(-i));var o=new iy(t.src,t.alt,a);return o.height=n,o.depth=i,o},mathmlBuilder:(t,e)=>{var n=new Ow.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var i=Wm(t.height,e),r=0;if(t.totalheight.number>0&&(r=Wm(t.totalheight,e)-i,n.setAttribute("valign",Xm(-r))),n.setAttribute("height",Xm(i+r)),t.width.number>0){var a=Wm(t.width,e);n.setAttribute("width",Xm(a))}return n.setAttribute("src",t.src),n}}),hw({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:i}=t,r=Kw(e[0],"size");if(n.settings.strict){var a="m"===i[1],o="mu"===r.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:(t,e)=>nw.makeGlue(t.dimension,e),mathmlBuilder(t,e){var n=Wm(t.dimension,e);return new Ow.SpaceNode(n)}}),hw({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=e[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:(t,e)=>{var n;"clap"===t.alignment?(n=nw.makeSpan([],[Sw(t.body,e)]),n=nw.makeSpan(["inner"],[n],e)):n=nw.makeSpan(["inner"],[Sw(t.body,e)]);var i=nw.makeSpan(["fix"],[]),r=nw.makeSpan([t.alignment],[n,i],e),a=nw.makeSpan(["strut"]);return a.style.height=Xm(r.height+r.depth),r.depth&&(a.style.verticalAlign=Xm(-r.depth)),r.children.unshift(a),r=nw.makeSpan(["thinbox"],[r],e),nw.makeSpan(["mord","vbox"],[r],e)},mathmlBuilder:(t,e)=>{var n=new Ow.MathNode("mpadded",[Fw(t.body,e)]);if("rlap"!==t.alignment){var i="llap"===t.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),hw({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:i}=t,r=i.mode;i.switchMode("math");var a="\\("===n?"\\)":"$",o=i.parseExpression(!1,a);return i.expect(a),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:o}}}),hw({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new cm("Mismatched "+t.funcName)}});var hx=(t,e)=>{switch(e.style.size){case Im.DISPLAY.size:return t.display;case Im.TEXT.size:return t.text;case Im.SCRIPT.size:return t.script;case Im.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};hw({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"mathchoice",mode:n.mode,display:gw(e[0]),text:gw(e[1]),script:gw(e[2]),scriptscript:gw(e[3])}},htmlBuilder:(t,e)=>{var n=hx(t,e),i=vw(n,e,!1);return nw.makeFragment(i)},mathmlBuilder:(t,e)=>{var n=hx(t,e);return Rw(n,e)}});var fx=(t,e,n,i,r,a,o)=>{t=nw.makeSpan([],[t]);var s,c,l,u=n&&ym(n);if(e){var h=Sw(e,i.havingStyle(r.sup()),i);c={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var f=Sw(n,i.havingStyle(r.sub()),i);s={elem:f,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-f.height)}}if(c&&s){var d=i.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+t.depth+o;l=nw.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Xm(-a)},{type:"kern",size:s.kern},{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Xm(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(s){var g=t.height-o;l=nw.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Xm(-a)},{type:"kern",size:s.kern},{type:"elem",elem:t}]},i)}else{if(!c)return t;var p=t.depth+o;l=nw.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Xm(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}var b=[l];if(s&&0!==a&&!u){var m=nw.makeSpan(["mspace"],[],i);m.style.marginRight=Xm(a),b.unshift(m)}return nw.makeSpan(["mop","op-limits"],b,i)},dx=["\\smallint"],gx=(t,e)=>{var n,i,r,a=!1;"supsub"===t.type?(n=t.sup,i=t.sub,r=Kw(t.base,"op"),a=!0):r=Kw(t,"op");var o,s=e.style,c=!1;if(s.size===Im.DISPLAY.size&&r.symbol&&!dm(dx,r.name)&&(c=!0),r.symbol){var l=c?"Size2-Regular":"Size1-Regular",u="";if(("\\oiint"===r.name||"\\oiiint"===r.name)&&(u=r.name.slice(1),r.name="oiint"===u?"\\iint":"\\iiint"),o=nw.makeSymbol(r.name,l,"math",e,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var h=o.italic,f=nw.staticSvg(u+"Size"+(c?"2":"1"),e);o=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},e),r.name="\\"+u,o.classes.unshift("mop"),o.italic=h}}else if(r.body){var d=vw(r.body,e,!0);1===d.length&&d[0]instanceof ay?(o=d[0]).classes[0]="mop":o=nw.makeSpan(["mop"],d,e)}else{for(var g=[],p=1;p{var n;if(t.symbol)n=new Lw("mo",[Nw(t.name,t.mode)]),dm(dx,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new Lw("mo",Bw(t.body,e));else{n=new Lw("mi",[new Iw(t.name.slice(1))]);var i=new Lw("mo",[Nw("⁡","text")]);n=t.parentIsSupSub?new Lw("mrow",[n,i]):Mw([n,i])}return n},bx={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};hw({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:n,funcName:i}=t,r=i;return 1===r.length&&(r=bx[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:gx,mathmlBuilder:px}),hw({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,i=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:gw(i)}},htmlBuilder:gx,mathmlBuilder:px});var mx={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};hw({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:gx,mathmlBuilder:px}),hw({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:gx,mathmlBuilder:px}),hw({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,i=n;return 1===i.length&&(i=mx[i]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:gx,mathmlBuilder:px});var yx=(t,e)=>{var n,i,r,a,o=!1;if("supsub"===t.type?(n=t.sup,i=t.sub,r=Kw(t.base,"operatorname"),o=!0):r=Kw(t,"operatorname"),r.body.length>0){for(var s=r.body.map((t=>{var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t})),c=vw(s,e.withFont("mathrm"),!0),l=0;l{var{parser:n,funcName:i}=t,r=e[0];return{type:"operatorname",mode:n.mode,body:gw(r),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:yx,mathmlBuilder:(t,e)=>{for(var n=Bw(t.body,e.withFont("mathrm")),i=!0,r=0;rt.toText())).join("");n=[new Ow.TextNode(s)]}var c=new Ow.MathNode("mi",n);c.setAttribute("mathvariant","normal");var l=new Ow.MathNode("mo",[Nw("⁡","text")]);return t.parentIsSupSub?new Ow.MathNode("mrow",[c,l]):Ow.newDocumentFragment([c,l])}}),Uv("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),fw({type:"ordgroup",htmlBuilder:(t,e)=>t.semisimple?nw.makeFragment(vw(t.body,e,!1)):nw.makeSpan(["mord"],vw(t.body,e,!0),e),mathmlBuilder:(t,e)=>Rw(t.body,e,!0)}),hw({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,i=e[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(t,e){var n=Sw(t.body,e.havingCrampedStyle()),i=nw.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,a=nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:i},{type:"kern",size:r}]},e);return nw.makeSpan(["mord","overline"],[a],e)},mathmlBuilder(t,e){var n=new Ow.MathNode("mo",[new Ow.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Ow.MathNode("mover",[Fw(t.body,e),n]);return i.setAttribute("accent","true"),i}}),hw({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,i=e[0];return{type:"phantom",mode:n.mode,body:gw(i)}},htmlBuilder:(t,e)=>{var n=vw(t.body,e.withPhantom(),!1);return nw.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=Bw(t.body,e);return new Ow.MathNode("mphantom",n)}}),hw({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,i=e[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:(t,e)=>{var n=nw.makeSpan([],[Sw(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i{var n=Bw(gw(t.body),e),i=new Ow.MathNode("mphantom",n),r=new Ow.MathNode("mpadded",[i]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}}),hw({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,i=e[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(t,e)=>{var n=nw.makeSpan(["inner"],[Sw(t.body,e.withPhantom())]),i=nw.makeSpan(["fix"],[]);return nw.makeSpan(["mord","rlap"],[n,i],e)},mathmlBuilder:(t,e)=>{var n=Bw(gw(t.body),e),i=new Ow.MathNode("mphantom",n),r=new Ow.MathNode("mpadded",[i]);return r.setAttribute("width","0px"),r}}),hw({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,i=Kw(e[0],"size").value,r=e[1];return{type:"raisebox",mode:n.mode,dy:i,body:r}},htmlBuilder(t,e){var n=Sw(t.body,e),i=Wm(t.dy,e);return nw.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new Ow.MathNode("mpadded",[Fw(t.body,e)]),i=t.dy.number+t.dy.unit;return n.setAttribute("voffset",i),n}}),hw({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}}),hw({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,n){var{parser:i}=t,r=n[0],a=Kw(e[0],"size"),o=Kw(e[1],"size");return{type:"rule",mode:i.mode,shift:r&&Kw(r,"size").value,width:a.value,height:o.value}},htmlBuilder(t,e){var n=nw.makeSpan(["mord","rule"],[],e),i=Wm(t.width,e),r=Wm(t.height,e),a=t.shift?Wm(t.shift,e):0;return n.style.borderRightWidth=Xm(i),n.style.borderTopWidth=Xm(r),n.style.bottom=Xm(a),n.width=i,n.height=r+a,n.depth=-a,n.maxFontSize=1.125*r*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=Wm(t.width,e),i=Wm(t.height,e),r=t.shift?Wm(t.shift,e):0,a=e.color&&e.getColor()||"black",o=new Ow.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Xm(n)),o.setAttribute("height",Xm(i));var s=new Ow.MathNode("mpadded",[o]);return r>=0?s.setAttribute("height",Xm(r)):(s.setAttribute("height",Xm(r)),s.setAttribute("depth",Xm(-r))),s.setAttribute("voffset",Xm(r)),s}});var vx=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];hw({type:"sizing",names:vx,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:i,parser:r}=t,a=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:vx.indexOf(i)+1,body:a}},htmlBuilder:(t,e)=>{var n=e.havingSize(t.size);return wx(t.body,n,e)},mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),i=Bw(t.body,n),r=new Ow.MathNode("mstyle",i);return r.setAttribute("mathsize",Xm(n.sizeMultiplier)),r}}),hw({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:i}=t,r=!1,a=!1,o=n[0]&&Kw(n[0],"ordgroup");if(o)for(var s="",c=0;c{var n=nw.makeSpan([],[Sw(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var i=0;i{var n=new Ow.MathNode("mpadded",[Fw(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}}),hw({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:i}=t,r=n[0],a=e[0];return{type:"sqrt",mode:i.mode,body:a,index:r}},htmlBuilder(t,e){var n=Sw(t.body,e.havingCrampedStyle());0===n.height&&(n.height=e.fontMetrics().xHeight),n=nw.wrapFragment(n,e);var i=e.fontMetrics().defaultRuleThickness,r=i;e.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var h=s.height-n.height-a-c;n.style.paddingLeft=Xm(l);var f=nw.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:s},{type:"kern",size:c}]},e);if(t.index){var d=e.havingStyle(Im.SCRIPTSCRIPT),g=Sw(t.index,d,e),p=.6*(f.height-f.depth),b=nw.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:g}]},e),m=nw.makeSpan(["root"],[b]);return nw.makeSpan(["mord","sqrt"],[m,f],e)}return nw.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder(t,e){var{body:n,index:i}=t;return i?new Ow.MathNode("mroot",[Fw(n,e),Fw(i,e)]):new Ow.MathNode("msqrt",[Fw(n,e)])}});var xx={display:Im.DISPLAY,text:Im.TEXT,script:Im.SCRIPT,scriptscript:Im.SCRIPTSCRIPT};hw({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:n,funcName:i,parser:r}=t,a=r.parseExpression(!0,n),o=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:o,body:a}},htmlBuilder(t,e){var n=xx[t.style],i=e.havingStyle(n).withFont("");return wx(t.body,i,e)},mathmlBuilder(t,e){var n=xx[t.style],i=e.havingStyle(n),r=Bw(t.body,i),a=new Ow.MathNode("mstyle",r),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),fw({type:"supsub",htmlBuilder(t,e){var n=function(t,e){var n=t.base;return n?"op"===n.type?n.limits&&(e.style.size===Im.DISPLAY.size||n.alwaysHandleSupSub)?gx:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(e.style.size===Im.DISPLAY.size||n.limits)?yx:null:"accent"===n.type?ym(n.base)?Ww:null:"horizBrace"===n.type&&!t.sub===n.isOver?lx:null:null}(t,e);if(n)return n(t,e);var i,r,a,{base:o,sup:s,sub:c}=t,l=Sw(o,e),u=e.fontMetrics(),h=0,f=0,d=o&&ym(o);if(s){var g=e.havingStyle(e.style.sup());i=Sw(s,g,e),d||(h=l.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(c){var p=e.havingStyle(e.style.sub());r=Sw(c,p,e),d||(f=l.depth+p.fontMetrics().subDrop*p.sizeMultiplier/e.sizeMultiplier)}a=e.style===Im.DISPLAY?u.sup1:e.style.cramped?u.sup3:u.sup2;var b,m=e.sizeMultiplier,y=Xm(.5/u.ptPerEm/m),w=null;if(r){var v=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(l instanceof ay||v)&&(w=Xm(-l.italic))}if(i&&r){h=Math.max(h,a,i.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var x=4*u.defaultRuleThickness;if(h-i.depth-(r.height-f)0&&(h+=k,f-=k)}b=nw.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:f,marginRight:y,marginLeft:w},{type:"elem",elem:i,shift:-h,marginRight:y}]},e)}else if(r){f=Math.max(f,u.sub1,r.height-.8*u.xHeight),b=nw.makeVList({positionType:"shift",positionData:f,children:[{type:"elem",elem:r,marginLeft:w,marginRight:y}]},e)}else{if(!i)throw new Error("supsub must have either sup or sub.");h=Math.max(h,a,i.depth+.25*u.xHeight),b=nw.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:i,marginRight:y}]},e)}var _=Tw(l,"right")||"mord";return nw.makeSpan([_],[l,nw.makeSpan(["msupsub"],[b])],e)},mathmlBuilder(t,e){var n,i=!1;t.base&&"horizBrace"===t.base.type&&!!t.sup===t.base.isOver&&(i=!0,n=t.base.isOver),t.base&&("op"===t.base.type||"operatorname"===t.base.type)&&(t.base.parentIsSupSub=!0);var r,a=[Fw(t.base,e)];if(t.sub&&a.push(Fw(t.sub,e)),t.sup&&a.push(Fw(t.sup,e)),i)r=n?"mover":"munder";else if(t.sub)if(t.sup){var o=t.base;r=o&&"op"===o.type&&o.limits&&e.style===Im.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(e.style===Im.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=t.base;r=s&&"op"===s.type&&s.limits&&(e.style===Im.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||e.style===Im.DISPLAY)?"munder":"msub"}else{var c=t.base;r=c&&"op"===c.type&&c.limits&&(e.style===Im.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||e.style===Im.DISPLAY)?"mover":"msup"}return new Ow.MathNode(r,a)}}),fw({type:"atom",htmlBuilder:(t,e)=>nw.mathsym(t.text,t.mode,e,["m"+t.family]),mathmlBuilder(t,e){var n=new Ow.MathNode("mo",[Nw(t.text,t.mode)]);if("bin"===t.family){var i=Pw(t,e);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===t.family?n.setAttribute("separator","true"):("open"===t.family||"close"===t.family)&&n.setAttribute("stretchy","false");return n}});var kx={mi:"italic",mn:"normal",mtext:"normal"};fw({type:"mathord",htmlBuilder:(t,e)=>nw.makeOrd(t,e,"mathord"),mathmlBuilder(t,e){var n=new Ow.MathNode("mi",[Nw(t.text,t.mode,e)]),i=Pw(t,e)||"italic";return i!==kx[n.type]&&n.setAttribute("mathvariant",i),n}}),fw({type:"textord",htmlBuilder:(t,e)=>nw.makeOrd(t,e,"textord"),mathmlBuilder(t,e){var n,i=Nw(t.text,t.mode,e),r=Pw(t,e)||"normal";return n="text"===t.mode?new Ow.MathNode("mtext",[i]):/[0-9]/.test(t.text)?new Ow.MathNode("mn",[i]):"\\prime"===t.text?new Ow.MathNode("mo",[i]):new Ow.MathNode("mi",[i]),r!==kx[n.type]&&n.setAttribute("mathvariant",r),n}});var _x={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Tx={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};fw({type:"spacing",htmlBuilder(t,e){if(Tx.hasOwnProperty(t.text)){var n=Tx[t.text].className||"";if("text"===t.mode){var i=nw.makeOrd(t,e,"textord");return i.classes.push(n),i}return nw.makeSpan(["mspace",n],[nw.mathsym(t.text,t.mode,e)],e)}if(_x.hasOwnProperty(t.text))return nw.makeSpan(["mspace",_x[t.text]],[],e);throw new cm('Unknown type of space "'+t.text+'"')},mathmlBuilder(t,e){if(!Tx.hasOwnProperty(t.text)){if(_x.hasOwnProperty(t.text))return new Ow.MathNode("mspace");throw new cm('Unknown type of space "'+t.text+'"')}return new Ow.MathNode("mtext",[new Ow.TextNode(" ")])}});var Ex=()=>{var t=new Ow.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};fw({type:"tag",mathmlBuilder(t,e){var n=new Ow.MathNode("mtable",[new Ow.MathNode("mtr",[Ex(),new Ow.MathNode("mtd",[Rw(t.body,e)]),Ex(),new Ow.MathNode("mtd",[Rw(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var Sx={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cx={"\\textbf":"textbf","\\textmd":"textmd"},Ax={"\\textit":"textit","\\textup":"textup"},Mx=(t,e)=>{var n=t.font;return n?Sx[n]?e.withTextFontFamily(Sx[n]):Cx[n]?e.withTextFontWeight(Cx[n]):e.withTextFontShape(Ax[n]):e};hw({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:i}=t,r=e[0];return{type:"text",mode:n.mode,body:gw(r),font:i}},htmlBuilder(t,e){var n=Mx(t,e),i=vw(t.body,n,!0);return nw.makeSpan(["mord","text"],i,n)},mathmlBuilder(t,e){var n=Mx(t,e);return Rw(t.body,n)}}),hw({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Sw(t.body,e),i=nw.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,a=nw.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},e);return nw.makeSpan(["mord","underline"],[a],e)},mathmlBuilder(t,e){var n=new Ow.MathNode("mo",[new Ow.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new Ow.MathNode("munder",[Fw(t.body,e),n]);return i.setAttribute("accentunder","true"),i}}),hw({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Sw(t.body,e),i=e.fontMetrics().axisHeight,r=.5*(n.height-i-(n.depth+i));return nw.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder:(t,e)=>new Ow.MathNode("mpadded",[Fw(t.body,e)],["vcenter"])}),hw({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,n){throw new cm("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=Lx(t),i=[],r=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"␣":" "),Ix=cw,Ox="[ \r\n\t]",Nx="(\\\\[a-zA-Z@]+)"+Ox+"*",Dx="[̀-ͯ]",Px=new RegExp(Dx+"+$"),Bx="("+Ox+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿]"+Dx+"*|[\ud800-\udbff][\udc00-\udfff]"+Dx+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+Nx+"|\\\\[^\ud800-\udfff])";class Rx{constructor(t,e){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=e,this.tokenRegex=new RegExp(Bx,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,e){this.catcodes[t]=e}lex(){var t=this.input,e=this.tokenRegex.lastIndex;if(e===t.length)return new sm("EOF",new om(this,e,e));var n=this.tokenRegex.exec(t);if(null===n||n.index!==e)throw new cm("Unexpected character: '"+t[e]+"'",new sm(t[e],new om(this,e,e+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[i]){var r=t.indexOf("\n",this.tokenRegex.lastIndex);return-1===r?(this.tokenRegex.lastIndex=t.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=r+1,this.lex()}return new sm(i,new om(this,e,this.tokenRegex.lastIndex))}}class Fx{constructor(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=e,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new cm("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var e in t)t.hasOwnProperty(e)&&(null==t[e]?delete this.current[e]:this.current[e]=t[e])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,e,n){if(void 0===n&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(t)&&(r[t]=this.current[t])}null==e?delete this.current[t]:this.current[t]=e}}var $x=Hv;Uv("\\noexpand",(function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}})),Uv("\\expandafter",(function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}})),Uv("\\@firstoftwo",(function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}})),Uv("\\@secondoftwo",(function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}})),Uv("\\@ifnextchar",(function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return 1===e[0].length&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}})),Uv("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Uv("\\TextOrMath",(function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}}));var jx={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};Uv("\\char",(function(t){var e,n=t.popToken(),i="";if("'"===n.text)e=8,n=t.popToken();else if('"'===n.text)e=16,n=t.popToken();else if("`"===n.text)if("\\"===(n=t.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new cm("\\char` missing argument");i=n.text.charCodeAt(0)}else e=10;if(e){if(null==(i=jx[n.text])||i>=e)throw new cm("Invalid base-"+e+" digit "+n.text);for(var r;null!=(r=jx[t.future().text])&&r{var i=t.consumeArg().tokens;if(1!==i.length)throw new cm("\\newcommand's first argument must be a macro name");var r=i[0].text,a=t.isDefined(r);if(a&&!e)throw new cm("\\newcommand{"+r+"} attempting to redefine "+r+"; use \\renewcommand");if(!a&&!n)throw new cm("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var o=0;if(1===(i=t.consumeArg().tokens).length&&"["===i[0].text){for(var s="",c=t.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)s+=c.text,c=t.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new cm("Invalid number of arguments: "+s);o=parseInt(s),i=t.consumeArg().tokens}return t.macros.set(r,{tokens:i,numArgs:o}),""};Uv("\\newcommand",(t=>zx(t,!1,!0))),Uv("\\renewcommand",(t=>zx(t,!0,!1))),Uv("\\providecommand",(t=>zx(t,!0,!0))),Uv("\\message",(t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map((t=>t.text)).join("")),""})),Uv("\\errmessage",(t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map((t=>t.text)).join("")),""})),Uv("\\show",(t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),Ix[n],fy.math[n],fy.text[n]),""})),Uv("\\bgroup","{"),Uv("\\egroup","}"),Uv("~","\\nobreakspace"),Uv("\\lq","`"),Uv("\\rq","'"),Uv("\\aa","\\r a"),Uv("\\AA","\\r A"),Uv("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Uv("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Uv("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Uv("ℬ","\\mathscr{B}"),Uv("ℰ","\\mathscr{E}"),Uv("ℱ","\\mathscr{F}"),Uv("ℋ","\\mathscr{H}"),Uv("ℐ","\\mathscr{I}"),Uv("ℒ","\\mathscr{L}"),Uv("ℳ","\\mathscr{M}"),Uv("ℛ","\\mathscr{R}"),Uv("ℭ","\\mathfrak{C}"),Uv("ℌ","\\mathfrak{H}"),Uv("ℨ","\\mathfrak{Z}"),Uv("\\Bbbk","\\Bbb{k}"),Uv("·","\\cdotp"),Uv("\\llap","\\mathllap{\\textrm{#1}}"),Uv("\\rlap","\\mathrlap{\\textrm{#1}}"),Uv("\\clap","\\mathclap{\\textrm{#1}}"),Uv("\\mathstrut","\\vphantom{(}"),Uv("\\underbar","\\underline{\\text{#1}}"),Uv("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Uv("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Uv("\\ne","\\neq"),Uv("≠","\\neq"),Uv("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Uv("∉","\\notin"),Uv("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Uv("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Uv("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Uv("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Uv("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Uv("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Uv("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Uv("⟂","\\perp"),Uv("‼","\\mathclose{!\\mkern-0.8mu!}"),Uv("∌","\\notni"),Uv("⌜","\\ulcorner"),Uv("⌝","\\urcorner"),Uv("⌞","\\llcorner"),Uv("⌟","\\lrcorner"),Uv("©","\\copyright"),Uv("®","\\textregistered"),Uv("️","\\textregistered"),Uv("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Uv("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Uv("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Uv("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Uv("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Uv("⋮","\\vdots"),Uv("\\varGamma","\\mathit{\\Gamma}"),Uv("\\varDelta","\\mathit{\\Delta}"),Uv("\\varTheta","\\mathit{\\Theta}"),Uv("\\varLambda","\\mathit{\\Lambda}"),Uv("\\varXi","\\mathit{\\Xi}"),Uv("\\varPi","\\mathit{\\Pi}"),Uv("\\varSigma","\\mathit{\\Sigma}"),Uv("\\varUpsilon","\\mathit{\\Upsilon}"),Uv("\\varPhi","\\mathit{\\Phi}"),Uv("\\varPsi","\\mathit{\\Psi}"),Uv("\\varOmega","\\mathit{\\Omega}"),Uv("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Uv("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Uv("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Uv("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Uv("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Uv("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var qx={",":"\\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"};Uv("\\dots",(function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in qx?e=qx[n]:("\\not"===n.slice(0,4)||n in fy.math&&dm(["bin","rel"],fy.math[n].group))&&(e="\\dotsb"),e}));var Hx={")":!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};Uv("\\dotso",(function(t){return t.future().text in Hx?"\\ldots\\,":"\\ldots"})),Uv("\\dotsc",(function(t){var e=t.future().text;return e in Hx&&","!==e?"\\ldots\\,":"\\ldots"})),Uv("\\cdots",(function(t){return t.future().text in Hx?"\\@cdots\\,":"\\@cdots"})),Uv("\\dotsb","\\cdots"),Uv("\\dotsm","\\cdots"),Uv("\\dotsi","\\!\\cdots"),Uv("\\dotsx","\\ldots\\,"),Uv("\\DOTSI","\\relax"),Uv("\\DOTSB","\\relax"),Uv("\\DOTSX","\\relax"),Uv("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Uv("\\,","\\tmspace+{3mu}{.1667em}"),Uv("\\thinspace","\\,"),Uv("\\>","\\mskip{4mu}"),Uv("\\:","\\tmspace+{4mu}{.2222em}"),Uv("\\medspace","\\:"),Uv("\\;","\\tmspace+{5mu}{.2777em}"),Uv("\\thickspace","\\;"),Uv("\\!","\\tmspace-{3mu}{.1667em}"),Uv("\\negthinspace","\\!"),Uv("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Uv("\\negthickspace","\\tmspace-{5mu}{.277em}"),Uv("\\enspace","\\kern.5em "),Uv("\\enskip","\\hskip.5em\\relax"),Uv("\\quad","\\hskip1em\\relax"),Uv("\\qquad","\\hskip2em\\relax"),Uv("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Uv("\\tag@paren","\\tag@literal{({#1})}"),Uv("\\tag@literal",(t=>{if(t.macros.get("\\df@tag"))throw new cm("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Uv("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Uv("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Uv("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Uv("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Uv("\\newline","\\\\\\relax"),Uv("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ux=Xm(Rm["Main-Regular"]["T".charCodeAt(0)][1]-.7*Rm["Main-Regular"]["A".charCodeAt(0)][1]);Uv("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Ux+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Uv("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Ux+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Uv("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Uv("\\@hspace","\\hskip #1\\relax"),Uv("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Uv("\\ordinarycolon",":"),Uv("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Uv("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Uv("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Uv("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Uv("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Uv("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Uv("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Uv("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Uv("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Uv("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Uv("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Uv("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Uv("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Uv("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Uv("∷","\\dblcolon"),Uv("∹","\\eqcolon"),Uv("≔","\\coloneqq"),Uv("≕","\\eqqcolon"),Uv("⩴","\\Coloneqq"),Uv("\\ratio","\\vcentcolon"),Uv("\\coloncolon","\\dblcolon"),Uv("\\colonequals","\\coloneqq"),Uv("\\coloncolonequals","\\Coloneqq"),Uv("\\equalscolon","\\eqqcolon"),Uv("\\equalscoloncolon","\\Eqqcolon"),Uv("\\colonminus","\\coloneq"),Uv("\\coloncolonminus","\\Coloneq"),Uv("\\minuscolon","\\eqcolon"),Uv("\\minuscoloncolon","\\Eqcolon"),Uv("\\coloncolonapprox","\\Colonapprox"),Uv("\\coloncolonsim","\\Colonsim"),Uv("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Uv("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Uv("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Uv("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Uv("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Uv("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Uv("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Uv("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Uv("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Uv("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Uv("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Uv("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Uv("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Uv("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Uv("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Uv("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Uv("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Uv("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Uv("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Uv("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Uv("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Uv("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Uv("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Uv("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Uv("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Uv("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Uv("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Uv("\\imath","\\html@mathml{\\@imath}{ı}"),Uv("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Uv("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Uv("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Uv("⟦","\\llbracket"),Uv("⟧","\\rrbracket"),Uv("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Uv("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Uv("⦃","\\lBrace"),Uv("⦄","\\rBrace"),Uv("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Uv("⦵","\\minuso"),Uv("\\darr","\\downarrow"),Uv("\\dArr","\\Downarrow"),Uv("\\Darr","\\Downarrow"),Uv("\\lang","\\langle"),Uv("\\rang","\\rangle"),Uv("\\uarr","\\uparrow"),Uv("\\uArr","\\Uparrow"),Uv("\\Uarr","\\Uparrow"),Uv("\\N","\\mathbb{N}"),Uv("\\R","\\mathbb{R}"),Uv("\\Z","\\mathbb{Z}"),Uv("\\alef","\\aleph"),Uv("\\alefsym","\\aleph"),Uv("\\Alpha","\\mathrm{A}"),Uv("\\Beta","\\mathrm{B}"),Uv("\\bull","\\bullet"),Uv("\\Chi","\\mathrm{X}"),Uv("\\clubs","\\clubsuit"),Uv("\\cnums","\\mathbb{C}"),Uv("\\Complex","\\mathbb{C}"),Uv("\\Dagger","\\ddagger"),Uv("\\diamonds","\\diamondsuit"),Uv("\\empty","\\emptyset"),Uv("\\Epsilon","\\mathrm{E}"),Uv("\\Eta","\\mathrm{H}"),Uv("\\exist","\\exists"),Uv("\\harr","\\leftrightarrow"),Uv("\\hArr","\\Leftrightarrow"),Uv("\\Harr","\\Leftrightarrow"),Uv("\\hearts","\\heartsuit"),Uv("\\image","\\Im"),Uv("\\infin","\\infty"),Uv("\\Iota","\\mathrm{I}"),Uv("\\isin","\\in"),Uv("\\Kappa","\\mathrm{K}"),Uv("\\larr","\\leftarrow"),Uv("\\lArr","\\Leftarrow"),Uv("\\Larr","\\Leftarrow"),Uv("\\lrarr","\\leftrightarrow"),Uv("\\lrArr","\\Leftrightarrow"),Uv("\\Lrarr","\\Leftrightarrow"),Uv("\\Mu","\\mathrm{M}"),Uv("\\natnums","\\mathbb{N}"),Uv("\\Nu","\\mathrm{N}"),Uv("\\Omicron","\\mathrm{O}"),Uv("\\plusmn","\\pm"),Uv("\\rarr","\\rightarrow"),Uv("\\rArr","\\Rightarrow"),Uv("\\Rarr","\\Rightarrow"),Uv("\\real","\\Re"),Uv("\\reals","\\mathbb{R}"),Uv("\\Reals","\\mathbb{R}"),Uv("\\Rho","\\mathrm{P}"),Uv("\\sdot","\\cdot"),Uv("\\sect","\\S"),Uv("\\spades","\\spadesuit"),Uv("\\sub","\\subset"),Uv("\\sube","\\subseteq"),Uv("\\supe","\\supseteq"),Uv("\\Tau","\\mathrm{T}"),Uv("\\thetasym","\\vartheta"),Uv("\\weierp","\\wp"),Uv("\\Zeta","\\mathrm{Z}"),Uv("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Uv("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Uv("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Uv("\\bra","\\mathinner{\\langle{#1}|}"),Uv("\\ket","\\mathinner{|{#1}\\rangle}"),Uv("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Uv("\\Bra","\\left\\langle#1\\right|"),Uv("\\Ket","\\left|#1\\right\\rangle");var Gx=t=>e=>{var n=e.consumeArg().tokens,i=e.consumeArg().tokens,r=e.consumeArg().tokens,a=e.consumeArg().tokens,o=e.macros.get("|"),s=e.macros.get("\\|");e.macros.beginGroup();var c=e=>n=>{t&&(n.macros.set("|",o),r.length&&n.macros.set("\\|",s));var a=e;return!e&&r.length&&"|"===n.future().text&&(n.popToken(),a=!0),{tokens:a?r:i,numArgs:0}};e.macros.set("|",c(!1)),r.length&&e.macros.set("\\|",c(!0));var l=e.consumeArg().tokens,u=e.expandTokens([...a,...l,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Uv("\\bra@ket",Gx(!1)),Uv("\\bra@set",Gx(!0)),Uv("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Uv("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Uv("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Uv("\\angln","{\\angl n}"),Uv("\\blue","\\textcolor{##6495ed}{#1}"),Uv("\\orange","\\textcolor{##ffa500}{#1}"),Uv("\\pink","\\textcolor{##ff00af}{#1}"),Uv("\\red","\\textcolor{##df0030}{#1}"),Uv("\\green","\\textcolor{##28ae7b}{#1}"),Uv("\\gray","\\textcolor{gray}{#1}"),Uv("\\purple","\\textcolor{##9d38bd}{#1}"),Uv("\\blueA","\\textcolor{##ccfaff}{#1}"),Uv("\\blueB","\\textcolor{##80f6ff}{#1}"),Uv("\\blueC","\\textcolor{##63d9ea}{#1}"),Uv("\\blueD","\\textcolor{##11accd}{#1}"),Uv("\\blueE","\\textcolor{##0c7f99}{#1}"),Uv("\\tealA","\\textcolor{##94fff5}{#1}"),Uv("\\tealB","\\textcolor{##26edd5}{#1}"),Uv("\\tealC","\\textcolor{##01d1c1}{#1}"),Uv("\\tealD","\\textcolor{##01a995}{#1}"),Uv("\\tealE","\\textcolor{##208170}{#1}"),Uv("\\greenA","\\textcolor{##b6ffb0}{#1}"),Uv("\\greenB","\\textcolor{##8af281}{#1}"),Uv("\\greenC","\\textcolor{##74cf70}{#1}"),Uv("\\greenD","\\textcolor{##1fab54}{#1}"),Uv("\\greenE","\\textcolor{##0d923f}{#1}"),Uv("\\goldA","\\textcolor{##ffd0a9}{#1}"),Uv("\\goldB","\\textcolor{##ffbb71}{#1}"),Uv("\\goldC","\\textcolor{##ff9c39}{#1}"),Uv("\\goldD","\\textcolor{##e07d10}{#1}"),Uv("\\goldE","\\textcolor{##a75a05}{#1}"),Uv("\\redA","\\textcolor{##fca9a9}{#1}"),Uv("\\redB","\\textcolor{##ff8482}{#1}"),Uv("\\redC","\\textcolor{##f9685d}{#1}"),Uv("\\redD","\\textcolor{##e84d39}{#1}"),Uv("\\redE","\\textcolor{##bc2612}{#1}"),Uv("\\maroonA","\\textcolor{##ffbde0}{#1}"),Uv("\\maroonB","\\textcolor{##ff92c6}{#1}"),Uv("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Uv("\\maroonD","\\textcolor{##ca337c}{#1}"),Uv("\\maroonE","\\textcolor{##9e034e}{#1}"),Uv("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Uv("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Uv("\\purpleC","\\textcolor{##aa87ff}{#1}"),Uv("\\purpleD","\\textcolor{##7854ab}{#1}"),Uv("\\purpleE","\\textcolor{##543b78}{#1}"),Uv("\\mintA","\\textcolor{##f5f9e8}{#1}"),Uv("\\mintB","\\textcolor{##edf2df}{#1}"),Uv("\\mintC","\\textcolor{##e0e5cc}{#1}"),Uv("\\grayA","\\textcolor{##f6f7f7}{#1}"),Uv("\\grayB","\\textcolor{##f0f1f2}{#1}"),Uv("\\grayC","\\textcolor{##e3e5e6}{#1}"),Uv("\\grayD","\\textcolor{##d6d8da}{#1}"),Uv("\\grayE","\\textcolor{##babec2}{#1}"),Uv("\\grayF","\\textcolor{##888d93}{#1}"),Uv("\\grayG","\\textcolor{##626569}{#1}"),Uv("\\grayH","\\textcolor{##3b3e40}{#1}"),Uv("\\grayI","\\textcolor{##21242c}{#1}"),Uv("\\kaBlue","\\textcolor{##314453}{#1}"),Uv("\\kaGreen","\\textcolor{##71B307}{#1}");var Kx={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Yx{constructor(t,e,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(t),this.macros=new Fx($x,e.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Rx(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var e,n,i;if(t){if(this.consumeSpaces(),"["!==this.future().text)return null;e=this.popToken(),({tokens:i,end:n}=this.consumeArg(["]"]))}else({tokens:i,start:e,end:n}=this.consumeArg());return this.pushToken(new sm("EOF",n.loc)),this.pushTokens(i),e.range(n,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(t){var e=[],n=t&&t.length>0;n||this.consumeSpaces();var i,r=this.future(),a=0,o=0;do{if(i=this.popToken(),e.push(i),"{"===i.text)++a;else if("}"===i.text){if(-1==--a)throw new cm("Extra }",i)}else if("EOF"===i.text)throw new cm("Unexpected end of input in a macro argument, expected '"+(t&&n?t[o]:"}")+"'",i);if(t&&n)if((0===a||1===a&&"{"===t[o])&&i.text===t[o]){if(++o===t.length){e.splice(-o,o);break}}else o=0}while(0!==a||n);return"{"===r.text&&"}"===e[e.length-1].text&&(e.pop(),e.shift()),e.reverse(),{tokens:e,start:r,end:i}}consumeArgs(t,e){if(e){if(e.length!==t+1)throw new cm("The length of delimiters doesn't match the number of args!");for(var n=e[0],i=0;ithis.settings.maxExpand)throw new cm("Too many expansions: infinite loop or need to increase maxExpand setting");var r=i.tokens,a=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs)for(var o=(r=r.slice()).length-1;o>=0;--o){var s=r[o];if("#"===s.text){if(0===o)throw new cm("Incomplete placeholder at end of macro body",s);if("#"===(s=r[--o]).text)r.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new cm("Not a valid argument number",s);r.splice(o,2,...a[+s.text-1])}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new sm(t)]):void 0}expandTokens(t){var e=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(!1===this.expandOnce(!0)){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),e.push(i)}return e}expandMacroAsText(t){var e=this.expandMacro(t);return e&&e.map((t=>t.text)).join("")}_getExpansion(t){var e=this.macros.get(t);if(null==e)return e;if(1===t.length){var n=this.lexer.catcodes[t];if(null!=n&&13!==n)return}var i="function"==typeof e?e(this):e;if("string"==typeof i){var r=0;if(-1!==i.indexOf("#"))for(var a=i.replace(/##/g,"");-1!==a.indexOf("#"+(r+1));)++r;for(var o=new Rx(i,this.settings),s=[],c=o.lex();"EOF"!==c.text;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:r}}return i}isDefined(t){return this.macros.has(t)||Ix.hasOwnProperty(t)||fy.math.hasOwnProperty(t)||fy.text.hasOwnProperty(t)||Kx.hasOwnProperty(t)}isExpandable(t){var e=this.macros.get(t);return null!=e?"string"==typeof e||"function"==typeof e||!e.unexpandable:Ix.hasOwnProperty(t)&&!Ix[t].primitive}}var Vx=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Wx=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),Xx={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Qx={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Zx{constructor(t,e){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 Yx(t,e,this.mode),this.settings=e,this.leftrightDepth=0}expect(t,e){if(void 0===e&&(e=!0),this.fetch().text!==t)throw new cm("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var e=this.nextToken;this.consume(),this.gullet.pushToken(new sm("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=e,n}parseExpression(t,e){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==Zx.endOfExpression.indexOf(i.text)||e&&i.text===e||t&&Ix[i.text]&&Ix[i.text].infix)break;var r=this.parseAtom(e);if(!r)break;"internal"!==r.type&&n.push(r)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var e,n=-1,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var o,s=fy[this.mode][e].group,c=om.range(t);if(uy.hasOwnProperty(s)){var l=s;o={type:"atom",mode:this.mode,family:l,loc:c,text:e}}else o={type:s,mode:this.mode,loc:c,text:e};r=o}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(Dm(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),r={type:"textord",mode:"text",loc:om.range(t),text:e}}if(this.consume(),a)for(var u=0;u"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},rt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){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:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;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: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:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58: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:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80: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 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};function at(){this.yy={}}return it.lexer=rt,at.prototype=it,it.Parser=at,new at}();ak.parser=ak;const ok=ak;let sk=[],ck=[""],lk="global",uk="",hk=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],fk=[],dk="",gk=!1,pk=4,bk=2;var mk;const yk=function(t){return null==t?sk:sk.filter((e=>e.parentBoundary===t))},wk=function(t){return null==t?hk:hk.filter((e=>e.parentBoundary===t))},vk=function(){return gk},xk={addPersonOrSystem:function(t,e,n,i,r,a,o){if(null===e||null===n)return;let s={};const c=sk.find((t=>t.alias===e));if(c&&e===c.alias?s=c:(s.alias=e,sk.push(s)),s.label=null==n?{text:""}:{text:n},null==i)s.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]={text:e}}else s.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.sprite=r;if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.tags=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=e}else s.link=o;s.typeC4Shape={text:t},s.parentBoundary=lk,s.wrap=vk()},addPersonOrSystemBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const o=hk.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,hk.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=lk,a.wrap=vk(),uk=lk,lk=t,ck.push(uk)},addContainer:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const l=sk.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,sk.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.sprite=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=vk(),c.typeC4Shape={text:t},c.parentBoundary=lk},addContainerBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const o=hk.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,hk.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=lk,a.wrap=vk(),uk=lk,lk=t,ck.push(uk)},addComponent:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const l=sk.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,sk.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.sprite=a;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=vk(),c.typeC4Shape={text:t},c.parentBoundary=lk},addDeploymentNode:function(t,e,n,i,r,a,o,s){if(null===e||null===n)return;let c={};const l=hk.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,hk.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.type={text:"node"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.type={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.nodeType=t,c.parentBoundary=lk,c.wrap=vk(),uk=lk,lk=e,ck.push(uk)},popBoundaryParseStack:function(){lk=uk,ck.pop(),uk=ck.pop(),ck.push(uk)},addRel:function(t,e,n,i,r,a,o,s,c){if(null==t||null==e||null==n||null==i)return;let l={};const u=fk.find((t=>t.from===e&&t.to===n));if(u?l=u:fk.push(l),l.type=t,l.from=e,l.to=n,l.label={text:i},null==r)l.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else l.techn={text:r};if(null==a)l.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]={text:e}}else l.descr={text:a};if("object"==typeof o){let[t,e]=Object.entries(o)[0];l[t]=e}else l.sprite=o;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof c){let[t,e]=Object.entries(c)[0];l[t]=e}else l.link=c;l.wrap=vk()},updateElStyle:function(t,e,n,i,r,a,o,s,c,l,u){let h=sk.find((t=>t.alias===e));if(void 0!==h||(h=hk.find((t=>t.alias===e)),void 0!==h)){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];h[t]=e}else h.bgColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]=e}else h.fontColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]=e}else h.borderColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];h[t]=e}else h.shadowing=a;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];h[t]=e}else h.shape=o;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];h[t]=e}else h.sprite=s;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];h[t]=e}else h.techn=c;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];h[t]=e}else h.legendText=l;if(null!=u)if("object"==typeof u){let[t,e]=Object.entries(u)[0];h[t]=e}else h.legendSprite=u}},updateRelStyle:function(t,e,n,i,r,a,o){const s=fk.find((t=>t.from===e&&t.to===n));if(void 0!==s){if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.textColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.lineColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=parseInt(e)}else s.offsetX=parseInt(a);if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=parseInt(e)}else s.offsetY=parseInt(o)}},updateLayoutConfig:function(t,e,n){let i=pk,r=bk;if("object"==typeof e){const t=Object.values(e)[0];i=parseInt(t)}else i=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];r=parseInt(t)}else r=parseInt(n);i>=1&&(pk=i),r>=1&&(bk=r)},autoWrap:vk,setWrap:function(t){gk=t},getC4ShapeArray:yk,getC4Shape:function(t){return sk.find((e=>e.alias===t))},getC4ShapeKeys:function(t){return Object.keys(yk(t))},getBoundaries:wk,getBoundarys:wk,getCurrentBoundaryParse:function(){return lk},getParentBoundaryParse:function(){return uk},getRels:function(){return fk},getTitle:function(){return dk},getC4Type:function(){return mk},getC4ShapeInRow:function(){return pk},getC4BoundaryInRow:function(){return bk},setAccTitle:Zd,getAccTitle:Jd,getAccDescription:eg,setAccDescription:tg,getConfig:()=>sg().c4,clear:function(){sk=[],hk=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],uk="",lk="global",ck=[""],fk=[],ck=[""],dk="",gk=!1,pk=4,bk=2},LINETYPE:{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},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){dk=_c(t,sg())},setC4Type:function(t){mk=_c(t,sg())}},kk=(t,e)=>{const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),e.name&&n.attr("name",e.name),void 0!==e.rx&&n.attr("rx",e.rx),void 0!==e.ry&&n.attr("ry",e.ry),void 0!==e.attrs)for(const t in e.attrs)n.attr(t,e.attrs[t]);return void 0!==e.class&&n.attr("class",e.class),n},_k=function(t,e){return kk(t,e)},Tk=function(){function t(t,e,n,r,a,o,s){i(e.append("text").attr("x",n+a/2).attr("y",r+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,a,o,s,c){const{fontSize:l,fontFamily:u,fontWeight:h}=c,f=t.split(Bc.lineBreakRegex);for(let t=0;t({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}))(n,e.typeC4Shape.text);switch(c.append("text").attr("fill",o).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":!function(t,e,n,i,r,a){const o=t.append("image");o.attr("width",e),o.attr("height",n),o.attr("x",i),o.attr("y",r);let s=a.startsWith("data:image/png;base64")?a:f.sanitizeUrl(a);o.attr("xlink:href",s)}(c,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}let h=n[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,Tk(n)(e.label.text,c,e.x,e.y+e.label.Y,e.width,e.height,{fill:o},h),h=n[e.typeC4Shape.text+"Font"](),h.fontColor=o,e.techn&&""!==(null==(i=e.techn)?void 0:i.text)?Tk(n)(e.techn.text,c,e.x,e.y+e.techn.Y,e.width,e.height,{fill:o,"font-style":"italic"},h):e.type&&""!==e.type.text&&Tk(n)(e.type.text,c,e.x,e.y+e.type.Y,e.width,e.height,{fill:o,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&(h=n.personFont(),h.fontColor=o,Tk(n)(e.descr.text,c,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},h)),e.height};let Sk=0,Ck=0,Ak=4,Mk=2;ak.yy=xk;let Lk={};class Ik{constructor(t){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,Ok(t.db.getConfig())}setData(t,e,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,i=this.nextData.starty+2*t.margin,r=i+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Ak)&&(e=this.nextData.startx+t.margin+Lk.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=i+t.height,this.nextData.cnt=1),t.x=e,t.y=i,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(t){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},Ok(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const Ok=function(t){Al(Lk,t),t.fontFamily&&(Lk.personFontFamily=Lk.systemFontFamily=Lk.messageFontFamily=t.fontFamily),t.fontSize&&(Lk.personFontSize=Lk.systemFontSize=Lk.messageFontSize=t.fontSize),t.fontWeight&&(Lk.personFontWeight=Lk.systemFontWeight=Lk.messageFontWeight=t.fontWeight)},Nk=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),Dk=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),Pk=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight});function Bk(t,e,n,i,r){if(!e[t].width)if(n)e[t].text=rf(e[t].text,r,i),e[t].textLines=e[t].text.split(Bc.lineBreakRegex).length,e[t].width=r,e[t].height=of(e[t].text,i);else{let n=e[t].text.split(Bc.lineBreakRegex);e[t].textLines=n.length;let r=0;e[t].height=0,e[t].width=0;for(const a of n)e[t].width=Math.max(sf(a,i),e[t].width),r=of(a,i),e[t].height=e[t].height+r}}const Rk=function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=Lk.c4ShapeMargin-35;let i=e.wrap&&Lk.wrap,r=Dk(Lk);r.fontSize=r.fontSize+2,r.fontWeight="bold",Bk("label",e,i,r,sf(e.label.text,r)),function(t,e,n){const i=t.append("g");let r=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});let c={x:e.x,y:e.y,fill:r,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};_k(i,c);let l=n.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=o,Tk(n)(e.label.text,i,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},l),e.type&&""!==e.type.text&&(l=n.boundaryFont(),l.fontColor=o,Tk(n)(e.type.text,i,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},l)),e.descr&&""!==e.descr.text&&(l=n.boundaryFont(),l.fontSize=l.fontSize-2,l.fontColor=o,Tk(n)(e.descr.text,i,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},l))}(t,e,Lk)},Fk=function(t,e,n,i){let r=0;for(const a of i){r=0;const i=n[a];let o=Nk(Lk,i.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,i.typeC4Shape.width=sf("«"+i.typeC4Shape.text+"»",o),i.typeC4Shape.height=o.fontSize+2,i.typeC4Shape.Y=Lk.c4ShapePadding,r=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height);let s=i.wrap&&Lk.wrap,c=Lk.width-2*Lk.c4ShapePadding,l=Nk(Lk,i.typeC4Shape.text);l.fontSize=l.fontSize+2,l.fontWeight="bold",Bk("label",i,s,l,c),i.label.Y=r+8,r=i.label.Y+i.label.height,i.type&&""!==i.type.text?(i.type.text="["+i.type.text+"]",Bk("type",i,s,Nk(Lk,i.typeC4Shape.text),c),i.type.Y=r+5,r=i.type.Y+i.type.height):i.techn&&""!==i.techn.text&&(i.techn.text="["+i.techn.text+"]",Bk("techn",i,s,Nk(Lk,i.techn.text),c),i.techn.Y=r+5,r=i.techn.Y+i.techn.height);let u=r,h=i.label.width;i.descr&&""!==i.descr.text&&(Bk("descr",i,s,Nk(Lk,i.typeC4Shape.text),c),i.descr.Y=r+20,r=i.descr.Y+i.descr.height,h=Math.max(i.label.width,i.descr.width),u=r-5*i.descr.textLines),h+=Lk.c4ShapePadding,i.width=Math.max(i.width||Lk.width,h,Lk.width),i.height=Math.max(i.height||Lk.height,u,Lk.height),i.margin=i.margin||Lk.c4ShapeMargin,t.insert(i),Ek(e,i,Lk)}t.bumpLastMargin(Lk.c4ShapeMargin)};let $k=class{constructor(t,e){this.x=t,this.y=e}},jk=function(t,e){let n=t.x,i=t.y,r=e.x,a=e.y,o=n+t.width/2,s=i+t.height/2,c=Math.abs(n-r),l=Math.abs(i-a),u=l/c,h=t.height/t.width,f=null;return i==a&&nr?f=new $k(n,s):n==r&&ia&&(f=new $k(o,i)),n>r&&i=u?new $k(n,s+u*t.width/2):new $k(o-c/l*t.height/2,i+t.height):n=u?new $k(n+t.width,s+u*t.width/2):new $k(o+c/l*t.height/2,i+t.height):na?f=h>=u?new $k(n+t.width,s-u*t.width/2):new $k(o+t.height/2*c/l,i):n>r&&i>a&&(f=h>=u?new $k(n,s-t.width/2*u):new $k(o-t.height/2*c/l,i)),f},zk=function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let i=jk(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:i,endPoint:jk(e,n)}};function qk(t,e,n,i,r){let a=new Ik(r);a.data.widthLimit=n.data.widthLimit/Math.min(Mk,i.length);for(let[o,s]of i.entries()){let i=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let c=s.wrap&&Lk.wrap,l=Dk(Lk);if(l.fontSize=l.fontSize+2,l.fontWeight="bold",Bk("label",s,c,l,a.data.widthLimit),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Bk("type",s,c,Dk(Lk),a.data.widthLimit),s.type.Y=i+5,i=s.type.Y+s.type.height),s.descr&&""!==s.descr.text){let t=Dk(Lk);t.fontSize=t.fontSize-2,Bk("descr",s,c,t,a.data.widthLimit),s.descr.Y=i+20,i=s.descr.Y+s.descr.height}if(0==o||o%Mk==0){let t=n.data.startx+Lk.diagramMarginX,e=n.data.stopy+Lk.diagramMarginY+i;a.setData(t,t,e,e)}else{let t=a.data.stopx!==a.data.startx?a.data.stopx+Lk.diagramMarginX:a.data.startx,e=a.data.starty;a.setData(t,t,e,e)}a.name=s.alias;let u=r.db.getC4ShapeArray(s.alias),h=r.db.getC4ShapeKeys(s.alias);h.length>0&&Fk(a,t,u,h),e=s.alias;let f=r.db.getBoundarys(e);f.length>0&&qk(t,e,a,f,r),"global"!==s.alias&&Rk(t,s,a),n.data.stopy=Math.max(a.data.stopy+Lk.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+Lk.c4ShapeMargin,n.data.stopx),Sk=Math.max(Sk,n.data.stopx),Ck=Math.max(Ck,n.data.stopy)}}const Hk={drawPersonOrSystemArray:Fk,drawBoundary:Rk,setConf:Ok,draw:function(t,e,n,i){Lk=sg().c4;const r=sg().securityLevel;let a;"sandbox"===r&&(a=ee("#i"+e));const o=ee("sandbox"===r?a.nodes()[0].contentDocument.body:"body");let s=i.db;i.db.setWrap(Lk.wrap),Ak=s.getC4ShapeInRow(),Mk=s.getC4BoundaryInRow(),l.debug(`C:${JSON.stringify(Lk,null,2)}`);const c="sandbox"===r?o.select(`[id="${e}"]`):ee(`[id="${e}"]`);(function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")})(c),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(c),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(c);let u=new Ik(i);u.setData(Lk.diagramMarginX,Lk.diagramMarginX,Lk.diagramMarginY,Lk.diagramMarginY),u.data.widthLimit=screen.availWidth,Sk=Lk.diagramMarginX,Ck=Lk.diagramMarginY;const h=i.db.getTitle();qk(c,"",u,i.db.getBoundarys(""),i),function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(c),function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(c),function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.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"),e.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")}(c),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(c),function(t,e,n,i){let r=0;for(let t of e){r+=1;let e=t.wrap&&Lk.wrap,a=Pk(Lk);"C4Dynamic"===i.db.getC4Type()&&(t.label.text=r+": "+t.label.text);let o=sf(t.label.text,a);Bk("label",t,e,a,o),t.techn&&""!==t.techn.text&&(o=sf(t.techn.text,a),Bk("techn",t,e,a,o)),t.descr&&""!==t.descr.text&&(o=sf(t.descr.text,a),Bk("descr",t,e,a,o));let s=n(t.from),c=n(t.to),l=zk(s,c);t.startPoint=l.startPoint,t.endPoint=l.endPoint}((t,e,n)=>{const i=t.append("g");let r=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",a=t.lineColor?t.lineColor:"#444444",o=t.offsetX?parseInt(t.offsetX):0,s=t.offsetY?parseInt(t.offsetY):0,c="";if(0===r){let e=i.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",a),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url("+c+"#arrowend)"),r=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",a).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url("+c+"#arrowend)")}let l=n.messageFont();Tk(n)(t.label.text,i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+s,t.label.width,t.label.height,{fill:e},l),t.techn&&""!==t.techn.text&&(l=n.messageFont(),Tk(n)("["+t.techn.text+"]",i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+o,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+s,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},l))}})(t,e,Lk)}(c,i.db.getRels(),i.db.getC4Shape,i),u.data.stopx=Sk,u.data.stopy=Ck;const f=u.data;let d=f.stopy-f.starty+2*Lk.diagramMarginY;const g=f.stopx-f.startx+2*Lk.diagramMarginX;h&&c.append("text").text(h).attr("x",(f.stopx-f.startx)/2-4*Lk.diagramMarginX).attr("y",f.starty+Lk.diagramMarginY),Ud(c,d,g,Lk.useMaxWidth);const p=h?60:0;c.attr("viewBox",f.startx-Lk.diagramMarginX+" -"+(Lk.diagramMarginY+p)+" "+g+" "+(d+p)),l.debug("models:",f)}},Uk=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ok,db:xk,renderer:Hk,styles:t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,init:({c4:t,wrap:e})=>{Hk.setConf(t),xk.setWrap(e)}}},Symbol.toStringTag,{value:"Module"}));var Gk=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],a=[2,2],o=[1,13],s=[1,14],c=[1,15],l=[1,16],u=[1,23],h=[1,25],f=[1,26],d=[1,27],g=[1,49],p=[1,48],b=[1,29],m=[1,30],y=[1,31],w=[1,32],v=[1,33],x=[1,44],k=[1,46],_=[1,42],T=[1,47],E=[1,43],S=[1,50],C=[1,45],A=[1,51],M=[1,52],L=[1,34],I=[1,35],O=[1,36],N=[1,37],D=[1,57],P=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],B=[1,61],R=[1,60],F=[1,62],$=[8,9,11,73,75],j=[1,88],z=[1,93],q=[1,92],H=[1,89],U=[1,85],G=[1,91],K=[1,87],Y=[1,94],V=[1,90],W=[1,95],X=[1,86],Q=[8,9,10,11,73,75],Z=[8,9,10,11,44,73,75],J=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],tt=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],et=[42,58,86,99,102,103,106,108,111,112,113],nt=[1,121],it=[1,120],rt=[1,128],at=[1,142],ot=[1,143],st=[1,144],ct=[1,145],lt=[1,130],ut=[1,132],ht=[1,136],ft=[1,137],dt=[1,138],gt=[1,139],pt=[1,140],bt=[1,141],mt=[1,146],yt=[1,147],wt=[1,126],vt=[1,127],xt=[1,134],kt=[1,129],_t=[1,133],Tt=[1,131],Et=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],St=[1,149],Ct=[8,9,11],At=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],Mt=[1,169],Lt=[1,165],It=[1,166],Ot=[1,170],Nt=[1,167],Dt=[1,168],Pt=[75,113,116],Bt=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Rt=[10,103],Ft=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],$t=[1,235],jt=[1,233],zt=[1,237],qt=[1,231],Ht=[1,232],Ut=[1,234],Gt=[1,236],Kt=[1,238],Yt=[1,255],Vt=[8,9,11,103],Wt=[8,9,10,11,58,81,102,103,106,107,108,109],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 176:case 49:case 71:case 174:this.$=a[s];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 33:this.$=i.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=i.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=i.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 43:i.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 44:i.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 45:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 46:this.$={stmt:a[s],nodes:a[s]};break;case 47:case 121:case 123:this.$=[a[s]];break;case 48:this.$=a[s-4].concat(a[s]);break;case 50:this.$=a[s-2],i.setClass(a[s-2],a[s]);break;case 51:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"square");break;case 52:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"doublecircle");break;case 53:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"circle");break;case 54:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"ellipse");break;case 55:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"stadium");break;case 56:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"subroutine");break;case 57:this.$=a[s-7],i.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 58:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"cylinder");break;case 59:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"round");break;case 60:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"diamond");break;case 61:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"hexagon");break;case 62:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"odd");break;case 63:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"trapezoid");break;case 64:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 65:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_right");break;case 66:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_left");break;case 67:this.$=a[s],i.addVertex(a[s]);break;case 68:a[s-1].text=a[s],this.$=a[s-1];break;case 69:case 70:a[s-2].text=a[s-1],this.$=a[s-2];break;case 72:var c=i.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 73:case 79:case 94:case 96:this.$={text:a[s],type:"text"};break;case 74:case 80:case 95:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 75:case 81:this.$={text:a[s],type:"string"};break;case 76:case 82:case 97:this.$={text:a[s],type:"markdown"};break;case 77:c=i.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 78:this.$=a[s-1];break;case 98:this.$=a[s-4],i.addClass(a[s-2],a[s]);break;case 99:this.$=a[s-4],i.setClass(a[s-2],a[s]);break;case 100:case 108:this.$=a[s-1],i.setClickEvent(a[s-1],a[s]);break;case 101:case 109:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 102:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 103:this.$=a[s-4],i.setClickEvent(a[s-4],a[s-3],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 104:this.$=a[s-2],i.setLink(a[s-2],a[s]);break;case 105:this.$=a[s-4],i.setLink(a[s-4],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 106:this.$=a[s-4],i.setLink(a[s-4],a[s-2],a[s]);break;case 107:this.$=a[s-6],i.setLink(a[s-6],a[s-4],a[s]),i.setTooltip(a[s-6],a[s-2]);break;case 110:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 111:this.$=a[s-3],i.setLink(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 112:this.$=a[s-3],i.setLink(a[s-3],a[s-2],a[s]);break;case 113:this.$=a[s-5],i.setLink(a[s-5],a[s-4],a[s]),i.setTooltip(a[s-5],a[s-2]);break;case 114:this.$=a[s-4],i.addVertex(a[s-2],void 0,void 0,a[s]);break;case 115:this.$=a[s-4],i.updateLink([a[s-2]],a[s]);break;case 116:this.$=a[s-4],i.updateLink(a[s-2],a[s]);break;case 117:this.$=a[s-8],i.updateLinkInterpolate([a[s-6]],a[s-2]),i.updateLink([a[s-6]],a[s]);break;case 118:this.$=a[s-8],i.updateLinkInterpolate(a[s-6],a[s-2]),i.updateLink(a[s-6],a[s]);break;case 119:this.$=a[s-6],i.updateLinkInterpolate([a[s-4]],a[s]);break;case 120:this.$=a[s-6],i.updateLinkInterpolate(a[s-4],a[s]);break;case 122:case 124:a[s-2].push(a[s]),this.$=a[s-2];break;case 126:this.$=a[s-1]+a[s];break;case 175:case 177:this.$=a[s-1]+""+a[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,9:e,10:n,12:i},{1:[3]},t(r,a,{5:6}),{4:7,9:e,10:n,12:i},{4:8,9:e,10:n,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,33:24,34:h,36:f,38:d,40:28,41:38,42:g,43:39,45:40,58:p,81:b,82:m,83:y,84:w,85:v,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M,118:L,119:I,120:O,121:N},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,54],9:[1,55],10:D,15:53,18:56},t(P,[2,3]),t(P,[2,4]),t(P,[2,5]),t(P,[2,6]),t(P,[2,7]),t(P,[2,8]),{8:B,9:R,11:F,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:B,9:R,11:F,21:66},{8:B,9:R,11:F,21:67},{8:B,9:R,11:F,21:68},{8:B,9:R,11:F,21:69},{8:B,9:R,11:F,21:70},{8:B,9:R,10:[1,71],11:F,21:72},t(P,[2,36]),{35:[1,73]},{37:[1,74]},t(P,[2,39]),t($,[2,46],{18:75,10:D}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:j,42:z,58:q,77:[1,83],86:H,92:[1,80],94:[1,81],98:82,102:U,103:G,106:K,108:Y,111:V,112:W,113:X,117:84},t(P,[2,178]),t(P,[2,179]),t(P,[2,180]),t(P,[2,181]),t(Q,[2,47]),t(Q,[2,49],{44:[1,96]}),t(Z,[2,67],{110:109,29:[1,97],42:g,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:p,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:k,102:_,103:T,106:E,108:S,111:C,112:A,113:M}),t(J,[2,174]),t(J,[2,135]),t(J,[2,136]),t(J,[2,137]),t(J,[2,138]),t(J,[2,139]),t(J,[2,140]),t(J,[2,141]),t(J,[2,142]),t(J,[2,143]),t(J,[2,144]),t(J,[2,145]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,110]},t(tt,[2,26],{18:111,10:D}),t(P,[2,27]),{40:112,41:38,42:g,43:39,45:40,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},t(P,[2,40]),t(P,[2,41]),t(P,[2,42]),t(et,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:nt,116:it},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,31]),t(P,[2,32]),{10:rt,12:at,14:ot,27:st,28:122,32:ct,42:lt,58:ut,73:ht,77:[1,124],78:[1,125],80:135,81:ft,82:dt,83:gt,84:pt,85:bt,86:mt,87:yt,88:123,102:wt,106:vt,108:xt,111:kt,112:_t,113:Tt},t(Et,a,{5:148}),t(P,[2,37]),t(P,[2,38]),t($,[2,45],{42:St}),{42:g,45:150,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},{99:[1,151],100:152,102:[1,153]},{42:g,45:154,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},{42:g,45:155,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},t(Ct,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(Ct,[2,108],{117:160,10:[1,159],14:j,42:z,58:q,86:H,102:U,103:G,106:K,108:Y,111:V,112:W,113:X}),t(Ct,[2,110],{10:[1,161]}),t(At,[2,176]),t(At,[2,163]),t(At,[2,164]),t(At,[2,165]),t(At,[2,166]),t(At,[2,167]),t(At,[2,168]),t(At,[2,169]),t(At,[2,170]),t(At,[2,171]),t(At,[2,172]),t(At,[2,173]),{42:g,45:162,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},{30:163,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:171,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:173,48:[1,172],65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:174,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:175,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:176,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{106:[1,177]},{30:178,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:179,63:[1,180],65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:181,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:182,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{30:183,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},t(J,[2,175]),t(r,[2,20]),t(tt,[2,25]),t($,[2,43],{18:184,10:D}),t(et,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{75:[1,188],76:189,113:nt,116:it},t(Pt,[2,73]),t(Pt,[2,75]),t(Pt,[2,76]),t(Pt,[2,161]),t(Pt,[2,162]),{8:B,9:R,10:rt,11:F,12:at,14:ot,21:191,27:st,29:[1,190],32:ct,42:lt,58:ut,73:ht,80:135,81:ft,82:dt,83:gt,84:pt,85:bt,86:mt,87:yt,88:192,102:wt,106:vt,108:xt,111:kt,112:_t,113:Tt},t(Bt,[2,94]),t(Bt,[2,96]),t(Bt,[2,97]),t(Bt,[2,150]),t(Bt,[2,151]),t(Bt,[2,152]),t(Bt,[2,153]),t(Bt,[2,154]),t(Bt,[2,155]),t(Bt,[2,156]),t(Bt,[2,157]),t(Bt,[2,158]),t(Bt,[2,159]),t(Bt,[2,160]),t(Bt,[2,83]),t(Bt,[2,84]),t(Bt,[2,85]),t(Bt,[2,86]),t(Bt,[2,87]),t(Bt,[2,88]),t(Bt,[2,89]),t(Bt,[2,90]),t(Bt,[2,91]),t(Bt,[2,92]),t(Bt,[2,93]),{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,193],33:24,34:h,36:f,38:d,40:28,41:38,42:g,43:39,45:40,58:p,81:b,82:m,83:y,84:w,85:v,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M,118:L,119:I,120:O,121:N},{10:D,18:194},{10:[1,195],42:g,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:109,111:C,112:A,113:M},{10:[1,196]},{10:[1,197],103:[1,198]},t(Rt,[2,121]),{10:[1,199],42:g,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:109,111:C,112:A,113:M},{10:[1,200],42:g,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:109,111:C,112:A,113:M},{77:[1,201]},t(Ct,[2,102],{10:[1,202]}),t(Ct,[2,104],{10:[1,203]}),{77:[1,204]},t(At,[2,177]),{77:[1,205],95:[1,206]},t(Q,[2,50],{110:109,42:g,58:p,86:x,99:k,102:_,103:T,106:E,108:S,111:C,112:A,113:M}),{31:[1,207],65:Mt,79:208,113:Ot,114:Nt,115:Dt},t(Ft,[2,79]),t(Ft,[2,81]),t(Ft,[2,82]),t(Ft,[2,146]),t(Ft,[2,147]),t(Ft,[2,148]),t(Ft,[2,149]),{47:[1,209],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{30:210,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{49:[1,211],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{51:[1,212],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{53:[1,213],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{55:[1,214],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{58:[1,215]},{62:[1,216],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{64:[1,217],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{30:218,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},{31:[1,219],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{65:Mt,67:[1,220],69:[1,221],79:208,113:Ot,114:Nt,115:Dt},{65:Mt,67:[1,223],69:[1,222],79:208,113:Ot,114:Nt,115:Dt},t($,[2,44],{42:St}),t(et,[2,70]),t(et,[2,69]),{60:[1,224],65:Mt,79:208,113:Ot,114:Nt,115:Dt},t(et,[2,72]),t(Pt,[2,74]),{30:225,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},t(Et,a,{5:226}),t(Bt,[2,95]),t(P,[2,35]),{41:227,42:g,43:39,45:40,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},{10:$t,58:jt,81:zt,89:228,102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},{10:$t,58:jt,81:zt,89:239,101:[1,240],102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},{10:$t,58:jt,81:zt,89:241,101:[1,242],102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},{102:[1,243]},{10:$t,58:jt,81:zt,89:244,102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},{42:g,45:245,58:p,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M},t(Ct,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(Ct,[2,109]),t(Ct,[2,111],{10:[1,249]}),t(Ct,[2,112]),t(Z,[2,51]),t(Ft,[2,80]),t(Z,[2,52]),{49:[1,250],65:Mt,79:208,113:Ot,114:Nt,115:Dt},t(Z,[2,59]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),{106:[1,251]},t(Z,[2,58]),t(Z,[2,60]),{64:[1,252],65:Mt,79:208,113:Ot,114:Nt,115:Dt},t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,65]),t(Z,[2,64]),t(Z,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,254],33:24,34:h,36:f,38:d,40:28,41:38,42:g,43:39,45:40,58:p,81:b,82:m,83:y,84:w,85:v,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M,118:L,119:I,120:O,121:N},t(Q,[2,48]),t(Ct,[2,114],{103:Yt}),t(Vt,[2,123],{105:256,10:$t,58:jt,81:zt,102:qt,106:Ht,107:Ut,108:Gt,109:Kt}),t(Wt,[2,125]),t(Wt,[2,127]),t(Wt,[2,128]),t(Wt,[2,129]),t(Wt,[2,130]),t(Wt,[2,131]),t(Wt,[2,132]),t(Wt,[2,133]),t(Wt,[2,134]),t(Ct,[2,115],{103:Yt}),{10:[1,257]},t(Ct,[2,116],{103:Yt}),{10:[1,258]},t(Rt,[2,122]),t(Ct,[2,98],{103:Yt}),t(Ct,[2,99],{110:109,42:g,58:p,86:x,99:k,102:_,103:T,106:E,108:S,111:C,112:A,113:M}),t(Ct,[2,103]),t(Ct,[2,105],{10:[1,259]}),t(Ct,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:B,9:R,11:F,21:264},t(P,[2,34]),{10:$t,58:jt,81:zt,102:qt,104:265,105:230,106:Ht,107:Ut,108:Gt,109:Kt},t(Wt,[2,126]),{14:j,42:z,58:q,86:H,98:266,102:U,103:G,106:K,108:Y,111:V,112:W,113:X,117:84},{14:j,42:z,58:q,86:H,98:267,102:U,103:G,106:K,108:Y,111:V,112:W,113:X,117:84},{95:[1,268]},t(Ct,[2,113]),t(Z,[2,53]),{30:269,65:Mt,77:Lt,78:It,79:164,113:Ot,114:Nt,115:Dt},t(Z,[2,61]),t(Et,a,{5:270}),t(Vt,[2,124],{105:256,10:$t,58:jt,81:zt,102:qt,106:Ht,107:Ut,108:Gt,109:Kt}),t(Ct,[2,119],{117:160,10:[1,271],14:j,42:z,58:q,86:H,102:U,103:G,106:K,108:Y,111:V,112:W,113:X}),t(Ct,[2,120],{117:160,10:[1,272],14:j,42:z,58:q,86:H,102:U,103:G,106:K,108:Y,111:V,112:W,113:X}),t(Ct,[2,107]),{31:[1,273],65:Mt,79:208,113:Ot,114:Nt,115:Dt},{6:11,7:12,8:o,9:s,10:c,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,274],33:24,34:h,36:f,38:d,40:28,41:38,42:g,43:39,45:40,58:p,81:b,82:m,83:y,84:w,85:v,86:x,99:k,102:_,103:T,106:E,108:S,110:41,111:C,112:A,113:M,118:L,119:I,120:O,121:N},{10:$t,58:jt,81:zt,89:275,102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},{10:$t,58:jt,81:zt,89:276,102:qt,104:229,105:230,106:Ht,107:Ut,108:Gt,109:Kt},t(Z,[2,57]),t(P,[2,33]),t(Ct,[2,117],{103:Yt}),t(Ct,[2,118],{103:Yt})],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},Qt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 8:case 11:case 14:case 17:case 27:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 12:return 93;case 13:return"MD_STR";case 15:this.begin("md_string");break;case 16:return"STR";case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 28:return 85;case 29:case 30:case 31:return t.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:case 35:case 36:case 37:return 95;case 38:return this.popState(),13;case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:case 95:return 108;case 55:return 44;case 56:return 58;case 57:case 96:return 42;case 58:return 8;case 59:return 103;case 60:case 94:return 112;case 61:case 64:case 67:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:case 66:case 69:return 116;case 65:return this.pushState("thickEdgeText"),73;case 68:return this.pushState("dottedEdgeText"),73;case 70:return 75;case 71:return this.popState(),51;case 72:case 108:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};function Zt(){this.yy={}}return Xt.lexer=Qt,Zt.prototype=Xt,Xt.Parser=Zt,new Zt}();Gk.parser=Gk;const Kk=Gk;let Yk,Vk,Wk=0,Xk=sg(),Qk={},Zk=[],Jk={},t_=[],e_={},n_={},i_=0,r_=!0,a_=[];const o_=t=>Bc.sanitizeText(t,Xk),s_=function(t){const e=Object.keys(Qk);for(const n of e)if(Qk[n].id===t)return Qk[n].domId;return t},c_=function(t,e,n,i,r,a,o={}){let s,c=t;void 0!==c&&0!==c.trim().length&&(void 0===Qk[c]&&(Qk[c]={id:c,labelType:"text",domId:"flowchart-"+c+"-"+Wk,styles:[],classes:[]}),Wk++,void 0!==e?(Xk=sg(),s=o_(e.text.trim()),Qk[c].labelType=e.type,'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),Qk[c].text=s):void 0===Qk[c].text&&(Qk[c].text=t),void 0!==n&&(Qk[c].type=n),null!=i&&i.forEach((function(t){Qk[c].styles.push(t)})),null!=r&&r.forEach((function(t){Qk[c].classes.push(t)})),void 0!==a&&(Qk[c].dir=a),void 0===Qk[c].props?Qk[c].props=o:void 0!==o&&Object.assign(Qk[c].props,o))},l_=function(t,e,n){const i={start:t,end:e,type:void 0,text:"",labelType:"text"};l.info("abc78 Got edge...",i);const r=n.text;if(void 0!==r&&(i.text=o_(r.text.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=r.type),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),(null==i?void 0:i.length)>10&&(i.length=10),!(Zk.length<(Xk.maxEdges??500)))throw new Error(`Edge limit exceeded. ${Zk.length} edges found, but the limit is ${Xk.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);l.info("abc78 pushing edge..."),Zk.push(i)},u_=function(t,e,n){let i,r;for(l.info("addLink (abc78)",t,e,n),i=0;i=Zk.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${Zk.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?Zk.defaultStyle=e:(-1===df.isSubstringInArray("fill",e)&&e.push("fill:none"),Zk[t].style=e)}))},d_=function(t,e){t.split(",").forEach((function(t){void 0===Jk[t]&&(Jk[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){const n=e.replace("fill","bgFill").replace("color","fill");Jk[t].textStyles.push(n)}Jk[t].styles.push(e)}))}))},g_=function(t){Yk=t,Yk.match(/.*/)&&(Yk="LR"),Yk.match(/.*v/)&&(Yk="TB"),"TD"===Yk&&(Yk="TB")},p_=function(t,e){t.split(",").forEach((function(t){let n=t;void 0!==Qk[n]&&Qk[n].classes.push(e),void 0!==e_[n]&&e_[n].classes.push(e)}))},b_=function(t,e,n){t.split(",").forEach((function(t){void 0!==Qk[t]&&(Qk[t].link=df.formatUrl(e,Xk),Qk[t].linkTarget=n)})),p_(t,"clickable")},m_=function(t){if(n_.hasOwnProperty(t))return n_[t]},y_=function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){let i=s_(t);if("loose"!==sg().securityLevel||void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),ee(this).classed("hover",!1)}))};a_.push(T_);const E_=function(t="gen-1"){Qk={},Jk={},Zk=[],a_=[T_],t_=[],e_={},i_=0,n_={},r_=!0,Vk=t,Xk=sg(),Qd()},S_=t=>{Vk=t||"gen-2"},C_=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},A_=function(t,e,n){let i=t.text.trim(),r=n.text;t===n&&n.text.match(/\s/)&&(i=void 0);let a=[];const{nodeList:o,dir:s}=function(t){const e={boolean:{},number:{},string:{}},n=[];let i;return{nodeList:t.filter((function(t){const r=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!n.includes(t)&&n.push(t))})),dir:i}}(a.concat.apply(a,e));if(a=o,"gen-1"===Vk)for(let t=0;t2e3)return;if(I_[L_]=e,t_[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i=0){const n=O_(t,e);if(n.result)return{result:!0,count:r+n.count};r+=n.count}i+=1}return{result:!1,count:r}},N_=function(t){return I_[t]},D_=function(){L_=-1,t_.length>0&&O_("none",t_.length-1)},P_=function(){return t_},B_=()=>!!r_&&(r_=!1,!0),R_=(t,e)=>{const n=(t=>{const e=t.trim();let n=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross","x"===e[0]&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point","<"===e[0]&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle","o"===e[0]&&(i="double_"+i,n=n.slice(1))}let r="normal",a=n.length-1;"="===n[0]&&(r="thick"),"~"===n[0]&&(r="invisible");let o=((t,e)=>{const n=e.length;let i=0;for(let t=0;t{let e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:n,stroke:i}})(e),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=n.length,i}return n},F_=(t,e)=>{let n=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(n=!0)})),n},$_=(t,e)=>{const n=[];return t.nodes.forEach(((i,r)=>{F_(e,i)||n.push(t.nodes[r])})),{nodes:n}},j_={firstGraph:B_},z_={defaultConfig:()=>lg.flowchart,setAccTitle:Zd,getAccTitle:Jd,getAccDescription:eg,setAccDescription:tg,addVertex:c_,lookUpDomId:s_,addLink:u_,updateLinkInterpolate:h_,updateLink:f_,addClass:d_,setDirection:g_,setClass:p_,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(n_["gen-1"===Vk?s_(t):t]=o_(e))}))},getTooltip:m_,setClickEvent:y_,setLink:b_,bindFunctions:w_,getDirection:v_,getVertices:x_,getEdges:k_,getClasses:__,clear:E_,setGen:S_,defaultStyle:C_,addSubGraph:A_,getDepthFirstPos:N_,indexNodes:D_,getSubGraphs:P_,destructLink:R_,lex:j_,exists:F_,makeUniq:$_,setDiagramTitle:ng,getDiagramTitle:ig},q_=Object.freeze(Object.defineProperty({__proto__:null,addClass:d_,addLink:u_,addSingleLink:l_,addSubGraph:A_,addVertex:c_,bindFunctions:w_,clear:E_,default:z_,defaultStyle:C_,destructLink:R_,firstGraph:B_,getClasses:__,getDepthFirstPos:N_,getDirection:v_,getEdges:k_,getSubGraphs:P_,getTooltip:m_,getVertices:x_,indexNodes:D_,lex:j_,lookUpDomId:s_,setClass:p_,setClickEvent:y_,setDirection:g_,setGen:S_,setLink:b_,updateLink:f_,updateLinkInterpolate:h_},Symbol.toStringTag,{value:"Module"}));var H_="[object Symbol]";function U_(t){return"symbol"==typeof t||zu(t)&&zl(t)==H_}function G_(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n-1}function cT(t){return Qu(t)?Sh(t):Bg(t)}var lT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uT=/^\w*$/;function hT(t,e){if(Vu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!U_(t))||uT.test(t)||!lT.test(t)||null!=e&&t in Object(e)}var fT,dT,gT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pT=/\\(\\)?/g,bT=(fT=bu((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(gT,(function(t,n,i,r){e.push(i?r.replace(pT,"$1"):n||t)})),e}),(function(t){return 500===dT.size&&dT.clear(),t})),dT=fT.cache,fT);const mT=bT;function yT(t){return null==t?"":W_(t)}function wT(t,e){return Vu(t)?t:hT(t,e)?[t]:mT(yT(t))}var vT=1/0;function xT(t){if("string"==typeof t||U_(t))return t;var e=t+"";return"0"==e&&1/t==-vT?"-0":e}function kT(t,e){for(var n=0,i=(e=wT(e,t)).length;null!=t&&n0&&n(s)?e>1?ST(s,e-1,n,i,r):_T(r,s):i||(r[r.length]=s)}return r}function CT(t){return null!=t&&t.length?ST(t,1):[]}function AT(t,e,n,i){var r=-1,a=null==t?0:t.length;for(i&&a&&(n=t[++r]);++rs))return!1;var l=a.get(t),u=a.get(e);if(l&&u)return l==e&&u==t;var h=-1,f=!0,d=n&NE?new ME:void 0;for(a.set(t,e),a.set(e,t);++h2?e[2]:void 0;for(r&&zh(e[0],e[1],r)&&(i=1);++n-1?i[r?t[a]:a]:void 0};const IS=LS;function OS(t,e){var n=-1,i=Qu(t)?Array(t.length):[];return yS(t,(function(t,r,a){i[++n]=e(t,r,a)})),i}function NS(t,e){return(Vu(t)?G_:OS)(t,pS(e))}function DS(t,e){return t>e}var PS=Object.prototype.hasOwnProperty;function BS(t,e){return null!=t&&PS.call(t,e)}function RS(t,e){return null!=t&&hS(t,e,BS)}function FS(t){return null==t?[]:function(t,e){return G_(e,(function(e){return t[e]}))}(t,cT(t))}function $S(t){return void 0===t}function jS(t,e){return te||a&&o&&c&&!s&&!l||i&&o&&c||!n&&c||!r)return 1;if(!i&&!a&&!l&&t1&&zh(t,e[0],e[1])?e=[]:n>2&&zh(e[0],e[1],e[2])&&(e=[e[0]]),function(t,e,n){e=e.length?G_(e,(function(t){return Vu(t)?function(e){return kT(e,1===t.length?t[0]:t)}:t})):[Ih];var i=-1;return e=G_(e,uh(pS)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(OS(t,(function(t,n,r){return{criteria:G_(e,(function(e){return e(t)})),index:++i,value:t}})),(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,a=e.criteria,o=r.length,s=n.length;++i=s?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}(t,ST(e,1),[])}));const iC=nC;var rC=$g&&1/BE(new $g([,-0]))[1]==1/0?function(t){return new $g(t)}:function(){};const aC=rC;var oC=jh((function(t){return function(t,e,n){var i=-1,r=sT,a=t.length,o=!0,s=[],c=s;if(a>=200){var l=aC(t);if(l)return BE(l);o=!1,r=IE,c=new ME}else c=s;t:for(;++i1?i.setNode(t,e):i.setNode(t)})),this}setNode(t,e){return RS(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=hC,this._children[t]={},this._children[hC][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return RS(this._nodes,t)}removeNode(t){var e=this;if(RS(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],SS(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),SS(cT(this._in[t]),n),delete this._in[t],delete this._preds[t],SS(cT(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($S(e))e=hC;else{for(var n=e+="";!$S(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==hC)return e}}children(t){if($S(t)&&(t=hC),this._isCompound){var e=this._children[t];if(e)return cT(e)}else{if(t===hC)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return cT(e)}successors(t){var e=this._sucs[t];if(e)return cT(e)}neighbors(t){var e=this.predecessors(t);if(e)return sC(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;SS(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),SS(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function r(t){var a=n.parent(t);return void 0===a||e.hasNode(a)?(i[t]=a,a):a in i?i[a]:r(a)}return this._isCompound&&SS(e.nodes(),(function(t){e.setParent(t,r(t))})),e}setDefaultEdgeLabel(t){return Yl(t)||(t=Dh(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return FS(this._edgeObjs)}setPath(t,e){var n=this,i=arguments;return eC(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this}setEdge(){var t,e,n,i,r=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],r=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),t=""+t,e=""+e,$S(n)||(n=""+n);var o=bC(this._isDirected,t,e,n);if(RS(this._edgeLabels,o))return r&&(this._edgeLabels[o]=i),this;if(!$S(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=r?i:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var o=r;r=a,a=o}var s={v:r,w:a};return i&&(s.name=i),s}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,gC(this._preds[e],t),gC(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this}edge(t,e,n){var i=1===arguments.length?mC(this._isDirected,arguments[0]):bC(this._isDirected,t,e,n);return this._edgeLabels[i]}hasEdge(t,e,n){var i=1===arguments.length?mC(this._isDirected,arguments[0]):bC(this._isDirected,t,e,n);return RS(this._edgeLabels,i)}removeEdge(t,e,n){var i=1===arguments.length?mC(this._isDirected,arguments[0]):bC(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],pC(this._preds[e],t),pC(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var i=FS(n);return e?AS(i,(function(t){return t.v===e})):i}}outEdges(t,e){var n=this._out[t];if(n){var i=FS(n);return e?AS(i,(function(t){return t.w===e})):i}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function gC(t,e){t[e]?t[e]++:t[e]=1}function pC(t,e){--t[e]||delete t[e]}function bC(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var o=r;r=a,a=o}return r+fC+a+fC+($S(i)?uC:i)}function mC(t,e){return bC(t,e.v,e.w,e.name)}dC.prototype._nodeCount=0,dC.prototype._edgeCount=0;class yC{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return wC(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&wC(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,vC)),n=n._prev;return"["+t.join(", ")+"]"}}function wC(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function vC(t,e){if("_next"!==t&&"_prev"!==t)return e}var xC=Dh(1);function kC(t,e,n,i,r){var a=r?[]:void 0;return SS(t.inEdges(i.v),(function(i){var o=t.edge(i),s=t.node(i.v);r&&a.push({v:i.v,w:i.w}),s.out-=o,_C(e,n,s)})),SS(t.outEdges(i.v),(function(i){var r=t.edge(i),a=i.w,o=t.node(a);o.in-=r,_C(e,n,o)})),t.removeNode(i.v),a}function _C(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function TC(t){var e,n="greedy"===t.graph().acyclicer?function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new dC,i=0,r=0;SS(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),SS(t.edges(),(function(t){var a=n.edge(t.v,t.w)||0,o=e(t),s=a+o;n.setEdge(t.v,t.w,s),r=Math.max(r,n.node(t.v).out+=o),i=Math.max(i,n.node(t.w).in+=o)}));var a=JS(r+i+3).map((function(){return new yC})),o=i+1;return SS(n.nodes(),(function(t){_C(a,o,n.node(t))})),{graph:n,buckets:a,zeroIdx:o}}(t,e||xC),i=function(t,e,n){for(var i,r=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;i=o.dequeue();)kC(t,e,n,i);for(;i=a.dequeue();)kC(t,e,n,i);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue()){r=r.concat(kC(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return CT(NS(i,(function(e){return t.outEdges(e.v,e.w)})))}(t,(e=t,function(t){return e.edge(t).weight})):function(t){var e=[],n={},i={};return SS(t.nodes(),(function r(a){RS(i,a)||(i[a]=!0,n[a]=!0,SS(t.outEdges(a),(function(t){RS(n,t.w)?e.push(t):r(t.w)})),delete n[a])})),e}(t);SS(n,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,lC("rev"))}))}function EC(t,e,n,i){var r;do{r=lC(i)}while(t.hasNode(r));return n.dummy=e,t.setNode(r,n),r}function SC(t){var e=new dC({multigraph:t.isMultigraph()}).setGraph(t.graph());return SS(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),SS(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function CC(t,e){var n,i,r=t.x,a=t.y,o=e.x-r,s=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=l*o/s,i=l):(o<0&&(c=-c),n=c,i=c*s/o),{x:r+n,y:a+i}}function AC(t){var e=NS(JS(LC(t)+1),(function(){return[]}));return SS(t.nodes(),(function(n){var i=t.node(n),r=i.rank;$S(r)||(e[r][i.order]=n)})),e}function MC(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),EC(t,"border",r,e)}function LC(t){return HS(NS(t.nodes(),(function(e){var n=t.node(e).rank;if(!$S(n))return n})))}function IC(t,e){var n=wS();try{return e()}finally{console.log(t+" time: "+(wS()-n)+"ms")}}function OC(t,e){return e()}function NC(t,e,n,i,r,a){var o={width:0,height:0,rank:a,borderType:e},s=r[e][a-1],c=EC(t,"border",o,n);r[e][a]=c,t.setParent(c,i),s&&t.setEdge(s,c,{weight:1})}function DC(t){SS(t.nodes(),(function(e){PC(t.node(e))})),SS(t.edges(),(function(e){PC(t.edge(e))}))}function PC(t){var e=t.width;t.width=t.height,t.height=e}function BC(t){t.y=-t.y}function RC(t){var e=t.x;t.x=t.y,t.y=e}function FC(t){var e={};SS(t.sources(),(function n(i){var r=t.node(i);if(RS(e,i))return r.rank;e[i]=!0;var a=US(NS(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),r.rank=a}))}function $C(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function jC(t){var e,n,i=new dC({directed:!1}),r=t.nodes()[0],a=t.nodeCount();for(i.setNode(r,{});zC(i,t)o.lim&&(s=o,c=!0),GS(AS(e.edges(),(function(e){return c===tA(0,t.node(e.v),s)&&c!==tA(0,t.node(e.w),s)})),(function(t){return $C(e,t)}))}function JC(t,e,n,i){var r=n.v,a=n.w;t.removeEdge(r,a),t.setEdge(i.v,i.w,{}),WC(t),YC(t,e),function(t,e){var n=IS(t.nodes(),(function(t){return!e.node(t).parent})),i=function(t,e){return UC(t,e,"pre")}(t,n);SS(i=i.slice(1),(function(n){var i=t.node(n).parent,r=e.edge(n,i),a=!1;r||(r=e.edge(i,n),a=!0),e.node(n).rank=e.node(i).rank+(a?r.minlen:-r.minlen)}))}(t,e)}function tA(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}function eA(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){KC(t)}(t);break;case"tight-tree":!function(t){FC(t),jC(t)}(t);break;case"longest-path":nA(t)}}new Error,KC.initLowLimValues=WC,KC.initCutValues=YC,KC.calcCutValue=VC,KC.leaveEdge=QC,KC.enterEdge=ZC,KC.exchangeEdges=JC;var nA=FC;function iA(t){var e=EC(t,"root",{},"_root"),n=function(t){var e={};function n(i,r){var a=t.children(i);a&&a.length&&SS(a,(function(t){n(t,r+1)})),e[i]=r}return SS(t.children(),(function(t){n(t,1)})),e}(t),i=HS(FS(n))-1,r=2*i+1;t.graph().nestingRoot=e,SS(t.edges(),(function(e){t.edge(e).minlen*=r}));var a=function(t){return eC(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;SS(t.children(),(function(o){rA(t,e,r,a,i,n,o)})),t.graph().nodeRankFactor=r}function rA(t,e,n,i,r,a,o){var s=t.children(o);if(s.length){var c=MC(t,"_bt"),l=MC(t,"_bb"),u=t.node(o);t.setParent(c,o),u.borderTop=c,t.setParent(l,o),u.borderBottom=l,SS(s,(function(s){rA(t,e,n,i,r,a,s);var u=t.node(s),h=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,d=u.borderTop?i:2*i,g=h!==f?1:r-a[o]+1;t.setEdge(c,h,{weight:d,minlen:g,nestingEdge:!0}),t.setEdge(f,l,{weight:d,minlen:g,nestingEdge:!0})})),t.parent(o)||t.setEdge(e,c,{weight:0,minlen:r+a[o]})}else o!==e&&t.setEdge(e,o,{weight:0,minlen:n})}function aA(t,e){for(var n=0,i=1;i0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}function sA(t,e){var n=function(t,e){var n={lhs:[],rhs:[]};return SS(t,(function(t){RS(t,"barycenter")?n.lhs.push(t):n.rhs.push(t)})),n}(t),i=n.lhs,r=iC(n.rhs,(function(t){return-t.i})),a=[],o=0,s=0,c=0;i.sort(function(t){return function(e,n){return e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!e)),c=cA(a,r,c),SS(i,(function(t){c+=t.vs.length,a.push(t.vs),o+=t.barycenter*t.weight,s+=t.weight,c=cA(a,r,c)}));var l={vs:CT(a)};return s&&(l.barycenter=o/s,l.weight=s),l}function cA(t,e,n){for(var i;e.length&&(i=TS(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}function lA(t,e,n,i){var r=t.children(e),a=t.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(r=AS(r,(function(t){return t!==o&&t!==s})));var l=function(t,e){return NS(e,(function(e){var n=t.inEdges(e);if(n.length){var i=eC(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}(t,r);SS(l,(function(e){if(t.children(e.v).length){var r=lA(t,e.v,n,i);c[e.v]=r,RS(r,"barycenter")&&function(t,e){$S(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(e,r)}}));var u=function(t,e){var n={};return SS(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};$S(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),SS(e.edges(),(function(t){var e=n[t.v],i=n[t.w];!$S(e)&&!$S(i)&&(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||($S(e.barycenter)||$S(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var r=t.pop();e.push(r),SS(r.in.reverse(),n(r)),SS(r.out,i(r))}return NS(AS(e,(function(t){return!t.merged})),(function(t){return WS(t,["vs","i","barycenter","weight"])}))}(AS(n,(function(t){return!t.indegree})))}(l,n);!function(t,e){SS(t,(function(t){t.vs=CT(t.vs.map((function(t){return e[t]?e[t].vs:t})))}))}(u,c);var h=sA(u,i);if(o&&(h.vs=CT([o,h.vs,s]),t.predecessors(o).length)){var f=t.node(t.predecessors(o)[0]),d=t.node(t.predecessors(s)[0]);RS(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+f.order+d.order)/(h.weight+2),h.weight+=2}return h}function uA(t,e,n){return NS(e,(function(e){return function(t,e,n){var i=function(t){for(var e;t.hasNode(e=lC("_root")););return e}(t),r=new dC({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return SS(t.nodes(),(function(a){var o=t.node(a),s=t.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(r.setNode(a),r.setParent(a,s||i),SS(t[n](a),(function(e){var n=e.v===a?e.w:e.v,i=r.edge(n,a),o=$S(i)?0:i.weight;r.setEdge(n,a,{weight:t.edge(e).weight+o})})),RS(o,"minRank")&&r.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))})),r}(t,e,n)}))}function hA(t,e){var n=new dC;SS(t,(function(t){var i=t.graph().root,r=lA(t,i,n,e);SS(r.vs,(function(e,n){t.node(e).order=n})),function(t,e,n){var i,r={};SS(n,(function(n){for(var a,o,s=t.parent(n);s;){if((a=t.parent(s))?(o=r[a],r[a]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=a}}))}(t,n,r.vs)}))}function fA(t,e){SS(e,(function(e){SS(e,(function(e,n){t.node(e).order=n}))}))}function dA(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function gA(t,e,n){if(e>n){var i=e;e=n,n=i}return RS(t[e],n)}function pA(t){var e,n=AC(t),i=Hh(function(t,e){var n={};return eC(e,(function(e,i){var r=0,a=0,o=e.length,s=TS(i);return SS(i,(function(e,c){var l=function(t,e){if(t.node(e).dummy)return IS(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),u=l?t.node(l).order:o;(l||e===s)&&(SS(i.slice(a,c+1),(function(e){SS(t.predecessors(e),(function(i){var a=t.node(i),o=a.order;(oo)&&dA(n,e,s)}))}))}return eC(e,(function(e,n){var r,a=-1,o=0;return SS(n,(function(s,c){if("border"===t.node(s).dummy){var l=t.predecessors(s);l.length&&(r=t.node(l[0]).order,i(n,o,c,a,r),o=c,a=r)}i(n,o,n.length,r,e.length)})),n})),n}(t,n)),r={};SS(["u","d"],(function(a){e="u"===a?n:FS(n).reverse(),SS(["l","r"],(function(n){"r"===n&&(e=NS(e,(function(t){return FS(t).reverse()})));var o=("u"===a?t.predecessors:t.successors).bind(t),s=function(t,e,n,i){var r={},a={},o={};return SS(e,(function(t){SS(t,(function(t,e){r[t]=t,a[t]=t,o[t]=e}))})),SS(e,(function(t){var e=-1;SS(t,(function(t){var s=i(t);if(s.length)for(var c=((s=iC(s,(function(t){return o[t]}))).length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var h=s[l];a[t]===t&&ec||l>e[r].lim));for(a=r,r=i;(r=t.parent(r))!==a;)s.push(r);return{path:o.concat(s.reverse()),lca:a}}(t,e,r.v,r.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==r.w;){if(i=t.node(n),u){for(;(l=o[c])!==s&&t.node(l).maxRank=2);var l=aA(t,r=AC(t));l{l.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",n+"_"+e+"-pointStart").attr("class","marker "+e).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")},circle:(t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-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")}},NA=(t,e,n,i)=>{e.forEach((e=>{OA[e](t,n,i)}))},DA=(t,e,n,i)=>{let r=t||"";if("object"==typeof r&&(r=r[0]),Sc(sg().flowchart.htmlLabels))return r=r.replace(/\\n|\n/g,"
"),l.debug("vertexText"+r),function(t){const e=ee(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),i=t.label,r=t.isNode?"nodeLabel":"edgeLabel";return n.html('"+i+""),function(t,e){e&&t.attr("style",e)}(n,t.labelStyle),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:i,label:gf(r).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:e.replace("fill:","color:")});{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof r?r.split(/\\n|\n|/gi):Array.isArray(r)?r:[];for(const e of i){const 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"),n?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},PA={};function BA(t,e,n){if(function(t){return!(!t||"object"!=typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return RA(t.children,e,n)}return Array.isArray(t)?RA(t,e,n):""}function RA(t,e,n){const i=[];let r=-1;for(;++rr?0:r+e:e>r?r:e,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);o0?(FA(t,t.length,0,e),t):e}const jA={}.hasOwnProperty;function zA(t,e){let n;for(n in e){const i=(jA.call(t,n)?t[n]:void 0)||(t[n]={}),r=e[n];let a;if(r)for(a in r){jA.call(i,a)||(i[a]=[]);const t=r[a];qA(i[a],Array.isArray(t)?t:t?[t]:[])}}}function qA(t,e){let n=-1;const i=[];for(;++na))return;const n=e.events.length;let r,s,c=n;for(;c--;)if("exit"===e.events[c][0]&&"chunkFlow"===e.events[c][1].type){if(r){s=e.events[c][1].end;break}r=!0}for(m(o),t=n;ti;){const i=n[r];e.containerState=i[1],i[0].exit.call(e,t)}n.length=i}function y(){i.write([null]),r=void 0,i=void 0,e.containerState._closeFlow=void 0}}},aM={tokenize:function(t,e,n){return nM(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function oM(t){return null===t||QA(t)||tM(t)?1:JA(t)?2:void 0}function sM(t,e,n){const i=[];let r=-1;for(;++r1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const h=Object.assign({},t[n][1].end),f=Object.assign({},t[u][1].start);lM(h,-s),lM(f,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},t[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[u][1].start),end:f},r={type:s>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[u][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},t[n][1].end=Object.assign({},a.start),t[u][1].start=Object.assign({},o.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=$A(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=$A(c,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",r,e]]),c=$A(c,sM(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),c=$A(c,[["exit",r,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[u][1].end.offset-t[u][1].start.offset?(l=2,c=$A(c,[["enter",t[u][1],e],["exit",t[u][1],e]])):l=0,FA(t,n-1,u-n+3,c),u=n+c.length-l-2;break}for(u=-1;++u=s?(t.exit("codeFencedFenceSequence"),ZA(e)?nM(t,u,"whitespace")(e):u(e)):n(e)}function u(i){return null===i||XA(i)?(t.exit("codeFencedFence"),e(i)):n(i)}},partial:!0};let a,o=0,s=0;return function(e){return function(e){const n=i.events[i.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(e)}(e)};function c(e){return e===a?(s++,t.consume(e),c):s<3?n(e):(t.exit("codeFencedFenceSequence"),ZA(e)?nM(t,l,"whitespace")(e):l(e))}function l(n){return null===n||XA(n)?(t.exit("codeFencedFence"),i.interrupt?e(n):t.check(mM,d,y)(n)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(n))}function u(e){return null===e||XA(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),l(e)):ZA(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),nM(t,h,"whitespace")(e)):96===e&&e===a?n(e):(t.consume(e),u)}function h(e){return null===e||XA(e)?l(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),f(e))}function f(e){return null===e||XA(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),l(e)):96===e&&e===a?n(e):(t.consume(e),f)}function d(e){return t.attempt(r,y,g)(e)}function g(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),p}function p(e){return o>0&&ZA(e)?nM(t,b,"linePrefix",o+1)(e):b(e)}function b(e){return null===e||XA(e)?t.check(mM,d,y)(e):(t.enter("codeFlowValue"),m(e))}function m(e){return null===e||XA(e)?(t.exit("codeFlowValue"),b(e)):(t.consume(e),m)}function y(n){return t.exit("codeFenced"),e(n)}},concrete:!0},wM={name:"codeIndented",tokenize:function(t,e,n){const i=this;return function(e){return t.enter("codeIndented"),nM(t,r,"linePrefix",5)(e)};function r(t){const e=i.events[i.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?a(t):n(t)}function a(e){return null===e?s(e):XA(e)?t.attempt(vM,a,s)(e):(t.enter("codeFlowValue"),o(e))}function o(e){return null===e||XA(e)?(t.exit("codeFlowValue"),a(e)):(t.consume(e),o)}function s(n){return t.exit("codeIndented"),e(n)}}},vM={tokenize:function(t,e,n){const i=this;return r;function r(e){return i.parser.lazy[i.now().line]?n(e):XA(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r):nM(t,a,"linePrefix",5)(e)}function a(t){const a=i.events[i.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?e(t):XA(t)?r(t):n(t)}},partial:!0},xM={name:"codeText",tokenize:function(t,e,n){let i,r,a=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),o(e)};function o(e){return 96===e?(t.consume(e),a++,o):(t.exit("codeTextSequence"),s(e))}function s(e){return null===e?n(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),s):96===e?(r=t.enter("codeTextSequence"),i=0,l(e)):XA(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),s):(t.enter("codeTextData"),c(e))}function c(e){return null===e||32===e||96===e||XA(e)?(t.exit("codeTextData"),s(e)):(t.consume(e),c)}function l(n){return 96===n?(t.consume(n),i++,l):i===a?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(r.type="codeTextData",c(n))}},resolve:function(t){let e,n,i=t.length-4,r=3;if(!("lineEnding"!==t[r][1].type&&"space"!==t[r][1].type||"lineEnding"!==t[i][1].type&&"space"!==t[i][1].type))for(e=r;++e=4?e(r):t.interrupt(i.parser.constructs.flow,n,e)(r)}},partial:!0};function SM(t,e,n,i,r,a,o,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(e){return 60===e?(t.enter(i),t.enter(r),t.enter(a),t.consume(e),t.exit(a),h):null===e||32===e||41===e||KA(e)?n(e):(t.enter(i),t.enter(o),t.enter(s),t.enter("chunkString",{contentType:"string"}),g(e))};function h(n){return 62===n?(t.enter(a),t.consume(n),t.exit(a),t.exit(r),t.exit(i),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),f(n))}function f(e){return 62===e?(t.exit("chunkString"),t.exit(s),h(e)):null===e||60===e||XA(e)?n(e):(t.consume(e),92===e?d:f)}function d(e){return 60===e||62===e||92===e?(t.consume(e),f):f(e)}function g(r){return u||null!==r&&41!==r&&!QA(r)?u999||null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(t.exit(a),t.enter(r),t.consume(h),t.exit(r),t.exit(i),e):XA(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),l):(t.enter("chunkString",{contentType:"string"}),u(h))}function u(e){return null===e||91===e||93===e||XA(e)||c++>999?(t.exit("chunkString"),l(e)):(t.consume(e),s||(s=!ZA(e)),92===e?h:u)}function h(e){return 91===e||92===e||93===e?(t.consume(e),c++,u):u(e)}}function AM(t,e,n,i,r,a){let o;return function(e){return 34===e||39===e||40===e?(t.enter(i),t.enter(r),t.consume(e),t.exit(r),o=40===e?41:e,s):n(e)};function s(n){return n===o?(t.enter(r),t.consume(n),t.exit(r),t.exit(i),e):(t.enter(a),c(n))}function c(e){return e===o?(t.exit(a),s(o)):null===e?n(e):XA(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),nM(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),l(e))}function l(e){return e===o||null===e||XA(e)?(t.exit("chunkString"),c(e)):(t.consume(e),92===e?u:l)}function u(e){return e===o||92===e?(t.consume(e),l):l(e)}}function MM(t,e){let n;return function i(r){return XA(r)?(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),n=!0,i):ZA(r)?nM(t,i,n?"linePrefix":"lineSuffix")(r):e(r)}}function LM(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const IM={name:"definition",tokenize:function(t,e,n){const i=this;let r;return function(e){return t.enter("definition"),function(e){return CM.call(i,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function a(e){return r=LM(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),o):n(e)}function o(e){return QA(e)?MM(t,s)(e):s(e)}function s(e){return SM(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function c(e){return t.attempt(OM,l,l)(e)}function l(e){return ZA(e)?nM(t,u,"whitespace")(e):u(e)}function u(a){return null===a||XA(a)?(t.exit("definition"),i.parser.defined.push(r),e(a)):n(a)}}},OM={tokenize:function(t,e,n){return function(e){return QA(e)?MM(t,i)(e):n(e)};function i(e){return AM(t,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function r(e){return ZA(e)?nM(t,a,"whitespace")(e):a(e)}function a(t){return null===t||XA(t)?e(t):n(t)}},partial:!0},NM={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.consume(e),i};function i(i){return XA(i)?(t.exit("hardBreakEscape"),e(i)):n(i)}}},DM={name:"headingAtx",tokenize:function(t,e,n){let i=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),r(e)}(e)};function r(e){return 35===e&&i++<6?(t.consume(e),r):null===e||QA(e)?(t.exit("atxHeadingSequence"),a(e)):n(e)}function a(n){return 35===n?(t.enter("atxHeadingSequence"),o(n)):null===n||XA(n)?(t.exit("atxHeading"),e(n)):ZA(n)?nM(t,a,"whitespace")(n):(t.enter("atxHeadingText"),s(n))}function o(e){return 35===e?(t.consume(e),o):(t.exit("atxHeadingSequence"),a(e))}function s(e){return null===e||35===e||QA(e)?(t.exit("atxHeadingText"),a(e)):(t.consume(e),s)}},resolve:function(t,e){let n,i,r=t.length-2,a=3;return"whitespace"===t[a][1].type&&(a+=2),r-2>a&&"whitespace"===t[r][1].type&&(r-=2),"atxHeadingSequence"===t[r][1].type&&(a===r-1||r-4>a&&"whitespace"===t[r-2][1].type)&&(r-=a+1===r?2:4),r>a&&(n={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},i={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},FA(t,a,r-a+1,[["enter",n,e],["enter",i,e],["exit",i,e],["exit",n,e]])),t}},PM=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],BM=["pre","script","style","textarea"],RM={name:"htmlFlow",tokenize:function(t,e,n){const i=this;let r,a,o,s,c;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),l}(e)};function l(s){return 33===s?(t.consume(s),u):47===s?(t.consume(s),a=!0,d):63===s?(t.consume(s),r=3,i.interrupt?e:D):HA(s)?(t.consume(s),o=String.fromCharCode(s),g):n(s)}function u(a){return 45===a?(t.consume(a),r=2,h):91===a?(t.consume(a),r=5,s=0,f):HA(a)?(t.consume(a),r=4,i.interrupt?e:D):n(a)}function h(r){return 45===r?(t.consume(r),i.interrupt?e:D):n(r)}function f(r){return r==="CDATA[".charCodeAt(s++)?(t.consume(r),6===s?i.interrupt?e:S:f):n(r)}function d(e){return HA(e)?(t.consume(e),o=String.fromCharCode(e),g):n(e)}function g(s){if(null===s||47===s||62===s||QA(s)){const c=47===s,l=o.toLowerCase();return c||a||!BM.includes(l)?PM.includes(o.toLowerCase())?(r=6,c?(t.consume(s),p):i.interrupt?e(s):S(s)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(s):a?b(s):m(s)):(r=1,i.interrupt?e(s):S(s))}return 45===s||UA(s)?(t.consume(s),o+=String.fromCharCode(s),g):n(s)}function p(r){return 62===r?(t.consume(r),i.interrupt?e:S):n(r)}function b(e){return ZA(e)?(t.consume(e),b):T(e)}function m(e){return 47===e?(t.consume(e),T):58===e||95===e||HA(e)?(t.consume(e),y):ZA(e)?(t.consume(e),m):T(e)}function y(e){return 45===e||46===e||58===e||95===e||UA(e)?(t.consume(e),y):w(e)}function w(e){return 61===e?(t.consume(e),v):ZA(e)?(t.consume(e),w):m(e)}function v(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),c=e,x):ZA(e)?(t.consume(e),v):k(e)}function x(e){return e===c?(t.consume(e),c=null,_):null===e||XA(e)?n(e):(t.consume(e),x)}function k(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||QA(e)?w(e):(t.consume(e),k)}function _(t){return 47===t||62===t||ZA(t)?m(t):n(t)}function T(e){return 62===e?(t.consume(e),E):n(e)}function E(e){return null===e||XA(e)?S(e):ZA(e)?(t.consume(e),E):n(e)}function S(e){return 45===e&&2===r?(t.consume(e),L):60===e&&1===r?(t.consume(e),I):62===e&&4===r?(t.consume(e),P):63===e&&3===r?(t.consume(e),D):93===e&&5===r?(t.consume(e),N):!XA(e)||6!==r&&7!==r?null===e||XA(e)?(t.exit("htmlFlowData"),C(e)):(t.consume(e),S):(t.exit("htmlFlowData"),t.check(FM,B,C)(e))}function C(e){return t.check($M,A,B)(e)}function A(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),M}function M(e){return null===e||XA(e)?C(e):(t.enter("htmlFlowData"),S(e))}function L(e){return 45===e?(t.consume(e),D):S(e)}function I(e){return 47===e?(t.consume(e),o="",O):S(e)}function O(e){if(62===e){const n=o.toLowerCase();return BM.includes(n)?(t.consume(e),P):S(e)}return HA(e)&&o.length<8?(t.consume(e),o+=String.fromCharCode(e),O):S(e)}function N(e){return 93===e?(t.consume(e),D):S(e)}function D(e){return 62===e?(t.consume(e),P):45===e&&2===r?(t.consume(e),D):S(e)}function P(e){return null===e||XA(e)?(t.exit("htmlFlowData"),B(e)):(t.consume(e),P)}function B(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););return e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},concrete:!0},FM={tokenize:function(t,e,n){return function(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(hM,e,n)}},partial:!0},$M={tokenize:function(t,e,n){const i=this;return function(e){return XA(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),r):n(e)};function r(t){return i.parser.lazy[i.now().line]?n(t):e(t)}},partial:!0},jM={name:"htmlText",tokenize:function(t,e,n){const i=this;let r,a,o;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),s};function s(e){return 33===e?(t.consume(e),c):47===e?(t.consume(e),v):63===e?(t.consume(e),y):HA(e)?(t.consume(e),_):n(e)}function c(e){return 45===e?(t.consume(e),l):91===e?(t.consume(e),a=0,d):HA(e)?(t.consume(e),m):n(e)}function l(e){return 45===e?(t.consume(e),f):n(e)}function u(e){return null===e?n(e):45===e?(t.consume(e),h):XA(e)?(o=u,O(e)):(t.consume(e),u)}function h(e){return 45===e?(t.consume(e),f):u(e)}function f(t){return 62===t?I(t):45===t?h(t):u(t)}function d(e){return e==="CDATA[".charCodeAt(a++)?(t.consume(e),6===a?g:d):n(e)}function g(e){return null===e?n(e):93===e?(t.consume(e),p):XA(e)?(o=g,O(e)):(t.consume(e),g)}function p(e){return 93===e?(t.consume(e),b):g(e)}function b(e){return 62===e?I(e):93===e?(t.consume(e),b):g(e)}function m(e){return null===e||62===e?I(e):XA(e)?(o=m,O(e)):(t.consume(e),m)}function y(e){return null===e?n(e):63===e?(t.consume(e),w):XA(e)?(o=y,O(e)):(t.consume(e),y)}function w(t){return 62===t?I(t):y(t)}function v(e){return HA(e)?(t.consume(e),x):n(e)}function x(e){return 45===e||UA(e)?(t.consume(e),x):k(e)}function k(e){return XA(e)?(o=k,O(e)):ZA(e)?(t.consume(e),k):I(e)}function _(e){return 45===e||UA(e)?(t.consume(e),_):47===e||62===e||QA(e)?T(e):n(e)}function T(e){return 47===e?(t.consume(e),I):58===e||95===e||HA(e)?(t.consume(e),E):XA(e)?(o=T,O(e)):ZA(e)?(t.consume(e),T):I(e)}function E(e){return 45===e||46===e||58===e||95===e||UA(e)?(t.consume(e),E):S(e)}function S(e){return 61===e?(t.consume(e),C):XA(e)?(o=S,O(e)):ZA(e)?(t.consume(e),S):T(e)}function C(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),r=e,A):XA(e)?(o=C,O(e)):ZA(e)?(t.consume(e),C):(t.consume(e),M)}function A(e){return e===r?(t.consume(e),r=void 0,L):null===e?n(e):XA(e)?(o=A,O(e)):(t.consume(e),A)}function M(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):47===e||62===e||QA(e)?T(e):(t.consume(e),M)}function L(t){return 47===t||62===t||QA(t)?T(t):n(t)}function I(i){return 62===i?(t.consume(i),t.exit("htmlTextData"),t.exit("htmlText"),e):n(i)}function O(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),N}function N(e){return ZA(e)?nM(t,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):D(e)}function D(e){return t.enter("htmlTextData"),o(e)}}},zM={name:"labelEnd",tokenize:function(t,e,n){const i=this;let r,a,o=i.events.length;for(;o--;)if(("labelImage"===i.events[o][1].type||"labelLink"===i.events[o][1].type)&&!i.events[o][1]._balanced){r=i.events[o][1];break}return function(e){return r?r._inactive?u(e):(a=i.parser.defined.includes(LM(i.sliceSerialize({start:r.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),s):n(e)};function s(e){return 40===e?t.attempt(qM,l,a?l:u)(e):91===e?t.attempt(HM,l,a?c:u)(e):a?l(e):u(e)}function c(e){return t.attempt(UM,l,u)(e)}function l(t){return e(t)}function u(t){return r._balanced=!0,n(t)}},resolveTo:function(t,e){let n,i,r,a,o=t.length,s=0;for(;o--;)if(n=t[o][1],i){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===t[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(i=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(r=o);const c={type:"labelLink"===t[i][1].type?"link":"image",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)},l={type:"label",start:Object.assign({},t[i][1].start),end:Object.assign({},t[r][1].end)},u={type:"labelText",start:Object.assign({},t[i+s+2][1].end),end:Object.assign({},t[r-2][1].start)};return a=[["enter",c,e],["enter",l,e]],a=$A(a,t.slice(i+1,i+s+3)),a=$A(a,[["enter",u,e]]),a=$A(a,sM(e.parser.constructs.insideSpan.null,t.slice(i+s+4,r-3),e)),a=$A(a,[["exit",u,e],t[r-2],t[r-1],["exit",l,e]]),a=$A(a,t.slice(r+1)),a=$A(a,[["exit",c,e]]),FA(t,i,t.length,a),t},resolveAll:function(t){let e=-1;for(;++e=3&&(null===a||XA(a))?(t.exit("thematicBreak"),e(a)):n(a)}function o(e){return e===i?(t.consume(e),r++,o):(t.exit("thematicBreakSequence"),ZA(e)?nM(t,a,"whitespace")(e):a(e))}}},WM={name:"list",tokenize:function(t,e,n){const i=this,r=i.events[i.events.length-1];let a=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,o=0;return function(e){const r=i.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===r?!i.containerState.marker||e===i.containerState.marker:YA(e)){if(i.containerState.type||(i.containerState.type=r,t.enter(r,{_container:!0})),"listUnordered"===r)return t.enter("listItemPrefix"),42===e||45===e?t.check(VM,n,c)(e):c(e);if(!i.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),s(e)}return n(e)};function s(e){return YA(e)&&++o<10?(t.consume(e),s):(!i.interrupt||o<2)&&(i.containerState.marker?e===i.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),c(e)):n(e)}function c(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||e,t.check(hM,i.interrupt?n:l,t.attempt(XM,h,u))}function l(t){return i.containerState.initialBlankLine=!0,a++,h(t)}function u(e){return ZA(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),h):n(e)}function h(n){return i.containerState.size=a+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}},continuation:{tokenize:function(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(hM,(function(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,nM(t,e,"listItemIndent",i.containerState.size+1)(n)}),(function(n){return i.containerState.furtherBlankLines||!ZA(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(QM,e,r)(n))}));function r(r){return i.containerState._closeFlow=!0,i.interrupt=void 0,nM(t,t.attempt(WM,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(t){t.exit(this.containerState.type)}},XM={tokenize:function(t,e,n){const i=this;return nM(t,(function(t){const r=i.events[i.events.length-1];return!ZA(t)&&r&&"listItemPrefixWhitespace"===r[1].type?e(t):n(t)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},QM={tokenize:function(t,e,n){const i=this;return nM(t,(function(t){const r=i.events[i.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?e(t):n(t)}),"listItemIndent",i.containerState.size+1)},partial:!0},ZM={name:"setextUnderline",tokenize:function(t,e,n){const i=this;let r;return function(e){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return i.parser.lazy[i.now().line]||!i.interrupt&&!o?n(e):(t.enter("setextHeadingLine"),r=e,function(e){return t.enter("setextHeadingLineSequence"),a(e)}(e))};function a(e){return e===r?(t.consume(e),a):(t.exit("setextHeadingLineSequence"),ZA(e)?nM(t,o,"lineSuffix")(e):o(e))}function o(i){return null===i||XA(i)?(t.exit("setextHeadingLine"),e(i)):n(i)}},resolveTo:function(t,e){let n,i,r,a=t.length;for(;a--;)if("enter"===t[a][0]){if("content"===t[a][1].type){n=a;break}"paragraph"===t[a][1].type&&(i=a)}else"content"===t[a][1].type&&t.splice(a,1),!r&&"definition"===t[a][1].type&&(r=a);const o={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",r?(t.splice(i,0,["enter",o,e]),t.splice(r+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[r][1].end)):t[n][1]=o,t.push(["exit",o,e]),t}},JM={tokenize:function(t){const e=this,n=t.attempt(hM,(function(i){if(null!==i)return t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n;t.consume(i)}),t.attempt(this.parser.constructs.flowInitial,i,nM(t,t.attempt(this.parser.constructs.flow,i,t.attempt(TM,i)),"linePrefix")));return n;function i(i){if(null!==i)return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(i)}}},tL={resolveAll:rL()},eL=iL("string"),nL=iL("text");function iL(t){return{tokenize:function(e){const n=this,i=this.parser.constructs[t],r=e.attempt(i,a,o);return a;function a(t){return c(t)?r(t):o(t)}function o(t){if(null!==t)return e.enter("data"),e.consume(t),s;e.consume(t)}function s(t){return c(t)?(e.exit("data"),r(t)):(e.consume(t),s)}function c(t){if(null===t)return!0;const e=i[t];let r=-1;if(e)for(;++r-1){const t=o[0];"string"==typeof t?o[0]=t.slice(i):o.shift()}a>0&&o.push(t[r].slice(0,a))}return o}(o,t)}function f(){const{line:t,column:e,offset:n,_index:r,_bufferIndex:a}=i;return{line:t,column:e,offset:n,_index:r,_bufferIndex:a}}function d(t){u=u(t)}function g(t,e){e.restore()}function p(t,e){return function(n,r,a){let o,u,h,d;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):(g=n,function(t){const e=null!==t&&g[t],n=null!==t&&g.null;return p([...Array.isArray(e)?e:e?[e]:[],...Array.isArray(n)?n:n?[n]:[]])(t)});var g;function p(t){return o=t,u=0,0===t.length?a:b(t[u])}function b(t){return function(n){return d=function(){const t=f(),e=l.previous,n=l.currentConstruct,r=l.events.length,a=Array.from(s);return{restore:function(){i=t,l.previous=e,l.currentConstruct=n,l.events.length=r,s=a,m()},from:r}}(),h=t,t.partial||(l.currentConstruct=t),t.name&&l.parser.constructs.disable.null.includes(t.name)?w():t.tokenize.call(e?Object.assign(Object.create(l),e):l,c,y,w)(n)}}function y(e){return t(h,d),r}function w(t){return d.restore(),++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const uL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hL(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return lL(n.slice(e?2:1),e?16:10)}return pM(n)||t}function fL(t){return t&&"object"==typeof t?"position"in t||"type"in t?gL(t.position):"start"in t||"end"in t?gL(t):"line"in t||"column"in t?dL(t):"":""}function dL(t){return pL(t&&t.line)+":"+pL(t&&t.column)}function gL(t){return dL(t&&t.start)+"-"+dL(t&&t.end)}function pL(t){return t&&"number"==typeof t?t:1}const bL={}.hasOwnProperty,mL=function(t,e,n){return"string"!=typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(v),autolinkProtocol:f,autolinkEmail:f,atxHeading:o(m),blockQuote:o((function(){return{type:"blockquote",children:[]}})),characterEscape:f,characterReference:f,codeFenced:o(b),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(b,s),codeText:o((function(){return{type:"inlineCode",value:""}}),s),codeTextData:f,data:f,codeFlowValue:f,definition:o((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:o(y),hardBreakTrailing:o(y),htmlFlow:o(w,s),htmlFlowData:f,htmlText:o(w,s),htmlTextData:f,image:o((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:o(v),listItem:o((function(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}})),listItemValue:function(t){a("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),r("expectingFirstListItemValue"))},listOrdered:o(x,(function(){r("expectingFirstListItemValue",!0)})),listUnordered:o(x),paragraph:o((function(){return{type:"paragraph",children:[]}})),reference:function(){r("referenceType","collapsed")},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(m),strong:o((function(){return{type:"strong",children:[]}})),thematicBreak:o((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:l(),atxHeadingSequence:function(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}},autolink:l(),autolinkEmail:function(t){d.call(this,t),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)},autolinkProtocol:function(t){d.call(this,t),this.stack[this.stack.length-1].url=this.sliceSerialize(t)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(t){const e=this.sliceSerialize(t),n=a("characterReferenceType");let i;n?(i=lL(e,"characterReferenceMarkerNumeric"===n?10:16),r("characterReferenceType")):i=pM(e);const o=this.stack.pop();o.value+=i,o.position.end=yL(t.end)},codeFenced:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r("flowCodeInside")})),codeFencedFence:function(){a("flowCodeInside")||(this.buffer(),r("flowCodeInside",!0))},codeFencedFenceInfo:function(){const t=this.resume();this.stack[this.stack.length-1].lang=t},codeFencedFenceMeta:function(){const t=this.resume();this.stack[this.stack.length-1].meta=t},codeFlowValue:d,codeIndented:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")})),codeText:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},definitionLabelString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=LM(this.sliceSerialize(t)).toLowerCase()},definitionTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},emphasis:l(),hardBreakEscape:l(g),hardBreakTrailing:l(g),htmlFlow:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlFlowData:d,htmlText:l((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlTextData:d,image:l((function(){const t=this.stack[this.stack.length-1];if(a("inReference")){const e=a("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;r("referenceType")})),label:function(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(r("inReference",!0),"link"===n.type){const e=t.children;n.children=e}else n.alt=e},labelText:function(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(uL,hL)}(e),n.identifier=LM(e).toLowerCase()},lineEnding:function(t){const n=this.stack[this.stack.length-1];if(a("atHardBreak"))return n.children[n.children.length-1].position.end=yL(t.end),void r("atHardBreak");!a("setextHeadingSlurpLineEnding")&&e.canContainEols.includes(n.type)&&(f.call(this,t),d.call(this,t))},link:l((function(){const t=this.stack[this.stack.length-1];if(a("inReference")){const e=a("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;r("referenceType")})),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=LM(this.sliceSerialize(t)).toLowerCase(),r("referenceType","full")},resourceDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},resourceTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},resource:function(){r("inReference")},setextHeading:l((function(){r("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).charCodeAt(0)?1:2},setextHeadingText:function(){r("setextHeadingSlurpLineEnding",!0)},strong:l(),thematicBreak:l()}};wL(e,(t||{}).mdastExtensions||[]);const n={};return function(t){let n={type:"root",children:[]};const o={stack:[n],tokenStack:[],config:e,enter:c,exit:u,buffer:s,resume:h,setData:r,getData:a},l=[];let f=-1;for(;++f0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||xL).call(o,void 0,t[0])}for(n.position={start:yL(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:yL(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f{0!==n&&(a++,r.push([])),t.split(" ").forEach((t=>{t&&r[a].push({content:t,type:e})}))})):("strong"===t.type||"emphasis"===t.type)&&t.children.forEach((e=>{o(e,t.type)}))}return i.forEach((t=>{"paragraph"===t.type&&t.children.forEach((t=>{o(t)}))})),r}function _L(t,e){const n=function(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}(e.content);return TL(t,[],n,e.type)}function TL(t,e,n,i){if(0===n.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[r,...a]=n,o=[...e,r];return t([{content:o.join(""),type:i}])?TL(t,o,a,i):(0===e.length&&r&&(e.push(r),n.shift()),[{content:e.join(""),type:i},{content:n.join(""),type:i}])}function EL(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return SL(t,e)}function SL(t,e,n=[],i=[]){if(0===t.length)return i.length>0&&n.push(i),n.length>0?n:[];let r="";" "===t[0].content&&(r=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},o=[...i];if(""!==r&&o.push({content:r,type:"normal"}),o.push(a),e(o))return SL(t,e,n,o);if(i.length>0)n.push(i),t.unshift(a);else if(a.content){const[i,r]=_L(e,a);n.push([i]),r.content&&t.unshift(r)}return SL(t,e,n)}function CL(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function AL(t,e,n){const i=t.append("text"),r=CL(i,1,e);LL(r,n);const a=r.node().getComputedTextLength();return i.remove(),a}function ML(t,e,n){var i;const r=t.append("text"),a=CL(r,1,e);LL(a,[{content:n,type:"normal"}]);const o=null==(i=a.node())?void 0:i.getBoundingClientRect();return o&&r.remove(),o}function LL(t,e){t.text(""),e.forEach(((e,n)=>{const i=t.append("tspan").attr("font-style","emphasis"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===n?i.text(e.content):i.text(" "+e.content)}))}const IL=(t,e="",{style:n="",isTitle:i=!1,classes:r="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:c=!1}={})=>{if(l.info("createText",e,n,i,r,a,o,c),a){const i=function(t){const{children:e}=mL(t);return e.map((function t(e){return"text"===e.type?e.value.replace(/\n/g,"
"):"strong"===e.type?`${e.children.map(t).join("")}`:"emphasis"===e.type?`${e.children.map(t).join("")}`:"paragraph"===e.type?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`})).join("")}(e);return function(t,e,n,i,r=!1){const a=t.append("foreignObject"),o=a.append("xhtml:div"),s=e.label,c=e.isNode?"nodeLabel":"edgeLabel";o.html(`\n "+s+""),function(t,e){e&&t.attr("style",e)}(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("max-width",n+"px"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&o.attr("class","labelBkg");let l=o.node().getBoundingClientRect();return l.width===n&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",n+"px"),l=o.node().getBoundingClientRect()),a.style("width",l.width),a.style("height",l.height),a.node()}(t,{isNode:o,label:gf(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:n.replace("fill:","color:")},s,r,c)}return function(t,e,n,i=!1){const r=e.append("g"),a=r.insert("rect").attr("class","background"),o=r.append("text").attr("y","-10.1");let s=0;for(const e of n){const n=e=>AL(r,1.1,e)<=t,i=n(e)?[e]:EL(e,n);for(const t of i)LL(CL(o,s,1.1),t),s++}if(i){const t=o.node().getBBox(),e=2;return a.attr("x",-e).attr("y",-e).attr("width",t.width+2*e).attr("height",t.height+2*e),r.node()}return o.node()}(s,t,kL(e),c)},OL=async(t,e,n,i)=>{let r;const a=e.useHtmlLabels||Sc(sg().flowchart.htmlLabels);r=n||"node default";const o=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=o.insert("g").attr("class","label").attr("style",e.labelStyle);let c;c=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const l=s.node();let u;u="markdown"===e.labelType?IL(s,_c(gf(c),sg()),{useHtmlLabels:a,width:e.width||sg().flowchart.wrappingWidth,classes:"markdown-node-label"}):l.appendChild(DA(_c(gf(c),sg()),e.labelStyle,!1,i));let h=u.getBBox();const f=e.padding/2;if(Sc(sg().flowchart.htmlLabels)){const t=u.children[0],e=ee(u),n=t.getElementsByTagName("img");if(n){const t=""===c.replace(/]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=sg().fontSize?sg().fontSize:window.getComputedStyle(document.body).fontSize,n=5,i=parseInt(t,10)*n+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";n(e)}setTimeout((()=>{e.complete&&i()})),e.addEventListener("error",i),e.addEventListener("load",i)})))))}h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return a?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:h,halfPadding:f,label:s}},NL=(t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height};function DL(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}let PL={},BL={},RL={};const FL=(t,e)=>(l.trace("In isDescendant",e," ",t," = ",BL[e].includes(t)),!!BL[e].includes(t)),$L=(t,e,n,i)=>{l.warn("Copying children of ",t,"root",i,"data",e.node(t),i);const r=e.children(t)||[];t!==i&&r.push(t),l.warn("Copying (nodes) clusterId",t,"nodes",r),r.forEach((r=>{if(e.children(r).length>0)$L(r,e,n,i);else{const a=e.node(r);l.info("cp ",r," to ",i," with parent ",t),n.setNode(r,a),i!==e.parent(r)&&(l.warn("Setting parent",r,e.parent(r)),n.setParent(r,e.parent(r))),t!==i&&r!==t?(l.debug("Setting parent",r,t),n.setParent(r,t)):(l.info("In copy ",t,"root",i,"data",e.node(t),i),l.debug("Not Setting parent for node=",r,"cluster!==rootId",t!==i,"node!==clusterId",r!==t));const o=e.edges(r);l.debug("Copying Edges",o),o.forEach((r=>{l.info("Edge",r);const a=e.edge(r.v,r.w,r.name);l.info("Edge data",a,i);try{((t,e)=>(l.info("Descendants of ",e," is ",BL[e]),l.info("Edge is ",t),t.v!==e&&t.w!==e&&(BL[e]?BL[e].includes(t.v)||FL(t.v,e)||FL(t.w,e)||BL[e].includes(t.w):(l.debug("Tilt, ",e,",not in descendants"),!1))))(r,i)?(l.info("Copying as ",r.v,r.w,a,r.name),n.setEdge(r.v,r.w,a,r.name),l.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):l.info("Skipping copy of edge ",r.v,"--\x3e",r.w," rootId: ",i," clusterId:",t)}catch(t){l.error(t)}}))}l.debug("Removing node",r),e.removeNode(r)}))},jL=(t,e)=>{const n=e.children(t);let i=[...n];for(const r of n)RL[r]=t,i=[...i,...jL(r,e)];return i},zL=(t,e)=>{l.trace("Searching",t);const n=e.children(t);if(l.trace("Searching children of id ",t,n),n.length<1)return l.trace("This is a valid node",t),t;for(const i of n){const n=zL(i,e);if(n)return l.trace("Found replacement for",t," => ",n),n}},qL=t=>PL[t]&&PL[t].externalConnections&&PL[t]?PL[t].id:t,HL=(t,e)=>{if(l.warn("extractor - ",e,MA(t),t.children("D")),e>10)return void l.error("Bailing out");let n=t.nodes(),i=!1;for(const e of n){const n=t.children(e);i=i||n.length>0}if(i){l.debug("Nodes = ",n,e);for(const i of n)if(l.debug("Extracting node",i,PL,PL[i]&&!PL[i].externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),PL[i])if(!PL[i].externalConnections&&t.children(i)&&t.children(i).length>0){l.warn("Cluster without external connections, without a parent and with children",i,e);let n="TB"===t.graph().rankdir?"LR":"TB";PL[i]&&PL[i].clusterData&&PL[i].clusterData.dir&&(n=PL[i].clusterData.dir,l.warn("Fixing dir",PL[i].clusterData.dir,n));const r=new dC({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));l.warn("Old graph before copy",MA(t)),$L(i,t,r,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:PL[i].clusterData,labelText:PL[i].labelText,graph:r}),l.warn("New graph after copy node: (",i,")",MA(r)),l.debug("Old graph after copy",MA(t))}else l.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!PL[i].externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),l.debug(PL);else l.debug("Not a cluster",i,e);n=t.nodes(),l.warn("New list of nodes",n);for(const i of n){const n=t.node(i);l.warn(" Now next level",i,n),n.clusterNode&&HL(n.graph,e+1)}}else l.debug("Done, no node has children",t.nodes())},UL=(t,e)=>{if(0===e.length)return[];let n=Object.assign(e);return e.forEach((e=>{const i=t.children(e),r=UL(t,i);n=[...n,...r]})),n};function GL(t,e,n,i){var r=t.x,a=t.y,o=r-i.x,s=a-i.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);i.x0}const VL=(t,e)=>{var n,i,r=t.x,a=t.y,o=e.x-r,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=0===s?0:l*o/s,i=l):(o<0&&(c=-c),n=c,i=0===o?0:c*s/o),{x:r+n,y:a+i}},WL=function(t,e,n){return GL(t,e,e,n)},XL=function(t,e,n){var i=t.x,r=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=i-t.width/2-o,l=r-t.height/2-s,u=0;u1&&a.sort((function(t,e){var i=t.x-n.x,r=t.y-n.y,a=Math.sqrt(i*i+r*r),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return at?" "+t:"",JL=(t,e)=>`${e||"node default"}${ZL(t.classes)} ${ZL(t.class)}`,tI=async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding+(i.height+e.padding),a=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];l.info("Question main (Circle)");const o=DL(n,r,r,a);return o.attr("style",e.style),NL(e,o),e.intersect=function(t){return l.warn("Intersect called"),XL(e,a,t)},n};function eI(t,e,n,i){const r=[],a=t=>{r.push(t,0)},o=t=>{r.push(0,t)};e.includes("t")?(l.debug("add top border"),a(n)):o(n),e.includes("r")?(l.debug("add right border"),a(i)):o(i),e.includes("b")?(l.debug("add bottom border"),a(n)):o(n),e.includes("l")?(l.debug("add left border"),a(i)):o(i),t.attr("stroke-dasharray",r.join(" "))}const nI=(t,e,n)=>{const i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let r=70,a=10;"LR"===n&&(r=10,a=70);const o=i.append("rect").attr("x",-1*r/2).attr("y",-1*a/2).attr("width",r).attr("height",a).attr("class","fork-join");return NL(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return QL(e,t)},i},iI={rhombus:tI,composite:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await OL(t,e,"node "+e.classes,!0),a=n.insert("rect",":first-child"),o=e.positioned?e.width:i.width+e.padding,s=e.positioned?e.height:i.height+e.padding,c=e.positioned?-o/2:-i.width/2-r,u=e.positioned?-s/2:-i.height/2-r;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",u).attr("width",o).attr("height",s),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(eI(a,e.props.borders,o,s),t.delete("borders")),t.forEach((t=>{l.warn(`Unknown node property ${t}`)}))}return NL(e,a),e.intersect=function(t){return QL(e,t)},n},question:tI,rect:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await OL(t,e,"node "+e.classes+" "+e.class,!0),a=n.insert("rect",":first-child"),o=e.positioned?e.width:i.width+e.padding,s=e.positioned?e.height:i.height+e.padding,c=e.positioned?-o/2:-i.width/2-r,u=e.positioned?-s/2:-i.height/2-r;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",u).attr("width",o).attr("height",s),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(eI(a,e.props.borders,o,s),t.delete("borders")),t.forEach((t=>{l.warn(`Unknown node property ${t}`)}))}return NL(e,a),e.intersect=function(t){return QL(e,t)},n},labelRect:async(t,e)=>{const{shapeSvg:n}=await OL(t,e,"label",!0);l.trace("Classes = ",e.class);const i=n.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(eI(i,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{l.warn(`Unknown node property ${t}`)}))}return NL(e,i),e.intersect=function(t){return QL(e,t)},n},rectWithTitle:(t,e)=>{let n;n=e.classes?"node "+e.classes:"node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),r=i.insert("rect",":first-child"),a=i.insert("line"),o=i.insert("g").attr("class","label"),s=e.labelText.flat?e.labelText.flat():e.labelText;let c="";c="object"==typeof s?s[0]:s,l.info("Label text abc79",c,s,"object"==typeof s);const u=o.node().appendChild(DA(c,e.labelStyle,!0,!0));let h={width:0,height:0};if(Sc(sg().flowchart.htmlLabels)){const t=u.children[0],e=ee(u);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}l.info("Text 2",s);const f=s.slice(1,s.length);let d=u.getBBox();const g=o.node().appendChild(DA(f.join?f.join("
"):f,e.labelStyle,!0,!0));if(Sc(sg().flowchart.htmlLabels)){const t=g.children[0],e=ee(g);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}const p=e.padding/2;return ee(g).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+p+5)+")"),ee(u).attr("transform","translate( "+(h.width{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return n.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return WL(e,14,t)},n},circle:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await OL(t,e,JL(e,void 0),!0),a=n.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),l.info("Circle main"),NL(e,a),e.intersect=function(t){return l.info("Circle intersect",e,i.width/2+r,t),WL(e,i.width/2+r,t)},n},doublecircle:async(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=await OL(t,e,JL(e,void 0),!0),a=n.insert("g",":first-child"),o=a.insert("circle"),s=a.insert("circle");return a.attr("class",e.class),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),l.info("DoubleCircle main"),NL(e,o),e.intersect=function(t){return l.info("DoubleCircle intersect",e,i.width/2+r+5,t),WL(e,i.width/2+r+5,t)},n},stadium:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.height+e.padding,a=i.width+r/4+e.padding,o=n.insert("rect",":first-child").attr("style",e.style).attr("rx",r/2).attr("ry",r/2).attr("x",-a/2).attr("y",-r/2).attr("width",a).attr("height",r);return NL(e,o),e.intersect=function(t){return QL(e,t)},n},hexagon:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.height+e.padding,a=r/4,o=i.width+2*a+e.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-r/2},{x:o-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}],c=DL(n,o,r,s);return c.attr("style",e.style),NL(e,c),e.intersect=function(t){return XL(e,s,t)},n},block_arrow:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,void 0,!0),r=i.height+2*e.padding,a=r/2,o=i.width+2*a+e.padding,s=((t,e,n)=>{const i=(t=>{const e=new Set;for(const n of t)switch(n){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(n)}return e})(t),r=e.height+2*n.padding,a=r/2,o=e.width+2*a+n.padding,s=n.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:a,y:0},{x:o/2,y:2*s},{x:o-a,y:0},{x:o,y:0},{x:o,y:-r/3},{x:o+2*s,y:-r/2},{x:o,y:-2*r/3},{x:o,y:-r},{x:o-a,y:-r},{x:o/2,y:-r-2*s},{x:a,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*s,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:a,y:0},{x:o-a,y:0},{x:o,y:-r/2},{x:o-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:a,y:-r},{x:o-a,y:-r},{x:o,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:o,y:-a},{x:o,y:-r+a},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:o,y:0},{x:0,y:-a},{x:0,y:-r+a},{x:o,y:-r}]:i.has("right")&&i.has("left")?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-r/2},{x:o-a,y:-r},{x:o-a,y:-r+s},{x:a,y:-r+s},{x:a,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-r+s},{x:0,y:-r+s},{x:o/2,y:-r},{x:o,y:-r+s},{x:o-a,y:-r+s},{x:o-a,y:-s},{x:o,y:-s}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:o,y:-a},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:o,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:o,y:0},{x:0,y:-a},{x:o,y:-r}]:i.has("left")&&i.has("down")?[{x:o,y:0},{x:0,y:0},{x:o,y:-r}]:i.has("right")?[{x:a,y:-s},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-r/2},{x:o-a,y:-r},{x:o-a,y:-r+s},{x:a,y:-r+s},{x:a,y:-r+s}]:i.has("left")?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:-r+s},{x:a,y:-r+s},{x:a,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:a,y:-s},{x:a,y:-r+s},{x:0,y:-r+s},{x:o/2,y:-r},{x:o,y:-r+s},{x:o-a,y:-r+s},{x:o-a,y:-s}]:i.has("down")?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-r+s},{x:o-a,y:-r+s},{x:o-a,y:-s},{x:o,y:-s}]:[{x:0,y:0}]})(e.directions,i,e),c=DL(n,o,r,s);return c.attr("style",e.style),NL(e,c),e.intersect=function(t){return XL(e,s,t)},n},rect_left_inv_arrow:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-a/2,y:0},{x:r,y:0},{x:r,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return DL(n,r,a,o).attr("style",e.style),e.width=r+a,e.height=a,e.intersect=function(t){return XL(e,o,t)},n},lean_right:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-2*a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:a/6,y:-a}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},lean_left:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:2*a/6,y:0},{x:r+a/6,y:0},{x:r-2*a/6,y:-a},{x:-a/6,y:-a}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},trapezoid:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:-2*a/6,y:0},{x:r+2*a/6,y:0},{x:r-a/6,y:-a},{x:a/6,y:-a}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},inv_trapezoid:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},rect_right_inv_arrow:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:0,y:0},{x:r+a/2,y:0},{x:r,y:-a/2},{x:r+a/2,y:-a},{x:0,y:-a}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},cylinder:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=r/2,o=a/(2.5+r/50),s=i.height+o+e.padding,c="M 0,"+o+" a "+a+","+o+" 0,0,0 "+r+" 0 a "+a+","+o+" 0,0,0 "+-r+" 0 l 0,"+s+" a "+a+","+o+" 0,0,0 "+r+" 0 l 0,"+-s,l=n.attr("label-offset-y",o).insert("path",":first-child").attr("style",e.style).attr("d",c).attr("transform","translate("+-r/2+","+-(s/2+o)+")");return NL(e,l),e.intersect=function(t){const n=QL(e,t),i=n.x-e.x;if(0!=a&&(Math.abs(i)e.height/2-o)){let r=o*o*(1-i*i/(a*a));0!=r&&(r=Math.sqrt(r)),r=o-r,t.y-e.y>0&&(r=-r),n.y+=r}return n},n},start:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),NL(e,i),e.intersect=function(t){return WL(e,7,t)},n},end:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child"),r=n.insert("circle",":first-child");return r.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),NL(e,r),e.intersect=function(t){return WL(e,7,t)},n},note:async(t,e)=>{e.useHtmlLabels||sg().flowchart.htmlLabels||(e.centerLabel=!0);const{shapeSvg:n,bbox:i,halfPadding:r}=await OL(t,e,"node "+e.classes,!0);l.info("Classes = ",e.classes);const a=n.insert("rect",":first-child");return a.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),NL(e,a),e.intersect=function(t){return QL(e,t)},n},subroutine:async(t,e)=>{const{shapeSvg:n,bbox:i}=await OL(t,e,JL(e,void 0),!0),r=i.width+e.padding,a=i.height+e.padding,o=[{x:0,y:0},{x:r,y:0},{x:r,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=DL(n,r,a,o);return s.attr("style",e.style),NL(e,s),e.intersect=function(t){return XL(e,o,t)},n},fork:nI,join:nI,class_box:(t,e)=>{const n=e.padding/2;let i;i=e.classes?"node "+e.classes:"node default";const r=t.insert("g").attr("class",i).attr("id",e.domId||e.id),a=r.insert("rect",":first-child"),o=r.insert("line"),s=r.insert("line");let c=0,l=4;const u=r.insert("g").attr("class","label");let h=0;const f=e.classData.annotations&&e.classData.annotations[0],d=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",g=u.node().appendChild(DA(d,e.labelStyle,!0,!0));let p=g.getBBox();if(Sc(sg().flowchart.htmlLabels)){const t=g.children[0],e=ee(g);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}e.classData.annotations[0]&&(l+=p.height+4,c+=p.width);let b=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&(sg().flowchart.htmlLabels?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const m=u.node().appendChild(DA(b,e.labelStyle,!0,!0));ee(m).attr("class","classTitle");let y=m.getBBox();if(Sc(sg().flowchart.htmlLabels)){const t=m.children[0],e=ee(m);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}l+=y.height+4,y.width>c&&(c=y.width);const w=[];e.classData.members.forEach((t=>{const n=t.getDisplayDetails();let i=n.displayText;sg().flowchart.htmlLabels&&(i=i.replace(//g,">"));const r=u.node().appendChild(DA(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();if(Sc(sg().flowchart.htmlLabels)){const t=r.children[0],e=ee(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,w.push(r)})),l+=8;const v=[];if(e.classData.methods.forEach((t=>{const n=t.getDisplayDetails();let i=n.displayText;sg().flowchart.htmlLabels&&(i=i.replace(//g,">"));const r=u.node().appendChild(DA(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();if(Sc(sg().flowchart.htmlLabels)){const t=r.children[0],e=ee(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,v.push(r)})),l+=8,f){let t=(c-p.width)/2;ee(g).attr("transform","translate( "+(-1*c/2+t)+", "+-1*l/2+")"),h=p.height+4}let x=(c-y.width)/2;return ee(m).attr("transform","translate( "+(-1*c/2+x)+", "+(-1*l/2+h)+")"),h+=y.height+4,o.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-l/2-n+8+h).attr("y2",-l/2-n+8+h),h+=8,w.forEach((t=>{ee(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h+4)+")");const e=null==t?void 0:t.getBBox();h+=((null==e?void 0:e.height)??0)+4})),h+=8,s.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-l/2-n+8+h).attr("y2",-l/2-n+8+h),h+=8,v.forEach((t=>{ee(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h)+")");const e=null==t?void 0:t.getBBox();h+=((null==e?void 0:e.height)??0)+4})),a.attr("style",e.style).attr("class","outer title-state").attr("x",-c/2-n).attr("y",-l/2-n).attr("width",c+e.padding).attr("height",l+e.padding),NL(e,a),e.intersect=function(t){return QL(e,t)},r}};let rI={};const aI=async(t,e,n)=>{let i,r;if(e.link){let a;"sandbox"===sg().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),r=await iI[e.shape](i,e,n)}else r=await iI[e.shape](t,e,n),i=r;return e.tooltip&&r.attr("title",e.tooltip),e.class&&r.attr("class","node default "+e.class),i.attr("data-node","true"),i.attr("data-id",e.id),rI[e.id]=i,e.haveCallback&&rI[e.id].attr("class",rI[e.id].attr("class")+" clickable"),i},oI=t=>{const e=rI[t.id];l.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},sI=({flowchart:t})=>{var e,n;const i=(null==(e=null==t?void 0:t.subGraphTitleMargin)?void 0:e.top)??0,r=(null==(n=null==t?void 0:t.subGraphTitleMargin)?void 0:n.bottom)??0;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i+r}},cI={rect:(t,e)=>{l.info("Creating subgraph rect for ",e.id,e);const n=sg(),i=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),r=i.insert("rect",":first-child"),a=Sc(n.flowchart.htmlLabels),o=i.insert("g").attr("class","cluster-label"),s="markdown"===e.labelType?IL(o,e.labelText,{style:e.labelStyle,useHtmlLabels:a}):o.node().appendChild(DA(e.labelText,e.labelStyle,void 0,!0));let c=s.getBBox();if(Sc(n.flowchart.htmlLabels)){const t=s.children[0],e=ee(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}const u=0*e.padding,h=u/2,f=e.width<=c.width+u?c.width+u:e.width;e.width<=c.width+u?e.diff=(c.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,l.trace("Data ",e,JSON.stringify(e)),r.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-f/2).attr("y",e.y-e.height/2-h).attr("width",f).attr("height",e.height+u);const{subGraphTitleTopMargin:d}=sI(n);a?o.attr("transform",`translate(${e.x-c.width/2}, ${e.y-e.height/2+d})`):o.attr("transform",`translate(${e.x}, ${e.y-e.height/2+d})`);const g=r.node().getBBox();return e.width=g.width,e.height=g.height,e.intersect=function(t){return VL(e,t)},i},roundedWithTitle:(t,e)=>{const n=sg(),i=t.insert("g").attr("class",e.classes).attr("id",e.id),r=i.insert("rect",":first-child"),a=i.insert("g").attr("class","cluster-label"),o=i.append("rect"),s=a.node().appendChild(DA(e.labelText,e.labelStyle,void 0,!0));let c=s.getBBox();if(Sc(n.flowchart.htmlLabels)){const t=s.children[0],e=ee(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}c=s.getBBox();const l=0*e.padding,u=l/2,h=e.width<=c.width+e.padding?c.width+e.padding:e.width;e.width<=c.width+e.padding?e.diff=(c.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,r.attr("class","outer").attr("x",e.x-h/2-u).attr("y",e.y-e.height/2-u).attr("width",h+l).attr("height",e.height+l),o.attr("class","inner").attr("x",e.x-h/2-u).attr("y",e.y-e.height/2-u+c.height-1).attr("width",h+l).attr("height",e.height+l-c.height-3);const{subGraphTitleTopMargin:f}=sI(n);a.attr("transform",`translate(${e.x-c.width/2}, ${e.y-e.height/2-e.padding/3+(Sc(n.flowchart.htmlLabels)?5:3)+f})`);const d=r.node().getBBox();return e.height=d.height,e.intersect=function(t){return VL(e,t)},i},noteGroup:(t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return VL(e,t)},n},divider:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+r).attr("height",e.height+r);const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return VL(e,t)},n}};let lI={};const uI={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function hI(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=fI(t),e=fI(e);const[n,i]=[t.x,t.y],[r,a]=[e.x,e.y],o=r-n,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}const fI=t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,dI=t=>({x:function(e,n,i){let r=0;if(0===n&&Object.hasOwn(uI,t.arrowTypeStart)){const{angle:e,deltaX:n}=hI(i[0],i[1]);r=uI[t.arrowTypeStart]*Math.cos(e)*(n>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(uI,t.arrowTypeEnd)){const{angle:e,deltaX:n}=hI(i[i.length-1],i[i.length-2]);r=uI[t.arrowTypeEnd]*Math.cos(e)*(n>=0?1:-1)}return fI(e).x+r},y:function(e,n,i){let r=0;if(0===n&&Object.hasOwn(uI,t.arrowTypeStart)){const{angle:e,deltaY:n}=hI(i[0],i[1]);r=uI[t.arrowTypeStart]*Math.abs(Math.sin(e))*(n>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(uI,t.arrowTypeEnd)){const{angle:e,deltaY:n}=hI(i[i.length-1],i[i.length-2]);r=uI[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(n>=0?1:-1)}return fI(e).y+r}}),gI=(t,e,n,i,r)=>{e.arrowTypeStart&&bI(t,"start",e.arrowTypeStart,n,i,r),e.arrowTypeEnd&&bI(t,"end",e.arrowTypeEnd,n,i,r)},pI={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},bI=(t,e,n,i,r,a)=>{const o=pI[n];if(!o)return void l.warn(`Unknown arrow type: ${n}`);const s="start"===e?"Start":"End";t.attr(`marker-${e}`,`url(${i}#${r}_${a}-${o}${s})`)};let mI={},yI={};const wI=(t,e)=>{const n=Sc(sg().flowchart.htmlLabels),i="markdown"===e.labelType?IL(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:!0}):DA(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),a=r.insert("g").attr("class","label");a.node().appendChild(i);let o,s=i.getBBox();if(n){const t=i.children[0],e=ee(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}if(a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),mI[e.id]=r,e.width=s.width,e.height=s.height,e.startLabelLeft){const n=DA(e.startLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),yI[e.id]||(yI[e.id]={}),yI[e.id].startLeft=i,vI(o,e.startLabelLeft)}if(e.startLabelRight){const n=DA(e.startLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=i.node().appendChild(n),r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),yI[e.id]||(yI[e.id]={}),yI[e.id].startRight=i,vI(o,e.startLabelRight)}if(e.endLabelLeft){const n=DA(e.endLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),yI[e.id]||(yI[e.id]={}),yI[e.id].endLeft=i,vI(o,e.endLabelLeft)}if(e.endLabelRight){const n=DA(e.endLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),yI[e.id]||(yI[e.id]={}),yI[e.id].endRight=i,vI(o,e.endLabelRight)}return i};function vI(t,e){sg().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}const xI=(t,e)=>{l.debug("Moving label abc88 ",t.id,t.label,mI[t.id],e);let n=e.updatedPath?e.updatedPath:e.originalPath;const i=sg(),{subGraphTitleTotalMargin:r}=sI(i);if(t.label){const i=mI[t.id];let a=t.x,o=t.y;if(n){const i=df.calcLabelPosition(n);l.debug("Moving label "+t.label+" from (",a,",",o,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(a=i.x,o=i.y)}i.attr("transform",`translate(${a}, ${o+r/2})`)}if(t.startLabelLeft){const e=yI[t.id].startLeft;let i=t.x,r=t.y;if(n){const e=df.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);i=e.x,r=e.y}e.attr("transform",`translate(${i}, ${r})`)}if(t.startLabelRight){const e=yI[t.id].startRight;let i=t.x,r=t.y;if(n){const e=df.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);i=e.x,r=e.y}e.attr("transform",`translate(${i}, ${r})`)}if(t.endLabelLeft){const e=yI[t.id].endLeft;let i=t.x,r=t.y;if(n){const e=df.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);i=e.x,r=e.y}e.attr("transform",`translate(${i}, ${r})`)}if(t.endLabelRight){const e=yI[t.id].endRight;let i=t.x,r=t.y;if(n){const e=df.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);i=e.x,r=e.y}e.attr("transform",`translate(${i}, ${r})`)}},kI=(t,e)=>{l.debug("abc88 cutPathAtIntersect",t,e);let n=[],i=t[0],r=!1;return t.forEach((t=>{if(((t,e)=>{const n=t.x,i=t.y,r=Math.abs(e.x-n),a=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return r>=o||a>=s})(e,t)||r)i=t,r||n.push(t);else{const a=((t,e,n)=>{l.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,r=t.y,a=Math.abs(i-n.x),o=t.width/2;let s=n.xMath.abs(i-e.x)*c){let t=n.y{o=o||t.x===a.x&&t.y===a.y})),n.some((t=>t.x===a.x&&t.y===a.y))||n.push(a),r=!0}})),n},_I=function(t,e,n,i,r,a,o){let s=n.points;l.debug("abc88 InsertEdge: edge=",n,"e=",e);let c=!1;const u=a.node(e.v);var h=a.node(e.w);null!=h&&h.intersect&&null!=u&&u.intersect&&(s=s.slice(1,n.points.length-1),s.unshift(u.intersect(s[0])),s.push(h.intersect(s[s.length-1]))),n.toCluster&&(l.debug("to cluster abc88",i[n.toCluster]),s=kI(n.points,i[n.toCluster].node),c=!0),n.fromCluster&&(l.debug("from cluster abc88",i[n.fromCluster]),s=kI(s.reverse(),i[n.fromCluster].node).reverse(),c=!0);const f=s.filter((t=>!Number.isNaN(t.y)));let d=Ko;n.curve&&("graph"===r||"flowchart"===r)&&(d=n.curve);const{x:g,y:p}=dI(n),b=$o().x(g).y(p).curve(d);let m;switch(n.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(n.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}const y=t.append("path").attr("d",b(f)).attr("id",n.id).attr("class"," "+m+(n.classes?" "+n.classes:"")).attr("style",n.style);let w="";(sg().flowchart.arrowMarkerAbsolute||sg().state.arrowMarkerAbsolute)&&(w=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,w=w.replace(/\(/g,"\\("),w=w.replace(/\)/g,"\\)")),gI(y,n,w,o,r);let v={};return c&&(v.updatedPath=s),v.originalPath=n.points,v},TI=async(t,e,n,i,r,a)=>{l.info("Graph in recursive render: XXX",MA(e),r);const o=e.graph().rankdir;l.trace("Dir in recursive render - dir:",o);const s=t.insert("g").attr("class","root");e.nodes()?l.info("Recursive render XXX",e.nodes()):l.info("No nodes found for",e),e.edges().length>0&&l.trace("Recursive edges",e.edge(e.edges()[0]));const c=s.insert("g").attr("class","clusters"),u=s.insert("g").attr("class","edgePaths"),h=s.insert("g").attr("class","edgeLabels"),f=s.insert("g").attr("class","nodes");await Promise.all(e.nodes().map((async function(t){const s=e.node(t);if(void 0!==r){const n=JSON.parse(JSON.stringify(r.clusterData));l.info("Setting data for cluster XXX (",t,") ",n,r),e.setNode(r.id,n),e.parent(t)||(l.trace("Setting parent",t,r.id),e.setParent(t,r.id,n))}if(l.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),s&&s.clusterNode){l.info("Cluster identified",t,s.width,e.node(t));const r=await TI(f,s.graph,n,i,e.node(t),a),o=r.elem;NL(s,o),s.diff=r.diff||0,l.info("Node bounds (abc123)",t,s,s.width,s.x,s.y),((t,e)=>{rI[e.id]=t})(o,s),l.warn("Recursive render complete ",o,s)}else e.children(t).length>0?(l.info("Cluster - the non recursive path XXX",t,s.id,s,e),l.info(zL(s.id,e)),PL[s.id]={id:zL(s.id,e),node:s}):(l.info("Node - the non recursive path",t,s.id,s),await aI(f,e.node(t),o))}))),e.edges().forEach((function(t){const n=e.edge(t.v,t.w,t.name);l.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),l.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),l.info("Fix",PL,"ids:",t.v,t.w,"Translating: ",PL[t.v],PL[t.w]),wI(h,n)})),e.edges().forEach((function(t){l.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),l.info("#############################################"),l.info("### Layout ###"),l.info("#############################################"),l.info(e),bA(e),l.info("Graph after layout:",MA(e));let d=0;const{subGraphTitleTotalMargin:g}=sI(a);return(t=>UL(t,t.children()))(e).forEach((function(t){const n=e.node(t);l.info("Position "+t+": "+JSON.stringify(e.node(t))),l.info("Position "+t+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?(n.y+=g,oI(n)):e.children(t).length>0?(n.height+=g,((t,e)=>{l.trace("Inserting cluster");const n=e.shape||"rect";lI[e.id]=cI[n](t,e)})(c,n),PL[n.id].node=n):(n.y+=g/2,oI(n))})),e.edges().forEach((function(t){const r=e.edge(t);l.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r),r),r.points.forEach((t=>t.y+=g/2));const a=_I(u,t,r,PL,n,e,i);xI(r,a)})),e.nodes().forEach((function(t){const n=e.node(t);l.info(t,n.type,n.diff),"group"===n.type&&(d=n.diff)})),{elem:s,diff:d}},EI=async(t,e,n,i,r)=>{NA(t,n,i,r),rI={},mI={},yI={},lI={},BL={},RL={},PL={},l.warn("Graph at first:",JSON.stringify(MA(e))),((t,e)=>{if(t){l.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(l.warn("Cluster identified",e," Replacement id in edges: ",zL(e,t)),BL[e]=jL(e,t),PL[e]={id:zL(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){const n=t.children(e),i=t.edges();n.length>0?(l.debug("Cluster identified",e,BL),i.forEach((t=>{t.v!==e&&t.w!==e&&FL(t.v,e)^FL(t.w,e)&&(l.warn("Edge: ",t," leaves cluster ",e),l.warn("Descendants of XXX ",e,": ",BL[e]),PL[e].externalConnections=!0)}))):l.debug("Not a cluster ",e,BL)}));for(let e of Object.keys(PL)){const n=PL[e].id,i=t.parent(n);i!==e&&PL[i]&&!PL[i].externalConnections&&(PL[e].id=i)}t.edges().forEach((function(e){const n=t.edge(e);l.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),l.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,r=e.w;if(l.warn("Fix XXX",PL,"ids:",e.v,e.w,"Translating: ",PL[e.v]," --- ",PL[e.w]),PL[e.v]&&PL[e.w]&&PL[e.v]===PL[e.w]){l.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),l.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=qL(e.v),r=qL(e.w),t.removeEdge(e.v,e.w,e.name);const a=e.w+"---"+e.v;t.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const o=structuredClone(n),s=structuredClone(n);o.label="",o.arrowTypeEnd="none",s.label="",o.fromCluster=e.v,s.toCluster=e.v,t.setEdge(i,a,o,e.name+"-cyclic-special"),t.setEdge(a,r,s,e.name+"-cyclic-special")}else if(PL[e.v]||PL[e.w]){if(l.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=qL(e.v),r=qL(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v){const r=t.parent(i);PL[r].externalConnections=!0,n.fromCluster=e.v}if(r!==e.w){const i=t.parent(r);PL[i].externalConnections=!0,n.toCluster=e.w}l.warn("Fix Replacing with XXX",i,r,e.name),t.setEdge(i,r,n,e.name)}})),l.warn("Adjusted Graph",MA(t)),HL(t,0),l.trace(PL)}else l.debug("Opting out, no graph ")})(e),l.warn("Graph after:",JSON.stringify(MA(e)));const a=sg();await TI(t,e,i,r,void 0,a)},SI={},CI=async function(t,e,n,i,r,a){const o=i.select(`[id="${n}"]`),s=Object.keys(t);for(const n of s){const i=t[n];let s="default";i.classes.length>0&&(s=i.classes.join(" ")),s+=" flowchart-label";const c=Zh(i.styles);let u,h=void 0!==i.text?i.text:i.id;if(l.info("vertex",i,i.labelType),"markdown"===i.labelType)l.info("vertex",i,i.labelType);else if(Sc(sg().flowchart.htmlLabels))u=CA(o,{label:h}).node(),u.parentNode.removeChild(u);else{const t=r.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",c.labelStyle.replace("color:","fill:"));const e=h.split(Bc.lineBreakRegex);for(const n of e){const e=r.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}u=t}let f=0,d="";switch(i.type){case"round":f=5,d="rect";break;case"square":case"group":default:d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"odd":case"odd_right":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"doublecircle":d="doublecircle"}const g=await Pc(h,sg());e.setNode(i.id,{labelStyle:c.labelStyle,shape:d,labelText:g,labelType:i.labelType,rx:f,ry:f,class:s,style:c.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:a.db.getTooltip(i.id)||"",domId:a.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:sg().flowchart.padding}),l.info("setNode",{labelStyle:c.labelStyle,labelType:i.labelType,shape:d,labelText:g,rx:f,ry:f,class:s,style:c.style,id:i.id,domId:a.db.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:sg().flowchart.padding})}},AI=async function(t,e,n){l.info("abc78 edges = ",t);let i,r,a=0,o={};if(void 0!==t.defaultStyle){const e=Zh(t.defaultStyle);i=e.style,r=e.labelStyle}for(const n of t){a++;const s="L-"+n.start+"-"+n.end;void 0===o[s]?(o[s]=0,l.info("abc78 new entry",s,o[s])):(o[s]++,l.info("abc78 new entry",s,o[s]));let c=s+"-"+o[s];l.info("abc78 new link id to be used is",s,c,o[s]);const u="LS-"+n.start,h="LE-"+n.end,f={style:"",labelStyle:""};switch(f.minlen=n.length||1,"arrow_open"===n.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":f.arrowTypeStart="arrow_cross";case"arrow_cross":f.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":f.arrowTypeStart="arrow_point";case"arrow_point":f.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":f.arrowTypeStart="arrow_circle";case"arrow_circle":f.arrowTypeEnd="arrow_circle"}let d="",g="";switch(n.stroke){case"normal":d="fill:none;",void 0!==i&&(d=i),void 0!==r&&(g=r),f.thickness="normal",f.pattern="solid";break;case"dotted":f.thickness="normal",f.pattern="dotted",f.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f.thickness="thick",f.pattern="solid",f.style="stroke-width: 3.5px;fill:none;";break;case"invisible":f.thickness="invisible",f.pattern="solid",f.style="stroke-width: 0;fill:none;"}if(void 0!==n.style){const t=Zh(n.style);d=t.style,g=t.labelStyle}f.style=f.style+=d,f.labelStyle=f.labelStyle+=g,void 0!==n.interpolate?f.curve=Vh(n.interpolate,Bo):void 0!==t.defaultInterpolate?f.curve=Vh(t.defaultInterpolate,Bo):f.curve=Vh(SI.curve,Bo),void 0===n.text?void 0!==n.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType=n.labelType,f.label=await Pc(n.text.replace(Bc.lineBreakRegex,"\n"),sg()),void 0===n.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=c,f.classes="flowchart-link "+u+" "+h,e.setEdge(n.start,n.end,f,a)}},MI={setConf:function(t){const e=Object.keys(t);for(const n of e)SI[n]=t[n]},addVertices:CI,addEdges:AI,getClasses:function(t,e){return e.db.getClasses()},draw:async function(t,e,n,i){l.info("Drawing flowchart");let r=i.db.getDirection();void 0===r&&(r="TD");const{securityLevel:a,flowchart:o}=sg(),s=o.nodeSpacing||50,c=o.rankSpacing||50;let u;"sandbox"===a&&(u=ee("#i"+e));const h=ee("sandbox"===a?u.nodes()[0].contentDocument.body:"body"),f="sandbox"===a?u.nodes()[0].contentDocument:document,d=new dC({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:s,ranksep:c,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let g;const p=i.db.getSubGraphs();l.info("Subgraphs - ",p);for(let t=p.length-1;t>=0;t--)g=p[t],l.info("Subgraph - ",g),i.db.addVertex(g.id,{text:g.title,type:g.labelType},"group",void 0,g.classes,g.dir);const b=i.db.getVertices(),m=i.db.getEdges();l.info("Edges",m);let y=0;for(y=p.length-1;y>=0;y--){g=p[y],ne("cluster").append("text");for(let t=0;t`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((t,e)=>{const n=Jc,i=n(t,"r"),r=n(t,"g"),a=n(t,"b");return Zc(i,r,a,.5)})(t.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`,II=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Kk,db:z_,renderer:MI,styles:LI,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,function(t){const e=Object.keys(t);for(const n of e)AA[n]=t[n]}(t.flowchart),z_.clear(),z_.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),OI=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Kk,db:z_,renderer:MI,styles:LI,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,cg({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),MI.setConf(t.flowchart),z_.clear(),z_.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var NI=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,8,10,20,22,24,26,27,28],n=[1,10],i=[1,11],r=[1,12],a=[1,13],o=[1,14],s=[1,15],c=[1,21],l=[1,22],u=[1,23],h=[1,24],f=[1,25],d=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],g=[1,34],p=[27,28,46,47],b=[41,42,43,44,45],m=[17,34],y=[1,54],w=[1,53],v=[17,34,36,38],x={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:case 19:case 43:case 27:case 28:case 31:this.$=a[s];break;case 8:i.addEntity(a[s-4]),i.addEntity(a[s-2]),i.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:i.addEntity(a[s-3]),i.addAttributes(a[s-3],a[s-1]);break;case 10:i.addEntity(a[s-2]);break;case 11:i.addEntity(a[s]);break;case 12:i.addEntity(a[s-6],a[s-4]),i.addAttributes(a[s-6],a[s-1]);break;case 13:i.addEntity(a[s-5],a[s-3]);break;case 14:i.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 20:case 41:case 42:case 32:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=i.Cardinality.ZERO_OR_ONE;break;case 35:this.$=i.Cardinality.ZERO_OR_MORE;break;case 36:this.$=i.Cardinality.ONE_OR_MORE;break;case 37:this.$=i.Cardinality.ONLY_ONE;break;case 38:this.$=i.Cardinality.MD_PARENT;break;case 39:this.$=i.Identification.NON_IDENTIFYING;break;case 40:this.$=i.Identification.IDENTIFYING}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:n,22:i,24:r,26:a,27:o,28:s},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:n,22:i,24:r,26:a,27:o,28:s},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:c,42:l,43:u,44:h,45:f}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(d,[2,19]),t(d,[2,20]),t(e,[2,4]),{11:29,27:o,28:s},{16:30,17:[1,31],29:32,30:33,34:g},{11:35,27:o,28:s},{40:36,46:[1,37],47:[1,38]},t(p,[2,34]),t(p,[2,35]),t(p,[2,36]),t(p,[2,37]),t(p,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:g},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:c,42:l,43:u,44:h,45:f},t(b,[2,39]),t(b,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(m,[2,23],{32:50,33:51,35:52,37:y,38:w}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(m,[2,24],{33:56,36:[1,57],38:w}),t(m,[2,25]),t(v,[2,29]),t(m,[2,32]),t(v,[2,31]),{16:58,17:[1,59],29:32,30:33,34:g},t(m,[2,26]),{35:60,37:y},{17:[1,61]},t(e,[2,13]),t(v,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;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 10;case 8:case 15:case 20:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 16:return 37;case 17:case 18:return 34;case 19:return 38;case 21:return this.popState(),17;case 22:case 54:return e.yytext[0];case 23:return 18;case 24:return 19;case 25:case 29:case 30:case 43:return 41;case 26:case 27:case 28:case 36:case 38:case 45:return 43;case 31:case 32:case 33:case 34:case 35:case 37:case 44:return 42;case 39:case 40:case 41:case 42:return 44;case 46:return 45;case 47:case 50:case 51:case 52:return 46;case 48:case 49:return 47;case 53:return 27;case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};function _(){this.yy={}}return x.lexer=k,_.prototype=x,x.Parser=_,new _}();NI.parser=NI;const DI=NI;let PI={},BI=[];const RI=function(t,e=void 0){return void 0===PI[t]?(PI[t]={attributes:[],alias:e},l.info("Added new entity :",t)):PI[t]&&!PI[t].alias&&e&&(PI[t].alias=e,l.info(`Add alias '${e}' to entity '${t}'`)),PI[t]},FI={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"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},getConfig:()=>sg().er,addEntity:RI,addAttributes:function(t,e){let n,i=RI(t);for(n=e.length-1;n>=0;n--)i.attributes.push(e[n]),l.debug("Added attribute ",e[n].attributeName)},getEntities:()=>PI,addRelationship:function(t,e,n,i){let r={entityA:t,roleA:e,entityB:n,relSpec:i};BI.push(r),l.debug("Added new relationship :",r)},getRelationships:()=>BI,clear:function(){PI={},BI=[],Qd()},setAccTitle:Zd,getAccTitle:Jd,setAccDescription:tg,getAccDescription:eg,setDiagramTitle:ng,getDiagramTitle:ig},$I={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},jI=$I,zI=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,qI=[];for(let t=0;t<256;++t)qI.push((t+256).toString(16).slice(1));function HI(t,e,n,i){switch(t){case 0:return e&n^~e&i;case 1:case 3:return e^n^i;case 2:return e&n^e&i^n&i}}function UI(t,e){return t<>>32-e}const GI=function(t,e,n){function i(t,e,n,i){var r;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}(e)),16!==(null===(r=e)||void 0===r?void 0:r.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+t.length);if(a.set(e),a.set(t,e.length),a=function(t){const e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let n=0;n>>0;l=c,c=s,s=UI(o,30)>>>0,o=r,r=a}n[0]=n[0]+r>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}(a),a[6]=15&a[6]|80,a[8]=63&a[8]|128,n){i=i||0;for(let t=0;t<16;++t)n[i+t]=a[t];return n}return function(t,e=0){return qI[t[e+0]]+qI[t[e+1]]+qI[t[e+2]]+qI[t[e+3]]+"-"+qI[t[e+4]]+qI[t[e+5]]+"-"+qI[t[e+6]]+qI[t[e+7]]+"-"+qI[t[e+8]]+qI[t[e+9]]+"-"+qI[t[e+10]]+qI[t[e+11]]+qI[t[e+12]]+qI[t[e+13]]+qI[t[e+14]]+qI[t[e+15]]}(a)}try{i.name="v5"}catch{}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}(),KI=/[^\dA-Za-z](\W)*/g;let YI={},VI=new Map;const WI=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let XI=0;const QI="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function ZI(t=""){return t.length>0?`${t}-`:""}const JI=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:DI,db:FI,renderer:{setConf:function(t){const e=Object.keys(t);for(const n of e)YI[n]=t[n]},draw:function(t,e,n,i){YI=sg().er,l.info("Drawing ER diagram");const r=sg().securityLevel;let a;"sandbox"===r&&(a=ee("#i"+e));const o=ee("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let s;(function(t,e){let n;t.append("defs").append("marker").attr("id",$I.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",$I.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",$I.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",$I.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",$I.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",$I.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",$I.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",$I.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=t.append("defs").append("marker").attr("id",$I.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=t.append("defs").append("marker").attr("id",$I.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(o,YI),s=new dC({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:YI.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const c=function(t,e,n){let i;return Object.keys(e).forEach((function(r){const a=function(t="",e=""){const n=t.replace(KI,"");return`${ZI(e)}${ZI(n)}${GI(t,QI)}`}(r,"entity");VI.set(r,a);const o=t.append("g").attr("id",a);i=void 0===i?a:i;const s="text-"+a,c=o.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",sg().fontFamily).style("font-size",YI.fontSize+"px").text(e[r].alias??r),{width:l,height:u}=((t,e,n)=>{const i=YI.entityPadding/3,r=YI.entityPadding/3,a=.85*YI.fontSize,o=e.node().getBBox(),s=[];let c=!1,l=!1,u=0,h=0,f=0,d=0,g=o.height+2*i,p=1;n.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(c=!0),void 0!==t.attributeComment&&(l=!0)})),n.forEach((n=>{const r=`${e.node().id}-attr-${p}`;let o=0;const b=Cc(n.attributeType),m=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",sg().fontFamily).style("font-size",a+"px").text(b),y=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",sg().fontFamily).style("font-size",a+"px").text(n.attributeName),w={};w.tn=m,w.nn=y;const v=m.node().getBBox(),x=y.node().getBBox();if(u=Math.max(u,v.width),h=Math.max(h,x.width),o=Math.max(v.height,x.height),c){const e=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",i=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",sg().fontFamily).style("font-size",a+"px").text(e);w.kn=i;const s=i.node().getBBox();f=Math.max(f,s.width),o=Math.max(o,s.height)}if(l){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",sg().fontFamily).style("font-size",a+"px").text(n.attributeComment||"");w.cn=e;const i=e.node().getBBox();d=Math.max(d,i.width),o=Math.max(o,i.height)}w.height=o,s.push(w),g+=o+2*i,p+=1}));let b=4;c&&(b+=2),l&&(b+=2);const m=u+h+f+d,y={width:Math.max(YI.minEntityWidth,Math.max(o.width+2*YI.entityPadding,m+r*b)),height:n.length>0?g:Math.max(YI.minEntityHeight,o.height+2*YI.entityPadding)};if(n.length>0){const n=Math.max(0,(y.width-m-r*b)/(b/2));e.attr("transform","translate("+y.width/2+","+(i+o.height/2)+")");let a=o.height+2*i,g="attributeBoxOdd";s.forEach((e=>{const o=a+i+e.height/2;e.tn.attr("transform","translate("+r+","+o+")");const s=t.insert("rect","#"+e.tn.node().id).classed(`er ${g}`,!0).attr("x",0).attr("y",a).attr("width",u+2*r+n).attr("height",e.height+2*i),p=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));e.nn.attr("transform","translate("+(p+r)+","+o+")");const b=t.insert("rect","#"+e.nn.node().id).classed(`er ${g}`,!0).attr("x",p).attr("y",a).attr("width",h+2*r+n).attr("height",e.height+2*i);let m=parseFloat(b.attr("x"))+parseFloat(b.attr("width"));if(c){e.kn.attr("transform","translate("+(m+r)+","+o+")");const s=t.insert("rect","#"+e.kn.node().id).classed(`er ${g}`,!0).attr("x",m).attr("y",a).attr("width",f+2*r+n).attr("height",e.height+2*i);m=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}l&&(e.cn.attr("transform","translate("+(m+r)+","+o+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${g}`,"true").attr("x",m).attr("y",a).attr("width",d+2*r+n).attr("height",e.height+2*i)),a+=e.height+2*i,g="attributeBoxOdd"===g?"attributeBoxEven":"attributeBoxOdd"}))}else y.height=Math.max(YI.minEntityHeight,g),e.attr("transform","translate("+y.width/2+","+y.height/2+")");return y})(o,c,e[r].attributes),h=o.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",l).attr("height",u).node().getBBox();n.setNode(a,{width:h.width,height:h.height,shape:"rect",id:a})})),i}(o,i.db.getEntities(),s),u=function(t,e){return t.forEach((function(t){e.setEdge(VI.get(t.entityA),VI.get(t.entityB),{relationship:t},WI(t))})),t}(i.db.getRelationships(),s);bA(s),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))}(o,s),u.forEach((function(t){!function(t,e,n,i,r){XI++;const a=n.edge(VI.get(e.entityA),VI.get(e.entityB),WI(e)),o=$o().x((function(t){return t.x})).y((function(t){return t.y})).curve(Ko),s=t.insert("path","#"+i).classed("er relationshipLine",!0).attr("d",o(a.points)).style("stroke",YI.stroke).style("fill","none");e.relSpec.relType===r.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");let c="";switch(YI.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),e.relSpec.cardA){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+jI.ZERO_OR_ONE_END+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+jI.ZERO_OR_MORE_END+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+jI.ONE_OR_MORE_END+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+jI.ONLY_ONE_END+")");break;case r.db.Cardinality.MD_PARENT:s.attr("marker-end","url("+c+"#"+jI.MD_PARENT_END+")")}switch(e.relSpec.cardB){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+jI.ZERO_OR_ONE_START+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+jI.ZERO_OR_MORE_START+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+jI.ONE_OR_MORE_START+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+jI.ONLY_ONE_START+")");break;case r.db.Cardinality.MD_PARENT:s.attr("marker-start","url("+c+"#"+jI.MD_PARENT_START+")")}const l=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*l),h="rel"+XI,f=t.append("text").classed("er relationshipLabel",!0).attr("id",h).attr("x",u.x).attr("y",u.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",sg().fontFamily).style("font-size",YI.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+h).classed("er relationshipLabelBox",!0).attr("x",u.x-f.width/2).attr("y",u.y-f.height/2).attr("width",f.width).attr("height",f.height)}(o,t,s,c,i)}));const h=YI.diagramPadding;df.insertTitle(o,"entityTitleText",YI.titleTopMargin,i.db.getDiagramTitle());const f=o.node().getBBox(),d=f.width+2*h,g=f.height+2*h;Ud(o,g,d,YI.useMaxWidth),o.attr("viewBox",`${f.x-h} ${f.y-h} ${d} ${g}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`}},Symbol.toStringTag,{value:"Module"}));var tO=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,6],i=[1,4],r=[1,5],a=[2,5],o=[1,12],s=[5,7,13,19,21,23,24,26,28,31,37,40,47],c=[7,13,19,21,23,24,26,28,31,37,40],l=[7,12,13,19,21,23,24,26,28,31,37,40],u=[7,13,47],h=[1,42],f=[1,41],d=[7,13,29,32,35,38,47],g=[1,55],p=[1,56],b=[1,57],m=[7,13,32,35,42,47],y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 2:return a[s];case 3:return a[s-1];case 4:return i.setDirection(a[s-3]),a[s-1];case 6:i.setOptions(a[s-1]),this.$=a[s];break;case 7:a[s-1]+=a[s],this.$=a[s-1];break;case 9:this.$=[];break;case 10:a[s-1].push(a[s]),this.$=a[s-1];break;case 11:this.$=a[s-1];break;case 16:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 19:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:i.checkout(a[s]);break;case 22:i.branch(a[s]);break;case 23:i.branch(a[s-2],a[s]);break;case 24:i.cherryPick(a[s],"",void 0);break;case 25:i.cherryPick(a[s-2],"",void 0,a[s]);break;case 26:i.cherryPick(a[s-2],"",a[s]);break;case 27:i.cherryPick(a[s-4],"",a[s],a[s-2]);break;case 28:i.cherryPick(a[s-4],"",a[s-2],a[s]);break;case 29:i.cherryPick(a[s],"",a[s-2]);break;case 30:i.cherryPick(a[s],"","");break;case 31:i.cherryPick(a[s-2],"","");break;case 32:i.cherryPick(a[s-4],"","",a[s-2]);break;case 33:i.cherryPick(a[s-4],"","",a[s]);break;case 34:i.cherryPick(a[s-2],"",a[s-4],a[s]);break;case 35:i.cherryPick(a[s-2],"","",a[s]);break;case 36:i.merge(a[s],"","","");break;case 37:i.merge(a[s-2],a[s],"","");break;case 38:i.merge(a[s-2],"",a[s],"");break;case 39:i.merge(a[s-2],"","",a[s]);break;case 40:i.merge(a[s-4],a[s],"",a[s-2]);break;case 41:i.merge(a[s-4],"",a[s],a[s-2]);break;case 42:i.merge(a[s-4],"",a[s-2],a[s]);break;case 43:i.merge(a[s-4],a[s-2],a[s],"");break;case 44:i.merge(a[s-4],a[s-2],"",a[s]);break;case 45:i.merge(a[s-4],a[s],a[s-2],"");break;case 46:i.merge(a[s-6],a[s-4],a[s-2],a[s]);break;case 47:i.merge(a[s-6],a[s],a[s-4],a[s-2]);break;case 48:i.merge(a[s-6],a[s-4],a[s],a[s-2]);break;case 49:i.merge(a[s-6],a[s-2],a[s-4],a[s]);break;case 50:i.merge(a[s-6],a[s],a[s-2],a[s-4]);break;case 51:i.merge(a[s-6],a[s-2],a[s],a[s-4]);break;case 52:i.commit(a[s]);break;case 53:i.commit("","",i.commitType.NORMAL,a[s]);break;case 54:i.commit("","",a[s],"");break;case 55:i.commit("","",a[s],a[s-2]);break;case 56:i.commit("","",a[s-2],a[s]);break;case 57:i.commit("",a[s],i.commitType.NORMAL,"");break;case 58:i.commit("",a[s-2],i.commitType.NORMAL,a[s]);break;case 59:i.commit("",a[s],i.commitType.NORMAL,a[s-2]);break;case 60:i.commit("",a[s-2],a[s],"");break;case 61:i.commit("",a[s],a[s-2],"");break;case 62:i.commit("",a[s-4],a[s-2],a[s]);break;case 63:i.commit("",a[s-4],a[s],a[s-2]);break;case 64:i.commit("",a[s-2],a[s-4],a[s]);break;case 65:i.commit("",a[s],a[s-4],a[s-2]);break;case 66:i.commit("",a[s],a[s-2],a[s-4]);break;case 67:i.commit("",a[s-2],a[s],a[s-4]);break;case 68:i.commit(a[s],"",i.commitType.NORMAL,"");break;case 69:i.commit(a[s],"",i.commitType.NORMAL,a[s-2]);break;case 70:i.commit(a[s-2],"",i.commitType.NORMAL,a[s]);break;case 71:i.commit(a[s-2],"",a[s],"");break;case 72:i.commit(a[s],"",a[s-2],"");break;case 73:i.commit(a[s],a[s-2],i.commitType.NORMAL,"");break;case 74:i.commit(a[s-2],a[s],i.commitType.NORMAL,"");break;case 75:i.commit(a[s-4],"",a[s-2],a[s]);break;case 76:i.commit(a[s-4],"",a[s],a[s-2]);break;case 77:i.commit(a[s-2],"",a[s-4],a[s]);break;case 78:i.commit(a[s],"",a[s-4],a[s-2]);break;case 79:i.commit(a[s],"",a[s-2],a[s-4]);break;case 80:i.commit(a[s-2],"",a[s],a[s-4]);break;case 81:i.commit(a[s-4],a[s],a[s-2],"");break;case 82:i.commit(a[s-4],a[s-2],a[s],"");break;case 83:i.commit(a[s-2],a[s],a[s-4],"");break;case 84:i.commit(a[s],a[s-2],a[s-4],"");break;case 85:i.commit(a[s],a[s-4],a[s-2],"");break;case 86:i.commit(a[s-2],a[s-4],a[s],"");break;case 87:i.commit(a[s-4],a[s],i.commitType.NORMAL,a[s-2]);break;case 88:i.commit(a[s-4],a[s-2],i.commitType.NORMAL,a[s]);break;case 89:i.commit(a[s-2],a[s],i.commitType.NORMAL,a[s-4]);break;case 90:i.commit(a[s],a[s-2],i.commitType.NORMAL,a[s-4]);break;case 91:i.commit(a[s],a[s-4],i.commitType.NORMAL,a[s-2]);break;case 92:i.commit(a[s-2],a[s-4],i.commitType.NORMAL,a[s]);break;case 93:i.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 94:i.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 95:i.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 96:i.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 97:i.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 98:i.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 99:i.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 100:i.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 101:i.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 102:i.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 103:i.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 104:i.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 105:i.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 106:i.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 107:i.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 108:i.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 109:i.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 110:i.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 111:i.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 112:i.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 113:i.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 114:i.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 115:i.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 116:i.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 117:this.$="";break;case 118:this.$=a[s];break;case 119:this.$=i.commitType.NORMAL;break;case 120:this.$=i.commitType.REVERSE;break;case 121:this.$=i.commitType.HIGHLIGHT}},table:[{3:1,4:2,5:e,7:n,13:i,47:r},{1:[3]},{3:7,4:2,5:e,7:n,13:i,47:r},{6:8,7:a,8:[1,9],9:[1,10],10:11,13:o},t(s,[2,124]),t(s,[2,125]),t(s,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:a,10:11,13:o},{8:[1,15]},t(c,[2,9],{11:16,12:[1,17]}),t(l,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:a,10:11,13:o},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},t(l,[2,7]),{1:[2,3]},{7:[1,36]},t(c,[2,10]),{4:37,7:n,13:i,47:r},t(c,[2,12]),t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),{20:[1,38]},{22:[1,39]},t(u,[2,18]),t(u,[2,19]),t(u,[2,20]),{27:40,33:h,46:f},t(u,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:h,46:f},{32:[1,50],35:[1,51]},{27:52,33:h,46:f},{1:[2,4]},t(c,[2,11]),t(u,[2,16]),t(u,[2,17]),t(u,[2,21]),t(d,[2,122]),t(d,[2,123]),t(u,[2,52]),{33:[1,53]},{39:54,43:g,44:p,45:b},{33:[1,58]},{33:[1,59]},t(u,[2,118]),t(u,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},t(u,[2,22],{29:[1,66]}),t(u,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),t(u,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),t(m,[2,119]),t(m,[2,120]),t(m,[2,121]),t(u,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),t(u,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:g,44:p,45:b},{33:[1,81]},t(u,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:g,44:p,45:b},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:g,44:p,45:b},{33:[1,95]},{33:[1,96]},{39:97,43:g,44:p,45:b},{33:[1,98]},t(u,[2,37],{35:[1,100],38:[1,99]}),t(u,[2,38],{32:[1,102],35:[1,101]}),t(u,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},t(u,[2,23]),t(u,[2,55],{32:[1,110],42:[1,111]}),t(u,[2,59],{38:[1,112],42:[1,113]}),t(u,[2,69],{32:[1,115],38:[1,114]}),t(u,[2,56],{32:[1,116],42:[1,117]}),t(u,[2,61],{35:[1,118],42:[1,119]}),t(u,[2,72],{32:[1,121],35:[1,120]}),t(u,[2,58],{38:[1,122],42:[1,123]}),t(u,[2,60],{35:[1,124],42:[1,125]}),t(u,[2,73],{35:[1,127],38:[1,126]}),t(u,[2,70],{32:[1,129],38:[1,128]}),t(u,[2,71],{32:[1,131],35:[1,130]}),t(u,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:g,44:p,45:b},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:g,44:p,45:b},t(u,[2,25],{35:[1,140]}),t(u,[2,26],{34:[1,141]}),t(u,[2,31],{34:[1,142]}),t(u,[2,29],{34:[1,143]}),t(u,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:g,44:p,45:b},{33:[1,148]},{39:149,43:g,44:p,45:b},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:g,44:p,45:b},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:g,44:p,45:b},{33:[1,162]},{39:163,43:g,44:p,45:b},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:g,44:p,45:b},{33:[1,168]},t(u,[2,43],{35:[1,169]}),t(u,[2,44],{38:[1,170]}),t(u,[2,42],{32:[1,171]}),t(u,[2,45],{35:[1,172]}),t(u,[2,40],{38:[1,173]}),t(u,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},t(u,[2,66],{42:[1,181]}),t(u,[2,79],{32:[1,182]}),t(u,[2,67],{42:[1,183]}),t(u,[2,90],{38:[1,184]}),t(u,[2,80],{32:[1,185]}),t(u,[2,89],{38:[1,186]}),t(u,[2,65],{42:[1,187]}),t(u,[2,78],{32:[1,188]}),t(u,[2,64],{42:[1,189]}),t(u,[2,84],{35:[1,190]}),t(u,[2,77],{32:[1,191]}),t(u,[2,83],{35:[1,192]}),t(u,[2,63],{42:[1,193]}),t(u,[2,91],{38:[1,194]}),t(u,[2,62],{42:[1,195]}),t(u,[2,85],{35:[1,196]}),t(u,[2,86],{35:[1,197]}),t(u,[2,92],{38:[1,198]}),t(u,[2,76],{32:[1,199]}),t(u,[2,87],{38:[1,200]}),t(u,[2,75],{32:[1,201]}),t(u,[2,81],{35:[1,202]}),t(u,[2,82],{35:[1,203]}),t(u,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:g,44:p,45:b},{33:[1,207]},{33:[1,208]},{39:209,43:g,44:p,45:b},{33:[1,210]},t(u,[2,27]),t(u,[2,32]),t(u,[2,28]),t(u,[2,33]),t(u,[2,34]),t(u,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:g,44:p,45:b},{33:[1,215]},{39:216,43:g,44:p,45:b},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:g,44:p,45:b},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:g,44:p,45:b},{33:[1,229]},{39:230,43:g,44:p,45:b},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:g,44:p,45:b},t(u,[2,46]),t(u,[2,48]),t(u,[2,47]),t(u,[2,49]),t(u,[2,51]),t(u,[2,50]),t(u,[2,107]),t(u,[2,108]),t(u,[2,105]),t(u,[2,106]),t(u,[2,110]),t(u,[2,109]),t(u,[2,114]),t(u,[2,113]),t(u,[2,112]),t(u,[2,111]),t(u,[2,116]),t(u,[2,115]),t(u,[2,104]),t(u,[2,103]),t(u,[2,102]),t(u,[2,101]),t(u,[2,99]),t(u,[2,100]),t(u,[2,98]),t(u,[2,97]),t(u,[2,96]),t(u,[2,95]),t(u,[2,93]),t(u,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 30:case 34:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};function v(){this.yy={}}return y.lexer=w,v.prototype=y,y.Parser=v,new v}();tO.parser=tO;const eO=tO;let nO=sg().gitGraph.mainBranchName,iO=sg().gitGraph.mainBranchOrder,rO={},aO=null,oO={};oO[nO]={name:nO,order:iO};let sO={};sO[nO]=aO;let cO=nO,lO="LR",uO=0;function hO(){return ef({length:7})}let fO={};const dO=function(t){if(t=Bc.sanitizeText(t,sg()),void 0===sO[t]){let e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}{cO=t;const e=sO[cO];aO=rO[e]}};function gO(t,e,n){const i=t.indexOf(e);-1===i?t.push(n):t.splice(i,1,n)}function pO(t){const e=t.reduce(((t,e)=>t.seq>e.seq?t:e),t[0]);let n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));const i=[n,e.id,e.seq];for(let t in sO)sO[t]===e.id&&i.push(t);if(l.debug(i.join(" ")),e.parents&&2==e.parents.length){const n=rO[e.parents[0]];gO(t,e,n),t.push(rO[e.parents[1]])}else{if(0==e.parents.length)return;{const n=rO[e.parents];gO(t,e,n)}}t=function(t,e){const n=Object.create(null);return t.reduce(((t,e)=>{const i=(t=>t.id)(e);return n[i]||(n[i]=!0,t.push(e)),t}),[])}(t),pO(t)}const bO=function(){const t=Object.keys(rO).map((function(t){return rO[t]}));return t.forEach((function(t){l.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},mO={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yO={getConfig:()=>sg().gitGraph,setDirection:function(t){lO=t},setOptions:function(t){l.debug("options str",t),t=(t=t&&t.trim())||"{}";try{fO=JSON.parse(t)}catch(t){l.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return fO},commit:function(t,e,n,i){l.debug("Entering commit:",t,e,n,i),e=Bc.sanitizeText(e,sg()),t=Bc.sanitizeText(t,sg()),i=Bc.sanitizeText(i,sg());const r={id:e||uO+"-"+hO(),message:t,seq:uO++,type:n||mO.NORMAL,tag:i||"",parents:null==aO?[]:[aO.id],branch:cO};aO=r,rO[r.id]=r,sO[cO]=r.id,l.debug("in pushCommit "+r.id)},branch:function(t,e){if(t=Bc.sanitizeText(t,sg()),void 0!==sO[t]){let e=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+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}sO[t]=null!=aO?aO.id:null,oO[t]={name:t,order:e?parseInt(e,10):null},dO(t),l.debug("in createBranch")},merge:function(t,e,n,i){t=Bc.sanitizeText(t,sg()),e=Bc.sanitizeText(e,sg());const r=rO[sO[cO]],a=rO[sO[t]];if(cO===t){let e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(void 0===r||!r){let e=new Error('Incorrect usage of "merge". Current branch ('+cO+")has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},e}if(void 0===sO[t]){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},e}if(void 0===a||!a){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},e}if(r===a){let e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(e&&void 0!==rO[e]){let r=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw r.hash={text:"merge "+t+e+n+i,token:"merge "+t+e+n+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+i]},r}const o={id:e||uO+"-"+hO(),message:"merged branch "+t+" into "+cO,seq:uO++,parents:[null==aO?null:aO.id,sO[t]],branch:cO,type:mO.MERGE,customType:n,customId:!!e,tag:i||""};aO=o,rO[o.id]=o,sO[cO]=o.id,l.debug(sO),l.debug("in mergeBranch")},cherryPick:function(t,e,n,i){if(l.debug("Entering cherryPick:",t,e,n),t=Bc.sanitizeText(t,sg()),e=Bc.sanitizeText(e,sg()),n=Bc.sanitizeText(n,sg()),i=Bc.sanitizeText(i,sg()),!t||void 0===rO[t]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let r=rO[t],a=r.branch;if(i&&(!Array.isArray(r.parents)||!r.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(r.type===mO.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||void 0===rO[e]){if(a===cO){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const o=rO[sO[cO]];if(void 0===o||!o){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+cO+")has no commits");throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const s={id:uO+"-"+hO(),message:"cherry-picked "+r+" into "+cO,seq:uO++,parents:[null==aO?null:aO.id,r.id],branch:cO,type:mO.CHERRY_PICK,tag:n??`cherry-pick:${r.id}${r.type===mO.MERGE?`|parent:${i}`:""}`};aO=s,rO[s.id]=s,sO[cO]=s.id,l.debug(sO),l.debug("in cherryPick")}},checkout:dO,prettyPrint:function(){l.debug(rO),pO([bO()[0]])},clear:function(){rO={},aO=null;let t=sg().gitGraph.mainBranchName,e=sg().gitGraph.mainBranchOrder;sO={},sO[t]=null,oO={},oO[t]={name:t,order:e},cO=t,uO=0,Qd()},getBranchesAsObjArray:function(){return Object.values(oO).map(((t,e)=>null!==t.order?t:{...t,order:parseFloat(`0.${e}`,10)})).sort(((t,e)=>t.order-e.order)).map((({name:t})=>({name:t})))},getBranches:function(){return sO},getCommits:function(){return rO},getCommitsArray:bO,getCurrentBranch:function(){return cO},getDirection:function(){return lO},getHead:function(){return aO},setAccTitle:Zd,getAccTitle:Jd,getAccDescription:eg,setAccDescription:tg,setDiagramTitle:ng,getDiagramTitle:ig,commitType:mO};let wO={};let vO={},xO={},kO=[],_O=0,TO="LR";const EO=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof t?t.split(/\\n|\n|/gi):Array.isArray(t)?t:[];for(const t of n){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=t.trim(),e.appendChild(n)}return e},SO=(t,e,n)=>{const i=sg().gitGraph,r=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let o=0;"TB"===TO&&(o=30);const s=Object.keys(e).sort(((t,n)=>e[t].seq-e[n].seq)),c=i.parallelCommits;s.forEach((t=>{const s=e[t];if(c)if(s.parents.length){const t=(t=>{let e="",n=0;return t.forEach((t=>{const i="TB"===TO?xO[t].y:xO[t].x;i>=n&&(e=t,n=i)})),e||void 0})(s.parents);o="TB"===TO?xO[t].y+40:xO[t].x+40}else o=0,"TB"===TO&&(o=30);const l=o+10,u="TB"===TO?l:vO[s.branch].pos,h="TB"===TO?vO[s.branch].pos:l;if(n){let t,e=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(e){case 0:default:t="commit-normal";break;case 1:t="commit-reverse";break;case 2:t="commit-highlight";break;case 3:t="commit-merge";break;case 4:t="commit-cherry-pick"}if(2===e){const e=r.append("rect");e.attr("x",h-10),e.attr("y",u-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${s.id} commit-highlight${vO[s.branch].index%8} ${t}-outer`),r.append("rect").attr("x",h-6).attr("y",u-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${vO[s.branch].index%8} ${t}-inner`)}else if(4===e)r.append("circle").attr("cx",h).attr("cy",u).attr("r",10).attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",h-3).attr("cy",u+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",h+3).attr("cy",u+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",h+3).attr("y1",u+1).attr("x2",h).attr("y2",u-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",h-3).attr("y1",u+1).attr("x2",h).attr("y2",u-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`);else{const n=r.append("circle");if(n.attr("cx",h),n.attr("cy",u),n.attr("r",3===s.type?9:10),n.attr("class",`commit ${s.id} commit${vO[s.branch].index%8}`),3===e){const e=r.append("circle");e.attr("cx",h),e.attr("cy",u),e.attr("r",6),e.attr("class",`commit ${t} ${s.id} commit${vO[s.branch].index%8}`)}1===e&&r.append("path").attr("d",`M ${h-5},${u-5}L${h+5},${u+5}M${h-5},${u+5}L${h+5},${u-5}`).attr("class",`commit ${t} ${s.id} commit${vO[s.branch].index%8}`)}}if(xO[s.id]="TB"===TO?{x:h,y:l}:{x:l,y:u},n){if(4!==s.type&&(s.customId&&3===s.type||3!==s.type)&&i.showCommitLabel){const t=a.append("g"),e=t.insert("rect").attr("class","commit-label-bkg"),n=t.append("text").attr("x",o).attr("y",u+25).attr("class","commit-label").text(s.id);let r=n.node().getBBox();if(e.attr("x",l-r.width/2-2).attr("y",u+13.5).attr("width",r.width+4).attr("height",r.height+4),"TB"===TO&&(e.attr("x",h-(r.width+16+5)).attr("y",u-12),n.attr("x",h-(r.width+16)).attr("y",u+r.height-12)),"TB"!==TO&&n.attr("x",l-r.width/2),i.rotateCommitLabel)if("TB"===TO)n.attr("transform","rotate(-45, "+h+", "+u+")"),e.attr("transform","rotate(-45, "+h+", "+u+")");else{let e=-7.5-(r.width+10)/25*9.5,n=10+r.width/25*8.5;t.attr("transform","translate("+e+", "+n+") rotate(-45, "+o+", "+u+")")}}if(s.tag){const t=a.insert("polygon"),e=a.append("circle"),n=a.append("text").attr("y",u-16).attr("class","tag-label").text(s.tag);let i=n.node().getBBox();n.attr("x",l-i.width/2);const r=i.height/2,c=u-19.2;t.attr("class","tag-label-bkg").attr("points",`\n ${o-i.width/2-2},${c+2}\n ${o-i.width/2-2},${c-2}\n ${l-i.width/2-4},${c-r-2}\n ${l+i.width/2+4},${c-r-2}\n ${l+i.width/2+4},${c+r+2}\n ${l-i.width/2-4},${c+r+2}`),e.attr("cx",o-i.width/2+2).attr("cy",c).attr("r",1.5).attr("class","tag-hole"),"TB"===TO&&(t.attr("class","tag-label-bkg").attr("points",`\n ${h},${o+2}\n ${h},${o-2}\n ${h+10},${o-r-2}\n ${h+10+i.width+4},${o-r-2}\n ${h+10+i.width+4},${o+r+2}\n ${h+10},${o+r+2}`).attr("transform","translate(12,12) rotate(45, "+h+","+o+")"),e.attr("cx",h+2).attr("cy",o).attr("transform","translate(12,12) rotate(45, "+h+","+o+")"),n.attr("x",h+5).attr("y",o+3).attr("transform","translate(14,14) rotate(45, "+h+","+o+")"))}}o+=50,o>_O&&(_O=o)}))},CO=(t,e,n=0)=>{const i=t+Math.abs(t-e)/2;if(n>5)return i;if(kO.every((t=>Math.abs(t-i)>=10)))return kO.push(i),i;const r=Math.abs(t-e);return CO(t,e-r/5,n+1)},AO=(t,e)=>{const n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const i=e[t];i.parents&&i.parents.length>0&&i.parents.forEach((t=>{((t,e,n,i)=>{const r=xO[e.id],a=xO[n.id],o=((t,e,n,i,r)=>{const a=("TB"===TO?n.x(n=>n.seq>t.seq&&n.seqt.branch===a)(n)))})(e,n,r,a,i);let s,c="",l="",u=0,h=0,f=vO[n.branch].index;if(3===n.type&&e.id!==n.parents[0]&&(f=vO[e.branch].index),o){c="A 10 10, 0, 0, 0,",l="A 10 10, 0, 0, 1,",u=10,h=10;const t=r.ya.x&&(c="A 20 20, 0, 0, 0,",l="A 20 20, 0, 0, 1,",u=20,h=20,s=3===n.type&&e.id!==n.parents[0]?`M ${r.x} ${r.y} L ${r.x} ${a.y-u} ${l} ${r.x-h} ${a.y} L ${a.x} ${a.y}`:`M ${r.x} ${r.y} L ${a.x+u} ${r.y} ${c} ${a.x} ${r.y+h} L ${a.x} ${a.y}`),r.x===a.x&&(s=`M ${r.x} ${r.y} L ${a.x} ${a.y}`)):(r.ya.y&&(s=3===n.type&&e.id!==n.parents[0]?`M ${r.x} ${r.y} L ${a.x-u} ${r.y} ${c} ${a.x} ${r.y-h} L ${a.x} ${a.y}`:`M ${r.x} ${r.y} L ${r.x} ${a.y+u} ${l} ${r.x+h} ${a.y} L ${a.x} ${a.y}`),r.y===a.y&&(s=`M ${r.x} ${r.y} L ${a.x} ${a.y}`));t.append("path").attr("d",s).attr("class","arrow arrow"+f%8)})(n,e[t],i,e)}))}))},MO=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:eO,db:yO,renderer:{draw:function(t,e,n,i){vO={},xO={},wO={},_O=0,kO=[],TO="LR";const r=sg(),a=r.gitGraph;l.debug("in gitgraph renderer",t+"\n","id:",e,n),wO=i.db.getCommits();const o=i.db.getBranchesAsObjArray();TO=i.db.getDirection();const s=ee(`[id="${e}"]`);let c=0;o.forEach(((t,e)=>{const n=EO(t.name),i=s.append("g"),r=i.insert("g").attr("class","branchLabel"),o=r.insert("g").attr("class","label branch-label");o.node().appendChild(n);let l=n.getBBox();vO[t.name]={pos:c,index:e},c+=50+(a.rotateCommitLabel?40:0)+("TB"===TO?l.width/2:0),o.remove(),r.remove(),i.remove()})),SO(s,wO,!1),a.showBranches&&((t,e)=>{const n=sg().gitGraph,i=t.append("g");e.forEach(((t,e)=>{const r=e%8,a=vO[t.name].pos,o=i.append("line");o.attr("x1",0),o.attr("y1",a),o.attr("x2",_O),o.attr("y2",a),o.attr("class","branch branch"+r),"TB"===TO&&(o.attr("y1",30),o.attr("x1",a),o.attr("y2",_O),o.attr("x2",a)),kO.push(a);let s=t.name;const c=EO(s),l=i.insert("rect"),u=i.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+r);u.node().appendChild(c);let h=c.getBBox();l.attr("class","branchLabelBkg label"+r).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),u.attr("transform","translate("+(-h.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(a-h.height/2-1)+")"),"TB"===TO&&(l.attr("x",a-h.width/2-10).attr("y",0),u.attr("transform","translate("+(a-h.width/2-5)+", 0)")),"TB"!==TO&&l.attr("transform","translate(-19, "+(a-h.height/2)+")")}))})(s,o),AO(s,wO),SO(s,wO,!0),df.insertTitle(s,"gitTitleText",a.titleTopMargin,i.db.getDiagramTitle()),hg(void 0,s,a.diagramPadding,a.useMaxWidth??r.useMaxWidth)}},styles:t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((e=>`\n .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${e} { fill: ${t["git"+e]}; }\n .arrow${e} { stroke: ${t["git"+e]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`}},Symbol.toStringTag,{value:"Module"}));var LO=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],i=[1,26],r=[1,27],a=[1,28],o=[1,29],s=[1,30],c=[1,31],l=[1,9],u=[1,10],h=[1,11],f=[1,12],d=[1,13],g=[1,14],p=[1,15],b=[1,16],m=[1,18],y=[1,19],w=[1,20],v=[1,21],x=[1,22],k=[1,24],_=[1,32],T={trace:function(){},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,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$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",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"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],[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],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:return a[s-1];case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 16:i.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 17:i.TopAxis(),this.$=a[s].substr(8);break;case 18:i.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 19:i.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 20:i.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 21:i.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 22:i.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 24:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 25:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 28:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 30:i.addTask(a[s-1],a[s]),this.$="task";break;case 31:this.$=a[s-1],i.setClickEvent(a[s-1],a[s],null);break;case 32:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 33:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],null),i.setLink(a[s-2],a[s]);break;case 34:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setLink(a[s-3],a[s]);break;case 35:this.$=a[s-2],i.setClickEvent(a[s-2],a[s],null),i.setLink(a[s-2],a[s-1]);break;case 36:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-1],a[s]),i.setLink(a[s-3],a[s-2]);break;case 37:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 38:case 44:this.$=a[s-1]+" "+a[s];break;case 39:case 40:case 42:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 41:case 43:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s]}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:r,15:a,16:o,17:s,18:c,19:l,20:u,21:h,22:f,23:d,24:g,25:p,26:b,27:m,28:y,30:w,32:v,33:x,34:23,35:k,37:_},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:i,14:r,15:a,16:o,17:s,18:c,19:l,20:u,21:h,22:f,23:d,24:g,25:p,26:b,27:m,28:y,30:w,32:v,33:x,34:23,35:k,37:_},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 40;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 22:return 39;case 23:this.begin("click");break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;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"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},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,/^(?:\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],inclusive:!0}}};function S(){this.yy={}}return T.lexer=E,S.prototype=T,T.Parser=S,new S}();LO.parser=LO;const IO=LO;var OO={exports:{}};!function(t,e){var n;t.exports=(n="day",function(t,e,i){var r=function(t){return t.add(4-t.isoWeekday(),n)},a=e.prototype;a.isoWeekYear=function(){return r(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),n);var e,a,o,s=r(this),c=(e=this.isoWeekYear(),o=4-(a=(this.$u?i.utc:i)().year(e).startOf("year")).isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,n));return s.diff(c,"week")+1},a.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var o=a.startOf;a.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(t,e)}})}(OO);const NO=r(OO.exports);var DO={exports:{}};!function(t,e){t.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t||"Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=a.meridiem;if(i){for(var r=1;r<=24;r+=1)if(t.indexOf(i(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=l("months"),n=(l("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=o(t)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};return function(n,i,r){r.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=i.prototype,c=s.parse;s.parse=function(n){var i=n.date,o=n.utc,s=n.args;this.$u=o;var l=s[1];if("string"==typeof l){var u=!0===s[2],f=!0===s[3],d=u||f,g=s[2];f&&(g=s[2]),a=this.$locale(),!u&&g&&(a=r.Ls[g]),this.$d=function(n,i,r){try{if(["x","X"].indexOf(i)>-1)return new Date(("X"===i?1e3:1)*n);var o=function(n){var i,r;i=n,r=a&&a.formats;for(var o=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var a=i&&i.toUpperCase();return n||r[i]||t[i]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=o.length,c=0;c0?c-1:b.getMonth());var v=u||0,x=f||0,k=d||0,_=g||0;return p?new Date(Date.UTC(y,w,m,v,x,k,_+60*p.offset*1e3)):r?new Date(Date.UTC(y,w,m,v,x,k,_)):new Date(y,w,m,v,x,k,_)}catch{return new Date("")}}(i,l,o),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),d&&i!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,b=1;b<=p;b+=1){s[1]=l[b-1];var m=r.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}b===p&&(this.$d=new Date(""))}else c.call(this,n)}}}()}(DO);const PO=r(DO.exports);var BO={exports:{}};!function(t,e){t.exports=function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var r=this.$utils(),a=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return r.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return r.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return r.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(a)}}}(BO);const RO=r(BO.exports);o.extend(NO),o.extend(PO),o.extend(RO);let FO,$O="",jO="",zO="",qO=[],HO=[],UO={},GO=[],KO=[],YO="",VO="";const WO=["active","done","crit","milestone"];let XO=[],QO=!1,ZO=!1,JO="sunday",tN=0;const eN=function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase()))||n.includes(t.format(e.trim())))},nN=function(t,e,n,i){if(!n.length||t.manualEndTime)return;let r,a;r=t.startTime instanceof Date?o(t.startTime):o(t.startTime,e,!0),r=r.add(1,"d"),a=t.endTime instanceof Date?o(t.endTime):o(t.endTime,e,!0);const[s,c]=iN(r,a,e,n,i);t.endTime=s.toDate(),t.renderEndTime=c},iN=function(t,e,n,i,r){let a=!1,o=null;for(;t<=e;)a||(o=e.toDate()),a=eN(t,n,i,r),a&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,o]},rN=function(t,e,n){n=n.trim();const i=/^after\s+(?[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const e of i.groups.ids.split(" ")){let n=dN(e);void 0!==n&&(!t||n.endTime>t.endTime)&&(t=n)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let r=o(n,e.trim(),!0);if(r.isValid())return r.toDate();{l.debug("Invalid date:"+n),l.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},aN=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},oN=function(t,e,n,i=!1){n=n.trim();const r=/^until\s+(?[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const e of r.groups.ids.split(" ")){let n=dN(e);void 0!==n&&(!t||n.startTimesg().gantt,clear:function(){GO=[],KO=[],YO="",XO=[],sN=0,lN=void 0,uN=void 0,hN=[],$O="",jO="",VO="",FO=void 0,zO="",qO=[],HO=[],QO=!1,ZO=!1,tN=0,UO={},Qd(),JO="sunday"},setDateFormat:function(t){$O=t},getDateFormat:function(){return $O},enableInclusiveEndDates:function(){QO=!0},endDatesAreInclusive:function(){return QO},enableTopAxis:function(){ZO=!0},topAxisEnabled:function(){return ZO},setAxisFormat:function(t){jO=t},getAxisFormat:function(){return jO},setTickInterval:function(t){FO=t},getTickInterval:function(){return FO},setTodayMarker:function(t){zO=t},getTodayMarker:function(){return zO},setAccTitle:Zd,getAccTitle:Jd,setDiagramTitle:ng,getDiagramTitle:ig,setDisplayMode:function(t){VO=t},getDisplayMode:function(){return VO},setAccDescription:tg,getAccDescription:eg,addSection:function(t){YO=t,GO.push(t)},getSections:function(){return GO},getTasks:function(){let t=gN(),e=0;for(;!t&&e<10;)t=gN(),e++;return KO=hN,KO},addTask:function(t,e){const n={section:YO,type:YO,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};yN(i,r,WO);for(let t=0;t{df.runFunc(e,...i)}))}(t,e,n)})),pN(t,"clickable")},setLink:function(t,e){let n=e;"loose"!==sg().securityLevel&&(n=f.sanitizeUrl(e)),t.split(",").forEach((function(t){void 0!==dN(t)&&(bN(t,(()=>{window.open(n,"_self")})),UO[t]=n)})),pN(t,"clickable")},getLinks:function(){return UO},bindFunctions:function(t){XO.forEach((function(e){e(t)}))},parseDuration:aN,isInvalidDate:eN,setWeekday:function(t){JO=t},getWeekday:function(){return JO}};function yN(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const r=new RegExp("^\\s*"+n+"\\s*$");t[0].match(r)&&(e[n]=!0,t.shift(1),i=!0)}))}const wN={monday:vr,tuesday:xr,wednesday:kr,thursday:_r,friday:Tr,saturday:Er,sunday:wr},vN=(t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),r=0;for(const t of i)for(let i=0;i=n[i]){n[i]=t.endTime,t.order=i+e,i>r&&(r=i);break}return r};let xN;const kN=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:IO,db:mN,renderer:{setConf:function(){l.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,i){const r=sg().gantt,a=sg().securityLevel;let s;"sandbox"===a&&(s=ee("#i"+e));const c=ee("sandbox"===a?s.nodes()[0].contentDocument.body:"body"),u="sandbox"===a?s.nodes()[0].contentDocument:document,h=u.getElementById(e);xN=h.parentElement.offsetWidth,void 0===xN&&(xN=1200),void 0!==r.useWidth&&(xN=r.useWidth);const f=i.db.getTasks();let d=[];for(const t of f)d.push(t.type);d=function(t){const e={},n=[];for(let i=0,r=t.length;ie.type===t)).length}h.setAttribute("viewBox","0 0 "+xN+" "+p);const b=c.select(`[id="${e}"]`),m=uo().domain([M(f,(function(t){return t.startTime})),A(f,(function(t){return t.endTime}))]).rangeRound([0,xN-r.leftPadding-r.rightPadding]);f.sort((function(t,e){const n=t.startTime,i=e.startTime;let r=0;return n>i?r=1:nd)&&(d=e);if(!f||!d)return;if(o(d).diff(o(f),"year")>5)return void l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const g=i.db.getDateFormat(),p=[];let y=null,w=o(f);for(;w.valueOf()<=d;)i.db.isInvalidDate(w,g,u,h)?y?y.end=w:y={start:w,end:w}:y&&(p.push(y),y=null),w=w.add(1,"d");b.append("g").selectAll("rect").data(p).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return m(t.start)+n})).attr("y",r.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return m(e)-m(t.start)})).attr("height",s-e-r.gridLineStartPadding).attr("transform-origin",(function(e,i){return(m(e.start)+n+.5*(m(e.end)-m(e.start))).toString()+"px "+(i*t+.5*s).toString()+"px"})).attr("class","exclude-range")}(c,h,f,0,a,t,i.db.getExcludes(),i.db.getIncludes()),function(t,e,n,a){let o=function(t){return R(3,t)}(m).tickSize(-a+e+r.gridLineStartPadding).tickFormat(Hr(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));const s=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||r.tickInterval);if(null!==s){const t=s[1],e=s[2],n=i.db.getWeekday()||r.weekday;switch(e){case"millisecond":o.ticks(ar.every(t));break;case"second":o.ticks(dr.every(t));break;case"minute":o.ticks(gr.every(t));break;case"hour":o.ticks(pr.every(t));break;case"day":o.ticks(br.every(t));break;case"week":o.ticks(wN[n].every(t));break;case"month":o.ticks(Dr.every(t))}}if(b.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||r.topAxis){let n=function(t){return R(1,t)}(m).tickSize(-a+e+r.gridLineStartPadding).tickFormat(Hr(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(null!==s){const t=s[1],e=s[2],a=i.db.getWeekday()||r.weekday;switch(e){case"millisecond":n.ticks(ar.every(t));break;case"second":n.ticks(dr.every(t));break;case"minute":n.ticks(gr.every(t));break;case"hour":n.ticks(pr.every(t));break;case"day":n.ticks(br.every(t));break;case"week":n.ticks(wN[a].every(t));break;case"month":n.ticks(Dr.every(t))}}b.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(f,h,0,a),function(t,n,a,o,s,c,l){const u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));b.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return l-r.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of d.entries())if(t.type===n)return"section section"+e%r.numberSectionStyles;return"section section0"}));const h=b.append("g").selectAll("rect").data(t).enter(),f=i.db.getLinks();if(h.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?m(t.startTime)+o+.5*(m(t.endTime)-m(t.startTime))-.5*s:m(t.startTime)+o})).attr("y",(function(t,e){return t.order*n+a})).attr("width",(function(t){return t.milestone?s:m(t.renderEndTime||t.endTime)-m(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(m(t.startTime)+o+.5*(m(t.endTime)-m(t.startTime))).toString()+"px "+(e*n+a+.5*s).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[e,i]of d.entries())t.type===i&&(n=e%r.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),h.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",r.fontSize).attr("x",(function(t){let e=m(t.startTime),n=m(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(m(t.endTime)-m(t.startTime))-.5*s),t.milestone&&(n=e+s);const i=this.getBBox().width;return i>n-e?n+i+1.5*r.leftPadding>l?e+o-5:n+o+5:(n-e)/2+e+o})).attr("y",(function(t,e){return t.order*n+r.barHeight/2+(r.fontSize/2-2)+a})).attr("text-height",s).attr("class",(function(t){const e=m(t.startTime);let n=m(t.endTime);t.milestone&&(n=e+s);const i=this.getBBox().width;let a="";t.classes.length>0&&(a=t.classes.join(" "));let o=0;for(const[e,n]of d.entries())t.type===n&&(o=e%r.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+o:"activeText"+o),t.done?c=t.crit?c+" doneCritText"+o:c+" doneText"+o:t.crit&&(c=c+" critText"+o),t.milestone&&(c+=" milestoneText"),i>n-e?n+i+1.5*r.leftPadding>l?a+" taskTextOutsideLeft taskTextOutside"+o+" "+c:a+" taskTextOutsideRight taskTextOutside"+o+" "+c+" width-"+i:a+" taskText taskText"+o+" "+c+" width-"+i})),"sandbox"===sg().securityLevel){let t;t=ee("#i"+e);const n=t.nodes()[0].contentDocument;h.filter((function(t){return void 0!==f[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const r=e.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",f[t.id]),a.setAttribute("target","_top"),r.appendChild(a),a.appendChild(e),a.appendChild(i)}))}}(t,c,h,f,s,0,n),function(t,e){let n=0;const i=Object.keys(g).map((t=>[t,g[t]]));b.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(Bc.lineBreakRegex),n=-(e.length-1)/2,i=u.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=u.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,i.appendChild(e)}return i})).attr("x",10).attr("y",(function(r,a){if(!(a>0))return r[1]*t/2+e;for(let o=0;o`\n .mermaid-main-font {\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`}},Symbol.toStringTag,{value:"Module"}));var _N=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,i,r,a,o){switch(a.length,r){case 1:return i;case 4:break;case 6:i.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},i={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function r(){this.yy={}}return n.lexer=i,r.prototype=n,n.Parser=r,new r}();_N.parser=_N;const TN=_N;let EN=false;const SN=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:TN,db:{clear:()=>{EN=false},setInfo:t=>{EN=t},getInfo:()=>EN},renderer:{draw:(t,e,n)=>{l.debug("rendering info diagram\n"+t);const i=bg(e);Ud(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${n}`)}}}},Symbol.toStringTag,{value:"Module"}));var CN=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,4],i=[1,5],r=[1,6],a=[1,10,12,14,16,18,19,20,21,22],o=[2,4],s=[1,5,10,12,14,16,18,19,20,21,22],c=[20,21,22],l=[2,7],u=[1,12],h=[1,13],f=[1,14],d=[1,15],g=[1,16],p=[1,17],b={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 3:i.setShowData(!0);break;case 6:this.$=a[s-1];break;case 8:i.addSection(a[s-1],i.cleanupValue(a[s]));break;case 9:this.$=a[s].trim(),i.setDiagramTitle(this.$);break;case 10:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 11:case 12:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 13:i.addSection(a[s].substr(8)),this.$=a[s].substr(8)}},table:[{3:1,4:2,5:e,20:n,21:i,22:r},{1:[3]},{3:7,4:2,5:e,20:n,21:i,22:r},t(a,o,{6:8,7:[1,9]}),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{1:[2,1]},t(c,l,{8:10,9:11,1:[2,2],10:u,12:h,14:f,16:d,18:g,19:p}),t(a,o,{6:18}),t(a,[2,5]),{4:19,20:n,21:i,22:r},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},t(c,[2,12]),t(c,[2,13]),t(c,l,{8:10,9:11,1:[2,3],10:u,12:h,14:f,16:d,18:g,19:p}),t(a,[2,6]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 20;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/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,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};function y(){this.yy={}}return b.lexer=m,y.prototype=b,b.Parser=y,new y}();CN.parser=CN;const AN=CN,MN={};let LN=MN,IN=false;const ON=structuredClone(bl.pie),NN={getConfig:()=>structuredClone(ON),clear:()=>{LN=structuredClone(MN),IN=false,Qd()},setDiagramTitle:ng,getDiagramTitle:ig,setAccTitle:Zd,getAccTitle:Jd,setAccDescription:tg,getAccDescription:eg,addSection:(t,e)=>{t=_c(t,sg()),void 0===LN[t]&&(LN[t]=e,l.debug(`added new section: ${t}, with value: ${e}`))},getSections:()=>LN,cleanupValue:t=>(":"===t.substring(0,1)&&(t=t.substring(1).trim()),Number(t.trim())),setShowData:t=>{IN=t},getShowData:()=>IN},DN=t=>{const e=Object.entries(t).map((t=>({label:t[0],value:t[1]}))).sort(((t,e)=>e.value-t.value));return function(){var t=zo,e=jo,n=null,i=fo(0),r=fo(To),a=fo(0);function o(o){var s,c,l,u,h,f=(o=Do(o)).length,d=0,g=new Array(f),p=new Array(f),b=+i.apply(this,arguments),m=Math.min(To,Math.max(-To,r.apply(this,arguments)-b)),y=Math.min(Math.abs(m)/f,a.apply(this,arguments)),w=y*(m<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,l=d?(m-f*w)/d:0;s0?h*l:0)+w,p[c]={data:o[c],index:s,value:h,startAngle:b,endAngle:u,padAngle:y};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:fo(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:fo(+t),o):i},o.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:fo(+t),o):r},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:fo(+t),o):a},o}().value((t=>t.value))(e)},PN=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:AN,db:NN,renderer:{draw:(t,e,n,i)=>{l.debug("rendering pie chart\n"+t);const r=i.db,a=sg(),o=ff(r.getConfig(),a.pie),s=bg(e),c=s.append("g"),u=r.getSections();c.attr("transform","translate(225,225)");const{themeVariables:h}=a;let[f]=hf(h.pieOuterStrokeWidth);f??(f=2);const d=o.textPosition,g=Math.min(450,450)/2-40,p=No().innerRadius(0).outerRadius(g),b=No().innerRadius(g*d).outerRadius(g*d);c.append("circle").attr("cx",0).attr("cy",0).attr("r",g+f/2).attr("class","pieOuterCircle");const m=DN(u),y=Ui([h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12]);c.selectAll("mySlices").data(m).enter().append("path").attr("d",p).attr("fill",(t=>y(t.data.label))).attr("class","pieCircle");let w=0;Object.keys(u).forEach((t=>{w+=u[t]})),c.selectAll("mySlices").data(m).enter().append("text").text((t=>(t.data.value/w*100).toFixed(0)+"%")).attr("transform",(t=>"translate("+b.centroid(t)+")")).style("text-anchor","middle").attr("class","slice"),c.append("text").text(r.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const v=c.selectAll(".legend").data(y.domain()).enter().append("g").attr("class","legend").attr("transform",((t,e)=>"translate(216,"+(22*e-22*y.domain().length/2)+")"));v.append("rect").attr("width",18).attr("height",18).style("fill",y).style("stroke",y),v.data(m).append("text").attr("x",22).attr("y",14).text((t=>{const{label:e,value:n}=t.data;return r.getShowData()?`${e} [${n}]`:e}));const x=512+Math.max(...v.selectAll("text").nodes().map((t=>(null==t?void 0:t.getBoundingClientRect().width)??0)));s.attr("viewBox",`0 0 ${x} 450`),Ud(s,450,x,o.useMaxWidth)}},styles:t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${t.pieOuterStrokeColor};\n stroke-width: ${t.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`}},Symbol.toStringTag,{value:"Module"}));var BN=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,4],i=[1,5],r=[1,6],a=[1,7],o=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],s=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],c=[32,33,34],l=[2,7],u=[1,13],h=[1,17],f=[1,18],d=[1,19],g=[1,20],p=[1,21],b=[1,22],m=[1,23],y=[1,24],w=[1,25],v=[1,26],x=[1,27],k=[1,30],_=[1,31],T=[1,32],E=[1,33],S=[1,34],C=[1,35],A=[1,36],M=[1,37],L=[1,38],I=[1,39],O=[1,40],N=[1,41],D=[1,42],P=[1,57],B=[1,58],R=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],F={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 12:this.$=a[s].trim(),i.setDiagramTitle(this.$);break;case 13:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 14:case 15:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 16:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 17:i.addPoint(a[s-3],a[s-1],a[s]);break;case 18:i.setXAxisLeftText(a[s-2]),i.setXAxisRightText(a[s]);break;case 19:a[s-1].text+=" ⟶ ",i.setXAxisLeftText(a[s-1]);break;case 20:i.setXAxisLeftText(a[s]);break;case 21:i.setYAxisBottomText(a[s-2]),i.setYAxisTopText(a[s]);break;case 22:a[s-1].text+=" ⟶ ",i.setYAxisBottomText(a[s-1]);break;case 23:i.setYAxisBottomText(a[s]);break;case 24:i.setQuadrant1Text(a[s]);break;case 25:i.setQuadrant2Text(a[s]);break;case 26:i.setQuadrant3Text(a[s]);break;case 27:i.setQuadrant4Text(a[s]);break;case 31:case 33:this.$={text:a[s],type:"text"};break;case 32:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 34:this.$={text:a[s],type:"markdown"};break;case 35:this.$=a[s];break;case 36:this.$=a[s-1]+""+a[s]}},table:[{3:1,4:2,5:e,6:n,32:i,33:r,34:a},{1:[3]},{3:8,4:2,5:e,6:n,32:i,33:r,34:a},{3:9,4:2,5:e,6:n,32:i,33:r,34:a},t(o,[2,4],{7:10}),t(s,[2,28]),t(s,[2,29]),t(s,[2,30]),{1:[2,1]},{1:[2,2]},t(c,l,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:u,13:h,15:f,17:d,19:g,20:p,25:b,27:m,28:y,29:w,30:v,31:x,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D}),t(o,[2,5]),{4:43,32:i,33:r,34:a},t(c,l,{10:14,11:15,12:16,21:28,35:29,9:44,5:u,13:h,15:f,17:d,19:g,20:p,25:b,27:m,28:y,29:w,30:v,31:x,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D}),t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},t(c,[2,15]),t(c,[2,16]),{21:48,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{21:49,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{21:50,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{21:51,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{21:52,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{21:53,35:29,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D},{5:P,22:[1,54],35:56,36:55,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B},t(R,[2,31]),t(R,[2,33]),t(R,[2,34]),t(R,[2,37]),t(R,[2,38]),t(R,[2,39]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(o,[2,6]),t(c,[2,8]),t(c,[2,12]),t(c,[2,13]),t(c,[2,14]),t(c,[2,20],{36:55,35:56,5:P,26:[1,59],40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,23],{36:55,35:56,5:P,26:[1,60],40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,24],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,25],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,26],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,27],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),{23:[1,61]},t(R,[2,32]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(c,[2,19],{35:29,21:62,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D}),t(c,[2,22],{35:29,21:63,37:k,38:_,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D}),{24:[1,64]},t(c,[2,18],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,21],{36:55,35:56,5:P,40:T,41:E,42:S,43:C,44:A,45:M,46:L,47:I,48:O,49:N,50:D,51:B}),t(c,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},$={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 3:break;case 2:return 32;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 22:case 24:case 28:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 23:this.begin("string");break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},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,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],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:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};function j(){this.yy={}}return F.lexer=$,j.prototype=F,F.Parser=j,new j}();BN.parser=BN;const RN=BN,FN=ll(),$N=sg();function jN(t){return _c(t.trim(),$N)}const zN=new class{constructor(){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 t,e,n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(t=bl.quadrantChart)?void 0:t.chartWidth)||500,chartWidth:(null==(e=bl.quadrantChart)?void 0:e.chartHeight)||500,titlePadding:(null==(n=bl.quadrantChart)?void 0:n.titlePadding)||10,titleFontSize:(null==(i=bl.quadrantChart)?void 0:i.titleFontSize)||20,quadrantPadding:(null==(r=bl.quadrantChart)?void 0:r.quadrantPadding)||5,xAxisLabelPadding:(null==(a=bl.quadrantChart)?void 0:a.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(o=bl.quadrantChart)?void 0:o.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(s=bl.quadrantChart)?void 0:s.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(c=bl.quadrantChart)?void 0:c.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(l=bl.quadrantChart)?void 0:l.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(u=bl.quadrantChart)?void 0:u.quadrantTextTopPadding)||5,pointTextPadding:(null==(h=bl.quadrantChart)?void 0:h.pointTextPadding)||5,pointLabelFontSize:(null==(f=bl.quadrantChart)?void 0:f.pointLabelFontSize)||12,pointRadius:(null==(d=bl.quadrantChart)?void 0:d.pointRadius)||5,xAxisPosition:(null==(g=bl.quadrantChart)?void 0:g.xAxisPosition)||"top",yAxisPosition:(null==(p=bl.quadrantChart)?void 0:p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(b=bl.quadrantChart)?void 0:b.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(m=bl.quadrantChart)?void 0:m.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:FN.quadrant1Fill,quadrant2Fill:FN.quadrant2Fill,quadrant3Fill:FN.quadrant3Fill,quadrant4Fill:FN.quadrant4Fill,quadrant1TextFill:FN.quadrant1TextFill,quadrant2TextFill:FN.quadrant2TextFill,quadrant3TextFill:FN.quadrant3TextFill,quadrant4TextFill:FN.quadrant4TextFill,quadrantPointFill:FN.quadrantPointFill,quadrantPointTextFill:FN.quadrantPointTextFill,quadrantXAxisTextFill:FN.quadrantXAxisTextFill,quadrantYAxisTextFill:FN.quadrantYAxisTextFill,quadrantTitleFill:FN.quadrantTitleFill,quadrantInternalBorderStrokeFill:FN.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:FN.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),l.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}setConfig(t){l.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){l.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,n,i){const r=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,a={top:"top"===t&&e?r:0,bottom:"bottom"===t&&e?r:0},o=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,s={left:"left"===this.config.yAxisPosition&&n?o:0,right:"right"===this.config.yAxisPosition&&n?o:0},c=this.config.titleFontSize+2*this.config.titlePadding,l={top:i?c:0},u=this.config.quadrantPadding+s.left,h=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-2*this.config.quadrantPadding-s.left-s.right,d=this.config.chartHeight-2*this.config.quadrantPadding-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:h,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:d,quadrantHalfHeight:d/2}}}getAxisLabels(t,e,n,i){const{quadrantSpace:r,titleSpace:a}=i,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:h}=r,f=!!this.data.xAxisRightText,d=!!this.data.yAxisTopText,g=[];return this.data.xAxisLeftText&&e&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+h+this.config.quadrantPadding,y:u+s-(d?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+h+this.config.quadrantPadding,y:u+o-(d?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),g}getQuadrants(t){const{quadrantSpace:e}=t,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:r,quadrantTop:a}=e,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+r,y:a,width:r,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a,width:r,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a+n,width:r,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+r,y:a+n,width:r,height:n,fill:this.themeConfig.quadrant4Fill}];for(const t of o)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return o}getQuadrantPoints(t){const{quadrantSpace:e}=t,{quadrantHeight:n,quadrantLeft:i,quadrantTop:r,quadrantWidth:a}=e,o=er().domain([0,1]).range([i,a+i]),s=er().domain([0,1]).range([n+r,r]);return this.data.points.map((t=>({x:o(t.x),y:s(t.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:o(t.x),y:s(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}})))}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=t,{quadrantHalfHeight:i,quadrantHeight:r,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+c+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+e,x2:a+c,y2:s+r-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+r,x2:a+c+e,y2:s+r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+r-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+e,x2:a+o,y2:s+r-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+i,x2:a+c-e,y2:s+i}]}getTitle(t){if(t)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(){const t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,r=this.calculateSpace(i,t,e,n);return{points:this.getQuadrantPoints(r),quadrants:this.getQuadrants(r),axisLabels:this.getAxisLabels(i,t,e,r),borderLines:this.getBorders(r),title:this.getTitle(n)}}},qN=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:RN,db:{setWidth:function(t){zN.setConfig({chartWidth:t})},setHeight:function(t){zN.setConfig({chartHeight:t})},setQuadrant1Text:function(t){zN.setData({quadrant1Text:jN(t.text)})},setQuadrant2Text:function(t){zN.setData({quadrant2Text:jN(t.text)})},setQuadrant3Text:function(t){zN.setData({quadrant3Text:jN(t.text)})},setQuadrant4Text:function(t){zN.setData({quadrant4Text:jN(t.text)})},setXAxisLeftText:function(t){zN.setData({xAxisLeftText:jN(t.text)})},setXAxisRightText:function(t){zN.setData({xAxisRightText:jN(t.text)})},setYAxisTopText:function(t){zN.setData({yAxisTopText:jN(t.text)})},setYAxisBottomText:function(t){zN.setData({yAxisBottomText:jN(t.text)})},addPoint:function(t,e,n){zN.addPoints([{x:e,y:n,text:jN(t.text)}])},getQuadrantData:function(){const t=sg(),{themeVariables:e,quadrantChart:n}=t;return n&&zN.setConfig(n),zN.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),zN.setData({titleText:ig()}),zN.build()},clear:function(){zN.clear(),Qd()},setAccTitle:Zd,getAccTitle:Jd,setDiagramTitle:ng,getDiagramTitle:ig,getAccDescription:eg,setAccDescription:tg},renderer:{draw:(t,e,n,i)=>{var r,a,o;function s(t){return"top"===t?"hanging":"middle"}function c(t){return"left"===t?"start":"middle"}function u(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const h=sg();l.debug("Rendering quadrant chart\n"+t);const f=h.securityLevel;let d;"sandbox"===f&&(d=ee("#i"+e));const g=ee("sandbox"===f?d.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`),p=g.append("g").attr("class","main"),b=(null==(r=h.quadrantChart)?void 0:r.chartWidth)||500,m=(null==(a=h.quadrantChart)?void 0:a.chartHeight)||500;Ud(g,m,b,(null==(o=h.quadrantChart)?void 0:o.useMaxWidth)||!0),g.attr("viewBox","0 0 "+b+" "+m),i.db.setHeight(m),i.db.setWidth(b);const y=i.db.getQuadrantData(),w=p.append("g").attr("class","quadrants"),v=p.append("g").attr("class","border"),x=p.append("g").attr("class","data-points"),k=p.append("g").attr("class","labels"),_=p.append("g").attr("class","title");y.title&&_.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",s(y.title.horizontalPos)).attr("text-anchor",c(y.title.verticalPos)).attr("transform",u(y.title)).text(y.title.text),y.borderLines&&v.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth));const T=w.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)),T.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>s(t.text.horizontalPos))).attr("text-anchor",(t=>c(t.text.verticalPos))).attr("transform",(t=>u(t.text))).text((t=>t.text.text)),k.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>s(t.horizontalPos))).attr("text-anchor",(t=>c(t.verticalPos))).attr("transform",(t=>u(t)));const E=x.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");E.append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)),E.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>s(t.text.horizontalPos))).attr("text-anchor",(t=>c(t.text.verticalPos))).attr("transform",(t=>u(t.text)))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var HN=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,10,12,14,16,18,19,21,23],n=[2,6],i=[1,3],r=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],l=[1,26],u=[1,28],h=[1,29],f=[1,30],d=[1,31],g=[1,32],p=[1,33],b=[1,34],m=[1,35],y=[1,36],w=[1,37],v=[1,43],x=[1,42],k=[1,47],_=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[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],C=[1,64],A={trace:function(){},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:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 5:i.setOrientation(a[s]);break;case 9:i.setDiagramTitle(a[s].text.trim());break;case 12:i.setLineData({text:"",type:"text"},a[s]);break;case 13:i.setLineData(a[s-1],a[s]);break;case 14:i.setBarData({text:"",type:"text"},a[s]);break;case 15:i.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 19:case 27:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2]),...a[s]];break;case 21:this.$=[Number(a[s])];break;case 22:i.setXAxisTitle(a[s]);break;case 23:i.setXAxisTitle(a[s-1]);break;case 24:i.setXAxisTitle({type:"text",text:""});break;case 25:i.setXAxisBand(a[s]);break;case 26:i.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 28:this.$=[a[s-2],...a[s]];break;case 29:this.$=[a[s]];break;case 30:i.setYAxisTitle(a[s]);break;case 31:i.setYAxisTitle(a[s-1]);break;case 32:i.setYAxisTitle({type:"text",text:""});break;case 33:i.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:case 38:this.$={text:a[s],type:"text"};break;case 39:this.$={text:a[s],type:"markdown"};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+""+a[s]}},table:[t(e,n,{3:1,4:2,7:4,5:i,34:r,35:a,36:o}),{1:[3]},t(e,n,{4:2,7:4,3:8,5:i,34:r,35:a,36:o}),t(e,n,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:r,35:a,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(s,[2,34]),t(s,[2,35]),t(s,[2,36]),{1:[2,1]},t(e,n,{4:2,7:4,3:21,5:i,34:r,35:a,36:o}),{1:[2,3]},t(s,[2,5]),t(e,[2,7],{4:22,34:r,35:a,36:o}),{11:23,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},{11:39,13:38,24:v,27:x,29:40,30:41,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},{11:45,15:44,27:k,33:46,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},{11:49,17:48,24:_,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},{11:52,17:51,24:_,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(E,[2,37],{40:55,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w}),t(E,[2,38]),t(E,[2,39]),t(S,[2,40]),t(S,[2,42]),t(S,[2,43]),t(S,[2,44]),t(S,[2,45]),t(S,[2,46]),t(S,[2,47]),t(S,[2,48]),t(S,[2,49]),t(S,[2,50]),t(S,[2,51]),t(T,[2,10]),t(T,[2,22],{30:41,29:56,24:v,27:x}),t(T,[2,24]),t(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},t(T,[2,11]),t(T,[2,30],{33:60,27:k}),t(T,[2,32]),{31:[1,61]},t(T,[2,12]),{17:62,24:_},{25:63,27:C},t(T,[2,14]),{17:65,24:_},t(T,[2,16]),t(T,[2,17]),t(S,[2,41]),t(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(T,[2,31]),{27:[1,69]},t(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(T,[2,15]),t(T,[2,26]),t(T,[2,27]),{11:59,32:72,37:24,38:c,39:l,40:27,41:u,42:h,43:f,44:d,45:g,46:p,47:b,48:m,49:y,50:w},t(T,[2,33]),t(T,[2,19]),{25:73,27:C},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 5:case 43:break;case 2:case 3:return this.popState(),34;case 4:return 34;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:case 25:case 27:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 26:this.pushState("string");break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};function L(){this.yy={}}return A.lexer=M,L.prototype=A,A.Parser=L,new L}();HN.parser=HN;const UN=HN;function GN(t){return"bar"===t.type}function KN(t){return"band"===t.type}function YN(t){return"linear"===t.type}class VN{constructor(t){this.parentGroup=t}getMaxDimension(t,e){if(!this.parentGroup)return{width:t.reduce(((t,e)=>Math.max(e.length,t)),0)*e,height:e};const n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e);for(const r of t){const t=ML(i,1,r),a=t?t.width:r.length*e,o=t?t.height:e;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return i.remove(),n}}class WN{constructor(t,e,n,i){this.axisConfig=t,this.title=e,this.textDimensionCalculator=n,this.axisThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((t=>t.toString())),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=.2*t.width;this.outerPadding=Math.min(n.width/2,i);const r=n.height+2*this.axisConfig.labelPadding;this.labelTextHeight=n.height,r<=e&&(e-=r,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}calculateSpaceIfDrawnVertical(t){let e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const n=this.getLabelDimension(),i=.2*t.height;this.outerPadding=Math.min(n.height/2,i);const r=n.width+2*this.axisConfig.labelPadding;r<=e&&(e-=r,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,n<=e&&(e-=n,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${e},${this.boundingRect.y} L ${e},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map((t=>({text:t.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(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"})))}),this.showTick){const e=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${e},${this.getScaleValue(t)} L ${e-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.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"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),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){const e=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${e} L ${this.getScaleValue(t)},${e+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.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"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const e=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${e} L ${this.boundingRect.x+this.boundingRect.width},${e}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"})))}),this.showTick){const e=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${e+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${e+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.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"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}}class XN extends WN{constructor(t,e,n,i,r){super(t,i,r,e),this.categories=n,this.scale=Gi().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=Gi().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),l.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class QN extends WN{constructor(t,e,n,i,r){super(t,i,r,e),this.domain=n,this.scale=er().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=er().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function ZN(t,e,n,i){const r=new VN(i);return KN(t)?new XN(e,n,t.categories,t.title,r):new QN(e,n,[t.min,t.max],t.title,r)}class JN{constructor(t,e,n,i){this.textDimensionCalculator=t,this.chartConfig=e,this.chartData=n,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(e.width,t.width),i=e.height+2*this.chartConfig.titlePadding;return e.width<=n&&e.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.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}]}),t}}function tD(t,e,n,i){const r=new VN(i);return new JN(r,t,e,n)}class eD{constructor(t,e,n,i,r){this.plotData=t,this.xAxis=e,this.yAxis=n,this.orientation=i,this.plotIndex=r}getDrawableElement(){const t=this.plotData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]));let e;return e="horizontal"===this.orientation?$o().y((t=>t[0])).x((t=>t[1]))(t):$o().x((t=>t[0])).y((t=>t[1]))(t),e?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:e,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class nD{constructor(t,e,n,i,r,a){this.barData=t,this.boundingRect=e,this.xAxis=n,this.yAxis=i,this.orientation=r,this.plotIndex=a}getDrawableElement(){const t=this.barData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])])),e=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),n=e/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:this.boundingRect.x,y:t[0]-n,height:e,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:t[0]-n,y:t[1],width:e,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]}}class iD{constructor(t,e,n){this.chartConfig=t,this.chartData=e,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,e){this.xAxis=t,this.yAxis=e}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[e,n]of this.chartData.plots.entries())switch(n.type){case"line":{const i=new eD(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...i.getDrawableElement())}break;case"bar":{const i=new nD(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,e);t.push(...i.getDrawableElement())}}return t}}function rD(t,e,n){return new iD(t,e,n)}class aD{constructor(t,e,n,i){this.chartConfig=t,this.chartData=e,this.componentStore={title:tD(t,e,n,i),plot:rD(t,e,n),xAxis:ZN(e.xAxis,t.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:ZN(e.yAxis,t.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}calculateVerticalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,n=0,i=0,r=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:r,height:a});t-=o.width,e-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),i=o.height,e-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:t,height:e}),e-=o.height,this.componentStore.yAxis.setAxisPosition("left"),o=this.componentStore.yAxis.calculateSpace({width:t,height:e}),n=o.width,t-=o.width,t>0&&(r+=t,t=0),e>0&&(a+=e,e=0),this.componentStore.plot.calculateSpace({width:r,height:a}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+r]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+a}),this.componentStore.yAxis.setRange([i,i+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some((t=>GN(t)))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,e=this.chartConfig.height,n=0,i=0,r=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});t-=s.width,e-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:e}),n=s.height,e-=s.height,this.componentStore.xAxis.setAxisPosition("left"),s=this.componentStore.xAxis.calculateSpace({width:t,height:e}),t-=s.width,i=s.width,this.componentStore.yAxis.setAxisPosition("top"),s=this.componentStore.yAxis.calculateSpace({width:t,height:e}),e-=s.height,r=n+s.height,t>0&&(a+=t,t=0),e>0&&(o+=e,e=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:i,y:r}),this.componentStore.yAxis.setRange([i,i+a]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([r,r+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some((t=>GN(t)))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const e of Object.values(this.componentStore))t.push(...e.getDrawableElements());return t}}class oD{static build(t,e,n,i){return new aD(t,e,n,i).getDrawableElement()}}let sD,cD=0,lD=bD(),uD=pD(),hD={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},fD=uD.plotColorPalette.split(",").map((t=>t.trim())),dD=!1,gD=!1;function pD(){const t=ll(),e=sd();return ff(t.xyChart,e.themeVariables.xyChart)}function bD(){const t=sd();return ff(bl.xyChart,t.xyChart)}function mD(t){const e=sd();return _c(t.trim(),e)}function yD(t,e){hD.xAxis={type:"linear",title:hD.xAxis.title,min:t,max:e},dD=!0}function wD(t){let e=[];if(0===t.length)return e;if(!dD){const e=YN(hD.xAxis)?hD.xAxis.min:1/0,n=YN(hD.xAxis)?hD.xAxis.max:-1/0;yD(Math.min(e,1),Math.max(n,t.length))}if(gD||function(t){const e=Math.min(...t),n=Math.max(...t),i=YN(hD.yAxis)?hD.yAxis.min:1/0,r=YN(hD.yAxis)?hD.yAxis.max:-1/0;hD.yAxis={type:"linear",title:hD.yAxis.title,min:Math.min(i,e),max:Math.max(r,n)}}(t),KN(hD.xAxis)&&(e=hD.xAxis.categories.map(((e,n)=>[e,t[n]]))),YN(hD.xAxis)){const n=hD.xAxis.min,i=hD.xAxis.max,r=(i-n+1)/t.length,a=[];for(let t=n;t<=i;t+=r)a.push(`${t}`);e=a.map(((e,n)=>[e,t[n]]))}return e}function vD(t){return fD[0===t?0:t%fD.length]}const xD=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:UN,db:{getDrawableElem:function(){if(0===hD.plots.length)throw Error("No Plot to render, please provide a plot with some data");return hD.title=ig(),oD.build(lD,hD,uD,sD)},clear:function(){Qd(),cD=0,lD=bD(),hD={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},uD=pD(),fD=uD.plotColorPalette.split(",").map((t=>t.trim())),dD=!1,gD=!1},setAccTitle:Zd,getAccTitle:Jd,setDiagramTitle:ng,getDiagramTitle:ig,getAccDescription:eg,setAccDescription:tg,setOrientation:function(t){lD.chartOrientation="horizontal"===t?"horizontal":"vertical"},setXAxisTitle:function(t){hD.xAxis.title=mD(t.text)},setXAxisRangeData:yD,setXAxisBand:function(t){hD.xAxis={type:"band",title:hD.xAxis.title,categories:t.map((t=>mD(t.text)))},dD=!0},setYAxisTitle:function(t){hD.yAxis.title=mD(t.text)},setYAxisRangeData:function(t,e){hD.yAxis={type:"linear",title:hD.yAxis.title,min:t,max:e},gD=!0},setLineData:function(t,e){const n=wD(e);hD.plots.push({type:"line",strokeFill:vD(cD),strokeWidth:2,data:n}),cD++},setBarData:function(t,e){const n=wD(e);hD.plots.push({type:"bar",fill:vD(cD),data:n}),cD++},setTmpSVGG:function(t){sD=t},getChartThemeConfig:function(){return uD},getChartConfig:function(){return lD}},renderer:{draw:(t,e,n,i)=>{const r=i.db,a=r.getChartThemeConfig(),o=r.getChartConfig();function s(t){return"top"===t?"text-before-edge":"middle"}function c(t){return"left"===t?"start":"right"===t?"end":"middle"}function u(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}l.debug("Rendering xychart chart\n"+t);const h=bg(e),f=h.append("g").attr("class","main"),d=f.append("rect").attr("width",o.width).attr("height",o.height).attr("class","background");Ud(h,o.height,o.width,!0),h.attr("viewBox",`0 0 ${o.width} ${o.height}`),d.attr("fill",a.backgroundColor),r.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=r.getDrawableElem(),p={};function b(t){let e=f,n="";for(const[i]of t.entries()){let r=f;i>0&&p[n]&&(r=p[n]),n+=t[i],e=p[n],e||(e=p[n]=r.append("g").attr("class",t[i]))}return e}for(const t of g){if(0===t.data.length)continue;const e=b(t.groupTexts);switch(t.type){case"rect":e.selectAll("rect").data(t.data).enter().append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth));break;case"text":e.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>s(t.verticalPos))).attr("text-anchor",(t=>c(t.horizontalPos))).attr("transform",(t=>u(t))).text((t=>t.text));break;case"path":e.selectAll("path").data(t.data).enter().append("path").attr("d",(t=>t.path)).attr("fill",(t=>t.fill?t.fill:"none")).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth))}}}}}},Symbol.toStringTag,{value:"Module"}));var kD=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,4],i=[1,5],r=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],o=[1,18],s=[2,7],c=[1,22],l=[1,23],u=[1,24],h=[1,25],f=[1,26],d=[1,27],g=[1,20],p=[1,28],b=[1,29],m=[62,63],y=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],w=[1,47],v=[1,48],x=[1,49],k=[1,50],_=[1,51],T=[1,52],E=[1,53],S=[53,54],C=[1,64],A=[1,60],M=[1,61],L=[1,62],I=[1,63],O=[1,65],N=[1,69],D=[1,70],P=[1,67],B=[1,68],R=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],F={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:i.addRequirement(a[s-3],a[s-4]);break;case 14:i.setNewReqId(a[s-2]);break;case 15:i.setNewReqText(a[s-2]);break;case 16:i.setNewReqRisk(a[s-2]);break;case 17:i.setNewReqVerifyMethod(a[s-2]);break;case 20:this.$=i.RequirementType.REQUIREMENT;break;case 21:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=i.RiskLevel.LOW_RISK;break;case 27:this.$=i.RiskLevel.MED_RISK;break;case 28:this.$=i.RiskLevel.HIGH_RISK;break;case 29:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=i.VerifyType.VERIFY_TEST;break;case 33:i.addElement(a[s-3]);break;case 34:i.setNewElementType(a[s-2]);break;case 35:i.setNewElementDocRef(a[s-2]);break;case 38:i.addRelationship(a[s-2],a[s],a[s-4]);break;case 39:i.addRelationship(a[s-2],a[s-4],a[s]);break;case 40:this.$=i.Relationships.CONTAINS;break;case 41:this.$=i.Relationships.COPIES;break;case 42:this.$=i.Relationships.DERIVES;break;case 43:this.$=i.Relationships.SATISFIES;break;case 44:this.$=i.Relationships.VERIFIES;break;case 45:this.$=i.Relationships.REFINES;break;case 46:this.$=i.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:n,11:i,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:n,11:i,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:n,11:i,13:r},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:o,7:31,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},{4:17,5:o,7:32,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},{4:17,5:o,7:33,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},{4:17,5:o,7:34,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},{4:17,5:o,7:35,8:s,9:n,11:i,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:l,33:u,34:h,35:f,36:d,44:g,62:p,63:b},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(m,[2,20]),t(m,[2,21]),t(m,[2,22]),t(m,[2,23]),t(m,[2,24]),t(m,[2,25]),t(y,[2,49]),t(y,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:w,56:v,57:x,58:k,59:_,60:T,61:E},{52:54,55:w,56:v,57:x,58:k,59:_,60:T,61:E},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(S,[2,40]),t(S,[2,41]),t(S,[2,42]),t(S,[2,43]),t(S,[2,44]),t(S,[2,45]),t(S,[2,46]),{54:[1,58]},{5:C,20:59,21:A,24:M,26:L,28:I,30:O},{5:N,30:D,46:66,47:P,49:B},{23:71,62:p,63:b},{23:72,62:p,63:b},t(R,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:C,20:77,21:A,24:M,26:L,28:I,30:O},t(R,[2,19]),t(R,[2,33]),{22:[1,78]},{22:[1,79]},{5:N,30:D,46:80,47:P,49:B},t(R,[2,37]),t(R,[2,38]),t(R,[2,39]),{23:81,62:p,63:b},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t(R,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t(R,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:C,20:106,21:A,24:M,26:L,28:I,30:O},{5:C,20:107,21:A,24:M,26:L,28:I,30:O},{5:C,20:108,21:A,24:M,26:L,28:I,30:O},{5:C,20:109,21:A,24:M,26:L,28:I,30:O},{5:N,30:D,46:110,47:P,49:B},{5:N,30:D,46:111,47:P,49:B},t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,34]),t(R,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},$={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){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:case 48:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:case 10:case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 49:return"qString";case 50:return e.yytext=e.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};function j(){this.yy={}}return F.lexer=$,j.prototype=F,F.Parser=j,new j}();kD.parser=kD;const _D=kD;let TD=[],ED={},SD={},CD={},AD={};const MD={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>sg().req,addRequirement:(t,e)=>(void 0===SD[t]&&(SD[t]={name:t,type:e,id:ED.id,text:ED.text,risk:ED.risk,verifyMethod:ED.verifyMethod}),ED={},SD[t]),getRequirements:()=>SD,setNewReqId:t=>{void 0!==ED&&(ED.id=t)},setNewReqText:t=>{void 0!==ED&&(ED.text=t)},setNewReqRisk:t=>{void 0!==ED&&(ED.risk=t)},setNewReqVerifyMethod:t=>{void 0!==ED&&(ED.verifyMethod=t)},setAccTitle:Zd,getAccTitle:Jd,setAccDescription:tg,getAccDescription:eg,addElement:t=>(void 0===AD[t]&&(AD[t]={name:t,type:CD.type,docRef:CD.docRef},l.info("Added new requirement: ",t)),CD={},AD[t]),getElements:()=>AD,setNewElementType:t=>{void 0!==CD&&(CD.type=t)},setNewElementDocRef:t=>{void 0!==CD&&(CD.docRef=t)},addRelationship:(t,e,n)=>{TD.push({type:t,src:e,dst:n})},getRelationships:()=>TD,clear:()=>{TD=[],ED={},SD={},CD={},AD={},Qd()}},LD={CONTAINS:"contains",ARROW:"arrow"},ID=LD;let OD={},ND=0;const DD=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",OD.rect_min_width+"px").attr("height",OD.rect_min_height+"px"),PD=(t,e,n)=>{let i=OD.rect_min_width/2,r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",i).attr("y",OD.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((t=>{0==a?r.append("tspan").attr("text-anchor","middle").attr("x",OD.rect_min_width/2).attr("dy",0).text(t):r.append("tspan").attr("text-anchor","middle").attr("x",OD.rect_min_width/2).attr("dy",.75*OD.line_height).text(t),a++}));let o=1.5*OD.rect_padding+a*OD.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",OD.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:r,y:o}},BD=(t,e,n,i)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",OD.rect_padding).attr("y",i).attr("dominant-baseline","hanging"),a=0,o=[];return n.forEach((t=>{let e=t.length;for(;e>30&&a<3;){let n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=n,a++}if(3==a){let t=o[o.length-1];o[o.length-1]=t.substring(0,t.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((t=>{r.append("tspan").attr("x",OD.rect_padding).attr("dy",OD.line_height).text(t)})),r},RD=t=>t.replace(/\s/g,"").replace(/\./g,"_"),FD=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:_D,db:MD,renderer:{draw:(t,e,n,i)=>{OD=sg().requirement;const r=OD.securityLevel;let a;"sandbox"===r&&(a=ee("#i"+e));const o=ee("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);((t,e)=>{let n=t.append("defs").append("marker").attr("id",LD.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",LD.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${e.line_height},${e.line_height/2}\n M${e.line_height},${e.line_height/2}\n L0,${e.line_height}`).attr("stroke-width",1)})(o,OD);const s=new dC({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:OD.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let c=i.db.getRequirements(),u=i.db.getElements(),h=i.db.getRelationships();((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];i=RD(i),l.info("Added new requirement: ",i);const a=n.append("g").attr("id",i),o=DD(a,"req-"+i);let s=PD(a,i+"_title",[`<<${r.type}>>`,`${r.name}`]);BD(a,i+"_body",[`Id: ${r.id}`,`Text: ${r.text}`,`Risk: ${r.risk}`,`Verification: ${r.verifyMethod}`],s.y);const c=o.node().getBBox();e.setNode(i,{width:c.width,height:c.height,shape:"rect",id:i})}))})(c,s,o),((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];const a=RD(i),o=n.append("g").attr("id",a),s="element-"+a,c=DD(o,s);let l=PD(o,s+"_title",["<>",`${i}`]);BD(o,s+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],l.y);const u=c.node().getBBox();e.setNode(a,{width:u.width,height:u.height,shape:"rect",id:a})}))})(u,s,o),((t,e)=>{t.forEach((function(t){let n=RD(t.src),i=RD(t.dst);e.setEdge(n,i,{relationship:t})}))})(h,s),bA(s),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(o,s),h.forEach((function(t){!function(t,e,n,i,r){const a=n.edge(RD(e.src),RD(e.dst)),o=$o().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+i).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==r.db.Relationships.CONTAINS?s.attr("marker-start","url("+Bc.getUrl(OD.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+Bc.getUrl(OD.arrowMarkerAbsolute)+"#"+ID.ARROW+"_line_ending)")),((t,e,n,i)=>{const r=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*r),o="rel"+ND;ND++;const s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(i).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")})(t,s,0,`<<${e.type}>>`)}(o,t,s,e,i)}));const f=OD.rect_padding,d=o.node().getBBox(),g=d.width+2*f,p=d.height+2*f;Ud(o,p,g,OD.useMaxWidth),o.attr("viewBox",`${d.x-f} ${d.y-f} ${g} ${p}`)}},styles:t=>`\n\n marker {\n fill: ${t.relationColor};\n stroke: ${t.relationColor};\n }\n\n marker.cross {\n stroke: ${t.lineColor};\n }\n\n svg {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n }\n\n .reqBox {\n fill: ${t.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${t.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${t.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${t.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${t.relationLabelColor};\n }\n\n`}},Symbol.toStringTag,{value:"Module"}));var $D=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,4],r=[2,4],a=[1,9],o=[1,11],s=[1,13],c=[1,14],l=[1,16],u=[1,17],h=[1,18],f=[1,24],d=[1,25],g=[1,26],p=[1,27],b=[1,28],m=[1,29],y=[1,30],w=[1,31],v=[1,32],x=[1,33],k=[1,34],_=[1,35],T=[1,36],E=[1,37],S=[1,38],C=[1,39],A=[1,41],M=[1,42],L=[1,43],I=[1,44],O=[1,45],N=[1,46],D=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],B=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],R=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],F=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],j=[68,69,70],z=[1,120],q={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 3:return i.apply(a[s]),a[s];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 11:case 12:case 62:this.$=a[s];break;case 15:a[s].type="createParticipant",this.$=a[s];break;case 16:a[s-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[s-2])}),a[s-1].push({type:"boxEnd",boxText:a[s-2]}),this.$=a[s-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 23:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 29:i.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 30:i.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 31:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 34:a[s-1].unshift({type:"loopStart",loopText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 35:a[s-1].unshift({type:"rectStart",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:"optStart",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:"altStart",altText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_OVER_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:"criticalStart",criticalText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:"breakStart",breakText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 43:this.$=a[s-3].concat([{type:"option",optionText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 45:this.$=a[s-3].concat([{type:"and",parText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.PAR_AND},a[s]]);break;case 47:this.$=a[s-3].concat([{type:"else",altText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.ALT_ELSE},a[s]]);break;case 48:a[s-3].draw="participant",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 49:a[s-1].draw="participant",a[s-1].type="addParticipant",this.$=a[s-1];break;case 50:a[s-3].draw="actor",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 51:a[s-1].draw="actor",a[s-1].type="addParticipant",this.$=a[s-1];break;case 52:a[s-1].type="destroyParticipant",this.$=a[s-1];break;case 53:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 54:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 55:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 56:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 57:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 58:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-2],a[s]];break;case 63:this.$=i.PLACEMENT.LEFTOF;break;case 64:this.$=i.PLACEMENT.RIGHTOF;break;case 65:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 66:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 67:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 68:this.$={type:"addParticipant",actor:a[s]};break;case 69:this.$=i.LINETYPE.SOLID_OPEN;break;case 70:this.$=i.LINETYPE.DOTTED_OPEN;break;case 71:this.$=i.LINETYPE.SOLID;break;case 72:this.$=i.LINETYPE.DOTTED;break;case 73:this.$=i.LINETYPE.SOLID_CROSS;break;case 74:this.$=i.LINETYPE.DOTTED_CROSS;break;case 75:this.$=i.LINETYPE.SOLID_POINT;break;case 76:this.$=i.LINETYPE.DOTTED_POINT;break;case 77:this.$=i.parseMessage(a[s].trim().substring(1))}},table:[{3:1,4:e,5:n,6:i},{1:[3]},{3:5,4:e,5:n,6:i},{3:6,4:e,5:n,6:i},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:s,14:c,17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},t(D,[2,5]),{9:47,12:12,13:s,14:c,17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},t(D,[2,7]),t(D,[2,8]),t(D,[2,14]),{12:48,50:E,52:S,53:C},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(D,[2,29]),t(D,[2,30]),{32:[1,61]},{34:[1,62]},t(D,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(D,[2,6]),t(D,[2,15]),t(P,[2,9],{10:91}),t(D,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(D,[2,21]),{5:[1,95]},{5:[1,96]},t(D,[2,24]),t(D,[2,25]),t(D,[2,26]),t(D,[2,27]),t(D,[2,28]),t(D,[2,31]),t(D,[2,32]),t(B,r,{7:97}),t(B,r,{7:98}),t(B,r,{7:99}),t(R,r,{40:100,7:101}),t(F,r,{42:102,7:103}),t(F,r,{7:103,42:104}),t($,r,{45:105,7:106}),t(B,r,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(j,[2,69]),t(j,[2,70]),t(j,[2,71]),t(j,[2,72]),t(j,[2,73]),t(j,[2,74]),t(j,[2,75]),t(j,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:z},{56:121,79:z},{56:122,79:z},{56:123,79:z},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:E,52:S,53:C},{5:[1,129]},t(D,[2,19]),t(D,[2,20]),t(D,[2,22]),t(D,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[1,130],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[1,131],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[1,132],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[2,46],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,49:[1,134],50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[2,44],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,48:[1,136],50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[2,42],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,47:[1,139],50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{4:a,5:o,8:8,9:10,12:12,13:s,14:c,16:[1,140],17:15,18:l,21:u,22:40,23:h,24:19,25:20,26:21,27:22,28:23,29:f,30:d,31:g,33:p,35:b,36:m,37:y,38:w,39:v,41:x,43:k,44:_,46:T,50:E,52:S,53:C,54:A,59:M,60:L,61:I,62:O,70:N},{15:[1,141]},t(D,[2,49]),{15:[1,142]},t(D,[2,51]),t(D,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:z},{56:146,79:z},{56:147,79:z},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(D,[2,16]),t(P,[2,10]),{12:149,50:E,52:S,53:C},t(P,[2,12]),t(P,[2,13]),t(D,[2,18]),t(D,[2,34]),t(D,[2,35]),t(D,[2,36]),t(D,[2,37]),{15:[1,150]},t(D,[2,38]),{15:[1,151]},t(D,[2,39]),t(D,[2,40]),{15:[1,152]},t(D,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:z},{56:156,79:z},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(R,r,{7:101,40:158}),t(F,r,{7:103,42:159}),t($,r,{7:106,45:160}),t(D,[2,48]),t(D,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 51:case 64:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 52:return e.yytext=e.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/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,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};function U(){this.yy={}}return q.lexer=H,U.prototype=q,q.Parser=U,new U}();$D.parser=$D;const jD=$D,zD=new class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}}((()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0}))),qD=function(t,e,n,i){let r=zD.records.currentBox;const a=zD.records.actors[t];if(a){if(zD.records.currentBox&&a.box&&zD.records.currentBox!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+zD.records.currentBox.name+"' at the same time.");if(r=a.box?a.box:zD.records.currentBox,a.box=r,a&&e===a.name&&null==n)return}(null==n||null==n.text)&&(n={text:e,wrap:null,type:i}),(null==i||null==n.text)&&(n={text:e,wrap:null,type:i}),zD.records.actors[t]={box:r,name:e,description:n.text,wrap:void 0===n.wrap&&GD()||!!n.wrap,prevActor:zD.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},zD.records.prevActor&&zD.records.actors[zD.records.prevActor]&&(zD.records.actors[zD.records.prevActor].nextActor=t),zD.records.currentBox&&zD.records.currentBox.actorKeys.push(t),zD.records.prevActor=t},HD=function(t,e,n={text:void 0,wrap:void 0},i,r=!1){if(i===KD.ACTIVE_END&&(t=>{let e,n=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return zD.records.messages.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&GD()||!!n.wrap,type:i,activate:r}),!0},UD=function(t){return zD.records.actors[t]},GD=()=>void 0!==zD.records.wrapEnabled?zD.records.wrapEnabled:sg().sequence.wrap,KD={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},YD=function(t,e,n){const i={actor:t,placement:e,message:n.text,wrap:void 0===n.wrap&&GD()||!!n.wrap},r=[].concat(t,t);zD.records.notes.push(i),zD.records.messages.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&GD()||!!n.wrap,type:KD.NOTE,placement:e})},VD=function(t,e){const n=UD(t);try{let t=_c(e.text,sg());t=t.replace(/&/g,"&"),t=t.replace(/=/g,"="),WD(n,JSON.parse(t))}catch(t){l.error("error while parsing actor link text",t)}};function WD(t,e){if(null==t.links)t.links=e;else for(let n in e)t.links[n]=e[n]}const XD=function(t,e){const n=UD(t);try{let t=_c(e.text,sg());QD(n,JSON.parse(t))}catch(t){l.error("error while parsing actor properties text",t)}};function QD(t,e){if(null==t.properties)t.properties=e;else for(let n in e)t.properties[n]=e[n]}const ZD=function(t,e){const n=UD(t),i=document.getElementById(e.text);try{const t=i.innerHTML,e=JSON.parse(t);e.properties&&QD(n,e.properties),e.links&&WD(n,e.links)}catch(t){l.error("error while parsing actor details text",t)}},JD=function(t){if(Array.isArray(t))t.forEach((function(t){JD(t)}));else switch(t.type){case"sequenceIndex":zD.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":qD(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(zD.records.actors[t.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");zD.records.lastCreated=t.actor,qD(t.actor,t.actor,t.description,t.draw),zD.records.createdActors[t.actor]=zD.records.messages.length;break;case"destroyParticipant":zD.records.lastDestroyed=t.actor,zD.records.destroyedActors[t.actor]=zD.records.messages.length;break;case"activeStart":case"activeEnd":HD(t.actor,void 0,void 0,t.signalType);break;case"addNote":YD(t.actor,t.placement,t.text);break;case"addLinks":VD(t.actor,t.text);break;case"addALink":!function(t,e){const n=UD(t);try{const t={};let o=_c(e.text,sg());var i=o.indexOf("@");o=o.replace(/&/g,"&"),o=o.replace(/=/g,"=");var r=o.slice(0,i-1).trim(),a=o.slice(i+1).trim();t[r]=a,WD(n,t)}catch(t){l.error("error while parsing actor link text",t)}}(t.actor,t.text);break;case"addProperties":XD(t.actor,t.text);break;case"addDetails":ZD(t.actor,t.text);break;case"addMessage":if(zD.records.lastCreated){if(t.to!==zD.records.lastCreated)throw new Error("The created participant "+zD.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");zD.records.lastCreated=void 0}else if(zD.records.lastDestroyed){if(t.to!==zD.records.lastDestroyed&&t.from!==zD.records.lastDestroyed)throw new Error("The destroyed participant "+zD.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");zD.records.lastDestroyed=void 0}HD(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":!function(t){zD.records.boxes.push({name:t.text,wrap:void 0===t.wrap&&GD()||!!t.wrap,fill:t.color,actorKeys:[]}),zD.records.currentBox=zD.records.boxes.slice(-1)[0]}(t.boxData);break;case"boxEnd":zD.records.currentBox=void 0;break;case"loopStart":HD(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":HD(void 0,void 0,void 0,t.signalType);break;case"rectStart":HD(void 0,void 0,t.color,t.signalType);break;case"optStart":HD(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":HD(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":Zd(t.text);break;case"parStart":case"and":HD(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":HD(void 0,void 0,t.criticalText,t.signalType);break;case"option":HD(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":HD(void 0,void 0,t.breakText,t.signalType)}},tP={addActor:qD,addMessage:function(t,e,n,i){zD.records.messages.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&GD()||!!n.wrap,answer:i})},addSignal:HD,addLinks:VD,addDetails:ZD,addProperties:XD,autoWrap:GD,setWrap:function(t){zD.records.wrapEnabled=t},enableSequenceNumbers:function(){zD.records.sequenceNumbersEnabled=!0},disableSequenceNumbers:function(){zD.records.sequenceNumbersEnabled=!1},showSequenceNumbers:()=>zD.records.sequenceNumbersEnabled,getMessages:function(){return zD.records.messages},getActors:function(){return zD.records.actors},getCreatedActors:function(){return zD.records.createdActors},getDestroyedActors:function(){return zD.records.destroyedActors},getActor:UD,getActorKeys:function(){return Object.keys(zD.records.actors)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:Jd,getBoxes:function(){return zD.records.boxes},getDiagramTitle:ig,setDiagramTitle:ng,getConfig:()=>sg().sequence,clear:function(){zD.reset(),Qd()},parseMessage:function(t){const e=t.trim(),n={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return l.debug("parseMessage:",n),n},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let n=null!=e&&e[1]?e[1].trim():"transparent",i=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",i=t.trim());else{const e=(new Option).style;e.color=n,e.color!==n&&(n="transparent",i=t.trim())}return{color:n,text:void 0!==i?_c(i.replace(/^:?(?:no)?wrap:/,""),sg()):void 0,wrap:void 0!==i?null!==i.match(/^:?wrap:/)||null===i.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:KD,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:YD,setAccTitle:Zd,apply:JD,setAccDescription:tg,getAccDescription:eg,hasAtLeastOneBox:function(){return zD.records.boxes.length>0},hasAtLeastOneBoxWithTitle:function(){return zD.records.boxes.some((t=>t.name))}},eP="actor-top",nP="actor-bottom",iP=function(t,e){return kk(t,e)},rP=async function(t,e,n=null){let i=t.append("foreignObject");const r=await Pc(e.text,sd()),a=i.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(r).node().getBoundingClientRect();if(i.attr("height",Math.round(a.height)).attr("width",Math.round(a.width)),"noteText"===e.class){const n=t.node().firstChild;n.setAttribute("height",a.height+2*e.textMargin);const r=n.getBBox();i.attr("x",Math.round(r.x+r.width/2-a.width/2)).attr("y",Math.round(r.y+r.height/2-a.height/2))}else if(n){let{startx:t,stopx:r,starty:o}=n;if(t>r){const e=t;t=r,r=e}i.attr("x",Math.round(t+Math.abs(t-r)/2-a.width/2)),"loopText"===e.class?i.attr("y",Math.round(o)):i.attr("y",Math.round(o-a.height))}return[i]},aP=function(t,e){let n=0,i=0;const r=e.text.split(Bc.lineBreakRegex),[a,o]=hf(e.fontSize);let s=[],c=0,l=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":l=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":l=()=>Math.round(e.y+(n+i+e.textMargin)/2);break;case"bottom":case"end":l=()=>Math.round(e.y+(n+i+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[u,h]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==a&&(c=u*a);const r=t.append("text");r.attr("x",e.x),r.attr("y",l()),void 0!==e.anchor&&r.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&r.style("font-family",e.fontFamily),void 0!==o&&r.style("font-size",o),void 0!==e.fontWeight&&r.style("font-weight",e.fontWeight),void 0!==e.fill&&r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class),void 0!==e.dy?r.attr("dy",e.dy):0!==c&&r.attr("dy",c);const f=h||"​";if(e.tspan){const t=r.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(f)}else r.text(f);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(i+=(r._groups||r)[0][0].getBBox().height,n=i),s.push(r)}return s},oP=function(t,e){const n=t.append("polygon");return n.attr("points",(i=e.x)+","+(r=e.y)+" "+(i+(a=e.width))+","+r+" "+(i+a)+","+(r+(o=e.height)-7)+" "+(i+a-8.4)+","+(r+o)+" "+i+","+(r+o)),n.attr("class","labelBox"),e.y=e.y+e.height/2,aP(t,e),n;var i,r,a,o};let sP=-1;const cP=(t,e,n,i)=>{t.select&&n.forEach((n=>{const r=e[n],a=t.select("#actor"+r.actorCnt);!i.mirrorActors&&r.stopy?a.attr("y2",r.stopy+r.height/2):i.mirrorActors&&a.attr("y2",r.stopy)}))},lP=function(t,e){((t,e)=>{const n={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};kk(t,n).lower()})(t,e)},uP=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){const{actorFontSize:l,actorFontFamily:u,actorFontWeight:h}=c,[f,d]=hf(l),g=t.split(Bc.lineBreakRegex);for(let t=0;t{const r=t.append("use");r.attr("x",e),r.attr("y",n);const a=f.sanitizeUrl(i);r.attr("xlink:href",`#${a}`)})(c,l.x+l.width-20,l.y+10,t.substr(1)):((t,e,n,i)=>{const r=t.append("image");r.attr("x",e),r.attr("y",n);const a=f.sanitizeUrl(i);r.attr("xlink:href",a)})(c,l.x+l.width-20,l.y+10,t)}await uP(n,Nc(e.description))(e.description,c,l.x,l.y,l.width,l.height,{class:"actor"},n);let d=e.height;if(h.node){const t=h.node().getBBox();e.height=t.height,d=t.height}return d}(t,e,n,i)}},gP=async function(t,e,n){const i=t.append("g");lP(i,e),e.name&&await uP(n)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},n),i.lower()},pP=function(t,e,n,i,r){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};const a=e.links,o=e.actorCnt,s=e.rectData;var c="none";r&&(c="block !important");const l=t.append("g");l.attr("id","actor"+o+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c);var u="";void 0!==s.class&&(u=" "+s.class);let h=s.width>n?s.width:n;const d=l.append("rect");if(d.attr("class","actorPopupMenuPanel"+u),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",h),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=a){var g=20;for(let t in a){var p=l.append("a"),b=f.sanitizeUrl(a[t]);p.attr("xlink:href",b),p.attr("target","_blank"),hP(i)(t,p,s.x+10,s.height+g,h,20,{class:"actor"},i),g+=30}}return d.attr("height",g),{height:s.height+g,width:h}},bP=function(t){return t.append("g")},mP=function(t,e,n,i,r){const a={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0},o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+r%3,a.width=e.stopx-e.startx,a.height=n-e.starty,iP(o,a)},yP=async function(t,e,n,i){const{boxMargin:r,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:s,messageFontFamily:c,messageFontSize:l,messageFontWeight:u}=i,h=t.append("g"),f=function(t,e,n,i){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",i).attr("class","loopLine")};f(e.startx,e.starty,e.stopx,e.starty),f(e.stopx,e.starty,e.stopx,e.stopy),f(e.startx,e.stopy,e.stopx,e.stopy),f(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){f(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let d={x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0};d.text=n,d.x=e.startx,d.y=e.starty,d.fontFamily=c,d.fontSize=l,d.fontWeight=u,d.anchor="middle",d.valign="middle",d.tspan=!1,d.width=s||50,d.height=o||20,d.textMargin=a,d.class="labelText",oP(h,d),d={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},d.text=e.title,d.x=e.startx+s/2+(e.stopx-e.startx)/2,d.y=e.starty+r+a,d.anchor="middle",d.valign="middle",d.textMargin=a,d.class="loopText",d.fontFamily=c,d.fontSize=l,d.fontWeight=u,d.wrap=!0;let g=Nc(d.text)?await rP(h,d,e):aP(h,d);if(void 0!==e.sectionTitles)for(const[t,n]of Object.entries(e.sectionTitles))if(n.message){d.text=n.message,d.x=e.startx+(e.stopx-e.startx)/2,d.y=e.sections[t].y+r+a,d.class="loopText",d.anchor="middle",d.valign="middle",d.tspan=!1,d.fontFamily=c,d.fontSize=l,d.fontWeight=u,d.wrap=e.wrap,Nc(d.text)?(e.starty=e.sections[t].y,await rP(h,d,e)):aP(h,d);let i=Math.round(g.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[t].height+=i-(r+a)}return e.height=Math.round(e.stopy-e.starty),h},wP=lP,vP=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.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")},xP=function(t){t.append("defs").append("marker").attr("id","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")},kP=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},_P=function(t){t.append("defs").append("marker").attr("id","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")},TP=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},EP=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},SP=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")};f.sanitizeUrl;let CP={};const AP={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init: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,RP(sg())},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=this;let a=0;function o(o){return function(s){a++;const c=r.sequenceItems.length-a+1;r.updateVal(s,"starty",e-c*CP.boxMargin,Math.min),r.updateVal(s,"stopy",i+c*CP.boxMargin,Math.max),r.updateVal(AP.data,"startx",t-c*CP.boxMargin,Math.min),r.updateVal(AP.data,"stopx",n+c*CP.boxMargin,Math.max),"activation"!==o&&(r.updateVal(s,"startx",t-c*CP.boxMargin,Math.min),r.updateVal(s,"stopx",n+c*CP.boxMargin,Math.max),r.updateVal(AP.data,"starty",e-c*CP.boxMargin,Math.min),r.updateVal(AP.data,"stopy",i+c*CP.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,i){const r=Bc.getMin(t,n),a=Bc.getMax(t,n),o=Bc.getMin(e,i),s=Bc.getMax(e,i);this.updateVal(AP.data,"startx",r,Math.min),this.updateVal(AP.data,"starty",o,Math.min),this.updateVal(AP.data,"stopx",a,Math.max),this.updateVal(AP.data,"stopy",s,Math.max),this.updateBounds(r,o,a,s)},newActivation:function(t,e,n){const i=n[t.from.actor],r=FP(t.from.actor).length||0,a=i.x+i.width/2+(r-1)*CP.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+CP.activationWidth,stopy:void 0,actor:t.from.actor,anchored:bP(e)})},endActivation:function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:AP.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=Bc.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},MP=async function(t,e){AP.bumpVerticalPos(CP.boxMargin),e.height=CP.boxMargin,e.starty=AP.getVerticalPos();const n={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};n.x=e.startx,n.y=e.starty,n.width=e.width||CP.width,n.class="note";const i=t.append("g"),r=fP(i,n),a={x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0};a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=CP.noteFontFamily,a.fontSize=CP.noteFontSize,a.fontWeight=CP.noteFontWeight,a.anchor=CP.noteAlign,a.textMargin=CP.noteMargin,a.valign="center";const o=Nc(a.text)?await rP(i,a):aP(i,a),s=Math.round(o.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));r.attr("height",s+2*CP.noteMargin),e.height+=s+2*CP.noteMargin,AP.bumpVerticalPos(s+2*CP.noteMargin),e.stopy=e.starty+s+2*CP.noteMargin,e.stopx=e.startx+n.width,AP.insert(e.startx,e.starty,e.stopx,e.stopy),AP.models.addNote(e)},LP=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),IP=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),OP=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});async function NP(t,e){AP.bumpVerticalPos(10);const{startx:n,stopx:i,message:r}=e,a=Bc.splitBreaks(r).length,o=Nc(r),s=o?await Dc(r,sg()):df.calculateTextDimensions(r,LP(CP));if(!o){const t=s.height/a;e.height+=t,AP.bumpVerticalPos(t)}let c,l=s.height-10;const u=s.width;if(n===i){c=AP.getVerticalPos()+l,CP.rightAngles||(l+=CP.boxMargin,c=AP.getVerticalPos()+l),l+=30;const t=Bc.getMax(u/2,CP.width/2);AP.insert(n-t,AP.getVerticalPos()-10+l,i+t,AP.getVerticalPos()+30+l)}else l+=CP.boxMargin,c=AP.getVerticalPos()+l,AP.insert(n,c-10,i,c);return AP.bumpVerticalPos(l),e.height+=l,e.stopy=e.starty+e.height,AP.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),c}const DP=async function(t,e,n,i){const{startx:r,stopx:a,starty:o,message:s,type:c,sequenceIndex:l,sequenceVisible:u}=e,h=df.calculateTextDimensions(s,LP(CP)),f={x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0};f.x=r,f.y=o+10,f.width=a-r,f.class="messageText",f.dy="1em",f.text=s,f.fontFamily=CP.messageFontFamily,f.fontSize=CP.messageFontSize,f.fontWeight=CP.messageFontWeight,f.anchor=CP.messageAlign,f.valign="center",f.textMargin=CP.wrapPadding,f.tspan=!1,Nc(f.text)?await rP(t,f,{startx:r,stopx:a,starty:n}):aP(t,f);const d=h.width;let g;r===a?g=CP.rightAngles?t.append("path").attr("d",`M ${r},${n} H ${r+Bc.getMax(CP.width/2,d/2)} V ${n+25} H ${r}`):t.append("path").attr("d","M "+r+","+n+" C "+(r+60)+","+(n-10)+" "+(r+60)+","+(n+30)+" "+r+","+(n+20)):(g=t.append("line"),g.attr("x1",r),g.attr("y1",n),g.attr("x2",a),g.attr("y2",n)),c===i.db.LINETYPE.DOTTED||c===i.db.LINETYPE.DOTTED_CROSS||c===i.db.LINETYPE.DOTTED_POINT||c===i.db.LINETYPE.DOTTED_OPEN?(g.style("stroke-dasharray","3, 3"),g.attr("class","messageLine1")):g.attr("class","messageLine0");let p="";CP.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),g.attr("stroke-width",2),g.attr("stroke","none"),g.style("fill","none"),(c===i.db.LINETYPE.SOLID||c===i.db.LINETYPE.DOTTED)&&g.attr("marker-end","url("+p+"#arrowhead)"),(c===i.db.LINETYPE.SOLID_POINT||c===i.db.LINETYPE.DOTTED_POINT)&&g.attr("marker-end","url("+p+"#filled-head)"),(c===i.db.LINETYPE.SOLID_CROSS||c===i.db.LINETYPE.DOTTED_CROSS)&&g.attr("marker-end","url("+p+"#crosshead)"),(u||CP.showSequenceNumbers)&&(g.attr("marker-start","url("+p+"#sequencenumber)"),t.append("text").attr("x",r).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))},PP=async function(t,e,n,i){if(i){let i=0;AP.bumpVerticalPos(2*CP.boxMargin);for(const r of n){const n=e[r];n.stopy||(n.stopy=AP.getVerticalPos());const a=await dP(t,n,CP,!0);i=Bc.getMax(i,a)}AP.bumpVerticalPos(i+CP.boxMargin)}else for(const i of n){const n=e[i];await dP(t,n,CP,!1)}},BP=function(t,e,n,i){let r=0,a=0;for(const o of n){const n=e[o],s=qP(n),c=pP(t,n,s,CP,CP.forceMenus,i);c.height>r&&(r=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:r,maxWidth:a}},RP=function(t){Al(CP,t),t.fontFamily&&(CP.actorFontFamily=CP.noteFontFamily=CP.messageFontFamily=t.fontFamily),t.fontSize&&(CP.actorFontSize=CP.noteFontSize=CP.messageFontSize=t.fontSize),t.fontWeight&&(CP.actorFontWeight=CP.noteFontWeight=CP.messageFontWeight=t.fontWeight)},FP=function(t){return AP.activations.filter((function(e){return e.actor===t}))},$P=function(t,e){const n=e[t],i=FP(t);return[i.reduce((function(t,e){return Bc.getMin(t,e.startx)}),n.x+n.width/2-1),i.reduce((function(t,e){return Bc.getMax(t,e.stopx)}),n.x+n.width/2+1)]};function jP(t,e,n,i,r){AP.bumpVerticalPos(n);let a=i;if(e.id&&e.message&&t[e.id]){const n=t[e.id].width,r=LP(CP);e.message=df.wrapLabel(`[${e.message}]`,n-2*CP.wrapPadding,r),e.width=n,e.wrap=!0;const o=df.calculateTextDimensions(e.message,r),s=Bc.getMax(o.height,CP.labelBoxHeight);a=i+s,l.debug(`${s} - ${e.message}`)}r(e),AP.bumpVerticalPos(a)}function zP(t,e,n,i,r,a,o){function s(n,i){n.x2,h=t=>s?-t:t;t.from===t.to?l=c:(t.activate&&!u&&(l+=h(CP.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(l+=h(3)));const f=[i,r,a,o],d=Math.abs(c-l);t.wrap&&t.message&&(t.message=df.wrapLabel(t.message,Bc.getMax(d+2*CP.wrapPadding,CP.width),LP(CP)));const g=df.calculateTextDimensions(t.message,LP(CP));return{width:Bc.getMax(t.wrap?0:g.width+2*CP.wrapPadding,d+2*CP.wrapPadding,CP.width),height:0,startx:c,stopx:l,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,f),toBounds:Math.max.apply(null,f)}},GP=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:jD,db:tP,renderer:{bounds:AP,drawActors:PP,drawActorsPopup:BP,setConf:RP,draw:async function(t,e,n,i){const{securityLevel:r,sequence:a}=sg();let o;CP=a,"sandbox"===r&&(o=ee("#i"+e));const s=ee("sandbox"===r?o.nodes()[0].contentDocument.body:"body"),c="sandbox"===r?o.nodes()[0].contentDocument:document;AP.init(),l.debug(i.db);const u="sandbox"===r?s.select(`[id="${e}"]`):ee(`[id="${e}"]`),h=i.db.getActors(),f=i.db.getCreatedActors(),d=i.db.getDestroyedActors(),g=i.db.getBoxes();let p=i.db.getActorKeys();const b=i.db.getMessages(),m=i.db.getDiagramTitle(),y=i.db.hasAtLeastOneBox(),w=i.db.hasAtLeastOneBoxWithTitle(),v=await async function(t,e,n){const i={};for(const r of e)if(t[r.to]&&t[r.from]){const e=t[r.to];if(r.placement===n.db.PLACEMENT.LEFTOF&&!e.prevActor||r.placement===n.db.PLACEMENT.RIGHTOF&&!e.nextActor)continue;const a=void 0!==r.placement,o=!a,s=a?IP(CP):LP(CP),c=r.wrap?df.wrapLabel(r.message,CP.width-2*CP.wrapPadding,s):r.message,l=(Nc(c)?await Dc(r.message,sg()):df.calculateTextDimensions(c,s)).width+2*CP.wrapPadding;o&&r.from===e.nextActor?i[r.to]=Bc.getMax(i[r.to]||0,l):o&&r.from===e.prevActor?i[r.from]=Bc.getMax(i[r.from]||0,l):o&&r.from===r.to?(i[r.from]=Bc.getMax(i[r.from]||0,l/2),i[r.to]=Bc.getMax(i[r.to]||0,l/2)):r.placement===n.db.PLACEMENT.RIGHTOF?i[r.from]=Bc.getMax(i[r.from]||0,l):r.placement===n.db.PLACEMENT.LEFTOF?i[e.prevActor]=Bc.getMax(i[e.prevActor]||0,l):r.placement===n.db.PLACEMENT.OVER&&(e.prevActor&&(i[e.prevActor]=Bc.getMax(i[e.prevActor]||0,l/2)),e.nextActor&&(i[r.from]=Bc.getMax(i[r.from]||0,l/2)))}return l.debug("maxMessageWidthPerActor:",i),i}(h,b,i);if(CP.height=await async function(t,e,n){let i=0;for(const e of Object.keys(t)){const n=t[e];n.wrap&&(n.description=df.wrapLabel(n.description,CP.width-2*CP.wrapPadding,OP(CP)));const r=Nc(n.description)?await Dc(n.description,sg()):df.calculateTextDimensions(n.description,OP(CP));n.width=n.wrap?CP.width:Bc.getMax(CP.width,r.width+2*CP.wrapPadding),n.height=n.wrap?Bc.getMax(r.height,CP.height):CP.height,i=Bc.getMax(i,n.height)}for(const n in e){const i=t[n];if(!i)continue;const r=t[i.nextActor];if(!r){const t=e[n]+CP.actorMargin-i.width/2;i.margin=Bc.getMax(t,CP.actorMargin);continue}const a=e[n]+CP.actorMargin-i.width/2-r.width/2;i.margin=Bc.getMax(a,CP.actorMargin)}let r=0;return n.forEach((e=>{const n=LP(CP);let i=e.actorKeys.reduce(((e,n)=>e+(t[n].width+(t[n].margin||0))),0);i-=2*CP.boxTextMargin,e.wrap&&(e.name=df.wrapLabel(e.name,i-2*CP.wrapPadding,n));const a=df.calculateTextDimensions(e.name,n);r=Bc.getMax(a.height,r);const o=Bc.getMax(i,a.width+2*CP.wrapPadding);if(e.margin=CP.boxTextMargin,it.textMaxHeight=r)),Bc.getMax(i,CP.height)}(h,v,g),EP(u),TP(u),SP(u),y&&(AP.bumpVerticalPos(CP.boxMargin),w&&AP.bumpVerticalPos(g[0].textMaxHeight)),!0===CP.hideUnusedParticipants){const t=new Set;b.forEach((e=>{t.add(e.from),t.add(e.to)})),p=p.filter((e=>t.has(e)))}await async function(t,e,n,i,r,a,o){let s,c=0,l=0,u=0;for(const t of i){const i=e[t],r=i.box;s&&s!=r&&(AP.models.addBox(s),l+=CP.boxMargin+s.margin),r&&r!=s&&(r.x=c+l,r.y=0,l+=r.margin),i.width=i.width||CP.width,i.height=Bc.getMax(i.height||CP.height,CP.height),i.margin=i.margin||CP.actorMargin,u=Bc.getMax(u,i.height),n[i.name]&&(l+=i.width/2),i.x=c+l,i.starty=AP.getVerticalPos(),AP.insert(i.x,0,i.x+i.width,i.height),c+=i.width+l,i.box&&(i.box.width=c+r.margin-i.box.x),l=i.margin,s=i.box,AP.models.addActor(i)}s&&AP.models.addBox(s),AP.bumpVerticalPos(u)}(0,h,f,p);const x=await async function(t,e,n,i){const r={},a=[];let o,s,c;for(const n of t){switch(n.id=df.random({length:10}),n.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:n.id,msg:n.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:n.message&&(o=a.pop(),r[o.id]=o,r[n.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(),r[o.id]=o;break;case i.db.LINETYPE.ACTIVE_START:{const t=e[n.from?n.from.actor:n.to.actor],i=FP(n.from?n.from.actor:n.to.actor).length,r=t.x+t.width/2+(i-1)*CP.activationWidth/2,a={startx:r,stopx:r+CP.activationWidth,actor:n.from.actor,enabled:!0};AP.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{const t=AP.activations.map((t=>t.actor)).lastIndexOf(n.from.actor);delete AP.activations.splice(t,1)[0]}}void 0!==n.placement?(s=await HP(n,e,i),n.noteModel=s,a.forEach((t=>{o=t,o.from=Bc.getMin(o.from,s.startx),o.to=Bc.getMax(o.to,s.startx+s.width),o.width=Bc.getMax(o.width,Math.abs(o.from-o.to))-CP.labelBoxWidth}))):(c=UP(n,e,i),n.msgModel=c,c.startx&&c.stopx&&a.length>0&&a.forEach((t=>{if(o=t,c.startx===c.stopx){const t=e[n.from],i=e[n.to];o.from=Bc.getMin(t.x-c.width/2,t.x-t.width/2,o.from),o.to=Bc.getMax(i.x+c.width/2,i.x+t.width/2,o.to),o.width=Bc.getMax(o.width,Math.abs(o.to-o.from))-CP.labelBoxWidth}else o.from=Bc.getMin(c.startx,o.from),o.to=Bc.getMax(c.stopx,o.to),o.width=Bc.getMax(o.width,c.width)-CP.labelBoxWidth})))}return AP.activations=[],l.debug("Loop type widths:",r),r}(b,h,0,i);function k(t,e){const n=AP.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),mP(u,n,e,CP,FP(t.from.actor).length),AP.insert(n.startx,e-10,n.stopx,e)}vP(u),_P(u),xP(u),kP(u);let _=1,T=1;const E=[],S=[];let C=0;for(const t of b){let e,n,r;switch(t.type){case i.db.LINETYPE.NOTE:AP.resetVerticalPos(),n=t.noteModel,await MP(u,n);break;case i.db.LINETYPE.ACTIVE_START:AP.newActivation(t,u,h);break;case i.db.LINETYPE.ACTIVE_END:k(t,AP.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t)));break;case i.db.LINETYPE.LOOP_END:e=AP.endLoop(),await yP(u,e,"loop",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;case i.db.LINETYPE.RECT_START:jP(x,t,CP.boxMargin,CP.boxMargin,(t=>AP.newLoop(void 0,t.message)));break;case i.db.LINETYPE.RECT_END:e=AP.endLoop(),S.push(e),AP.models.addLoop(e),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos());break;case i.db.LINETYPE.OPT_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t)));break;case i.db.LINETYPE.OPT_END:e=AP.endLoop(),await yP(u,e,"opt",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;case i.db.LINETYPE.ALT_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t)));break;case i.db.LINETYPE.ALT_ELSE:jP(x,t,CP.boxMargin+CP.boxTextMargin,CP.boxMargin,(t=>AP.addSectionToLoop(t)));break;case i.db.LINETYPE.ALT_END:e=AP.endLoop(),await yP(u,e,"alt",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t))),AP.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:jP(x,t,CP.boxMargin+CP.boxTextMargin,CP.boxMargin,(t=>AP.addSectionToLoop(t)));break;case i.db.LINETYPE.PAR_END:e=AP.endLoop(),await yP(u,e,"par",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;case i.db.LINETYPE.AUTONUMBER:_=t.message.start||_,T=t.message.step||T,t.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t)));break;case i.db.LINETYPE.CRITICAL_OPTION:jP(x,t,CP.boxMargin+CP.boxTextMargin,CP.boxMargin,(t=>AP.addSectionToLoop(t)));break;case i.db.LINETYPE.CRITICAL_END:e=AP.endLoop(),await yP(u,e,"critical",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;case i.db.LINETYPE.BREAK_START:jP(x,t,CP.boxMargin,CP.boxMargin+CP.boxTextMargin,(t=>AP.newLoop(t)));break;case i.db.LINETYPE.BREAK_END:e=AP.endLoop(),await yP(u,e,"break",CP),AP.bumpVerticalPos(e.stopy-AP.getVerticalPos()),AP.models.addLoop(e);break;default:try{r=t.msgModel,r.starty=AP.getVerticalPos(),r.sequenceIndex=_,r.sequenceVisible=i.db.showSequenceNumbers();const e=await NP(0,r);zP(t,r,e,C,h,f,d),E.push({messageModel:r,lineStartY:e}),AP.models.addMessage(r)}catch(t){l.error("error while drawing message",t)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(_+=T),C++}l.debug("createdActors",f),l.debug("destroyedActors",d),await PP(u,h,p,!1);for(const t of E)await DP(u,t.messageModel,t.lineStartY,i);CP.mirrorActors&&await PP(u,h,p,!0),S.forEach((t=>wP(u,t))),cP(u,h,p,CP);for(const t of AP.models.boxes)t.height=AP.getVerticalPos()-t.y,AP.insert(t.x,t.y,t.x+t.width,t.height),t.startx=t.x,t.starty=t.y,t.stopx=t.startx+t.width,t.stopy=t.starty+t.height,t.stroke="rgb(0,0,0, 0.5)",await gP(u,t,CP);y&&AP.bumpVerticalPos(CP.boxMargin);const A=BP(u,h,p,c),{bounds:M}=AP.getBounds();let L=M.stopy-M.starty;L`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`,init:({wrap:t})=>{tP.setWrap(t)}}},Symbol.toStringTag,{value:"Module"}));var KP=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,17],n=[1,18],i=[1,19],r=[1,39],a=[1,40],o=[1,25],s=[1,23],c=[1,24],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,35],g=[1,36],p=[1,26],b=[1,27],m=[1,28],y=[1,29],w=[1,43],v=[1,30],x=[1,42],k=[1,44],_=[1,41],T=[1,45],E=[1,9],S=[1,8,9],C=[1,56],A=[1,57],M=[1,58],L=[1,59],I=[1,60],O=[1,61],N=[1,62],D=[1,8,9,39],P=[1,74],B=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],R=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],F=[13,74,80,95,97,98],$=[13,64,65,74,80,95,97,98],j=[13,59,60,61,62,63,74,80,95,97,98],z=[1,93],q=[1,110],H=[1,108],U=[1,102],G=[1,103],K=[1,104],Y=[1,105],V=[1,106],W=[1,107],X=[1,109],Q=[1,8,9,37,39,42],Z=[1,8,9,21],J=[1,8,9,78],tt=[1,8,9,21,73,74,78,80,81,82,83,84,85],et={trace:function(){},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,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 8:this.$=a[s-1];break;case 9:case 11:case 12:this.$=a[s];break;case 10:case 13:case 89:this.$=a[s-1]+a[s];break;case 14:case 15:this.$=a[s-1]+"~"+a[s]+"~";break;case 16:i.addRelation(a[s]);break;case 17:a[s-1].title=i.cleanupLabel(a[s]),i.addRelation(a[s-1]);break;case 27:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(a[s-3],a[s-1]);break;case 31:i.addClassesToNamespace(a[s-4],a[s-1]);break;case 32:this.$=a[s],i.addNamespace(a[s]);break;case 33:case 43:case 86:this.$=[a[s]];break;case 34:this.$=[a[s-1]];break;case 35:a[s].unshift(a[s-2]),this.$=a[s];break;case 37:i.setCssClass(a[s-2],a[s]);break;case 38:i.addMembers(a[s-3],a[s-1]);break;case 39:i.setCssClass(a[s-5],a[s-3]),i.addMembers(a[s-5],a[s-1]);break;case 40:this.$=a[s],i.addClass(a[s]);break;case 41:this.$=a[s-1],i.addClass(a[s-1]),i.setClassLabel(a[s-1],a[s]);break;case 42:i.addAnnotation(a[s],a[s-2]);break;case 44:a[s].push(a[s-1]),this.$=a[s];break;case 45:case 47:case 48:break;case 46:i.addMember(a[s-1],i.cleanupLabel(a[s]));break;case 49:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 51:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 52:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 53:i.addNote(a[s],a[s-1]);break;case 54:i.addNote(a[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 60:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 61:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=a[s-2],i.setClickEvent(a[s-1],a[s]);break;case 71:case 77:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 72:this.$=a[s-2],i.setLink(a[s-1],a[s]);break;case 73:this.$=a[s-3],i.setLink(a[s-2],a[s-1],a[s]);break;case 74:this.$=a[s-3],i.setLink(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 75:this.$=a[s-4],i.setLink(a[s-3],a[s-2],a[s]),i.setTooltip(a[s-3],a[s-1]);break;case 78:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 79:this.$=a[s-4],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 80:this.$=a[s-3],i.setLink(a[s-2],a[s]);break;case 81:this.$=a[s-4],i.setLink(a[s-3],a[s-1],a[s]);break;case 82:this.$=a[s-4],i.setLink(a[s-3],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 83:this.$=a[s-5],i.setLink(a[s-4],a[s-2],a[s]),i.setTooltip(a[s-4],a[s-1]);break;case 84:this.$=a[s-2],i.setCssStyle(a[s-1],a[s]);break;case 85:i.setCssClass(a[s-1],a[s]);break;case 87:a[s-2].push(a[s]),this.$=a[s-2]}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:e,33:n,35:i,36:21,40:r,41:22,44:a,45:o,47:s,48:c,50:l,52:u,53:h,54:f,55:d,56:g,66:p,67:b,69:m,73:y,74:w,76:v,80:x,95:k,97:_,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(E,[2,5],{8:[1,46]}),{8:[1,47]},t(S,[2,16],{21:[1,48]}),t(S,[2,18]),t(S,[2,19]),t(S,[2,20]),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),{32:[1,49]},{34:[1,50]},t(S,[2,29]),t(S,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:C,60:A,61:M,62:L,63:I,64:O,65:N}),{37:[1,63]},t(D,[2,36],{37:[1,65],42:[1,64]}),t(S,[2,47]),t(S,[2,48]),{16:66,74:w,80:x,95:k,97:_},{16:37,17:67,18:38,74:w,80:x,95:k,97:_,98:T},{16:37,17:68,18:38,74:w,80:x,95:k,97:_,98:T},{16:37,17:69,18:38,74:w,80:x,95:k,97:_,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:w,80:x,95:k,97:_,98:T},{13:P,51:73},t(S,[2,55]),t(S,[2,56]),t(S,[2,57]),t(S,[2,58]),t(B,[2,11],{16:37,18:38,17:75,19:[1,76],74:w,80:x,95:k,97:_,98:T}),t(B,[2,12],{19:[1,77]}),{15:78,16:79,74:w,80:x,95:k,97:_},{16:37,17:80,18:38,74:w,80:x,95:k,97:_,98:T},t(R,[2,112]),t(R,[2,113]),t(R,[2,114]),t(R,[2,115]),t([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),t(E,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:e,33:n,35:i,40:r,44:a,45:o,47:s,48:c,50:l,52:u,53:h,54:f,55:d,56:g,66:p,67:b,69:m,73:y,74:w,76:v,80:x,95:k,97:_,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:e,33:n,35:i,36:21,40:r,41:22,44:a,45:o,47:s,48:c,50:l,52:u,53:h,54:f,55:d,56:g,66:p,67:b,69:m,73:y,74:w,76:v,80:x,95:k,97:_,98:T},t(S,[2,17]),t(S,[2,27]),t(S,[2,28]),{13:[1,84],16:37,17:83,18:38,74:w,80:x,95:k,97:_,98:T},{49:85,57:54,58:55,59:C,60:A,61:M,62:L,63:I,64:O,65:N},t(S,[2,46]),{58:86,64:O,65:N},t(F,[2,62],{57:87,59:C,60:A,61:M,62:L,63:I}),t($,[2,63]),t($,[2,64]),t($,[2,65]),t($,[2,66]),t($,[2,67]),t(j,[2,68]),t(j,[2,69]),{8:[1,89],23:90,38:88,41:22,44:a},{16:91,74:w,80:x,95:k,97:_},{43:92,47:z},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:q,73:H,74:U,75:99,77:100,79:101,80:G,81:K,82:Y,83:V,84:W,85:X},{74:[1,111]},{13:P,51:112},t(S,[2,54]),t(S,[2,117]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:w,80:x,95:k,97:_},t(Q,[2,40],{11:114,12:[1,115]}),t(E,[2,7]),{9:[1,116]},t(Z,[2,49]),{16:37,17:117,18:38,74:w,80:x,95:k,97:_,98:T},{13:[1,119],16:37,17:118,18:38,74:w,80:x,95:k,97:_,98:T},t(F,[2,61],{57:120,59:C,60:A,61:M,62:L,63:I}),t(F,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:a},{8:[1,123],39:[2,33]},t(D,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:z},{16:37,17:127,18:38,74:w,80:x,95:k,97:_,98:T},t(S,[2,70],{13:[1,128]}),t(S,[2,72],{13:[1,130],68:[1,129]}),t(S,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},t(S,[2,84],{78:[1,134]}),t(J,[2,86],{79:135,21:q,73:H,74:U,80:G,81:K,82:Y,83:V,84:W,85:X}),t(tt,[2,88]),t(tt,[2,90]),t(tt,[2,91]),t(tt,[2,92]),t(tt,[2,93]),t(tt,[2,94]),t(tt,[2,95]),t(tt,[2,96]),t(tt,[2,97]),t(tt,[2,98]),t(S,[2,85]),t(S,[2,53]),{37:[2,10]},t(Q,[2,41]),{13:[1,136]},{1:[2,4]},t(Z,[2,51]),t(Z,[2,50]),{16:37,17:137,18:38,74:w,80:x,95:k,97:_,98:T},t(F,[2,59]),t(S,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:a},{43:140,47:z},t(D,[2,38]),{39:[2,44]},t(S,[2,42]),t(S,[2,71]),t(S,[2,73]),t(S,[2,74],{68:[1,141]}),t(S,[2,77]),t(S,[2,78],{13:[1,142]}),t(S,[2,80],{13:[1,144],68:[1,143]}),{21:q,73:H,74:U,77:145,79:101,80:G,81:K,82:Y,83:V,84:W,85:X},t(tt,[2,89]),{14:[1,146]},t(Z,[2,52]),t(S,[2,31]),{39:[2,35]},{39:[1,147]},t(S,[2,75]),t(S,[2,79]),t(S,[2,81]),t(S,[2,82],{68:[1,148]}),t(J,[2,87],{79:135,21:q,73:H,74:U,80:G,81:K,82:Y,83:V,84:W,85:X}),t(Q,[2,8]),t(D,[2,39]),t(S,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},nt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:case 5:case 14:case 30:case 35:case 39:case 46:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 57:case 60:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 34:return 8;case 15:case 16:return 7;case 17:case 36:case 44:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 23:return 71;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:case 38:return this.popState(),8;case 31:return this.begin("namespace-body"),37;case 32:case 42:return this.popState(),39;case 33:case 43:return"EOF_IN_STRUCT";case 37:return this.begin("class"),44;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 45:return"OPEN_IN_STRUCT";case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:case 64:case 65:case 66:return 68;case 67:case 68:return 60;case 69:case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:case 84:return 84;case 85:return 85;case 86:case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:case 95:return 83;case 96:return 9}},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)/,/^(?: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]|[\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,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,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,94,95,96],inclusive:!0}}};function it(){this.yy={}}return et.lexer=nt,it.prototype=et,et.Parser=it,new it}();KP.parser=KP;const YP=KP,VP=["#","+","~","-",""];class WP{constructor(t,e){this.memberType=e,this.visibility="",this.classifier="";const n=_c(t,sg());this.parseMember(n)}getDisplayDetails(){let t=this.visibility+Cc(this.id);return"method"===this.memberType&&(t+=`(${Cc(this.parameters.trim())})`,this.returnType&&(t+=" : "+Cc(this.returnType))),t=t.trim(),{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,i=t.match(n);if(i){const t=i[1]?i[1].trim():"";if(VP.includes(t)&&(this.visibility=t),this.id=i[2].trim(),this.parameters=i[3]?i[3].trim():"",e=i[4]?i[4].trim():"",this.returnType=i[5]?i[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);t.match(/[$*]/)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const n=t.length,i=t.substring(0,1),r=t.substring(n-1);VP.includes(i)&&(this.visibility=i),r.match(/[$*]/)&&(e=r),this.id=t.substring(""===this.visibility?0:1,""===e?n:n-1)}this.classifier=e}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const XP="classId-";let QP=[],ZP={},JP=[],tB=0,eB={},nB=0,iB=[];const rB=t=>Bc.sanitizeText(t,sg()),aB=function(t){const e=Bc.sanitizeText(t,sg());let n="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=rB(t[0]),n=rB(t[1])}return{className:i,type:n}},oB=function(t){const e=Bc.sanitizeText(t,sg()),{className:n,type:i}=aB(e);if(Object.hasOwn(ZP,n))return;const r=Bc.sanitizeText(n,sg());ZP[r]={id:r,type:i,label:r,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:XP+r+"-"+tB},tB++},sB=function(t){const e=Bc.sanitizeText(t,sg());if(e in ZP)return ZP[e].domId;throw new Error("Class not found: "+e)},cB=function(t,e){oB(t);const n=aB(t).className,i=ZP[n];if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(rB(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new WP(t,"method")):t&&i.members.push(new WP(t,"attribute"))}},lB=function(t,e){t.split(",").forEach((function(t){let n=t;t[0].match(/\d/)&&(n=XP+n),void 0!==ZP[n]&&ZP[n].cssClasses.push(e)}))},uB=function(t){let e=ee(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=ee("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),ee(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=ee(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"
")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),ee(this).classed("hover",!1)}))};iB.push(uB);let hB="TB";const fB={setAccTitle:Zd,getAccTitle:Jd,getAccDescription:eg,setAccDescription:tg,getConfig:()=>sg().class,addClass:oB,bindFunctions:function(t){iB.forEach((function(e){e(t)}))},clear:function(){QP=[],ZP={},JP=[],iB=[],iB.push(uB),eB={},nB=0,Qd()},getClass:function(t){return ZP[t]},getClasses:function(){return ZP},getNotes:function(){return JP},addAnnotation:function(t,e){const n=aB(t).className;ZP[n].annotations.push(e)},addNote:function(t,e){const n={id:`note${JP.length}`,class:e,text:t};JP.push(n)},getRelations:function(){return QP},addRelation:function(t){l.debug("Adding relation: "+JSON.stringify(t)),oB(t.id1),oB(t.id2),t.id1=aB(t.id1).className,t.id2=aB(t.id2).className,t.relationTitle1=Bc.sanitizeText(t.relationTitle1.trim(),sg()),t.relationTitle2=Bc.sanitizeText(t.relationTitle2.trim(),sg()),QP.push(t)},getDirection:()=>hB,setDirection:t=>{hB=t},addMember:cB,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>cB(t,e))))},cleanupLabel:function(t){return t.startsWith(":")&&(t=t.substring(1)),rB(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){(function(t,e,n){const i=Bc.sanitizeText(t,sg());if("loose"!==sg().securityLevel||void 0===e)return;const r=i;if(void 0!==ZP[r]){const t=sB(r);let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t`g.classGroup text {\n fill: ${t.nodeBorder||t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`;let gB=0;const pB=function(t,e,n,i){const{displayText:r,cssStyle:a}=e.getDisplayDetails(),o=t.append("tspan").attr("x",i.padding).text(r);""!==a&&o.attr("style",e.cssStyle),n||o.attr("dy",i.textHeight)},bB=function(t,e,n,i){l.debug("Rendering class ",e,n);const r=e.id,a={id:r,label:e.id,width:0,height:0},o=t.append("g").attr("id",i.db.lookUpDomId(r)).attr("class","classGroup");let s;s=e.link?o.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):o.append("text").attr("y",n.textHeight+n.padding).attr("x",0);let c=!0;e.annotations.forEach((function(t){const e=s.append("tspan").text("«"+t+"»");c||e.attr("dy",n.textHeight),c=!1}));let u=function(t){let e=t.id;return t.type&&(e+="<"+Cc(t.type)+">"),e}(e);const h=s.append("tspan").text(u).attr("class","title");c||h.attr("dy",n.textHeight);const f=s.node().getBBox().height;let d,g,p;if(e.members.length>0){d=o.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin/2).attr("y2",n.padding+f+n.dividerMargin/2);const t=o.append("text").attr("x",n.padding).attr("y",f+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(e){pB(t,e,c,n),c=!1})),g=t.node().getBBox()}if(e.methods.length>0){p=o.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin+g.height).attr("y2",n.padding+f+n.dividerMargin+g.height);const t=o.append("text").attr("x",n.padding).attr("y",f+2*n.dividerMargin+g.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(e){pB(t,e,c,n),c=!1}))}const b=o.node().getBBox();var m=" ";e.cssClasses.length>0&&(m+=e.cssClasses.join(" "));const y=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*n.padding).attr("height",b.height+n.padding+.5*n.dividerMargin).attr("class",m).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(y-t.getBBox().width)/2)})),e.tooltip&&s.insert("title").text(e.tooltip),d&&d.attr("x2",y),p&&p.attr("x2",y),a.width=y,a.height=b.height+n.padding+.5*n.dividerMargin,a};let mB={};const yB=function(t){const e=Object.entries(mB).find((e=>e[1].label===t));if(e)return e[0]},wB=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:YP,db:fB,renderer:{draw:function(t,e,n,i){const r=sg().class;mB={},l.info("Rendering diagram "+t);const a=sg().securityLevel;let o;"sandbox"===a&&(o=ee("#i"+e));const s=ee("sandbox"===a?o.nodes()[0].contentDocument.body:"body"),c=s.select(`[id='${e}']`);!function(t){t.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).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")}(c);const u=new dC({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel((function(){return{}}));const h=i.db.getClasses(),f=Object.keys(h);for(const t of f){const e=h[t],n=bB(c,e,r,i);mB[n.id]=n,u.setNode(n.id,n),l.info("Org height: "+n.height)}i.db.getRelations().forEach((function(t){l.info("tjoho"+yB(t.id1)+yB(t.id2)+JSON.stringify(t)),u.setEdge(yB(t.id1),yB(t.id2),{relation:t},t.title||"DEFAULT")})),i.db.getNotes().forEach((function(t){l.debug(`Adding note: ${JSON.stringify(t)}`);const e=function(t,e,n,i){l.debug("Rendering note ",e,n);const r=e.id,a={id:r,text:e.text,width:0,height:0},o=t.append("g").attr("id",r).attr("class","classGroup");let s=o.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const c=JSON.parse(`"${e.text}"`).split("\n");c.forEach((function(t){l.debug(`Adding line: ${t}`),s.append("tspan").text(t).attr("class","title").attr("dy",n.textHeight)}));const u=o.node().getBBox(),h=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",u.width+2*n.padding).attr("height",u.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(h-t.getBBox().width)/2)})),a.width=h,a.height=u.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin,a}(c,t,r);mB[e.id]=e,u.setNode(e.id,e),t.class&&t.class in h&&u.setEdge(t.id,yB(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),bA(u),u.nodes().forEach((function(t){void 0!==t&&void 0!==u.node(t)&&(l.debug("Node "+t+": "+JSON.stringify(u.node(t))),s.select("#"+(i.db.lookUpDomId(t)||t)).attr("transform","translate("+(u.node(t).x-u.node(t).width/2)+","+(u.node(t).y-u.node(t).height/2)+" )"))})),u.edges().forEach((function(t){void 0!==t&&void 0!==u.edge(t)&&(l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(u.edge(t))),function(t,e,n,i,r){const a=function(t){switch(t){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const o=e.points,s=$o().x((function(t){return t.x})).y((function(t){return t.y})).curve(Ko),c=t.append("path").attr("d",s(o)).attr("id","edge"+gB).attr("class","relation");let u,h,f="";i.arrowMarkerAbsolute&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),1==n.relation.lineType&&c.attr("class","relation dashed-line"),10==n.relation.lineType&&c.attr("class","relation dotted-line"),"none"!==n.relation.type1&&c.attr("marker-start","url("+f+"#"+a(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&c.attr("marker-end","url("+f+"#"+a(n.relation.type2)+"End)");const d=e.points.length;let g,p,b,m,y=df.calcLabelPosition(e.points);if(u=y.x,h=y.y,d%2!=0&&d>1){let t=df.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),i=df.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[d-1]);l.debug("cardinality_1_point "+JSON.stringify(t)),l.debug("cardinality_2_point "+JSON.stringify(i)),g=t.x,p=t.y,b=i.x,m=i.y}if(void 0!==n.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",u).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=r;const a=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",a.x-i.padding/2).attr("y",a.y-i.padding/2).attr("width",a.width+i.padding).attr("height",a.height+i.padding)}l.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",b).attr("y",m).attr("fill","black").attr("font-size","6").text(n.relationTitle2),gB++}(c,u.edge(t),u.edge(t).relation,r,i))}));const d=c.node().getBBox(),g=d.width+40,p=d.height+40;Ud(c,p,g,r.useMaxWidth);const b=`${d.x-20} ${d.y-20} ${g} ${p}`;l.debug(`viewBox ${b}`),c.attr("viewBox",b)}},styles:dB,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,fB.clear()}}},Symbol.toStringTag,{value:"Module"})),vB=t=>Bc.sanitizeText(t,sg());let xB={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const kB=function(t,e,n,i,r){const a=Object.keys(t);l.info("keys:",a),l.info(t),a.filter((e=>t[e].parent==r)).forEach((function(n){var a,o;const s=t[n],c=s.cssClasses.join(" "),u=Zh(s.styles),h=s.label??s.id,f={labelStyle:u.labelStyle,shape:"class_box",labelText:vB(h),classData:s,rx:0,ry:0,class:c,style:u.style,id:s.id,domId:s.domId,tooltip:i.db.getTooltip(s.id,r)||"",haveCallback:s.haveCallback,link:s.link,width:"group"===s.type?500:void 0,type:s.type,padding:(null==(a=sg().flowchart)?void 0:a.padding)??(null==(o=sg().class)?void 0:o.padding)};e.setNode(s.id,f),r&&e.setParent(s.id,r),l.info("setNode",f)}))};function _B(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const TB=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:YP,db:fB,renderer:{setConf:function(t){xB={...xB,...t}},draw:async function(t,e,n,i){l.info("Drawing class - ",e);const r=sg().flowchart??sg().class,a=sg().securityLevel;l.info("config:",r);const o=(null==r?void 0:r.nodeSpacing)??50,s=(null==r?void 0:r.rankSpacing)??50,c=new dC({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:o,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),u=i.db.getNamespaces(),h=i.db.getClasses(),f=i.db.getRelations(),d=i.db.getNotes();let g;l.info(f),function(t,e,n,i){const r=Object.keys(t);l.info("keys:",r),l.info(t),r.forEach((function(n){var r,a;const o=t[n],s={shape:"rect",id:o.id,domId:o.domId,labelText:vB(o.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(r=sg().flowchart)?void 0:r.padding)??(null==(a=sg().class)?void 0:a.padding)};e.setNode(o.id,s),kB(o.classes,e,0,i,o.id),l.info("setNode",s)}))}(u,c,0,i),kB(h,c,0,i),function(t,e){const n=sg().flowchart;let i=0;t.forEach((function(t){var r;i++;const a={classes:"relation",pattern:1==t.relation.lineType?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${i}`,arrowhead:"arrow_open"===t.type?"none":"normal",startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowTypeStart:_B(t.relation.type1),arrowTypeEnd:_B(t.relation.type2),style:"fill:none",labelStyle:"",curve:Vh(null==n?void 0:n.curve,Bo)};if(l.info(a,t),void 0!==t.style){const e=Zh(t.style);a.style=e.style,a.labelStyle=e.labelStyle}t.text=t.title,void 0===t.text?void 0!==t.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",(null==(r=sg().flowchart)?void 0:r.htmlLabels)??sg().htmlLabels?(a.labelType="html",a.label=''+t.text+""):(a.labelType="text",a.label=t.text.replace(Bc.lineBreakRegex,"\n"),void 0===t.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,a,i)}))}(f,c),function(t,e,n,i){l.info(t),t.forEach((function(t,r){var a,o;const s=t,c=s.text,u={labelStyle:"",shape:"note",labelText:vB(c),noteData:s,rx:0,ry:0,class:"",style:"",id:s.id,domId:s.id,tooltip:"",type:"note",padding:(null==(a=sg().flowchart)?void 0:a.padding)??(null==(o=sg().class)?void 0:o.padding)};if(e.setNode(s.id,u),l.info("setNode",u),!s.class||!(s.class in i))return;const h=n+r,f={id:`edgeNote${h}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:Vh(xB.curve,Bo)};e.setEdge(s.id,s.class,f,h)}))}(d,c,f.length+1,h),"sandbox"===a&&(g=ee("#i"+e));const p=ee("sandbox"===a?g.nodes()[0].contentDocument.body:"body"),b=p.select(`[id="${e}"]`),m=p.select("#"+e+" g");if(await EI(m,c,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),df.insertTitle(b,"classTitleText",(null==r?void 0:r.titleTopMargin)??5,i.db.getDiagramTitle()),Gd(c,b,null==r?void 0:r.diagramPadding,null==r?void 0:r.useMaxWidth),null==r||!r.htmlLabels){const t="sandbox"===a?g.nodes()[0].contentDocument:document,n=t.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of n){const n=e.getBBox(),i=t.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("rx",0),i.setAttribute("ry",0),i.setAttribute("width",n.width),i.setAttribute("height",n.height),e.insertBefore(i,e.firstChild)}}}},styles:dB,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,fB.clear()}}},Symbol.toStringTag,{value:"Module"}));var EB=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,4],r=[2,4],a=[1,9],o=[1,11],s=[1,15],c=[1,16],l=[1,17],u=[1,18],h=[1,30],f=[1,19],d=[1,20],g=[1,21],p=[1,22],b=[1,23],m=[1,25],y=[1,26],w=[1,27],v=[1,28],x=[1,29],k=[1,32],_=[1,33],T=[1,34],E=[1,35],S=[1,31],C=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],A=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],M=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],L={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"--\x3e":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"--\x3e",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",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"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,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],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 3:return i.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:case 11:this.$=a[s];break;case 8:this.$="nl";break;case 12:const t=a[s-1];t.description=i.trimColon(a[s]),this.$=t;break;case 13:this.$={stmt:"relation",state1:a[s-2],state2:a[s]};break;case 14:const e=i.trimColon(a[s]);this.$={stmt:"relation",state1:a[s-3],state2:a[s-1],description:e};break;case 18:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 19:var c=a[s],l=a[s-2].trim();if(a[s].match(":")){var u=a[s].split(":");c=u[0],l=[l,u[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 20:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 21:this.$={stmt:"state",id:a[s],type:"fork"};break;case 22:this.$={stmt:"state",id:a[s],type:"join"};break;case 23:this.$={stmt:"state",id:a[s],type:"choice"};break;case 24:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 28:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:a[s-1].trim(),classes:a[s].trim()};break;case 33:this.$={stmt:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 34:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:a[s].trim(),type:"default",description:""};break;case 42:case 43:this.$={stmt:"state",id:a[s-2].trim(),classes:[a[s].trim()],type:"default",description:""}}},table:[{3:1,4:e,5:n,6:i},{1:[3]},{3:5,4:e,5:n,6:i},{3:6,4:e,5:n,6:i},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],r,{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,15:s,16:c,18:l,21:u,23:h,24:f,25:d,26:g,27:p,28:b,31:24,32:m,34:y,36:w,37:v,41:x,44:k,45:_,46:T,47:E,50:S},t(C,[2,5]),{9:36,10:12,11:13,12:14,15:s,16:c,18:l,21:u,23:h,24:f,25:d,26:g,27:p,28:b,31:24,32:m,34:y,36:w,37:v,41:x,44:k,45:_,46:T,47:E,50:S},t(C,[2,7]),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(C,[2,11],{13:[1,37],14:[1,38]}),t(C,[2,15]),{17:[1,39]},t(C,[2,17],{19:[1,40]}),{22:[1,41]},t(C,[2,21]),t(C,[2,22]),t(C,[2,23]),t(C,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(C,[2,27]),{33:[1,46]},{35:[1,47]},t(C,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(A,[2,40],{51:[1,51]}),t(A,[2,41],{51:[1,52]}),t(C,[2,34]),t(C,[2,35]),t(C,[2,36]),t(C,[2,37]),t(C,[2,6]),t(C,[2,12]),{12:53,23:h,50:S},t(C,[2,16]),t(M,r,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(C,[2,28]),t(C,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(C,[2,13],{13:[1,63]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,15:s,16:c,18:l,20:[1,64],21:u,23:h,24:f,25:d,26:g,27:p,28:b,31:24,32:m,34:y,36:w,37:v,41:x,44:k,45:_,46:T,47:E,50:S},t(C,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(C,[2,31]),t(C,[2,32]),t(C,[2,33]),t(A,[2,42]),t(A,[2,43]),t(C,[2,14]),t(C,[2,18]),t(M,r,{7:68}),t(C,[2,25]),t(C,[2,26]),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,15:s,16:c,18:l,20:[1,69],21:u,23:h,24:f,25:d,26:g,27:p,28:b,31:24,32:m,34:y,36:w,37:v,41:x,44:k,45:_,46:T,47:E,50:S},t(C,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},I={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 40;case 1:case 39:return 44;case 2:case 40:return 45;case 3:case 41:return 46;case 4:case 42:return 47;case 5:case 6:case 8:case 9:case 10:case 11:case 51:case 53:case 59:break;case 7:case 74:return 5;case 12:case 29:return this.pushState("SCALE"),16;case 13:case 30:return 17;case 14:case 20:case 31:case 46:case 49:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 32:this.pushState("STATE");break;case 33:case 36:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 34:case 37:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 35:case 38:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),26;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:case 61:return this.popState(),"ID";case 47:return"STATE_DESCR";case 48:return 18;case 50:return this.popState(),this.pushState("struct"),19;case 52:return this.popState(),20;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 60:return"NOTE_TEXT";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),e.yytext=e.yytext.substr(2).trim(),30;case 64:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),30;case 65:case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return e.yytext=e.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 75:return"INVALID"}},rules:[/^(?: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,/^(?:[^\}]%%[^\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,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/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,/^(?:%%(?!\{)[^\n]*)/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]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};function O(){this.yy={}}return L.lexer=I,O.prototype=L,L.Parser=O,new O}();EB.parser=EB;const SB=EB,CB="state",AB="relation",MB="default",LB="divider",IB="[*]",OB="start",NB=IB,DB="color",PB="fill";let BB="LR",RB=[],FB={},$B={root:{relations:[],states:{},documents:{}}},jB=$B.root,zB=0,qB=0;const HB=t=>JSON.parse(JSON.stringify(t)),UB=(t,e,n)=>{if(e.stmt===AB)UB(t,e.state1,!0),UB(t,e.state2,!1);else if(e.stmt===CB&&("[*]"===e.id?(e.id=n?t.id+"_start":t.id+"_end",e.start=n):e.id=e.id.trim()),e.doc){const t=[];let n,i=[];for(n=0;n0&&i.length>0){const n={stmt:CB,id:tf(),type:"divider",doc:HB(i)};t.push(HB(n)),e.doc=t}e.doc.forEach((t=>UB(e,t,!0)))}},GB=function(t,e=MB,n=null,i=null,r=null,a=null,o=null,s=null){const c=null==t?void 0:t.trim();void 0===jB.states[c]?(l.info("Adding state ",c,i),jB.states[c]={id:c,descriptions:[],type:e,doc:n,note:r,classes:[],styles:[],textStyles:[]}):(jB.states[c].doc||(jB.states[c].doc=n),jB.states[c].type||(jB.states[c].type=e)),i&&(l.info("Setting state description",c,i),"string"==typeof i&&QB(c,i.trim()),"object"==typeof i&&i.forEach((t=>QB(c,t.trim())))),r&&(jB.states[c].note=r,jB.states[c].note.text=Bc.sanitizeText(jB.states[c].note.text,sg())),a&&(l.info("Setting state classes",c,a),("string"==typeof a?[a]:a).forEach((t=>JB(c,t.trim())))),o&&(l.info("Setting state styles",c,o),("string"==typeof o?[o]:o).forEach((t=>tR(c,t.trim())))),s&&(l.info("Setting state styles",c,o),("string"==typeof s?[s]:s).forEach((t=>eR(c,t.trim()))))},KB=function(t){$B={root:{relations:[],states:{},documents:{}}},jB=$B.root,zB=0,FB={},t||Qd()},YB=function(t){return jB.states[t]};function VB(t=""){let e=t;return t===IB&&(zB++,e=`${OB}${zB}`),e}function WB(t="",e=MB){return t===IB?OB:e}const XB=function(t,e,n){if("object"==typeof t)!function(t,e,n){let i=VB(t.id.trim()),r=WB(t.id.trim(),t.type),a=VB(e.id.trim()),o=WB(e.id.trim(),e.type);GB(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),GB(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),jB.relations.push({id1:i,id2:a,relationTitle:Bc.sanitizeText(n,sg())})}(t,e,n);else{const i=VB(t.trim()),r=WB(t),a=function(t=""){let e=t;return t===NB&&(zB++,e=`end${zB}`),e}(e.trim()),o=function(t="",e=MB){return t===NB?"end":e}(e);GB(i,r),GB(a,o),jB.relations.push({id1:i,id2:a,title:Bc.sanitizeText(n,sg())})}},QB=function(t,e){const n=jB.states[t],i=e.startsWith(":")?e.replace(":","").trim():e;n.descriptions.push(Bc.sanitizeText(i,sg()))},ZB=function(t,e=""){void 0===FB[t]&&(FB[t]={id:t,styles:[],textStyles:[]});const n=FB[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(DB)){const t=e.replace(PB,"bgFill").replace(DB,PB);n.textStyles.push(t)}n.styles.push(e)}))},JB=function(t,e){t.split(",").forEach((function(t){let n=YB(t);if(void 0===n){const e=t.trim();GB(e),n=YB(e)}n.classes.push(e)}))},tR=function(t,e){const n=YB(t);void 0!==n&&n.textStyles.push(e)},eR=function(t,e){const n=YB(t);void 0!==n&&n.textStyles.push(e)},nR={getConfig:()=>sg().state,addState:GB,clear:KB,getState:YB,getStates:function(){return jB.states},getRelations:function(){return jB.relations},getClasses:function(){return FB},getDirection:()=>BB,addRelation:XB,getDividerId:()=>(qB++,"divider-id-"+qB),setDirection:t=>{BB=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){l.info("Documents = ",$B)},getRootDoc:()=>RB,setRootDoc:t=>{l.info("Setting root doc",t),RB=t},getRootDocV2:()=>(UB({id:"root"},{id:"root",doc:RB},!0),{id:"root",doc:RB}),extract:t=>{let e;e=t.doc?t.doc:t,l.info(e),KB(!0),l.info("Extract",e),e.forEach((t=>{switch(t.stmt){case CB:GB(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case AB:XB(t.state1,t.state2,t.description);break;case"classDef":ZB(t.id.trim(),t.classes);break;case"applyClass":JB(t.id.trim(),t.styleClass)}}))},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:Jd,setAccTitle:Zd,getAccDescription:eg,setAccDescription:tg,addStyleClass:ZB,setCssClass:JB,addDescription:QB,setDiagramTitle:ng,getDiagramTitle:ig},iR=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,rR={},aR=(t,e,n)=>{const i=sg().state.padding,r=2*sg().state.padding,a=t.node().getBBox(),o=a.width,s=a.x,c=t.append("text").attr("x",0).attr("y",sg().state.titleShift).attr("font-size",sg().state.fontSize).attr("class","state-title").text(e.id),l=c.node().getBBox().width+r;let u,h=Math.max(l,o);h===o&&(h+=r);const f=t.node().getBBox();e.doc,u=s-i,l>o&&(u=(o-h)/2+i),Math.abs(s-f.x)o&&(u=s-(l-o)/2);const d=1-sg().state.textHeight;return t.insert("rect",":first-child").attr("x",u).attr("y",d).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+sg().state.textHeight+sg().state.titleShift+1).attr("rx","0"),c.attr("x",u+i),l<=o&&c.attr("x",s+(h-r)/2-l/2+i),t.insert("rect",":first-child").attr("x",u).attr("y",sg().state.titleShift-sg().state.textHeight-sg().state.padding).attr("width",h).attr("height",3*sg().state.textHeight).attr("rx",sg().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",sg().state.titleShift-sg().state.textHeight-sg().state.padding).attr("width",h).attr("height",f.height+3+2*sg().state.textHeight).attr("rx",sg().state.radius),t},oR=function(t,e){const n=e.id,i={id:n,label:e.id,width:0,height:0},r=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",sg().state.sizeUnit).attr("cx",sg().state.padding+sg().state.sizeUnit).attr("cy",sg().state.padding+sg().state.sizeUnit)})(r),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",sg().state.sizeUnit+sg().state.miniPadding).attr("cx",sg().state.padding+sg().state.sizeUnit+sg().state.miniPadding).attr("cy",sg().state.padding+sg().state.sizeUnit+sg().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",sg().state.sizeUnit).attr("cx",sg().state.padding+sg().state.sizeUnit+2).attr("cy",sg().state.padding+sg().state.sizeUnit+2)})(r),("fork"===e.type||"join"===e.type)&&((t,e)=>{let n=sg().state.forkWidth,i=sg().state.forkHeight;if(e.parentId){let t=n;n=i,i=t}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",i).attr("x",sg().state.padding).attr("y",sg().state.padding)})(r,e),"note"===e.type&&((t,e)=>{e.attr("class","state-note");const n=e.append("rect").attr("x",0).attr("y",sg().state.padding),i=e.append("g"),{textWidth:r,textHeight:a}=((t,e,n,i)=>{let r=0;const a=i.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let o=t.replace(/\r\n/g,"
");o=o.replace(/\n/g,"
");const s=o.split(Bc.lineBreakRegex);let c=1.25*sg().state.noteMargin;for(const t of s){const e=t.trim();if(e.length>0){const t=a.append("tspan");t.text(e),0===c&&(c+=t.node().getBBox().height),r+=c,t.attr("x",0+sg().state.noteMargin),t.attr("y",0+r+1.25*sg().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:r}})(t,0,0,i);n.attr("height",a+2*sg().state.noteMargin),n.attr("width",r+2*sg().state.noteMargin)})(e.note.text,r),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",sg().state.textHeight).attr("class","divider").attr("x2",2*sg().state.textHeight).attr("y1",0).attr("y2",0)})(r),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const n=t.append("text").attr("x",2*sg().state.padding).attr("y",sg().state.textHeight+2*sg().state.padding).attr("font-size",sg().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",sg().state.padding).attr("y",sg().state.padding).attr("width",n.width+2*sg().state.padding).attr("height",n.height+2*sg().state.padding).attr("rx",sg().state.radius)})(r,e),"default"===e.type&&e.descriptions.length>0&&((t,e)=>{const n=t.append("text").attr("x",2*sg().state.padding).attr("y",sg().state.textHeight+1.3*sg().state.padding).attr("font-size",sg().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=n.height,r=t.append("text").attr("x",sg().state.padding).attr("y",i+.4*sg().state.padding+sg().state.dividerMargin+sg().state.textHeight).attr("class","state-description");let a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,n){const i=t.append("tspan").attr("x",2*sg().state.padding).text(e);n||i.attr("dy",sg().state.textHeight)}(r,t,o),o=!1),a=!1}));const s=t.append("line").attr("x1",sg().state.padding).attr("y1",sg().state.padding+i+sg().state.dividerMargin/2).attr("y2",sg().state.padding+i+sg().state.dividerMargin/2).attr("class","descr-divider"),c=r.node().getBBox(),l=Math.max(c.width,n.width);s.attr("x2",l+3*sg().state.padding),t.insert("rect",":first-child").attr("x",sg().state.padding).attr("y",sg().state.padding).attr("width",l+2*sg().state.padding).attr("height",c.height+i+2*sg().state.padding).attr("rx",sg().state.radius)})(r,e);const a=r.node().getBBox();return i.width=a.width+2*sg().state.padding,i.height=a.height+2*sg().state.padding,((t,e)=>{rR[t]=e})(n,i),i};let sR,cR=0;const lR={},uR=t=>t?t.length*sR.fontSizeFactor:1,hR=(t,e,n,i,r,a,o)=>{const s=new dC({compound:!0,multigraph:!0});let c,u=!0;for(c=0;c{const e=t.parentElement;let n=0,i=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",n-i-8)}))):l.debug("No Node "+t+": "+JSON.stringify(s.node(t)))}));let b=p.getBBox();s.edges().forEach((function(t){void 0!==t&&void 0!==s.edge(t)&&(l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(s.edge(t))),function(t,e,n){e.points=e.points.filter((t=>!Number.isNaN(t.y)));const i=e.points,r=$o().x((function(t){return t.x})).y((function(t){return t.y})).curve(Ko),a=t.append("path").attr("d",r(i)).attr("id","edge"+cR).attr("class","transition");let o="";if(sg().state.arrowMarkerAbsolute&&(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,o=o.replace(/\(/g,"\\("),o=o.replace(/\)/g,"\\)")),a.attr("marker-end","url("+o+"#"+function(t){switch(t){case nR.relationType.AGGREGATION:return"aggregation";case nR.relationType.EXTENSION:return"extension";case nR.relationType.COMPOSITION:return"composition";case nR.relationType.DEPENDENCY:return"dependency"}}(nR.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const i=t.append("g").attr("class","stateLabel"),{x:r,y:a}=df.calcLabelPosition(e.points),o=Bc.getRows(n.title);let s=0;const c=[];let u=0,h=0;for(let t=0;t<=o.length;t++){const e=i.append("text").attr("text-anchor","middle").text(o[t]).attr("x",r).attr("y",a+s),n=e.node().getBBox();u=Math.max(u,n.width),h=Math.min(h,n.x),l.info(n.x,r,a+s),0===s&&(s=e.node().getBBox().height,l.info("Title height",s,a)),c.push(e)}let f=s*o.length;if(o.length>1){const t=(o.length-1)*s*.5;c.forEach(((e,n)=>e.attr("y",a+n*s-t))),f=s*o.length}const d=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-u/2-sg().state.padding/2).attr("y",a-f/2-sg().state.padding/2-3.5).attr("width",u+sg().state.padding).attr("height",f+sg().state.padding),l.info(d)}cR++}(e,s.edge(t),s.edge(t).relation))})),b=p.getBBox();const m={id:n||"root",label:n||"root",width:0,height:0};return m.width=b.width+2*sR.padding,m.height=b.height+2*sR.padding,l.debug("Doc rendered",m,s),m},fR=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:SB,db:nR,renderer:{setConf:function(){},draw:function(t,e,n,i){sR=sg().state;const r=sg().securityLevel;let a;"sandbox"===r&&(a=ee("#i"+e));const o=ee("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),s="sandbox"===r?a.nodes()[0].contentDocument:document;l.debug("Rendering diagram "+t);const c=o.select(`[id='${e}']`);!function(t){t.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")}(c);const u=i.db.getRootDoc();hR(u,c,void 0,!1,o,s,i);const h=sR.padding,f=c.node().getBBox(),d=f.width+2*h,g=f.height+2*h;Ud(c,g,1.75*d,sR.useMaxWidth),c.attr("viewBox",`${f.x-sR.padding} ${f.y-sR.padding} `+d+" "+g)}},styles:iR,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,nR.clear()}}},Symbol.toStringTag,{value:"Module"})),dR="rect",gR="rectWithTitle",pR="statediagram",bR=`${pR}-state`,mR="transition",yR=`${mR} note-edge`,wR=`${pR}-note`,vR=`${pR}-cluster`,xR=`${pR}-cluster-alt`,kR="parent",_R="note",TR="----",ER=`${TR}${_R}`,SR=`${TR}${kR}`,CR="fill:none",AR="fill: #333",MR="text",LR="normal";let IR={},OR=0;function NR(t="",e=0,n="",i=TR){return`state-${t}${null!==n&&n.length>0?`${i}${n}`:""}-${e}`}const DR=(t,e,n,i,r,a)=>{const o=n.id,s=function(t){return null==t?"":t.classes?t.classes.join(" "):""}(i[o]);if("root"!==o){let e=dR;!0===n.start&&(e="start"),!1===n.start&&(e="end"),n.type!==MB&&(e=n.type),IR[o]||(IR[o]={id:o,shape:e,description:Bc.sanitizeText(o,sg()),classes:`${s} ${bR}`});const i=IR[o];n.description&&(Array.isArray(i.description)?(i.shape=gR,i.description.push(n.description)):i.description.length>0?(i.shape=gR,i.description===o?i.description=[n.description]:i.description=[i.description,n.description]):(i.shape=dR,i.description=n.description),i.description=Bc.sanitizeTextOrArray(i.description,sg())),1===i.description.length&&i.shape===gR&&(i.shape=dR),!i.type&&n.doc&&(l.info("Setting cluster for ",o,BR(n)),i.type="group",i.dir=BR(n),i.shape=n.type===LB?"divider":"roundedWithTitle",i.classes=i.classes+" "+vR+" "+(a?xR:""));const r={labelStyle:"",shape:i.shape,labelText:i.description,classes:i.classes,style:"",id:o,dir:i.dir,domId:NR(o,OR),type:i.type,padding:15,centerLabel:!0};if(n.note){const e={labelStyle:"",shape:"note",labelText:n.note.text,classes:wR,style:"",id:o+ER+"-"+OR,domId:NR(o,OR,_R),type:i.type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:i.classes,style:"",id:o+SR,domId:NR(o,OR,kR),type:"group",padding:0};OR++;const s=o+SR;t.setNode(s,a),t.setNode(e.id,e),t.setNode(o,r),t.setParent(o,s),t.setParent(e.id,s);let c=o,l=e.id;"left of"===n.note.position&&(c=e.id,l=o),t.setEdge(c,l,{arrowhead:"none",arrowType:"",style:CR,labelStyle:"",classes:yR,arrowheadStyle:AR,labelpos:"c",labelType:MR,thickness:LR})}else t.setNode(o,r)}e&&"root"!==e.id&&(l.trace("Setting node ",o," to be child of its parent ",e.id),t.setParent(o,e.id)),n.doc&&(l.trace("Adding nodes children "),PR(t,n,n.doc,i,r,!a))},PR=(t,e,n,i,r,a)=>{l.trace("items",n),n.forEach((n=>{switch(n.stmt){case CB:case MB:DR(t,e,n,i,r,a);break;case AB:{DR(t,e,n.state1,i,r,a),DR(t,e,n.state2,i,r,a);const o={id:"edge"+OR,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:CR,labelStyle:"",label:Bc.sanitizeText(n.description,sg()),arrowheadStyle:AR,labelpos:"c",labelType:MR,thickness:LR,classes:mR};t.setEdge(n.state1.id,n.state2.id,o,OR),OR++}}}))},BR=(t,e="TB")=>{let n=e;if(t.doc)for(let e=0;e{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,nR.clear()}}},Symbol.toStringTag,{value:"Module"}));var FR=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,8,10,11,12,14,16,17,18],n=[1,9],i=[1,10],r=[1,11],a=[1,12],o=[1,13],s=[1,14],c={trace:function(){},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:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:return a[s-1];case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 8:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 12:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:i.addTask(a[s-1],a[s]),this.$="task"}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:r,16:a,17:o,18:s},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:i,14:r,16:a,17:o,18:s},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;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"}},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}}};function u(){this.yy={}}return c.lexer=l,u.prototype=c,c.Parser=u,new u}();FR.parser=FR;const $R=FR;let jR="";const zR=[],qR=[],HR=[],UR=function(){const t=function(t){return HR[t].processed};let e=!0;for(const[n,i]of HR.entries())t(n),e=e&&i.processed;return e},GR={getConfig:()=>sg().journey,clear:function(){zR.length=0,qR.length=0,jR="",HR.length=0,Qd()},setDiagramTitle:ng,getDiagramTitle:ig,setAccTitle:Zd,getAccTitle:Jd,setAccDescription:tg,getAccDescription:eg,addSection:function(t){jR=t,zR.push(t)},getSections:function(){return zR},getTasks:function(){let t=UR(),e=0;for(;!t&&e<100;)t=UR(),e++;return qR.push(...HR),qR},addTask:function(t,e){const n=e.substr(1).split(":");let i=0,r=[];1===n.length?(i=Number(n[0]),r=[]):(i=Number(n[0]),r=n[1].split(","));const a=r.map((t=>t.trim())),o={section:jR,type:jR,people:a,task:t,score:i};HR.push(o)},addTaskOrg:function(t){const e={section:jR,type:jR,description:t,task:t,classes:[]};qR.push(e)},getActors:function(){return function(){const t=[];return qR.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()}()}},KR=function(t,e){return kk(t,e)},YR=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n};let VR=-1;const WR=function(){function t(t,e,n,r,a,o,s,c){i(e.append("text").attr("x",n+a/2).attr("y",r+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,a,o,s,c,l){const{taskFontSize:u,taskFontFamily:h}=c,f=t.split(//gi);for(let t=0;t{const n=e.text.replace(wc," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i})(t,e)},JR=function(t,e,n){const i=e.x+n.width/2,r=t.append("g");VR++,r.append("line").attr("id","task"+VR).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(t,e){t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");const n=t.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?function(t){const n=No().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(n):e.score<3?function(t){const n=No().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(n):n.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(r,{cx:i,cy:300+30*(5-e.score),score:e.score});const a={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,KR(r,a);let o=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:o,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};YR(r,i),o+=10})),WR(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},tF={},eF=sg().journey,nF=eF.leftMargin,iF={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=sg().journey,a=this;let o=0;this.sequenceItems.forEach((function(s){o++;const c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*r.boxMargin,Math.min),a.updateVal(s,"stopy",i+c*r.boxMargin,Math.max),a.updateVal(iF.data,"startx",t-c*r.boxMargin,Math.min),a.updateVal(iF.data,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(s,"startx",t-c*r.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(iF.data,"starty",e-c*r.boxMargin,Math.min),a.updateVal(iF.data,"stopy",i+c*r.boxMargin,Math.max)}))},insert:function(t,e,n,i){const r=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,i),s=Math.max(e,i);this.updateVal(iF.data,"startx",r,Math.min),this.updateVal(iF.data,"starty",o,Math.min),this.updateVal(iF.data,"stopx",a,Math.max),this.updateVal(iF.data,"stopy",s,Math.max),this.updateBounds(r,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},rF=eF.sectionFills,aF=eF.sectionColours,oF={setConf:function(t){Object.keys(t).forEach((function(e){eF[e]=t[e]}))},draw:function(t,e,n,i){const r=sg().journey,a=sg().securityLevel;let o;"sandbox"===a&&(o=ee("#i"+e));const s=ee("sandbox"===a?o.nodes()[0].contentDocument.body:"body");iF.init();const c=s.select("#"+e);!function(t){t.append("defs").append("marker").attr("id","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")}(c);const l=i.db.getTasks(),u=i.db.getDiagramTitle(),h=i.db.getActors();for(const t in tF)delete tF[t];let f=0;h.forEach((t=>{tF[t]={color:r.actorColours[f%r.actorColours.length],position:f},f++})),function(t){const e=sg().journey;let n=60;Object.keys(tF).forEach((i=>{const r=tF[i].color,a={cx:20,cy:n,r:7,fill:r,stroke:"#000",pos:tF[i].position};XR(t,a);const o={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};ZR(t,o),n+=20}))}(c),iF.insert(0,0,nF,50*Object.keys(tF).length),function(t,e,n){const i=sg().journey;let r="";const a=n+(2*i.height+i.diagramMarginY);let o=0,s="#CCC",c="black",l=0;for(const[n,u]of e.entries()){if(r!==u.section){s=rF[o%rF.length],l=o%rF.length,c=aF[o%aF.length];let a=0;const h=u.section;for(let t=n;t(tF[e]&&(t[e]=tF[e]),t)),{});u.x=n*i.taskMargin+n*i.width+nF,u.y=a,u.width=i.diagramMarginX,u.height=i.diagramMarginY,u.colour=c,u.fill=s,u.num=l,u.actors=h,JR(t,u,i),iF.insert(u.x,u.y,u.x+u.width+i.taskMargin,450)}}(c,l,0);const d=iF.getBounds();u&&c.append("text").text(u).attr("x",nF).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const g=d.stopy-d.starty+2*r.diagramMarginY,p=nF+d.stopx+2*r.diagramMarginX;Ud(c,g,p,r.useMaxWidth),c.append("line").attr("x1",nF).attr("y1",4*r.height).attr("x2",p-nF-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const b=u?70:0;c.attr("viewBox",`${d.startx} -25 ${p} ${g+b}`),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",g+b+25)}},sF=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:$R,db:GR,renderer:oF,styles:t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,init:t=>{oF.setConf(t.journey),GR.clear()}}},Symbol.toStringTag,{value:"Module"}));function cF(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lF={exports:{}};!function(t,e){t.exports=function t(e,n,i){function r(o,s){if(!n[o]){if(!e[o]){if(!s&&cF)return cF(o);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,(function(t){return r(e[o][1][t]||t)}),l,l.exports,t,e,n,i)}return n[o].exports}for(var a=cF,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=n.defaultLayoutOptions,a=void 0===i?{}:i,s=n.algorithms,c=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,l=n.workerFactory,u=n.workerUrl;if(r(this,t),this.defaultLayoutOptions=a,this.initialized=!1,typeof u>"u"&&typeof l>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var h=l;typeof u<"u"&&typeof l>"u"&&(h=function(t){return new Worker(t)});var f=h(u);if("function"!=typeof f.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new o(f),this.worker.postMessage({cmd:"register",algorithms:c}).then((function(t){return e.initialized=!0})).catch(console.err)}return i(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,i=void 0===n?this.defaultLayoutOptions:n,r=e.logging,a=void 0!==r&&r,o=e.measureExecutionTime,s=void 0!==o&&o;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:i,options:{logging:a,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=a;var o=function(){function t(e){var n=this;if(r(this,t),void 0===e)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}return i(t,[{key:"postMessage",value:function(t){var e=this.id||0;this.id=e+1,t.id=e;var n=this;return new Promise((function(i,r){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),r(t)):i(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,i=t.resolvers[n.id];i&&(delete t.resolvers[n.id],n.error?i(n.error):i(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(t){if(t){var e=t.__java$exception;e&&(e.cause&&e.cause.backingJsObject&&(t.cause=e.cause.backingJsObject,this.convertGwtStyleError(t.cause)),delete t.__java$exception)}}}]),t}()},{}],2:[function(t,e,n){(function(t){(function(){var i;function r(){}function a(){}function o(){}function s(){}function c(){}function l(){}function u(){}function h(){}function f(){}function d(){}function g(){}function p(){}function b(){}function m(){}function y(){}function w(){}function v(){}function x(){}function k(){}function _(){}function T(){}function E(){}function S(){}function C(){}function A(){}function M(){}function L(){}function I(){}function O(){}function N(){}function D(){}function P(){}function B(){}function R(){}function F(){}function $(){}function j(){}function z(){}function q(){}function H(){}function U(){}function G(){}function K(){}function Y(){}function V(){}function W(){}function X(){}function Q(){}function Z(){}function J(){}function tt(){}function et(){}function nt(){}function it(){}function rt(){}function at(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function ht(){}function ft(){}function dt(){}function gt(){}function pt(){}function bt(){}function mt(){}function yt(){}function wt(){}function vt(){}function xt(){}function kt(){}function _t(){}function Tt(){}function Et(){}function St(){}function Ct(){}function At(){}function Mt(){}function Lt(){}function It(){}function Ot(){}function Nt(){}function Dt(){}function Pt(){}function Bt(){}function Rt(){}function Ft(){}function $t(){}function jt(){}function zt(){}function qt(){}function Ht(){}function Ut(){}function Gt(){}function Kt(){}function Yt(){}function Vt(){}function Wt(){}function Xt(){}function Qt(){}function Zt(){}function Jt(){}function te(){}function ee(){}function ne(){}function ie(){}function re(){}function ae(){}function oe(){}function se(){}function ce(){}function le(){}function ue(){}function he(){}function fe(){}function de(){}function ge(){}function pe(){}function be(){}function me(){}function ye(){}function we(){}function ve(){}function xe(){}function ke(){}function _e(){}function Te(){}function Ee(){}function Se(){}function Ce(){}function Ae(){}function Me(){}function Le(){}function Ie(){}function Oe(){}function Ne(){}function De(){}function Pe(){}function Be(){}function Re(){}function Fe(){}function $e(){}function je(){}function ze(){}function qe(){}function He(){}function Ue(){}function Ge(){}function Ke(){}function Ye(){}function Ve(){}function We(){}function Xe(){}function Qe(){}function Ze(){}function Je(){}function tn(){}function en(){}function nn(){}function rn(){}function an(){}function on(){}function sn(){}function cn(){}function ln(){}function un(){}function hn(){}function fn(){}function dn(){}function gn(){}function pn(){}function bn(){}function mn(){}function yn(){}function wn(){}function vn(){}function xn(){}function kn(){}function _n(){}function Tn(){}function En(){}function Sn(){}function Cn(){}function An(){}function Mn(){}function Ln(){}function In(){}function On(){}function Nn(){}function Dn(){}function Pn(){}function Bn(){}function Rn(){}function Fn(){}function $n(){}function jn(){}function zn(){}function qn(){}function Hn(){}function Un(){}function Gn(){}function Kn(){}function Yn(){}function Vn(){}function Wn(){}function Xn(){}function Qn(){}function Zn(){}function Jn(){}function ti(){}function ei(){}function ni(){}function ii(){}function ri(){}function ai(){}function oi(){}function si(){}function ci(){}function li(){}function ui(){}function hi(){}function fi(){}function di(){}function gi(){}function pi(){}function bi(){}function mi(){}function yi(){}function wi(){}function vi(){}function xi(){}function ki(){}function _i(){}function Ti(){}function Ei(){}function Si(){}function Ci(){}function Ai(){}function Mi(){}function Li(){}function Ii(){}function Oi(){}function Ni(){}function Di(){}function Pi(){}function Bi(){}function Ri(){}function Fi(){}function $i(){}function ji(){}function zi(){}function qi(){}function Hi(){}function Ui(){}function Gi(){}function Ki(){}function Yi(){}function Vi(){}function Wi(){}function Xi(){}function Qi(){}function Zi(){}function Ji(){}function tr(){}function er(){}function nr(){}function ir(){}function rr(){}function ar(){}function or(){}function sr(){}function cr(){}function lr(){}function ur(){}function hr(){}function fr(){}function dr(){}function gr(){}function pr(){}function br(){}function mr(){}function yr(){}function wr(){}function vr(){}function xr(){}function kr(){}function _r(){}function Tr(){}function Er(){}function Sr(){}function Cr(){}function Ar(){}function Mr(){}function Lr(){}function Ir(){}function Or(){}function Nr(){}function Dr(){}function Pr(){}function Br(){}function Rr(){}function Fr(){}function $r(){}function jr(){}function zr(){}function qr(){}function Hr(){}function Ur(){}function Gr(){}function Kr(){}function Yr(){}function Vr(){}function Wr(){}function Xr(){}function Qr(){}function Zr(){}function Jr(){}function ta(){}function ea(){}function na(){}function ia(){}function ra(){}function aa(){}function oa(){}function sa(){}function ca(){}function la(){}function ua(){}function ha(){}function fa(){}function da(){}function ga(){}function pa(){}function ba(){}function ma(){}function ya(){}function wa(){}function va(){}function xa(){}function ka(){}function _a(){}function Ta(){}function Ea(){}function Sa(){}function Ca(){}function Aa(){}function Ma(){}function La(){}function Ia(){}function Oa(){}function Na(){}function Da(){}function Pa(){}function Ba(){}function Ra(){}function Fa(){}function $a(){}function ja(){}function za(){}function qa(){}function Ha(){}function Ua(){}function Ga(){}function Ka(){}function Ya(){}function Va(){}function Wa(){}function Xa(){}function Qa(){}function Za(){}function Ja(){}function to(){}function eo(){}function no(){}function io(){}function ro(){}function ao(){}function oo(){}function so(){}function co(){}function lo(){}function uo(){}function ho(){}function fo(){}function go(){}function po(){}function bo(){}function mo(){}function yo(){}function wo(){}function vo(){}function xo(){}function ko(){}function _o(){}function To(){}function Eo(){}function So(){}function Co(){}function Ao(){}function Mo(){}function Lo(){}function Io(){}function Oo(){}function No(){}function Do(){}function Po(){}function Bo(){}function Ro(){}function Fo(){}function $o(){}function jo(){}function zo(){}function qo(){}function Ho(){}function Uo(){}function Go(){}function Ko(){}function Yo(){}function Vo(){}function Wo(){}function Xo(){}function Qo(){}function Zo(){}function Jo(){}function ts(){}function es(){}function ns(){}function is(){}function rs(){}function as(){}function os(){}function ss(){}function cs(){}function ls(){}function us(){}function hs(){}function fs(){}function ds(){}function gs(){}function ps(){}function bs(){}function ms(){}function ys(){}function ws(){}function vs(){}function xs(){}function ks(){}function _s(){}function Ts(){}function Es(){}function Ss(){}function Cs(){}function As(){}function Ms(){}function Ls(){}function Is(){}function Os(){}function Ns(){}function Ds(){}function Ps(){}function Bs(){}function Rs(){}function Fs(){}function $s(){}function js(){}function zs(){}function qs(){}function Hs(){}function Us(){}function Gs(){}function Ks(){}function Ys(){}function Vs(){}function Ws(){}function Xs(){}function Qs(){}function Zs(){}function Js(){}function tc(){}function ec(){}function nc(){}function ic(){}function rc(){}function ac(){}function oc(){}function sc(){}function cc(){}function lc(){}function uc(){}function hc(){}function fc(){}function dc(){}function gc(){}function pc(){}function bc(){}function mc(){}function yc(){}function wc(){}function vc(){}function xc(){}function kc(){}function _c(){}function Tc(){}function Ec(){}function Sc(){}function Cc(){}function Ac(){}function Mc(){}function Lc(){}function Ic(){}function Oc(){}function Nc(){}function Dc(){}function Pc(){}function Bc(){}function Rc(){}function Fc(){}function $c(){}function jc(){}function zc(){}function qc(){}function Hc(){}function Uc(){}function Gc(){}function Kc(){}function Yc(){}function Vc(){}function Wc(){}function Xc(){}function Qc(){}function Zc(){}function Jc(){}function tl(){}function el(){}function nl(){}function il(){}function rl(){}function al(){}function ol(){}function sl(){}function cl(){}function ll(){}function ul(){}function hl(){}function fl(){}function dl(){}function gl(){}function pl(){}function bl(){}function ml(){}function yl(){}function wl(){}function vl(){}function xl(){}function kl(){}function _l(){}function Tl(){}function El(){}function Sl(){}function Cl(){}function Al(){}function Ml(){}function Ll(){}function Il(){}function Ol(){}function Nl(){}function Dl(){}function Pl(){}function Bl(){}function Rl(){}function Fl(){}function $l(){}function jl(){}function zl(){}function ql(){}function Hl(){}function Ul(){}function Gl(){}function Kl(){}function Yl(){}function Vl(){}function Wl(){}function Xl(){}function Ql(){}function Zl(){}function Jl(){}function tu(){}function eu(){}function nu(){}function iu(){}function ru(){}function au(){}function ou(){}function su(){}function cu(){}function lu(){}function uu(){}function hu(){}function fu(){}function du(){}function gu(){}function pu(){}function bu(){}function mu(){}function yu(){}function wu(){}function vu(){}function xu(){}function ku(){}function _u(){}function Tu(){}function Eu(){}function Su(){}function Cu(){}function Au(){}function Mu(){}function Lu(){}function Iu(){}function Ou(){}function Nu(){}function Du(){}function Pu(){}function Bu(){}function Ru(){}function Fu(){}function $u(){}function ju(){}function zu(){}function qu(){}function Hu(){}function Uu(){}function Gu(){}function Ku(){}function Yu(){}function Vu(){}function Wu(){}function Xu(){}function Qu(){}function Zu(){}function Ju(){}function th(){}function eh(){}function nh(){}function ih(){}function rh(){}function ah(){}function oh(){}function sh(){}function ch(){}function lh(){}function uh(){}function hh(){}function fh(){}function dh(){}function gh(){}function ph(){}function bh(){}function mh(){}function yh(){}function wh(){}function vh(){}function xh(){}function kh(){}function _h(){}function Th(){}function Eh(){}function Sh(){}function Ch(){}function Ah(){}function Mh(){}function Lh(){}function Ih(){}function Oh(){}function Nh(){Ev()}function Dh(){pE()}function Ph(){Vst()}function Bh(){Q8()}function Rh(){Hrt()}function Fh(){rht()}function $h(){Evt()}function jh(){ust()}function zh(){Tst()}function qh(){bE()}function Hh(){dR()}function Uh(){mE()}function Gh(){f5()}function Kh(){hZ()}function Yh(){M4()}function Vh(){VK()}function Wh(){I4()}function Xh(){aJ()}function Qh(){KK()}function Zh(){x8()}function Jh(){N4()}function tf(){O4()}function ef(){XV()}function nf(){D4()}function rf(){Mut()}function af(){wE()}function of(){HEt()}function sf(){CEt()}function cf(){P4()}function lf(){g5()}function uf(){WK()}function hf(){gst()}function ff(){QK()}function df(){tvt()}function gf(){Lgt()}function pf(){b2()}function bf(){qtt()}function mf(){axt()}function yf(){SY()}function wf(){p2()}function vf(){Ewt()}function xf(){pht()}function kf(){Cwt()}function _f(){ayt()}function Tf(){but()}function Ef(){Lyt()}function Sf(){qat()}function Cf(){QB()}function Af(){EJ()}function Mf(){mut()}function Lf(){zEt()}function If(){k8()}function Of(){rit()}function Nf(){p5()}function Df(){Jxt()}function Pf(){Fvt()}function Bf(t){yH(t)}function Rf(t){this.a=t}function Ff(t){this.a=t}function $f(t){this.a=t}function jf(t){this.a=t}function zf(t){this.a=t}function qf(t){this.a=t}function Hf(t){this.a=t}function Uf(t){this.a=t}function Gf(t){this.a=t}function Kf(t){this.a=t}function Yf(t){this.a=t}function Vf(t){this.a=t}function Wf(t){this.a=t}function Xf(t){this.a=t}function Qf(t){this.a=t}function Zf(t){this.a=t}function Jf(t){this.a=t}function td(t){this.a=t}function ed(t){this.a=t}function nd(t){this.a=t}function id(t){this.a=t}function rd(t){this.a=t}function ad(t){this.b=t}function od(t){this.c=t}function sd(t){this.a=t}function cd(t){this.a=t}function ld(t){this.a=t}function ud(t){this.a=t}function hd(t){this.a=t}function fd(t){this.a=t}function dd(t){this.a=t}function gd(t){this.a=t}function pd(t){this.a=t}function bd(t){this.a=t}function md(t){this.a=t}function yd(t){this.a=t}function wd(t){this.a=t}function vd(t){this.a=t}function xd(t){this.a=t}function kd(t){this.a=t}function _d(t){this.a=t}function Td(){this.a=[]}function Ed(t,e){t.a=e}function Sd(t,e){t.j=e}function Cd(t,e){t.c=e}function Ad(t,e){t.d=e}function Md(t,e){t.k=e}function Ld(t,e){t.c=e}function Id(t,e){t.a=e}function Od(t,e){t.a=e}function Nd(t,e){t.f=e}function Dd(t,e){t.a=e}function Pd(t,e){t.b=e}function Bd(t,e){t.d=e}function Rd(t,e){t.i=e}function Fd(t,e){t.o=e}function $d(t,e){t.e=e}function jd(t,e){t.g=e}function zd(t,e){t.e=e}function qd(t,e){t.f=e}function Hd(t,e){t.f=e}function Ud(t,e){t.a=e}function Gd(t,e){t.b=e}function Kd(t,e){t.n=e}function Yd(t){t.b=t.a}function Vd(t){t.c=t.d.d}function Wd(t){this.a=t}function Xd(t){this.a=t}function Qd(t){this.a=t}function Zd(t){this.a=t}function Jd(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function ig(t){this.a=t}function rg(t){this.a=t}function ag(t){this.a=t}function og(t){this.a=t}function sg(t){this.a=t}function cg(t){this.a=t}function lg(t){this.b=t}function ug(t){this.b=t}function hg(t){this.b=t}function fg(t){this.a=t}function dg(t){this.a=t}function gg(t){this.c=t}function pg(t){this.c=t}function bg(t){this.c=t}function mg(t){this.d=t}function yg(t){this.a=t}function wg(t){this.a=t}function vg(t){this.a=t}function xg(t){this.a=t}function kg(t){this.a=t}function _g(t){this.a=t}function Tg(t){this.a=t}function Eg(t){this.a=t}function Sg(t){this.a=t}function Cg(t){this.a=t}function Ag(t){this.a=t}function Mg(t){this.a=t}function Lg(t){this.a=t}function Ig(t){this.a=t}function Og(t){this.a=t}function Ng(t){this.a=t}function Dg(t){this.a=t}function Pg(t){this.a=t}function Bg(t){this.a=t}function Rg(t){this.a=t}function Fg(t){this.a=t}function $g(t){this.a=t}function jg(t){this.a=t}function zg(t){this.a=t}function qg(t){this.a=t}function Hg(t){this.a=t}function Ug(t){this.a=t}function Gg(t){this.a=t}function Kg(t){this.a=t}function Yg(t){this.a=t}function Vg(t){this.a=t}function Wg(t){this.a=t}function Xg(t){this.a=t}function Qg(t){this.a=t}function Zg(t){this.a=t}function Jg(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function ip(t){this.a=t}function rp(t){this.a=t}function ap(t){this.a=t}function op(t){this.a=t}function sp(t){this.a=t}function cp(t){this.a=t}function lp(t){this.a=t}function up(t){this.a=t}function hp(t){this.a=t}function fp(t){this.e=t}function dp(t){this.a=t}function gp(t){this.a=t}function pp(t){this.a=t}function bp(t){this.a=t}function mp(t){this.a=t}function yp(t){this.a=t}function wp(t){this.a=t}function vp(t){this.a=t}function xp(t){this.a=t}function kp(t){this.a=t}function _p(t){this.a=t}function Tp(t){this.a=t}function Ep(t){this.a=t}function Sp(t){this.a=t}function Cp(t){this.a=t}function Ap(t){this.a=t}function Mp(t){this.a=t}function Lp(t){this.a=t}function Ip(t){this.a=t}function Op(t){this.a=t}function Np(t){this.a=t}function Dp(t){this.a=t}function Pp(t){this.a=t}function Bp(t){this.a=t}function Rp(t){this.a=t}function Fp(t){this.a=t}function $p(t){this.a=t}function jp(t){this.a=t}function zp(t){this.a=t}function qp(t){this.a=t}function Hp(t){this.a=t}function Up(t){this.a=t}function Gp(t){this.a=t}function Kp(t){this.a=t}function Yp(t){this.a=t}function Vp(t){this.a=t}function Wp(t){this.a=t}function Xp(t){this.a=t}function Qp(t){this.a=t}function Zp(t){this.a=t}function Jp(t){this.a=t}function tb(t){this.a=t}function eb(t){this.a=t}function nb(t){this.a=t}function ib(t){this.a=t}function rb(t){this.a=t}function ab(t){this.a=t}function ob(t){this.a=t}function sb(t){this.a=t}function cb(t){this.a=t}function lb(t){this.a=t}function ub(t){this.a=t}function hb(t){this.a=t}function fb(t){this.a=t}function db(t){this.c=t}function gb(t){this.b=t}function pb(t){this.a=t}function bb(t){this.a=t}function mb(t){this.a=t}function yb(t){this.a=t}function wb(t){this.a=t}function vb(t){this.a=t}function xb(t){this.a=t}function kb(t){this.a=t}function _b(t){this.a=t}function Tb(t){this.a=t}function Eb(t){this.a=t}function Sb(t){this.a=t}function Cb(t){this.a=t}function Ab(t){this.a=t}function Mb(t){this.a=t}function Lb(t){this.a=t}function Ib(t){this.a=t}function Ob(t){this.a=t}function Nb(t){this.a=t}function Db(t){this.a=t}function Pb(t){this.a=t}function Bb(t){this.a=t}function Rb(t){this.a=t}function Fb(t){this.a=t}function $b(t){this.a=t}function jb(t){this.a=t}function zb(t){this.a=t}function qb(t){this.a=t}function Hb(t){this.a=t}function Ub(t){this.a=t}function Gb(t){this.a=t}function Kb(t){this.a=t}function Yb(t){this.a=t}function Vb(t){this.a=t}function Wb(t){this.a=t}function Xb(t){this.a=t}function Qb(t){this.a=t}function Zb(t){this.a=t}function Jb(t){this.a=t}function tm(t){this.a=t}function em(t){this.a=t}function nm(t){this.a=t}function im(t){this.a=t}function rm(t){this.a=t}function am(t){this.a=t}function om(t){this.a=t}function sm(t){this.a=t}function cm(t){this.a=t}function lm(t){this.a=t}function um(t){this.a=t}function hm(t){this.a=t}function fm(t){this.a=t}function dm(t){this.a=t}function gm(t){this.a=t}function pm(t){this.a=t}function bm(t){this.a=t}function mm(t){this.f=t}function ym(t){this.a=t}function wm(t){this.a=t}function vm(t){this.a=t}function xm(t){this.a=t}function km(t){this.a=t}function _m(t){this.a=t}function Tm(t){this.a=t}function Em(t){this.a=t}function Sm(t){this.a=t}function Cm(t){this.a=t}function Am(t){this.a=t}function Mm(t){this.a=t}function Lm(t){this.a=t}function Im(t){this.a=t}function Om(t){this.a=t}function Nm(t){this.a=t}function Dm(t){this.a=t}function Pm(t){this.a=t}function Bm(t){this.a=t}function Rm(t){this.a=t}function Fm(t){this.a=t}function $m(t){this.a=t}function jm(t){this.a=t}function zm(t){this.a=t}function qm(t){this.a=t}function Hm(t){this.a=t}function Um(t){this.a=t}function Gm(t){this.a=t}function Km(t){this.a=t}function Ym(t){this.a=t}function Vm(t){this.b=t}function Wm(t){this.a=t}function Xm(t){this.a=t}function Qm(t){this.a=t}function Zm(t){this.a=t}function Jm(t){this.a=t}function ty(t){this.a=t}function ey(t){this.a=t}function ny(t){this.b=t}function iy(t){this.a=t}function ry(t){this.a=t}function ay(t){this.a=t}function oy(t){this.a=t}function sy(t){this.c=t}function cy(t){this.e=t}function ly(t){this.a=t}function uy(t){this.a=t}function hy(t){this.a=t}function fy(t){this.d=t}function dy(t){this.a=t}function gy(t){this.a=t}function py(t){this.a=t}function by(t){this.e=t}function my(){_z(this)}function yy(){mI(this)}function wy(){gH(this)}function vy(){}function xy(){this.c=$de}function ky(t,e){t.b+=e}function _y(t){return t.a}function Ty(t){return t.a}function Ey(t){return t.a}function Sy(t){return t.a}function Cy(t){return t.a}function Ay(t){return t.e}function My(){return null}function Ly(){return null}function Iy(t){t.b=new ik}function Oy(t,e){t.b=e-t.b}function Ny(t,e){t.a=e-t.a}function Dy(t,e){t.push(e)}function Py(t,e){t.sort(e)}function By(t,e){e.jd(t.a)}function Ry(t,e){t.e=e,e.b=t}function Fy(t){JB(),this.a=t}function $y(t){JB(),this.a=t}function jy(t){JB(),this.a=t}function zy(t){Sq(),this.a=t}function qy(t){uG(),CHt.le(t)}function Hy(){Hy=E,new my}function Uy(){kN.call(this)}function Gy(){kN.call(this)}function Ky(){Uy.call(this)}function Yy(){Uy.call(this)}function Vy(){Uy.call(this)}function Wy(){Uy.call(this)}function Xy(){Uy.call(this)}function Qy(){Uy.call(this)}function Zy(){Uy.call(this)}function Jy(){Uy.call(this)}function tw(){Uy.call(this)}function ew(){Uy.call(this)}function nw(){Uy.call(this)}function iw(){this.a=this}function rw(){this.Bb|=256}function aw(){this.b=new fL}function ow(t,e){t.length=e}function sw(t,e){SO(t.a,e)}function cw(t,e){Q5(t.e,e)}function lw(t){cgt(t.c,t.b)}function uw(t){this.a=function(t){var e;return(e=Xut(t))>34028234663852886e22?fAt:e<-34028234663852886e22?dAt:e}(t)}function hw(){this.a=new my}function fw(){this.a=new my}function dw(){this.a=new FT}function gw(){this.a=new yy}function pw(){this.a=new yy}function bw(){this.a=new yy}function mw(){this.a=new wt}function yw(){this.a=new YQ}function ww(){this.a=new he}function vw(){this.a=new UK}function xw(){this.a=new KP}function kw(){this.a=new yy}function _w(){this.a=new yy}function Tw(){this.a=new yy}function Ew(){this.a=new yy}function Sw(){this.d=new yy}function Cw(){this.a=new eV}function Aw(){this.a=new hw}function Mw(){this.a=new my}function Lw(){this.b=new my}function Iw(){this.b=new yy}function Ow(){this.e=new yy}function Nw(){this.a=new rf}function Dw(){this.d=new yy}function Pw(){_G.call(this)}function Bw(){_G.call(this)}function Rw(){yy.call(this)}function Fw(){Ky.call(this)}function $w(){gw.call(this)}function jw(){eB.call(this)}function zw(){Ew.call(this)}function qw(){vy.call(this)}function Hw(){qw.call(this)}function Uw(){vy.call(this)}function Gw(){Uw.call(this)}function Kw(){bv.call(this)}function Yw(){bv.call(this)}function Vw(){bv.call(this)}function Ww(){wv.call(this)}function Xw(){Jc.call(this)}function Qw(){Jc.call(this)}function Zw(){jT.call(this)}function Jw(){_v.call(this)}function tv(){_v.call(this)}function ev(){my.call(this)}function nv(){my.call(this)}function iv(){my.call(this)}function rv(){j4.call(this)}function av(){hw.call(this)}function ov(){rw.call(this)}function sv(){jO.call(this)}function cv(){my.call(this)}function lv(){jO.call(this)}function uv(){my.call(this)}function hv(){my.call(this)}function fv(){pl.call(this)}function dv(){fv.call(this)}function gv(){pl.call(this)}function pv(){Lh.call(this)}function bv(){this.a=new hw}function mv(){this.a=new my}function yv(){this.a=new yy}function wv(){this.a=new my}function vv(){this.a=new jT}function xv(){this.j=new yy}function kv(){this.a=new __}function _v(){this.a=new gl}function Tv(){this.a=new Ds}function Ev(){Ev=E,eHt=new a}function Sv(){Sv=E,lHt=new Mv}function Cv(){Cv=E,uHt=new Av}function Av(){Zf.call(this,"")}function Mv(){Zf.call(this,"")}function Lv(t){Z0.call(this,t)}function Iv(t){Z0.call(this,t)}function Ov(t){Gf.call(this,t)}function Nv(t){bT.call(this,t)}function Dv(t){bT.call(this,t)}function Pv(t){Nv.call(this,t)}function Bv(t){Nv.call(this,t)}function Rv(t){Nv.call(this,t)}function Fv(t){lX.call(this,t)}function $v(t){lX.call(this,t)}function jv(t){NB.call(this,t)}function zv(t){vT.call(this,t)}function qv(t){_T.call(this,t)}function Hv(t){_T.call(this,t)}function Uv(t){_T.call(this,t)}function Gv(t){nht.call(this,t)}function Kv(t){Gv.call(this,t)}function Yv(t){Fj.call(this,t)}function Vv(t){Yv.call(this,t)}function Wv(){_d.call(this,{})}function Xv(){Xv=E,PHt=new _}function Qv(){Qv=E,mHt=new hO}function Zv(){Zv=E,kHt=new r}function Jv(){Jv=E,SHt=new m}function tx(){tx=E,MHt=new v}function ex(t){WO(),this.a=t}function nx(t){d5(),this.a=t}function ix(t){sj(),this.f=t}function rx(t){sj(),this.f=t}function ax(t){XB(),this.a=t}function ox(t){t.b=null,t.c=0}function sx(t,e){t.a=e,function(t){var e,n,r;for(function(t){var e,n,r;for(n=new pg(t.a.a.b);n.a0&&(!(tI(t.a.c)&&e.n.d)&&!(eI(t.a.c)&&e.n.b)&&(e.g.d-=i.Math.max(0,r/2-.5)),(!tI(t.a.c)||!e.n.a)&&(!eI(t.a.c)||!e.n.c)&&(e.g.a+=i.Math.max(0,r-1)))}(t),r=new yy,n=new pg(t.a.a.b);n.a0&&(!(tI(t.a.c)&&e.n.d)&&!(eI(t.a.c)&&e.n.b)&&(e.g.d+=i.Math.max(0,r/2-.5)),(!tI(t.a.c)||!e.n.a)&&(!eI(t.a.c)||!e.n.c)&&(e.g.a-=r-1))}(t)}(t)}function cx(t,e,n){t.a[e.g]=n}function lx(t,e,n){!function(t,e,n){var i,r;for(uI(t,t.j+e,t.k+n),r=new zO((!t.a&&(t.a=new AO(zhe,t,5)),t.a));r.e!=r.i.gc();)oI(i=KR(Frt(r),377),i.a+e,i.b+n);lI(t,t.b+e,t.c+n)}(n,t,e)}function ux(t,e){!function(t,e){tI(t.f)?function(t,e){var n,i,r,a,o;for(a=t.g.a,o=t.g.b,i=new pg(t.d);i.a=t.length)return{done:!0};var i=t[n++];return{value:[i,e.get(i)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);return void 0===e[t]&&!(0!=Object.getOwnPropertyNames(e).length||(e[t]=42,42!==e[t])||0==Object.getOwnPropertyNames(e).length)}()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[NAt]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t}),t}()}()}function Vk(){Vk=E,khe=function(){var t,e;Jxt();try{if(e=KR(Lct(($E(),Qfe),VFt),2113))return e}catch(e){if(!rO(e=j6(e),103))throw Ay(e);t=e,aq((LI(),t))}return new nl}()}function Wk(){var t;Wk=E,_he=tfe?KR(Cpt(($E(),Qfe),VFt),2115):(t=KR(rO(ZG(($E(),Qfe),VFt),569)?ZG(Qfe,VFt):new Igt,569),tfe=!0,function(t){t.q||(t.q=!0,t.p=r6(t,0),t.a=r6(t,1),j3(t.a,0),t.f=r6(t,2),j3(t.f,1),$3(t.f,2),t.n=r6(t,3),$3(t.n,3),$3(t.n,4),$3(t.n,5),$3(t.n,6),t.g=r6(t,4),j3(t.g,7),$3(t.g,8),t.c=r6(t,5),j3(t.c,7),j3(t.c,8),t.i=r6(t,6),j3(t.i,9),j3(t.i,10),j3(t.i,11),j3(t.i,12),$3(t.i,13),t.j=r6(t,7),j3(t.j,9),t.d=r6(t,8),j3(t.d,3),j3(t.d,4),j3(t.d,5),j3(t.d,6),$3(t.d,7),$3(t.d,8),$3(t.d,9),$3(t.d,10),t.b=r6(t,9),$3(t.b,0),$3(t.b,1),t.e=r6(t,10),$3(t.e,1),$3(t.e,2),$3(t.e,3),$3(t.e,4),j3(t.e,5),j3(t.e,6),j3(t.e,7),j3(t.e,8),j3(t.e,9),j3(t.e,10),$3(t.e,11),t.k=r6(t,11),$3(t.k,0),$3(t.k,1),t.o=a6(t,12),t.s=a6(t,13))}(t),function(t){var e,n,i,r,a,o,s;t.r||(t.r=!0,B3(t,"graph"),R3(t,"graph"),F3(t,VFt),P6(t.o,"T"),sJ(PG(t.a),t.p),sJ(PG(t.f),t.a),sJ(PG(t.n),t.f),sJ(PG(t.g),t.n),sJ(PG(t.c),t.n),sJ(PG(t.i),t.c),sJ(PG(t.j),t.c),sJ(PG(t.d),t.f),sJ(PG(t.e),t.a),EV(t.p,dYt,cLt,!0,!0,!1),s=Q6(o=C8(t.p,t.p,"setProperty")),e=IU(t.o),n=new xy,sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),Wct(n,i=OU(s)),Mct(o,e,WFt),Mct(o,e=OU(s),XFt),s=Q6(o=C8(t.p,null,"getProperty")),e=IU(t.o),n=OU(s),sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),Mct(o,e,WFt),(a=Klt(o,e=OU(s),null))&&a.oj(),o=C8(t.p,t.wb.e,"hasProperty"),e=IU(t.o),n=new xy,sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),Mct(o,e,WFt),ost(o=C8(t.p,t.p,"copyProperties"),t.p,QFt),o=C8(t.p,null,"getAllProperties"),e=IU(t.wb.P),n=IU(t.o),sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),i=new xy,sJ((!n.d&&(n.d=new AO(ede,n,1)),n.d),i),n=IU(t.wb.M),sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),(r=Klt(o,e,null))&&r.oj(),EV(t.a,jhe,wFt,!0,!1,!0),ist(KR(l2(iG(t.a),0),19),t.k,null,ZFt,0,-1,jhe,!1,!1,!0,!0,!1,!1,!1),EV(t.f,qhe,xFt,!0,!1,!0),ist(KR(l2(iG(t.f),0),19),t.g,KR(l2(iG(t.g),0),19),"labels",0,-1,qhe,!1,!1,!0,!0,!1,!1,!1),i5(KR(l2(iG(t.f),1),35),t.wb._,JFt,null,0,1,qhe,!1,!1,!0,!1,!0,!1),EV(t.n,Hhe,"ElkShape",!0,!1,!0),i5(KR(l2(iG(t.n),0),35),t.wb.t,t$t,_At,1,1,Hhe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.n),1),35),t.wb.t,e$t,_At,1,1,Hhe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.n),2),35),t.wb.t,"x",_At,1,1,Hhe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.n),3),35),t.wb.t,"y",_At,1,1,Hhe,!1,!1,!0,!1,!0,!1),ost(o=C8(t.n,null,"setDimensions"),t.wb.t,e$t),ost(o,t.wb.t,t$t),ost(o=C8(t.n,null,"setLocation"),t.wb.t,"x"),ost(o,t.wb.t,"y"),EV(t.g,Qhe,CFt,!1,!1,!0),ist(KR(l2(iG(t.g),0),19),t.f,KR(l2(iG(t.f),0),19),n$t,0,1,Qhe,!1,!1,!0,!1,!1,!1,!1),i5(KR(l2(iG(t.g),1),35),t.wb._,i$t,"",0,1,Qhe,!1,!1,!0,!1,!0,!1),EV(t.c,Uhe,kFt,!0,!1,!0),ist(KR(l2(iG(t.c),0),19),t.d,KR(l2(iG(t.d),1),19),"outgoingEdges",0,-1,Uhe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.c),1),19),t.d,KR(l2(iG(t.d),2),19),"incomingEdges",0,-1,Uhe,!1,!1,!0,!1,!0,!1,!1),EV(t.i,Zhe,AFt,!1,!1,!0),ist(KR(l2(iG(t.i),0),19),t.j,KR(l2(iG(t.j),0),19),"ports",0,-1,Zhe,!1,!1,!0,!0,!1,!1,!1),ist(KR(l2(iG(t.i),1),19),t.i,KR(l2(iG(t.i),2),19),r$t,0,-1,Zhe,!1,!1,!0,!0,!1,!1,!1),ist(KR(l2(iG(t.i),2),19),t.i,KR(l2(iG(t.i),1),19),n$t,0,1,Zhe,!1,!1,!0,!1,!1,!1,!1),ist(KR(l2(iG(t.i),3),19),t.d,KR(l2(iG(t.d),0),19),"containedEdges",0,-1,Zhe,!1,!1,!0,!0,!1,!1,!1),i5(KR(l2(iG(t.i),4),35),t.wb.e,a$t,null,0,1,Zhe,!0,!0,!1,!1,!0,!0),EV(t.j,Jhe,MFt,!1,!1,!0),ist(KR(l2(iG(t.j),0),19),t.i,KR(l2(iG(t.i),0),19),n$t,0,1,Jhe,!1,!1,!0,!1,!1,!1,!1),EV(t.d,Ghe,_Ft,!1,!1,!0),ist(KR(l2(iG(t.d),0),19),t.i,KR(l2(iG(t.i),3),19),"containingNode",0,1,Ghe,!1,!1,!0,!1,!1,!1,!1),ist(KR(l2(iG(t.d),1),19),t.c,KR(l2(iG(t.c),0),19),o$t,0,-1,Ghe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.d),2),19),t.c,KR(l2(iG(t.c),1),19),s$t,0,-1,Ghe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.d),3),19),t.e,KR(l2(iG(t.e),5),19),c$t,0,-1,Ghe,!1,!1,!0,!0,!1,!1,!1),i5(KR(l2(iG(t.d),4),35),t.wb.e,"hyperedge",null,0,1,Ghe,!0,!0,!1,!1,!0,!0),i5(KR(l2(iG(t.d),5),35),t.wb.e,a$t,null,0,1,Ghe,!0,!0,!1,!1,!0,!0),i5(KR(l2(iG(t.d),6),35),t.wb.e,"selfloop",null,0,1,Ghe,!0,!0,!1,!1,!0,!0),i5(KR(l2(iG(t.d),7),35),t.wb.e,"connected",null,0,1,Ghe,!0,!0,!1,!1,!0,!0),EV(t.b,zhe,vFt,!1,!1,!0),i5(KR(l2(iG(t.b),0),35),t.wb.t,"x",_At,1,1,zhe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.b),1),35),t.wb.t,"y",_At,1,1,zhe,!1,!1,!0,!1,!0,!1),ost(o=C8(t.b,null,"set"),t.wb.t,"x"),ost(o,t.wb.t,"y"),EV(t.e,Khe,TFt,!1,!1,!0),i5(KR(l2(iG(t.e),0),35),t.wb.t,"startX",null,0,1,Khe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.e),1),35),t.wb.t,"startY",null,0,1,Khe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.e),2),35),t.wb.t,"endX",null,0,1,Khe,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.e),3),35),t.wb.t,"endY",null,0,1,Khe,!1,!1,!0,!1,!0,!1),ist(KR(l2(iG(t.e),4),19),t.b,null,l$t,0,-1,Khe,!1,!1,!0,!0,!1,!1,!1),ist(KR(l2(iG(t.e),5),19),t.d,KR(l2(iG(t.d),3),19),n$t,0,1,Khe,!1,!1,!0,!1,!1,!1,!1),ist(KR(l2(iG(t.e),6),19),t.c,null,u$t,0,1,Khe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.e),7),19),t.c,null,h$t,0,1,Khe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.e),8),19),t.e,KR(l2(iG(t.e),9),19),f$t,0,-1,Khe,!1,!1,!0,!1,!0,!1,!1),ist(KR(l2(iG(t.e),9),19),t.e,KR(l2(iG(t.e),8),19),d$t,0,-1,Khe,!1,!1,!0,!1,!0,!1,!1),i5(KR(l2(iG(t.e),10),35),t.wb._,JFt,null,0,1,Khe,!1,!1,!0,!1,!0,!1),ost(o=C8(t.e,null,"setStartLocation"),t.wb.t,"x"),ost(o,t.wb.t,"y"),ost(o=C8(t.e,null,"setEndLocation"),t.wb.t,"x"),ost(o,t.wb.t,"y"),EV(t.k,dHt,"ElkPropertyToValueMapEntry",!1,!1,!1),e=IU(t.o),n=new xy,sJ((!e.d&&(e.d=new AO(ede,e,1)),e.d),n),dgt(KR(l2(iG(t.k),0),35),e,"key",dHt,!1,!1,!0,!1),i5(KR(l2(iG(t.k),1),35),t.s,XFt,null,0,1,dHt,!1,!1,!0,!1,!0,!1),VH(t.o,Yae,"IProperty",!0),VH(t.s,nHt,"PropertyValue",!0),C9(t,VFt))}(t),nst(t),tY(Qfe,VFt,t),t)}function Xk(){Xk=E,yfe=g4()}function Qk(){Qk=E,ode=function(){var t,e;Jxt();try{if(e=KR(Lct(($E(),Qfe),kzt),2040))return e}catch(e){if(!rO(e=j6(e),103))throw Ay(e);t=e,aq((LI(),t))}return new Rl}()}function Zk(){Zk=E,xge=function(){var t,e;BJ();try{if(e=KR(Lct(($E(),Qfe),Jzt),2122))return e}catch(e){if(!rO(e=j6(e),103))throw Ay(e);t=e,aq((LI(),t))}return new Lu}()}function Jk(){var t;Jk=E,kge=ape?KR(Cpt(($E(),Qfe),Jzt),2044):(TL(vge,new Hu),TL(Qge,new th),TL(Zge,new hh),TL(Jge,new kh),TL(fUt,new Sh),TL(rk(qpe,1),new Ch),TL(KHt,new Ah),TL(VHt,new Mh),TL(fUt,new Ou),TL(fUt,new Nu),TL(fUt,new Du),TL(ZHt,new Pu),TL(fUt,new Bu),TL(cHt,new Ru),TL(cHt,new Fu),TL(fUt,new $u),TL(JHt,new zu),TL(fUt,new qu),TL(fUt,new Uu),TL(fUt,new Gu),TL(fUt,new Ku),TL(fUt,new Yu),TL(rk(qpe,1),new Vu),TL(fUt,new Wu),TL(fUt,new Xu),TL(cHt,new Qu),TL(cHt,new Zu),TL(fUt,new Ju),TL(nUt,new eh),TL(fUt,new nh),TL(cUt,new ih),TL(fUt,new rh),TL(fUt,new ah),TL(fUt,new oh),TL(fUt,new sh),TL(cHt,new ch),TL(cHt,new lh),TL(fUt,new uh),TL(fUt,new fh),TL(fUt,new dh),TL(fUt,new gh),TL(fUt,new ph),TL(fUt,new bh),TL(uUt,new mh),TL(fUt,new yh),TL(fUt,new wh),TL(fUt,new vh),TL(uUt,new xh),TL(cUt,new _h),TL(fUt,new Th),TL(nUt,new Eh),t=KR(rO(ZG(($E(),Qfe),Jzt),594)?ZG(Qfe,Jzt):new CH,594),ape=!0,function(t){t.N||(t.N=!0,t.b=r6(t,0),$3(t.b,0),$3(t.b,1),$3(t.b,2),t.bb=r6(t,1),$3(t.bb,0),$3(t.bb,1),t.fb=r6(t,2),$3(t.fb,3),$3(t.fb,4),j3(t.fb,5),t.qb=r6(t,3),$3(t.qb,0),j3(t.qb,1),j3(t.qb,2),$3(t.qb,3),$3(t.qb,4),j3(t.qb,5),$3(t.qb,6),t.a=a6(t,4),t.c=a6(t,5),t.d=a6(t,6),t.e=a6(t,7),t.f=a6(t,8),t.g=a6(t,9),t.i=a6(t,10),t.j=a6(t,11),t.k=a6(t,12),t.n=a6(t,13),t.o=a6(t,14),t.p=a6(t,15),t.q=a6(t,16),t.s=a6(t,17),t.r=a6(t,18),t.t=a6(t,19),t.u=a6(t,20),t.v=a6(t,21),t.w=a6(t,22),t.B=a6(t,23),t.A=a6(t,24),t.C=a6(t,25),t.D=a6(t,26),t.F=a6(t,27),t.G=a6(t,28),t.H=a6(t,29),t.J=a6(t,30),t.I=a6(t,31),t.K=a6(t,32),t.M=a6(t,33),t.L=a6(t,34),t.P=a6(t,35),t.Q=a6(t,36),t.R=a6(t,37),t.S=a6(t,38),t.T=a6(t,39),t.U=a6(t,40),t.V=a6(t,41),t.X=a6(t,42),t.W=a6(t,43),t.Y=a6(t,44),t.Z=a6(t,45),t.$=a6(t,46),t._=a6(t,47),t.ab=a6(t,48),t.cb=a6(t,49),t.db=a6(t,50),t.eb=a6(t,51),t.gb=a6(t,52),t.hb=a6(t,53),t.ib=a6(t,54),t.jb=a6(t,55),t.kb=a6(t,56),t.lb=a6(t,57),t.mb=a6(t,58),t.nb=a6(t,59),t.ob=a6(t,60),t.pb=a6(t,61))}(t),function(t){var e;t.O||(t.O=!0,B3(t,"type"),R3(t,"ecore.xml.type"),F3(t,Jzt),e=KR(Cpt(($E(),Qfe),Jzt),2044),sJ(PG(t.fb),t.b),EV(t.b,vge,"AnyType",!1,!1,!0),i5(KR(l2(iG(t.b),0),35),t.wb.D,hzt,null,0,-1,vge,!1,!1,!0,!1,!1,!1),i5(KR(l2(iG(t.b),1),35),t.wb.D,"any",null,0,-1,vge,!0,!0,!0,!1,!1,!0),i5(KR(l2(iG(t.b),2),35),t.wb.D,"anyAttribute",null,0,-1,vge,!1,!1,!0,!1,!1,!1),EV(t.bb,Qge,rqt,!1,!1,!0),i5(KR(l2(iG(t.bb),0),35),t.gb,"data",null,0,1,Qge,!1,!1,!0,!1,!0,!1),i5(KR(l2(iG(t.bb),1),35),t.gb,T$t,null,1,1,Qge,!1,!1,!0,!1,!0,!1),EV(t.fb,Zge,aqt,!1,!1,!0),i5(KR(l2(iG(t.fb),0),35),e.gb,"rawValue",null,0,1,Zge,!0,!0,!0,!1,!0,!0),i5(KR(l2(iG(t.fb),1),35),e.a,XFt,null,0,1,Zge,!0,!0,!0,!1,!0,!0),ist(KR(l2(iG(t.fb),2),19),t.wb.q,null,"instanceType",1,1,Zge,!1,!1,!0,!1,!1,!1,!1),EV(t.qb,Jge,oqt,!1,!1,!0),i5(KR(l2(iG(t.qb),0),35),t.wb.D,hzt,null,0,-1,null,!1,!1,!0,!1,!1,!1),ist(KR(l2(iG(t.qb),1),19),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),ist(KR(l2(iG(t.qb),2),19),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),i5(KR(l2(iG(t.qb),3),35),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),i5(KR(l2(iG(t.qb),4),35),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),ist(KR(l2(iG(t.qb),5),19),t.bb,null,Oqt,0,-2,null,!0,!0,!0,!0,!1,!1,!0),i5(KR(l2(iG(t.qb),6),35),t.gb,i$t,null,0,-2,null,!0,!0,!0,!1,!1,!0),VH(t.a,nHt,"AnySimpleType",!0),VH(t.c,fUt,"AnyURI",!0),VH(t.d,rk(qpe,1),"Base64Binary",!0),VH(t.e,jpe,"Boolean",!0),VH(t.f,KHt,"BooleanObject",!0),VH(t.g,qpe,"Byte",!0),VH(t.i,VHt,"ByteObject",!0),VH(t.j,fUt,"Date",!0),VH(t.k,fUt,"DateTime",!0),VH(t.n,xUt,"Decimal",!0),VH(t.o,Hpe,"Double",!0),VH(t.p,ZHt,"DoubleObject",!0),VH(t.q,fUt,"Duration",!0),VH(t.s,cHt,"ENTITIES",!0),VH(t.r,cHt,"ENTITIESBase",!0),VH(t.t,fUt,fqt,!0),VH(t.u,Upe,"Float",!0),VH(t.v,JHt,"FloatObject",!0),VH(t.w,fUt,"GDay",!0),VH(t.B,fUt,"GMonth",!0),VH(t.A,fUt,"GMonthDay",!0),VH(t.C,fUt,"GYear",!0),VH(t.D,fUt,"GYearMonth",!0),VH(t.F,rk(qpe,1),"HexBinary",!0),VH(t.G,fUt,"ID",!0),VH(t.H,fUt,"IDREF",!0),VH(t.J,cHt,"IDREFS",!0),VH(t.I,cHt,"IDREFSBase",!0),VH(t.K,$pe,"Int",!0),VH(t.M,OUt,"Integer",!0),VH(t.L,nUt,"IntObject",!0),VH(t.P,fUt,"Language",!0),VH(t.Q,zpe,"Long",!0),VH(t.R,cUt,"LongObject",!0),VH(t.S,fUt,"Name",!0),VH(t.T,fUt,dqt,!0),VH(t.U,OUt,"NegativeInteger",!0),VH(t.V,fUt,_qt,!0),VH(t.X,cHt,"NMTOKENS",!0),VH(t.W,cHt,"NMTOKENSBase",!0),VH(t.Y,OUt,"NonNegativeInteger",!0),VH(t.Z,OUt,"NonPositiveInteger",!0),VH(t.$,fUt,"NormalizedString",!0),VH(t._,fUt,"NOTATION",!0),VH(t.ab,fUt,"PositiveInteger",!0),VH(t.cb,fUt,"QName",!0),VH(t.db,Gpe,"Short",!0),VH(t.eb,uUt,"ShortObject",!0),VH(t.gb,fUt,yCt,!0),VH(t.hb,fUt,"Time",!0),VH(t.ib,fUt,"Token",!0),VH(t.jb,Gpe,"UnsignedByte",!0),VH(t.kb,uUt,"UnsignedByteObject",!0),VH(t.lb,zpe,"UnsignedInt",!0),VH(t.mb,cUt,"UnsignedIntObject",!0),VH(t.nb,OUt,"UnsignedLong",!0),VH(t.ob,$pe,"UnsignedShort",!0),VH(t.pb,nUt,"UnsignedShortObject",!0),C9(t,Jzt),function(t){Bpt(t.a,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"anySimpleType"])),Bpt(t.b,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"anyType",dzt,hzt])),Bpt(KR(l2(iG(t.b),0),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Kzt,A$t,":mixed"])),Bpt(KR(l2(iG(t.b),1),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Kzt,Zzt,tqt,A$t,":1",lqt,"lax"])),Bpt(KR(l2(iG(t.b),2),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Uzt,Zzt,tqt,A$t,":2",lqt,"lax"])),Bpt(t.c,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"anyURI",Qzt,Yzt])),Bpt(t.d,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"base64Binary",Qzt,Yzt])),Bpt(t.e,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,aSt,Qzt,Yzt])),Bpt(t.f,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"boolean:Object",Ezt,aSt])),Bpt(t.g,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Jjt])),Bpt(t.i,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"byte:Object",Ezt,Jjt])),Bpt(t.j,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"date",Qzt,Yzt])),Bpt(t.k,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"dateTime",Qzt,Yzt])),Bpt(t.n,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"decimal",Qzt,Yzt])),Bpt(t.o,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,ezt,Qzt,Yzt])),Bpt(t.p,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"double:Object",Ezt,ezt])),Bpt(t.q,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"duration",Qzt,Yzt])),Bpt(t.s,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"ENTITIES",Ezt,uqt,hqt,"1"])),Bpt(t.r,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,uqt,Vzt,fqt])),Bpt(t.t,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,fqt,Ezt,dqt])),Bpt(t.u,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,nzt,Qzt,Yzt])),Bpt(t.v,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"float:Object",Ezt,nzt])),Bpt(t.w,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"gDay",Qzt,Yzt])),Bpt(t.B,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"gMonth",Qzt,Yzt])),Bpt(t.A,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"gMonthDay",Qzt,Yzt])),Bpt(t.C,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"gYear",Qzt,Yzt])),Bpt(t.D,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"gYearMonth",Qzt,Yzt])),Bpt(t.F,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"hexBinary",Qzt,Yzt])),Bpt(t.G,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"ID",Ezt,dqt])),Bpt(t.H,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"IDREF",Ezt,dqt])),Bpt(t.J,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"IDREFS",Ezt,gqt,hqt,"1"])),Bpt(t.I,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,gqt,Vzt,"IDREF"])),Bpt(t.K,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,izt])),Bpt(t.M,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,pqt])),Bpt(t.L,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"int:Object",Ezt,izt])),Bpt(t.P,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"language",Ezt,bqt,mqt,yqt])),Bpt(t.Q,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,rzt])),Bpt(t.R,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"long:Object",Ezt,rzt])),Bpt(t.S,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"Name",Ezt,bqt,mqt,wqt])),Bpt(t.T,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,dqt,Ezt,"Name",mqt,vqt])),Bpt(t.U,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"negativeInteger",Ezt,xqt,kqt,"-1"])),Bpt(t.V,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,_qt,Ezt,bqt,mqt,"\\c+"])),Bpt(t.X,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"NMTOKENS",Ezt,Tqt,hqt,"1"])),Bpt(t.W,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Tqt,Vzt,_qt])),Bpt(t.Y,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Eqt,Ezt,pqt,Sqt,"0"])),Bpt(t.Z,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,xqt,Ezt,pqt,kqt,"0"])),Bpt(t.$,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Cqt,Ezt,sSt,Qzt,"replace"])),Bpt(t._,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"NOTATION",Qzt,Yzt])),Bpt(t.ab,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"positiveInteger",Ezt,Eqt,Sqt,"1"])),Bpt(t.bb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"processingInstruction_._type",dzt,"empty"])),Bpt(KR(l2(iG(t.bb),0),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Hzt,A$t,"data"])),Bpt(KR(l2(iG(t.bb),1),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Hzt,A$t,T$t])),Bpt(t.cb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"QName",Qzt,Yzt])),Bpt(t.db,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,azt])),Bpt(t.eb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"short:Object",Ezt,azt])),Bpt(t.fb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"simpleAnyType",dzt,qzt])),Bpt(KR(l2(iG(t.fb),0),35),fzt,t7(rk(fUt,1),RSt,2,6,[A$t,":3",dzt,qzt])),Bpt(KR(l2(iG(t.fb),1),35),fzt,t7(rk(fUt,1),RSt,2,6,[A$t,":4",dzt,qzt])),Bpt(KR(l2(iG(t.fb),2),19),fzt,t7(rk(fUt,1),RSt,2,6,[A$t,":5",dzt,qzt])),Bpt(t.gb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,sSt,Qzt,"preserve"])),Bpt(t.hb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"time",Qzt,Yzt])),Bpt(t.ib,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,bqt,Ezt,Cqt,Qzt,Yzt])),Bpt(t.jb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Aqt,kqt,"255",Sqt,"0"])),Bpt(t.kb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"unsignedByte:Object",Ezt,Aqt])),Bpt(t.lb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Mqt,kqt,"4294967295",Sqt,"0"])),Bpt(t.mb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"unsignedInt:Object",Ezt,Mqt])),Bpt(t.nb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"unsignedLong",Ezt,Eqt,kqt,Lqt,Sqt,"0"])),Bpt(t.ob,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,Iqt,kqt,"65535",Sqt,"0"])),Bpt(t.pb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"unsignedShort:Object",Ezt,Iqt])),Bpt(t.qb,fzt,t7(rk(fUt,1),RSt,2,6,[A$t,"",dzt,hzt])),Bpt(KR(l2(iG(t.qb),0),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Kzt,A$t,":mixed"])),Bpt(KR(l2(iG(t.qb),1),19),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Hzt,A$t,"xmlns:prefix"])),Bpt(KR(l2(iG(t.qb),2),19),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Hzt,A$t,"xsi:schemaLocation"])),Bpt(KR(l2(iG(t.qb),3),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Gzt,A$t,"cDATA",Wzt,Xzt])),Bpt(KR(l2(iG(t.qb),4),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Gzt,A$t,"comment",Wzt,Xzt])),Bpt(KR(l2(iG(t.qb),5),19),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Gzt,A$t,Oqt,Wzt,Xzt])),Bpt(KR(l2(iG(t.qb),6),35),fzt,t7(rk(fUt,1),RSt,2,6,[dzt,Gzt,A$t,i$t,Wzt,Xzt]))}(t))}(t),LH((DE(),ade),t,new Iu),nst(t),tY(Qfe,Jzt,t),t)}function t_(t){return t.e&&t.e()}function e_(t){return t.l|t.m<<22}function n_(t,e){return t.c._b(e)}function i_(t,e){return ott(t.b,e)}function r_(t){return t?t.d:null}function a_(t){return UD(t),t.o}function o_(t,e){return t.a+=e,t}function s_(t,e){return t.a+=e,t}function c_(t,e){return t.a+=e,t}function l_(t,e){return t.a+=e,t}function u_(t,e){for(;t.Bd(e););}function h_(t){this.a=new RT(t)}function f_(){throw Ay(new Zy)}function d_(){throw Ay(new Zy)}function g_(){throw Ay(new Zy)}function p_(){throw Ay(new Zy)}function b_(){throw Ay(new Zy)}function m_(){throw Ay(new Zy)}function y_(t){this.a=new Rj(t)}function w_(){this.a=new Lbt(Fee)}function v_(){this.b=new Lbt($9t)}function x_(){this.a=new Lbt(Zne)}function k_(){this.b=new Lbt(Nre)}function __(){this.b=new Lbt(Nre)}function T_(t){this.a=0,this.b=t}function E_(t){TTt(),function(t,e){var n,i,r,a,o,s,c,l;if(n=0,o=0,a=e.length,s=null,l=new Wx,o1?kV(e.a[0],e.a[1]):kV(e.a[0],0),zV(e.e>0?n:d1(n))))}(t,new pI(c));for(t.d=l.a.length,r=0;r0}(KR(t,27))?ON(i,(Art(),Xae))||ON(i,Qae):ON(i,(Art(),Xae));if(rO(t,326))return ON(i,(Art(),Vae));if(rO(t,193))return ON(i,(Art(),Zae));if(rO(t,366))return ON(i,(Art(),Wae))}return!0}(t,e)}function L_(t,e,n){t.splice(e,n)}function I_(t,e){for(;t.Re(e););}function O_(t){t.c?oyt(t):syt(t)}function N_(){throw Ay(new Zy)}function D_(){throw Ay(new Zy)}function P_(){throw Ay(new Zy)}function B_(){throw Ay(new Zy)}function R_(){throw Ay(new Zy)}function F_(){throw Ay(new Zy)}function $_(){throw Ay(new Zy)}function j_(){throw Ay(new Zy)}function z_(){throw Ay(new Zy)}function q_(){throw Ay(new Zy)}function H_(t){this.a=new U_(t)}function U_(t){!function(t,e,n){var i;t.b=e,t.a=n,i=512==(512&t.a)?new pv:new Lh,t.c=function(t,e,n){var i,r,a;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,16==(16&t.e)&&(t.i=function(t){var e,n,i,r,a;for(i=t.length,e=new Yx,a=0;ae&&e0)){if(a=-1,32==JH(h.c,0)){if(f=u[0],n0(e,u),u[0]>f)continue}else if(IG(e,h.c,u[0])){u[0]+=h.c.length;continue}return 0}if(a<0&&h.a&&(a=l,o=u[0],r=0),a>=0){if(c=h.b,l==a&&0==(c-=r++))return 0;if(!$Tt(e,u,h,c,s)){l=a-1,u[0]=o;continue}}else if(a=-1,!$Tt(e,u,h,0,s))return 0}return function(t,e){var n,r,a,o,s,c;if(0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>gCt&&YW(e,t.p-FCt),s=e.q.getDate(),kK(e,1),t.k>=0&&function(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),Ixt(t,n)}(e,t.k),t.c>=0?kK(e,t.c):t.k>=0?(r=35-new B7(e.q.getFullYear()-FCt,e.q.getMonth(),35).q.getDate(),kK(e,i.Math.min(r,s))):kK(e,s),t.f<0&&(t.f=e.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),function(t,e){t.q.setHours(e),Ixt(t,e)}(e,24==t.f&&t.g?0:t.f),t.j>=0&&function(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),Ixt(t,n)}(e,t.j),t.n>=0&&function(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),Ixt(t,n)}(e,t.n),t.i>=0&&EL(e,Set(Cet(yct(h6(e.q.getTime()),TCt),TCt),t.i)),t.a&&(YW(a=new TT,a.q.getFullYear()-FCt-80),XE(h6(e.q.getTime()),h6(a.q.getTime()))&&YW(e,a.q.getFullYear()-FCt+100)),t.d>=0)if(-1==t.c)(n=(7+t.d-e.q.getDay())%7)>3&&(n-=7),c=e.q.getMonth(),kK(e,e.q.getDate()+n),e.q.getMonth()!=c&&kK(e,e.q.getDate()+(n>0?-7:7));else if(e.q.getDay()!=t.d)return!1;return t.o>gCt&&(o=e.q.getTimezoneOffset(),EL(e,Set(h6(e.q.getTime()),60*(t.o-o)*TCt))),!0}(s,n)?u[0]:0}(t,e,a=new B7((r=new TT).q.getFullYear()-FCt,r.q.getMonth(),r.q.getDate())))||n0}function XE(t,e){return F9(t,e)<0}function QE(t,e){return q$(t.a,e)}function ZE(t,e){$K.call(this,t,e)}function JE(t){Cq(),NB.call(this,t)}function tS(t,e){Q$(t,t.length,e)}function eS(t,e){Qz(t,t.length,e)}function nS(t,e){return t.a.get(e)}function iS(t,e){return mz(t.e,e)}function rS(t){return yH(t),!1}function aS(t){this.a=KR(kq(t),229)}function oS(t){OY.call(this,t,21)}function sS(t,e){gT.call(this,t,e)}function cS(t,e){gT.call(this,t,e)}function lS(t,e){this.b=t,this.a=e}function uS(t,e){this.d=t,this.e=e}function hS(t,e){this.a=t,this.b=e}function fS(t,e){this.a=t,this.b=e}function dS(t,e){this.a=t,this.b=e}function gS(t,e){this.a=t,this.b=e}function pS(t,e){this.a=t,this.b=e}function bS(t,e){this.b=t,this.a=e}function mS(t,e){this.b=t,this.a=e}function yS(t,e){gT.call(this,t,e)}function wS(t,e){gT.call(this,t,e)}function vS(t,e){gT.call(this,t,e)}function xS(t,e){gT.call(this,t,e)}function kS(t,e){gT.call(this,t,e)}function _S(t,e){gT.call(this,t,e)}function TS(t,e){gT.call(this,t,e)}function ES(t,e){this.b=t,this.a=e}function SS(t,e){gT.call(this,t,e)}function CS(t,e){this.b=t,this.a=e}function AS(t,e){gT.call(this,t,e)}function MS(t,e){this.b=t,this.a=e}function LS(t,e){gT.call(this,t,e)}function IS(t,e){gT.call(this,t,e)}function OS(t,e){gT.call(this,t,e)}function NS(t,e,n){t.splice(e,0,n)}function DS(t,e){gT.call(this,t,e)}function PS(t,e){gT.call(this,t,e)}function BS(t,e){gT.call(this,t,e)}function RS(t,e){gT.call(this,t,e)}function FS(t,e){gT.call(this,t,e)}function $S(t,e){gT.call(this,t,e)}function jS(t,e){this.a=t,this.b=e}function zS(t,e){this.a=t,this.b=e}function qS(t,e){this.a=t,this.b=e}function HS(t,e){this.a=t,this.b=e}function US(t,e){this.a=t,this.b=e}function GS(t,e){this.a=t,this.b=e}function KS(t,e){this.b=t,this.a=e}function YS(t,e){this.b=t,this.a=e}function VS(t,e){this.b=t,this.a=e}function WS(t,e){this.c=t,this.d=e}function XS(t,e){this.e=t,this.d=e}function QS(t,e){this.a=t,this.b=e}function ZS(t,e){this.a=t,this.b=e}function JS(t,e){this.a=t,this.b=e}function tC(t,e){this.b=t,this.a=e}function eC(t,e){this.b=e,this.c=t}function nC(t,e){gT.call(this,t,e)}function iC(t,e){gT.call(this,t,e)}function rC(t,e){gT.call(this,t,e)}function aC(t,e){gT.call(this,t,e)}function oC(t,e){gT.call(this,t,e)}function sC(t,e){gT.call(this,t,e)}function cC(t,e){gT.call(this,t,e)}function lC(t,e){gT.call(this,t,e)}function uC(t,e){gT.call(this,t,e)}function hC(t,e){gT.call(this,t,e)}function fC(t,e){gT.call(this,t,e)}function dC(t,e){gT.call(this,t,e)}function gC(t,e){gT.call(this,t,e)}function pC(t,e){gT.call(this,t,e)}function bC(t,e){gT.call(this,t,e)}function mC(t,e){gT.call(this,t,e)}function yC(t,e){gT.call(this,t,e)}function wC(t,e){gT.call(this,t,e)}function vC(t,e){gT.call(this,t,e)}function xC(t,e){gT.call(this,t,e)}function kC(t,e){gT.call(this,t,e)}function _C(t,e){gT.call(this,t,e)}function TC(t,e){gT.call(this,t,e)}function EC(t,e){gT.call(this,t,e)}function SC(t,e){gT.call(this,t,e)}function CC(t,e){gT.call(this,t,e)}function AC(t,e){gT.call(this,t,e)}function MC(t,e){gT.call(this,t,e)}function LC(t,e){gT.call(this,t,e)}function IC(t,e){gT.call(this,t,e)}function OC(t,e){gT.call(this,t,e)}function NC(t,e){gT.call(this,t,e)}function DC(t,e){gT.call(this,t,e)}function PC(t,e){this.b=t,this.a=e}function BC(t,e){gT.call(this,t,e)}function RC(t,e){this.a=t,this.b=e}function FC(t,e){this.a=t,this.b=e}function $C(t,e){this.a=t,this.b=e}function jC(t,e){gT.call(this,t,e)}function zC(t,e){gT.call(this,t,e)}function qC(t,e){this.a=t,this.b=e}function HC(t){return KD(t.a),t.b}function UC(t){return function(t,e){var n,i,r;for(n=new pg(t.a.a);n.a=0}function GM(t,e){return 0!=F9(t,e)}function KM(t,e){return function(t,e){for(kq(e);t.Ob();)if(!M6(KR(t.Pb(),10)))return!1;return!0}(t.Kc(),e)}function YM(t,e){return t.Rd().Xb(e)}function VM(t){return Xet(t),t.d.gc()}function WM(t){return e$(null==t),t}function XM(t,e){return t.a+=""+e,t}function QM(t,e){return t.a+=""+e,t}function ZM(t,e){return t.a+=""+e,t}function JM(t,e){return t.a+=""+e,t}function tL(t,e){return t.a+=""+e,t}function eL(t,e){return t.a+=""+e,t}function nL(t){_z(this),v5(this,t)}function iL(){YK(),aj.call(this)}function rL(t,e){Bj.call(this,t,e)}function aL(t,e){Bj.call(this,t,e)}function oL(t,e){Bj.call(this,t,e)}function sL(t,e){dX(t,e,t.c.b,t.c)}function cL(t,e){dX(t,e,t.a,t.a.a)}function lL(t){return LY(t,0),null}function uL(){this.b=0,this.a=!1}function hL(){this.b=0,this.a=!1}function fL(){this.b=new RT(R0(12))}function dL(){dL=E,QKt=c9(Ert())}function gL(){gL=E,SQt=c9(Abt())}function pL(){pL=E,J9t=c9(j5())}function bL(){bL=E,Hy(),AHt=new my}function mL(t){return t.a=0,t.b=0,t}function yL(t,e){return t.a=e.g+1,t}function wL(t,e){wB.call(this,t,e)}function vL(t,e){AP.call(this,t,e)}function xL(t,e){PM.call(this,t,e)}function kL(t,e){jN.call(this,t,e)}function _L(t,e){w6.call(this,t,e)}function TL(t,e){jE(),LH(Efe,t,e)}function EL(t,e){t.q.setTime(zV(e))}function SL(t,e){return $M(t)===$M(e)}function CL(t,e){return t.a.a.a.cc(e)}function AL(t,e){return $G(t.a,0,e)}function ML(t){return function(t){return JU(),DK(yut(t))==DK(xut(t))}(KR(t,74))}function LL(t){return oK((yH(t),t))}function IL(t){return zI(t.l,t.m,t.h)}function OL(t,e){return $I(t.a,e.a)}function NL(t,e){return t.indexOf(e)}function DL(t,e){return t==e?0:t?1:-1}function PL(t){return t<10?"0"+t:""+t}function BL(t){return typeof t===oSt}function RL(t,e){return $I(t.g,e.g)}function FL(t){return g1(t.b.b,t,0)}function $L(){_$.call(this,0,0,0,0)}function jL(){xg.call(this,new fX)}function zL(t,e){IJ(t,0,t.length,e)}function qL(t,e){return SO(t.a,e),e}function HL(t,e){return V5(t.a,e),t}function UL(t){this.a=GC(),this.b=t}function GL(t){this.a=GC(),this.b=t}function KL(t){this.a=t.a,this.b=t.b}function YL(t){this.a=t,Nh.call(this)}function VL(t){this.a=t,Nh.call(this)}function WL(){pU.call(this,0,0,0,0)}function XL(t){return V5(new EH,t)}function QL(t){return qH(KR(t,123))}function ZL(t){return t.vh()&&t.wh()}function JL(t){return t!=Wle&&t!=Xle}function tI(t){return t==Fce||t==$ce}function eI(t){return t==zce||t==Rce}function nI(t){return t==e7t||t==t7t}function iI(t,e){return new w6(e,t)}function rI(t){return function(t,e){return kq(t),kq(e),new lT(t,e)}(t.b.Kc(),t.a)}function aI(t,e){K8(t,e),H2(t,t.D)}function oI(t,e,n){$2(t,e),L2(t,n)}function sI(t,e,n){N2(t,e),O2(t,n)}function cI(t,e,n){D2(t,e),P2(t,n)}function lI(t,e,n){I2(t,e),R2(t,n)}function uI(t,e,n){B2(t,e),F2(t,n)}function hI(t,e,n){eP.call(this,t,e,n)}function fI(t){xM.call(this,t,!0)}function dI(){sS.call(this,"Tail",3)}function gI(){sS.call(this,"Head",1)}function pI(t){lwt(),k5.call(this,t)}function bI(t){_$.call(this,t,t,t,t)}function mI(t){t.c=WZ(nHt,pSt,1,0,5,1)}function yI(t){return t.b&&akt(t),t.a}function wI(t){return t.b&&akt(t),t.c}function vI(t,e){AP.call(this,t.b,e)}function xI(t,e,n){Dq(t.c[e.g],e.g,n)}function kI(t,e,n){return Dq(t,e,n),n}function _I(t){V0(t.Sf(),new Xg(t))}function TI(t){return null!=t?N3(t):0}function EI(t){UEt(),by.call(this,t)}function SI(t){this.a=t,FR.call(this,t)}function CI(){CI=E,i.Math.log(2)}function AI(){AI=E,RE(),Hde=Phe}function MI(){MI=E,a9t=new Uet(tle)}function LI(){LI=E,new II,new yy}function II(){new my,new my,new my}function OI(t){this.a=t,kT.call(this,t)}function NI(t){this.a=t,kT.call(this,t)}function DI(t,e){Sq(),this.a=t,this.b=e}function PI(t,e){Y$(t.c,t.c.length,e)}function BI(t){return t.ae?1:0}function jI(t,e){return F9(t,e)>0?t:e}function zI(t,e,n){return{l:t,m:e,h:n}}function qI(t,e){null!=t.a&&SM(e,t.a)}function HI(t,e,n){return pit(e,n,t.c)}function UI(t,e,n){return function(t,e,n){var i,r,a,o,s,c,l,u;for(c=new yy,s=new pg(e.a);s.a0),a=KR(l.a.Xb(l.c=--l.b),18);a!=i&&l.b>0;)t.a[a.p]=!0,t.a[i.p]=!0,KD(l.b>0),a=KR(l.a.Xb(l.c=--l.b),18);l.b>0&&nH(l)}}(t,e,n),n}function GI(t){TG.call(this),this.b=t}function KI(t){GP.call(this),this.a=t}function YI(){sS.call(this,"Range",2)}function VI(t){this.b=t,this.a=new yy}function WI(t){this.b=new te,this.a=t}function XI(t){t.a=new R,t.c=new R}function QI(t){t.a=new my,t.d=new my}function ZI(t){aY(t,null),oY(t,null)}function JI(t,e){return function(t,e,n){var i,r,a,o,s,c,l,u,h;for(!n&&(n=function(t){var e;return(e=new x).a=t,e.b=function(t){var e;return 0==t?"Etc/GMT":(t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+",e+X1(t))}(t),e.c=WZ(fUt,RSt,2,2,6,1),e.c[0]=U3(t),e.c[1]=U3(t),e}(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-n.a),c=s=new aP(Set(h6(e.q.getTime()),r)),s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,c=new aP(Set(h6(e.q.getTime()),r))),u=new Wx,l=t.a.length,a=0;a=97&&i<=122||i>=65&&i<=90){for(o=a+1;o=l)throw Ay(new Tx("Missing trailing '"));o+11)throw Ay(new Tx(nqt));for(u=Jbt(t.e.Dh(),e),i=KR(t.g,124),o=0;o1||n>1)return 2;return e+n==1?2:0}(e)}function kO(t,e){return null!=t.a.Bc(e)}function _O(t,e){return t.a*e.a+t.b*e.b}function TO(t,e,n){t.a=1502^e,t.b=n^BAt}function EO(t,e){return t.a*=e,t.b*=e,t}function SO(t,e){return Dy(t.c,e),!0}function CO(t,e,n){return Dq(t.g,e,n),n}function AO(t,e,n){bF.call(this,t,e,n)}function MO(t,e,n){AO.call(this,t,e,n)}function LO(t,e,n){mF.call(this,t,e,n)}function IO(t,e,n){mF.call(this,t,e,n)}function OO(t,e,n){LO.call(this,t,e,n)}function NO(t,e,n){AO.call(this,t,e,n)}function DO(t,e,n){MO.call(this,t,e,n)}function PO(t,e,n){bF.call(this,t,e,n)}function BO(t,e,n){bF.call(this,t,e,n)}function RO(t,e,n){PO.call(this,t,e,n)}function FO(t){t.j=WZ(hUt,RSt,319,0,0,1)}function $O(){this.a=WZ(nHt,pSt,1,8,5,1)}function jO(){this.Bb|=256,this.Bb|=512}function zO(t){this.i=t,this.f=this.i.j}function qO(t){this.c=t,this.a=this.c.a}function HO(t,e){this.a=t,kT.call(this,e)}function UO(t,e){return function(t,e,n){try{!function(t,e,n){if(kq(e),n.Ob())for(eL(e,cH(n.Pb()));n.Ob();)eL(e,t.a),eL(e,cH(n.Pb()))}(t,e,n)}catch(t){throw rO(t=j6(t),606)?Ay(new wQ(t)):Ay(t)}return e}(t,new Vx,e).a}function GO(t){if(!t)throw Ay(new Wy)}function KO(t){if(!t)throw Ay(new Xy)}function YO(){(YO=E)(),eGt=new j}function VO(){VO=E,HE(),hge=new Pf}function WO(){WO=E,WUt=new ex(null)}function XO(t){DG(t,L$t),cbt(t,function(t){var e,n,i,r,a;switch(DG(t,L$t),(!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b).i+(!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c).i){case 0:throw Ay(new Tx("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b).i?DK(Blt(KR(l2((!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c),0),84))):DK(Blt(KR(l2((!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),0),84)))}if(1==(!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c).i){if(r=Blt(KR(l2((!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),0),84)),a=Blt(KR(l2((!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c),0),84)),DK(r)==DK(a))return DK(r);if(r==DK(a))return r;if(a==DK(r))return a}for(e=Blt(KR(bQ(i=vz(a4(t7(rk(oHt,1),pSt,20,0,[(!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),(!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c)])))),84));Rgt(i);)if((n=Blt(KR(bQ(i),84)))!=e&&!Y0(n,e))if(DK(n)==DK(e))e=DK(n);else if(!(e=Opt(e,n)))return null;return e}(t))}function QO(t){t.a=KR(i6(t.b.a,4),129)}function ZO(t){t.a=KR(i6(t.b.a,4),129)}function JO(t){t.b.Qb(),--t.d.f.d,j$(t.d)}function tN(t){this.a=t,od.call(this,t.d)}function eN(t,e){this.a=t,nk.call(this,e)}function nN(t,e){this.a=t,nk.call(this,e)}function iN(t,e){this.a=t,nk.call(this,e)}function rN(t,e){this.a=e,nk.call(this,t)}function aN(t,e){this.a=e,lX.call(this,t)}function oN(t,e){this.a=t,lX.call(this,e)}function sN(t,e){this.a=e,_T.call(this,t)}function cN(t,e){this.a=e,_T.call(this,t)}function lN(t,e){return kq(e),new sN(t,e)}function uN(t,e){return new rft(t.a,t.b,e)}function hN(t,e,n){return t.indexOf(e,n)}function fN(t,e){return t.lastIndexOf(e)}function dN(t){return null==t?wSt:Get(t)}function gN(t){tg.call(this,(yH(t),t))}function pN(t){tg.call(this,(yH(t),t))}function bN(t){Zf.call(this,KR(kq(t),34))}function mN(t){Zf.call(this,KR(kq(t),34))}function yN(t){xg.call(this,new iJ(t))}function wN(t){hg.call(this,t),this.a=t}function vN(t){ug.call(this,t),this.a=t}function xN(t){Jx.call(this,t),this.a=t}function kN(){FO(this),PU(this),this.je()}function _N(t){this.a=t,lg.call(this,t)}function TN(t){return KD(null!=t.a),t.a}function EN(t,e){return SO(e.a,t.a),t.a}function SN(t,e){return SO(e.b,t.a),t.a}function CN(t,e){return SO(e.a,t.a),t.a}function AN(t,e,n){return W5(t,e,e,n),t}function MN(t,e){return++t.b,SO(t.a,e)}function LN(t,e){return++t.b,u1(t.a,e)}function IN(t,e){return KR(IQ(t.b,e),15)}function ON(t,e){return!!e&&t.b[e.g]==e}function NN(t){return BI(t.a)||BI(t.b)}function DN(t){return t.$H||(t.$H=++SGt)}function PN(t,e,n){return NW(t,e,n,t.c)}function BN(){yE(),this.b=new Gp(this)}function RN(){RN=E,JKt=new AP(YMt,0)}function FN(){FN=E,HHt=!1,UHt=!0}function $N(t){var e;e=t.a,t.a=t.b,t.b=e}function jN(t,e){zE(),this.a=t,this.b=e}function zN(t,e){qE(),this.b=t,this.c=e}function qN(t,e){sj(),this.f=e,this.d=t}function HN(t,e){DQ(e,t),this.d=t,this.c=e}function UN(t,e){Zit.call(this,t,e,null)}function GN(t,e,n,i){jj.call(this,t,e,n,i)}function KN(t){this.d=t,zO.call(this,t)}function YN(t){this.c=t,zO.call(this,t)}function VN(t){this.c=t,KN.call(this,t)}function WN(t){return E4(t,oCt),new lZ(t)}function XN(t){return uG(),parseInt(t)||-1}function QN(t,e,n){return hN(t,Wlt(e),n)}function ZN(t,e){return new MB(t,t.gc(),e)}function JN(t,e,n){t.fd(e).Rb(n)}function tD(t,e,n){KR(C1(t,e),21).Fc(n)}function eD(t){rO(t,158)&&KR(t,158).pi()}function nD(t){QR.call(this,t,null,null)}function iD(t){HT(),this.b=t,this.a=!0}function rD(t){UT(),this.b=t,this.a=!0}function aD(t){return KD(0!=t.b),t.a.a.c}function oD(t){return KD(0!=t.b),t.c.b.c}function sD(t,e){return W5(t,e,e+1,""),t}function cD(t,e){return!!t.q&&mz(t.q,e)}function lD(t){return t.b=KR(RU(t.a),44)}function uD(t){return null!=t.f?t.f:""+t.g}function hD(t,e){return KR(W1(t.a,e),34)}function fD(t){t.d=new nD(t),t.e=new my}function dD(){this.a=new VG,this.b=new VG}function gD(t){this.c=t,this.a=1,this.b=1}function pD(t){pEt(),Iy(this),this.Ff(t)}function bD(t,e,n){return t.a+=e,t.b+=n,t}function mD(t,e,n){return t.a*=e,t.b*=n,t}function yD(t,e){return t.a=e.a,t.b=e.b,t}function wD(t){return t.a=-t.a,t.b=-t.b,t}function vD(t,e,n){return t.a-=e,t.b-=n,t}function xD(t){jT.call(this),k4(this,t)}function kD(){gT.call(this,"GROW_TREE",0)}function _D(){gT.call(this,"POLYOMINO",0)}function TD(t,e,n){mJ.call(this,t,e,n,2)}function ED(t,e){zE(),jN.call(this,t,e)}function SD(t,e){qE(),zN.call(this,t,e)}function CD(t,e){qE(),SD.call(this,t,e)}function AD(t,e){qE(),zN.call(this,t,e)}function MD(t){this.c=t,D2(t,0),P2(t,0)}function LD(t,e){AI(),P$.call(this,t,e)}function ID(t,e){AI(),LD.call(this,t,e)}function OD(t,e){AI(),LD.call(this,t,e)}function ND(t,e){AI(),P$.call(this,t,e)}function DD(t,e){AI(),OD.call(this,t,e)}function PD(t,e){AI(),ND.call(this,t,e)}function BD(t,e){AI(),P$.call(this,t,e)}function RD(t,e,n){return Ikt(_1(t,e),n)}function FD(t,e){return j9(t.e,KR(e,54))}function $D(t){return null==t?null:function(t){var e,n,i,r,a,o,s,c,l,u,h,f,d,g,p;if(Vvt(),null==t)return null;if(0==(h=8*t.length))return"";for(f=h/24|0,a=null,a=WZ(Fpe,_Ct,28,4*(0!=(s=h%24)?f+1:f),15,1),l=0,u=0,e=0,n=0,i=0,o=0,r=0,c=0;c>24,l=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,p=-128&(i=t[r++])?(i>>6^252)<<24>>24:i>>6<<24>>24,a[o++]=epe[d],a[o++]=epe[g|l<<4],a[o++]=epe[u<<2|p],a[o++]=epe[63&i];return 8==s?(l=(3&(e=t[r]))<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,a[o++]=epe[d],a[o++]=epe[l<<4],a[o++]=61,a[o++]=61):16==s&&(e=t[r],u=(15&(n=t[r+1]))<<24>>24,l=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=epe[d],a[o++]=epe[g|l<<4],a[o++]=epe[u<<2],a[o++]=61),Sit(a,0,a.length)}(t)}function jD(t){return null==t?null:function(t){var e,n,i,r;if(hyt(),null==t)return null;for(i=t.length,e=WZ(Fpe,_Ct,28,2*i,15,1),n=0;n>4],e[2*n+1]=ipe[15&r];return Sit(e,0,e.length)}(t)}function zD(t){return e$(null==t||zM(t)),t}function qD(t){return e$(null==t||qM(t)),t}function HD(t){return e$(null==t||jM(t)),t}function UD(t){null==t.o&&function(t){if(t.ze()){var e=t.c;return e.Ae()?t.o="["+e.n:e.ze()?t.o="["+e.xe():t.o="[L"+e.xe()+";",t.b=e.we()+"[]",void(t.k=e.ye()+"[]")}var n=t.j,i=t.d;i=i.split("/"),t.o=wit(".",[n,wit("$",i)]),t.b=wit(".",[n,wit(".",i)]),t.k=i[i.length-1]}(t)}function GD(t){if(!t)throw Ay(new Wy)}function KD(t){if(!t)throw Ay(new ew)}function YD(t){if(!t)throw Ay(new Xy)}function VD(t){if(!t)throw Ay(new Jy)}function WD(){WD=E,_fe=new Jw,new tv}function XD(){XD=E,Nee=new Vm("root")}function QD(){j4.call(this),this.Bb|=mAt}function ZD(t,e){this.d=t,Vd(this),this.b=e}function JD(t,e){eJ.call(this,t),this.a=e}function tP(t,e){eJ.call(this,t),this.a=e}function eP(t,e,n){rZ.call(this,t,e,n,null)}function nP(t,e,n){rZ.call(this,t,e,n,null)}function iP(t,e){this.c=t,rT.call(this,t,e)}function rP(t,e){this.a=t,iP.call(this,t,e)}function aP(t){this.q=new i.Date(zV(t))}function oP(t){return t>8?0:t+1}function sP(t,e){bGt||SO(t.a,e)}function cP(t,e){return KR(W1(t.b,e),143)}function lP(t,e){return KR(W1(t.c,e),233)}function uP(t){return KR(c$(t.a,t.b),294)}function hP(t){return new IA(t.c,t.d+t.a)}function fP(t){return yH(t),t?1231:1237}function dP(t){return XK(),nI(KR(t,203))}function gP(){gP=E,ZKt=fet((ait(),Fue))}function pP(t,e){e.a?function(t,e){var n,i,r;if(!Mz(t.a,e.b))throw Ay(new Ex("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=t.a.a.ec().Kc();i.Ob();)if(n=KR(i.Pb(),68),g7(e.b,n))Dk(t.b.a,e.b,n),r=!0;else if(r)break}(t,e):kO(t.a,e.b)}function bP(t,e,n){++t.j,t.tj(),XZ(t,e,n)}function mP(t,e,n){++t.j,t.qj(e,t.Zi(e,n))}function yP(t,e,n){t.fd(e).Rb(n)}function wP(t,e,n){return svt(t,e,6,n)}function vP(t,e,n){return svt(t,e,3,n)}function xP(t,e,n){return svt(t,e,9,n)}function kP(t,e){return DG(e,$Mt),t.f=e,t}function _P(t,e){return(e&lSt)%t.d.length}function TP(t,e,n){return skt(t.c,t.b,e,n)}function EP(t,e){this.c=t,t2.call(this,e)}function SP(t,e){this.a=t,ny.call(this,e)}function CP(t,e){this.a=t,ny.call(this,e)}function AP(t,e){Vm.call(this,t),this.a=e}function MP(t,e){sy.call(this,t),this.a=e}function LP(t,e){sy.call(this,t),this.a=e}function IP(t){Cnt.call(this,0,0),this.f=t}function OP(t,e,n){return t.a+=Sit(e,0,n),t}function NP(t){return!t.a&&(t.a=new k),t.a}function DP(t,e){var n;return n=t.e,t.e=e,n}function PP(t,e){var n;return n=e,!!t.Fe(n)}function BP(t,e){t.a.bd(t.b,e),++t.b,t.c=-1}function RP(t){t.b?RP(t.b):t.f.c.zc(t.e,t.d)}function FP(t){_z(t.e),t.d.b=t.d,t.d.a=t.d}function $P(t,e,n){return Oz(t,KR(e,22),n)}function jP(t,e){return ak(new Array(e),t)}function zP(t){return String.fromCharCode(t)}function qP(t,e){t[NAt].call(t,e)}function HP(t,e,n,i){_$.call(this,t,e,n,i)}function UP(){eB.call(this),this.a=new Hk}function GP(){this.n=new Hk,this.o=new Hk}function KP(){this.b=new Hk,this.c=new yy}function YP(){this.a=new yy,this.b=new yy}function VP(){this.a=new he,this.b=new aw}function WP(){this.b=new fX,this.a=new fX}function XP(){this.b=new hw,this.a=new hw}function QP(){this.b=new my,this.a=new my}function ZP(){this.b=new v_,this.a=new _o}function JP(){this.a=new af,this.b=new sa}function tB(){this.a=new yy,this.d=new yy}function eB(){this.n=new Uw,this.i=new WL}function nB(t){this.a=(E4(t,oCt),new lZ(t))}function iB(t){this.a=(E4(t,oCt),new lZ(t))}function rB(t,e){return null==LH(t.a,e,"")}function aB(t,e){return t.a+=e.a,t.b+=e.b,t}function oB(t,e){return t.a-=e.a,t.b-=e.b,t}function sB(t,e,n){return svt(t,e,11,n)}function cB(t,e,n,i){ez.call(this,t,e,n,i)}function lB(t,e,n,i){ez.call(this,t,e,n,i)}function uB(t,e,n,i){lB.call(this,t,e,n,i)}function hB(t,e,n,i){rz.call(this,t,e,n,i)}function fB(t,e,n,i){rz.call(this,t,e,n,i)}function dB(t,e,n,i){rz.call(this,t,e,n,i)}function gB(t,e,n,i){fB.call(this,t,e,n,i)}function pB(t,e,n,i){fB.call(this,t,e,n,i)}function bB(t,e,n,i){dB.call(this,t,e,n,i)}function mB(t,e,n,i){pB.call(this,t,e,n,i)}function yB(t,e,n,i){uz.call(this,t,e,n,i)}function wB(t,e){vx.call(this,Mjt+t+P$t+e)}function vB(t,e){return t.jk().wi().ri(t,e)}function xB(t,e){return t.jk().wi().ti(t,e)}function kB(t,e){return yH(t),$M(t)===$M(e)}function _B(t,e){return yH(t),$M(t)===$M(e)}function TB(t,e){return t.b.Bd(new gS(t,e))}function EB(t,e,n){return t.lastIndexOf(e,n)}function SB(t){return t.c?g1(t.c.a,t,0):-1}function CB(t){return t==Gle||t==Yle||t==Kle}function AB(t,e){this.c=t,Rz.call(this,t,e)}function MB(t,e,n){this.a=t,HN.call(this,e,n)}function LB(t){this.c=t,oL.call(this,qSt,0)}function IB(t,e,n){this.c=e,this.b=n,this.a=t}function OB(t){bR(),this.d=t,this.a=new $O}function NB(t){JB(),this.a=(QU(),new Jx(t))}function DB(t,e){YR.call(this,t,t.length,e)}function PB(t,e){return rO(e,15)&&byt(t.c,e)}function BB(t,e,n){return KR(t.c,71).Xk(e,n)}function RB(t,e,n){return function(t,e,n){return e.Al(t.e,t.c,n)}(t,KR(e,343),n)}function FB(t,e,n){return function(t,e,n){var i,r,a;return i=e.Lk(),a=e.md(),r=i.Jk()?LG(t,4,i,a,null,Bxt(t,i,a,rO(i,102)&&0!=(KR(i,19).Bb&mAt)),!0):LG(t,i.tk()?2:1,i,a,i.ik(),-1,!0),n?n.nj(r):n=r,n}(t,KR(e,343),n)}function $B(t,e){return null==e?null:ctt(t.b,e)}function jB(t){return qM(t)?(yH(t),t):t.ue()}function zB(t){return!isNaN(t)&&!isFinite(t)}function qB(t){XI(this),FU(this),z3(this,t)}function HB(t){mI(this),JR(this.c,0,t.Pc())}function UB(t,e,n){this.a=t,this.b=e,this.c=n}function GB(t,e,n){this.a=t,this.b=e,this.c=n}function KB(t,e,n){this.d=t,this.b=n,this.a=e}function YB(t){this.a=t,zT(),h6(Date.now())}function VB(t){nH(t.a),QZ(t.c,t.b),t.b=null}function WB(){WB=E,YUt=new F,VUt=new $}function XB(){XB=E,vfe=WZ(nHt,pSt,1,0,5,1)}function QB(){QB=E,Ide=WZ(nHt,pSt,1,0,5,1)}function ZB(){ZB=E,Ode=WZ(nHt,pSt,1,0,5,1)}function JB(){JB=E,new Fy((QU(),QU(),NUt))}function tR(t,e){if(!t)throw Ay(new Tx(e))}function eR(t){if(!t)throw Ay(new Ex(mSt))}function nR(t,e){if(t!=e)throw Ay(new Jy)}function iR(t,e,n){this.a=t,this.b=e,this.c=n}function rR(t,e,n){this.a=t,this.b=e,this.c=n}function aR(t,e,n){this.a=t,this.b=e,this.c=n}function oR(t,e,n){this.b=t,this.a=e,this.c=n}function sR(t,e,n){this.b=t,this.c=e,this.a=n}function cR(t,e,n){this.a=t,this.b=e,this.c=n}function lR(t,e,n){this.e=e,this.b=t,this.d=n}function uR(t,e,n){this.b=t,this.a=e,this.c=n}function hR(t){var e;return(e=new vt).e=t,e}function fR(t){var e;return(e=new Sw).b=t,e}function dR(){dR=E,wXt=new Dn,vXt=new Pn}function gR(){gR=E,RQt=new ci,BQt=new li}function pR(){pR=E,UQt=new yr,GQt=new wr}function bR(){bR=E,MTt(),N8t=Cue,D8t=sue}function mR(){mR=E,ihe=new YF,rhe=new oz}function yR(t){return!t.e&&(t.e=new yy),t.e}function wR(t,e){this.c=t,this.a=e,this.b=e-t}function vR(t,e,n){this.a=t,this.b=e,this.c=n}function xR(t,e,n){this.a=t,this.b=e,this.c=n}function kR(t,e,n){this.a=t,this.b=e,this.c=n}function _R(t,e,n){this.a=t,this.b=e,this.c=n}function TR(t,e,n){this.a=t,this.b=e,this.c=n}function ER(t,e,n){this.a=t,this.b=e,this.c=n}function SR(t,e,n){this.e=t,this.a=e,this.c=n}function CR(t,e,n){AI(),XG.call(this,t,e,n)}function AR(t,e,n){AI(),Zq.call(this,t,e,n)}function MR(t,e,n){AI(),Zq.call(this,t,e,n)}function LR(t,e,n){AI(),Zq.call(this,t,e,n)}function IR(t,e,n){AI(),AR.call(this,t,e,n)}function OR(t,e,n){AI(),AR.call(this,t,e,n)}function NR(t,e,n){AI(),OR.call(this,t,e,n)}function DR(t,e,n){AI(),MR.call(this,t,e,n)}function PR(t,e,n){AI(),LR.call(this,t,e,n)}function BR(t){_$.call(this,t.d,t.c,t.a,t.b)}function RR(t){_$.call(this,t.d,t.c,t.a,t.b)}function FR(t){this.d=t,Vd(this),this.b=function(t){return rO(t,15)?KR(t,15).ed():t.Kc()}(t.d)}function $R(t,e){return kq(t),kq(e),new Z_(t,e)}function jR(t,e){return kq(t),kq(e),new SF(t,e)}function zR(t){return KD(0!=t.b),J0(t,t.a.a)}function qR(t){return KD(0!=t.b),J0(t,t.c.b)}function HR(t){var e;return V1(e=new yy,t),e}function UR(t){var e;return O3(e=new dw,t),e}function GR(t){var e;return O3(e=new jT,t),e}function KR(t,e){return e$(null==t||aat(t,e)),t}function YR(t,e,n){Pj.call(this,e,n),this.a=t}function VR(t,e){this.c=t,this.b=e,this.a=!1}function WR(){this.a=";,;",this.b="",this.c=""}function XR(t,e,n){this.b=t,rL.call(this,e,n)}function QR(t,e,n){this.c=t,uS.call(this,e,n)}function ZR(t,e,n){WS.call(this,t,e),this.b=n}function JR(t,e,n){Zdt(n,0,t,e,n.length,!1)}function tF(t,e,n,i,r){t.b=e,t.c=n,t.d=i,t.a=r}function eF(t,e,n,i,r){t.d=e,t.c=n,t.a=i,t.b=r}function nF(t,e){if(!t)throw Ay(new Tx(e))}function iF(t,e){if(!t)throw Ay(new Ex(e))}function rF(t,e){if(!t)throw Ay(new xx(e))}function aF(t,e){return e&&rH(t,e.d)?e:null}function oF(t){return t6(function(t){return zI(~t.l&eAt,~t.m&eAt,~t.h&nAt)}(BL(t)?d6(t):t))}function sF(t){return new IA(t.c+t.b,t.d+t.a)}function cF(t){return null!=t&&!Jet(t,$fe,jfe)}function lF(t,e){return(_tt(t)<<4|_tt(e))&ECt}function uF(t,e,n,i,r){t.c=e,t.d=n,t.b=i,t.a=r}function hF(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function fF(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function dF(t,e){return t.g=e<0?-1:e,t}function gF(t,e){return function(t){var e;(e=i.Math.sqrt(t.a*t.a+t.b*t.b))>0&&(t.a/=e,t.b/=e)}(t),t.a*=e,t.b*=e,t}function pF(t,e,n){Q0.call(this,e,n),this.d=t}function bF(t,e,n){BM.call(this,t,e),this.c=n}function mF(t,e,n){BM.call(this,t,e),this.c=n}function yF(t){ZB(),pl.call(this),this.ci(t)}function wF(){oZ(),tH.call(this,($E(),Qfe))}function vF(t){return UEt(),new D$(0,t)}function xF(){xF=E,QU(),dge=new fg(tqt)}function kF(){kF=E,new pat((Cv(),uHt),(Sv(),lHt))}function _F(){_F=E,tUt=WZ(nUt,RSt,17,256,0,1)}function TF(){this.b=gx(qD(Rrt((Evt(),CVt))))}function EF(t){this.b=t,this.a=xj(this.b.a).Od()}function SF(t,e){this.b=t,this.a=e,Nh.call(this)}function CF(t,e){this.a=t,this.b=e,Nh.call(this)}function AF(t,e,n){this.a=t,xL.call(this,e,n)}function MF(t,e,n){this.a=t,xL.call(this,e,n)}function LF(t,e,n){I0(t,e,new _q(n))}function IF(t,e,n){var i;return i=t[e],t[e]=n,i}function OF(t){return LJ(t.slice(),t)}function NF(t){var e;return e=t.n,t.a.b+e.d+e.a}function DF(t){var e;return e=t.n,t.e.b+e.d+e.a}function PF(t){var e;return e=t.n,t.e.a+e.b+e.c}function BF(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function RF(t,e){return dX(t,e,t.c.b,t.c),!0}function FF(t,e){return Jst(t,new WS(e.a,e.b))}function $F(t){return t.b.c.length-t.e.c.length}function jF(t){return t.e.c.length-t.g.c.length}function zF(t){return t.e.c.length+t.g.c.length}function qF(t){return 0==t||isNaN(t)?t:t<0?-1:1}function HF(t,e,n){!function(t,e,n,i,r){var a,o,s,c,l,u,h,f,d,g,p,b;null==(g=Oq(t.e,i))&&(l=KR(g=new Wv,190),c=new _q(e+"_s"+r),I0(l,b$t,c)),zq(n,d=KR(g,190)),aG(b=new Wv,"x",i.j),aG(b,"y",i.k),I0(d,w$t,b),aG(h=new Wv,"x",i.b),aG(h,"y",i.c),I0(d,"endPoint",h),!G_((!i.a&&(i.a=new AO(zhe,i,5)),i.a))&&(a=new Dm(u=new Td),UX((!i.a&&(i.a=new AO(zhe,i,5)),i.a),a),I0(d,l$t,u)),!!Lat(i)&&nut(t.a,d,h$t,ift(t,Lat(i))),!!Iat(i)&&nut(t.a,d,u$t,ift(t,Iat(i))),!(0==(!i.e&&(i.e=new bB(Khe,i,10,9)),i.e).i)&&(o=new yM(t,f=new Td),UX((!i.e&&(i.e=new bB(Khe,i,10,9)),i.e),o),I0(d,d$t,f)),0!=(!i.g&&(i.g=new bB(Khe,i,9,10)),i.g).i&&(s=new wM(t,p=new Td),UX((!i.g&&(i.g=new bB(Khe,i,9,10)),i.g),s),I0(d,f$t,p))}(t.a,t.b,t.c,KR(e,166),n)}function UF(t,e,n,i){Lit.call(this,t,e,n,i,0,0)}function GF(t){ZB(),yF.call(this,t),this.a=-1}function KF(t,e){Pj.call(this,e,1040),this.a=t}function YF(){XA.call(this,"COUNT_CHILDREN",0)}function VF(t,e){DM.call(this,t,e),this.a=this}function WF(t,e){var n;return(n=xq(t,e)).i=2,n}function XF(t,e){return++t.j,t.Cj(e)}function QF(t,e,n){return t.a=-1,tD(t,e.g,n),t}function ZF(t){return p2(),WZ(z9t,RPt,40,t,0,1)}function JF(t){return t.e.Rd().gc()*t.c.Rd().gc()}function t$(t,e,n){return new IB(function(t){return 0>=t?new KT:function(t){return 0>t?new KT:new tP(null,new ZX(t+1,t))}(t-1)}(t)._e(),n,e)}function e$(t){if(!t)throw Ay(new _x(null))}function n$(t){if(t.c.e!=t.a)throw Ay(new Jy)}function i$(t){if(t.e.c!=t.b)throw Ay(new Jy)}function r$(t){for(kq(t);t.Ob();)t.Pb(),t.Qb()}function a$(t){Sq(),this.a=(QU(),new fg(kq(t)))}function o$(t){this.c=t,this.b=this.c.d.vc().Kc()}function s$(t,e){return t.a+=Sit(e,0,e.length),t}function c$(t,e){return LY(e,t.c.length),t.c[e]}function l$(t,e){return LY(e,t.a.length),t.a[e]}function u$(t,e,n,i,r,a){return Oct(t,e,n,i,r,0,a)}function h$(t,e){return function(t,e){return Kit(Set(Kit(t.a).a,e.a))}(KR(t,168),KR(e,168))}function f$(){f$=E,iUt=WZ(cUt,RSt,168,256,0,1)}function d$(){d$=E,lUt=WZ(uUt,RSt,191,256,0,1)}function g$(){g$=E,YHt=WZ(VHt,RSt,222,256,0,1)}function p$(){p$=E,XHt=WZ(QHt,RSt,180,128,0,1)}function b$(){tF(this,!1,!1,!1,!1)}function m$(t){xg.call(this,new fX),z3(this,t)}function y$(t){this.a=new RT(t.gc()),z3(this,t)}function w$(t){this.c=t,this.a=new $T(this.c.a)}function v$(t){this.a=t,this.c=new my,function(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i>>e,r=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(a=0,r=n>>>e-22,i=t.m>>e-22|t.h<<44-e):(a=0,r=0,i=n>>>e-44),zI(i&eAt,r&eAt,a&nAt)}(BL(t)?d6(t):t,e))}function Ij(t,e){return function(t,e){return FN(),t==e?0:t?1:-1}((yH(t),t),(yH(e),e))}function Oj(t,e){return cet((yH(t),t),(yH(e),e))}function Nj(t){this.b=new lZ(11),this.a=(XU(),t)}function Dj(t){this.a=(cj(),gHt),this.d=KR(kq(t),51)}function Pj(t,e){this.c=0,this.d=t,this.b=64|e|FSt}function Bj(t,e){this.e=t,this.d=64&e?e|FSt:e}function Rj(t){this.b=null,this.a=(XU(),t||RUt)}function Fj(t){FO(this),this.g=t,PU(this),this.je()}function $j(t){GE(),this.a=0,this.b=t-1,this.c=1}function jj(t,e,n,i){this.a=t,rZ.call(this,t,e,n,i)}function zj(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function qj(t,e){if(t<0||t>=e)throw Ay(new Fw)}function Hj(t,e){return btt(t,(yH(e),new Ag(e)))}function Uj(t,e){return btt(t,(yH(e),new Mg(e)))}function Gj(t,e,n){return function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y;if(i=e,c=n,t.b&&i.j==(MTt(),Cue)&&c.j==(MTt(),Cue)&&(y=i,i=c,c=y),mz(t.a,i)){if(NT(KR(Oq(t.a,i),49),c))return 1}else LH(t.a,i,new hw);if(mz(t.a,c)){if(NT(KR(Oq(t.a,c),49),i))return-1}else LH(t.a,c,new hw);if(mz(t.d,i)){if(NT(KR(Oq(t.d,i),49),c))return-1}else LH(t.d,i,new hw);if(mz(t.d,c)){if(NT(KR(Oq(t.a,c),49),i))return 1}else LH(t.d,c,new hw);if(i.j!=c.j)return-1==(m=function(t,e){return $I(t.g,e.g)}(i.j,c.j))?gwt(t,c,i):gwt(t,i,c),m;if(0!=i.e.c.length&&0!=c.e.c.length){if(t.b&&0!=(m=h9(i,c)))return-1==m?gwt(t,c,i):1==m&&gwt(t,i,c),m;if((a=KR(c$(i.e,0),18).c.i)==(u=KR(c$(c.e,0),18).c.i))return(r=KR(fut(KR(c$(i.e,0),18),(jEt(),H1t)),17).a)>(l=KR(fut(KR(c$(c.e,0),18),H1t),17).a)?gwt(t,i,c):gwt(t,c,i),rl?1:0;for(p=0,b=(g=t.c).length;p(l=KR(fut(f,H1t),17).a)?gwt(t,i,c):gwt(t,c,i),rl?1:0):t.b&&0!=(m=h9(i,c))?(-1==m?gwt(t,c,i):1==m&&gwt(t,i,c),m):(o=0,h=0,cD(KR(c$(i.g,0),18),H1t)&&(o=KR(fut(KR(c$(i.g,0),18),H1t),17).a),cD(KR(c$(c.g,0),18),H1t)&&(h=KR(fut(KR(c$(i.g,0),18),H1t),17).a),s&&s==f?dx(zD(fut(KR(c$(i.g,0),18),i0t)))&&!dx(zD(fut(KR(c$(c.g,0),18),i0t)))?(gwt(t,i,c),1):!dx(zD(fut(KR(c$(i.g,0),18),i0t)))&&dx(zD(fut(KR(c$(c.g,0),18),i0t)))?(gwt(t,c,i),-1):(o>h?gwt(t,i,c):gwt(t,c,i),oh?1:0):(t.f&&(t.f._b(s)&&(o=KR(t.f.xc(s),17).a),t.f._b(f)&&(h=KR(t.f.xc(f),17).a)),o>h?gwt(t,i,c):gwt(t,c,i),oh?1:0))):0!=i.e.c.length&&0!=c.g.c.length?(gwt(t,i,c),1):0!=i.g.c.length&&0!=c.e.c.length?(gwt(t,c,i),-1):cD(i,(jEt(),H1t))&&cD(c,H1t)?((r=KR(fut(i,H1t),17).a)>(l=KR(fut(c,H1t),17).a)?gwt(t,i,c):gwt(t,c,i),rl?1:0):(gwt(t,c,i),-1)}(t,KR(e,12),KR(n,12))}function Kj(t){return m5(),0!=KR(t,12).g.c.length}function Yj(t){return m5(),0!=KR(t,12).e.c.length}function Vj(t,e){e.Ug("General 'Rotator",1),function(t){var e,n,r,a,o,s,c,l,u,h,f,d,g;for(f=gx(qD(spt(t,(pht(),One)))),dx(zD(spt(t,Lne)))&&(h=KR(spt(t,(XD(),Nee)),27),o=KR(l2(UH(KR(l2((!h.e&&(h.e=new bB(Ghe,h,7,4)),h.e),(!h.e&&(h.e=new bB(Ghe,h,7,4)),h.e).i-1),74)),0),27),r=KR(l2(UH(KR(l2((!h.e&&(h.e=new bB(Ghe,h,7,4)),h.e),0),74)),0),27),s=new IA(o.i+o.g/2,o.j+o.f/2),a=new IA(r.i+r.g/2,r.j+r.f/2),(n=f)<=0&&(n+=eBt),(d=i.Math.acos((s.a*a.a+s.b*a.b)/(i.Math.sqrt(s.a*s.a+s.b*s.b)*i.Math.sqrt(a.a*a.a+a.b*a.b))))<=0&&(d+=eBt),(e=i.Math.atan2(s.b,s.a))<=0&&(e+=eBt),f=MPt-(e-n+d/2)),l=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));l.e!=l.i.gc();)g=(u=new IA((c=KR(Frt(l),27)).i+c.g/2,c.j+c.f/2)).a*i.Math.cos(f)-u.b*i.Math.sin(f),u.b=u.a*i.Math.sin(f)+u.b*i.Math.cos(f),u.a=g,cI(c,u.a-c.g/2,u.b-c.f/2)}(t)}function Wj(t,e,n){return Ymt(),S5(t,e)&&S5(t,n)}function Xj(t){return cdt(),!t.Hc(eue)&&!t.Hc(iue)}function Qj(t){return t.e?JQ(t.e):null}function Zj(t){return BL(t)?""+t:gyt(t)}function Jj(t){var e;for(e=t;e.f;)e=e.f;return e}function tz(t,e,n,i){var r;(r=t.i).i=e,r.a=n,r.b=i}function ez(t,e,n,i){AO.call(this,t,e,n),this.b=i}function nz(t,e,n,i,r){yJ.call(this,t,e,n,i,r,-1)}function iz(t,e,n,i,r){wJ.call(this,t,e,n,i,r,-1)}function rz(t,e,n,i){bF.call(this,t,e,n),this.b=i}function az(t){xM.call(this,t,!1),this.a=!1}function oz(){XA.call(this,"LOOKAHEAD_LAYOUT",1)}function sz(t){this.b=t,KN.call(this,t),QO(this)}function cz(t){this.b=t,VN.call(this,t),ZO(this)}function lz(t,e,n){this.a=t,cB.call(this,e,n,5,6)}function uz(t,e,n,i){this.b=t,AO.call(this,e,n,i)}function hz(t,e){this.b=t,od.call(this,t.b),this.a=e}function fz(t){this.a=hat(t.a),this.b=new HB(t.b)}function dz(t,e){Sq(),mT.call(this,t,J9(new Dx(e)))}function gz(t,e){return UEt(),new Qq(t,e,0)}function pz(t,e){return UEt(),new Qq(6,t,e)}function bz(t,e){for(yH(e);t.Ob();)e.Cd(t.Pb())}function mz(t,e){return jM(e)?gG(t,e):!!U$(t.f,e)}function yz(t,e){return e.Vh()?j9(t.b,KR(e,54)):e}function wz(t,e){return _B(t.substr(0,e.length),e)}function vz(t){return new Dj(new rN(t.a.length,t.a))}function xz(t){return new IA(t.c+t.b/2,t.d+t.a/2)}function kz(t){return typeof t===rSt||typeof t===cSt}function _z(t){t.f=new UL(t),t.i=new GL(t),++t.g}function Tz(t){if(!t)throw Ay(new ew);return t.d}function Ez(t){var e;return KD(null!=(e=j7(t))),e}function Sz(t){var e;return KD(null!=(e=function(t){var e;return null==(e=t.a[t.c-1&t.a.length-1])?null:(t.c=t.c-1&t.a.length-1,Dq(t.a,t.c,null),e)}(t))),e}function Cz(t,e){var n;return DQ(e,n=t.a.gc()),n-e}function Az(t,e){return null==t.a.zc(e,t)}function Mz(t,e){return null==t.a.zc(e,(FN(),HHt))}function Lz(t){return new k$(null,function(t,e){return function(t,e){if(0>t||t>e)throw Ay(new Qx("fromIndex: 0, toIndex: "+t+jAt+e))}(e,t.length),new KF(t,e)}(t,t.length))}function Iz(t,e,n){return Skt(t,KR(e,42),KR(n,176))}function Oz(t,e,n){return b3(t.a,e),IF(t.b,e.g,n)}function Nz(t,e,n,i){G8(e,n,t.length),function(t,e,n,i){var r;for(r=e;r0?1:0}function Uz(t,e){pO(t,rO(e,160)?e:KR(e,2036).Rl())}function Gz(t,e){if(null==t)throw Ay(new Cx(e))}function Kz(t,e){return!!e&&z3(t,e)}function Yz(t){return 0==t.e?t:new Pz(-t.e,t.d,t.a)}function Vz(t,e){dX(t.d,e,t.b.b,t.b),++t.a,t.c=null}function Wz(t,e){return t.c?Wz(t.c,e):SO(t.b,e),t}function Xz(t,e,n){var i;return i=Q1(t,e),eX(t,e,n),i}function Qz(t,e,n){var i;for(i=0;i0?(krt(t,n,0),n.a+=String.fromCharCode(i),krt(t,n,r=Vit(e,a)),a+=r-1):39==i?a+1=t.g}function Dq(t,e,n){return function(t){if(!t)throw Ay(new Yy)}(null==n||function(t,e){var n;switch(i0(t)){case 6:return jM(e);case 7:return qM(e);case 8:return zM(e);case 3:return Array.isArray(e)&&!((n=i0(e))>=14&&n<=16);case 11:return null!=e&&typeof e===cSt;case 12:return null!=e&&(typeof e===rSt||typeof e==cSt);case 0:return aat(e,t.__elementTypeId$);case 2:return kz(e)&&e.Tm!==T;case 1:return kz(e)&&e.Tm!==T||aat(e,t.__elementTypeId$);default:return!0}}(t,n)),t[e]=n}function Pq(t,e){return IY(e,t.length+1),t.substr(e)}function Bq(t,e){for(yH(e);t.c0;)t=t<<1|(t<0?1:0);return t}function FH(t,e){var n;return n=new $q(t),Dy(e.c,n),n}function $H(t,e){t.u.Hc((cdt(),eue))&&function(t,e){var n,r,a,o;for(n=(o=KR(zH(t.b,e),127)).a,a=KR(KR(IQ(t.r,e),21),87).Kc();a.Ob();)(r=KR(a.Pb(),117)).c&&(n.a=i.Math.max(n.a,PF(r.c)));if(n.a>0)switch(e.g){case 2:o.n.c=t.s;break;case 4:o.n.b=t.s}}(t,e),function(t,e){var n;t.C&&((n=KR(zH(t.b,e),127).n).d=t.C.d,n.a=t.C.a)}(t,e)}function jH(t,e){return $M(t)===$M(e)||null!=t&&wtt(t,e)}function zH(t,e){return q$(t.a,e)?t.b[KR(e,22).g]:null}function qH(t){return!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n}function HH(t){return!t.c&&(t.c=new ez(Jhe,t,9,9)),t.c}function UH(t){return!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c}function GH(t){return t.j.c.length=0,sU(t.c),function(t){ow(t.j.c,0),t.a=-1}(t.a),t}function KH(t){return t.e==eqt&&function(t,e){t.e=e}(t,function(t,e){var n,i;return(n=e.qi(t.a))&&null!=(i=HD(Ynt((!n.b&&(n.b=new TD((KEt(),Cde),Jde,n)),n.b),A$t)))?i:e.xe()}(t.g,t.b)),t.e}function YH(t){return t.f==eqt&&function(t,e){t.f=e}(t,function(t,e){var n,i;return(n=e.qi(t.a))?(i=HD(Ynt((!n.b&&(n.b=new TD((KEt(),Cde),Jde,n)),n.b),Wzt)),_B(Xzt,i)?_j(t,r2(e.qk())):i):null}(t.g,t.b)),t.f}function VH(t,e,n,i){return o6(t,e,n,!1),Stt(t,i),t}function WH(t,e){this.b=t,Rz.call(this,t,e),QO(this)}function XH(t,e){this.b=t,AB.call(this,t,e),ZO(this)}function QH(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function ZH(t,e){this.b=t,this.c=e,this.a=new $T(this.b)}function JH(t,e){return IY(e,t.length),t.charCodeAt(e)}function tU(t,e){wet(t,gx(K2(e,"x")),gx(K2(e,"y")))}function eU(t,e){wet(t,gx(K2(e,"x")),gx(K2(e,"y")))}function nU(t,e){return get(t),new k$(t,new ZJ(e,t.a))}function iU(t,e){return get(t),new k$(t,new qQ(e,t.a))}function rU(t,e){return get(t),new JD(t,new jQ(e,t.a))}function aU(t,e){return get(t),new tP(t,new zQ(e,t.a))}function oU(t,e,n){n.a?P2(t,e.b-t.f/2):D2(t,e.a-t.g/2)}function sU(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function cU(t){var e;return!(e=t.b)&&(t.b=e=new Yf(t)),e}function lU(t){return function(t){var e;return rO(e=fut(t,(jEt(),U1t)),167)?wnt(KR(e,167)):null}(t)||null}function uU(t,e){var n,i;return(n=t/e)>(i=oK(n))&&++i,i}function hU(t,e,n){(function(t,e){var n,i,r,a;for(function(t){var e;for(e=0;e0&&oct(this)}function jU(t,e){this.a=t,ZD.call(this,t,KR(t.d,15).fd(e))}function zU(t,e){return t.b=e.b,t.c=e.c,t.d=e.d,t.a=e.a,t}function qU(t,e,n,i){this.b=t,this.c=i,oL.call(this,e,n)}function HU(t){return t.f||(t.f=new rT(t,t.c))}function UU(t,e){return att(t.j,e.s,e.c)+att(e.e,t.s,t.c)}function GU(t,e){t.e&&!t.e.a&&(ky(t.e,e),GU(t.e,e))}function KU(t,e){t.d&&!t.d.a&&(ky(t.d,e),KU(t.d,e))}function YU(){Kut(this,new Df),this.wb=(Aq(),sde),Qk()}function VU(t){this.b=new yy,G6(this.b,this.b),this.a=t}function WU(t,e){new jT,this.a=new Zw,this.b=t,this.c=e}function XU(){XU=E,RUt=new N,FUt=new N,$Ut=new D}function QU(){QU=E,NUt=new A,DUt=new L,PUt=new I}function ZU(){ZU=E,IGt=new gt,NGt=new rj,OGt=new pt}function JU(){JU=E,KYt=new yy,GYt=new my,UYt=new yy}function tG(t,e){if(null==t)throw Ay(new Cx(e));return t}function eG(t){return!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a}function nG(t){return!t.q&&(t.q=new ez(nde,t,11,10)),t.q}function iG(t){return!t.s&&(t.s=new ez(Kfe,t,21,17)),t.s}function rG(t){return kq(t),Jat(new Dj(lN(t.a.Kc(),new u)))}function aG(t,e,n){I0(t,e,new kd(jB(n)))}function oG(t,e,n,i,r,a){wJ.call(this,t,e,n,i,r,a?-2:-1)}function sG(t,e,n,i){BM.call(this,e,n),this.b=t,this.a=i}function cG(t,e){Pv.call(this,new Rj(t)),this.a=t,this.b=e}function lG(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function uG(){var t,e;uG=E,e=!(Error.stackTraceLimit>0?(i.Error.stackTraceLimit=Error.stackTraceLimit=64,1):"stack"in new Error),t=new w,CHt=e?new y:t}function hG(t){return QU(),rO(t,59)?new ek(t):new wN(t)}function fG(t){return rO(t,16)?new y$(KR(t,16)):function(t){var e;return V1(e=new hw,t),e}(t.Kc())}function dG(t){return t&&t.hashCode?t.hashCode():DN(t)}function gG(t,e){return null==e?!!U$(t.f,null):function(t,e){return void 0!==t.a.get(e)}(t.i,e)}function pG(t,e){var n;return(n=gO(t.a,e))&&(e.d=null),n}function bG(t,e,n){return!!t.f&&t.f.ef(e,n)}function mG(t,e,n,i){Dq(t.c[e.g],n.g,i),Dq(t.c[n.g],e.g,i)}function yG(t,e,n,i){Dq(t.c[e.g],e.g,n),Dq(t.b[e.g],e.g,i)}function wG(t,e){this.g=t,this.d=t7(rk(QWt,1),KIt,10,0,[e])}function vG(t){this.c=t,this.b=new y_(KR(kq(new bt),50))}function xG(t){this.c=t,this.b=new y_(KR(kq(new _e),50))}function kG(t){this.b=t,this.a=new y_(KR(kq(new Jt),50))}function _G(){this.b=new hw,this.d=new jT,this.e=new $w}function TG(){this.c=new Hk,this.d=new Hk,this.e=new Hk}function EG(){this.a=new Zw,this.b=(E4(3,oCt),new lZ(3))}function SG(t,e){this.e=t,this.a=nHt,this.b=Kyt(e),this.c=e}function CG(t){this.c=t.c,this.d=t.d,this.b=t.b,this.a=t.a}function AG(t,e,n,i,r,a){this.a=t,$4.call(this,e,n,i,r,a)}function MG(t,e,n,i,r,a){this.a=t,$4.call(this,e,n,i,r,a)}function LG(t,e,n,i,r,a,o){return new sX(t.e,e,n,i,r,a,o)}function IG(t,e,n){return n>=0&&_B(t.substr(n,e.length),e)}function OG(t,e){return rO(e,149)&&_B(t.b,KR(e,149).Pg())}function NG(t,e){var n;return yX(n=t.b.Qc(e),t.b.gc()),n}function DG(t,e){if(null==t)throw Ay(new Cx(e));return t}function PG(t){return t.u||(aQ(t),t.u=new SP(t,t)),t.u}function BG(t){this.a=(QU(),rO(t,59)?new ek(t):new wN(t))}function RG(t){return KR(i6(t,16),29)||t.ii()}function FG(t,e){var n;return n=a_(t.Rm),null==e?n:n+": "+e}function $G(t,e,n){return tJ(e,n,t.length),t.substr(e,n-e)}function jG(t,e){eB.call(this),h2(this),this.a=t,this.c=e}function zG(t){Gx(),i.setTimeout((function(){throw t}),0)}function qG(t,e,n,i){return n>=0?t.Uh(e,n,i):t.Ch(null,n,i)}function HG(t){return 0==t.b.b?t.a.sf():zR(t.b)}function UG(t){return $M(t.a)===$M((p5(),Pde))&&function(t){var e,n,i,r,a,o,s,c,l,u;for(e=new wl,n=new wl,l=_B(hzt,(r=gvt(t.b,fzt))?HD(Ynt((!r.b&&(r.b=new TD((KEt(),Cde),Jde,r)),r.b),dzt)):null),c=0;c0&&t.b>0&&(t.g=T$(t.c,t.b,t.a))}function KG(t,e){t.c=e,t.c>0&&t.b>0&&(t.g=T$(t.c,t.b,t.a))}function YG(t,e){(function(t,e){t.a=e})(this,new IA(t.a,t.b)),function(t,e){t.b=e}(this,GR(e))}function VG(){Bv.call(this,new RT(R0(12))),GO(!0),this.a=2}function WG(t,e,n){UEt(),by.call(this,t),this.b=e,this.a=n}function XG(t,e,n){AI(),cy.call(this,e),this.a=t,this.b=n}function QG(t){var e;e=t.c.d.b,t.b=e,t.a=t.c.d,e.a=t.c.d.b=t}function ZG(t,e){return null==e?FM(U$(t.f,null)):nS(t.i,e)}function JG(t,e,n,i,r){return new vht(t,(DJ(),oGt),e,n,i,r)}function tK(t,e){return tX(e),function(t,e,n){var r;return r=t.length,Zdt(t,0,e,0,i.Math.min(n,r),!0),e}(t,WZ($pe,$Ct,28,e,15,1),e)}function eK(t,e){return tG(t,"set1"),tG(e,"set2"),new yT(t,e)}function nK(t,e){var n;return U_t(t,e,n=new z),n.d}function iK(t,e,n,i){var r;r=new UP,e.a[n.g]=r,Oz(t.b,i,r)}function rK(t,e){return aB(wD(function(t,e){return oB(tO(KR(Oq(t.g,e),8)),eO(KR(Oq(t.f,e),470).b))}(t.f,e)),t.f.d)}function aK(t){(function(t){var e;for(e=new pg(jot(t));e.a>16!=3?null:KR(t.Cb,27)}function dK(t){return t.Db>>16!=9?null:KR(t.Cb,27)}function gK(t){return t.Db>>16!=6?null:KR(t.Cb,74)}function pK(){pK=E,L9t=new eA(RMt,0),I9t=new eA(FMt,1)}function bK(){bK=E,Z8t=new jC(FMt,0),Q8t=new jC(RMt,1)}function mK(){mK=E,e9t=new zC(WMt,0),n9t=new zC("UP",1)}function yK(){yK=E,yHt=c9((Qv(),t7(rk(wHt,1),sCt,549,0,[mHt])))}function wK(t){var e;return F7(e=new h_(R0(t.length)),t),e}function vK(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function xK(t,e){if(null==e)throw Ay(new Qy);return function(t,e){var n,i=t.a;e=String(e),i.hasOwnProperty(e)&&(n=i[e]);var r=(O7(),BHt)[typeof n];return r?r(n):k9(typeof n)}(t,e)}function kK(t,e){var n;n=t.q.getHours(),t.q.setDate(e),Ixt(t,n)}function _K(t,e,n){var i;(i=t.Ih(e))>=0?t.bi(i,n):Zpt(t,e,n)}function TK(t,e){var n;return(n=t.Ih(e))>=0?t.Wh(n):Adt(t,e)}function EK(t,e){var n;for(kq(e),n=t.a;n;n=n.c)e.Yd(n.g,n.i)}function SK(t,e,n){var i;i=K7(t,e,n),t.b=new A3(i.c.length)}function CK(t,e,n){GK(),t&&LH(mfe,t,e),t&&LH(bfe,t,n)}function AK(t,e){return i.Math.abs(t)>16!=7?null:KR(t.Cb,241)}function OK(t){return t.Db>>16!=6?null:KR(t.Cb,241)}function NK(t){return t.Db>>16!=7?null:KR(t.Cb,167)}function DK(t){return t.Db>>16!=11?null:KR(t.Cb,27)}function PK(t){return t.Db>>16!=17?null:KR(t.Cb,29)}function BK(t){return t.Db>>16!=3?null:KR(t.Cb,155)}function RK(t){return get(t),nU(t,new qg(new hw))}function FK(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.ve(e))}function $K(t,e){FO(this),this.f=e,this.g=t,PU(this),this.je()}function jK(t,e){this.a=t,this.c=tO(this.a),this.b=new CG(e)}function zK(t,e,n){this.a=e,this.c=t,this.b=(kq(n),new HB(n))}function qK(t,e,n){this.a=e,this.c=t,this.b=(kq(n),new HB(n))}function HK(t){this.a=t,this.b=WZ(P8t,RSt,2043,t.e.length,0,2)}function UK(){this.a=new jL,this.e=new hw,this.g=0,this.i=0}function GK(){var t,e;GK=E,mfe=new my,bfe=new my,t=HUt,e=new ll,t&&LH(bfe,t,e)}function KK(){KK=E,u8t=dj(new EH,(dut(),gWt),(qEt(),mQt))}function YK(){YK=E,h8t=dj(new EH,(dut(),gWt),(qEt(),mQt))}function VK(){VK=E,d8t=dj(new EH,(dut(),gWt),(qEt(),mQt))}function WK(){WK=E,z8t=QF(new EH,(dut(),gWt),(qEt(),HXt))}function XK(){XK=E,K8t=QF(new EH,(dut(),gWt),(qEt(),HXt))}function QK(){QK=E,W8t=QF(new EH,(dut(),gWt),(qEt(),HXt))}function ZK(){ZK=E,r9t=QF(new EH,(dut(),gWt),(qEt(),HXt))}function JK(t,e,n,i,r,a){return new M1(t.e,e,t.Lj(),n,i,r,a)}function tY(t,e,n){return null==e?_ft(t.f,null,n):pet(t.i,e,n)}function eY(t,e){t.c&&u1(t.c.g,t),t.c=e,t.c&&SO(t.c.g,t)}function nY(t,e){t.c&&u1(t.c.a,t),t.c=e,t.c&&SO(t.c.a,t)}function iY(t,e){t.i&&u1(t.i.j,t),t.i=e,t.i&&SO(t.i.j,t)}function rY(t,e){t.d&&u1(t.d.e,t),t.d=e,t.d&&SO(t.d.e,t)}function aY(t,e){t.a&&u1(t.a.k,t),t.a=e,t.a&&SO(t.a.k,t)}function oY(t,e){t.b&&u1(t.b.f,t),t.b=e,t.b&&SO(t.b.f,t)}function sY(t,e){(function(t,e,n){KR(e.b,68),V0(e.a,new kR(t,n,e))})(t,t.b,t.c),KR(t.b.b,68),e&&KR(e.b,68).b}function cY(t,e){rO(t.Cb,184)&&(KR(t.Cb,184).tb=null),B3(t,e)}function lY(t,e){rO(t.Cb,90)&&jft(aQ(KR(t.Cb,90)),4),B3(t,e)}function uY(t){var e;return Qk(),a2(e=new xy,t),e}function hY(t){var e;return Qk(),a2(e=new xy,t),e}function fY(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function dY(t,e,n){return SO(t.a,(NH(),Yat(e,n),new dT(e,n))),t}function gY(t,e){return UE(),G1(e)?new VF(e,t):new DM(e,t)}function pY(t){return lwt(),F9(t,0)>=0?Xnt(t):Yz(Xnt(d1(t)))}function bY(t,e){var n;return(n=KR(ctt(HU(t.a),e),16))?n.gc():0}function mY(t,e,n){var i;xtt(e,n,t.c.length),i=n-e,L_(t.c,e,i)}function yY(t,e,n){xtt(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function wY(t){this.c=new jT,this.b=t.b,this.d=t.c,this.a=t.a}function vY(t){this.a=i.Math.cos(t),this.b=i.Math.sin(t)}function xY(t,e,n,i){this.c=t,this.d=i,aY(this,e),oY(this,n)}function kY(t,e){Dv.call(this,new RT(R0(t))),E4(e,BSt),this.a=e}function _Y(t,e,n){return new vht(t,(DJ(),aGt),null,!1,e,n)}function TY(t,e,n){return new vht(t,(DJ(),sGt),e,n,null,!1)}function EY(t){return Y7(t7(rk(doe,1),RSt,8,0,[t.i.n,t.n,t.a]))}function SY(){SY=E,Mee=dj(new EH,(pst(),B9t),(Awt(),H9t))}function CY(){CY=E,Cee=new oA("DFS",0),See=new oA("BFS",1)}function AY(t,e,n){var i;(i=new io).b=e,i.a=n,++e.b,SO(t.d,i)}function MY(t,e){if(t<0||t>e)throw Ay(new vx(tMt+t+eMt+e))}function LY(t,e){if(t<0||t>=e)throw Ay(new vx(tMt+t+eMt+e))}function IY(t,e){if(t<0||t>=e)throw Ay(new Xx(tMt+t+eMt+e))}function OY(t,e){this.b=(yH(t),t),this.a=e&gAt?e:64|e|FSt}function NY(t){return get(t),XU(),XU(),q0(t,FUt)}function DY(t){return kq(t),rO(t,16)?new HB(KR(t,16)):HR(t.Kc())}function PY(t,e){return t&&t.equals?t.equals(e):$M(t)===$M(e)}function BY(t,e){return t6(function(t,e){return zI(t.l&e.l,t.m&e.m,t.h&e.h)}(BL(t)?d6(t):t,BL(e)?d6(e):e))}function RY(t,e){return t6(function(t,e){return zI(t.l|e.l,t.m|e.m,t.h|e.h)}(BL(t)?d6(t):t,BL(e)?d6(e):e))}function FY(t,e){return t6(function(t,e){return zI(t.l^e.l,t.m^e.m,t.h^e.h)}(BL(t)?d6(t):t,BL(e)?d6(e):e))}function $Y(t,e){var n,i;return i=Cz(t,e),n=t.a.fd(i),new pT(t,n)}function jY(t){return KD(t.a0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function NV(t){return KD(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function DV(t,e){var n;t.e=new Tv,PI(n=Dmt(e),t.c),nyt(t,n,0)}function PV(t,e,n,i){var r;(r=new gc).a=e,r.b=n,r.c=i,RF(t.a,r)}function BV(t,e,n,i){var r;(r=new gc).a=e,r.b=n,r.c=i,RF(t.b,r)}function RV(t,e,n){if(t<0||en)throw Ay(new vx(function(t,e,n){return t<0||t>n?Mft(t,n,"start index"):e<0||e>n?Mft(e,n,"end index"):Uyt("end index (%s) must not be less than start index (%s)",t7(rk(nHt,1),pSt,1,5,[ttt(e),ttt(t)]))}(t,e,n)))}function FV(t,e){if(t<0||t>=e)throw Ay(new vx(function(t,e){if(t<0)return Uyt(gSt,t7(rk(nHt,1),pSt,1,5,["index",ttt(t)]));if(e<0)throw Ay(new Tx(bSt+e));return Uyt("%s (%s) must be less than size (%s)",t7(rk(nHt,1),pSt,1,5,["index",ttt(t),ttt(e)]))}(t,e)));return t}function $V(t){return yE(),rO(t.g,10)?KR(t.g,10):null}function jV(t){return!cU(t).dc()&&(function(t,e){kq(e),cU(t).Jc(new d)}(t,new g),!0)}function zV(t){var e;return BL(t)?-0==(e=t)?0:e:function(t){return Yst(t,(U1(),zHt))<0?-function(t){return t.l+t.m*rAt+t.h*aAt}(x7(t)):t.l+t.m*rAt+t.h*aAt}(t)}function qV(t,e){return!!rO(e,44)&&bot(t.a,KR(e,44))}function HV(t,e){return!!rO(e,44)&&bot(t.a,KR(e,44))}function UV(t,e){return!!rO(e,44)&&bot(t.a,KR(e,44))}function GV(t){var e;return fH(t),e=new P,I_(t.a,new $g(e)),e}function KV(){var t,e;return t=new xy,SO(ege,e=t),e}function YV(t){var e;return fH(t),e=new B,I_(t.a,new jg(e)),e}function VV(t){t5.call(this,t,(DJ(),rGt),null,!1,null,!1)}function WV(){WV=E,SYt=c9((cE(),t7(rk(YYt,1),sCt,489,0,[EYt])))}function XV(){XV=E,v8t=OH(ttt(1),ttt(4)),w8t=OH(ttt(1),ttt(2))}function QV(t){return new lZ((E4(t,lCt),B0(Set(Set(5,t),t/10|0))))}function ZV(t){return KR(yrt(t,WZ(pXt,YIt,12,t.c.length,0,1)),2042)}function JV(t,e){(function(t,e){var n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x;if(w=0,0==e.f.a)for(m=new pg(t);m.a2e3&&(IHt=t,OHt=i.setTimeout(Y_,10)),0==LHt++&&(function(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=Pht(e,n)}while(t.a);t.a=n}}((Jv(),SHt)),!0)}();try{return function(t,e,n){return t.apply(e,n)}(t,e,n)}finally{!function(t){t&&function(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=Pht(e,n)}while(t.b);t.b=n}}((Jv(),SHt)),--LHt,t&&-1!=OHt&&(function(t){i.clearTimeout(t)}(OHt),OHt=-1)}(r)}}function iW(t,e){var n,i;return i=null,(n=xK(t,e))&&(i=n.pe()),i}function rW(t,e){var n,i;return i=null,(n=xK(t,e))&&(i=n.se()),i}function aW(t,e){var n,i;return i=null,(n=Q1(t,e))&&(i=n.se()),i}function oW(t,e){var n,i;return i=null,(n=xK(t,e))&&(i=Uht(n)),i}function sW(t,e,n){this.d=new hb(this),this.e=t,this.i=e,this.f=n}function cW(t,e,n,i){this.e=null,this.c=t,this.d=e,this.a=n,this.b=i}function lW(t,e,n,i){QI(this),this.c=t,this.e=e,this.f=n,this.b=i}function uW(t,e,n,i){this.d=t,this.n=e,this.g=n,this.o=i,this.p=-1}function hW(t,e,n,i){return rO(n,59)?new GN(t,e,n,i):new jj(t,e,n,i)}function fW(t){return rO(t,16)?KR(t,16).dc():!t.Kc().Ob()}function dW(t){if(t.e.g!=t.b)throw Ay(new Jy);return!!t.c&&t.d>0}function gW(t){return KD(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function pW(t,e){yH(e),Dq(t.a,t.c,e),t.c=t.c+1&t.a.length-1,Vot(t)}function bW(t,e){yH(e),t.b=t.b-1&t.a.length-1,Dq(t.a,t.b,e),Vot(t)}function mW(t){var e;e=t.Gh(),this.a=rO(e,71)?KR(e,71).Ii():e.Kc()}function yW(t){return new OY(function(t,e){var n,i;for(QU(),i=new yy,n=0;n0&&ext(t.g,0,e,0,t.i),e}function OW(t,e){var n;for(n=t.j.c.length;nt.c));o++)r.a>=t.s&&(a<0&&(a=o),s=o);return c=(t.s+t.c)/2,a>=0&&(c=function(t){return(t.c+t.a)/2}((LY(i=function(t,e,n,i){var r,a,o,s,c,l,u,h,f,d,g;if(a=n,n=n&&(i=e,a=(c=(s.c+s.a)/2)-n,s.c<=c-n&&V$(t,i++,new wR(s.c,a)),(o=c+n)<=s.a&&(r=new wR(o,s.a),MY(i,t.c.length),NS(t.c,i,r)))}(e,i,n)),c}(r,n,i))),function(t,e,n){var i,r,a,o;for(a=e.q,o=e.r,new xY((fZ(),x9t),e,a,1),new xY(x9t,a,o,1),r=new pg(n);r.a"+VY(t.d):"e_"+DN(t)}function UX(t,e){var n,i;for(yH(e),i=t.Kc();i.Ob();)n=i.Pb(),e.Cd(n)}function GX(t,e){var n;for(n=e;n;)bD(t,-n.i,-n.j),n=DK(n);return t}function KX(t,e){var n,i;for(n=e,i=0;n>0;)i+=t.a[n],n-=n&-n;return i}function YX(t,e,n){var i;return LY(e,t.c.length),i=t.c[e],t.c[e]=n,i}function VX(t,e,n){t.a.c.length=0,function(t,e,n){var r,a,o,s,c,l,u,h,f;t.c=0,t.b=0,r=2*e.c.a.c.length+1;t:for(u=n.Kc();u.Ob();){if(f=0,s=(l=KR(u.Pb(),12)).j==(MTt(),cue)||l.j==Eue){if(!(h=KR(fut(l,(jEt(),Z1t)),10)))continue;f+=_yt(t,r,l,h)}else{for(c=new pg(l.g);c.a0?(t.f[l.p]=f/(l.e.c.length+l.g.c.length),t.c=i.Math.min(t.c,t.f[l.p]),t.b=i.Math.max(t.b,t.f[l.p])):s&&(t.f[l.p]=f)}}(t,e,n),0==t.a.c.length||function(t,e){var n,i,r,a,o,s,c,l,u,h;for(l=t.e[e.c.p][e.p]+1,c=e.c.a.c.length+1,s=new pg(t.a);s.a0?wmt(t,e):dit(t,-e)}function yQ(t,e){return 0==e||0==t.e?t:e>0?dit(t,e):wmt(t,-e)}function wQ(t){ZE.call(this,null==t?wSt:Get(t),rO(t,82)?KR(t,82):null)}function vQ(t){var e;return t.c||rO(e=t.r,90)&&(t.c=KR(e,29)),t.c}function xQ(t){var e;return p6(e=new EG,t),E7(e,(CEt(),J3t),null),e}function kQ(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(Vut(),JWt)&&n.k==JWt}function _Q(t){return zI(t&eAt,t>>22&eAt,t<0?nAt:0)}function TQ(t,e){var n,i;(n=KR(function(t,e){kq(t);try{return t.Bc(e)}catch(t){if(rO(t=j6(t),212)||rO(t,169))return null;throw Ay(t)}}(t.c,e),16))&&(i=n.gc(),n.$b(),t.d-=i)}function EQ(t,e,n){var i;return(i=t.Ih(e))>=0?t.Lh(i,n,!0):jdt(t,e,n)}function SQ(t,e){t._i(t.i+1),CO(t,t.i,t.Zi(t.i,e)),t.Mi(t.i++,e),t.Ni()}function CQ(t){var e,n;++t.j,e=t.g,n=t.i,t.g=null,t.i=0,t.Oi(n,e),t.Ni()}function AQ(t,e,n){var i;v5(i=new cO(t.a),t.a.a),_ft(i.f,e,n),t.a.a=i}function MQ(t,e,n,i){var r;for(r=0;re)throw Ay(new vx(Mft(t,e,"index")));return t}function PQ(t,e){var n;return LY(e,t.c.length),n=t.c[e],L_(t.c,e,1),n}function BQ(t,e){var n,i;return yH(t),n=t,yH(e),n==(i=e)?0:nt.d[r.p]&&(n+=KX(t.b,i)*KR(o.b,17).a,bW(t.a,ttt(i)));for(;!Rx(t.a);)t0(t.b,KR(Ez(t.a),17).a)}return n}(t,n)}function ZQ(t){var e;return 0==(e=t.b).b?null:KR(Yrt(e,0),65).b}function JQ(t){return t.a?t.e?JQ(t.e):null:t}function tZ(t){var e;return t.a||rO(e=t.r,156)&&(t.a=KR(e,156)),t.a}function eZ(t,e){return!!mz(t.a,e)&&($Q(t.a,e),!0)}function nZ(t,e,n){return FV(e,t.e.Rd().gc()),FV(n,t.c.Rd().gc()),t.a[e][n]}function iZ(t,e,n){this.a=t,this.b=e,this.c=n,SO(t.t,this),SO(e.i,this)}function rZ(t,e,n,i){this.f=t,this.e=e,this.d=n,this.b=i,this.c=i?i.d:null}function aZ(){this.b=new jT,this.a=new jT,this.b=new jT,this.a=new jT}function oZ(){var t,e;oZ=E,Qk(),e=new rw,sge=e,t=new rv,cge=t}function sZ(t){var e;for(fH(t),e=0;t.a.Bd(new lt);)e=Set(e,1);return e}function cZ(t,e){return yH(e),t.c=0,"Initial capacity must not be negative")}function uZ(){uZ=E,uoe=new Vm("org.eclipse.elk.labels.labelManager")}function hZ(){hZ=E,MQt=new AP("separateLayerConnections",(e7(),DQt))}function fZ(){fZ=E,k9t=new tA("REGULAR",0),x9t=new tA("CRITICAL",1)}function dZ(){dZ=E,zre=new xA("FIXED",0),jre=new xA("CENTER_NODE",1)}function gZ(){gZ=E,PZt=new aC("QUADRATIC",0),BZt=new aC("SCANLINE",1)}function pZ(){pZ=E,qZt=c9((A4(),t7(rk(HZt,1),sCt,322,0,[jZt,$Zt,zZt])))}function bZ(){bZ=E,YZt=c9((f4(),t7(rk(VZt,1),sCt,351,0,[UZt,KZt,GZt])))}function mZ(){mZ=E,gZt=c9((u3(),t7(rk(pZt,1),sCt,372,0,[dZt,fZt,hZt])))}function yZ(){yZ=E,lJt=c9((I7(),t7(rk(uJt,1),sCt,460,0,[sJt,oJt,cJt])))}function wZ(){wZ=E,t1t=c9((_6(),t7(rk(e1t,1),sCt,299,0,[ZJt,JJt,QJt])))}function vZ(){vZ=E,a1t=c9((q1(),t7(rk(o1t,1),sCt,311,0,[i1t,r1t,n1t])))}function xZ(){xZ=E,Z6t=c9((K9(),t7(rk(J6t,1),sCt,390,0,[W6t,X6t,Q6t])))}function kZ(){kZ=E,H7t=c9((P5(),t7(rk(U7t,1),sCt,387,0,[j7t,z7t,q7t])))}function _Z(){_Z=E,V7t=c9((w8(),t7(rk(W7t,1),sCt,349,0,[Y7t,G7t,K7t])))}function TZ(){TZ=E,F7t=c9((d4(),t7(rk($7t,1),sCt,463,0,[R7t,P7t,B7t])))}function EZ(){EZ=E,J7t=c9((t9(),t7(rk(t8t,1),sCt,350,0,[X7t,Q7t,Z7t])))}function SZ(){SZ=E,r8t=c9((h4(),t7(rk(a8t,1),sCt,352,0,[i8t,e8t,n8t])))}function CZ(){CZ=E,l8t=c9((r7(),t7(rk(k8t,1),sCt,388,0,[s8t,c8t,o8t])))}function AZ(){AZ=E,rte=c9((v8(),t7(rk(wee,1),sCt,392,0,[ite,nte,ete])))}function MZ(){MZ=E,Jee=c9((J8(),t7(rk(Bne,1),sCt,393,0,[Xee,Qee,Zee])))}function LZ(){LZ=E,Kne=c9((D5(),t7(rk(Yne,1),sCt,300,0,[Une,Gne,Hne])))}function IZ(){IZ=E,Qne=c9((oit(),t7(rk(Zne,1),sCt,445,0,[Vne,Wne,Xne])))}function OZ(){OZ=E,nie=c9((vat(),t7(rk(gie,1),sCt,456,0,[Jne,eie,tie])))}function NZ(){NZ=E,yie=c9((Oet(),t7(rk(ore,1),sCt,394,0,[bie,mie,pie])))}function DZ(){DZ=E,pre=c9((s1(),t7(rk(bre,1),sCt,439,0,[fre,gre,dre])))}function PZ(){PZ=E,L8t=c9((u4(),t7(rk(I8t,1),sCt,464,0,[C8t,A8t,M8t])))}function BZ(){BZ=E,xKt=c9((PJ(),t7(rk(kKt,1),sCt,471,0,[wKt,yKt,vKt])))}function RZ(){RZ=E,gKt=c9((d2(),t7(rk(pKt,1),sCt,237,0,[hKt,fKt,dKt])))}function FZ(){FZ=E,CKt=c9((z1(),t7(rk(AKt,1),sCt,472,0,[SKt,EKt,TKt])))}function $Z(){$Z=E,kGt=c9((e9(),t7(rk(_Gt,1),sCt,108,0,[wGt,vGt,xGt])))}function jZ(){jZ=E,aWt=c9((j1(),t7(rk(lWt,1),sCt,391,0,[iWt,nWt,rWt])))}function zZ(){zZ=E,wle=c9((V9(),t7(rk(vle,1),sCt,346,0,[mle,ble,yle])))}function qZ(){qZ=E,Ore=c9((ztt(),t7(rk(Nre,1),sCt,444,0,[Mre,Lre,Ire])))}function HZ(){HZ=E,Yce=c9((g2(),t7(rk(Vce,1),sCt,278,0,[Uce,Gce,Kce])))}function UZ(){UZ=E,ehe=c9((Y9(),t7(rk(nhe,1),sCt,280,0,[Jue,Zue,the])))}function GZ(t,e){return!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),Bnt(t.o,e)}function KZ(t){var e,n,i,r;r=t.d,e=t.a,n=t.b,i=t.c,t.d=n,t.a=i,t.b=r,t.c=e}function YZ(t){return!t.g&&(t.g=new dl),!t.g.c&&(t.g.c=new Jm(t)),t.g.c}function VZ(t,e,n,i){var r;return function(t,e,n,i,r){var a,o;if(a=Set(BY(e[0],kAt),BY(i[0],kAt)),t[0]=bj(a),a=Mj(a,32),n>=r){for(o=1;on||e=0?t.Lh(n,!0,!0):jdt(t,e,!0)}function _J(t){for(;!t.a;)if(!TB(t.c,new zg(t)))return!1;return!0}function TJ(t){return kq(t),rO(t,204)?KR(t,204):new rd(t)}function EJ(){var t,e,n,i;EJ=E,zae=new cc,Hae=new lc,zEt(),t=Zse,e=zae,n=Ise,i=Hae,NH(),qae=new Kv(t7(rk(dHt,1),WSt,44,0,[(Yat(t,e),new dT(t,e)),(Yat(n,i),new dT(n,i))]))}function SJ(){SJ=E,Kee=new lA("LEAF_NUMBER",0),Yee=new lA("NODE_SIZE",1)}function CJ(t){t.a=WZ($pe,$Ct,28,t.b+1,15,1),t.c=WZ($pe,$Ct,28,t.b,15,1),t.d=0}function AJ(t,e){if(null==t.g||e>=t.i)throw Ay(new wL(e,t.i));return t.g[e]}function MJ(t,e,n){if(f8(t,n),null!=n&&!t.fk(n))throw Ay(new Yy);return n}function LJ(t,e){return 10!=i0(e)&&t7(i9(e),e.Sm,e.__elementTypeId$,i0(e),t),t}function IJ(t,e,n,i){XU(),i=i||RUt,Lft(t.slice(e,n),t,e,n,-e,i)}function OJ(t,e,n,i,r){return e<0?jdt(t,n,i):KR(n,69).wk().yk(t,t.hi(),e,i,r)}function NJ(){NJ=E,cGt=c9((DJ(),t7(rk(lGt,1),sCt,304,0,[rGt,aGt,oGt,sGt])))}function DJ(){DJ=E,rGt=new sS("All",0),aGt=new gI,oGt=new YI,sGt=new dI}function PJ(){PJ=E,wKt=new kS(RMt,0),yKt=new kS(DMt,1),vKt=new kS(FMt,2)}function BJ(){BJ=E,Jxt(),Vge=fAt,Yge=dAt,Xge=new ig(fAt),Wge=new ig(dAt)}function RJ(){RJ=E,aYt=c9((k6(),t7(rk(oYt,1),sCt,417,0,[rYt,eYt,nYt,iYt])))}function FJ(){FJ=E,_Yt=c9((Zrt(),t7(rk(TYt,1),sCt,406,0,[vYt,wYt,xYt,kYt])))}function $J(){$J=E,hYt=c9((Jrt(),t7(rk(fYt,1),sCt,332,0,[cYt,sYt,lYt,uYt])))}function jJ(){jJ=E,HWt=c9((Yit(),t7(rk(KWt,1),sCt,389,0,[qWt,jWt,$Wt,zWt])))}function zJ(){zJ=E,LWt=c9((i7(),t7(rk(FWt,1),sCt,416,0,[SWt,MWt,CWt,AWt])))}function qJ(){qJ=E,ZQt=c9((n7(),t7(rk(JQt,1),sCt,421,0,[VQt,WQt,XQt,QQt])))}function HJ(){HJ=E,PQt=c9((e7(),t7(rk(KQt,1),sCt,371,0,[DQt,OQt,NQt,IQt])))}function UJ(){UJ=E,r7t=c9((wat(),t7(rk(a7t,1),sCt,203,0,[n7t,i7t,e7t,t7t])))}function GJ(){GJ=E,M7t=c9((Mit(),t7(rk(L7t,1),sCt,284,0,[S7t,E7t,C7t,A7t])))}function KJ(){KJ=E,vJt=new dC(PIt,0),wJt=new dC("IMPROVE_STRAIGHTNESS",1)}function YJ(t,e){var n,i;return i=e/t.c.Rd().gc()|0,n=e%t.c.Rd().gc(),nZ(t,i,n)}function VJ(t){var e;if(t.nl())for(e=t.i-1;e>=0;--e)l2(t,e);return IW(t)}function WJ(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function XJ(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[1];)n=e;return n}function QJ(t,e){if(e.a)throw Ay(new Yv(sMt));Az(t.a,e),e.a=t,!t.j&&(t.j=e)}function ZJ(t,e){oL.call(this,e.zd(),-16449&e.yd()),yH(t),this.a=t,this.c=e}function JJ(){JJ=E,zne=c9((wot(),t7(rk(qne,1),sCt,354,0,[jne,Fne,$ne,Rne])))}function t1(){t1=E,Tee=c9((Z8(),t7(rk(Eee,1),sCt,353,0,[_ee,xee,kee,vee])))}function e1(){e1=E,F9t=c9((pst(),t7(rk($9t,1),sCt,405,0,[D9t,P9t,B9t,R9t])))}function n1(){n1=E,Jce=c9((Iet(),t7(rk(tle,1),sCt,223,0,[Zce,Xce,Wce,Qce])))}function i1(){i1=E,Ele=c9((bst(),t7(rk(Sle,1),sCt,291,0,[Tle,xle,kle,_le])))}function r1(){r1=E,$ue=c9((ait(),t7(rk(jue,1),sCt,386,0,[Rue,Fue,Bue,Pue])))}function a1(){a1=E,hhe=c9((mnt(),t7(rk(fhe,1),sCt,320,0,[uhe,she,lhe,che])))}function o1(){o1=E,yhe=c9((y8(),t7(rk(xhe,1),sCt,415,0,[phe,bhe,ghe,mhe])))}function s1(){s1=E,fre=new mA(oBt,0),gre=new mA(uPt,1),dre=new mA(PIt,2)}function c1(t,e,n,i,r){return yH(t),yH(e),yH(n),yH(i),yH(r),new Bz(t,e,i)}function l1(t,e){var n;return(n=KR($Q(t.e,e),400))?(BF(n),n.e):null}function u1(t,e){var n;return-1!=(n=g1(t,e,0))&&(PQ(t,n),!0)}function h1(t,e,n){var i;return fH(t),(i=new st).a=e,t.a.Nb(new bS(i,n)),i.a}function f1(t){var e;if(!i3(t))throw Ay(new ew);return t.e=1,e=t.d,t.d=null,e}function d1(t){var e;return BL(t)&&(e=0-t,!isNaN(e))?e:t6(x7(t))}function g1(t,e,n){for(;n=0?uat(t,n,!0,!0):jdt(t,e,!0)}function R1(t){var e;return null==(e=X2(i6(t,32)))&&(jit(t),e=X2(i6(t,32))),e}function F1(t){var e;return t.Oh()||(e=Lq(t.Dh())-t.ji(),t.$h().Mk(e)),t.zh()}function $1(t,e){pYt=new ee,yYt=e,KR((gYt=t).b,68),JZ(gYt,pYt,null),Ykt(gYt)}function j1(){j1=E,iWt=new IS("XY",0),nWt=new IS("X",1),rWt=new IS("Y",2)}function z1(){z1=E,SKt=new _S("TOP",0),EKt=new _S(DMt,1),TKt=new _S(jMt,2)}function q1(){q1=E,i1t=new yC(PIt,0),r1t=new yC("TOP",1),n1t=new yC(jMt,2)}function H1(){H1=E,I7t=new CC("INPUT_ORDER",0),O7t=new CC("PORT_DEGREE",1)}function U1(){U1=E,FHt=zI(eAt,eAt,524287),$Ht=zI(0,0,iAt),jHt=_Q(1),_Q(2),zHt=_Q(0)}function G1(t){var e;return t.d!=t.r&&(e=qst(t),t.e=!!e&&e.lk()==Xjt,t.d=e),t.e}function K1(t,e,n){var i;return i=t.g[e],CO(t,e,t.Zi(e,n)),t.Ri(e,n,i),t.Ni(),i}function Y1(t,e){var n;return(n=t.dd(e))>=0&&(t.gd(n),!0)}function V1(t,e){var n;for(kq(t),kq(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function W1(t,e){var n;return(n=KR(Oq(t.e,e),400))?(bO(t,n),n.e):null}function X1(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function Q1(t,e){var n=t.a[e],i=(O7(),BHt)[typeof n];return i?i(n):k9(typeof n)}function Z1(t,e){return get(t),new k$(t,new LB(new qQ(e,t.a)))}function J1(t){var e;return null!=(e=0==t.b.c.length?null:c$(t.b,0))&&x3(t,0),e}function t0(t,e){var n;for(++t.d,++t.c[e],n=e+1;n=0;)++e[0]}function i0(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function r0(t,e){return e==(WB(),WB(),VUt)?t.toLocaleLowerCase():t.toLowerCase()}function a0(t){if(!t.e)throw Ay(new ew);return t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function o0(t){if(!t.c)throw Ay(new ew);return t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function s0(t){var e;for(++t.a,e=t.c.a.length;t.at.a[i]&&(i=n);return i}function l0(t){var e;return!!(e=KR(fut(t,(jEt(),f1t)),313))&&e.a==t}function u0(t){var e;return!!(e=KR(fut(t,(jEt(),f1t)),313))&&e.i==t}function h0(){h0=E,pWt=c9((dut(),t7(rk(yWt,1),sCt,367,0,[uWt,hWt,fWt,dWt,gWt])))}function f0(){f0=E,aZt=c9((elt(),t7(rk(uZt,1),sCt,375,0,[eZt,iZt,rZt,nZt,tZt])))}function d0(){d0=E,tJt=c9((Ait(),t7(rk(eJt,1),sCt,348,0,[XZt,WZt,ZZt,JZt,QZt])))}function g0(){g0=E,h7t=c9((Qrt(),t7(rk(f7t,1),sCt,323,0,[u7t,s7t,c7t,o7t,l7t])))}function p0(){p0=E,v0t=c9((bnt(),t7(rk(R6t,1),sCt,171,0,[w0t,p0t,b0t,m0t,y0t])))}function b0(){b0=E,Uee=c9((Tlt(),t7(rk(Gee,1),sCt,368,0,[qee,$ee,Hee,jee,zee])))}function m0(){m0=E,Cre=c9((mbt(),t7(rk(Are,1),sCt,373,0,[_re,kre,Ere,Tre,Sre])))}function y0(){y0=E,Wre=c9((hht(),t7(rk(Lae,1),sCt,324,0,[Ure,Gre,Vre,Kre,Yre])))}function w0(){w0=E,qce=c9((jtt(),t7(rk(Hce,1),sCt,88,0,[jce,$ce,Fce,Rce,zce])))}function v0(){v0=E,Jae=c9((Art(),t7(rk(toe,1),sCt,170,0,[Qae,Xae,Vae,Zae,Wae])))}function x0(){x0=E,Hle=c9((Drt(),t7(rk(Ule,1),sCt,256,0,[jle,qle,Fle,$le,zle])))}function k0(){k0=E,Aue=c9((MTt(),t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue])))}function _0(){_0=E,$Gt=new wS("BY_SIZE",0),jGt=new wS("BY_SIZE_AND_SHAPE",1)}function T0(){T0=E,iVt=new LS("EADES",0),rVt=new LS("FRUCHTERMAN_REINGOLD",1)}function E0(){E0=E,nJt=new uC("READING_DIRECTION",0),iJt=new uC("ROTATION",1)}function S0(){S0=E,NWt=new Se,DWt=new Le,IWt=new Ie,OWt=new Me,PWt=new Oe}function C0(t){this.b=new yy,this.a=new yy,this.c=new yy,this.d=new yy,this.e=t}function A0(t){this.g=t,this.f=new yy,this.a=i.Math.min(this.g.c.c,this.g.d.c)}function M0(t,e,n){eB.call(this),h2(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function L0(t,e,n){var i;for(i=new pg(n);i.a=0&&e0?lSt:F9(t,gCt)<0?gCt:bj(t)}function R0(t){return t<3?(E4(t,iCt),t+1):t=-.01&&t.a<=HMt&&(t.a=0),t.b>=-.01&&t.b<=HMt&&(t.b=0),t}function G0(t){var e,n;for(Ymt(),n=DPt,e=0;en&&(n=t[e]);return n}function K0(t,e){var n;if(!(n=Bbt(t.Dh(),e)))throw Ay(new Tx(OFt+e+PFt));return n}function Y0(t,e){var n;for(n=t;DK(n);)if((n=DK(n))==e)return!0;return!1}function V0(t,e){var n,i,r,a;for(yH(e),r=0,a=(i=t.c).length;r>16!=6?null:KR(Sgt(t),241)}(t))&&!e.Vh()&&(t.w=e),e)}function a2(t,e){var n,i;i=t.a,n=function(t,e,n){var i,r;return r=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,5,r,t.a),n?rlt(n,i):n=i),n}(t,e,null),i!=e&&!t.e&&(n=W_t(t,e,n)),n&&n.oj()}function o2(t,e,n){var i,r;i=e;do{r=gx(t.p[i.p])+n,t.p[i.p]=r,i=t.a[i.p]}while(i!=e)}function s2(t,e,n){var i=function(){return t.apply(i,arguments)};return e.apply(i,n),i}function c2(t){var e;return null==t?null:function(t,e){var n,i,r,a,o;if(null==t)return null;for(o=WZ(Fpe,_Ct,28,2*e,15,1),i=0,r=0;i>4&15,a=15&t[i],o[r++]=Rhe[n],o[r++]=Rhe[a];return Sit(o,0,o.length)}(e=KR(t,195),e.length)}function l2(t,e){if(null==t.g||e>=t.i)throw Ay(new wL(e,t.i));return t.Wi(e,t.g[e])}function u2(t){return get(t),iF(!0,"n may not be negative"),new k$(t,new z4(t.a))}function h2(t){t.b=(PJ(),yKt),t.f=(z1(),EKt),t.d=(E4(2,oCt),new lZ(2)),t.e=new Hk}function f2(t){this.b=(kq(t),new HB(t)),this.a=new yy,this.d=new yy,this.e=new Hk}function d2(){d2=E,hKt=new xS("BEGIN",0),fKt=new xS(DMt,1),dKt=new xS("END",2)}function g2(){g2=E,Uce=new RA(DMt,0),Gce=new RA("HEAD",1),Kce=new RA("TAIL",2)}function p2(){p2=E,Lee=Fit(Fit(Fit(NE(new EH,(pst(),P9t)),(Awt(),Z9t)),G9t),W9t)}function b2(){b2=E,Oee=Fit(Fit(Fit(NE(new EH,(pst(),R9t)),(Awt(),Y9t)),q9t),K9t)}function m2(){m2=E,NZt=c9((Jht(),t7(rk(DZt,1),sCt,232,0,[MZt,IZt,AZt,LZt,OZt,CZt])))}function y2(){y2=E,mJt=c9((Zut(),t7(rk(yJt,1),sCt,283,0,[fJt,hJt,gJt,dJt,bJt,pJt])))}function w2(){w2=E,MJt=c9((Sct(),t7(rk(LJt,1),sCt,281,0,[SJt,EJt,AJt,TJt,CJt,_Jt])))}function v2(){v2=E,RJt=c9((zut(),t7(rk(FJt,1),sCt,282,0,[PJt,OJt,BJt,DJt,NJt,IJt])))}function x2(){x2=E,rXt=c9((Vut(),t7(rk(aXt,1),sCt,273,0,[nXt,eXt,JWt,iXt,tXt,ZWt])))}function k2(){k2=E,xoe=c9((xat(),t7(rk(Doe,1),sCt,255,0,[poe,yoe,woe,voe,boe,moe])))}function _2(){_2=E,zoe=c9((Yct(),t7(rk(Bce,1),sCt,298,0,[joe,$oe,Foe,Boe,Poe,Roe])))}function T2(){T2=E,sle=c9((Qlt(),t7(rk(ple,1),sCt,321,0,[ale,ile,ole,ele,rle,nle])))}function E2(){E2=E,Qle=c9((plt(),t7(rk(Zle,1),sCt,101,0,[Xle,Wle,Vle,Gle,Yle,Kle])))}function S2(){S2=E,aue=c9((cdt(),t7(rk(oue,1),sCt,279,0,[iue,eue,nue,tue,Jle,rue])))}function C2(){C2=E,mKt=(d2(),t7(rk(pKt,1),sCt,237,0,[hKt,fKt,dKt])).length,bKt=mKt}function A2(t,e){return function(t){return t?t.i:null}(Z3(t,e,bj(Cet(tCt,RH(bj(Cet(null==e?0:N3(e),eCt)),15)))))}function M2(t,e){return CI(),p4(dCt),i.Math.abs(t-e)<=dCt||t==e||isNaN(t)&&isNaN(e)}function L2(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,1,n,t.b))}function I2(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,3,n,t.b))}function O2(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,3,n,t.f))}function N2(t,e){var n;n=t.g,t.g=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,4,n,t.g))}function D2(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,5,n,t.i))}function P2(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,6,n,t.j))}function B2(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,1,n,t.j))}function R2(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,4,n,t.c))}function F2(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,2,n,t.k))}function $2(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&Q5(t,new aX(t,0,n,t.a))}function j2(t,e){var n;n=t.s,t.s=e,4&t.Db&&!(1&t.Db)&&Q5(t,new oX(t,4,n,t.s))}function z2(t,e){var n;n=t.t,t.t=e,4&t.Db&&!(1&t.Db)&&Q5(t,new oX(t,5,n,t.t))}function q2(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&Q5(t,new oX(t,2,n,t.d))}function H2(t,e){var n;n=t.F,t.F=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,5,n,e))}function U2(t,e){var n;return(n=KR(Oq((jE(),Efe),t),57))?n.gk(e):WZ(nHt,pSt,1,e,5,1)}function G2(t,e){var n,i;return Vk(),i=new il,e&&Ibt(i,e),W4(n=i,t),n}function K2(t,e){var n;return e in t.a&&(n=xK(t,e).re())?n.a:null}function Y2(t,e,n){if(f8(t,n),!t.kl()&&null!=n&&!t.fk(n))throw Ay(new Yy);return n}function V2(t,e){return t.n=e,t.n?(t.f=new yy,t.e=new yy):(t.f=null,t.e=null),t}function W2(t,e){if(t){e.n=t;var n=function(t){if(t.Ae())return null;var e=t.n;return JEt[e]}(e);if(!n)return void(JEt[t]=[e]);n.Rm=e}}function X2(t){var e;return e$(null==t||Array.isArray(t)&&!((e=i0(t))>=14&&e<=16)),t}function Q2(t,e){var n;return yH(e),nF(!!(n=t[":"+e]),"Enum constant undefined: "+e),n}function Z2(t,e,n,i,r,a){var o;return W2(n,o=xq(t,e)),o.i=r?8:0,o.f=i,o.e=r,o.g=a,o}function J2(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=t,this.a=n}function t4(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=t,this.a=n}function e4(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=t,this.a=n}function n4(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=t,this.a=n}function i4(t,e,n,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=t,this.a=n}function r4(t,e){var n,i,r,a;for(r=0,a=(i=e).length;r=0))throw Ay(new Tx("tolerance ("+t+") must be >= 0"));return t}function b4(t,e){var n;return rO(e,44)?t.c.Mc(e):(n=Bnt(t,e),Nit(t,e),n)}function m4(t,e,n){return g9(t,e),B3(t,n),j2(t,0),z2(t,1),Ctt(t,!0),Ttt(t,!0),t}function y4(t,e){var n;if(n=t.gc(),e<0||e>n)throw Ay(new wB(e,n));return new AB(t,e)}function w4(t,e){t.b=i.Math.max(t.b,e.d),t.e+=e.r+(0==t.a.c.length?0:t.c),SO(t.a,e)}function v4(t){YD(t.c>=0),function(t,e){var n,i,r;return i=t.a.length-1,n=e-t.b&i,r=t.c-e&i,VD(n<(t.c-t.b&i)),n>=r?(function(t,e){var n,i;for(n=t.a.length-1,t.c=t.c-1&n;e!=t.c;)i=e+1&n,Dq(t.a,e,t.a[i]),e=i;Dq(t.a,t.c,null)}(t,e),-1):(function(t,e){var n,i;for(n=t.a.length-1;e!=t.b;)i=e-1&n,Dq(t.a,e,t.a[i]),e=i;Dq(t.a,t.b,null),t.b=t.b+1&n}(t,e),1)}(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function x4(t){var e;for(e=t.c.Cc().Kc();e.Ob();)KR(e.Pb(),16).$b();t.c.$b(),t.d=0}function k4(t,e){var n,i,r;for(i=0,r=(n=e).length;i0&&t.c0&&0!=t.g&&q4(t.i,e/t.r*t.i.d))}function H4(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,1,n,t.c))}function U4(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,4,n,t.c))}function G4(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,2,n,t.k))}function K4(t,e){var n;n=t.D,t.D=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,2,n,t.D))}function Y4(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,8,n,t.f))}function V4(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,7,n,t.i))}function W4(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,8,n,t.a))}function X4(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,0,n,t.b))}function Q4(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,0,n,t.b))}function Z4(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,1,n,t.c))}function J4(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,1,n,t.d))}function t3(t,e){return xmt(t.e,e)?(UE(),G1(e)?new VF(e,t):new DM(e,t)):new IM(e,t)}function e3(t,e){var n,i;return n=t.c,(i=e.e[t.p])>0?KR(c$(n.a,i-1),10):null}function n3(t){var e;return(t=i.Math.max(t,2))>(e=k7(t))?(e<<=1)>0?e:aCt:e}function i3(t){switch(KO(3!=t.e),t.e){case 2:return!1;case 0:return!0}return function(t){return t.e=3,t.d=t.Yb(),2!=t.e&&(t.e=0,!0)}(t)}function r3(t,e){var n;return!!rO(e,8)&&(n=KR(e,8),t.a==n.a&&t.b==n.b)}function a3(t,e){var n,i;for(i=e.vc().Kc();i.Ob();)gct(t,(n=KR(i.Pb(),44)).ld(),n.md())}function o3(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,11,n,t.d))}function s3(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,13,n,t.j))}function c3(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,21,n,t.b))}function l3(t,e){e.Ug("Hierarchical port constraint processing",1),function(t){var e;CB(KR(fut(t,(CEt(),R5t)),101))&&(Gdt((LY(0,(e=t.b).c.length),KR(e.c[0],30))),Gdt(KR(c$(e,e.c.length-1),30)))}(t),function(t){var e,n,i,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C;if((k=KR(fut(t,(CEt(),R5t)),101))!=(plt(),Wle)&&k!=Xle){for(l=new lZ((E4((d=(g=t.b).c.length)+2,lCt),B0(Set(Set(5,d+2),(d+2)/10|0)))),p=new lZ((E4(d+2,lCt),B0(Set(Set(5,d+2),(d+2)/10|0)))),SO(l,new my),SO(l,new my),SO(p,new yy),SO(p,new yy),x=new yy,e=0;e>5,i=31&e,BY(Lj(t.n[n][r],bj(Aj(i,1))),3)}function v3(t,e,n){var i,r,a;for(a=t.a.length-1,r=t.b,i=0;i0?1:0:(!t.c&&(t.c=pY(h6(t.f))),t.c).e}function K3(t,e){e?null==t.B&&(t.B=t.D,t.D=null):null!=t.B&&(t.D=t.B,t.B=null)}function Y3(t,e){return CI(),p4(HMt),i.Math.abs(0-e)<=HMt||0==e||isNaN(0)&&isNaN(e)?0:t/e}function V3(t,e){return gx(qD(TN(btt(iU(new k$(null,new OY(t.c.b,16)),new ob(t)),e))))}function W3(t,e){return gx(qD(TN(btt(iU(new k$(null,new OY(t.c.b,16)),new ab(t)),e))))}function X3(t,e){e.Ug("General Compactor",1),function(t){switch(t.g){case 1:return new _s;case 2:return new dD;default:throw Ay(new Tx(uBt+(null!=t.f?t.f:""+t.g)))}}(KR(spt(t,(pht(),yne)),393)).Cg(t)}function Q3(t,e,n){var i,r;for(r=Mrt(t,0);r.b!=r.d.c;)(i=KR(gW(r),8)).a+=e,i.b+=n;return t}function Z3(t,e,n){var i;for(i=t.b[n&t.f];i;i=i.b)if(n==i.a&&oH(e,i.g))return i;return null}function J3(t,e,n){var i;for(i=t.c[n&t.f];i;i=i.d)if(n==i.f&&oH(e,i.i))return i;return null}function t5(t,e,n,i,r,a){var o;this.c=t,uot(t,o=new yy,e,t.b,n,i,r,a),this.a=new CV(o,0)}function e5(){this.c=new T_(0),this.b=new T_(MPt),this.d=new T_(APt),this.a=new T_(LLt)}function n5(t,e,n,i,r,a,o){gT.call(this,t,e),this.d=n,this.e=i,this.c=r,this.b=a,this.a=OQ(o)}function i5(t,e,n,i,r,a,o,s,c,l,u,h,f){return Aft(t,e,n,i,r,a,o,s,c,l,u,h,f),xet(t,!1),t}function r5(t){return t.b.c.i.k==(Vut(),JWt)?KR(fut(t.b.c.i,(jEt(),U1t)),12):t.b.c}function a5(t){return t.b.d.i.k==(Vut(),JWt)?KR(fut(t.b.d.i,(jEt(),U1t)),12):t.b.d}function o5(t){var e;return HM((e=YV(t)).a,0)?(UT(),UT(),QUt):(UT(),new rD(e.b))}function s5(t){var e;return HM((e=GV(t)).a,0)?(HT(),HT(),XUt):(HT(),new iD(e.b))}function c5(t){var e;return HM((e=GV(t)).a,0)?(HT(),HT(),XUt):(HT(),new iD(e.c))}function l5(t){switch(t.g){case 2:return MTt(),Cue;case 4:return MTt(),sue;default:return t}}function u5(t){switch(t.g){case 1:return MTt(),Eue;case 3:return MTt(),cue;default:return t}}function h5(t){switch(t.g){case 0:return new Vs;case 1:return new Ws;default:return null}}function f5(){f5=E,AQt=new AP("edgelabelcenterednessanalysis.includelabel",(FN(),HHt))}function d5(){d5=E,E8t=Fit(yL(QF(QF(new EH,(dut(),fWt),(qEt(),sQt)),dWt,QXt),gWt),oQt)}function g5(){g5=E,O8t=Fit(yL(QF(QF(new EH,(dut(),fWt),(qEt(),sQt)),dWt,QXt),gWt),oQt)}function p5(){p5=E,Nde=new av,Pde=t7(rk(Kfe,1),szt,179,0,[]),Dde=t7(rk(nde,1),czt,62,0,[])}function b5(){b5=E,mXt=new RS("TO_INTERNAL_LTR",0),bXt=new RS("TO_INPUT_DIRECTION",1)}function m5(){m5=E,uXt=new je,cXt=new ze,lXt=new qe,sXt=new He,hXt=new Ue,fXt=new Ge}function y5(t,e,n){n.Ug("DFS Treeifying phase",1),function(t,e){var n,i,r;for(r=e.b.b,t.a=new jT,t.b=WZ($pe,$Ct,28,r,15,1),n=0,i=Mrt(e.b,0);i.b!=i.d.c;)KR(gW(i),40).g=n++}(t,e),function(t,e){var n,i,r,a,o;for(o=KR(fut(e,(axt(),cee)),433),a=Mrt(e.b,0);a.b!=a.d.c;)if(r=KR(gW(a),40),0==t.b[r.g]){switch(o.g){case 0:Fat(t,r);break;case 1:Xgt(t,r)}t.b[r.g]=2}for(i=Mrt(t.a,0);i.b!=i.d.c;)ynt((n=KR(gW(i),65)).b.d,n,!0),ynt(n.c.b,n,!0);E7(e,(ETt(),Ste),t.a)}(t,e),t.a=null,t.b=null,n.Vg()}function w5(t,e){return FN(),jM(t)?BQ(t,HD(e)):qM(t)?Oj(t,qD(e)):zM(t)?Ij(t,zD(e)):t.Fd(e)}function v5(t,e){var n,i;for(yH(e),i=e.vc().Kc();i.Ob();)n=KR(i.Pb(),44),t.zc(n.ld(),n.md())}function x5(t){var e;if(-2==t.b){if(0==t.e)e=-1;else for(e=0;0==t.a[e];e++);t.b=e}return t.b}function k5(t){if(yH(t),0==t.length)throw Ay(new Zx("Zero length BigInteger"));!function(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g,p,b;for(c=d=e.length,IY(0,e.length),45==e.charCodeAt(0)?(h=-1,f=1,--d):(h=1,f=0),r=d/(a=(hkt(),MUt)[10])|0,0!=(b=d%a)&&++r,s=WZ($pe,$Ct,28,r,15,1),n=AUt[8],o=0,g=f+(0==b?a:b),p=f;p0&&(this.g=this.aj(this.i+(this.i/8|0)+1),t.Qc(this.g))}function T5(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new yy,function(t){var e,n,i,r;for(r=ltt(t.d,t.e).Kc();r.Ob();)for(i=KR(r.Pb(),12),n=new pg(t.e==(MTt(),Cue)?i.e:i.g);n.ar&&e.aa&&e.b(r=t.a.length)?n=r:IY(e,n+1),t.a=$G(t.a,0,e)+""+i+Pq(t.a,n)}function X5(t,e){t.a=Set(t.a,1),t.c=i.Math.min(t.c,e),t.b=i.Math.max(t.b,e),t.d=Set(t.d,e)}function Q5(t,e){var n,i,r;if(null!=(n=t.th())&&t.wh())for(i=0,r=n.length;i0||u.j==Cue&&u.e.c.length-u.g.c.length<0)){e=!1;break}for(r=new pg(u.g);r.a1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw Ay(new ew)}function l6(t){switch(t.a.g){case 1:return new YC;case 3:return new Kot;default:return new df}}function u6(t,e){switch(e){case 1:return!!t.n&&0!=t.n.i;case 2:return null!=t.k}return wV(t,e)}function h6(t){return sAt=0x8000000000000000?(U1(),FHt):(i=!1,t<0&&(i=!0,t=-t),n=0,t>=aAt&&(t-=(n=oK(t/aAt))*aAt),e=0,t>=rAt&&(t-=(e=oK(t/rAt))*rAt),r=zI(oK(t),e,n),i&&Q7(r),r)}(t))}function f6(t){var e;return t<128?(p$(),!(e=XHt[t])&&(e=XHt[t]=new ng(t)),e):new ng(t)}function d6(t){var e,n,i;return n=0,(i=t)<0&&(i+=aAt,n=nAt),e=oK(i/rAt),zI(oK(i-e*rAt),e,n)}function g6(t){var e,n,i;for(i=0,n=new $T(t.a);n.a>22),r=t.h-e.h+(i>>22),zI(n&eAt,i&eAt,r&nAt)}function j6(t){var e;return rO(t,82)?t:((e=t&&t.__java$exception)||qy(e=new w9(t)),e)}function z6(t){if(rO(t,193))return KR(t,123);if(t)return null;throw Ay(new Cx(M$t))}function q6(t){return!!t.a.Ob()||t.a==t.e&&(t.a=new rJ(t.f.f),t.a.Ob())}function H6(t,e){if(null==e)return!1;for(;t.a!=t.b;)if(wtt(e,L9(t)))return!0;return!1}function U6(t,e){return!(!t||!e||t==e)&&yit(t.d.c,e.d.c+e.d.b)&&yit(e.d.c,t.d.c+t.d.b)}function G6(t,e){var n;return 0!=(n=e.Pc()).length&&(JR(t.c,t.c.length,n),!0)}function K6(t){var e,n;for(e=new jT,n=Mrt(t.d,0);n.b!=n.d.c;)RF(e,KR(gW(n),65).c);return e}function Y6(t,e){var n;for(n=new pg(t.b);n.a(i=t.gc()))throw Ay(new wB(e,i));return t.Si()&&(n=LK(t,n)),t.Ei(e,n)}function v7(t,e,n,i,r){var a,o;for(o=n;o<=r;o++)for(a=e;a<=i;a++)hot(t,a,o)||Qyt(t,a,o,!0,!1)}function x7(t){var e,n;return zI(e=1+~t.l&eAt,n=~t.m+(0==e?1:0)&eAt,~t.h+(0==e&&0==n?1:0)&nAt)}function k7(t){var e;if(t<0)return gCt;if(0==t)return 0;for(e=aCt;!(e&t);e>>=1);return e}function _7(t,e,n){return!(t>=128)&&GM(t<64?BY(Aj(1,t),n):BY(Aj(1,t-64),e),0)}function T7(t,e,n){return null==n?(!t.q&&(t.q=new my),$Q(t.q,e)):(!t.q&&(t.q=new my),LH(t.q,e,n)),t}function E7(t,e,n){return null==n?(!t.q&&(t.q=new my),$Q(t.q,e)):(!t.q&&(t.q=new my),LH(t.q,e,n)),t}function S7(t){var e,n;return p6(n=new KQ,t),E7(n,(f3(),PVt),t),function(t,e,n){var r,a,o,s,c;for(r=0,o=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));o.e!=o.i.gc();)s="",0==(!(a=KR(Frt(o),27)).n&&(a.n=new ez(Qhe,a,1,7)),a.n).i||(s=KR(l2((!a.n&&(a.n=new ez(Qhe,a,1,7)),a.n),0),135).a),p6(c=new GI(s),a),E7(c,(f3(),PVt),a),c.a=r++,c.d.a=a.i+a.g/2,c.d.b=a.j+a.f/2,c.e.a=i.Math.max(a.g,1),c.e.b=i.Math.max(a.f,1),SO(e.e,c),_ft(n.f,a,c),KR(spt(a,(Evt(),yVt)),101),plt()}(t,n,e=new my),function(t,e,n){var r,a,o,s,c,l,h,f;for(l=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));l.e!=l.i.gc();)for(a=new Dj(lN(Ypt(c=KR(Frt(l),27)).a.Kc(),new u));Rgt(a);){if(!(r=KR(bQ(a),74)).b&&(r.b=new bB(Uhe,r,4,7)),!(r.b.i<=1&&(!r.c&&(r.c=new bB(Uhe,r,5,8)),r.c.i<=1)))throw Ay(new Lx("Graph must not contain hyperedges."));if(!_gt(r)&&c!=Blt(KR(l2((!r.c&&(r.c=new bB(Uhe,r,5,8)),r.c),0),84)))for(p6(h=new YP,r),E7(h,(f3(),PVt),r),Cd(h,KR(FM(U$(n.f,c)),153)),Ad(h,KR(Oq(n,Blt(KR(l2((!r.c&&(r.c=new bB(Uhe,r,5,8)),r.c),0),84))),153)),SO(e.c,h),s=new zO((!r.n&&(r.n=new ez(Qhe,r,1,7)),r.n));s.e!=s.i.gc();)p6(f=new jW(h,(o=KR(Frt(s),135)).a),o),E7(f,PVt,o),f.e.a=i.Math.max(o.g,1),f.e.b=i.Math.max(o.f,1),Xxt(f),SO(e.d,f)}}(t,n,e),n}function C7(t){var e,n;return e=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,n=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,e||n}function A7(t,e){var n,i,r;for(n=!1,i=t.a[e].length,r=0;r=0,"Negative initial capacity"),nF(e>=0,"Non-positive load factor"),_z(this)}function F7(t,e){var n,i,r,a,o;for(QU(),o=!1,r=0,a=(i=e).length;r1||e>=0&&t.b<3)}function Q7(t){var e,n,i;e=1+~t.l&eAt,n=~t.m+(0==e?1:0)&eAt,i=~t.h+(0==e&&0==n?1:0)&nAt,t.l=e,t.m=n,t.h=i}function Z7(t){var e,n,i;for(QU(),i=1,n=t.Kc();n.Ob();)i=31*i+(null!=(e=n.Pb())?N3(e):0),i|=0;return i}function J7(t,e,n,i,r){var a;return a=qgt(t,e),n&&Q7(a),r&&(t=function(t,e){var n,i,r;return e<=22?(n=t.l&(1<=t.b.c.length||(M8(t,2*e+1),(n=2*e+2)=0&&t[i]===e[i];i--);return i<0?0:XE(BY(t[i],kAt),BY(e[i],kAt))?-1:1}function I8(t,e,n){var i,r;this.g=t,this.c=e,this.a=this,this.d=this,r=n3(n),i=WZ(xHt,nCt,227,r,0,1),this.b=i}function O8(t,e,n,i,r){var a,o;for(o=n;o<=r;o++)for(a=e;a<=i;a++)if(hot(t,a,o))return!0;return!1}function N8(t,e,n){var i,r,a,o;for(yH(n),o=!1,a=t.fd(e),r=n.Kc();r.Ob();)i=r.Pb(),a.Rb(i),o=!0;return o}function D8(t,e){var n,i;return i=KR(i6(t.a,4),129),n=WZ(xfe,Ljt,424,e,0,1),null!=i&&ext(i,0,n,0,i.length),n}function P8(t,e){var n;return n=new Tyt(0!=(256&t.f),t.i,t.a,t.d,0!=(16&t.f),t.j,t.g,e),null!=t.e||(n.c=t),n}function B8(t,e,n){var i,r;for(r=n.Kc();r.Ob();)if(i=KR(r.Pb(),44),t.Be(e,i.md()))return!0;return!1}function R8(t,e,n){return t.d[e.p][n.p]||(function(t,e,n){if(t.e)switch(t.b){case 1:!function(t,e,n){t.i=0,t.e=0,e!=n&&t8(t,e,n)}(t.c,e,n);break;case 0:!function(t,e,n){t.i=0,t.e=0,e!=n&&e8(t,e,n)}(t.c,e,n)}else RW(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function F8(t,e){return!(!t||t==e||!cD(e,(jEt(),N1t)))&&KR(fut(e,(jEt(),N1t)),10)!=t}function $8(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.$l()}}function j8(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t._l()}}function z8(t){$K.call(this,"The given string does not match the expected format for individual spacings.",t)}function q8(t,e,n){var i,r;for(i=new jT,r=Mrt(n,0);r.b!=r.d.c;)RF(i,new KL(KR(gW(r),8)));N8(t,e,i)}function H8(t,e){var n;return n=Set(t,e),XE(FY(t,e),0)|UM(FY(t,n),0)?n:Set(qSt,FY(Lj(n,63),1))}function U8(t){var e;if((e=t.a.c.length)>0)return qj(e-1,t.a.c.length),PQ(t.a,e-1);throw Ay(new tw)}function G8(t,e,n){if(t>e)throw Ay(new Tx(QAt+t+ZAt+e));if(t<0||e>n)throw Ay(new Qx(QAt+t+JAt+e+jAt+n))}function K8(t,e){null==t.D&&null!=t.B&&(t.D=t.B,t.B=null),K4(t,null==e?null:(yH(e),e)),t.C&&t.hl(null)}function Y8(t,e){var n,i;if(0!=(i=t.c[e]))for(t.c[e]=0,t.d-=i,n=e+1;nCPt?t-n>CPt:n-t>CPt)}function T9(t,e){var n;for(n=0;nr&&(jct(e.q,r),i=n!=e.q.d)),i}function S9(t,e){var n,r,a,o,s;return o=e.i,s=e.j,r=o-(n=t.f).i,a=s-n.j,i.Math.sqrt(r*r+a*a)}function C9(t,e){var n;return(n=Hit(t))||(Nkt(),sJ((n=new fy(ppt(e))).El(),t)),n}function A9(t,e){var n,i;return(n=KR(t.c.Bc(e),16))?((i=t.hc()).Gc(n),t.d-=n.gc(),n.$b(),t.mc(i)):t.jc()}function M9(t,e,n,i){var r,a;t.a=e,a=i?0:1,t.f=(r=new Sht(t.c,t.a,n,a),new Cyt(n,t.a,r,t.e,t.b,t.c==(u4(),A8t)))}function L9(t){var e;return KD(t.a!=t.b),e=t.d.a[t.a],VD(t.b==t.d.c&&null!=e),t.c=t.a,t.a=t.a+1&t.d.a.length-1,e}function I9(t){var e;if(0!=t.c)return t.c;for(e=0;e=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}function j9(t,e){var n,i,r,a;return(a=Nft((i=e,(r=t?Hit(t):null)&&r.Gl(),i)))==e&&(n=Hit(t))&&n.Gl(),a}function z9(t,e,n){var i,r;return r=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,0,r,e),n?n.nj(i):n=i),n}function q9(t,e,n){var i,r;return r=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,3,r,e),n?n.nj(i):n=i),n}function H9(t,e,n){var i,r;return r=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,1,r,e),n?n.nj(i):n=i),n}function U9(t){var e,n;if(null!=t)for(n=0;n-129&&t<128?(_F(),!(n=tUt[e=t+128])&&(n=tUt[e]=new Wd(t)),n):new Wd(t)}function ett(t){var e,n;return t>-129&&t<128?(d$(),!(n=lUt[e=t+128])&&(n=lUt[e]=new Qd(t)),n):new Qd(t)}function ntt(t,e){t.a.c.length>0&&E8(KR(c$(t.a,t.a.c.length-1),579),e)||SO(t.a,new JX(e))}function itt(t){var e;return(e=new Vx).a+="VerticalSegment ",JM(e,t.e),e.a+=" ",tL(e,UO(new zx,new pg(t.k))),e.a}function rtt(t,e){var n,i;for(n=0,i=Met(t,e).Kc();i.Ob();)n+=null!=fut(KR(i.Pb(),12),(jEt(),Z1t))?1:0;return n}function att(t,e,n){var i,r,a;for(i=0,a=Mrt(t,0);a.b!=a.d.c&&!((r=gx(qD(gW(a))))>n);)r>=e&&++i;return i}function ott(t,e){kq(t);try{return t._b(e)}catch(t){if(rO(t=j6(t),212)||rO(t,169))return!1;throw Ay(t)}}function stt(t,e){kq(t);try{return t.Hc(e)}catch(t){if(rO(t=j6(t),212)||rO(t,169))return!1;throw Ay(t)}}function ctt(t,e){kq(t);try{return t.xc(e)}catch(t){if(rO(t=j6(t),212)||rO(t,169))return null;throw Ay(t)}}function ltt(t,e){switch(e.g){case 2:case 1:return Met(t,e);case 3:case 4:return ant(Met(t,e))}return QU(),QU(),NUt}function utt(t){var e;return 64&t.Db?_pt(t):((e=new gN(_pt(t))).a+=" (name: ",QM(e,t.zb),e.a+=")",e.a)}function htt(t){var e;return(e=KR(W1(t.c.c,""),233))||(e=new wY(Ek(Tk(new dc,""),"Other")),Trt(t.c.c,"",e)),e}function ftt(t,e,n){var i,r;return r=t.sb,t.sb=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,4,r,e),n?n.nj(i):n=i),n}function dtt(t,e,n){var i,r;return r=t.r,t.r=e,4&t.Db&&!(1&t.Db)&&(i=new nz(t,1,8,r,t.r),n?n.nj(i):n=i),n}function gtt(t,e){var n,i;return!(i=(n=KR(e,691)).el())&&n.fl(i=rO(e,90)?new OM(t,KR(e,29)):new gV(t,KR(e,156))),i}function ptt(t,e,n){var i;t._i(t.i+1),i=t.Zi(e,n),e!=t.i&&ext(t.g,e,t.g,e+1,t.i-e),Dq(t.g,e,i),++t.i,t.Mi(e,n),t.Ni()}function btt(t,e){var n;return n=new st,t.a.Bd(n)?(WO(),new ex(yH(h1(t,n.a,e)))):(fH(t),WO(),WO(),WUt)}function mtt(t,e){var n;0!=t.c.length&&(zL(n=KR(yrt(t,WZ(QWt,KIt,10,t.c.length,0,1)),199),new Ln),Fdt(n,e))}function ytt(t,e){var n;0!=t.c.length&&(zL(n=KR(yrt(t,WZ(QWt,KIt,10,t.c.length,0,1)),199),new In),Fdt(n,e))}function wtt(t,e){return jM(t)?_B(t,e):qM(t)?kB(t,e):zM(t)?(yH(t),$M(t)===$M(e)):Sj(t)?t.Fb(e):z$(t)?SL(t,e):PY(t,e)}function vtt(t,e,n){if(e<0)edt(t,n);else{if(!n.rk())throw Ay(new Tx(OFt+n.xe()+NFt));KR(n,69).wk().Ek(t,t.hi(),e)}}function xtt(t,e,n){if(t<0||e>n)throw Ay(new vx(QAt+t+JAt+e+", size: "+n));if(t>e)throw Ay(new Tx(QAt+t+ZAt+e))}function ktt(t){var e;return 64&t.Db?_pt(t):((e=new gN(_pt(t))).a+=" (source: ",QM(e,t.d),e.a+=")",e.a)}function _tt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function Ttt(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,2,n,e))}function Ett(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,8,n,e))}function Stt(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,8,n,e))}function Ctt(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,3,n,e))}function Att(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,9,n,e))}function Mtt(t,e){var n;return-1==t.b&&t.a&&(n=t.a.pk(),t.b=n?t.c.Hh(t.a.Lj(),n):knt(t.c.Dh(),t.a)),t.c.yh(t.b,e)}function Ltt(t,e){var n,i;for(i=new zO(t);i.e!=i.i.gc();)if(n=KR(Frt(i),29),$M(e)===$M(n))return!0;return!1}function Itt(t){var e;return t.k==(Vut(),JWt)&&((e=KR(fut(t,(jEt(),E1t)),64))==(MTt(),cue)||e==Eue)}function Ott(t){var e;return HM((e=GV(t)).a,0)?(HT(),HT(),XUt):(HT(),new iD(WE(e.a,0)?RQ(e)/zV(e.a):0))}function Ntt(t,e){this.e=e,this.a=O6(t),this.a<54?this.f=zV(t):this.c=(lwt(),F9(t,0)>=0?Xnt(t):Yz(Xnt(d1(t))))}function Dtt(t,e,n,i,r,a){this.e=new yy,this.f=(d4(),R7t),SO(this.e,t),this.d=e,this.a=n,this.b=i,this.f=r,this.c=a}function Ptt(t){return t=((t=((t-=t>>1&1431655765)>>2&858993459)+(858993459&t))>>4)+t&252645135,63&(t+=t>>8)+(t>>16)}function Btt(t,e){var n,i;for(i=new zO(t);i.e!=i.i.gc();)if(n=KR(Frt(i),142),$M(e)===$M(n))return!0;return!1}function Rtt(t,e,n){var i,r;return(r=Cpt(t.b,e))&&(i=KR(Ikt(_1(t,r),""),29))?mpt(t,i,e,n):null}function Ftt(t,e){var n;if(rO(n=Bbt(t,e),331))return KR(n,35);throw Ay(new Tx(OFt+e+"' is not a valid attribute"))}function $tt(t,e,n){var i;if(e>(i=t.gc()))throw Ay(new wB(e,i));if(t.Si()&&t.Hc(n))throw Ay(new Tx(N$t));t.Gi(e,n)}function jtt(){jtt=E,jce=new BA(qMt,0),$ce=new BA(FMt,1),Fce=new BA(RMt,2),Rce=new BA(WMt,3),zce=new BA("UP",4)}function ztt(){ztt=E,Mre=new vA("P1_STRUCTURE",0),Lre=new vA("P2_PROCESSING_ORDER",1),Ire=new vA("P3_EXECUTION",2)}function qtt(){qtt=E,Iee=Fit(Fit(NE(Fit(Fit(NE(QF(new EH,(pst(),P9t),(Awt(),Z9t)),B9t),V9t),X9t),R9t),U9t),Q9t)}function Htt(t){switch(KR(fut(t,(jEt(),O1t)),311).g){case 1:E7(t,O1t,(q1(),n1t));break;case 2:E7(t,O1t,(q1(),r1t))}}function Utt(t){switch(t.g){case 2:return $ce;case 1:return Fce;case 4:return Rce;case 3:return zce;default:return jce}}function Gtt(t,e){switch(t.b.g){case 0:case 1:return e;case 2:case 3:return new pU(e.d,0,e.a,e.b);default:return null}}function Ktt(t){switch(t.g){case 1:return Cue;case 2:return cue;case 3:return sue;case 4:return Eue;default:return Sue}}function Ytt(t){switch(t.g){case 1:return Eue;case 2:return Cue;case 3:return cue;case 4:return sue;default:return Sue}}function Vtt(t){switch(t.g){case 1:return sue;case 2:return Eue;case 3:return Cue;case 4:return cue;default:return Sue}}function Wtt(t,e,n,i){switch(e){case 1:return!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n;case 2:return t.k}return est(t,e,n,i)}function Xtt(t,e,n){var i,r;return t.Pj()?(r=t.Qj(),i=Odt(t,e,n),t.Jj(t.Ij(7,ttt(n),i,e,r)),i):Odt(t,e,n)}function Qtt(t,e){var n,i,r;null==t.d?(++t.e,--t.f):(r=e.ld(),function(t,e,n){++t.e,--t.f,KR(t.d[e].gd(n),136).md()}(t,i=((n=e.Bi())&lSt)%t.d.length,Spt(t,i,n,r)))}function Ztt(t,e){var n;n=0!=(t.Bb&rCt),e?t.Bb|=rCt:t.Bb&=-1025,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,10,n,e))}function Jtt(t,e){var n;n=0!=(t.Bb&gAt),e?t.Bb|=gAt:t.Bb&=-4097,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,12,n,e))}function tet(t,e){var n;n=0!=(t.Bb&Qjt),e?t.Bb|=Qjt:t.Bb&=-8193,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,15,n,e))}function eet(t,e){var n;n=0!=(t.Bb&Zjt),e?t.Bb|=Zjt:t.Bb&=-2049,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,11,n,e))}function net(t){var e;t.g&&(_mt((e=t.c.kg()?t.f:t.a).a,t.o,!0),_mt(e.a,t.o,!1),E7(t.o,(CEt(),R5t),(plt(),Gle)))}function iet(t){var e;if(!t.a)throw Ay(new Ex("Cannot offset an unassigned cut."));e=t.c-t.b,t.b+=e,KU(t,e),GU(t,e)}function ret(t){var e,n;for(n=ypt(r2(t)).Kc();n.Ob();)if(gvt(t,e=HD(n.Pb())))return gX((FE(),Hfe),e);return null}function aet(t){var e,n;for(n=t.p.a.ec().Kc();n.Ob();)if((e=KR(n.Pb(),218)).f&&t.b[e.c]<-1e-10)return e;return null}function oet(t){var e,n,i;for(e=new yy,i=new pg(t.b);i.ae?1:t==e?0==t?cet(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function uet(t,e,n){var i;if(t.c)sut(t.c,e,n);else for(i=new pg(t.b);i.a=1?$ce:Rce:e}function get(t){if(t.c)get(t.c);else if(t.d)throw Ay(new Ex("Stream already terminated, can't be modified or used"))}function pet(t,e,n){var i;return i=t.a.get(e),t.a.set(e,void 0===n?null:n),void 0===i?(++t.c,++t.b.g):++t.d,i}function bet(t,e,n){var i,r;for(r=t.a.ec().Kc();r.Ob();)if(i=KR(r.Pb(),10),F6(n,KR(c$(e,i.p),16)))return i;return null}function met(t,e,n){var i;return i=0,e&&(eI(t.a)?i+=e.f.a/2:i+=e.f.b/2),n&&(eI(t.a)?i+=n.f.a/2:i+=n.f.b/2),i}function yet(t,e,n){var r;!(r=n)&&(r=dF(new vv,0)),r.Ug(AIt,2),mat(t.b,e,r.eh(1)),function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d;for(UX(c=function(t){var e,n,i,r,a;for(e=new $O,n=new $O,bW(e,t),bW(n,t);n.b!=n.c;)for(a=new pg(KR(Ez(n),36).a);a.aGLt,S=i.Math.abs(d.b-p.b)>GLt,(!n&&E&&S||n&&(E||S))&&RF(m.a,x)),z3(m.a,r),0==r.b?d=x:(KD(0!=r.b),d=KR(r.c.b.c,8)),L6(g,f,b),a5(a)==T&&(uH(T.i)!=a.a&&Qht(b=new Hk,uH(T.i),w),E7(m,f0t,b)),aht(g,m,w),h.a.zc(g,h);eY(m,k),rY(m,T)}for(u=h.a.ec().Kc();u.Ob();)eY(l=KR(u.Pb(),18),null),rY(l,null);e.Vg()}(e,r.eh(1)),r.Vg()}function wet(t,e,n){var i;return Vk(),$2(i=new Zc,e),L2(i,n),t&&sJ((!t.a&&(t.a=new AO(zhe,t,5)),t.a),i),i}function vet(t){var e;return 64&t.Db?_pt(t):((e=new gN(_pt(t))).a+=" (identifier: ",QM(e,t.k),e.a+=")",e.a)}function xet(t,e){var n;n=0!=(t.Bb&FFt),e?t.Bb|=FFt:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,18,n,e))}function ket(t,e){var n;n=0!=(t.Bb&FFt),e?t.Bb|=FFt:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,18,n,e))}function _et(t,e){var n;n=0!=(t.Bb&FSt),e?t.Bb|=FSt:t.Bb&=-16385,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,16,n,e))}function Tet(t,e){var n;n=0!=(t.Bb&mAt),e?t.Bb|=mAt:t.Bb&=-65537,4&t.Db&&!(1&t.Db)&&Q5(t,new cQ(t,1,20,n,e))}function Eet(t){var e;return e=WZ(Fpe,_Ct,28,2,15,1),t-=mAt,e[0]=(t>>10)+yAt&ECt,e[1]=56320+(1023&t)&ECt,Sit(e,0,e.length)}function Set(t,e){var n;return BL(t)&&BL(e)&&sAt<(n=t+e)&&n>22),r=t.h+e.h+(i>>22),zI(n&eAt,i&eAt,r&nAt)}(BL(t)?d6(t):t,BL(e)?d6(e):e))}function Cet(t,e){var n;return BL(t)&&BL(e)&&sAt<(n=t*e)&&n>13|(15&t.m)<<9,r=t.m>>4&8191,a=t.m>>17|(255&t.h)<<5,o=(1048320&t.h)>>8,b=i*(s=8191&e.l),m=r*s,y=a*s,w=o*s,0!=(c=e.l>>13|(15&e.m)<<9)&&(b+=n*c,m+=i*c,y+=r*c,w+=a*c),0!=(l=e.m>>4&8191)&&(m+=n*l,y+=i*l,w+=r*l),0!=(u=e.m>>17|(255&e.h)<<5)&&(y+=n*u,w+=i*u),0!=(h=(1048320&e.h)>>8)&&(w+=n*h),d=((p=n*s)>>22)+(b>>9)+((262143&m)<<4)+((31&y)<<17),g=(m>>18)+(y>>5)+((4095&w)<<8),g+=(d+=(f=(p&eAt)+((511&b)<<13))>>22)>>22,zI(f&=eAt,d&=eAt,g&=nAt)}(BL(t)?d6(t):t,BL(e)?d6(e):e))}function Aet(t,e){var n;return BL(t)&&BL(e)&&sAt<(n=t-e)&&ne?1:DL(isNaN(t),isNaN(e))}function Iet(){Iet=E,Zce=new FA(qMt,0),Xce=new FA("POLYLINE",1),Wce=new FA("ORTHOGONAL",2),Qce=new FA("SPLINES",3)}function Oet(){Oet=E,bie=new pA("ASPECT_RATIO_DRIVEN",0),mie=new pA("MAX_SCALE_DRIVEN",1),pie=new pA("AREA_DRIVEN",2)}function Net(t){var e,n;for(e=new yy,n=new pg(t.j);n.ae){NV(n);break}}Vz(n,e)}function qet(t,e,n){n.Ug("Straight Line Edge Routing",1),n.dh(e,nBt),kkt(t,KR(spt(e,(XD(),Nee)),27)),n.dh(e,rBt)}function Het(t,e){0==t.n.c.length&&SO(t.n,new uK(t.s,t.t,t.i)),SO(t.b,e),oot(KR(c$(t.n,t.n.c.length-1),209),e),cxt(t,e)}function Uet(t){var e;this.a=new UB(e=KR(t.e&&t.e(),9),KR(jP(e,e.length),9),0),this.b=WZ(nHt,pSt,1,this.a.a.length,5,1)}function Get(t){return Array.isArray(t)&&t.Tm===T?a_(i9(t))+"@"+(N3(t)>>>0).toString(16):t.toString()}function Ket(t,e){switch(e.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function Yet(t,e,n,i){switch(e){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return Wtt(t,e,n,i)}function Vet(t,e){if(e==t.d)return t.e;if(e==t.e)return t.d;throw Ay(new Tx("Node "+e+" not part of edge "+t))}function Wet(t,e,n,i){if(e<0)Zpt(t,n,i);else{if(!n.rk())throw Ay(new Tx(OFt+n.xe()+NFt));KR(n,69).wk().Ck(t,t.hi(),e,i)}}function Xet(t){var e;if(t.b){if(Xet(t.b),t.b.d!=t.c)throw Ay(new Jy)}else t.d.dc()&&(e=KR(t.f.c.xc(t.e),16))&&(t.d=e)}function Qet(t){var e,n,i;for(this.a=new jL,i=new pg(t);i.a=a)return e.c+n;return e.c+e.b.gc()}function Jet(t,e,n){var i,r;for(i=0,r=t.length;i0&&(i+=r,++n);return n>1&&(i+=t.d*(n-1)),i}function int(t){var e,n,i;for((i=new Kx).a+="[",e=0,n=t.gc();e=0&&t.a[n]===e[n];n--);return n<0}(t,n.a))}function snt(t){switch(MTt(),t.g){case 4:return cue;case 1:return sue;case 3:return Eue;case 2:return Cue;default:return Sue}}function cnt(t){var e,n;for(n=gx(qD(t.a.of((zEt(),yce)))),e=new pg(t.a.Sf());e.a=0;r--)if(_B(t[r].d,e)||_B(t[r].d,n)){t.length>=r+1&&t.splice(0,r+1);break}return t}(CHt.me(t)))),e=0,n=t.j.length;ec.d&&(h=c.d+c.a+u));n.c.d=h,e.a.zc(n,e),l=i.Math.max(l,n.c.d+n.c.a)}return l}(t),VT(new k$(null,new OY(t.d,16)),new Jg(t)),e}function Ent(t){Mnt(),this.c=OQ(t7(rk(Uae,1),pSt,845,0,[D6t])),this.b=new my,this.a=t,LH(this.b,P6t,1),V0(B6t,new fm(this))}function Snt(t,e,n){C2(),jw.call(this),this.a=u$(uKt,[RSt,BMt],[603,217],0,[mKt,bKt],2),this.c=new WL,this.g=t,this.f=e,this.d=n}function Cnt(t,e){this.n=u$(zpe,[RSt,pAt],[376,28],14,[e,oK(i.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function Ant(t){var e,n;e=t.d==(Jht(),AZt),n=tlt(t),E7(t.a,(CEt(),J4t),e&&!n||!e&&n?(xat(),woe):(xat(),yoe))}function Mnt(){Mnt=E,vE(),CEt(),P6t=h6t,B6t=OQ(t7(rk(Yae,1),cPt,149,0,[t6t,e6t,i6t,r6t,s6t,c6t,l6t,u6t,d6t,p6t,n6t,a6t,f6t]))}function Lnt(t,e){var n,i;if((i=new Cg(t.a.ad(e,!0))).a.gc()<=1)throw Ay(new Qy);return(n=i.a.ec().Kc()).Pb(),KR(n.Pb(),40)}function Int(t,e){return t.i>0&&(e.lengtht.i&&Dq(e,t.i,null),e}function Ont(t){var e;return 64&t.Db?utt(t):((e=new gN(utt(t))).a+=" (instanceClassName: ",QM(e,t.D),e.a+=")",e.a)}function Nnt(t){var e,n,i,r;for(r=0,n=0,i=t.length;n0&&(t._j(),-1!=Spt(t,((n=null==e?0:N3(e))&lSt)%t.d.length,n,e))}function Rnt(t,e){var n,r;t.a=Set(t.a,1),t.c=i.Math.min(t.c,e),t.b=i.Math.max(t.b,e),t.d+=e,n=e-t.f,r=t.e+n,t.f=r-t.e-n,t.e=r}function Fnt(t,e){switch(e){case 3:return void O2(t,0);case 4:return void N2(t,0);case 5:return void D2(t,0);case 6:return void P2(t,0)}W9(t,e)}function $nt(t,e){switch(e.g){case 1:return jR(t.j,(m5(),cXt));case 2:return jR(t.j,(m5(),uXt));default:return QU(),QU(),NUt}}function jnt(t){var e;switch(Sq(),(e=t.Pc()).length){case 0:return hHt;case 1:return new a$(kq(e[0]));default:return new BG(function(t){var e,n;for(e=0,n=t.length;e0&&(t._j(),n=zdt(t,((i=null==e?0:N3(e))&lSt)%t.d.length,i,e))?n.md():null}function Vnt(t,e,n){var i,r,a;return t.Pj()?(i=t.i,a=t.Qj(),ptt(t,i,e),r=t.Ij(3,null,e,i,a),n?n.nj(r):n=r):ptt(t,t.i,e),n}function Wnt(t){var e;return gP(),e=new KL(KR(t.e.of((zEt(),Mse)),8)),t.B.Hc((Vwt(),Hue))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function Xnt(t){var e,n;return lwt(),n=bj(t),0!=(e=bj(Lj(t,32)))?new qY(n,e):n>10||n<0?new iX(1,n):TUt[n]}function Qnt(t,e){var n;return BL(t)&&BL(e)&&sAt<(n=t%e)&&n=0?a=a.a[1]:(r=a,a=a.a[0])}return r}function lit(t,e,n){var i,r,a;for(r=null,a=t.b;a;){if(i=t.a.Ne(e,a.d),n&&0==i)return a;i<=0?a=a.a[0]:(r=a,a=a.a[1])}return r}function uit(t,e,n,i){var r,a,o;return r=!1,function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k;return f=t.c[e],d=t.c[n],!((g=KR(fut(f,(jEt(),D1t)),15))&&0!=g.gc()&&g.Hc(d)||(p=f.k!=(Vut(),eXt)&&d.k!=eXt,b=KR(fut(f,N1t),10),m=KR(fut(d,N1t),10),y=b!=m,w=!!b&&b!=f||!!m&&m!=d,v=rot(f,(MTt(),cue)),x=rot(d,Eue),w|=rot(f,Eue)||rot(d,cue),k=w&&y||v||x,p&&k)||f.k==(Vut(),iXt)&&d.k==nXt||d.k==(Vut(),iXt)&&f.k==nXt)&&(u=t.c[e],a=t.c[n],r=hct(t.e,u,a,(MTt(),Cue)),c=hct(t.i,u,a,sue),function(t,e,n){t.d=0,t.b=0,e.k==(Vut(),iXt)&&n.k==iXt&&KR(fut(e,(jEt(),U1t)),10)==KR(fut(n,U1t),10)&&(p1(e).j==(MTt(),cue)?Npt(t,e,n):Npt(t,n,e)),e.k==iXt&&n.k==eXt?p1(e).j==(MTt(),cue)?t.d=1:t.b=1:n.k==iXt&&e.k==eXt&&(p1(n).j==(MTt(),cue)?t.b=1:t.d=1),function(t,e,n){e.k==(Vut(),nXt)&&n.k==eXt&&(t.d=rtt(e,(MTt(),Eue)),t.b=rtt(e,cue)),n.k==nXt&&e.k==eXt&&(t.d=rtt(n,(MTt(),cue)),t.b=rtt(n,Eue))}(t,e,n)}(t.f,u,a),l=R8(t.b,u,a)+KR(r.a,17).a+KR(c.a,17).a+t.f.d,s=R8(t.b,a,u)+KR(r.b,17).a+KR(c.b,17).a+t.f.b,t.a&&(h=KR(fut(u,U1t),12),o=KR(fut(a,U1t),12),l+=KR((i=dst(t.g,h,o)).a,17).a,s+=KR(i.b,17).a),l>s)}(t.f,n,i)&&(function(t,e,n){var i,r;out(t.e,e,n,(MTt(),Cue)),out(t.i,e,n,sue),t.a&&(r=KR(fut(e,(jEt(),U1t)),12),i=KR(fut(n,U1t),12),ZY(t.g,r,i))}(t.f,t.a[e][n],t.a[e][i]),o=(a=t.a[e])[i],a[i]=a[n],a[n]=o,r=!0),r}function hit(t,e,n){var i,r,a;for(r=KR(Oq(t.b,n),183),i=0,a=new pg(e.j);a.a>5,e&=31,r=t.d+n+(0==e?0:1),function(t,e,n,i){var r,a,o;if(0==i)ext(e,0,t,n,t.length-n);else for(o=32-i,t[t.length-1]=0,a=t.length-1;a>n;a--)t[a]|=e[a-n-1]>>>o,t[a-1]=e[a-n-1]<e?1:DL(isNaN(t),isNaN(e)))>0}function mit(t,e){return CI(),CI(),p4(dCt),(i.Math.abs(t-e)<=dCt||t==e||isNaN(t)&&isNaN(e)?0:te?1:DL(isNaN(t),isNaN(e)))<0}function yit(t,e){return CI(),CI(),p4(dCt),(i.Math.abs(t-e)<=dCt||t==e||isNaN(t)&&isNaN(e)?0:te?1:DL(isNaN(t),isNaN(e)))<=0}function wit(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var i=e[n++];n0&&this.b>0&&(this.g=T$(this.c,this.b,this.a))}function Iit(t){if(!(b$t in t.a))throw Ay(new Ix("Every element must have an id."));return gdt(xK(t,b$t))}function Oit(t){var e,n;for(n=Dht(t),e=null;2==t.c;)AEt(t),e||(UEt(),UEt(),Ukt(e=new EI(2),n),n=e),n.Jm(Dht(t));return n}function Nit(t,e){var n,i;return t._j(),(n=zdt(t,((i=null==e?0:N3(e))&lSt)%t.d.length,i,e))?(b4(t,n),n.md()):null}function Dit(t,e){return t.e>e.e?1:t.ee.d?t.e:t.d=48&&t<48+i.Math.min(10,10)?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function Bit(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw Ay(new Tx("Input edge is not connected to the input port."))}function Rit(t){switch(typeof t){case sSt:return d8(t);case oSt:return LL(t);case aSt:return fP(t);default:return null==t?0:DN(t)}}function Fit(t,e){if(t.a<0)throw Ay(new Ex("Did not call before(...) or after(...) before calling add(...)."));return tD(t,t.a,e),t}function $it(t){return GK(),rO(t,162)?KR(Oq(bfe,HUt),295).Rg(t):mz(bfe,i9(t))?KR(Oq(bfe,i9(t)),295).Rg(t):null}function jit(t){var e;return 32&t.Db||0!=(e=Lq(KR(i6(t,16),29)||t.ii())-Lq(t.ii()))&&zit(t,32,WZ(nHt,pSt,1,e,5,1)),t}function zit(t,e,n){var i;t.Db&e?null==n?function(t,e){var n,i,r,a,o,s,c;if(1==(i=Ptt(254&t.Db)))t.Eb=null;else if(a=X2(t.Eb),2==i)r=Cot(t,e),t.Eb=a[0==r?1:0];else{for(o=WZ(nHt,pSt,1,i-1,5,1),n=2,s=0,c=0;n<=128;n<<=1)n==e?++s:t.Db&n&&(o[c++]=a[s++]);t.Eb=o}t.Db&=~e}(t,e):-1==(i=Cot(t,e))?t.Eb=n:Dq(X2(t.Eb),i,n):null!=n&&function(t,e,n){var i,r,a,o,s,c;if(0==(r=Ptt(254&t.Db)))t.Eb=n;else{if(1==r)o=WZ(nHt,pSt,1,2,5,1),0==Cot(t,e)?(o[0]=n,o[1]=t.Eb):(o[0]=t.Eb,o[1]=n);else for(o=WZ(nHt,pSt,1,r+1,5,1),a=X2(t.Eb),i=2,s=0,c=0;i<=128;i<<=1)i==e?o[c++]=n:t.Db&i&&(o[c++]=a[s++]);t.Eb=o}t.Db|=e}(t,e,n)}function qit(t,e,n,i){var r;0!=e.c.length&&(r=function(t,e){var n,i,r,a,o;for(n=new yy,r=Z1(new k$(null,new OY(t,16)),new po),a=Z1(new k$(null,new OY(t,16)),new bo),o=function(t){var e;return fH(t),e=WZ(Hpe,wAt,28,0,15,1),I_(t.a,new Fg(e)),e}(function(t){return get(t),new JD(t,new XR(t,t.a.e,4|t.a.d))}(rU(function(t){var e,n,i,r,a,o,s,c;for(e=336,n=0,r=new nB(t.length),s=0,c=(o=t).length;s=2*e&&SO(n,new wR(o[i-1]+e,o[i]-e));return n}(n,i),VT(q0(new k$(null,new OY(function(t){var e,n,i,r,a,o,s;for(a=new jL,n=new pg(t);n.a2&&s.e.b+s.j.b<=2&&(r=s,i=o),a.a.zc(r,a),r.q=i);return a}(e),1)),new go),new bU(t,n,r,i)))}function Hit(t){var e,n,i;if(!(i=t.Jh()))for(e=0,n=t.Ph();n;n=n.Ph()){if(++e>vAt)return n.Qh();if((i=n.Jh())||n==t)break}return i}function Uit(t,e){var n;return $M(e)===$M(t)||!(!rO(e,21)||(n=KR(e,21),n.gc()!=t.gc()))&&t.Ic(n)}function Git(t,e){return yH(t),null!=e&&(!!_B(t,e)||t.length==e.length&&_B(t.toLowerCase(),e.toLowerCase()))}function Kit(t){var e,n;return F9(t,-129)>0&&F9(t,128)<0?(f$(),e=bj(t)+128,!(n=iUt[e])&&(n=iUt[e]=new Xd(t)),n):new Xd(t)}function Yit(){Yit=E,qWt=new PS(PIt,0),jWt=new PS("INSIDE_PORT_SIDE_GROUPS",1),$Wt=new PS("GROUP_MODEL_ORDER",2),zWt=new PS(BIt,3)}function Vit(t,e){var n,i;for(IY(e,t.length),n=t.charCodeAt(e),i=e+1;i_&&(p.c=_-p.b),SO(s.d,new nj(p,Gtt(s,p))),w=e==cue?i.Math.max(w,b.b+u.b.Mf().b):i.Math.min(w,b.b));for(w+=e==cue?t.t:-t.t,(v=Tnt((s.e=w,s)))>0&&(KR(zH(t.b,e),127).a.b=v),h=d.Kc();h.Ob();)(u=KR(h.Pb(),117)).c&&!(u.c.d.c.length<=0)&&((p=u.c.i).c-=u.e.a,p.d-=u.e.b)}else kTt(t,e)}(t,e):kTt(t,e):t.u.Hc(iue)&&(n?function(t,e){var n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y;if((h=KR(KR(IQ(t.r,e),21),87)).gc()<=2||e==(MTt(),sue)||e==(MTt(),Cue))VTt(t,e);else{for(b=t.u.Hc((cdt(),rue)),n=e==(MTt(),cue)?(k6(),rYt):(k6(),eYt),y=e==cue?(z1(),TKt):(z1(),SKt),r=dk(fR(n),t.s),m=e==cue?fAt:dAt,u=h.Kc();u.Ob();)(c=KR(u.Pb(),117)).c&&!(c.c.d.c.length<=0)&&(p=c.b.Mf(),g=c.e,(d=(f=c.c).i).b=(o=f.n,f.e.a+o.b+o.c),d.a=(s=f.n,f.e.b+s.d+s.a),b?(d.c=g.a-(a=f.n,f.e.a+a.b+a.c)-t.s,b=!1):d.c=g.a+p.a+t.s,DG(y,$Mt),f.f=y,cJ(f,(PJ(),vKt)),SO(r.d,new nj(d,Gtt(r,d))),m=e==cue?i.Math.min(m,g.b):i.Math.max(m,g.b+c.b.Mf().b));for(m+=e==cue?-t.t:t.t,Tnt((r.e=m,r)),l=h.Kc();l.Ob();)(c=KR(l.Pb(),117)).c&&!(c.c.d.c.length<=0)&&((d=c.c.i).c-=c.e.a,d.d-=c.e.b)}}(t,e):VTt(t,e))}function urt(t){var e;$M(spt(t,(zEt(),hse)))===$M((V9(),mle))&&(DK(t)?(e=KR(spt(DK(t),hse),346),nat(t,hse,e)):nat(t,hse,yle))}function hrt(t,e,n){return new pU(i.Math.min(t.a,e.a)-n/2,i.Math.min(t.b,e.b)-n/2,i.Math.abs(t.a-e.a)+n,i.Math.abs(t.b-e.b)+n)}function frt(t){var e;this.d=new yy,this.j=new Hk,this.g=new Hk,e=t.g.b,this.f=KR(fut(uH(e),(CEt(),C3t)),88),this.e=gx(qD(zrt(e,s6t)))}function drt(t){this.d=new yy,this.e=new fX,this.c=WZ($pe,$Ct,28,(MTt(),t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue])).length,15,1),this.b=t}function grt(t,e,n){var i;switch(i=n[t.g][e],t.g){case 1:case 3:return new IA(0,i);case 2:case 4:return new IA(i,0);default:return null}}function prt(t,e,n){var i;i=KR(HG(e.f),205);try{i.rf(t,n),bH(e.f,i)}catch(t){throw rO(t=j6(t),103),Ay(t)}}function brt(t,e,n){var i,r,a,o;return i=null,(a=T_t(g4(),e))&&(r=null,null!=(o=f_t(a,n))&&(r=t.qf(a,o)),i=r),i}function mrt(t,e,n,i){var r;if(e>=(r=t.length))return r;for(e=e>0?e:0;ei&&Dq(e,i,null),e}function wrt(t,e){var n,i;for(i=t.a.length,e.lengthi&&Dq(e,i,null),e}function vrt(t,e){var n,i;++t.j,null!=e&&function(t,e){var n,i,r;if($M(t)===$M(e))return!0;if(null==t||null==e||t.length!=e.length)return!1;for(n=0;n>24}return n}(gkt(t,!0))))throw Ay(new Ox("Invalid hexBinary value: '"+t+"'"));return e}function krt(t,e,n){var i;e.a.length>0&&(SO(t.b,new VR(e.a,n)),0<(i=e.a.length)?e.a=$G(e.a,0,0):0>i&&(e.a+=dO(WZ(Fpe,_Ct,28,-i,15,1))))}function _rt(t,e,n){var i;if(!n[e.d])for(n[e.d]=!0,i=new pg(r9(e));i.a=t.b>>1)for(i=t.c,n=t.b;n>e;--n)i=i.b;else for(i=t.a.a,n=0;n=0?t.Wh(r):Adt(t,i):n<0?Adt(t,i):KR(i,69).wk().Bk(t,t.hi(),n)}function Brt(t){var e,n;for(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),e=(n=t.o).c.Kc();e.e!=e.i.gc();)KR(e.Yj(),44).md();return YZ(n)}function Rrt(t){var e;if(rO(t.a,4)){if(null==(e=$it(t.a)))throw Ay(new Ex(IRt+t.b+"'. "+CRt+(UD(wfe),wfe.k)+ARt));return e}return t.a}function Frt(t){var e;try{return e=t.i.Xb(t.e),t.Xj(),t.g=t.e++,e}catch(e){throw rO(e=j6(e),77)?(t.Xj(),Ay(new ew)):Ay(e)}}function $rt(t){var e;try{return e=t.c.Vi(t.e),t.Xj(),t.g=t.e++,e}catch(e){throw rO(e=j6(e),77)?(t.Xj(),Ay(new ew)):Ay(e)}}function jrt(t){var e,n,i,r;for(r=0,n=0,i=t.length;n=64&&e<128&&(r=RY(r,Aj(1,e-64)));return r}function zrt(t,e){var n,i;return i=null,cD(t,(zEt(),bce))&&(n=KR(fut(t,bce),96)).pf(e)&&(i=n.of(e)),null==i&&uH(t)&&(i=fut(uH(t),e)),i}function qrt(t,e){var n;return n=KR(fut(t,(CEt(),J3t)),75),aO(e,GWt)?n?FU(n):(n=new Zw,E7(t,J3t,n)):n&&E7(t,J3t,null),n}function Hrt(){Hrt=E,zEt(),HYt=fce,RYt=cse,OYt=Goe,FYt=Pse,Vst(),zYt=GGt,jYt=HGt,qYt=YGt,$Yt=qGt,Q8(),DYt=AYt,NYt=CYt,PYt=LYt,BYt=IYt}function Urt(t){switch(fE(),this.c=new yy,this.d=t,t.g){case 0:case 2:this.a=IH(BWt),this.b=fAt;break;case 3:case 1:this.a=BWt,this.b=dAt}}function Grt(t,e,n){var i;if(t.c)D2(t.c,t.c.i+e),P2(t.c,t.c.j+n);else for(i=new pg(t.b);i.a>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24}return K_(o=a[u++])&&K_(s=a[u++])?(e=tpe[o],n=tpe[s],c=a[u++],l=a[u++],-1==tpe[c]||-1==tpe[l]?61==c&&61==l?15&n?null:(ext(h,0,b=WZ(qpe,KFt,28,3*d+1,15,1),0,3*d),b[f]=(e<<2|n>>4)<<24>>24,b):61!=c&&61==l?3&(i=tpe[c])?null:(ext(h,0,b=WZ(qpe,KFt,28,3*d+2,15,1),0,3*d),b[f++]=(e<<2|n>>4)<<24>>24,b[f]=((15&n)<<4|i>>2&15)<<24>>24,b):null:(i=tpe[c],r=tpe[l],h[f++]=(e<<2|n>>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24,h)):null}(gkt(t,!0))))throw Ay(new Ox("Invalid base64Binary value: '"+t+"'"));return e}function Yrt(t,e){var n;n=t.fd(e);try{return n.Pb()}catch(t){throw rO(t=j6(t),112)?Ay(new vx("Can't get element "+e)):Ay(t)}}function Vrt(t,e){var n,i,r;for(n=t.o,r=KR(KR(IQ(t.r,e),21),87).Kc();r.Ob();)(i=KR(r.Pb(),117)).e.a=Wot(i,n.a),i.e.b=n.b*gx(qD(i.b.of(JKt)))}function Wrt(t){var e;return(e=new Vx).a+="n",t.k!=(Vut(),nXt)&&tL(tL((e.a+="(",e),uD(t.k).toLowerCase()),")"),tL((e.a+="_",e),Xot(t)),e.a}function Xrt(t,e){var n;switch(n=KR(zH(t.b,e),127).n,e.g){case 1:t.t>=0&&(n.d=t.t);break;case 3:t.t>=0&&(n.a=t.t)}t.C&&(n.b=t.C.b,n.c=t.C.c)}function Qrt(){Qrt=E,u7t=new TC(uPt,0),s7t=new TC(EOt,1),c7t=new TC("LINEAR_SEGMENTS",2),o7t=new TC("BRANDES_KOEPF",3),l7t=new TC(lPt,4)}function Zrt(){Zrt=E,vYt=new AS(QMt,0),wYt=new AS(ZMt,1),xYt=new AS(JMt,2),kYt=new AS(tLt,3),vYt.a=!1,wYt.a=!0,xYt.a=!1,kYt.a=!0}function Jrt(){Jrt=E,cYt=new SS(QMt,0),sYt=new SS(ZMt,1),lYt=new SS(JMt,2),uYt=new SS(tLt,3),cYt.a=!1,sYt.a=!0,lYt.a=!1,uYt.a=!0}function tat(t,e,n,i){var r;return n>=0?t.Sh(e,n,i):(t.Ph()&&(i=(r=t.Fh())>=0?t.Ah(i):t.Ph().Th(t,-1-r,null,i)),t.Ch(e,n,i))}function eat(t,e){switch(e){case 7:return!t.e&&(t.e=new bB(Ghe,t,7,4)),void Vkt(t.e);case 8:return!t.d&&(t.d=new bB(Ghe,t,8,5)),void Vkt(t.d)}Fnt(t,e)}function nat(t,e,n){return null==n?(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),Nit(t.o,e)):(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),gct(t.o,e,n)),t}function iat(t,e){var n,i,r,a;for(QU(),n=t,a=e,rO(t,21)&&!rO(e,21)&&(n=e,a=t),r=n.Kc();r.Ob();)if(i=r.Pb(),a.Hc(i))return!1;return!0}function rat(t,e,n,i){if(e.an.b)return!0}return!1}function aat(t,e){return jM(t)?!!iSt[e]:t.Sm?!!t.Sm[e]:qM(t)?!!nSt[e]:!!zM(t)&&!!eSt[e]}function oat(t,e){var n,r,a;for(a=t,r=new Dj(lN(Det(e).a.Kc(),new u));Rgt(r);)(n=KR(bQ(r),18)).c.i.c&&(a=i.Math.max(a,n.c.i.c.p));return a}function sat(t){var e,n,i;if(n=0,0==(i=Dmt(t)).c.length)return 1;for(e=new pg(i);e.a=0?t.Lh(o,n,!0):jdt(t,a,n):KR(a,69).wk().yk(t,t.hi(),r,n,i)}function hat(t){var e,n;if(null==t)return null;for(n=WZ(QWt,RSt,199,t.length,0,2),e=0;e=0)return i;if(t.ol())for(n=0;n=(r=t.gc()))throw Ay(new wB(e,r));if(t.Si()&&(i=t.dd(n))>=0&&i!=e)throw Ay(new Tx(N$t));return t.Xi(e,n)}function pat(t,e){if(this.a=KR(kq(t),253),this.b=KR(kq(e),253),t.Ed(e)>0||t==(Sv(),lHt)||e==(Cv(),uHt))throw Ay(new Tx("Invalid range: "+qW(t,e)))}function bat(t){var e,n;for(this.b=new yy,this.c=t,this.a=!1,n=new pg(t.a);n.a0)for(i=new HB(KR(IQ(t.a,a),21)),QU(),PI(i,new up(e)),r=new CV(a.b,0);r.b0),(e&-e)==e)return oK(e*Xpt(t,31)*4.656612873077393e-10);do{i=(n=Xpt(t,31))%e}while(n-i+(e-1)<0);return oK(i)}function Eat(t,e,n,i){var r,a;for(r=e;r1&&(r=function(t,e){var n,i,r;for(n=CN(new yw,t),r=new pg(e);r.a(c=null==t.d?0:t.d.length)){for(u=t.d,t.d=WZ(gfe,Ojt,66,2*c+4,0,1),a=0;a102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function Yat(t,e){if(null==t)throw Ay(new Cx("null key in entry: null="+e));if(null==e)throw Ay(new Cx("null value in entry: "+t+"=null"))}function Vat(t,e){var n;return n=t7(rk(Hpe,1),wAt,28,15,[l9(t.a[0],e),l9(t.a[1],e),l9(t.a[2],e)]),t.d&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Wat(t,e){var n;return n=t7(rk(Hpe,1),wAt,28,15,[u9(t.a[0],e),u9(t.a[1],e),u9(t.a[2],e)]),t.d&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Xat(t,e,n){CB(KR(fut(e,(CEt(),R5t)),101))||(VX(t,e,fht(e,n)),VX(t,e,fht(e,(MTt(),Eue))),VX(t,e,fht(e,cue)),QU(),PI(e.j,new ub(t)))}function Qat(t){var e,n;for(t.c||function(t){var e,n,r,a,o,s;if(a=new CV(t.e,0),r=new CV(t.a,0),t.d)for(n=0;nTPt;){for(o=e,s=0;i.Math.abs(e-o)0),a.a.Xb(a.c=--a.b),ixt(t,t.b-s,o,r,a),KD(a.b0),r.a.Xb(r.c=--r.b)}if(!t.d)for(n=0;n=0){for(c=null,s=new CV(u.a,l+1);s.b0&&l[r]&&(p=HI(t.b,l[r],a)),b=i.Math.max(b,a.c.c.b+p);for(o=new pg(h.e);o.ax)?(l=2,s=lSt):0==l?(l=1,s=_):(l=0,s=_):(d=_>=s||s-_0?(h=KR(c$(f.c.a,o-1),10),T=HI(t.b,f,h),b=f.n.b-f.d.d-(h.n.b+h.o.b+h.d.a+T)):b=f.n.b-f.d.d,l=i.Math.min(b,l),oa&&Dq(e,a,null),e}function bot(t,e){var n,i,r;return n=e.ld(),r=e.md(),i=t.xc(n),!(!($M(r)===$M(i)||null!=r&&wtt(r,i))||null==i&&!t._b(n))}function mot(t,e,n,i){var r,a;this.a=e,this.c=i,function(t,e){t.b=e}(this,new IA(-(r=t.a).c,-r.d)),aB(this.b,n),a=i/2,e.a?vD(this.b,0,a):vD(this.b,a,0),SO(t.c,this)}function yot(t,e,n,i){var r;this.c=t,this.d=e,dX(r=new jT,n,r.c.b,r.c),this.a=r,this.b=KR(fut(i,(axt(),Gte)),88),this.e=gx(qD(fut(i,uee))),REt(this)}function wot(){wot=E,jne=new hA(PIt,0),Fne=new hA(AOt,1),$ne=new hA("EDGE_LENGTH_BY_POSITION",2),Rne=new hA("CROSSING_MINIMIZATION_BY_POSITION",3)}function vot(t,e){var n,i;if(n=KR(A2(t.g,e),27))return n;if(i=KR(A2(t.j,e),123))return i;throw Ay(new Ix("Referenced shape does not exist: "+e))}function xot(t,e){var n;if(rO(e,253)){n=KR(e,253);try{return 0==t.Ed(n)}catch(t){if(rO(t=j6(t),212))return!1;throw Ay(t)}}return!1}function kot(t,e){if(t.c==e)return t.d;if(t.d==e)return t.c;throw Ay(new Tx("Node 'one' must be either source or target of edge 'edge'."))}function _ot(t,e){if(t.c.i==e)return t.d.i;if(t.d.i==e)return t.c.i;throw Ay(new Tx("Node "+e+" is neither source nor target of edge "+t))}function Tot(t,e){var n;switch(e.g){case 2:case 4:n=t.a,t.c.d.n.b0&&(c+=r),l[u]=o,o+=s*(c+i)}function Sot(t){var e,n,i;for(i=t.f,t.n=WZ(Hpe,wAt,28,i,15,1),t.d=WZ(Hpe,wAt,28,i,15,1),e=0;e0?t.c:0),++a;t.b=r,t.d=o}function Dot(t,e){var n;return n=t7(rk(Hpe,1),wAt,28,15,[_at(t,(d2(),hKt),e),_at(t,fKt,e),_at(t,dKt,e)]),t.f&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Pot(t,e,n){try{Qyt(t,e+t.j,n+t.k,!1,!0)}catch(t){throw rO(t=j6(t),77)?Ay(new vx(t.g+oLt+e+dSt+n+").")):Ay(t)}}function Bot(t,e,n){try{Qyt(t,e+t.j,n+t.k,!0,!1)}catch(t){throw rO(t=j6(t),77)?Ay(new vx(t.g+oLt+e+dSt+n+").")):Ay(t)}}function Rot(t){var e;cD(t,(CEt(),d5t))&&((e=KR(fut(t,d5t),21)).Hc((cpt(),Ale))?(e.Mc(Ale),e.Fc(Lle)):e.Hc(Lle)&&(e.Mc(Lle),e.Fc(Ale)))}function Fot(t){var e;cD(t,(CEt(),d5t))&&((e=KR(fut(t,d5t),21)).Hc((cpt(),Ple))?(e.Mc(Ple),e.Fc(Nle)):e.Hc(Nle)&&(e.Mc(Nle),e.Fc(Ple)))}function $ot(t,e,n,i){var r,a,o;return null==t.a&&function(t,e){var n,i,r,a;for(a=e.b.j,t.a=WZ($pe,$Ct,28,a.c.length,15,1),r=0,i=0;i0&&(a.b+=e),a}function Hot(t,e){var n,r,a;for(a=new Hk,r=t.Kc();r.Ob();)awt(n=KR(r.Pb(),36),0,a.b),a.b+=n.f.b+e,a.a=i.Math.max(a.a,n.f.a);return a.a>0&&(a.a+=e),a}function Uot(t){var e,n,r;for(r=lSt,n=new pg(t.a);n.a>16==6?t.Cb.Th(t,5,Xhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||t.ii(),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Vot(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=k7(i.Math.max(8,r))<<1,0!=t.b?(v3(t,e=jP(t.a,n),r),t.a=e,t.b=0):ow(t.a,n),t.c=r)}function Wot(t,e){var n;return(n=t.b).pf((zEt(),Vse))?n.ag()==(MTt(),Cue)?-n.Mf().a-gx(qD(n.of(Vse))):e+gx(qD(n.of(Vse))):n.ag()==(MTt(),Cue)?-n.Mf().a:e}function Xot(t){return 0!=t.b.c.length&&KR(c$(t.b,0),72).a?KR(c$(t.b,0),72).a:lU(t)??""+(t.c?g1(t.c.a,t,0):-1)}function Qot(t){return 0!=t.f.c.length&&KR(c$(t.f,0),72).a?KR(c$(t.f,0),72).a:lU(t)??""+(t.i?g1(t.i.j,t,0):-1)}function Zot(t,e){var n,i;if(e<0||e>=t.gc())return null;for(n=e;n0?t.c:0),a=i.Math.max(a,e.d),++r;t.e=o,t.b=a}function est(t,e,n,i){return 0==e?i?(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),t.o):(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),YZ(t.o)):uat(t,e,n,i)}function nst(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e>22),r+=i>>22,r<0)||(t.l=n&eAt,t.m=i&eAt,t.h=r&nAt,0))}function ast(t,e,n,i,r,a,o){var s,c;return!(e.Te()&&(c=t.a.Ne(n,i),c<0||!r&&0==c)||e.Ue()&&(s=t.a.Ne(n,a),s>0||!o&&0==s))}function ost(t,e,n){var i,r;return g9(r=new lv,e),B3(r,n),sJ((!t.c&&(t.c=new ez(ide,t,12,10)),t.c),r),j2(i=r,0),z2(i,1),Ctt(i,!0),Ttt(i,!0),i}function sst(t,e){var n,i;if(e>=t.i)throw Ay(new wL(e,t.i));return++t.j,n=t.g[e],(i=t.i-e-1)>0&&ext(t.g,e+1,t.g,e,i),Dq(t.g,--t.i,null),t.Qi(e,n),t.Ni(),n}function cst(t,e){var n;return t.Db>>16==17?t.Cb.Th(t,21,Wfe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||t.ii(),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function lst(t){var e,n,i,r,a;for(r=lSt,a=null,i=new pg(t.d);i.an.a.c.length))throw Ay(new Tx("index must be >= 0 and <= layer node count"));t.c&&u1(t.c.a,t),t.c=n,n&&V$(n.a,e,t)}function wst(t,e){var n,i,r;for(i=new Dj(lN(Net(t).a.Kc(),new u));Rgt(i);)return n=KR(bQ(i),18),new Ff(kq((r=KR(e.Kb(n),10)).n.b+r.o.b/2));return Ev(),Ev(),eHt}function vst(t,e){this.c=new my,this.a=t,this.b=e,this.d=KR(fut(t,(jEt(),o0t)),312),$M(fut(t,(CEt(),g5t)))===$M((KJ(),wJt))?this.e=new Bw:this.e=new Pw}function xst(t,e){var n,i;return i=null,t.pf((zEt(),bce))&&(n=KR(t.of(bce),96)).pf(e)&&(i=n.of(e)),null==i&&t.Tf()&&(i=t.Tf().of(e)),null==i&&(i=Rrt(e)),i}function kst(t,e){var n,i;n=t.fd(e);try{return i=n.Pb(),n.Qb(),i}catch(t){throw rO(t=j6(t),112)?Ay(new vx("Can't remove element "+e)):Ay(t)}}function _st(t,e){var n,i,r;for(yH(e),GD(e!=t),r=t.b.c.length,i=e.Kc();i.Ob();)n=i.Pb(),SO(t.b,yH(n));return r!=t.b.c.length&&(M8(t,0),!0)}function Tst(){Tst=E,zEt(),YVt=bse,new vI(ise,(FN(),!0)),XVt=Sse,QVt=Mse,ZVt=Ise,WVt=Tse,JVt=Dse,tWt=Jse,ust(),KVt=zVt,UVt=FVt,GVt=jVt,VVt=qVt,HVt=RVt}function Est(t,e,n,i){var r,a,o;for(nY(e,KR(i.Xb(0),30)),o=i.kd(1,i.gc()),a=KR(n.Kb(e),20).Kc();a.Ob();)Est(t,(r=KR(a.Pb(),18)).c.i==e?r.d.i:r.c.i,n,o)}function Sst(t){var e;return e=new my,cD(t,(jEt(),h0t))?KR(fut(t,h0t),85):(VT(nU(new k$(null,new OY(t.j,16)),new er),new zp(e)),E7(t,h0t,e),e)}function Cst(t,e){var n,r,a,o,s;for(r=0,a=0,n=0,s=new pg(t);s.a0?e:0),++n;return new IA(r,a)}function Ast(t,e){var n;return t.Db>>16==6?t.Cb.Th(t,6,Ghe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(hEt(),Che),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Mst(t,e){var n;return t.Db>>16==7?t.Cb.Th(t,1,qhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(hEt(),Mhe),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Lst(t,e){var n;return t.Db>>16==9?t.Cb.Th(t,9,Zhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(hEt(),Ihe),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Ist(t,e){var n;return t.Db>>16==5?t.Cb.Th(t,9,Jfe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(KEt(),pde),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Ost(t,e){var n;return t.Db>>16==7?t.Cb.Th(t,6,Xhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(KEt(),Tde),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Nst(t,e){var n;return t.Db>>16==3?t.Cb.Th(t,0,Yhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(KEt(),cde),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function Dst(){this.a=new sl,this.g=new Pat,this.j=new Pat,this.b=new my,this.d=new Pat,this.i=new Pat,this.k=new my,this.c=new my,this.e=new my,this.f=new my}function Pst(t,e,n){var i,r,a;for(n<0&&(n=0),a=t.i,r=n;rvAt)return Bst(t,i);if(i==t)return!0}}return!1}function Rst(t,e){var n,r,a;for(u1(t.a,e),t.e-=e.r+(0==t.a.c.length?0:t.c),a=iBt,r=new pg(t.a);r.a>16==3?t.Cb.Th(t,12,Zhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(hEt(),She),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function $st(t,e){var n;return t.Db>>16==11?t.Cb.Th(t,10,Zhe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(hEt(),Lhe),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function jst(t,e){var n;return t.Db>>16==10?t.Cb.Th(t,11,Wfe,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(KEt(),kde),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function zst(t,e){var n;return t.Db>>16==10?t.Cb.Th(t,12,nde,e):(n=Oat(KR(N0(KR(i6(t,16),29)||(KEt(),Ede),t.Db>>16),19)),t.Cb.Th(t,n.n,n.f,e))}function qst(t){var e;return!(1&t.Bb)&&t.r&&t.r.Vh()&&(e=KR(t.r,54),t.r=KR(j9(t,e),142),t.r!=e&&4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,9,8,e,t.r))),t.r}function Hst(t,e,n){var r;return r=t7(rk(Hpe,1),wAt,28,15,[Jlt(t,(d2(),hKt),e,n),Jlt(t,fKt,e,n),Jlt(t,dKt,e,n)]),t.f&&(r[0]=i.Math.max(r[0],r[2]),r[2]=r[0]),r}function Ust(t,e){var n,i,r;if(0!=(r=function(t,e){var n,i,r;for(r=new lZ(e.gc()),i=e.Kc();i.Ob();)(n=KR(i.Pb(),293)).c==n.f?Bht(t,n,n.c):Lht(t,n)||Dy(r.c,n);return r}(t,e)).c.length)for(PI(r,new ei),n=r.c.length,i=0;i>19)!=(s=e.h>>19)?s-o:(i=t.h)!=(a=e.h)?i-a:(n=t.m)!=(r=e.m)?n-r:t.l-e.l}function Vst(){Vst=E,vyt(),YGt=new vL(TMt,VGt=iKt),_0(),GGt=new vL(EMt,KGt=jGt),Lrt(),HGt=new vL(SMt,UGt=BGt),qGt=new vL(CMt,(FN(),!0))}function Wst(t,e,n){var i,r;i=e*n,rO(t.g,154)?(r=_W(t)).f.d?r.f.a||(t.d.a+=i+HMt):(t.d.d-=i+HMt,t.d.a+=i+HMt):rO(t.g,10)&&(t.d.d-=i,t.d.a+=2*i)}function Xst(t,e,n){var r,a,o,s,c;for(a=t[n.g],c=new pg(e.d);c.a0?t.b:0),++n;e.b=r,e.e=a}function Zst(t){var e,n,i;if(i=t.b,DT(t.i,i.length)){for(n=2*i.length,t.b=WZ(pHt,nCt,303,n,0,1),t.c=WZ(pHt,nCt,303,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)Qft(t,e,e);++t.g}}function Jst(t,e){return t.b.a=i.Math.min(t.b.a,e.c),t.b.b=i.Math.min(t.b.b,e.d),t.a.a=i.Math.max(t.a.a,e.c),t.a.b=i.Math.max(t.a.b,e.d),Dy(t.c,e),!0}function tct(t,e,n){var i;(i=e.c.i).k==(Vut(),eXt)?(E7(t,(jEt(),$1t),KR(fut(i,$1t),12)),E7(t,j1t,KR(fut(i,j1t),12))):(E7(t,(jEt(),$1t),e.c),E7(t,j1t,n.d))}function ect(t,e,n){var r,a,o,s,c,l;return Ymt(),s=e/2,o=n/2,c=1,l=1,(r=i.Math.abs(t.a))>s&&(c=s/r),(a=i.Math.abs(t.b))>o&&(l=o/a),EO(t,i.Math.min(c,l)),t}function nct(){TT.call(this),this.e=-1,this.a=!1,this.p=gCt,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=gCt}function ict(){ict=E,oWt=dj(QF(QF(QF(new EH,(dut(),dWt),(qEt(),VXt)),dWt,ZXt),gWt,aQt),gWt,BXt),cWt=QF(QF(new EH,dWt,SXt),dWt,RXt),sWt=dj(new EH,gWt,$Xt)}function rct(t,e){var n,i,r,a;for(a=new my,e.e=null,e.f=null,i=new pg(e.i);i.a0)try{i=evt(e,gCt,lSt)}catch(t){throw rO(t=j6(t),130)?Ay(new y1(t)):Ay(t)}return!t.a&&(t.a=new hy(t)),i<(n=t.a).i&&i>=0?KR(l2(n,i),58):null}(t,0==(r=e.c.length)?"":(LY(0,e.c.length),HD(e.c[0]))),i=1;i0&&(r=zdt(t,(a&lSt)%t.d.length,a,e))?r.nd(n):(i=t.ck(a,e,n),t.c.Fc(i),null)}function pct(t,e){var n,i,r,a;switch(gtt(t,e).Kl()){case 3:case 2:for(r=0,a=(n=okt(e)).i;r=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}(t,t)/$9(2.718281828459045,t))}function mct(t,e){var n;if(t.Yi()&&null!=e){for(n=0;n0&&(t.b+=2,t.a+=r):(t.b+=1,t.a+=i.Math.min(r,a))}function _ct(t){var e;e=KR(fut(KR(Yrt(t.b,0),40),(axt(),iee)),107),E7(t,(ETt(),ote),new IA(0,0)),Gwt(new aZ,t,e.b+e.c-gx(qD(fut(t,dte))),e.d+e.a-gx(qD(fut(t,pte))))}function Tct(t,e){var n;if(n=!1,jM(e)&&(n=!0,zq(t,new _q(HD(e)))),n||rO(e,242)&&(n=!0,zq(t,new kd(jB(KR(e,242))))),!n)throw Ay(new kx(p$t))}function Ect(t){var e,n;switch(KR(fut(uH(t),(CEt(),Z3t)),429).g){case 0:return e=t.n,n=t.o,new IA(e.a+n.a/2,e.b+n.b/2);case 1:return new KL(t.n);default:return null}}function Sct(){Sct=E,SJt=new gC(PIt,0),EJt=new gC("LEFTUP",1),AJt=new gC("RIGHTUP",2),TJt=new gC("LEFTDOWN",3),CJt=new gC("RIGHTDOWN",4),_Jt=new gC("BALANCED",5)}function Cct(t,e,n){switch(e){case 1:return!t.n&&(t.n=new ez(Qhe,t,1,7)),Vkt(t.n),!t.n&&(t.n=new ez(Qhe,t,1,7)),void nq(t.n,KR(n,16));case 2:return void G4(t,HD(n))}l8(t,e,n)}function Act(t,e,n){switch(e){case 3:return void O2(t,gx(qD(n)));case 4:return void N2(t,gx(qD(n)));case 5:return void D2(t,gx(qD(n)));case 6:return void P2(t,gx(qD(n)))}Cct(t,e,n)}function Mct(t,e,n){var i,r;(i=Klt(r=new lv,e,null))&&i.oj(),B3(r,n),sJ((!t.c&&(t.c=new ez(ide,t,12,10)),t.c),r),j2(r,0),z2(r,1),Ctt(r,!0),Ttt(r,!0)}function Lct(t,e){var n,i;return rO(n=nS(t.i,e),241)?((i=KR(n,241)).zi(),i.wi()):rO(n,507)?i=KR(n,2037).b:null}function Ict(t,e,n,i){var r,a;return kq(e),kq(n),A1(!!(a=KR($B(t.d,e),17)),"Row %s not in %s",e,t.e),A1(!!(r=KR($B(t.b,n),17)),"Column %s not in %s",n,t.c),J6(t,a.a,r.a,i)}function Oct(t,e,n,i,r,a,o){var s,c,l,u,h;if(h=Lot(s=(l=a==o-1)?i:0,u=r[a]),10!=i&&t7(rk(t,o-a),e[a],n[a],s,h),!l)for(++a,c=0;c1||-1==s?(a=KR(c,15),r.Wb(function(t,e){var n,i,r;for(i=new lZ(e.gc()),n=e.Kc();n.Ob();)(r=Wwt(t,KR(n.Pb(),58)))&&Dy(i.c,r);return i}(t,a))):r.Wb(Wwt(t,KR(c,58))))}function Uct(t,e){var n,i,r;for(r=new rg(new Zd(t.b).a.vc().Kc());r.a.Ob();)if(n=KR(r.a.Pb(),44),i=KR(n.ld(),34),OL(e,KR(i,17))<0)return!1;return!0}function Gct(t,e){var n,i,r;for(r=new rg(new Zd(t.b).a.vc().Kc());r.a.Ob();)if(n=KR(r.a.Pb(),44),i=KR(n.ld(),34),OL(e,KR(i,17))>0)return!1;return!0}function Kct(t){switch(KR(fut(t.b,(CEt(),R3t)),387).g){case 1:VT(iU(Z1(new k$(null,new OY(t.d,16)),new Vr),new Wr),new Xr);break;case 2:!function(t){var e,n,i,r,a,o,s;for(i=0,s=0,o=new pg(t.d);o.a=t.f)break;Dy(a.c,n)}return a}function ilt(t,e){var n,i,r;for(i=new pg(e.a);i.a0&&hst(this,this.c-1,(MTt(),sue)),this.c0&&t[0].length>0&&(this.c=dx(zD(fut(uH(t[0][0]),(jEt(),P1t))))),this.a=WZ(_8t,RSt,2117,t.length,0,2),this.b=WZ(S8t,RSt,2118,t.length,0,2),this.d=new x9}function dlt(t){return 0!=t.c.length&&((LY(0,t.c.length),KR(t.c[0],18)).c.i.k==(Vut(),eXt)||nQ(iU(new k$(null,new OY(t,16)),new Ba),new Ra))}function glt(t,e){var n,r,a,o,s,c;for(s=Dmt(e),a=e.f,c=e.g,o=i.Math.sqrt(a*a+c*c),r=0,n=new pg(s);n.a=0?(n=yct(t,oAt),i=Qnt(t,oAt)):(n=yct(e=Lj(t,1),5e8),i=Set(Aj(i=Qnt(e,5e8),1),BY(t,1))),RY(Aj(i,32),BY(n,kAt))}function Clt(t,e,n){var i;switch(KD(0!=e.b),i=KR(J0(e,e.a.a),8),n.g){case 0:i.b=0;break;case 2:i.b=t.f;break;case 3:i.a=0;break;default:i.a=t.g}return Vz(Mrt(e,0),i),e}function Alt(t,e,n,i){var r,a,o,s,c;switch(c=t.b,s=grt(o=(a=e.d).j,c.d[o.g],n),r=aB(tO(a.n),a.a),a.j.g){case 1:case 3:s.a+=r.a;break;case 2:case 4:s.b+=r.b}dX(i,s,i.c.b,i.c)}function Mlt(t,e,n){var i,r,a,o;for(o=g1(t.e,e,0),(a=new Ow).b=n,i=new CV(t.e,o);i.b=0;e--)tGt[e]=i,i*=.5;for(n=1,t=24;t>=0;t--)JUt[t]=n,n*=.5}function Ilt(t){var e,n;if(dx(zD(spt(t,(CEt(),W3t)))))for(n=new Dj(lN(Ypt(t).a.Kc(),new u));Rgt(n);)if(Idt(e=KR(bQ(n),74))&&dx(zD(spt(e,X3t))))return!0;return!1}function Olt(t,e){var n,i,r;Az(t.f,e)&&(e.b=t,i=e.c,-1!=g1(t.j,i,0)||SO(t.j,i),r=e.d,-1!=g1(t.j,r,0)||SO(t.j,r),0!=(n=e.a.b).c.length&&(!t.i&&(t.i=new frt(t)),function(t,e){var n,i;for(i=new pg(e);i.a=0&&_B(t.substr(e,3),"GMT")||e>=0&&_B(t.substr(e,3),"UTC"))&&(n[0]=e+3),function(t,e,n){var i,r,a,o;if(e[0]>=t.length)return n.o=0,!0;switch(JH(t,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return n.o=0,!0}if(++e[0],a=e[0],0==(o=Mdt(t,e))&&e[0]==a)return!1;if(e[0]0&&ext(t.g,e,t.g,e+i,s),o=n.Kc(),t.i+=i,r=0;r=mAt?(e=yAt+(t-mAt>>10&1023)&ECt,n=56320+(t-mAt&1023)&ECt,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&ECt)}function Xlt(t,e,n,i,r){var a,o,s;for(a=Bmt(t,e,n,i,r),s=!1;!a;)vpt(t,r,!0),s=!0,a=Bmt(t,e,n,i,r);s&&vpt(t,r,!1),0!=(o=c7(r)).c.length&&(t.d&&t.d.Gg(o),Xlt(t,r,n,i,o))}function Qlt(){Qlt=E,ale=new $A(PIt,0),ile=new $A("DIRECTED",1),ole=new $A("UNDIRECTED",2),ele=new $A("ASSOCIATION",3),rle=new $A("GENERALIZATION",4),nle=new $A("DEPENDENCY",5)}function Zlt(t,e){var n,i;for(yH(e),i=t.b.c.length,SO(t.b,e);i>0;){if(n=i,i=(i-1)/2|0,t.a.Ne(c$(t.b,i),e)<=0)return YX(t.b,n,e),!0;YX(t.b,n,c$(t.b,i))}return YX(t.b,i,e),!0}function Jlt(t,e,n,r){var a,o;if(a=0,n)a=u9(t.a[n.g][e.g],r);else for(o=0;o=o)}function eut(t){switch(t.g){case 0:return new qs;case 1:return new Us;default:throw Ay(new Tx("No implementation is available for the width approximator "+(null!=t.f?t.f:""+t.g)))}}function nut(t,e,n,i){var r;if(r=!1,jM(i)&&(r=!0,LF(e,n,HD(i))),r||zM(i)&&(r=!0,nut(t,e,n,i)),r||rO(i,242)&&(r=!0,aG(e,n,KR(i,242))),!r)throw Ay(new kx(p$t))}function iut(t,e){var n,i,r,a;if(yH(e),(a=t.a.gc())=TCt?"error":"warn",t.a),t.b&&Rbt(e,n,t.b,"Exception: ",!0))}function fut(t,e){var n;return!t.q&&(t.q=new my),Oq(t.q,e)??(rO(n=e.Sg(),4)&&(null==n?(!t.q&&(t.q=new my),$Q(t.q,e)):(!t.q&&(t.q=new my),LH(t.q,e,n))),n)}function dut(){dut=E,uWt=new OS("P1_CYCLE_BREAKING",0),hWt=new OS("P2_LAYERING",1),fWt=new OS("P3_NODE_ORDERING",2),dWt=new OS("P4_NODE_PLACEMENT",3),gWt=new OS("P5_EDGE_ROUTING",4)}function gut(t,e){var n;if(S0(),t.c==e.c){if(t.b==e.b||function(t,e){return i7(),t==SWt&&e==MWt||t==MWt&&e==SWt||t==AWt&&e==CWt||t==CWt&&e==AWt}(t.b,e.b)){if(n=function(t){return t==SWt||t==MWt}(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return $I(t.b.g,e.b.g)}return cet(t.c,e.c)}function put(t,e){var n,i;if(Eut(t,e))return!0;for(i=new pg(e);i.a=(r=t.Ej())||e<0)throw Ay(new vx(D$t+e+P$t+r));if(n>=r||n<0)throw Ay(new vx(B$t+n+P$t+r));return e!=n?(a=t.Cj(n),t.qj(e,a),i=a):i=t.xj(n),i}function _ut(t){var e,n,i;if(i=t,t)for(e=0,n=t.Eh();n;n=n.Eh()){if(++e>vAt)return _ut(n);if(i=n,n==t)throw Ay(new Ex("There is a cycle in the containment hierarchy of "+t))}return i}function Tut(t){var e,n,i;for(i=new y6(dSt,"[","]"),n=t.Kc();n.Ob();)FQ(i,$M(e=n.Pb())===$M(t)?"(this Collection)":null==e?wSt:Get(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Eut(t,e){var n,i;if(i=!1,e.gc()<2)return!1;for(n=0;n1&&(t.j.b+=t.e)):(t.j.a+=n.a,t.j.b=i.Math.max(t.j.b,n.b),t.d.c.length>1&&(t.j.a+=t.e))}function Mut(){Mut=E,sZt=t7(rk(Due,1),RIt,64,0,[(MTt(),cue),sue,Eue]),oZt=t7(rk(Due,1),RIt,64,0,[sue,Eue,Cue]),cZt=t7(rk(Due,1),RIt,64,0,[Eue,Cue,cue]),lZt=t7(rk(Due,1),RIt,64,0,[Cue,cue,sue])}function Lut(t,e,n,i){var r,a,o,s,c;if(a=t.c.d,o=t.d.d,a.j!=o.j)for(c=t.b,r=a.j,s=null;r!=o.j;)s=0==e?Vtt(r):Ktt(r),RF(i,aB(grt(r,c.d[r.g],n),grt(s,c.d[s.g],n))),r=s}function Iut(t,e,n,i){var r,a,o,s,c;return s=KR((o=dst(t.a,e,n)).a,17).a,a=KR(o.b,17).a,i&&(c=KR(fut(e,(jEt(),Z1t)),10),r=KR(fut(n,Z1t),10),c&&r&&(RW(t.b,c,r),s+=t.b.i,a+=t.b.e)),s>a}function Out(t){var e,n,i,r,a,o,s,c;for(this.a=hat(t),this.b=new yy,i=0,r=(n=t).length;i0&&(t.a[H.p]=Z++)}for(it=0,D=0,R=(I=n).length;D0;){for(KD(Y.b>0),K=0,c=new pg((H=KR(Y.a.Xb(Y.c=--Y.b),12)).e);c.a0&&(H.j==(MTt(),cue)?(t.a[H.p]=it,++it):(t.a[H.p]=it+F+j,++j))}it+=j}for(G=new my,p=new jL,O=0,P=(M=e).length;Ou.b&&(u.b=V)):H.i.c==Q&&(Vu.c&&(u.c=V));for(IJ(b,0,b.length,null),nt=WZ($pe,$Ct,28,b.length,15,1),r=WZ($pe,$Ct,28,it+1,15,1),y=0;y0;)T%2>0&&(a+=ot[T+1]),++ot[T=(T-1)/2|0];for(S=WZ(R8t,pSt,374,2*b.length,0,1),x=0;xuP(t.d).c?(t.i+=t.g.c,tit(t.d)):uP(t.d).c>uP(t.g).c?(t.e+=t.d.c,tit(t.g)):(t.i+=A$(t.g),t.e+=A$(t.d),tit(t.g),tit(t.d))}function Rut(t,e,n,r){t.a.d=i.Math.min(e,n),t.a.a=i.Math.max(e,r)-t.a.d,ec&&(l=c/r),(a=i.Math.abs(e.b-t.b))>o&&(u=o/a),s=i.Math.min(l,u),t.a+=s*(e.a-t.a),t.b+=s*(e.b-t.b)}function Hut(t,e,n,i,r){var a,o;for(o=!1,a=KR(c$(n.b,0),27);Axt(t,e,a,i,r)&&(o=!0,$ct(n,a),0!=n.b.c.length);)a=KR(c$(n.b,0),27);return 0==n.b.c.length&&Rst(n.j,n),o&&Not(e.q),o}function Uut(t,e){var n,i,r,a;if(Ymt(),e.b<2)return!1;for(i=n=KR(gW(a=Mrt(e,0)),8);a.b!=a.d.c;){if(wbt(t,i,r=KR(gW(a),8)))return!0;i=r}return!!wbt(t,i,n)}function Gut(t,e,n,i){return 0==n?(!t.o&&(t.o=new mJ((hEt(),Ohe),nfe,t,0)),BB(t.o,e,i)):KR(N0(KR(i6(t,16),29)||t.ii(),n),69).wk().Ak(t,jit(t),n-Lq(t.ii()),e,i)}function Kut(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=KR(t.sb,54).Th(t,1,Vhe,n)),e&&(n=KR(e,54).Rh(t,1,Vhe,n)),(n=ftt(t,e,n))&&n.oj()):4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,4,e,e))}function Yut(t,e){var n,i;i=KR(fut(e,(CEt(),R5t)),101),E7(e,(jEt(),W1t),i),(n=e.e)&&(VT(new k$(null,new OY(n.a,16)),new cp(t)),VT(Z1(new k$(null,new OY(n.b,16)),new ge),new lp(t)))}function Vut(){Vut=E,nXt=new BS("NORMAL",0),eXt=new BS("LONG_EDGE",1),JWt=new BS("EXTERNAL_PORT",2),iXt=new BS("NORTH_SOUTH_PORT",3),tXt=new BS("LABEL",4),ZWt=new BS("BREAKING_POINT",5)}function Wut(t,e){var n,i,r;return(e&=63)<22?(n=t.l<>22-e,r=t.h<>22-e):e<44?(n=0,i=t.l<>44-e):(n=0,i=0,r=t.l<t)throw Ay(new Tx("k must be smaller than n"));return 0==e||e==t?1:0==t?0:bct(t)/(bct(e)*bct(t-e))}function tht(t,e){var n,i,r,a;for(n=new fI(t);null!=n.g||n.c?null==n.g||0!=n.i&&KR(n.g[n.i-1],51).Ob():MK(n);)if(rO(a=KR(zpt(n),58),167))for(i=KR(a,167),r=0;r0&&dwt(t,n,e),r):function(t,e,n){var i,r,a;return i=t.c[e.c.p][e.p],r=t.c[n.c.p][n.p],null!=i.a&&null!=r.a?((a=Oj(i.a,r.a))<0?dwt(t,e,n):a>0&&dwt(t,n,e),a):null!=i.a?(dwt(t,e,n),-1):null!=r.a?(dwt(t,n,e),1):0}(t,e,n)}function pht(){pht=E,zEt(),Cne=rce,Dne=xce,vne=Sse,xne=Mse,kne=Ise,wne=Tse,_ne=Dse,Sne=Jse,Ewt(),mne=ene,yne=nne,Mne=cne,One=hne,Lne=lne,Ine=une,Tne=rne,Ene=one,Ane=sne,Nne=fne,Pne=gne,bne=tne}function bht(t,e){var n,i,r,a,o;if(t.e<=e||function(t,e,n){var i;return(i=rkt(t,e,!1)).b<=e&&i.a<=n}(t,t.g,e))return t.g;for(a=t.r,i=t.g,o=t.r,r=(a-i)/2+i;i+11&&(t.e.b+=t.a)):(t.e.a+=n.a,t.e.b=i.Math.max(t.e.b,n.b),t.d.c.length>1&&(t.e.a+=t.a))}function kht(t){var e,n,i,r;switch(e=(r=t.i).b,i=r.j,n=r.g,r.a.g){case 0:n.a=(t.g.b.o.a-i.a)/2;break;case 1:n.a=e.d.n.a+e.d.a.a;break;case 2:n.a=e.d.n.a+e.d.a.a-i.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function _ht(t,e,n,i,r){if(ii&&(t.a=i),t.br&&(t.b=r),t}function Tht(t){if(rO(t,143))return function(t){var e,n,i,r,a;return a=$lt(t),null!=t.a&&LF(a,"category",t.a),!G_(new Zd(t.d))&&(I0(a,"knownOptions",i=new Td),e=new qm(i),UX(new Zd(t.d),e)),!G_(t.g)&&(I0(a,"supportedFeatures",r=new Td),n=new Hm(r),UX(t.g,n)),a}(KR(t,143));if(rO(t,233))return function(t){var e,n,i;return i=$lt(t),!G_(t.c)&&(I0(i,"knownLayouters",n=new Td),e=new Um(n),UX(t.c,e)),i}(KR(t,233));if(rO(t,23))return function(t){var e,n,i;return i=$lt(t),null!=t.e&&LF(i,C$t,t.e),!!t.k&&LF(i,"type",uD(t.k)),!G_(t.j)&&(n=new Td,I0(i,s$t,n),e=new Gm(n),UX(t.j,e)),i}(KR(t,23));throw Ay(new Tx(y$t+Tut(new Dx(t7(rk(nHt,1),pSt,1,5,[t])))))}function Eht(t,e,n,i){var r,a;if(e.k==(Vut(),eXt))for(a=new Dj(lN(Det(e).a.Kc(),new u));Rgt(a);)if((r=KR(bQ(a),18)).c.i.k==eXt&&t.c.a[r.c.i.c.p]==i&&t.c.a[e.c.p]==n)return!0;return!1}function Sht(t,e,n,i){var r;this.b=i,this.e=t==(u4(),A8t),r=e[n],this.d=u$(jpe,[RSt,IMt],[183,28],16,[r.length,r.length],2),this.a=u$($pe,[RSt,$Ct],[53,28],15,[r.length,r.length],2),this.c=new hlt(e,n)}function Cht(t){var e,n,i;for(t.k=new kY((MTt(),t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue])).length,t.j.c.length),i=new pg(t.j);i.a=n)return Bht(t,e,i.p),!0;return!1}function Iht(t,e,n,i){var r,a,o,s,c,l;for(o=n.length,a=0,r=-1,l=r0((IY(e,t.length+1),t.substr(e)),(WB(),YUt)),s=0;sa&&wz(l,r0(n[s],YUt))&&(r=s,a=c);return r>=0&&(i[0]=e+a),r}function Oht(t){var e;return 64&t.Db?eht(t):(e=new pN(CFt),!t.a||tL(tL((e.a+=' "',e),t.a),'"'),tL(l_(tL(l_(tL(l_(tL(l_((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Nht(t,e,n){var i,r,a,o,s;for(s=Jbt(t.e.Dh(),e),r=KR(t.g,124),i=0,o=0;o0&&Fht(t,a,n));e.p=0}function $ht(t){var e;this.c=new jT,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,t.i?this.j=t.i:this.j=new UB(e=KR(t_(toe),9),KR(jP(e,e.length),9),0),this.g=t.f}function jht(t,e,n){var i,r,a;if(!(n<=e+2))for(r=(n-e)/2|0,i=0;i=0?t.ki(r):edt(t,i)}else vtt(t,n,i)}function Uht(t){var e,n;if(n=null,e=!1,rO(t,211)&&(e=!0,n=KR(t,211).a),e||rO(t,263)&&(e=!0,n=""+KR(t,263).a),e||rO(t,493)&&(e=!0,n=""+KR(t,493).a),!e)throw Ay(new kx(p$t));return n}function Ght(t,e,n){var i,r,a,o,s,c;for(c=Jbt(t.e.Dh(),e),i=0,s=t.i,r=KR(t.g,124),o=0;o=t.d.b.c.length&&((e=new $q(t.d)).p=i.p-1,SO(t.d.b,e),(n=new $q(t.d)).p=i.p,SO(t.d.b,n)),nY(i,KR(c$(t.d.b,i.p),30))}function eft(t,e,n){var i,r,a;if(!t.b[e.g]){for(t.b[e.g]=!0,!(i=n)&&(i=new aZ),RF(i.b,e),a=t.a[e.g].Kc();a.Ob();)(r=KR(a.Pb(),65)).b!=e&&eft(t,r.b,i),r.c!=e&&eft(t,r.c,i),RF(i.a,r);return i}return null}function nft(t,e){var n;return 0!=t.c.length&&(n=Unt((LY(0,t.c.length),KR(t.c[0],18)).c.i),XK(),n==(wat(),e7t)||n==t7t||nQ(iU(new k$(null,new OY(t,16)),new Fa),new Ab(e)))}function ift(t,e){if(rO(e,207))return function(t,e){return S4(bq(t.g),e)}(t,KR(e,27));if(rO(e,193))return function(t,e){return S4(bq(t.j),e)}(t,KR(e,123));if(rO(e,452))return function(t,e){return S4(bq(t.d),e)}(t,KR(e,166));throw Ay(new Tx(y$t+Tut(new Dx(t7(rk(nHt,1),pSt,1,5,[e])))))}function rft(t,e,n){var i,r;if(this.f=t,DQ(n,r=(i=KR(Oq(t.b,e),260))?i.a:0),n>=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++0;)o0(this);this.b=e,this.a=null}function aft(t,e){var n,i;e.a?function(t,e){var n;if(!Mz(t.b,e.b))throw Ay(new Ex("Invalid hitboxes for scanline constraint calculation."));(U6(e.b,KR(function(t,e){return t.a.Yc(e)}(t.b,e.b),60))||U6(e.b,KR(function(t,e){return t.a.Xc(e)}(t.b,e.b),60)))&&(zT(),String.fromCharCode(10)),t.a[e.b.f]=KR(XT(t.b,e.b),60),(n=KR(WT(t.b,e.b),60))&&(t.a[n.f]=e.b)}(t,e):((n=KR(XT(t.b,e.b),60))&&n==t.a[e.b.f]&&n.a&&n.a!=e.b.a&&n.c.Fc(e.b),(i=KR(WT(t.b,e.b),60))&&t.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),kO(t.b,e.b))}function oft(t,e){var n,i;if(n=KR(zH(t.b,e),127),KR(KR(IQ(t.r,e),21),87).dc())return n.n.b=0,void(n.n.c=0);n.n.b=t.C.b,n.n.c=t.C.c,t.A.Hc((ait(),Fue))&&Fyt(t,e),i=function(t,e){var n,i,r;for(r=0,i=KR(KR(IQ(t.r,e),21),87).Kc();i.Ob();)r+=(n=KR(i.Pb(),117)).d.b+n.b.Mf().a+n.d.c,i.Ob()&&(r+=t.w);return r}(t,e),eyt(t,e)==(Drt(),jle)&&(i+=2*t.w),n.a.a=i}function sft(t,e){var n,i;if(n=KR(zH(t.b,e),127),KR(KR(IQ(t.r,e),21),87).dc())return n.n.d=0,void(n.n.a=0);n.n.d=t.C.d,n.n.a=t.C.a,t.A.Hc((ait(),Fue))&&$yt(t,e),i=function(t,e){var n,i,r;for(r=0,i=KR(KR(IQ(t.r,e),21),87).Kc();i.Ob();)r+=(n=KR(i.Pb(),117)).d.d+n.b.Mf().b+n.d.a,i.Ob()&&(r+=t.w);return r}(t,e),eyt(t,e)==(Drt(),jle)&&(i+=2*t.w),n.a.b=i}function cft(t,e){var n,i,r,a;for(a=new yy,i=new pg(e);i.ai&&(IY(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return i>0||en.a&&(i.Hc((Yct(),Poe))?r=(e.a-n.a)/2:i.Hc(Roe)&&(r=e.a-n.a)),e.b>n.b&&(i.Hc((Yct(),$oe))?a=(e.b-n.b)/2:i.Hc(Foe)&&(a=e.b-n.b)),sut(t,r,a)}function Aft(t,e,n,i,r,a,o,s,c,l,u,h,f){rO(t.Cb,90)&&jft(aQ(KR(t.Cb,90)),4),B3(t,n),t.f=o,Jtt(t,s),eet(t,c),Ztt(t,l),tet(t,u),Ctt(t,h),_et(t,f),Ttt(t,!0),j2(t,r),t.Zk(a),g9(t,e),null!=i&&(t.i=null,s3(t,i))}function Mft(t,e,n){if(t<0)return Uyt(gSt,t7(rk(nHt,1),pSt,1,5,[n,ttt(t)]));if(e<0)throw Ay(new Tx(bSt+e));return Uyt("%s (%s) must not be greater than size (%s)",t7(rk(nHt,1),pSt,1,5,[n,ttt(t),ttt(e)]))}function Lft(t,e,n,i,r,a){var o,s,c;if(i-n<7)!function(t,e,n,i){var r,a,o;for(r=e+1;re&&i.Ne(t[a-1],t[a])>0;--a)o=t[a],Dq(t,a,t[a-1]),Dq(t,a-1,o)}(e,n,i,a);else if(Lft(e,t,s=n+r,c=s+((o=i+r)-s>>1),-r,a),Lft(e,t,c,o,-r,a),a.Ne(t[c-1],t[c])<=0)for(;n=i||e=0?t.bi(a,n):Zpt(t,r,n)}else Wet(t,i,r,n)}function Oft(t){var e,n;if(t.f){for(;t.n>0;){if(rO(n=(e=KR(t.k.Xb(t.n-1),76)).Lk(),102)&&KR(n,19).Bb&FFt&&(!t.e||n.pk()!=jhe||0!=n.Lj())&&null!=e.md())return!0;--t.n}return!1}return t.n>0}function Nft(t){var e,n,i,r;if(n=KR(t,54)._h())try{if(i=null,(e=Cpt(($E(),Qfe),cvt(function(t){return null==t.e?t:(!t.c&&(t.c=new Tyt(0!=(256&t.f),t.i,t.a,t.d,0!=(16&t.f),t.j,t.g,null)),t.c)}(n))))&&(r=e.ai())&&(i=r.Fl(function(t){return yH(t),t}(n.e))),i&&i!=t)return Nft(i)}catch(t){if(!rO(t=j6(t),63))throw Ay(t)}return t}function Dft(t,e,n){var i,r;n.Ug("Remove overlaps",1),n.dh(e,nBt),i=KR(spt(e,(XD(),Nee)),27),t.f=i,t.a=Sat(KR(spt(e,(pht(),Nne)),300)),jd(t,(yH(r=qD(spt(e,(zEt(),xce)))),r)),nTt(t,e,Dmt(i),n),n.dh(e,rBt)}function Pft(t){if(!t)return Xv(),PHt;var e=t.valueOf?t.valueOf():t;if(e!==t){var n=BHt[typeof e];return n?n(e):k9(typeof e)}return t instanceof Array||t instanceof i.Array?new vd(t):new _d(t)}function Bft(t,e,n){var r,a,o;switch(o=t.o,(a=(r=KR(zH(t.p,n),252)).i).b=mdt(r),a.a=bdt(r),a.b=i.Math.max(a.b,o.a),a.b>o.a&&!e&&(a.b=o.a),a.c=-(a.b-o.a)/2,n.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}oxt(r),hxt(r)}function Rft(t,e,n){var r,a,o;switch(o=t.o,(a=(r=KR(zH(t.p,n),252)).i).b=mdt(r),a.a=bdt(r),a.a=i.Math.max(a.a,o.b),a.a>o.b&&!e&&(a.a=o.b),a.d=-(a.a-o.b)/2,n.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}oxt(r),hxt(r)}function Fft(t,e){var n,i,r,a;if(Ymt(),e.b<2)return!1;for(i=n=KR(gW(a=Mrt(e,0)),8);a.b!=a.d.c;){if(r=KR(gW(a),8),!S5(t,i)||!S5(t,r))return!1;i=r}return!(!S5(t,i)||!S5(t,n))}function $ft(t,e){var n,i,r,a,o;return n=K2(o=t,"x"),function(t,e){D2(t,null==e||zB((yH(e),e))||isNaN((yH(e),e))?0:(yH(e),e))}(new Mm(e).a,n),i=K2(o,"y"),function(t,e){P2(t,null==e||zB((yH(e),e))||isNaN((yH(e),e))?0:(yH(e),e))}(new Lm(e).a,i),r=K2(o,e$t),function(t,e){N2(t,null==e||zB((yH(e),e))||isNaN((yH(e),e))?0:(yH(e),e))}(new Im(e).a,r),a=K2(o,t$t),function(t,e){O2(t,null==e||zB((yH(e),e))||isNaN((yH(e),e))?0:(yH(e),e))}(new Om(e).a,a),a}function jft(t,e){Pyt(t,e),1&t.b&&(t.a.a=null),2&t.b&&(t.a.f=null),4&t.b&&(t.a.g=null,t.a.i=null),16&t.b&&(t.a.d=null,t.a.e=null),8&t.b&&(t.a.b=null),32&t.b&&(t.a.j=null,t.a.c=null)}function zft(t){var e,n,i,r,a;if(null==t)return wSt;for(a=new y6(dSt,"[","]"),i=0,r=(n=t).length;i(LY(a+1,e.c.length),KR(e.c[a+1],17)).a-i&&++s,SO(r,(LY(a+s,e.c.length),KR(e.c[a+s],17))),o+=(LY(a+s,e.c.length),KR(e.c[a+s],17)).a-i,++n;n=0?t.Lh(n,!0,!0):jdt(t,r,!0),160),KR(i,220).Zl(e)}function ndt(t){var e,n;return t>-0x800000000000&&t<0x800000000000?0==t?0:((e=t<0)&&(t=-t),n=oK(i.Math.floor(i.Math.log(t)/.6931471805599453)),(!e||t!=i.Math.pow(2,n))&&++n,n):O6(h6(t))}function idt(t,e,n){n.Ug("Eades radial",1),n.dh(e,rBt),t.d=KR(spt(e,(XD(),Nee)),27),t.c=gx(qD(spt(e,(pht(),Ane)))),t.e=Sat(KR(spt(e,Nne),300)),t.a=function(t){switch(t.g){case 0:return new Is;case 1:return new Os;default:throw Ay(new Tx(uBt+(null!=t.f?t.f:""+t.g)))}}(KR(spt(e,Pne),434)),t.b=function(t){switch(t.g){case 1:return new Es;case 2:return new Ss;case 3:return new Ts;case 0:return null;default:throw Ay(new Tx(uBt+(null!=t.f?t.f:""+t.g)))}}(KR(spt(e,Tne),354)),function(t){var e,n,i,r,a;if(i=0,r=ILt,t.b)for(e=0;e<360;e++)n=.017453292519943295*e,qwt(t,t.d,0,0,eBt,n),(a=t.b.Dg(t.d))=(a=o.gc()))o.$b();else for(r=o.Kc(),i=0;i0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}else o=ok(s5(rU(nU(Lz(t.a),new _t),new Tt)));return o>0?o+t.n.d+t.n.a:0}function mdt(t){var e,n,i,r,a,o;if(o=0,0==t.b)o=ok(s5(rU(nU(Lz(t.a),new xt),new kt)));else{for(e=0,r=0,a=(i=Wat(t,!0)).length;r0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}return o>0?o+t.n.b+t.n.c:0}function ydt(t){var e,n;if(2!=t.c.length)throw Ay(new Ex("Order only allowed for two paths."));LY(0,t.c.length),e=KR(t.c[0],18),LY(1,t.c.length),n=KR(t.c[1],18),e.d.i!=n.c.i&&(t.c.length=0,Dy(t.c,n),Dy(t.c,e))}function wdt(t,e,n){var i;for(sI(n,e.g,e.f),cI(n,e.i,e.j),i=0;i<(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i;i++)wdt(t,KR(l2((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a),i),27),KR(l2((!n.a&&(n.a=new ez(Zhe,n,10,11)),n.a),i),27))}function vdt(t){var e,n;return(n=new Vx).a+="e_",null!=(e=function(t){return 0!=t.b.c.length&&KR(c$(t.b,0),72).a?KR(c$(t.b,0),72).a:lU(t)}(t))&&(n.a+=""+e),t.c&&t.d&&(tL((n.a+=" ",n),Qot(t.c)),tL(JM((n.a+="[",n),t.c.i),"]"),tL((n.a+=qIt,n),Qot(t.d)),tL(JM((n.a+="[",n),t.d.i),"]")),n.a}function xdt(t){switch(t.g){case 0:return new yf;case 1:return new wf;case 2:return new bf;case 3:return new pf;default:throw Ay(new Tx("No implementation is available for the layout phase "+(null!=t.f?t.f:""+t.g)))}}function kdt(t,e,n,r,a){var o;switch(o=0,a.g){case 1:o=i.Math.max(0,e.b+t.b-(n.b+r));break;case 3:o=i.Math.max(0,-t.b-r);break;case 2:o=i.Math.max(0,-t.a-r);break;case 4:o=i.Math.max(0,e.a+t.a-(n.a+r))}return o}function _dt(t){var e,n;switch(t.b){case-1:return!0;case 0:return(n=t.t)>1||-1==n||(e=qst(t))&&(UE(),e.lk()==Xjt)?(t.b=-1,!0):(t.b=1,!1);default:return!1}}function Tdt(t,e){var n,i,r,a;if(AEt(t),0!=t.c||123!=t.a)throw Ay(new Nx(XEt((LI(),tjt))));if(a=112==e,i=t.d,(n=QN(t.i,125,i))<0)throw Ay(new Nx(XEt((LI(),ejt))));return r=$G(t.i,i,n),t.d=n+1,lJ(r,a,512==(512&t.e))}function Edt(t){var e,n,i,r,a,o,s;if((i=t.a.c.length)>0)for(o=t.c.d,r=EO(oB(new IA((s=t.d.d).a,s.b),o),1/(i+1)),a=new IA(o.a,o.b),n=new pg(t.a);n.a=0&&i=0?t.Lh(n,!0,!0):jdt(t,r,!0),160),KR(i,220).Wl(e);throw Ay(new Tx(OFt+e.xe()+PFt))}function Mdt(t,e){var n,i,r;if(r=0,(i=e[0])>=t.length)return-1;for(IY(i,t.length),n=t.charCodeAt(i);n>=48&&n<=57&&(r=10*r+(n-48),!(++i>=t.length));)IY(i,t.length),n=t.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function Ldt(t,e,n){var i,r,a,o;a=t.c,o=t.d,r=(Y7(t7(rk(doe,1),RSt,8,0,[a.i.n,a.n,a.a])).b+Y7(t7(rk(doe,1),RSt,8,0,[o.i.n,o.n,o.a])).b)/2,i=a.j==(MTt(),sue)?new IA(e+a.i.c.c.a+n,r):new IA(e-n,r),JN(t.a,0,i)}function Idt(t){var e,n,i;for(e=null,n=vz(a4(t7(rk(oHt,1),pSt,20,0,[(!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),(!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c)])));Rgt(n);)if(i=Blt(KR(bQ(n),84)),e){if(e!=i)return!1}else e=i;return!0}function Odt(t,e,n){var i;if(++t.j,e>=t.i)throw Ay(new vx(D$t+e+P$t+t.i));if(n>=t.i)throw Ay(new vx(B$t+n+P$t+t.i));return i=t.g[n],e!=n&&(e>16)>>16&16),n+=e=(t>>=e)-256>>16&8,n+=e=(t<<=e)-gAt>>16&4,(n+=e=(t<<=e)-FSt>>16&2)+2-(e=(i=(t<<=e)>>14)&~(i>>1)))}function Pdt(t){var e,n,i,r;for(JU(),KYt=new yy,GYt=new my,UYt=new yy,!t.a&&(t.a=new ez(Zhe,t,10,11)),function(t){var e,n,i,r,a,o,s,c,l,h;for(e=new my,o=new zO(t);o.e!=o.i.gc();){for(a=KR(Frt(o),27),n=new hw,LH(GYt,a,n),h=new ae,i=KR(bX(new k$(null,new oq(new Dj(lN(Kpt(a).a.Kc(),new u)))),K$(h,bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)])))),85),l4(n,KR(i.xc((FN(),!0)),16),new oe),r=KR(bX(nU(KR(i.xc(!1),15).Lc(),new se),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),15).Kc();r.Ob();)(l=wut(KR(r.Pb(),74)))&&((s=KR(FM(U$(e.f,l)),21))||(s=vmt(l),_ft(e.f,l,s)),z3(n,s));for(i=KR(bX(new k$(null,new oq(new Dj(lN(Ypt(a).a.Kc(),new u)))),K$(h,bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt])))),85),l4(n,KR(i.xc(!0),16),new ce),c=KR(bX(nU(KR(i.xc(!1),15).Lc(),new le),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),15).Kc();c.Ob();)(l=vut(KR(c.Pb(),74)))&&((s=KR(FM(U$(e.f,l)),21))||(s=vmt(l),_ft(e.f,l,s)),z3(n,s))}}(e=t.a),r=new zO(e);r.e!=r.i.gc();)i=KR(Frt(r),27),-1==g1(KYt,i,0)&&(n=new yy,SO(UYt,n),ort(i,n));return UYt}function Bdt(t,e){var n,i,r;for(r=new yy,i=Mrt(e.a,0);i.b!=i.d.c;)(n=KR(gW(i),65)).c.g==t.g&&$M(fut(n.b,(axt(),mee)))!==$M(fut(n.c,mee))&&!nQ(new k$(null,new OY(r,16)),new jb(n))&&Dy(r.c,n);return PI(r,new Eo),r}function Rdt(t,e,n){var i,r,a,o;return rO(e,153)&&rO(n,153)?(a=KR(e,153),o=KR(n,153),t.a[a.a][o.a]+t.a[o.a][a.a]):rO(e,250)&&rO(n,250)&&(i=KR(e,250),r=KR(n,250),i.a==r.a)?KR(fut(r.a,(Evt(),vVt)),17).a:0}function Fdt(t,e){var n,r,a,o,s,c,l,u;for(u=gx(qD(fut(e,(CEt(),p6t)))),l=t[0].n.a+t[0].o.a+t[0].d.c+u,c=1;c0?1:DL(isNaN(r),isNaN(0)))>=0^(p4(wPt),(i.Math.abs(c)<=wPt||0==c||isNaN(c)&&isNaN(0)?0:c<0?-1:c>0?1:DL(isNaN(c),isNaN(0)))>=0)?i.Math.max(c,r):(p4(wPt),(i.Math.abs(r)<=wPt||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:DL(isNaN(r),isNaN(0)))>0?i.Math.sqrt(c*c+r*r):-i.Math.sqrt(c*c+r*r))}(o=r.b,s=a.b))>=0?n:(c=iH(oB(new IA(s.c+s.b/2,s.d+s.a/2),new IA(o.c+o.b/2,o.d+o.a/2))),-(Svt(o,s)-1)*c)}function jdt(t,e,n){var i,r,a;if(a=s_t((Xht(),age),t.Dh(),e))return UE(),KR(a,69).xk()||(a=KY(T1(age,a))),r=KR((i=t.Ih(a))>=0?t.Lh(i,!0,!0):jdt(t,a,!0),160),KR(r,220).Sl(e,n);throw Ay(new Tx(OFt+e.xe()+PFt))}function zdt(t,e,n,i){var r,a,o,s,c;if(r=t.d[e])if(a=r.g,c=r.i,null!=i){for(s=0;s>5),15,1))[n]=1<1;e>>=1)1&e&&(i=PW(i,n)),n=1==n.d?PW(n,n):new trt(uvt(n.a,n.d,WZ($pe,$Ct,28,n.d<<1,15,1)));return PW(i,n)}(t,e)}function Hdt(t){var e,n,i;for(hE(),this.b=kWt,this.c=(jtt(),jce),this.f=(uE(),mWt),this.a=t,gk(this,new ke),Cbt(this),i=new pg(t.b);i.a=null.Um()?(zpt(t),Ydt(t)):e.Ob()}function Vdt(t){if(this.a=t,t.c.i.k==(Vut(),JWt))this.c=t.c,this.d=KR(fut(t.c.i,(jEt(),E1t)),64);else{if(t.d.i.k!=JWt)throw Ay(new Tx("Edge "+t+" is not an external edge."));this.c=t.d,this.d=KR(fut(t.d.i,(jEt(),E1t)),64)}}function Wdt(t,e){var n,i;i=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,3,i,t.b)),e?e!=t&&(B3(t,e.zb),q2(t,e.d),U4(t,null==(n=e.c??e.zb)||_B(n,e.zb)?null:n)):(B3(t,null),q2(t,0),U4(t,null))}function Xdt(t,e){var n;this.e=(Sq(),kq(t),Sq(),jnt(t)),this.c=(kq(e),jnt(e)),GO(this.e.Rd().dc()==this.c.Rd().dc()),this.d=Fet(this.e),this.b=Fet(this.c),n=u$(nHt,[RSt,pSt],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=n,function(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i0?snt(n):Ytt(snt(n)),nat(e,q5t,r)}function agt(t,e){var n,i,r,a,o;for(o=t.j,e.a!=e.b&&PI(o,new Zr),r=o.c.length/2|0,i=0;i=0;)i=n[a],o.am(i.Lk())&&sJ(r,i);!QTt(t,r)&&ZL(t.e)&&cw(t,e.Jk()?LG(t,6,e,(QU(),NUt),null,-1,!1):LG(t,e.tk()?2:1,e,null,null,-1,!1))}function lgt(t,e){var n,i,r,a,o;return t.a==(zut(),PJt)||(a=e.a.c,n=e.a.c+e.a.b,!(e.j&&(i=e.A,o=i.c.c.a-i.o.a/2,r=a-(i.n.a+i.o.a),r>o)||e.q&&(i=e.C,o=i.c.c.a-i.o.a/2,r=i.n.a-n,r>o)))}function ugt(t){var e,n,i,r,a,o;for(ZK(),n=new fX,i=new pg(t.e.b);i.a1?t.e*=gx(t.a):t.f/=gx(t.a),function(t){var e,n;for(e=t.b.a.a.ec().Kc();e.Ob();)n=new Rpt(KR(e.Pb(),567),t.e,t.f),SO(t.g,n)}(t),Wit(t),function(t){var e,n,r,a,o,s,c,l,u,h;for(n=function(t){var e,n,r,a,o,s,c,l,u,h;for(n=t.o,e=t.p,s=lSt,a=gCt,c=lSt,o=gCt,u=0;u=0?t.Ah(null):t.Ph().Th(t,-1-e,null,null),t.Bh(KR(r,54),n),i&&i.oj(),t.vh()&&t.wh()&&n>-1&&Q5(t,new nz(t,9,n,a,r)),r):a}function Cgt(t,e){var n,i,r,a;for(r=t.b.Ce(e),n=t.a.get(r)??WZ(nHt,pSt,1,0,5,1),a=0;a>5)>=t.d)return t.e<0;if(n=t.a[r],e=1<<(31&e),t.e<0){if(r<(i=x5(t)))return!1;n=i==r?-n:~n}return 0!=(n&e)}function Pgt(t,e){var n,i,r,a,o,s,c;if(a=e.e)for(n=Sgt(a),i=KR(t.g,689),o=0;o>16)),15).dd(a))>e,a=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(o=i?nAt:0,a=n>>e-22,r=t.m>>e-22|n<<44-e):(o=i?nAt:0,a=i?eAt:0,r=n>>e-44),zI(r&eAt,a&eAt,o&nAt)}function Hgt(t){var e,n,r,a,o,s;for(this.c=new yy,this.d=t,r=fAt,a=fAt,e=dAt,n=dAt,s=Mrt(t,0);s.b!=s.d.c;)o=KR(gW(s),8),r=i.Math.min(r,o.a),a=i.Math.min(a,o.b),e=i.Math.max(e,o.a),n=i.Math.max(n,o.b);this.a=new pU(r,a,e-r,n-a)}function Ugt(t,e){var n,i,r,a;for(i=new pg(t.b);i.a0&&rO(e,44)&&(t.a._j(),a=null==(c=(l=KR(e,44)).ld())?0:N3(c),o=_P(t.a,a),n=t.a.d[o]))for(i=KR(n.g,379),u=n.i,s=0;s=2)for(e=qD((n=a.Kc()).Pb());n.Ob();)o=e,e=qD(n.Pb()),r=i.Math.min(r,(yH(e),e-(yH(o),o)));return r}function tpt(t,e){var n,i,r;for(r=new yy,i=Mrt(e.a,0);i.b!=i.d.c;)(n=KR(gW(i),65)).b.g==t.g&&!_B(n.b.c,OPt)&&$M(fut(n.b,(axt(),mee)))!==$M(fut(n.c,mee))&&!nQ(new k$(null,new OY(r,16)),new zb(n))&&Dy(r.c,n);return PI(r,new Mo),r}function ept(t,e){var n,i,r;if($M(e)===$M(kq(t)))return!0;if(!rO(e,15)||(i=KR(e,15),(r=t.gc())!=i.gc()))return!1;if(rO(i,59)){for(n=0;ne.a&&(i.Hc((Yct(),Poe))?t.c.a+=(n.a-e.a)/2:i.Hc(Roe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((Yct(),$oe))?t.c.b+=(n.b-e.b)/2:i.Hc(Foe)&&(t.c.b+=n.b-e.b)),KR(fut(t,(jEt(),A1t)),21).Hc((Hmt(),qJt))&&(n.a>e.a||n.b>e.b))for(s=new pg(t.a);s.a0&&(r=n),o=new pg(t.f.e);o.a0&&a0):a<0&&-a0)}function dpt(t,e,n,i){var r,a,o,s,c,l;for(r=(e-t.d)/t.c.c.length,a=0,t.a+=n,t.d=e,l=new pg(t.c);l.a=0&&_B(t.substr(s,2),"//")?(tJ(s+=2,c=mrt(t,s,$fe,jfe),t.length),i=t.substr(s,c-s),s=c):null!=h&&(s==t.length||(IY(s,t.length),47!=t.charCodeAt(s)))&&(o=!1,-1==(c=hN(t,Wlt(35),s))&&(c=t.length),tJ(s,c,t.length),i=t.substr(s,c-s),s=c);if(!n&&s0&&58==JH(u,u.length-1)&&(r=u,s=c)),s0&&(IY(0,n.length),47!=n.charCodeAt(0))))throw Ay(new Tx("invalid opaquePart: "+n));if(t&&(null==e||!CT(Afe,e.toLowerCase()))&&null!=n&&Jet(n,$fe,jfe))throw Ay(new Tx(Pjt+n));if(t&&null!=e&&CT(Afe,e.toLowerCase())&&!function(t){if(null!=t&&t.length>0&&33==JH(t,t.length-1))try{return null==ppt($G(t,0,t.length-1)).e}catch(t){if(!rO(t=j6(t),33))throw Ay(t)}return!1}(n))throw Ay(new Tx(Pjt+n));if(!function(t){var e;return null==t||(e=t.length)>0&&(IY(e-1,t.length),58==t.charCodeAt(e-1))&&!Jet(t,$fe,jfe)}(i))throw Ay(new Tx("invalid device: "+i));if(!function(t){var e,n;if(null==t)return!1;for(e=0,n=t.length;e=0;e-=2)for(n=0;n<=e;n+=2)(t.b[n]>t.b[n+2]||t.b[n]===t.b[n+2]&&t.b[n+1]>t.b[n+3])&&(i=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=i,i=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=i);t.c=!0}}function kpt(t,e){var n,i,r,a,o,s,c,l,u;for(l=-1,u=0,s=0,c=(o=t).length;s0&&++u;++l}return u}function _pt(t){var e;return(e=new pN(a_(t.Rm))).a+="@",tL(e,(N3(t)>>>0).toString(16)),t.Vh()?(e.a+=" (eProxyURI: ",JM(e,t._h()),t.Kh()&&(e.a+=" eClass: ",JM(e,t.Kh())),e.a+=")"):t.Kh()&&(e.a+=" (eClass: ",JM(e,t.Kh()),e.a+=")"),e.a}function Tpt(t){var e,n,i;if(t.e)throw Ay(new Ex((UD(DGt),lMt+DGt.k+uMt)));for(t.d==(jtt(),jce)&&aTt(t,Fce),n=new pg(t.a.a);n.a=0)return r;for(a=1,o=new pg(e.j);o.a=0)return r;for(a=1,o=new pg(e.j);o.a0&&e.Ne((LY(r-1,t.c.length),KR(t.c[r-1],10)),a)>0;)YX(t,r,(LY(r-1,t.c.length),KR(t.c[r-1],10))),--r;LY(r,t.c.length),t.c[r]=a}n.a=new my,n.b=new my}function Ipt(t,e,n){var i;if(2==(t.c-t.b&t.a.length-1))e==(MTt(),cue)||e==sue?(z0(KR(j7(t),15),(bst(),xle)),z0(KR(j7(t),15),kle)):(z0(KR(j7(t),15),(bst(),kle)),z0(KR(j7(t),15),xle));else for(i=new QH(t);i.a!=i.b;)z0(KR(L9(i),15),n)}function Opt(t,e){var n,i,r,a,o,s;for(o=new CV(i=HR(new Ym(t)),i.c.length),s=new CV(r=HR(new Ym(e)),r.c.length),a=null;o.b>0&&s.b>0&&(KD(o.b>0),n=KR(o.a.Xb(o.c=--o.b),27),KD(s.b>0),n==KR(s.a.Xb(s.c=--s.b),27));)a=n;return a}function Npt(t,e,n){var i,r,a,o;QY(t,e)>QY(t,n)?(i=Met(n,(MTt(),sue)),t.d=i.dc()?0:zF(KR(i.Xb(0),12)),o=Met(e,Cue),t.b=o.dc()?0:zF(KR(o.Xb(0),12))):(r=Met(n,(MTt(),Cue)),t.d=r.dc()?0:zF(KR(r.Xb(0),12)),a=Met(e,sue),t.b=a.dc()?0:zF(KR(a.Xb(0),12)))}function Dpt(t,e){var n,i,r,a;for(n=t.o.a,a=KR(KR(IQ(t.r,e),21),87).Kc();a.Ob();)(r=KR(a.Pb(),117)).e.a=n*gx(qD(r.b.of(JKt))),r.e.b=(i=r.b).pf((zEt(),Vse))?i.ag()==(MTt(),cue)?-i.Mf().b-gx(qD(i.of(Vse))):gx(qD(i.of(Vse))):i.ag()==(MTt(),cue)?-i.Mf().b:0}function Ppt(t){var e,n,i,r,a,o,s,c;e=!0,r=null,a=null;t:for(c=new pg(t.a);c.a>1,t.k=n-1>>1}(this,this.d,this.c),function(t){var e,n,i,r,a,o,s;for(n=wI(t.e),a=EO(vD(tO(yI(t.e)),t.d*t.a,t.c*t.b),-.5),e=n.a-a.a,r=n.b-a.b,s=0;s0&&o_t(this,a)}function Fpt(t,e,n,i,r,a){var o,s,c;if(!r[e.a]){for(r[e.a]=!0,!(o=i)&&(o=new KQ),SO(o.e,e),c=a[e.a].Kc();c.Ob();)(s=KR(c.Pb(),290)).d!=n&&s.c!=n&&(s.c!=e&&Fpt(t,s.c,e,o,r,a),s.d!=e&&Fpt(t,s.d,e,o,r,a),SO(o.c,s),G6(o.d,s.b));return o}return null}function $pt(t){var e,n,i;for(e=0,n=new pg(t.e);n.a=2}function jpt(t,e,n){var i,r,a;for(a=new pg(t.t);a.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&RF(e,i.b));for(r=new pg(t.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&RF(n,i.a))}function zpt(t){var e,n,i;if(null==t.g&&(t.d=t.bj(t.f),sJ(t,t.d),t.c))return t.f;if(i=(e=KR(t.g[t.i-1],51)).Pb(),t.e=e,(n=t.bj(i)).Ob())t.d=n,sJ(t,n);else for(t.d=null;!e.Ob()&&(Dq(t.g,--t.i,null),0!=t.i);)e=KR(t.g[t.i-1],51);return i}function qpt(t,e,n,r){var a,o,s;for(Md(a=new Bat(t),(Vut(),tXt)),E7(a,(jEt(),U1t),e),E7(a,n0t,r),E7(a,(CEt(),R5t),(plt(),Kle)),E7(a,$1t,e.c),E7(a,j1t,e.d),Mmt(e,a),s=i.Math.floor(n/2),o=new pg(a.j);o.a=2147483648&&(r-=4294967296),r)}function Qpt(t,e,n){var i,r,a,o,s,c,l;for(a=new yy,function(t,e,n,i){var r,a,o,s,c,l,u;for(s=-1,u=new pg(t);u.a0&&g.a<=0){c.c.length=0,Dy(c.c,g);break}(d=g.i-g.d)>=s&&(d>s&&(c.c.length=0,s=d),Dy(c.c,g))}0!=c.c.length&&(o=KR(c$(c,Tat(r,c.c.length)),118),w.a.Bc(o),o.g=u++,txt(o,e,n,i),c.c.length=0)}for(b=t.c.length+1,f=new pg(t);f.ai.b.g&&Dy(a.c,i);return a}function Zpt(t,e,n){var i,r,a;if(!(a=s_t((Xht(),age),t.Dh(),e)))throw Ay(new Tx(OFt+e.xe()+NFt));if(UE(),!KR(a,69).xk()&&!(a=KY(T1(age,a))))throw Ay(new Tx(OFt+e.xe()+NFt));r=KR((i=t.Ih(a))>=0?t.Lh(i,!0,!0):jdt(t,a,!0),160),KR(r,220).Xl(e,n)}function Jpt(t,e){var n,i,r,a;if(e){for(a=!(r=rO(t.Cb,90)||rO(t.Cb,102))&&rO(t.Cb,331),n=new zO((!e.a&&(e.a=new B$(e,ede,e)),e.a));n.e!=n.i.gc();)if(i=$vt(KR(Frt(n),89)),r?rO(i,90):a?rO(i,156):i)return i;return r?(KEt(),xde):(KEt(),yde)}return null}function tbt(t,e){var n,r,a;for(e.Ug("Resize child graph to fit parent.",1),r=new pg(t.b);r.ae.a&&(i.Hc((Yct(),Poe))?t.c.a+=(n.a-e.a)/2:i.Hc(Roe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((Yct(),$oe))?t.c.b+=(n.b-e.b)/2:i.Hc(Foe)&&(t.c.b+=n.b-e.b)),KR(fut(t,(jEt(),A1t)),21).Hc((Hmt(),qJt))&&(n.a>e.a||n.b>e.b))for(o=new pg(t.a);o.a0),a.a.Xb(a.c=--a.b),BP(a,r),KD(a.b0);n++);if(n>0&&n0);e++);return e>0&&n>16!=6&&e){if(Bst(t,e))throw Ay(new Tx(qFt+hgt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Ast(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=tat(e,t,6,i)),(i=wP(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,6,e,e))}function cbt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(Bst(t,e))throw Ay(new Tx(qFt+ykt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Fst(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=tat(e,t,12,i)),(i=vP(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,3,e,e))}function lbt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=9&&e){if(Bst(t,e))throw Ay(new Tx(qFt+twt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Lst(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=tat(e,t,9,i)),(i=xP(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,9,e,e))}function ubt(t){var e,n,i,r,a;if(i=qst(t),null==(a=t.j)&&i)return t.Jk()?null:i.ik();if(rO(i,156)){if((n=i.jk())&&(r=n.wi())!=t.i){if((e=KR(i,156)).nk())try{t.g=r.ti(e,a)}catch(e){if(!rO(e=j6(e),82))throw Ay(e);t.g=null}t.i=r}return t.g}return null}function hbt(t){var e;return SO(e=new yy,new pS(new IA(t.c,t.d),new IA(t.c+t.b,t.d))),SO(e,new pS(new IA(t.c,t.d),new IA(t.c,t.d+t.a))),SO(e,new pS(new IA(t.c+t.b,t.d+t.a),new IA(t.c+t.b,t.d))),SO(e,new pS(new IA(t.c+t.b,t.d+t.a),new IA(t.c,t.d+t.a))),e}function fbt(t){var e,n;if(null==t)return wSt;try{return Get(t)}catch(i){if(rO(i=j6(i),103))return e=i,n=a_(i9(t))+"@"+(zT(),(Rit(t)>>>0).toString(16)),crt(N6(),(GT(),"Exception during lenientFormat for "+n),e),"<"+n+" threw "+a_(e.Rm)+">";throw Ay(i)}}function dbt(t,e,n){var i,r;for(r=e.a.ec().Kc();r.Ob();)i=KR(r.Pb(),74),!KR(Oq(t.b,i),272)&&(DK(yut(i))==DK(xut(i))?tmt(t,i,n):yut(i)==DK(xut(i))?null==Oq(t.c,i)&&null!=Oq(t.b,xut(i))&&H_t(t,i,n,!1):null==Oq(t.d,i)&&null!=Oq(t.b,yut(i))&&H_t(t,i,n,!0))}function gbt(t,e){var n,i,r,a,o,s,c;for(r=t.Kc();r.Ob();)for(i=KR(r.Pb(),10),iY(s=new sht,i),Vft(s,(MTt(),sue)),E7(s,(jEt(),Q1t),(FN(),!0)),o=e.Kc();o.Ob();)a=KR(o.Pb(),10),iY(c=new sht,a),Vft(c,Cue),E7(c,Q1t,!0),E7(n=new EG,Q1t,!0),eY(n,s),rY(n,c)}function pbt(t,e,n,i){var r,a,o,s;r=hit(t,e,n),a=hit(t,n,e),o=KR(Oq(t.c,e),118),s=KR(Oq(t.c,n),118),r>16!=11&&e){if(Bst(t,e))throw Ay(new Tx(qFt+Jyt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?$st(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=tat(e,t,10,i)),(i=sB(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,11,e,e))}function wbt(t,e,n){return Ymt(),(!S5(t,e)||!S5(t,n))&&(iTt(new IA(t.c,t.d),new IA(t.c+t.b,t.d),e,n)||iTt(new IA(t.c+t.b,t.d),new IA(t.c+t.b,t.d+t.a),e,n)||iTt(new IA(t.c+t.b,t.d+t.a),new IA(t.c,t.d+t.a),e,n)||iTt(new IA(t.c,t.d+t.a),new IA(t.c,t.d),e,n))}function vbt(t,e){var n,i,r,a;if(!t.dc())for(n=0,i=t.gc();n>16!=7&&e){if(Bst(t,e))throw Ay(new Tx(qFt+Oht(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Mst(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=KR(e,54).Rh(t,1,qhe,i)),(i=gj(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,7,e,e))}function Obt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(Bst(t,e))throw Ay(new Tx(qFt+ktt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Nst(t,i):t.Cb.Th(t,-1-n,null,i)),e&&(i=KR(e,54).Rh(t,0,Yhe,i)),(i=pj(t,e,i))&&i.oj()}else 4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,3,e,e))}function Nbt(t,e){var n,i,r,a,o,s,c,l,u;return Vmt(),e.d>t.d&&(s=t,t=e,e=s),e.d<63?function(t,e){var n,i,r,a,o,s,c,l,u;return a=(n=t.d)+(i=e.d),o=t.e!=e.e?-1:1,2==a?(u=bj(c=Cet(BY(t.a[0],kAt),BY(e.a[0],kAt))),0==(l=bj(Lj(c,32)))?new iX(o,u):new Pz(o,2,t7(rk($pe,1),$Ct,28,15,[u,l]))):(G9(t.a,n,e.a,i,r=WZ($pe,$Ct,28,a,15,1)),OV(s=new Pz(o,a,r)),s)}(t,e):(l=mQ(t,o=(-2&t.d)<<4),u=mQ(e,o),i=fkt(t,yQ(l,o)),r=fkt(e,yQ(u,o)),c=Nbt(l,u),n=Nbt(i,r),a=yQ(a=r_t(r_t(a=Nbt(fkt(l,i),fkt(r,u)),c),n),o),r_t(r_t(c=yQ(c,o<<1),a),n))}function Dbt(){Dbt=E,G6t=new xC(lPt,0),q6t=new xC("LONGEST_PATH",1),H6t=new xC("LONGEST_PATH_SOURCE",2),$6t=new xC("COFFMAN_GRAHAM",3),z6t=new xC(EOt,4),K6t=new xC("STRETCH_WIDTH",5),U6t=new xC("MIN_WIDTH",6),F6t=new xC("BF_MODEL_ORDER",7),j6t=new xC("DF_MODEL_ORDER",8)}function Pbt(t,e,n){var i,r,a,o,s;for(o=ltt(t,n),s=WZ(QWt,KIt,10,e.length,0,1),i=0,a=o.Kc();a.Ob();)dx(zD(fut(r=KR(a.Pb(),12),(jEt(),I1t))))&&(s[i++]=KR(fut(r,Z1t),10));if(i=0;r+=n?1:-1)a|=e.c.lg(s,r,n,i&&!dx(zD(fut(e.j,(jEt(),C1t))))&&!dx(zD(fut(e.j,(jEt(),r0t))))),a|=e.q.ug(s,r,n),a|=Byt(t,s[r],n,i);return Az(t.c,e),a}function $bt(t,e,n){var i,r,a,o,s,c,l,u;for(l=0,u=(c=ZV(t.j)).length;l1&&(t.a=!0),ej(KR(n.b,68),aB(tO(KR(e.b,68).c),EO(oB(tO(KR(n.b,68).a),KR(e.b,68).a),r))),sY(t,e),qbt(t,n)}function Hbt(t){var e,n,i,r,a,o;for(r=new pg(t.a.a);r.a0&&a>0?e++:i>0?n++:a>0?r++:n++}QU(),PI(t.j,new di)}function Gbt(t,e){var n,i,r,a,o,s,c,l,u;for(s=e.j,o=e.g,c=KR(c$(s,s.c.length-1),113),LY(0,s.c.length),l=$ot(t,o,c,u=KR(s.c[0],113)),a=1;al&&(c=n,u=r,l=i);e.a=u,e.c=c}function Kbt(t){if(!t.a.d||!t.a.e)throw Ay(new Ex((UD(cKt),cKt.k+" must have a source and target "+(UD(lKt),lKt.k+" specified."))));if(t.a.d==t.a.e)throw Ay(new Ex("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return MN(t.a.d.g,t.a),MN(t.a.e.b,t.a),t.a}function Ybt(t,e,n){var i,r,a,o,s,c;if(i=0,0!=e.b&&0!=n.b){a=Mrt(e,0),o=Mrt(n,0),s=gx(qD(gW(a))),c=gx(qD(gW(o))),r=!0;do{if(s>c-t.b&&sc-t.a&&s0&&(a+=(o=KR(c$(this.b,0),176)).o,r+=o.p),a*=2,r*=2,e>1?a=oK(i.Math.ceil(a*e)):r=oK(i.Math.ceil(r/e)),this.a=new Cnt(a,r)}function dmt(t,e,n,r,a,o){var s,c,l,u,h,f,d,g,p,b;for(u=r,e.j&&e.o?(p=(d=KR(Oq(t.f,e.A),60)).d.c+d.d.b,--u):p=e.a.c+e.a.b,h=a,n.q&&n.o?(l=(d=KR(Oq(t.f,n.C),60)).d.c,++h):l=n.a.c,g=p+(c=(l-p)/i.Math.max(2,h-u)),f=u;f=0;o+=r?1:-1){for(s=e[o],c=i==(MTt(),sue)?r?Met(s,i):ant(Met(s,i)):r?ant(Met(s,i)):Met(s,i),a&&(t.c[s.p]=c.gc()),h=c.Kc();h.Ob();)u=KR(h.Pb(),12),t.d[u.p]=l++;G6(n,c)}}function bmt(t,e,n){var i,r,a,o,s,c,l,u;for(a=gx(qD(t.b.Kc().Pb())),l=gx(qD(function(t){var e;if(t){if((e=t).dc())throw Ay(new ew);return e.Xb(e.gc()-1)}return fY(t.Kc())}(e.b))),i=EO(tO(t.a),l-n),r=EO(tO(e.a),n-a),EO(u=aB(i,r),1/(l-a)),this.a=u,this.b=new yy,s=!0,(o=t.b.Kc()).Pb();o.Ob();)c=gx(qD(o.Pb())),s&&c-n>TPt&&(this.b.Fc(n),s=!1),this.b.Fc(c);s&&this.b.Fc(n)}function mmt(t){var e,n,r,a;if(function(t,e){var n,r,a,o,s,c,l;for(a=WZ($pe,$Ct,28,t.e.a.c.length,15,1),s=new pg(t.e.a);s.a0){for(Bx(t.c);Fgt(t,KR(jY(new pg(t.e.a)),125))>5,e&=31,i>=t.d)return t.e<0?(lwt(),kUt):(lwt(),CUt);if(a=t.d-i,function(t,e,n,i,r){var a,o,s;for(a=!0,o=0;o>>r|n[o+i+1]<>>r,++o}}(r=WZ($pe,$Ct,28,a+1,15,1),a,t.a,i,e),t.e<0){for(n=0;n0&&t.a[n]<<32-e){for(n=0;n=0)&&(!(n=s_t((Xht(),age),r,e))||((i=n.Ik())>1||-1==i)&&3!=vH(T1(age,n))))}function kmt(t,e,n,i){var r,a,o,s,c;return s=Blt(KR(l2((!e.b&&(e.b=new bB(Uhe,e,4,7)),e.b),0),84)),c=Blt(KR(l2((!e.c&&(e.c=new bB(Uhe,e,5,8)),e.c),0),84)),DK(s)==DK(c)||Y0(c,s)?null:(o=fK(e))==n?i:(a=KR(Oq(t.a,o),10))&&(r=a.e)?r:null}function _mt(t,e,n){var i,r,a,o,s;if((a=t[function(t,e){return t?e-1:0}(n,t.length)])[r=bk(n,a.length)].k==(Vut(),JWt))for(s=e.j,i=0;i>24}(t));break;case 2:t.g=f6(function(t){if(2!=t.p)throw Ay(new Xy);return bj(t.f)&ECt}(t));break;case 3:t.g=function(t){if(3!=t.p)throw Ay(new Xy);return t.e}(t);break;case 4:t.g=new ig(function(t){if(4!=t.p)throw Ay(new Xy);return t.e}(t));break;case 6:t.g=Kit(function(t){if(6!=t.p)throw Ay(new Xy);return t.f}(t));break;case 5:t.g=ttt(function(t){if(5!=t.p)throw Ay(new Xy);return bj(t.f)}(t));break;case 7:t.g=ett(function(t){if(7!=t.p)throw Ay(new Xy);return bj(t.f)<<16>>16}(t))}return t.g}function Smt(t){if(null==t.n)switch(t.p){case 0:t.n=function(t){if(0!=t.p)throw Ay(new Xy);return GM(t.k,0)}(t)?(FN(),UHt):(FN(),HHt);break;case 1:t.n=O1(function(t){if(1!=t.p)throw Ay(new Xy);return bj(t.k)<<24>>24}(t));break;case 2:t.n=f6(function(t){if(2!=t.p)throw Ay(new Xy);return bj(t.k)&ECt}(t));break;case 3:t.n=function(t){if(3!=t.p)throw Ay(new Xy);return t.j}(t);break;case 4:t.n=new ig(function(t){if(4!=t.p)throw Ay(new Xy);return t.j}(t));break;case 6:t.n=Kit(function(t){if(6!=t.p)throw Ay(new Xy);return t.k}(t));break;case 5:t.n=ttt(function(t){if(5!=t.p)throw Ay(new Xy);return bj(t.k)}(t));break;case 7:t.n=ett(function(t){if(7!=t.p)throw Ay(new Xy);return bj(t.k)<<16>>16}(t))}return t.n}function Cmt(t,e,n,i){var r,a,o,s,c;if(UE(),s=KR(e,69).xk(),xmt(t.e,e)){if(e.Si()&&fxt(t,e,i,rO(e,102)&&0!=(KR(e,19).Bb&mAt)))throw Ay(new Tx(N$t))}else for(c=Jbt(t.e.Dh(),e),r=KR(t.g,124),o=0;o0&&(n[0]+=t.d,s-=n[0]),n[2]>0&&(n[2]+=t.d,s-=n[2]),o=i.Math.max(0,s),n[1]=i.Math.max(n[1],s),MQ(t,fKt,a.c+r.b+n[0]-(n[1]-s)/2,n),e==fKt&&(t.c.b=o,t.c.c=a.c+r.b+(o-s)/2)}function Omt(){this.c=WZ(Hpe,wAt,28,(MTt(),t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue])).length,15,1),this.b=WZ(Hpe,wAt,28,t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue]).length,15,1),this.a=WZ(Hpe,wAt,28,t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue]).length,15,1),tS(this.c,fAt),tS(this.b,dAt),tS(this.a,dAt)}function Nmt(t,e,n){var i,r,a,o;if(e<=n?(r=e,a=n):(r=n,a=e),i=0,null==t.b)t.b=WZ($pe,$Ct,28,2,15,1),t.b[0]=r,t.b[1]=a,t.c=!0;else{if(i=t.b.length,t.b[i-1]+1==r)return void(t.b[i-1]=a);o=WZ($pe,$Ct,28,i+2,15,1),ext(t.b,0,o,0,i),t.b=o,t.b[i-1]>=r&&(t.c=!1,t.a=!1),t.b[i++]=r,t.b[i]=a,t.c||xpt(t)}}function Dmt(t){var e,n,i,r,a;for(r=new yy,e=new y$((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a)),i=new Dj(lN(Ypt(t).a.Kc(),new u));Rgt(i);)rO(l2((!(n=KR(bQ(i),74)).b&&(n.b=new bB(Uhe,n,4,7)),n.b),0),193)||(a=Blt(KR(l2((!n.c&&(n.c=new bB(Uhe,n,5,8)),n.c),0),84)),e.a._b(a)||Dy(r.c,a));return r}function Pmt(t,e){var n,r,a,o,s,c,l;for(n=dAt,Vut(),c=nXt,a=new pg(e.a);a.a1;)qmt(r,r.i-1);return i}function $mt(t,e){var n,i,r,a,o,s;for(n=new $O,r=new pg(t.b);r.at.d[o.p]&&(n+=KX(t.b,a),bW(t.a,ttt(a)));for(;!Rx(t.a);)t0(t.b,KR(Ez(t.a),17).a)}return n}function zmt(t,e,n){var i,r,a,o;for(a=(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i,r=new zO((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a));r.e!=r.i.gc();)0==(!(i=KR(Frt(r),27)).a&&(i.a=new ez(Zhe,i,10,11)),i.a).i||(a+=zmt(t,i,!1));if(n)for(o=DK(e);o;)a+=(!o.a&&(o.a=new ez(Zhe,o,10,11)),o.a).i,o=DK(o);return a}function qmt(t,e){var n,i,r,a;return t.Pj()?(i=null,r=t.Qj(),t.Tj()&&(i=t.Vj(t.$i(e),null)),n=t.Ij(4,a=sst(t,e),null,e,r),t.Mj()&&null!=a&&(i=t.Oj(a,i)),i?(i.nj(n),i.oj()):t.Jj(n),a):(a=sst(t,e),t.Mj()&&null!=a&&(i=t.Oj(a,null))&&i.oj(),a)}function Hmt(){Hmt=E,jJt=new bC("COMMENTS",0),qJt=new bC("EXTERNAL_PORTS",1),HJt=new bC("HYPEREDGES",2),UJt=new bC("HYPERNODES",3),GJt=new bC("NON_FREE_PORTS",4),KJt=new bC("NORTH_SOUTH_PORTS",5),VJt=new bC(MOt,6),$Jt=new bC("CENTER_LABELS",7),zJt=new bC("END_LABELS",8),YJt=new bC("PARTITIONS",9)}function Umt(t,e){var n,r,a;DK(t)&&(a=KR(fut(e,(CEt(),x5t)),181),$M(spt(t,R5t))===$M((plt(),Xle))&&nat(t,R5t,Wle),BE(),r=gTt(new ix(DK(t)),new qN(DK(t)?new ix(DK(t)):null,t),!1,!0),b3(a,(ait(),Pue)),(n=KR(fut(e,_5t),8)).a=i.Math.max(r.a,n.a),n.b=i.Math.max(r.b,n.b))}function Gmt(){Gmt=E,mZt=new vU(QMt,0,(MTt(),cue),cue),vZt=new vU(JMt,1,Eue,Eue),bZt=new vU(ZMt,2,sue,sue),_Zt=new vU(tLt,3,Cue,Cue),wZt=new vU("NORTH_WEST_CORNER",4,Cue,cue),yZt=new vU("NORTH_EAST_CORNER",5,cue,sue),kZt=new vU("SOUTH_WEST_CORNER",6,Eue,Cue),xZt=new vU("SOUTH_EAST_CORNER",7,sue,Eue)}function Kmt(t){var e,n,i,r,a;for(r=new hw,e=new y$((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a)),i=new Dj(lN(Ypt(t).a.Kc(),new u));Rgt(i);)rO(l2((!(n=KR(bQ(i),74)).b&&(n.b=new bB(Uhe,n,4,7)),n.b),0),193)||(a=Blt(KR(l2((!n.c&&(n.c=new bB(Uhe,n,5,8)),n.c),0),84)),e.a._b(a)||r.a.zc(a,r));return r}function Ymt(){Ymt=E,hoe=t7(rk(zpe,1),pAt,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),i.Math.pow(2,-65)}function Vmt(){var t,e;for(Vmt=E,LUt=WZ(OUt,RSt,92,32,0,1),IUt=WZ(OUt,RSt,92,32,0,1),t=1,e=0;e<=18;e++)LUt[e]=(lwt(),F9(t,0)>=0?Xnt(t):Yz(Xnt(d1(t)))),IUt[e]=UM(Aj(t,e),0)?Xnt(Aj(t,e)):Yz(Xnt(d1(Aj(t,e)))),t=Cet(t,5);for(;e=u&&(l=r);l&&(h=i.Math.max(h,l.a.o.a)),h>d&&(f=u,d=h)}return f}function tyt(t,e,n){var i,r,a,o,s;if(!fW(e)){for((s=n.eh((rO(e,16)?KR(e,16).gc():GW(e.Kc()))/t.a|0)).Ug(FPt,1),o=new Vo,a=null,r=e.Kc();r.Ob();)i=KR(r.Pb(),40),o=a4(t7(rk(oHt,1),pSt,20,0,[o,new qb(i)])),a&&(E7(a,(ETt(),Cte),i),E7(i,mte,a),ZQ(i)==ZQ(a)&&(E7(a,Ate,i),E7(i,yte,a))),a=i;s.Vg(),tyt(t,o,n)}}function eyt(t,e){var n;switch(n=null,e.g){case 1:t.e.pf((zEt(),Use))&&(n=KR(t.e.of(Use),256));break;case 3:t.e.pf((zEt(),Gse))&&(n=KR(t.e.of(Gse),256));break;case 2:t.e.pf((zEt(),Hse))&&(n=KR(t.e.of(Hse),256));break;case 4:t.e.pf((zEt(),Kse))&&(n=KR(t.e.of(Kse),256))}return!n&&(n=KR(t.e.of((zEt(),zse)),256)),n}function nyt(t,e,n){var r,a,o,s,c,l;for(a=n,o=0,c=new pg(e);c.aMBt?PI(l,t.b):r<=MBt&&r>LBt?PI(l,t.d):r<=LBt&&r>IBt?PI(l,t.c):r<=IBt&&PI(l,t.a),o=nyt(t,l,o);return a}function iyt(t,e,n,i){var r,a,o,s,c;for(r=(i.c+i.a)/2,FU(e.j),RF(e.j,r),FU(n.e),RF(n.e,r),c=new Uk,o=new pg(t.f);o.a1&&(i=new IA(r,n.b),RF(e.a,i)),k4(e.a,t7(rk(doe,1),RSt,8,0,[h,u]))}function lyt(t,e,n){var i,r;for(e=48;n--)npe[n]=n-48<<24>>24;for(i=70;i>=65;i--)npe[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)npe[r]=r-97+10<<24>>24;for(a=0;a<10;a++)ipe[a]=48+a&ECt;for(t=10;t<=15;t++)ipe[t]=65+t-10&ECt}function fyt(t){var e,n,i,r,a;if(!t.c){if(a=new yl,null==(e=Nde).a.zc(t,e)){for(i=new zO(JW(t));i.e!=i.i.gc();)rO(r=$vt(n=KR(Frt(i),89)),90)&&nq(a,fyt(KR(r,29))),sJ(a,n);e.a.Bc(t),e.a.gc()}(function(t){var e,n,i,r;for(n=KR(t.g,689),i=t.i-1;i>=0;--i)for(e=n[i],r=0;r>19)return"-"+gyt(x7(t));for(n=t,i="";0!=n.l||0!=n.m||0!=n.h;){if(n=i_t(n,_Q(oAt),!0),e=""+e_(RHt),0!=n.l||0!=n.m||0!=n.h)for(r=9-e.length;r>0;r--)e="0"+e;i=e+i}return i}function pyt(t,e,n,r){var a,o,s,c;if(GW((dR(),new Dj(lN(Net(e).a.Kc(),new u))))>=t.a||!wlt(e,n))return-1;if(fW(KR(r.Kb(e),20)))return 1;for(a=0,s=KR(r.Kb(e),20).Kc();s.Ob();)if(-1==(c=pyt(t,(o=KR(s.Pb(),18)).c.i==e?o.d.i:o.c.i,n,r))||(a=i.Math.max(a,c))>t.c-1)return-1;return a+1}function byt(t,e){var n,i,r,a,o,s;if($M(e)===$M(t))return!0;if(!rO(e,15)||(i=KR(e,15),s=t.gc(),i.gc()!=s))return!1;if(o=i.Kc(),t.Yi()){for(n=0;n0)if(t._j(),null!=e){for(a=0;a0&&(t.a=s+(f-1)*r,e.c.b+=t.a,e.f.b+=t.a),0!=d.a.gc()&&(f=P_t(new sq(1,r),e,d,g,e.f.b+s-e.c.b))>0&&(e.f.b+=s+(f-1)*r)}(t,e,r),function(t){var e,n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T;for(w=new yy,h=new pg(t.b);h.a>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw Ay(new Zx("Invalid hexadecimal"))}}function vyt(){vyt=E,aKt=new vS("SPIRAL",0),tKt=new vS("LINE_BY_LINE",1),eKt=new vS("MANHATTAN",2),JGt=new vS("JITTER",3),iKt=new vS("QUADRANTS_LINE_BY_LINE",4),rKt=new vS("QUADRANTS_MANHATTAN",5),nKt=new vS("QUADRANTS_JITTER",6),ZGt=new vS("COMBINE_LINE_BY_LINE_MANHATTAN",7),QGt=new vS("COMBINE_JITTER_MANHATTAN",8)}function xyt(t,e,n,i){var r,a,o,s,c,l;for(c=vct(t,n),l=vct(e,n),r=!1;c&&l&&(i||Jot(c,l,n));)o=vct(c,n),s=vct(l,n),v1(e),v1(t),a=c.c,h_t(c,!1),h_t(l,!1),n?(yst(e,l.p,a),e.p=l.p,yst(t,c.p+1,a),t.p=c.p):(yst(t,c.p,a),t.p=c.p,yst(e,l.p+1,a),e.p=l.p),nY(c,null),nY(l,null),c=o,l=s,r=!0;return r}function kyt(t){switch(t.g){case 0:return new nf;case 1:return new tf;case 3:return new TE;case 4:return new Sa;case 5:return new XP;case 6:return new ef;case 2:return new Jh;case 7:return new Yh;case 8:return new Wh;default:throw Ay(new Tx("No implementation is available for the layerer "+(null!=t.f?t.f:""+t.g)))}}function _yt(t,e,n,i){var r,a,o,s,c;for(r=!1,a=!1,s=new pg(i.j);s.a=e.length)throw Ay(new vx("Greedy SwitchDecider: Free layer not in graph."));this.c=e[t],this.e=new OB(i),T3(this.e,this.c,(MTt(),Cue)),this.i=new OB(i),T3(this.i,this.c,sue),this.f=new v$(this.c),this.a=!a&&r.i&&!r.s&&this.c[0].k==(Vut(),JWt),this.a&&function(t,e,n){var i,r,a,o,s,c,l;s=(a=t.d.p).e,c=a.r,t.g=new OB(c),i=(o=t.d.o.c.p)>0?s[o-1]:WZ(QWt,KIt,10,0,0,1),r=s[o],l=or.d.d+r.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))),i.b!=i.d.c&&(e=n);h&&(a=KR(Oq(t.f,o.d.i),60),e.ba.d.d+a.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))}for(s=new Dj(lN(Det(d).a.Kc(),new u));Rgt(s);)0!=(o=KR(bQ(s),18)).a.b&&(e=KR(oD(o.a),8),o.d.j==(MTt(),cue)&&((b=new Hxt(e,new IA(e.a,r.d.d),r,o)).f.a=!0,b.a=o.d,Dy(p.c,b)),o.d.j==Eue&&((b=new Hxt(e,new IA(e.a,r.d.d+r.d.a),r,o)).f.d=!0,b.a=o.d,Dy(p.c,b)))}return p}(t);break;case 3:r=new yy,VT(nU(iU(Z1(Z1(new k$(null,new OY(t.d.b,16)),new Lr),new Ir),new Or),new mr),new Jp(r)),n=r;break;default:throw Ay(new Ex("Compaction not supported for "+e+" edges."))}(function(t,e){var n,r,a,o,s,c,l;if(0!=e.c.length){for(QU(),Y$(e.c,e.c.length,null),r=KR(jY(a=new pg(e)),154);a.a0&&e0?a.a?n>(s=a.b.Mf().a)&&(r=(n-s)/2,a.d.b=r,a.d.c=r):a.d.c=t.s+n:Xj(t.u)&&((i=Hlt(a.b)).c<0&&(a.d.b=-i.c),i.c+i.b>a.b.Mf().a&&(a.d.c=i.c+i.b-a.b.Mf().a))}(t,e),a=null,l=null,c){for(l=a=KR((o=s.Kc()).Pb(),117);o.Ob();)l=KR(o.Pb(),117);a.d.b=0,l.d.c=0,h&&!a.a&&(a.d.c=0)}f&&(function(t){var e,n,r,a,o;for(e=0,n=0,o=t.Kc();o.Ob();)r=KR(o.Pb(),117),e=i.Math.max(e,r.d.b),n=i.Math.max(n,r.d.c);for(a=t.Kc();a.Ob();)(r=KR(a.Pb(),117)).d.b=e,r.d.c=n}(s),c&&(a.d.b=0,l.d.c=0))}function $yt(t,e){var n,r,a,o,s,c,l,u,h,f;if(s=KR(KR(IQ(t.r,e),21),87),c=t.u.Hc((cdt(),iue)),n=t.u.Hc(tue),r=t.u.Hc(Jle),l=t.u.Hc(rue),f=t.B.Hc((Vwt(),Wue)),u=!n&&!r&&(l||2==s.gc()),function(t,e){var n,r,a,o,s,c,l;for(c=KR(KR(IQ(t.r,e),21),87).Kc();c.Ob();)(r=(s=KR(c.Pb(),117)).c?DF(s.c):0)>0?s.a?r>(l=s.b.Mf().b)&&(t.v||1==s.c.d.c.length?(o=(r-l)/2,s.d.d=o,s.d.a=o):(n=(KR(c$(s.c.d,0),187).Mf().b-l)/2,s.d.d=i.Math.max(0,n),s.d.a=r-n-l)):s.d.a=t.t+r:Xj(t.u)&&((a=Hlt(s.b)).d<0&&(s.d.d=-a.d),a.d+a.a>s.b.Mf().b&&(s.d.a=a.d+a.a-s.b.Mf().b))}(t,e),h=null,a=null,c){for(a=h=KR((o=s.Kc()).Pb(),117);o.Ob();)a=KR(o.Pb(),117);h.d.d=0,a.d.a=0,u&&!h.a&&(h.d.a=0)}f&&(function(t){var e,n,r,a,o;for(n=0,e=0,o=t.Kc();o.Ob();)r=KR(o.Pb(),117),n=i.Math.max(n,r.d.d),e=i.Math.max(e,r.d.a);for(a=t.Kc();a.Ob();)(r=KR(a.Pb(),117)).d.d=n,r.d.a=e}(s),c&&(h.d.d=0,a.d.a=0))}function jyt(t,e,n){var i,r,a,o,s;if(i=e.k,e.p>=0)return!1;if(e.p=n.b,SO(n.e,e),i==(Vut(),eXt)||i==iXt)for(r=new pg(e.j);r.at.d[s.p]&&(n+=KX(t.b,a),bW(t.a,ttt(a))):++o;for(n+=t.b.d*o;!Rx(t.a);)t0(t.b,KR(Ez(t.a),17).a)}return n}function Kyt(t){var e,n,i,r,a,o;return a=0,(e=qst(t)).kk()&&(a|=4),t.Bb&Qjt&&(a|=2),rO(t,102)?(r=Oat(n=KR(t,19)),n.Bb&FFt&&(a|=32),r&&(Lq(PK(r)),a|=8,((o=r.t)>1||-1==o)&&(a|=16),r.Bb&FFt&&(a|=64)),n.Bb&mAt&&(a|=Zjt),a|=rCt):rO(e,469)?a|=512:(i=e.kk())&&1&i.i&&(a|=256),512&t.Bb&&(a|=128),a}function Yyt(t){var e,n,i,r,a,o,s,c,l,u,h,f;for(h=-1,f=0,l=0,u=(c=t).length;l0&&++f;++h}return f}function Vyt(t){var e,n,i,r,a,o,s;for(s=new my,i=new pg(t.a.b);i.a=t.o)throw Ay(new Fw);o=e>>5,a=Aj(1,bj(Aj(31&e,1))),t.n[n][o]=r?RY(t.n[n][o],a):BY(t.n[n][o],oF(a)),a=Aj(a,1),t.n[n][o]=i?RY(t.n[n][o],a):BY(t.n[n][o],oF(a))}catch(i){throw rO(i=j6(i),333)?Ay(new vx(iLt+t.o+"*"+t.p+rLt+e+dSt+n+aLt)):Ay(i)}}function Zyt(t,e,n,r){var a,o;e&&(a=gx(qD(fut(e,(ETt(),Ete))))+r,o=n+gx(qD(fut(e,wte)))/2,E7(e,Lte,ttt(bj(h6(i.Math.round(a))))),E7(e,Ite,ttt(bj(h6(i.Math.round(o))))),0==e.d.b||Zyt(t,KR(oO(new Hb(Mrt(new qb(e).a.d,0))),40),n+gx(qD(fut(e,wte)))+t.b,r+gx(qD(fut(e,kte)))),null!=fut(e,Ate)&&Zyt(t,KR(fut(e,Ate),40),n,r))}function Jyt(t){var e,n,i;return 64&t.Db?eht(t):(e=new pN(AFt),(n=t.k)?tL(tL((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new ez(Qhe,t,1,7)),KR(l2(t.n,0),135)).a)||tL(tL((e.a+=' "',e),i),'"'))),tL(l_(tL(l_(tL(l_(tL(l_((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function twt(t){var e,n,i;return 64&t.Db?eht(t):(e=new pN(MFt),(n=t.k)?tL(tL((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new ez(Qhe,t,1,7)),KR(l2(t.n,0),135)).a)||tL(tL((e.a+=' "',e),i),'"'))),tL(l_(tL(l_(tL(l_(tL(l_((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function ewt(t,e){var n,i,r,a,o,s;if(null==e||0==e.length)return null;if(!(r=KR(ZG(t.a,e),143))){for(i=new og(new ag(t.b).a.vc().Kc());i.a.Ob();)if(a=KR(i.a.Pb(),44),o=(n=KR(a.md(),143)).c,s=e.length,_B(o.substr(o.length-s,s),e)&&(e.length==o.length||46==JH(o,o.length-e.length-1))){if(r)return null;r=n}r&&tY(t.a,e,r)}return r}function nwt(t){var e,n,i;cD(t,(CEt(),d5t))&&!(i=KR(fut(t,d5t),21)).dc()&&(n=new UB(e=KR(t_(Rle),9),KR(jP(e,e.length),9),0),i.Hc((cpt(),Ile))?b3(n,Ile):b3(n,Ole),i.Hc(Mle)||b3(n,Mle),i.Hc(Ale)?b3(n,Ple):i.Hc(Cle)?b3(n,Dle):i.Hc(Lle)&&b3(n,Nle),i.Hc(Ple)?b3(n,Ale):i.Hc(Dle)?b3(n,Cle):i.Hc(Nle)&&b3(n,Lle),E7(t,d5t,n))}function iwt(t){var e,n,i,r,a,o,s;for(r=KR(fut(t,(jEt(),N1t)),10),LY(0,(i=t.j).c.length),n=KR(i.c[0],12),o=new pg(r.j);o.ar.p?(Vft(a,Eue),a.d&&(s=a.o.b,e=a.a.b,a.a.b=s-e)):a.j==Eue&&r.p>t.p&&(Vft(a,cue),a.d&&(s=a.o.b,e=a.a.b,a.a.b=-(s-e)));break}return r}function rwt(t,e,n,i,r){var a,o,s,c,l,u,h;if(!(rO(e,207)||rO(e,366)||rO(e,193)))throw Ay(new Tx("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return o=t.a/2,c=e.i+i-o,u=e.j+r-o,l=c+e.g+t.a,h=u+e.f+t.a,RF(a=new Zw,new IA(c,u)),RF(a,new IA(c,h)),RF(a,new IA(l,h)),RF(a,new IA(l,u)),p6(s=new Hgt(a),e),n&&LH(t.b,e,s),s}function awt(t,e,n){var i,r,a,o,s,c,l,u;for(a=new IA(e,n),l=new pg(t.a);l.a1)for(s=C+1;sc.b.e.b*(1-b)+c.c.e.b*b));d++);if(x.gc()>0&&(A=0==c.a.b?tO(c.b.e):KR(oD(c.a),8),y=aB(tO(KR(x.Xb(x.gc()-1),40).e),KR(x.Xb(x.gc()-1),40).f),h=aB(tO(KR(x.Xb(0),40).e),KR(x.Xb(0),40).f),d>=x.gc()-1&&A.b>y.b&&c.c.e.b>y.b||d<=0&&A.bc.b.e.a*(1-b)+c.c.e.a*b));d++);if(x.gc()>0&&(A=0==c.a.b?tO(c.b.e):KR(oD(c.a),8),y=aB(tO(KR(x.Xb(x.gc()-1),40).e),KR(x.Xb(x.gc()-1),40).f),h=aB(tO(KR(x.Xb(0),40).e),KR(x.Xb(0),40).f),d>=x.gc()-1&&A.a>y.a&&c.c.e.a>y.a||d<=0&&A.a=gx(qD(fut(t,(ETt(),gte))))&&++E):(f.f&&f.d.e.a<=gx(qD(fut(t,(ETt(),dte))))&&++T,f.g&&f.c.e.a+f.c.f.a>=gx(qD(fut(t,(ETt(),fte))))&&++E)}else 0==w?ddt(c):w<0&&(++_[C],++p[M],T=KR((S=NEt(c,e,t,new rM(ttt(T),ttt(E)),n,i,new rM(ttt(p[M]),ttt(_[C])))).a,17).a,E=KR(S.b,17).a)}(t,c,o,s),function(t,e,n,r){var a,o,s,c,l,u,h,f,d,g,p;for(f=Mrt(t.b,0);f.b!=f.d.c;)if(!_B((h=KR(gW(f),40)).c,OPt))for(o=KR(bX(new k$(null,new OY(Bdt(h,t),16)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15),e==(jtt(),Fce)||e==$ce?o.jd(new cs):o.jd(new ls),p=o.gc(),a=0;a0&&(c=KR(oD(KR(o.Xb(a),65).a),8).a,d=h.e.a+h.f.a/2,l=KR(oD(KR(o.Xb(a),65).a),8).b,g=h.e.b+h.f.b/2,r>0&&i.Math.abs(l-g)/(i.Math.abs(c-d)/40)>50&&sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a+r/5.3,g>l?h.e.b+h.f.b*s-r/2:h.e.b+h.f.b*s+r/2))),sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a,h.e.b+h.f.b*s))):e==$ce?(u=gx(qD(fut(h,(ETt(),xte)))),h.e.a-r>u?sL(KR(o.Xb(a),65).a,new IA(u-n,h.e.b+h.f.b*s)):KR(o.Xb(a),65).a.b>0&&(c=KR(oD(KR(o.Xb(a),65).a),8).a,d=h.e.a+h.f.a/2,l=KR(oD(KR(o.Xb(a),65).a),8).b,g=h.e.b+h.f.b/2,r>0&&i.Math.abs(l-g)/(i.Math.abs(c-d)/40)>50&&sL(KR(o.Xb(a),65).a,new IA(h.e.a-r/5.3,g>l?h.e.b+h.f.b*s-r/2:h.e.b+h.f.b*s+r/2))),sL(KR(o.Xb(a),65).a,new IA(h.e.a,h.e.b+h.f.b*s))):e==zce?(u=gx(qD(fut(h,(ETt(),vte)))),h.e.b+h.f.b+r0&&(c=KR(oD(KR(o.Xb(a),65).a),8).a,d=h.e.a+h.f.a/2,l=KR(oD(KR(o.Xb(a),65).a),8).b,g=h.e.b+h.f.b/2,r>0&&i.Math.abs(c-d)/(i.Math.abs(l-g)/40)>50&&sL(KR(o.Xb(a),65).a,new IA(d>c?h.e.a+h.f.a*s-r/2:h.e.a+h.f.a*s+r/2,h.e.b+r/5.3+h.f.b))),sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a*s,h.e.b+h.f.b))):(u=gx(qD(fut(h,(ETt(),xte)))),a8(KR(o.Xb(a),65),t)?sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a*s,KR(oD(KR(o.Xb(a),65).a),8).b)):h.e.b-r>u?sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a*s,u-n)):KR(o.Xb(a),65).a.b>0&&(c=KR(oD(KR(o.Xb(a),65).a),8).a,d=h.e.a+h.f.a/2,l=KR(oD(KR(o.Xb(a),65).a),8).b,g=h.e.b+h.f.b/2,r>0&&i.Math.abs(c-d)/(i.Math.abs(l-g)/40)>50&&sL(KR(o.Xb(a),65).a,new IA(d>c?h.e.a+h.f.a*s-r/2:h.e.a+h.f.a*s+r/2,h.e.b-r/5.3))),sL(KR(o.Xb(a),65).a,new IA(h.e.a+h.f.a*s,h.e.b)))}(t,c,o,s),r=Mrt(t.a,0);r.b!=r.d.c;)(n=KR(gW(r),65)).a.b<2&&ddt(n);e.Vg()}function ywt(t){switch(t.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return KR(Smt(t),17).a==t.o;case 1:case 2:if(-2==t.o)return!1;switch(t.p){case 0:case 1:case 2:case 6:case 5:case 7:return HM(t.k,t.f);case 3:case 4:return t.j==t.e;default:return null==t.n?null==t.g:wtt(t.n,t.g)}default:return!1}}function wwt(t,e){var n,r,a;switch(e.Ug("Breaking Point Insertion",1),r=new zgt(t),KR(fut(t,(CEt(),C6t)),351).g){case 2:a=new va;break;case 0:a=new ua;break;default:a=new xa}if(n=a.og(t,r),dx(zD(fut(t,M6t)))&&(n=function(t,e){var n,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x;for(d=new yy,a=new yy,b=null,s=e.Kc();s.Ob();)o=new gb(KR(s.Pb(),17).a),Dy(a.c,o),b&&(o.d=b,b.e=o),b=o;for(v=function(t){var e,n,i,r,a,o,s,c,l;for(l=WZ($pe,$Ct,28,t.b.c.length+1,15,1),c=new hw,i=0,a=new pg(t.b);a.a1&&(i=new IA(r,n.b),RF(e.a,i)),k4(e.a,t7(rk(doe,1),RSt,8,0,[h,u]))}function Twt(){Twt=E,x7t=new EC(PIt,0),b7t=new EC("NIKOLOV",1),w7t=new EC("NIKOLOV_PIXEL",2),m7t=new EC("NIKOLOV_IMPROVED",3),y7t=new EC("NIKOLOV_IMPROVED_PIXEL",4),d7t=new EC("DUMMYNODE_PERCENTAGE",5),v7t=new EC("NODECOUNT_PERCENTAGE",6),k7t=new EC("NO_BOUNDARY",7),g7t=new EC("MODEL_ORDER_LEFT_TO_RIGHT",8),p7t=new EC("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Ewt(){Ewt=E,tne=new vL(fBt,(FN(),!1)),one=new vL(dBt,ttt(0)),sne=new vL(gBt,0),cne=new vL(pBt,!1),J8(),nne=new vL(bBt,ine=Xee),ttt(0),ene=new vL(mBt,ttt(1)),D5(),fne=new vL(yBt,dne=Une),SJ(),gne=new vL(wBt,pne=Yee),wot(),rne=new vL(vBt,ane=jne),hne=new vL(xBt,0),lne=new vL(kBt,!1),une=new vL(_Bt,!1)}function Swt(t,e,n){var i,r,a,o,s,c;if(e){if(n<=-1){if(rO(i=N0(e.Dh(),-1-n),102))return KR(i,19);for(s=0,c=(o=KR(e.Mh(i),160)).gc();s=40)&&function(t){var e,n,i,r,a,o,s;for(t.o=new $O,i=new jT,o=new pg(t.e.a);o.a0,s=Vet(e,a),LN(n?s.b:s.g,e),1==r9(s).c.length&&dX(i,s,i.c.b,i.c),r=new rM(a,e),bW(t.o,r),u1(t.e.a,a))}(t),function(t){var e,n,i,r,a,o,s,c,l,u;for(l=t.e.a.c.length,a=new pg(t.e.a);a.a0&&RF(t.f,a)):(t.c[o]-=l+1,t.c[o]<=0&&t.a[o]>0&&RF(t.e,a))))}function Gwt(t,e,n,i){var r,a,o,s,c,l,u;for(oB(c=new IA(n,i),KR(fut(e,(ETt(),ote)),8)),u=Mrt(e.b,0);u.b!=u.d.c;)aB((l=KR(gW(u),40)).e,c),RF(t.b,l);for(s=KR(bX(RK(new k$(null,new OY(e.a,16))),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15).Kc();s.Ob();){for(a=Mrt((o=KR(s.Pb(),65)).a,0);a.b!=a.d.c;)(r=KR(gW(a),8)).a+=c.a,r.b+=c.b;RF(t.a,o)}}function Kwt(t,e){var n,i,r,a;if(0<(rO(t,16)?KR(t,16).gc():GW(t.Kc()))){if(1<(r=e)){for(--r,a=new So,i=t.Kc();i.Ob();)n=KR(i.Pb(),40),a=a4(t7(rk(oHt,1),pSt,20,0,[a,new qb(n)]));return Kwt(a,r)}if(r<0){for(a=new Co,i=t.Kc();i.Ob();)n=KR(i.Pb(),40),a=a4(t7(rk(oHt,1),pSt,20,0,[a,new qb(n)]));if(0<(rO(a,16)?KR(a,16).gc():GW(a.Kc())))return Kwt(a,r)}}return KR(oO(t.Kc()),40)}function Ywt(t,e,n){var i,r,a,o;for(n.Ug("Processor order nodes",2),t.b=gx(qD(fut(e,(axt(),hee)))),t.a=KR(fut(e,Gte),88),t.a==(jtt(),jce)&&(t.a=Rce,E7(e,Gte,t.a)),r=new jT,o=Mrt(e.b,0);o.b!=o.d.c;)dx(zD(fut(a=KR(gW(o),40),(ETt(),Mte))))&&dX(r,a,r.c.b,r.c);KD(0!=r.b),Pkt(t,i=KR(r.a.a.c,40)),n.fh(1),Zyt(t,i,0-gx(qD(fut(i,(ETt(),wte))))/2,0),n.fh(1),n.Vg()}function Vwt(){Vwt=E,Hue=new VA("DEFAULT_MINIMUM_SIZE",0),Gue=new VA("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),que=new VA("COMPUTE_PADDING",2),Kue=new VA("OUTSIDE_NODE_LABELS_OVERHANG",3),Yue=new VA("PORTS_OVERHANG",4),Wue=new VA("UNIFORM_PORT_SPACING",5),Vue=new VA("SPACE_EFFICIENT_PORT_LABELS",6),Uue=new VA("FORCE_TABULAR_NODE_LABELS",7),zue=new VA("ASYMMETRICAL",8)}function Wwt(t,e){var n,i,r,a,o,s,c,l;if(e){if(n=(a=e.Dh())?r2(a).wi().si(a):null){for(Trt(t,e,n),c=0,l=(null==(r=e.Dh()).i&&uxt(r),r.i).length;c=0&&c0&&(IY(0,t.length),45==t.charCodeAt(0)||(IY(0,t.length),43==t.charCodeAt(0)))?1:0;in)throw Ay(new Zx(hAt+t+'"'));return o}function nvt(t){switch(t){case 100:return VEt(Bqt,!0);case 68:return VEt(Bqt,!1);case 119:return VEt(Rqt,!0);case 87:return VEt(Rqt,!1);case 115:return VEt(Fqt,!0);case 83:return VEt(Fqt,!1);case 99:return VEt($qt,!0);case 67:return VEt($qt,!1);case 105:return VEt(jqt,!0);case 73:return VEt(jqt,!1);default:throw Ay(new Yv(Pqt+t.toString(16)))}}function ivt(t,e,n,i,r){n&&(!i||(t.c-t.b&t.a.length-1)>1)&&1==e&&KR(t.a[t.b],10).k==(Vut(),tXt)?Uxt(KR(t.a[t.b],10),(bst(),xle)):i&&(!n||(t.c-t.b&t.a.length-1)>1)&&1==e&&KR(t.a[t.c-1&t.a.length-1],10).k==(Vut(),tXt)?Uxt(KR(t.a[t.c-1&t.a.length-1],10),(bst(),kle)):2==(t.c-t.b&t.a.length-1)?(Uxt(KR(j7(t),10),(bst(),xle)),Uxt(KR(j7(t),10),kle)):function(t,e){var n,i,r,a,o,s,c,l,u;for(c=WN(t.c-t.b&t.a.length-1),l=null,u=null,a=new QH(t);a.a!=a.b;)r=KR(L9(a),10),n=(s=KR(fut(r,(jEt(),$1t)),12))?s.i:null,i=(o=KR(fut(r,j1t),12))?o.i:null,(l!=n||u!=i)&&(ygt(c,e),l=n,u=i),Dy(c.c,r);ygt(c,e)}(t,r),QW(t)}function rvt(t){var e,n,i,r,a,o,s;for(r=new yy,i=new Dj(lN(Pet(t.b).a.Kc(),new u));Rgt(i);)iQ(n=KR(bQ(i),18))&&SO(r,new WQ(n,pJ(t,n.c),pJ(t,n.d)));for(s=new og(new ag(t.e).a.vc().Kc());s.a.Ob();)e=KR(s.a.Pb(),44),(a=KR(e.md(),113)).d.p=0;for(o=new og(new ag(t.e).a.vc().Kc());o.a.Ob();)e=KR(o.a.Pb(),44),0==(a=KR(e.md(),113)).d.p&&SO(t.d,Pwt(t,a))}function avt(t,e){var n,i,r,a,o,s,c;if(null==(c=zD(fut(e,(axt(),lee))))||(yH(c),c)){for(function(t,e){var n,i,r,a,o;for(r=e.b.b,t.a=WZ(cHt,OLt,15,r,0,1),t.b=WZ(jpe,IMt,28,r,16,1),o=Mrt(e.b,0);o.b!=o.d.c;)a=KR(gW(o),40),t.a[a.g]=new jT;for(i=Mrt(e.a,0);i.b!=i.d.c;)n=KR(gW(i),65),t.a[n.b.g].Fc(n),t.a[n.c.g].Fc(n)}(t,e),r=new yy,s=Mrt(e.b,0);s.b!=s.d.c;)(n=eft(t,KR(gW(s),40),null))&&(p6(n,e),Dy(r.c,n));if(t.a=null,t.b=null,r.c.length>1)for(i=new pg(r);i.a0&&(e.Cd(n),n.i&&net(n))}(r=rmt(t,e),(o=KR(Yrt(r,0),219)).c.kg()?o.c.eg()?new mb(t):new yb(t):new bb(t)),function(t){var e,n,i;for(i=new pg(t.b);i.a=0&&s!=n&&(a=new nz(t,1,s,o,null),i?i.nj(a):i=a),n>=0&&(a=new nz(t,1,n,s==n?o:null,e),i?i.nj(a):i=a)),i}function cvt(t){var e,n,i;if(null==t.b){if(i=new Kx,null!=t.i&&(QM(i,t.i),i.a+=":"),256&t.f){for(256&t.f&&null!=t.a&&(function(t){return null!=t&&CT(Afe,t.toLowerCase())}(t.i)||(i.a+="//"),QM(i,t.a)),null!=t.d&&(i.a+="/",QM(i,t.d)),16&t.f&&(i.a+="/"),e=0,n=t.j.length;e>>31;0!=i&&(t[n]=i)}(n,n,e<<1),i=0,r=0,o=0;rl)&&(c+s+rkt(i,l,!1).a<=e.b&&(vJ(n,a-n.s),n.c=!0,vJ(i,a-n.s),Cat(i,n.s,n.t+n.d+s),i.k=!0,E5(n.q,i),u=!0,r&&(w4(e,i),i.j=e,t.c.length>o&&(Rst((LY(o,t.c.length),KR(t.c[o],186)),i),0==(LY(o,t.c.length),KR(t.c[o],186)).a.c.length&&PQ(t,o)))),u)}function dvt(t,e,n){var i,r,a,o,s;if(0==e.p){for(e.p=1,(r=n)||(r=new rM(new yy,new UB(i=KR(t_(Due),9),KR(jP(i,i.length),9),0))),KR(r.a,15).Fc(e),e.k==(Vut(),JWt)&&KR(r.b,21).Fc(KR(fut(e,(jEt(),E1t)),64)),o=new pg(e.j);o.a0)if(r=KR(t.Ab.g,2033),null==e){for(a=0;an.s&&c=0&&l>=0&&co)return MTt(),sue;break;case 4:case 3:if(u<0)return MTt(),cue;if(u+n>a)return MTt(),Eue}return(c=(l+s/2)/o)+(i=(u+n/2)/a)<=1&&c-i<=0?(MTt(),Cue):c+i>=1&&c-i>=0?(MTt(),sue):i<.5?(MTt(),cue):(MTt(),Eue)}function _vt(t,e){var n,i,r,a,o,s,c,l,u,h,f,d;for(n=!1,c=gx(qD(fut(e,(CEt(),h6t)))),f=dCt*c,r=new pg(e.b);r.ao.n.b-o.d.d+u.a+f&&(d=l.g+u.g,u.a=(u.g*u.a+l.g*l.a)/d,u.g=d,l.f=u,n=!0)),a=o,l=u;return n}function Tvt(t,e,n,i,r,a,o){var s,c,l,u,h;for(h=new WL,c=e.Kc();c.Ob();)for(u=new pg(KR(c.Pb(),853).Rf());u.at.b/2+e.b/2||(a=i.Math.abs(t.d+t.a/2-(e.d+e.a/2)))>t.a/2+e.a/2?1:0==n&&0==a?0:0==n?o/a+1:0==a?r/n+1:i.Math.min(r/n,o/a)+1}function Cvt(t,e){var n,i,r,a,o,s,c;for(a=0,s=0,c=0,r=new pg(t.f.e);r.a0&&t.d!=(j1(),rWt)&&(s+=o*(i.d.a+t.a[e.a][i.a]*(e.d.a-i.d.a)/n)),n>0&&t.d!=(j1(),nWt)&&(c+=o*(i.d.b+t.a[e.a][i.a]*(e.d.b-i.d.b)/n)));switch(t.d.g){case 1:return new IA(s/a,e.d.b);case 2:return new IA(e.d.a,c/a);default:return new IA(s/a,c/a)}}function Avt(t){var e,n,i,r,a;for(SO(a=new lZ((!t.a&&(t.a=new AO(zhe,t,5)),t.a).i+2),new IA(t.j,t.k)),VT(new k$(null,(!t.a&&(t.a=new AO(zhe,t,5)),new OY(t.a,16))),new gm(a)),SO(a,new IA(t.b,t.c)),e=1;e0&&(m7(c,!1,(jtt(),Fce)),m7(c,!0,$ce)),V0(e.g,new JS(t,n)),LH(t.g,e,n)}function Ivt(){var t;for(Ivt=E,rUt=t7(rk($pe,1),$Ct,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),aUt=WZ($pe,$Ct,28,37,15,1),oUt=t7(rk($pe,1),$Ct,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),sUt=WZ(zpe,pAt,28,37,14,1),t=2;t<=36;t++)aUt[t]=oK(i.Math.pow(t,rUt[t])),sUt[t]=yct(qSt,aUt[t])}function Ovt(t){var e;if(1!=(!t.a&&(t.a=new ez(Khe,t,6,6)),t.a).i)throw Ay(new Tx(pFt+(!t.a&&(t.a=new ez(Khe,t,6,6)),t.a).i));return e=new Zw,z6(KR(l2((!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),0),84))&&z3(e,kEt(t,z6(KR(l2((!t.b&&(t.b=new bB(Uhe,t,4,7)),t.b),0),84)),!1)),z6(KR(l2((!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c),0),84))&&z3(e,kEt(t,z6(KR(l2((!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c),0),84)),!0)),e}function Nvt(t,e){var n,i,r;for(r=!1,i=new Dj(lN((e.d?t.a.c==(bK(),Z8t)?Det(e.b):Pet(e.b):t.a.c==(bK(),Q8t)?Det(e.b):Pet(e.b)).a.Kc(),new u));Rgt(i);)if(n=KR(bQ(i),18),(dx(t.a.f[t.a.g[e.b.p].p])||iQ(n)||n.c.i.c!=n.d.i.c)&&!dx(t.a.n[t.a.g[e.b.p].p])&&!dx(t.a.n[t.a.g[e.b.p].p])&&(r=!0,NT(t.b,t.a.g[_ot(n,e.b).p])))return e.c=!0,e.a=n,e;return e.c=r,e.a=null,e}function Dvt(t,e,n){var i,r,a,o,s,c,l;if(0==(i=n.gc()))return!1;if(t.Pj())if(c=t.Qj(),xnt(t,e,n),o=1==i?t.Ij(3,null,n.Kc().Pb(),e,c):t.Ij(5,null,n,e,c),t.Mj()){for(s=i<100?null:new $k(i),a=e+i,r=e;r0){for(s=0;s>16==-15&&t.Cb.Yh()&&w1(new yJ(t.Cb,9,13,n,t.c,dat(k1(KR(t.Cb,62)),t))):rO(t.Cb,90)&&t.Db>>16==-23&&t.Cb.Yh()&&(rO(e=t.c,90)||(KEt(),e=xde),rO(n,90)||(KEt(),n=xde),w1(new yJ(t.Cb,9,10,n,e,dat(JW(KR(t.Cb,29)),t)))))),t.c}function jvt(t,e,n){var i,r,a,o,s,c,l,u;for(n.Ug("Hyperedge merging",1),function(t,e){var n,i,r,a;for((a=KR(bX(Z1(Z1(new k$(null,new OY(e.b,16)),new Rn),new Fn),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15)).Jc(new $n),n=0,r=a.Kc();r.Ob();)-1==(i=KR(r.Pb(),12)).p&&Zgt(t,i,n++)}(t,e),s=new CV(e.b,0);s.b0&&(d.d+=h.n.d,d.d+=h.d),d.a>0&&(d.a+=h.n.a,d.a+=h.d),d.b>0&&(d.b+=h.n.b,d.b+=h.d),d.c>0&&(d.c+=h.n.c,d.c+=h.d),d}((DK(t)&&(BE(),new ix(DK(t))),BE(),new qN(DK(t)?new ix(DK(t)):null,t)),$ce),o=KR(fut(r,S5t),107),vK(n=r.d,o),vK(n,a),r}function Gvt(t,e){var n,r,a,o;return r=i.Math.abs(xz(t.b).a-xz(e.b).a),o=i.Math.abs(xz(t.b).b-xz(e.b).b),n=1,a=1,r>t.b.b/2+e.b.b/2&&(n=1-i.Math.min(i.Math.abs(t.b.c-(e.b.c+e.b.b)),i.Math.abs(t.b.c+t.b.b-e.b.c))/r),o>t.b.a/2+e.b.a/2&&(a=1-i.Math.min(i.Math.abs(t.b.d-(e.b.d+e.b.a)),i.Math.abs(t.b.d+t.b.a-e.b.d))/o),(1-i.Math.min(n,a))*i.Math.sqrt(r*r+o*o)}function Kvt(t){var e,n,r;for(bTt(t,t.e,t.f,(pK(),L9t),!0,t.c,t.i),bTt(t,t.e,t.f,L9t,!1,t.c,t.i),bTt(t,t.e,t.f,I9t,!0,t.c,t.i),bTt(t,t.e,t.f,I9t,!1,t.c,t.i),function(t,e,n,i,r){var a,o,s,c,l,u,h;for(o=new pg(e);o.a=g&&(y>g&&(d.c.length=0,g=y),Dy(d.c,o));0!=d.c.length&&(f=KR(c$(d,Tat(e,d.c.length)),131),C.a.Bc(f),f.s=p++,jpt(f,E,k),d.c.length=0)}for(v=t.c.length+1,s=new pg(t);s.aS.s&&(nH(n),u1(S.i,i),i.c>0&&(i.a=S,SO(S.t,i),i.b=_,SO(_.i,i)))})(t.i,KR(fut(t.d,(jEt(),e0t)),234)),function(t){var e,n,r,a,o,s,c,l,u;for(l=new jT,s=new jT,a=new pg(t);a.a-1){for(r=Mrt(s,0);r.b!=r.d.c;)(n=KR(gW(r),131)).v=o;for(;0!=s.b;)for(e=new pg((n=KR(kst(s,0),131)).i);e.a=65;n--)tpe[n]=n-65<<24>>24;for(i=122;i>=97;i--)tpe[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)tpe[r]=r-48+52<<24>>24;for(tpe[43]=62,tpe[47]=63,a=0;a<=25;a++)epe[a]=65+a&ECt;for(o=26,c=0;o<=51;++o,c++)epe[o]=97+c&ECt;for(t=52,s=0;t<=61;++t,s++)epe[t]=48+s&ECt;epe[62]=43,epe[63]=47}function Wvt(t,e){var n,r,a,o,s,c;return(a=G3(t))==(c=G3(e))?t.e==e.e&&t.a<54&&e.a<54?t.fe.f?1:0:(r=t.e-e.e,(n=(t.d>0?t.d:i.Math.floor((t.a-1)*xAt)+1)-(e.d>0?e.d:i.Math.floor((e.a-1)*xAt)+1))>r+1?a:n0&&(s=PW(s,zxt(r))),Dit(o,s))):aa)return MTt(),sue;break;case 4:case 3:if(c<0)return MTt(),cue;if(c+t.f>r)return MTt(),Eue}return(o=(s+t.g/2)/a)+(n=(c+t.f/2)/r)<=1&&o-n<=0?(MTt(),Cue):o+n>=1&&o-n>=0?(MTt(),sue):n<.5?(MTt(),cue):(MTt(),Eue)}function Zvt(t){var e,n,i,r,a,o;if(UEt(),4!=t.e&&5!=t.e)throw Ay(new Tx("Token#complementRanges(): must be RANGE: "+t.e));for(xpt(a=t),$kt(a),i=a.b.length+2,0==a.b[0]&&(i-=2),(n=a.b[a.b.length-1])==Dqt&&(i-=2),(r=new UY(4)).b=WZ($pe,$Ct,28,i,15,1),o=0,a.b[0]>0&&(r.b[o++]=0,r.b[o++]=a.b[0]-1),e=1;e0&&(Bd(c,c.d-r.d),r.c==(fZ(),x9t)&&Dd(c,c.a-r.d),c.d<=0&&c.i>0&&dX(e,c,e.c.b,e.c));for(a=new pg(t.f);a.a0&&(Rd(s,s.i-r.d),r.c==(fZ(),x9t)&&Pd(s,s.b-r.d),s.i<=0&&s.d>0&&dX(n,s,n.c.b,n.c))}function ext(t,e,n,i,r){var a,o,s,c,l,u,h;if(zT(),Gz(t,"src"),Gz(n,"dest"),h=i9(t),c=i9(n),rF(0!=(4&h.i),"srcType is not an array"),rF(0!=(4&c.i),"destType is not an array"),u=h.c,o=c.c,rF(1&u.i?u==o:0==(1&o.i),"Array types don't match"),function(t,e,n,i,r){var a,o;if(o=t.length,a=n.length,e<0||i<0||r<0||e+r>o||i+r>a)throw Ay(new Ky)}(t,e,n,i,r),1&u.i||h==c)Zdt(t,e,n,i,r,!0);else if(l=X2(t),a=X2(n),$M(t)===$M(n)&&ei;)Dq(a,s,l[--e]);else for(s=i+r;ig&&(o&&(sL(k,d),sL(T,ttt(u.b-1))),M=n.b,L+=d+e,d=0,h=i.Math.max(h,n.b+n.c+A)),D2(c,M),P2(c,L),h=i.Math.max(h,M+A+n.c),d=i.Math.max(d,f),M+=A+e;if(h=i.Math.max(h,r),(C=L+d+n.a)2*a?(u=new f2(h),l=L$(o)/M$(o),c=iEt(u,e,new Uw,n,i,r,l),aB(mL(u.e),c),h.c.length=0,a=0,Dy(h.c,u),Dy(h.c,o),a=L$(u)*M$(u)+L$(o)*M$(o)):(Dy(h.c,o),a+=L$(o)*M$(o));return h}(s,e,h.a,h.b,(l=r,yH(a),l));break;case 1:g=function(t,e,n,i,r){var a,o,s,c,l,u,h,f,d;for(QU(),PI(t,new $c),o=GR(t),d=new yy,f=new yy,s=null,c=0;0!=o.b;)a=KR(0==o.b?null:(KD(0!=o.b),J0(o,o.a.a)),163),!s||L$(s)*M$(s)/21&&(c>L$(s)*M$(s)/2||0==o.b)&&(h=new f2(f),u=L$(s)/M$(s),l=iEt(h,e,new Uw,n,i,r,u),aB(mL(h.e),l),s=h,Dy(d.c,h),c=0,f.c.length=0));return G6(d,f),d}(s,e,h.a,h.b,(u=r,yH(a),u));break;default:g=function(t,e,n,i,r){var a,o,s,c,l,u,h,f,d;for(s=WZ(Hpe,wAt,28,t.c.length,15,1),_st(f=new Nj(new jc),t),l=0,d=new yy;0!=f.b.c.length;)if(o=KR(0==f.b.c.length?null:c$(f.b,0),163),l>1&&L$(o)*M$(o)/2>s[0]){for(a=0;as[a];)++a;h=new f2(new yY(d,0,a+1)),u=L$(o)/M$(o),c=iEt(h,e,new Uw,n,i,r,u),aB(mL(h.e),c),iF(Zlt(f,h),EAt),_st(f,new yY(d,a+1,d.c.length)),d.c.length=0,l=0,Q$(s,s.length,0)}else null!=(0==f.b.c.length?null:c$(f.b,0))&&x3(f,0),l>0&&(s[l]=s[l-1]),s[l]+=L$(o)*M$(o),++l,Dy(d.c,o);return d}(s,e,h.a,h.b,(c=r,yH(a),c))}DTt(t,(d=iEt(new f2(g),e,n,h.a,h.b,r,(yH(a),a))).a,d.b,!1,!0)}(t,a,o,n),e.Vg()}function ixt(t,e,n,i,r){var a,o,s,c,l,u,h,f,d;for(h=function(t,e){var n,i,r;for(r=new CV(t.e,0),n=0;r.bTPt)return n;i>-1e-6&&++n}return n}(t,n),s=0;s0),i.a.Xb(i.c=--i.b),u>h+s&&nH(i);for(a=new pg(f);a.a0),i.a.Xb(i.c=--i.b)}}function rxt(t,e){var n,i,r,a,o,s,c,l;for(n=new RegExp(e,"g"),c=WZ(fUt,RSt,2,0,6,1),i=0,l=t,a=null;;){if(null==(s=n.exec(l))||""==l){c[i]=l;break}o=s.index,c[i]=(tJ(0,o,l.length),l.substr(0,o)),l=$G(l,o+s[0].length,l.length),n.lastIndex=0,a==l&&(c[i]=(tJ(0,1,l.length),l.substr(0,1)),IY(1,l.length+1),l=l.substr(1)),a=l,++i}if(t.length>0){for(r=c.length;r>0&&""==c[r-1];)--r;r0&&(f-=r[0]+t.c,r[0]+=t.c),r[2]>0&&(f-=r[2]+t.c),r[1]=i.Math.max(r[1],f),W$(t.a[1],n.c+e.b+r[0]-(r[1]-f)/2,r[1]);for(c=0,u=(o=t.a).length;co&&(o=r,l.c.length=0),r==o&&SO(l,new rM(n.c.i,n)));QU(),PI(l,t.c),V$(t.b,s.p,l)}}(f,t),f.f=WN(f.d),function(t,e){var n,i,r,a,o,s,c,l;for(a=new pg(e.b);a.ao&&(o=r,l.c.length=0),r==o&&SO(l,new rM(n.d.i,n)));QU(),PI(l,t.c),V$(t.f,s.p,l)}}(f,t),f}function cxt(t,e){var n,r,a;for(a=KR(c$(t.n,t.n.c.length-1),209).d,t.p=i.Math.min(t.p,e.g),t.r=i.Math.max(t.r,a),t.g=i.Math.max(t.g,e.g+(1==t.b.c.length?0:t.i)),t.o=i.Math.min(t.o,e.f),t.e+=e.f+(1==t.b.c.length?0:t.i),t.f=i.Math.max(t.f,e.f),r=t.n.c.length>0?(t.n.c.length-1)*t.i:0,n=new pg(t.n);n.a1)for(i=Mrt(r,0);i.b!=i.d.c;)for(a=0,s=new pg((n=KR(gW(i),235)).e);s.a0&&(e[0]+=t.c,f-=e[0]),e[2]>0&&(f-=e[2]+t.c),e[1]=i.Math.max(e[1],f),X$(t.a[1],r.d+n.d+e[0]-(e[1]-f)/2,e[1]);else for(g=r.d+n.d,d=r.a-n.d-n.a,l=0,h=(s=t.a).length;l0||0==Let(a.b.d,t.b.d+t.b.a)&&r.b<0||0==Let(a.b.d+a.b.a,t.b.d)&&r.b>0){c=0;break}}else c=i.Math.min(c,Yft(t,a,r));c=i.Math.min(c,dxt(t,o,c,r))}return c}function gxt(t,e){var n,i,r,a,o,s;if(t.b<2)throw Ay(new Tx("The vector chain must contain at least a source and a target point."));for(KD(0!=t.b),uI(e,(i=KR(t.a.a.c,8)).a,i.b),s=new KN((!e.a&&(e.a=new AO(zhe,e,5)),e.a)),a=Mrt(t,1);a.a=0&&a!=n)throw Ay(new Tx(N$t));for(r=0,c=0;cgx(vO(o.g,o.d[0]).a)?(KD(c.b>0),c.a.Xb(c.c=--c.b),BP(c,o),r=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new yy),s.e).Mc(e),l=(!s.e&&(s.e=new yy),s.e).Mc(n),(a||l)&&((!s.e&&(s.e=new yy),s.e).Fc(o),++o.c));r||Dy(i.c,o)}function yxt(t,e,n){var i,r,a,o,s,c,l,u,h,f;return u=t.a.i+t.a.g/2,h=t.a.i+t.a.g/2,o=new IA(e.i+e.g/2,e.j+e.f/2),(c=KR(spt(e,(zEt(),rce)),8)).a=c.a+u,c.b=c.b+h,r=(o.b-c.b)/(o.a-c.a),i=o.b-r*o.a,s=new IA(n.i+n.g/2,n.j+n.f/2),(l=KR(spt(n,rce),8)).a=l.a+u,l.b=l.b+h,a=(s.b-l.b)/(s.a-l.a),f=(i-(s.b-a*s.a))/(a-r),!(c.a>>0).toString(16),e.length-2,e.length):t>=mAt?"\\v"+$G(e="0"+(t>>>0).toString(16),e.length-6,e.length):""+String.fromCharCode(t&ECt)}return n}function Ext(t){var e,n,i;if(JL(KR(fut(t,(CEt(),R5t)),101)))for(n=new pg(t.j);n.a=e.o&&n.f<=e.f||.5*e.a<=n.f&&1.5*e.a>=n.f){if((a=KR(c$(e.n,e.n.c.length-1),209)).e+a.d+n.g+r<=i&&(KR(c$(e.n,e.n.c.length-1),209).f-t.f+n.f<=t.b||1==t.a.c.length))return Het(e,n),!0;if(e.s+n.g<=i&&(e.t+e.d+n.f+r<=t.b||1==t.a.c.length))return SO(e.b,n),o=KR(c$(e.n,e.n.c.length-1),209),SO(e.n,new uK(e.s,o.f+o.a+e.i,e.i)),oot(KR(c$(e.n,e.n.c.length-1),209),n),cxt(e,n),!0}return!1}function Mxt(t,e,n){var i,r,a,o;return t.Pj()?(r=null,a=t.Qj(),i=t.Ij(1,o=K1(t,e,n),n,e,a),t.Mj()&&!(t.Yi()&&null!=o?wtt(o,n):$M(o)===$M(n))?(null!=o&&(r=t.Oj(o,r)),r=t.Nj(n,r),t.Tj()&&(r=t.Wj(o,n,r)),r?(r.nj(i),r.oj()):t.Jj(i)):(t.Tj()&&(r=t.Wj(o,n,r)),r?(r.nj(i),r.oj()):t.Jj(i)),o):(o=K1(t,e,n),t.Mj()&&!(t.Yi()&&null!=o?wtt(o,n):$M(o)===$M(n))&&(r=null,null!=o&&(r=t.Oj(o,null)),(r=t.Nj(n,r))&&r.oj()),o)}function Lxt(t,e){var n,i,r,a;if(e.Ug("Path-Like Graph Wrapping",1),0!=t.b.c.length)if(null==(r=new zgt(t)).i&&(r.i=W3(r,new ma)),n=gx(r.i)*r.f/(null==r.i&&(r.i=W3(r,new ma)),gx(r.i)),r.b>n)e.Vg();else{switch(KR(fut(t,(CEt(),C6t)),351).g){case 2:a=new va;break;case 0:a=new ua;break;default:a=new xa}if(i=a.og(t,r),!a.pg())switch(KR(fut(t,N6t),352).g){case 2:i=Wft(r,i);break;case 1:i=nlt(r,i)}(function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d;if(!n.dc()){for(o=0,u=0,f=KR((i=n.Kc()).Pb(),17).a;o0&&(c=s/60|0,l=s%60,r=t.q.getDate(),t.q.getHours()+c>=24&&++r,a=new i.Date(t.q.getFullYear(),t.q.getMonth(),r,e+c,t.q.getMinutes()+l,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(a.getTime()))),o=t.q.getTime(),t.q.setTime(o+36e5),t.q.getHours()!=e&&t.q.setTime(o)}function Oxt(t,e){var n,i,r,a;if(function(t,e){TO(t,bj(BY(Mj(e,24),$At)),bj(BY(e,$At)))}(t.d,t.e),t.c.a.$b(),0!=gx(qD(fut(e.j,(CEt(),s3t))))||0!=gx(qD(fut(e.j,s3t))))for(n=ILt,$M(fut(e.j,f3t))!==$M((Mit(),S7t))&&E7(e.j,(jEt(),C1t),(FN(),!0)),a=KR(fut(e.j,b6t),17).a,r=0;r=b&&t.e[l.p]>g*t.b||w>=n*b)&&(Dy(f.c,c),c=new yy,z3(s,o),o.a.$b(),u-=h,d=i.Math.max(d,u*t.b+p),u+=w,y=w,w=0,h=0,p=0);return new rM(d,f)}function Pxt(t){var e,n,i,r,a;if(!t.d){if(a=new kl,null==(e=Nde).a.zc(t,e)){for(n=new zO(PG(t));n.e!=n.i.gc();)nq(a,Pxt(KR(Frt(n),29)));e.a.Bc(t),e.a.gc()}for(r=a.i,!t.q&&(t.q=new ez(nde,t,11,10)),i=new zO(t.q);i.e!=i.i.gc();++r)KR(Frt(i),411);nq(a,(!t.q&&(t.q=new ez(nde,t,11,10)),t.q)),V8(a),t.d=new xL((KR(l2(iG((Aq(),sde).o),9),19),a.i),a.g),t.e=KR(a.g,688),null==t.e&&(t.e=Dde),aQ(t).b&=-17}return t.d}function Bxt(t,e,n,i){var r,a,o,s,c,l;if(l=Jbt(t.e.Dh(),e),c=0,r=KR(t.g,124),UE(),KR(e,69).xk()){for(o=0;o1||-1==g)if(h=KR(p,71),f=KR(u,71),h.dc())f.$b();else for(o=!!Oat(e),a=0,s=t.a?h.Kc():h.Ii();s.Ob();)l=KR(s.Pb(),58),(r=KR(W1(t,l),58))?(o?-1==(c=f.dd(r))?f.Gi(a,r):a!=c&&f.Ui(a,r):f.Gi(a,r),++a):t.b&&!o&&(f.Gi(a,l),++a);else null==p?u.Wb(null):null==(r=W1(t,p))?t.b&&!Oat(e)&&u.Wb(p):u.Wb(r)}function Fxt(t,e){var n,r,a,o,s,c,l,h;for(n=new Nn,a=new Dj(lN(Det(e).a.Kc(),new u));Rgt(a);)if(!iQ(r=KR(bQ(a),18))&&wlt(c=r.c.i,vXt)){if(-1==(h=pyt(t,c,vXt,wXt)))continue;n.b=i.Math.max(n.b,h),!n.a&&(n.a=new yy),SO(n.a,c)}for(s=new Dj(lN(Pet(e).a.Kc(),new u));Rgt(s);)if(!iQ(o=KR(bQ(s),18))&&wlt(l=o.d.i,wXt)){if(-1==(h=pyt(t,l,wXt,vXt)))continue;n.d=i.Math.max(n.d,h),!n.c&&(n.c=new yy),SO(n.c,l)}return n}function $xt(t,e,n,i){var r,a,o,s,c,l,u;if(n.d.i!=e.i){for(Md(r=new Bat(t),(Vut(),eXt)),E7(r,(jEt(),U1t),n),E7(r,(CEt(),R5t),(plt(),Kle)),Dy(i.c,r),iY(o=new sht,r),Vft(o,(MTt(),Cue)),iY(s=new sht,r),Vft(s,sue),u=n.d,rY(n,o),p6(a=new EG,n),E7(a,J3t,null),eY(a,s),rY(a,u),l=new CV(n.b,0);l.b1e6)throw Ay(new wx("power of ten too big"));if(t<=lSt)return yQ(qdt(LUt[1],e),e);for(r=i=qdt(LUt[1],lSt),n=h6(t-lSt),e=oK(t%lSt);F9(n,lSt)>0;)r=PW(r,i),n=Aet(n,lSt);for(r=yQ(r=PW(r,qdt(LUt[1],e)),lSt),n=h6(t-lSt);F9(n,lSt)>0;)r=yQ(r,lSt),n=Aet(n,lSt);return yQ(r,e)}function qxt(t){var e,n,i,r,a,o,s,c;for(o=new pg(t.a);o.al&&i>l)){r=!1,n._g()&&n.bh("bk node placement breaks on "+s+" which should have been after "+u);break}u=s,l=gx(e.p[s.p])+gx(e.d[s.p])+s.o.b+s.d.a}if(!r)break}return n._g()&&n.bh(e+" is feasible: "+r),r}function Kxt(t,e,n,i){var r,a,o,s,c,l,u;if(Md(a=new Bat(t),(Vut(),iXt)),E7(a,(CEt(),R5t),(plt(),Kle)),r=0,e){for(E7(o=new sht,(jEt(),U1t),e),E7(a,U1t,e.i),Vft(o,(MTt(),Cue)),iY(o,a),l=0,u=(c=LV(e.e)).length;l=0&&!hot(t,u,h);)--h;r[u]=h}for(d=0;d=0&&!hot(t,s,g);)--s;a[g]=s}for(c=0;ce[f]&&fi[c]&&Qyt(t,c,f,!1,!0)}function Xxt(t){var e,n,i,r,a,o,s,c;n=dx(zD(fut(t,(Evt(),sVt)))),a=t.a.c.d,s=t.a.d.d,n?(o=EO(oB(new IA(s.a,s.b),a),.5),c=EO(tO(t.e),.5),e=oB(aB(new IA(a.a,a.b),o),c),yD(t.d,e)):(r=gx(qD(fut(t.a,EVt))),i=t.d,a.a>=s.a?a.b>=s.b?(i.a=s.a+(a.a-s.a)/2+r,i.b=s.b+(a.b-s.b)/2-r-t.e.b):(i.a=s.a+(a.a-s.a)/2+r,i.b=a.b+(s.b-a.b)/2+r):a.b>=s.b?(i.a=a.a+(s.a-a.a)/2+r,i.b=s.b+(a.b-s.b)/2+r):(i.a=a.a+(s.a-a.a)/2+r,i.b=a.b+(s.b-a.b)/2-r-t.e.b))}function Qxt(t){var e,n,i,r,a,o;if(!t.f){if(o=new vl,a=new vl,null==(e=Nde).a.zc(t,e)){for(r=new zO(PG(t));r.e!=r.i.gc();)nq(o,Qxt(KR(Frt(r),29)));e.a.Bc(t),e.a.gc()}for(!t.s&&(t.s=new ez(Kfe,t,21,17)),i=new zO(t.s);i.e!=i.i.gc();)rO(n=KR(Frt(i),179),102)&&sJ(a,KR(n,19));V8(a),t.r=new AF(t,(KR(l2(iG((Aq(),sde).o),6),19),a.i),a.g),nq(o,t.r),V8(o),t.f=new xL((KR(l2(iG(sde.o),5),19),o.i),o.g),aQ(t).b&=-3}return t.f}function Zxt(t){IE(t,new Dlt(xk(mk(vk(wk(new hc,TLt),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new re))),BV(t,TLt,ELt,Rrt(HYt)),BV(t,TLt,SLt,Rrt(RYt)),BV(t,TLt,CLt,Rrt(OYt)),BV(t,TLt,ALt,Rrt(FYt)),BV(t,TLt,EMt,Rrt(zYt)),BV(t,TLt,SMt,Rrt(jYt)),BV(t,TLt,TMt,Rrt(qYt)),BV(t,TLt,CMt,Rrt($Yt)),BV(t,TLt,wLt,Rrt(DYt)),BV(t,TLt,vLt,Rrt(NYt)),BV(t,TLt,xLt,Rrt(PYt)),BV(t,TLt,kLt,Rrt(BYt))}function Jxt(){Jxt=E,Rhe=t7(rk(Fpe,1),_Ct,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Fhe=new RegExp("[ \t\n\r\f]+");try{Bhe=t7(rk(qde,1),pSt,2114,0,[new ry((bL(),Hnt("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",NP((tx(),tx(),MHt))))),new ry(Hnt("yyyy-MM-dd'T'HH:mm:ss'.'SSS",NP(MHt))),new ry(Hnt("yyyy-MM-dd'T'HH:mm:ss",NP(MHt))),new ry(Hnt("yyyy-MM-dd'T'HH:mm",NP(MHt))),new ry(Hnt("yyyy-MM-dd",NP(MHt)))])}catch(t){if(!rO(t=j6(t),82))throw Ay(t)}}function tkt(t,e){var n,i,r;if(i=0!=Xpt(t.d,1),0==cwt(t,e)&&dx(zD(fut(e.j,(jEt(),C1t)))))return 0;!dx(zD(fut(e.j,(jEt(),C1t))))&&!dx(zD(fut(e.j,r0t)))||$M(fut(e.j,(CEt(),f3t)))===$M((Mit(),S7t))?e.c.mg(e.e,i):i=dx(zD(fut(e.j,C1t))),Fbt(t,e,i,!0),dx(zD(fut(e.j,r0t)))&&E7(e.j,r0t,(FN(),!1)),dx(zD(fut(e.j,C1t)))&&(E7(e.j,C1t,(FN(),!1)),E7(e.j,r0t,!0)),n=cwt(t,e);do{if(P3(t),0==n)return 0;r=n,Fbt(t,e,i=!i,!1),n=cwt(t,e)}while(r>n);return r}function ekt(t,e){var n,i,r;if(i=0!=Xpt(t.d,1),0==wft(t,e)&&dx(zD(fut(e.j,(jEt(),C1t)))))return 0;!dx(zD(fut(e.j,(jEt(),C1t))))&&!dx(zD(fut(e.j,r0t)))||$M(fut(e.j,(CEt(),f3t)))===$M((Mit(),S7t))?e.c.mg(e.e,i):i=dx(zD(fut(e.j,C1t))),Fbt(t,e,i,!0),dx(zD(fut(e.j,r0t)))&&E7(e.j,r0t,(FN(),!1)),dx(zD(fut(e.j,C1t)))&&(E7(e.j,C1t,(FN(),!1)),E7(e.j,r0t,!0)),n=wft(t,e);do{if(P3(t),0==n)return 0;r=n,Fbt(t,e,i=!i,!1),n=wft(t,e)}while(r>n);return r}function nkt(t,e,n,r){var a,o,s,c,l,u,h,f,d;return u=(l=oB(new IA(n.a,n.b),t)).a*e.b-l.b*e.a,h=e.a*r.b-e.b*r.a,f=(l.a*r.b-l.b*r.a)/h,d=u/h,0==h?0==u?(o=fJ(t,a=aB(new IA(n.a,n.b),EO(new IA(r.a,r.b),.5))),s=fJ(aB(new IA(t.a,t.b),e),a),c=.5*i.Math.sqrt(r.a*r.a+r.b*r.b),o=0&&f<=1&&d>=0&&d<=1?aB(new IA(t.a,t.b),EO(new IA(e.a,e.b),f)):null}function ikt(t){var e,n,r,a,o,s,c,l,u,h;for(l=new rg(new Zd(ugt(t)).a.vc().Kc());l.a.Ob();){for(r=KR(l.a.Pb(),44),u=0,h=0,u=(c=KR(r.ld(),10)).d.d,h=c.o.b+c.d.a,t.d[c.p]=0,e=c;(a=t.a[e.p])!=c;)n=rrt(e,a),0,s=t.c==(bK(),Q8t)?n.d.n.b+n.d.a.b-n.c.n.b-n.c.a.b:n.c.n.b+n.c.a.b-n.d.n.b-n.d.a.b,o=gx(t.d[e.p])+s,t.d[a.p]=o,u=i.Math.max(u,a.d.d-o),h=i.Math.max(h,o+a.o.b+a.d.a),e=a;e=c;do{t.d[e.p]=gx(t.d[e.p])+u,e=t.a[e.p]}while(e!=c);t.b[c.p]=u+h}}function rkt(t,e,n){var r,a,o,s,c,l,u,h,f,d;for(o=0,s=t.t,a=0,r=0,l=0,d=0,f=0,n&&(t.n.c.length=0,SO(t.n,new uK(t.s,t.t,t.i))),c=0,h=new pg(t.b);h.a0?t.i:0)>e&&l>0&&(o=0,s+=l+t.i,a=i.Math.max(a,d),r+=l+t.i,l=0,d=0,n&&(++f,SO(t.n,new uK(t.s,s,t.i))),c=0),d+=u.g+(c>0?t.i:0),l=i.Math.max(l,u.f),n&&oot(KR(c$(t.n,f),209),u),o+=u.g+(c>0?t.i:0),++c;return a=i.Math.max(a,d),r+=l,n&&(t.r=a,t.d=r,tst(t.j)),new pU(t.s,t.t,a,r)}function akt(t){var e,n,r,a,o,s,c,l,u,h,f;for(t.b=!1,h=fAt,c=dAt,f=fAt,l=dAt,n=t.e.a.ec().Kc();n.Ob();)for(r=(e=KR(n.Pb(),272)).a,h=i.Math.min(h,r.c),c=i.Math.max(c,r.c+r.b),f=i.Math.min(f,r.d),l=i.Math.max(l,r.d+r.a),o=new pg(e.c);o.as?1:-1:L8(t.a,e.a,a)))h=-c,u=o==c?NQ(e.a,s,t.a,a):VZ(e.a,s,t.a,a);else if(h=o,o==c){if(0==r)return lwt(),CUt;u=NQ(t.a,a,e.a,s)}else u=VZ(t.a,a,e.a,s);return OV(l=new Pz(h,u.length,u)),l}function dkt(t,e){var n,i,r;if(r=Uvt(e),!e.c&&(e.c=new ez(Jhe,e,9,9)),VT(new k$(null,(!e.c&&(e.c=new ez(Jhe,e,9,9)),new OY(e.c,16))),new mp(r)),function(t,e){var n,i,r,a,o,s,c,l,u,h,f;for(o=dx(zD(spt(t,(CEt(),W3t)))),f=KR(spt(t,j5t),21),c=!1,l=!1,h=new zO((!t.c&&(t.c=new ez(Jhe,t,9,9)),t.c));!(h.e==h.i.gc()||c&&l);){for(a=KR(Frt(h),123),s=0,r=vz(a4(t7(rk(oHt,1),pSt,20,0,[(!a.d&&(a.d=new bB(Ghe,a,8,5)),a.d),(!a.e&&(a.e=new bB(Ghe,a,7,4)),a.e)])));Rgt(r)&&(i=KR(bQ(r),74),u=o&&Idt(i)&&dx(zD(spt(i,X3t))),n=Qkt((!i.b&&(i.b=new bB(Uhe,i,4,7)),i.b),a)?t==DK(Blt(KR(l2((!i.c&&(i.c=new bB(Uhe,i,5,8)),i.c),0),84))):t==DK(Blt(KR(l2((!i.b&&(i.b=new bB(Uhe,i,4,7)),i.b),0),84))),!((u||n)&&(++s,s>1))););(s>0||f.Hc((cdt(),eue))&&(!a.n&&(a.n=new ez(Qhe,a,1,7)),a.n).i>0)&&(c=!0),s>1&&(l=!0)}c&&e.Fc((Hmt(),qJt)),l&&e.Fc((Hmt(),HJt))}(e,i=KR(fut(r,(jEt(),A1t)),21)),i.Hc((Hmt(),qJt)))for(n=new zO((!e.c&&(e.c=new ez(Jhe,e,9,9)),e.c));n.e!=n.i.gc();)yTt(t,e,r,KR(Frt(n),123));return 0!=KR(spt(e,(CEt(),x5t)),181).gc()&&Umt(e,r),dx(zD(fut(r,A5t)))&&i.Fc(YJt),cD(r,Q5t)&&hx(new Ent(gx(qD(fut(r,Q5t)))),r),$M(spt(e,U3t))===$M((V9(),ble))?function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E;for(o=new jT,w=KR(fut(n,(CEt(),C3t)),88),p=0,z3(o,(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a));0!=o.b;)($M(spt(l=DK(u=KR(0==o.b?null:(KD(0!=o.b),J0(o,o.a.a)),27)),f3t))!==$M((Mit(),S7t))||$M(spt(l,E3t))===$M((Ait(),JZt))||$M(spt(l,E3t))===$M((Ait(),QZt))||dx(zD(spt(l,g3t)))||$M(spt(l,o3t))!==$M((Yit(),qWt))||$M(spt(l,s5t))===$M((Twt(),g7t))||$M(spt(l,s5t))===$M((Twt(),p7t))||$M(spt(l,c5t))===$M((Dbt(),F6t))||$M(spt(l,c5t))===$M((Dbt(),j6t)))&&!dx(zD(spt(u,u3t)))&&nat(u,(jEt(),H1t),ttt(p++)),!dx(zD(spt(u,E5t)))&&(f=0!=(!u.a&&(u.a=new ez(Zhe,u,10,11)),u.a).i,g=Ilt(u),d=$M(spt(u,U3t))===$M((V9(),ble)),m=null,(E=!GZ(u,(zEt(),qoe))||pQ(HD(spt(u,qoe))))&&d&&(f||g)&&(E7(m=Uvt(u),C3t,w),cD(m,Q5t)&&hx(new Ent(gx(qD(fut(m,Q5t)))),m),0!=KR(spt(u,x5t),181).gc()&&(h=m,VT(new k$(null,(!u.c&&(u.c=new ez(Jhe,u,9,9)),new OY(u.c,16))),new yp(h)),Umt(u,m))),v=n,(x=KR(Oq(t.a,DK(u)),10))&&(v=x.e),b=nEt(t,u,v),m&&(b.e=m,m.e=b,z3(o,(!u.a&&(u.a=new ez(Zhe,u,10,11)),u.a))));for(p=0,dX(o,e,o.c.b,o.c);0!=o.b;){for(c=new zO((!(a=KR(0==o.b?null:(KD(0!=o.b),J0(o,o.a.a)),27)).b&&(a.b=new ez(Ghe,a,12,3)),a.b));c.e!=c.i.gc();)swt(s=KR(Frt(c),74)),($M(spt(e,f3t))!==$M((Mit(),S7t))||$M(spt(e,E3t))===$M((Ait(),JZt))||$M(spt(e,E3t))===$M((Ait(),QZt))||dx(zD(spt(e,g3t)))||$M(spt(e,o3t))!==$M((Yit(),qWt))||$M(spt(e,s5t))===$M((Twt(),g7t))||$M(spt(e,s5t))===$M((Twt(),p7t))||$M(spt(e,c5t))===$M((Dbt(),F6t))||$M(spt(e,c5t))===$M((Dbt(),j6t)))&&nat(s,(jEt(),H1t),ttt(p++)),_=Blt(KR(l2((!s.b&&(s.b=new bB(Uhe,s,4,7)),s.b),0),84)),T=Blt(KR(l2((!s.c&&(s.c=new bB(Uhe,s,5,8)),s.c),0),84)),!(dx(zD(spt(s,E5t)))||dx(zD(spt(_,E5t)))||dx(zD(spt(T,E5t))))&&(y=a,Idt(s)&&dx(zD(spt(_,W3t)))&&dx(zD(spt(s,X3t)))||Y0(T,_)?y=_:Y0(_,T)&&(y=T),v=n,(x=KR(Oq(t.a,y),10))&&(v=x.e),E7($Et(t,s,y,v),(jEt(),p1t),kmt(t,s,e,n)));if(d=$M(spt(a,U3t))===$M((V9(),ble)))for(r=new zO((!a.a&&(a.a=new ez(Zhe,a,10,11)),a.a));r.e!=r.i.gc();)E=!GZ(i=KR(Frt(r),27),(zEt(),qoe))||pQ(HD(spt(i,qoe))),k=$M(spt(i,U3t))===$M(ble),E&&k&&dX(o,i,o.c.b,o.c)}}(t,e,r):function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b;for(f=0,r=new zO((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a));r.e!=r.i.gc();)dx(zD(spt(i=KR(Frt(r),27),(CEt(),E5t))))||(($M(spt(u=DK(i),f3t))!==$M((Mit(),S7t))||$M(spt(u,E3t))===$M((Ait(),JZt))||$M(spt(u,E3t))===$M((Ait(),QZt))||dx(zD(spt(u,g3t)))||$M(spt(u,o3t))!==$M((Yit(),qWt))||$M(spt(u,s5t))===$M((Twt(),g7t))||$M(spt(u,s5t))===$M((Twt(),p7t))||$M(spt(u,c5t))===$M((Dbt(),F6t))||$M(spt(u,c5t))===$M((Dbt(),j6t)))&&!dx(zD(spt(i,u3t)))&&(nat(i,(jEt(),H1t),ttt(f)),++f),nEt(t,i,n));for(f=0,l=new zO((!e.b&&(e.b=new ez(Ghe,e,12,3)),e.b));l.e!=l.i.gc();)s=KR(Frt(l),74),($M(spt(e,(CEt(),f3t)))!==$M((Mit(),S7t))||$M(spt(e,E3t))===$M((Ait(),JZt))||$M(spt(e,E3t))===$M((Ait(),QZt))||dx(zD(spt(e,g3t)))||$M(spt(e,o3t))!==$M((Yit(),qWt))||$M(spt(e,s5t))===$M((Twt(),g7t))||$M(spt(e,s5t))===$M((Twt(),p7t))||$M(spt(e,c5t))===$M((Dbt(),F6t))||$M(spt(e,c5t))===$M((Dbt(),j6t)))&&(nat(s,(jEt(),H1t),ttt(f)),++f),p=yut(s),b=xut(s),h=dx(zD(spt(p,W3t))),g=!dx(zD(spt(s,E5t))),d=h&&Idt(s)&&dx(zD(spt(s,X3t))),a=DK(p)==e&&DK(p)==DK(b),o=(DK(p)==e&&b==e)^(DK(b)==e&&p==e),g&&!d&&(o||a)&&$Et(t,s,e,n);if(DK(e))for(c=new zO(NU(DK(e)));c.e!=c.i.gc();)(p=yut(s=KR(Frt(c),74)))==e&&Idt(s)&&(d=dx(zD(spt(p,(CEt(),W3t))))&&dx(zD(spt(s,X3t))))&&$Et(t,s,e,n)}(t,e,r),r}function gkt(t,e){var n,i,r,a,o,s,c;if(null==t)return null;if(0==(a=t.length))return"";for(c=WZ(Fpe,_Ct,28,a,15,1),tJ(0,a,t.length),tJ(0,a,c.length),Zz(t,0,a,c,0),n=null,s=e,r=0,o=0;r0?$G(n.a,0,a-1):"":(tJ(0,a-1,t.length),t.substr(0,a-1)):n?n.a:t}function pkt(t,e){var n,i,r,a,o;if(o=KR(e,138),xpt(t),xpt(o),null!=o.b){if(t.c=!0,null==t.b)return t.b=WZ($pe,$Ct,28,o.b.length,15,1),void ext(o.b,0,t.b,0,o.b.length);for(a=WZ($pe,$Ct,28,t.b.length+o.b.length,15,1),n=0,i=0,r=0;n=t.b.length?(a[r++]=o.b[i++],a[r++]=o.b[i++]):i>=o.b.length?(a[r++]=t.b[n++],a[r++]=t.b[n++]):o.b[i]0?t.i:0)),++e;for(het(t.n,l),t.d=n,t.r=r,t.g=0,t.f=0,t.e=0,t.o=fAt,t.p=fAt,o=new pg(t.b);o.a0&&(!(r=(!t.n&&(t.n=new ez(Qhe,t,1,7)),KR(l2(t.n,0),135)).a)||tL(tL((e.a+=' "',e),r),'"'))),!t.b&&(t.b=new bB(Uhe,t,4,7)),n=!(t.b.i<=1&&(!t.c&&(t.c=new bB(Uhe,t,5,8)),t.c.i<=1)),e.a+=n?" [":" ",tL(e,UO(new zx,new zO(t.b))),n&&(e.a+="]"),e.a+=qIt,n&&(e.a+="["),tL(e,UO(new zx,new zO(t.c))),n&&(e.a+="]"),e.a)}function wkt(t,e,n){var r,a,o,s,c,l,u;return i.Math.abs(e.s-e.c)u?new xY((fZ(),k9t),n,e,l-u):l>0&&u>0&&(new xY((fZ(),k9t),e,n,0),new xY(k9t,n,e,0))),o)}function vkt(t,e,n,i){var r,a,o,s,c,l;if(a=det(i),!dx(zD(fut(i,(CEt(),u5t))))&&!dx(zD(fut(t,V3t)))||JL(KR(fut(t,R5t),101)))switch(s=new sht,iY(s,t),e?(l=s.n,l.a=e.a-t.n.a,l.b=e.b-t.n.b,_ht(l,0,0,t.o.a,t.o.b),Vft(s,kvt(s,a))):(r=snt(a),Vft(s,n==(d4(),B7t)?r:Ytt(r))),o=KR(fut(i,(jEt(),A1t)),21),c=s.j,a.g){case 2:case 1:(c==(MTt(),cue)||c==Eue)&&o.Fc((Hmt(),KJt));break;case 4:case 3:(c==(MTt(),sue)||c==Cue)&&o.Fc((Hmt(),KJt))}else r=snt(a),s=bvt(t,n,n==(d4(),B7t)?r:Ytt(r));return s}function xkt(t,e){var n,r,a,o,s;for(s=new G5(new Jd(t.f.b).a);s.b;){if(a=KR((o=d3(s)).ld(),602),1==e){if(a.Af()!=(jtt(),zce)&&a.Af()!=Rce)continue}else if(a.Af()!=(jtt(),Fce)&&a.Af()!=$ce)continue;switch(r=KR(KR(o.md(),42).b,86),n=KR(KR(o.md(),42).a,194).c,a.Af().g){case 2:r.g.c=t.e.a,r.g.b=i.Math.max(1,r.g.b+n);break;case 1:r.g.c=r.g.c+n,r.g.b=i.Math.max(1,r.g.b-n);break;case 4:r.g.d=t.e.b,r.g.a=i.Math.max(1,r.g.a+n);break;case 3:r.g.d=r.g.d+n,r.g.a=i.Math.max(1,r.g.a-n)}}}function kkt(t,e){var n,i,r,a,o,s,c,l,h,f,d;for(i=new Dj(lN(Ypt(e).a.Kc(),new u));Rgt(i);)rO(l2((!(n=KR(bQ(i),74)).b&&(n.b=new bB(Uhe,n,4,7)),n.b),0),193)||(c=Blt(KR(l2((!n.c&&(n.c=new bB(Uhe,n,5,8)),n.c),0),84)),_gt(n)||(o=e.i+e.g/2,s=e.j+e.f/2,h=c.i+c.g/2,f=c.j+c.f/2,(d=new Hk).a=h-o,d.b=f-s,ect(a=new IA(d.a,d.b),e.g,e.f),d.a-=a.a,d.b-=a.b,o=h-d.a,s=f-d.b,ect(l=new IA(d.a,d.b),c.g,c.f),d.a-=l.a,d.b-=l.b,h=o+d.a,f=s+d.b,B2(r=Fmt(n,!0,!0),o),F2(r,s),I2(r,h),R2(r,f),kkt(t,c)))}function _kt(t){IE(t,new Dlt(xk(mk(vk(wk(new hc,aRt),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new Qs))),BV(t,aRt,oRt,Rrt(sae)),BV(t,aRt,sRt,Rrt(rae)),BV(t,aRt,cRt,Rrt(iae)),BV(t,aRt,lRt,Rrt(eae)),BV(t,aRt,uRt,Rrt(nae)),BV(t,aRt,ALt,tae),BV(t,aRt,QLt,8),BV(t,aRt,hRt,Rrt(oae)),BV(t,aRt,fRt,Rrt(Xre)),BV(t,aRt,dRt,Rrt(Qre)),BV(t,aRt,PDt,(FN(),!1))}function Tkt(t,e,n){var i,r,a,o,s,c,l,u;return i=t.a.o==(mK(),n9t)?fAt:dAt,!(s=Nvt(t,new WC(e,n))).a&&s.c?(RF(t.d,s),i):s.a?(r=s.a.c,c=s.a.d,n?(l=t.a.c==(bK(),Z8t)?c:r,a=t.a.c==Z8t?r:c,o=t.a.g[a.i.p],u=gx(t.a.p[o.p])+gx(t.a.d[a.i.p])+a.n.b+a.a.b-gx(t.a.d[l.i.p])-l.n.b-l.a.b):(l=t.a.c==(bK(),Q8t)?c:r,a=t.a.c==Q8t?r:c,u=gx(t.a.p[t.a.g[a.i.p].p])+gx(t.a.d[a.i.p])+a.n.b+a.a.b-gx(t.a.d[l.i.p])-l.n.b-l.a.b),t.a.n[t.a.g[r.i.p].p]=(FN(),!0),t.a.n[t.a.g[c.i.p].p]=!0,u):i}function Ekt(t,e,n){var i,r,a,o,s,c,l;if(xmt(t.e,e))UE(),cgt((s=KR(e,69).xk()?new VF(e,t):new DM(e,t)).c,s.b),iO(s,KR(n,16));else{for(l=Jbt(t.e.Dh(),e),i=KR(t.g,124),a=0;a"}null!=c&&(e.a+=""+c)}else t.e?null!=(s=t.e.zb)&&(e.a+=""+s):(e.a+="?",t.b?(e.a+=" super ",Mkt(t.b,e)):t.f&&(e.a+=" extends ",Mkt(t.f,e)))}function Lkt(t){var e,n,i,r,a,o,s,c,l;return!(t.k!=(Vut(),nXt)||t.j.c.length<=1||(a=KR(fut(t,(CEt(),R5t)),101),a==(plt(),Kle))||(wat(),i=(t.q?t.q:(QU(),QU(),DUt))._b(y5t)?KR(fut(t,y5t),203):KR(fut(uH(t),w5t),203),r=i,r==n7t)||r!=e7t&&r!=t7t&&(o=gx(qD(Gnt(t,p6t))),e=KR(fut(t,g6t),140),!e&&(e=new HP(o,o,o,o)),l=Met(t,(MTt(),Cue)),c=e.d+e.a+(l.gc()-1)*o,c>t.o.b||(n=Met(t,sue),s=e.d+e.a+(n.gc()-1)*o,s>t.o.b)))}function Ikt(t,e){var n,i,r,a,o,s,c,l,u,h;if(u=null,t.d&&(u=KR(ZG(t.d,e),142)),!u){if(h=(a=t.a.vi()).i,!t.d||PT(t.d)!=h){for(c=new my,t.d&&v5(c,t.d),s=l=c.f.c+c.i.c;se||dx(zD(spt(s,(ayt(),jie)))))&&(r=0,a+=l.b+n,Dy(u.c,l),w4(l=new tV(a,n),i=new h8(0,l.f,l,n)),r=0),0==i.b.c.length||!dx(zD(spt(DK(s),(ayt(),Vie))))&&(s.f>=i.o&&s.f<=i.f||.5*i.a<=s.f&&1.5*i.a>=s.f)?Het(i,s):(w4(l,o=new h8(i.s+i.r+n,l.f,l,n)),Het(o,s)),r=s.i+s.g;return Dy(u.c,l),u}function $kt(t){var e,n,i,r;if(!(null==t.b||t.b.length<=2||t.a)){for(e=0,r=0;r=t.b[r+1])r+=2;else{if(!(n0&&F9(r,-6)>=0){if(F9(r,0)>=0){for(a=n+bj(r),s=u-1;s>=a;s--)h[s+1]=h[s];return h[++a]=46,c&&(h[--n]=45),Sit(h,n,u-n+1)}for(o=2;XE(o,Set(d1(r),1));o++)h[--n]=48;return h[--n]=46,h[--n]=48,c&&(h[--n]=45),Sit(h,n,u-n)}return g=n+1,i=u,f=new Wx,c&&(f.a+="-"),i-g>=1?(Vq(f,h[n]),f.a+=".",f.a+=Sit(h,n+1,u-n-1)):f.a+=Sit(h,n,u-n),f.a+="E",F9(r,0)>0&&(f.a+="+"),f.a+=""+Zj(r),f.a}(h6(t.f),oK(t.e)),t.g):(r=vEt((!t.c&&(t.c=pY(h6(t.f))),t.c),0),0==t.e?r:(e=(!t.c&&(t.c=pY(h6(t.f))),t.c).e<0?2:1,n=r.length,i=-t.e+n-e,(a=new Vx).a+=""+r,t.e>0&&i>=-6?i>=0?AN(a,n-oK(t.e),String.fromCharCode(46)):(W5(a,e-1,e-1,"0."),AN(a,e+1,Sit(gUt,0,-oK(i)-1))):(n-e>=1&&(AN(a,e,String.fromCharCode(46)),++n),AN(a,n,String.fromCharCode(69)),i>0&&AN(a,++n,String.fromCharCode(43)),AN(a,++n,""+Zj(h6(i)))),t.g=a.a,t.g))}function Hkt(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g;for(g=new my,a=t.a.ec().Kc();a.Ob();)LH(g,i=KR(a.Pb(),177),n.af(i));for(kq(t),PI(o=t?new HB(t):HR(t.a.ec().Kc()),new Vg(g)),s=wX(o),c=new VI(e),_ft((d=new my).f,e,c);0!=s.a.gc();){for(l=null,u=null,h=null,r=s.a.ec().Kc();r.Ob();)if(i=KR(r.Pb(),177),gx(qD(FM(U$(g.f,i))))<=fAt){if(mz(d,i.a)&&!mz(d,i.b)){u=i.b,h=i.a,l=i;break}if(mz(d,i.b)&&!mz(d,i.a)){u=i.a,h=i.b,l=i;break}}if(!l)break;f=new VI(u),SO(KR(FM(U$(d.f,h)),225).a,f),_ft(d.f,u,f),s.a.Bc(l)}return c}function Ukt(t,e){var n,i,r,a,o;if(e){if(!t.a&&(t.a=new gw),2==t.e)return void sw(t.a,e);if(1==e.e){for(r=0;r=mAt?QM(n,Eet(i)):Yq(n,i&ECt),a=new WG(10,null,0),function(t,e,n){qj(n,t.a.c.length),YX(t.a,n,e)}(t.a,a,o-1)):(a.Mm().length,QM(n=new Yx,a.Mm())),0==e.e?(i=e.Km())>=mAt?QM(n,Eet(i)):Yq(n,i&ECt):QM(n,e.Mm()),KR(a,530).b=n.a}}function Gkt(t,e,n){var r,a,o;if((a=KR(fut(e,(CEt(),a3t)),282))!=(zut(),PJt)){switch(1===(n.Ug("Horizontal Compaction",1),t.a=e,function(t,e){t.g=e}(r=new Jdt(((o=new m1).d=e,o.c=KR(fut(o.d,D3t),223),function(t){var e,n,i,r,a,o,s;for(e=!1,n=0,r=new pg(t.d.b);r.a0&&m7(c,!0,(jtt(),$ce)),o.k==(Vut(),JWt)&&gH(c),LH(t.f,o,e)):((l=(i=KR(rG(Net(o)),18)).c.i)==o&&(l=i.d.i),h=new rM(l,oB(tO(o.n),l.n)),LH(t.b,o,h))}(o),Myt(o),o.a)),t.b),KR(fut(e,r3t),431).g)?ck(r,new I3(t.a)):ck(r,(ZU(),OGt)),a.g){case 1:Tpt(r);break;case 2:Tpt(aTt(r,(jtt(),$ce)));break;case 3:Tpt(lk(aTt(Tpt(r),(jtt(),$ce)),new br));break;case 4:Tpt(lk(aTt(Tpt(r),(jtt(),$ce)),new Kp(o)));break;case 5:Tpt(function(t,e){return t.b=e,t}(r,HQt))}aTt(r,(jtt(),Fce)),r.e=!0,function(t){var e,n,r,a;for(VT(nU(new k$(null,new OY(t.a.b,16)),new vr),new xr),function(t){var e,n,i,r,a;for(i=new G5(new Jd(t.b).a);i.b;)e=KR((n=d3(i)).ld(),10),a=KR(KR(n.md(),42).a,10),r=KR(KR(n.md(),42).b,8),aB(mL(e.n),aB(tO(a.n),r))}(t),VT(nU(new k$(null,new OY(t.a.b,16)),new kr),new _r),t.c==(Iet(),Qce)&&(VT(nU(Z1(new k$(null,new OY(new Zd(t.f),1)),new Tr),new Er),new Xp(t)),VT(nU(iU(Z1(Z1(new k$(null,new OY(t.d.b,16)),new Sr),new Cr),new Ar),new Mr),new Zp(t))),a=new IA(fAt,fAt),e=new IA(dAt,dAt),r=new pg(t.a.b);r.a1&&(l=u.Hg(l,t.a,c));return 1==l.c.length?KR(c$(l,l.c.length-1),238):2==l.c.length?function(t,e,n,r){var a,o,s,c,l,u,h,f,d,g,p,b,m;return o=t.f,h=e.f,s=o==(mbt(),kre)||o==Tre,c=o==_re||o==kre,f=h==_re||h==kre,!s||h!=kre&&h!=Tre?o!=_re&&o!=Ere||h!=_re&&h!=Ere?c&&f?(o==_re?(u=t,l=e):(u=e,l=t),d=n.j+n.f,g=u.e+r.f,p=i.Math.max(d,g)-i.Math.min(n.j,u.e),a=(u.d+r.g-n.i)*p,b=n.i+n.g,m=l.d+r.g,a<=(i.Math.max(b,m)-i.Math.min(n.i,l.d))*(l.e+r.f-n.j)?t.f==_re?t:e:t.f==kre?t:e):t:t.f==Ere?t:e:t.f==Tre?t:e}((LY(0,l.c.length),KR(l.c[0],238)),(LY(1,l.c.length),KR(l.c[1],238)),s,o):null}function Ykt(t){var e,n,r,a,o,s;for(V0(t.a,new Zt),n=new pg(t.a);n.a=i.Math.abs(r.b)?(r.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(e=new PM(t.i,t.g),a=(n=t.i)<100?null:new $k(n),t.Tj())for(i=0;i0){for(s=t.g,l=t.i,CQ(t),a=l<100?null:new $k(l),i=0;i4){if(!t.fk(e))return!1;if(t.al()){if(s=(n=(i=KR(e,54)).Eh())==t.e&&(t.ml()?i.yh(i.Fh(),t.il())==t.jl():-1-i.Fh()==t.Lj()),t.nl()&&!s&&!n&&i.Jh())for(r=0;r0)if(e=new _5(t.pj()),a=(n=u)<100?null:new $k(n),bP(t,n,e.g),r=1==n?t.Ij(4,l2(e,0),null,0,c):t.Ij(6,e,null,-1,c),t.Mj()){for(i=new zO(e);i.e!=i.i.gc();)a=t.Oj(Frt(i),a);a?(a.nj(r),a.oj()):t.Jj(r)}else a?(a.nj(r),a.oj()):t.Jj(r);else bP(t,t.Ej(),t.Fj()),t.Jj(t.Ij(6,(QU(),NUt),null,-1,c));else if(t.Mj())if((u=t.Ej())>0){for(s=t.Fj(),l=u,bP(t,u,s),a=l<100?null:new $k(l),i=0;i.5?m-=2*o*(g-.5):g<.5&&(m+=2*a*(.5-g)),m<(r=s.d.b)&&(m=r),p=s.d.c,m>b.a-p-u&&(m=b.a-p-u),s.n.a=e+m}}function n_t(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g;if(t.e&&t.c.c>19&&(e=x7(e),c=!c),o=function(t){var e,n,i;return(n=t.l)&n-1||(i=t.m)&i-1||(e=t.h)&e-1||0==e&&0==i&&0==n?-1:0==e&&0==i&&0!=n?T4(n):0==e&&0!=i&&0==n?T4(i)+22:0!=e&&0==i&&0==n?T4(e)+44:-1}(e),a=!1,r=!1,i=!1,t.h==iAt&&0==t.m&&0==t.l){if(r=!0,a=!0,-1!=o)return s=qgt(t,o),c&&Q7(s),n&&(RHt=zI(0,0,0)),s;t=IL((U1(),FHt)),i=!0,c=!c}else t.h>>19&&(a=!0,t=x7(t),i=!0,c=!c);return-1!=o?J7(t,o,c,a,n):Yst(t,e)<0?(n&&(RHt=a?x7(t):zI(t.l,t.m,t.h)),zI(0,0,0)):function(t,e,n,i,r,a){var o,s,c,l,u,h;for(o=Wut(e,c=z7(e)-z7(t)),s=zI(0,0,0);c>=0&&(!rst(t,o)||(c<22?s.l|=1<>>1,o.m=l>>>1|(1&u)<<21,o.l=h>>>1|(1&l)<<21,--c;return n&&Q7(s),a&&(i?(RHt=x7(t),r&&(RHt=$6(RHt,(U1(),jHt)))):RHt=zI(t.l,t.m,t.h)),s}(i?t:zI(t.l,t.m,t.h),e,c,a,r,n)}function r_t(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g;if(o=t.e,c=e.e,0==o)return e;if(0==c)return t;if((a=t.d)+(s=e.d)==2)return n=BY(t.a[0],kAt),i=BY(e.a[0],kAt),o==c?(g=bj(u=Set(n,i)),0==(d=bj(Lj(u,32)))?new iX(o,g):new Pz(o,2,t7(rk($pe,1),$Ct,28,15,[g,d]))):(lwt(),UM(o<0?Aet(i,n):Aet(n,i),0)?Xnt(o<0?Aet(i,n):Aet(n,i)):Yz(Xnt(d1(o<0?Aet(i,n):Aet(n,i)))));if(o==c)f=o,h=a>=s?VZ(t.a,a,e.a,s):VZ(e.a,s,t.a,a);else{if(0==(r=a!=s?a>s?1:-1:L8(t.a,e.a,a)))return lwt(),CUt;1==r?(f=o,h=NQ(t.a,a,e.a,s)):(f=c,h=NQ(e.a,s,t.a,a))}return OV(l=new Pz(f,h.length,h)),l}function a_t(t,e){var n,i,r,a,o,s,c;if(!(t.g>e.f||e.g>t.f)){for(n=0,i=0,o=t.w.a.ec().Kc();o.Ob();)r=KR(o.Pb(),12),_9(Y7(t7(rk(doe,1),RSt,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++n;for(s=t.r.a.ec().Kc();s.Ob();)r=KR(s.Pb(),12),_9(Y7(t7(rk(doe,1),RSt,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--n;for(c=e.w.a.ec().Kc();c.Ob();)r=KR(c.Pb(),12),_9(Y7(t7(rk(doe,1),RSt,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&++i;for(a=e.r.a.ec().Kc();a.Ob();)r=KR(a.Pb(),12),_9(Y7(t7(rk(doe,1),RSt,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&--i;n=0)return n;switch(vH(T1(t,n))){case 2:if(_B("",gtt(t,n.qk()).xe())){if(c=bpt(t,e,s=YH(T1(t,n)),KH(T1(t,n))))return c;for(o=0,l=(r=Mwt(t,e)).gc();o1,u=new GQ(d.b);BI(u.a)||BI(u.b);)f=(l=KR(BI(u.a)?jY(u.a):jY(u.b),18)).c==d?l.d:l.c,i.Math.abs(Y7(t7(rk(doe,1),RSt,8,0,[f.i.n,f.n,f.a])).b-s.b)>1&&lmt(t,l,s,o,d)}}function l_t(){l_t=E,_ge=(Jk(),kge).b,Sge=KR(l2(iG(kge.b),0),35),Tge=KR(l2(iG(kge.b),1),35),Ege=KR(l2(iG(kge.b),2),35),Bge=kge.bb,KR(l2(iG(kge.bb),0),35),KR(l2(iG(kge.bb),1),35),Fge=kge.fb,$ge=KR(l2(iG(kge.fb),0),35),KR(l2(iG(kge.fb),1),35),KR(l2(iG(kge.fb),2),19),zge=kge.qb,Uge=KR(l2(iG(kge.qb),0),35),KR(l2(iG(kge.qb),1),19),KR(l2(iG(kge.qb),2),19),qge=KR(l2(iG(kge.qb),3),35),Hge=KR(l2(iG(kge.qb),4),35),Kge=KR(l2(iG(kge.qb),6),35),Gge=KR(l2(iG(kge.qb),5),19),Cge=kge.j,Age=kge.k,Mge=kge.q,Lge=kge.w,Ige=kge.B,Oge=kge.A,Nge=kge.C,Dge=kge.D,Pge=kge._,Rge=kge.cb,jge=kge.hb}function u_t(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x;for(h=gx(qD(fut(t,(CEt(),r6t)))),r=gx(qD(fut(t,_6t))),E7(d=new Vc,r6t,h+r),y=(u=e).d,b=u.c.i,w=u.d.i,m=FL(b.c),v=FL(w.c),a=new yy,f=m;f<=v;f++)Md(c=new Bat(t),(Vut(),eXt)),E7(c,(jEt(),U1t),u),E7(c,R5t,(plt(),Kle)),E7(c,o6t,d),g=KR(c$(t.b,f),30),f==m?yst(c,g.a.c.length-n,g):nY(c,g),(x=gx(qD(fut(u,z3t))))<0&&E7(u,z3t,x=0),c.o.b=x,p=i.Math.floor(x/2),Vft(s=new sht,(MTt(),Cue)),iY(s,c),s.n.b=p,Vft(l=new sht,sue),iY(l,c),l.n.b=p,rY(u,s),p6(o=new EG,u),E7(o,J3t,null),eY(o,l),rY(o,y),tct(c,u,o),Dy(a.c,o),u=o;return a}function h_t(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g,p,b;for(s=KR(fht(t,(MTt(),Cue)).Kc().Pb(),12).e,h=KR(fht(t,sue).Kc().Pb(),12).g,o=s.c.length,b=EY(KR(c$(t.j,0),12));o-- >0;){for(LY(0,s.c.length),d=KR(s.c[0],18),LY(0,h.c.length),r=g1((i=KR(h.c[0],18)).d.e,i,0),eW(d,i.d,r),eY(i,null),rY(i,null),f=d.a,e&&RF(f,new KL(b)),n=Mrt(i.a,0);n.b!=n.d.c;)RF(f,new KL(KR(gW(n),8)));for(p=d.b,u=new pg(i.b);u.a-2;default:return!1}switch(e=t.Rj(),t.p){case 0:return null!=e&&dx(zD(e))!=GM(t.k,0);case 1:return null!=e&&KR(e,222).a!=bj(t.k)<<24>>24;case 2:return null!=e&&KR(e,180).a!=(bj(t.k)&ECt);case 6:return null!=e&&GM(KR(e,168).a,t.k);case 5:return null!=e&&KR(e,17).a!=bj(t.k);case 7:return null!=e&&KR(e,191).a!=bj(t.k)<<16>>16;case 3:return null!=e&&gx(qD(e))!=t.j;case 4:return null!=e&&KR(e,161).a!=t.j;default:return null==e?null!=t.n:!wtt(e,t.n)}}function g_t(t,e,n){var i,r,a,o;return t.ol()&&t.nl()&&$M(o=yz(t,KR(n,58)))!==$M(n)?(t.xj(e),t.Dj(e,MJ(t,0,o)),t.al()&&(r=KR(n,54),a=t.ml()?t.kl()?r.Th(t.b,Oat(KR(N0(RG(t.b),t.Lj()),19)).n,KR(N0(RG(t.b),t.Lj()).Hk(),29).kk(),null):r.Th(t.b,knt(r.Dh(),Oat(KR(N0(RG(t.b),t.Lj()),19))),null,null):r.Th(t.b,-1-t.Lj(),null,null),!KR(o,54).Ph()&&(i=KR(o,54),a=t.ml()?t.kl()?i.Rh(t.b,Oat(KR(N0(RG(t.b),t.Lj()),19)).n,KR(N0(RG(t.b),t.Lj()).Hk(),29).kk(),a):i.Rh(t.b,knt(i.Dh(),Oat(KR(N0(RG(t.b),t.Lj()),19))),null,a):i.Rh(t.b,-1-t.Lj(),null,a)),a&&a.oj()),ZL(t.b)&&t.Jj(t.Ij(9,n,o,e,!1)),o):n}function p_t(t){var e,n,i,r,a,o,s,c,l,u;for(i=new yy,o=new pg(t.e.a);o.a0&&(s=i.Math.max(s,Y3(t.C.b+r.d.b,a))),h=r,f=a,d=o;t.C&&t.C.c>0&&(g=d+t.C.c,u&&(g+=h.d.c),s=i.Math.max(s,(CI(),p4(HMt),i.Math.abs(f-1)<=HMt||1==f||isNaN(f)&&isNaN(1)?0:g/(1-f)))),n.n.b=0,n.a.a=s}function m_t(t,e){var n,r,a,o,s,c,l,u,h,f,d,g;if(n=KR(zH(t.b,e),127),(l=KR(KR(IQ(t.r,e),21),87)).dc())return n.n.d=0,void(n.n.a=0);for(u=t.u.Hc((cdt(),eue)),s=0,t.A.Hc((ait(),Fue))&&$yt(t,e),c=l.Kc(),h=null,d=0,f=0;c.Ob();)o=gx(qD((r=KR(c.Pb(),117)).b.of((RN(),JKt)))),a=r.b.Mf().b,h?(g=f+h.d.a+t.w+r.d.d,s=i.Math.max(s,(CI(),p4(HMt),i.Math.abs(d-o)<=HMt||d==o||isNaN(d)&&isNaN(o)?0:g/(o-d)))):t.C&&t.C.d>0&&(s=i.Math.max(s,Y3(t.C.d+r.d.d,o))),h=r,d=o,f=a;t.C&&t.C.a>0&&(g=f+t.C.a,u&&(g+=h.d.a),s=i.Math.max(s,(CI(),p4(HMt),i.Math.abs(d-1)<=HMt||1==d||isNaN(d)&&isNaN(1)?0:g/(1-d)))),n.n.d=0,n.a.b=s}function y_t(t,e,n,i,r,a,o,s){var c,l,u,h,f,d,g,p;if(d=!1,c=Tbt(n.q,e.f+e.b-n.q.f),f=i.f>e.b&&s,u=rkt(i,p=r-(n.q.e+c-o),!1).a,f&&u>i.f)return!1;if(f){for(h=0,g=new pg(e.d);g.a=(LY(a,t.c.length),KR(t.c[a],186)).e,!f&&u>e.b&&!l))&&((l||f||u<=e.b)&&(l&&u>e.b?(n.d=u,vJ(n,bht(n,u))):(jct(n.q,c),n.c=!0),vJ(i,r-(n.s+n.r)),Cat(i,n.q.e+n.q.d,e.f),w4(e,i),t.c.length>a&&(Rst((LY(a,t.c.length),KR(t.c[a],186)),i),0==(LY(a,t.c.length),KR(t.c[a],186)).a.c.length&&PQ(t,a)),d=!0),d)}function w_t(t,e,n){var i,r,a,o,s,c;for(this.g=t,s=e.d.length,c=n.d.length,this.d=WZ(QWt,KIt,10,s+c,0,1),o=0;o0?n2(this,this.f/this.a):null!=vO(e.g,e.d[0]).a&&null!=vO(n.g,n.d[0]).a?n2(this,(gx(vO(e.g,e.d[0]).a)+gx(vO(n.g,n.d[0]).a))/2):null!=vO(e.g,e.d[0]).a?n2(this,vO(e.g,e.d[0]).a):null!=vO(n.g,n.d[0]).a&&n2(this,vO(n.g,n.d[0]).a)}function v_t(t,e){var n,i,r,a,o,s,c,l,u;for(t.a=new jq(function(t){var e,n;return n=(e=KR(t.e&&t.e(),9)).slice(),new UB(e,KR(LJ(n,e),9),e.length)}(Hce)),i=new pg(e.a);i.a=1&&(b-o>0&&h>=0?(c.n.a+=p,c.n.b+=a*o):b-o<0&&u>=0&&(c.n.a+=p*b,c.n.b+=a));t.o.a=e.a,t.o.b=e.b,E7(t,(CEt(),x5t),(ait(),new UB(i=KR(t_(jue),9),KR(jP(i,i.length),9),0)))}function __t(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m;if(n.Ug("Network simplex layering",1),t.b=e,m=4*KR(fut(e,(CEt(),b6t)),17).a,(b=t.b.a).c.length<1)n.Vg();else{for(p=null,a=Mrt(o=function(t,e){var n,i,r,a,o;for(null==t.c||t.c.length1)for(p=WZ($pe,$Ct,28,t.b.b.c.length,15,1),h=0,u=new pg(t.b.b);u.a=n}(this.k)}function S_t(t){var e,n,r,a,o,s,c;for(e=0,o=new pg(t.b.a);o.adAt||e.o==e9t&&u=s&&r<=c)s<=r&&a<=c?(n[u++]=r,n[u++]=a,i+=2):s<=r?(n[u++]=r,n[u++]=c,t.b[i]=c+1,o+=2):a<=c?(n[u++]=s,n[u++]=a,i+=2):(n[u++]=s,n[u++]=c,t.b[i]=c+1);else{if(!(cdCt)&&c<10);gk(t.c,new ve),S_t(t),function(t){oTt(t,(jtt(),Fce)),t.d=!0}(t.c),function(t){var e,n,r,a,o,s,c,l;for(o=new pg(t.a.b);o.a=2){for(o=KR(gW(c=Mrt(n,0)),8),s=KR(gW(c),8);s.a=t.j?(++t.j,SO(t.b,ttt(1)),SO(t.c,l)):(i=t.d[e.p][1],YX(t.b,c,ttt(KR(c$(t.b,c),17).a+1-i)),YX(t.c,c,gx(qD(c$(t.c,c)))+l-i*t.f)),(t.r==(Twt(),b7t)&&(KR(c$(t.b,c),17).a>t.k||KR(c$(t.b,c-1),17).a>t.k)||t.r==w7t&&(gx(qD(c$(t.c,c)))>t.n||gx(qD(c$(t.c,c-1)))>t.n))&&(s=!1),a=new Dj(lN(Det(e).a.Kc(),new u));Rgt(a);)o=KR(bQ(a),18).c.i,t.g[o.p]==c&&(r+=KR((h=N_t(t,o)).a,17).a,s=s&&dx(zD(h.b)));return t.g[e.p]=c,new rM(ttt(r+=t.d[e.p][0]),(FN(),!!s))}function D_t(t,e){var n,i;gx(qD(fut(e,(CEt(),e6t))))<2&&E7(e,e6t,2),KR(fut(e,C3t),88)==(jtt(),jce)&&E7(e,C3t,det(e)),0==(n=KR(fut(e,W5t),17)).a?E7(e,(jEt(),e0t),new pnt):E7(e,(jEt(),e0t),new vX(n.a)),null==zD(fut(e,b5t))&&E7(e,b5t,(FN(),$M(fut(e,D3t))===$M((Iet(),Wce)))),VT(new k$(null,new OY(e.a,16)),new cp(t)),VT(Z1(new k$(null,new OY(e.b,16)),new ge),new lp(t)),i=new x_t(e),E7(e,(jEt(),o0t),i),GH(t.a),Fz(t.a,(dut(),uWt),KR(fut(e,E3t),188)),Fz(t.a,hWt,KR(fut(e,c5t),188)),Fz(t.a,fWt,KR(fut(e,T3t),188)),Fz(t.a,dWt,KR(fut(e,v5t),188)),Fz(t.a,gWt,function(t){var e;return MI(),QE(a9t,t)||((e=new ao).a=t,$P(a9t,t,e)),KR(zH(a9t,t),645)}(KR(fut(e,D3t),223))),HL(t.a,function(t){var e,n,i;switch(n=KR(fut(t,(jEt(),A1t)),21),e=XL(oWt),KR(fut(t,(CEt(),U3t)),346)==(V9(),ble)&&V5(e,sWt),dx(zD(fut(t,q3t)))?QF(e,(dut(),uWt),(qEt(),bQt)):QF(e,(dut(),fWt),(qEt(),bQt)),null!=fut(t,(uZ(),uoe))&&V5(e,cWt),(dx(zD(fut(t,Q3t)))||dx(zD(fut(t,H3t))))&&dj(e,(dut(),gWt),(qEt(),LXt)),KR(fut(t,C3t),88).g){case 2:case 3:case 4:dj(QF(e,(dut(),uWt),(qEt(),OXt)),gWt,IXt)}switch(n.Hc((Hmt(),jJt))&&dj(QF(QF(e,(dut(),uWt),(qEt(),MXt)),dWt,CXt),gWt,AXt),$M(fut(t,s5t))!==$M((Twt(),x7t))&&QF(e,(dut(),fWt),(qEt(),cQt)),n.Hc(YJt)&&(QF(e,(dut(),uWt),(qEt(),gQt)),QF(e,hWt,fQt),QF(e,fWt,dQt)),$M(fut(t,a3t))!==$M((zut(),PJt))&&$M(fut(t,D3t))!==$M((Iet(),Xce))&&dj(e,(dut(),gWt),(qEt(),GXt)),dx(zD(fut(t,K3t)))&&QF(e,(dut(),fWt),(qEt(),UXt)),dx(zD(fut(t,_3t)))&&QF(e,(dut(),fWt),(qEt(),kQt)),function(t){var e,n,i,r;return $M(fut(t,(CEt(),U3t)))===$M((V9(),ble))?!t.e&&$M(fut(t,b3t))!==$M((_6(),QJt)):(i=KR(fut(t,m3t),299),r=dx(zD(fut(t,_3t)))||$M(fut(t,T3t))===$M((A4(),$Zt)),e=KR(fut(t,p3t),17).a,n=t.a.c.length,!r&&i!=(_6(),QJt)&&(0==e||e>n))}(t)&&(i=($M(fut(t,U3t))===$M(ble)?KR(fut(t,b3t),299):KR(fut(t,m3t),299))==(_6(),ZJt)?(qEt(),hQt):(qEt(),EQt),QF(e,(dut(),dWt),i)),KR(fut(t,I6t),388).g){case 1:QF(e,(dut(),dWt),(qEt(),_Qt));break;case 2:dj(QF(QF(e,(dut(),fWt),(qEt(),_Xt)),dWt,TXt),gWt,EXt)}return $M(fut(t,f3t))!==$M((Mit(),S7t))&&QF(e,(dut(),fWt),(qEt(),TQt)),e}(e)),E7(e,t0t,n_t(t.a,e))}function P_t(t,e,n,r,a){var o,s,c,l,u,h,f,d,g,p,b,m,y;for(f=new my,s=new yy,vft(t,n,t.d.Ag(),s,f),vft(t,r,t.d.Bg(),s,f),t.b=.2*(b=Jgt(Z1(new k$(null,new OY(s,16)),new yo)),m=Jgt(Z1(new k$(null,new OY(s,16)),new wo)),i.Math.min(b,m)),o=0,c=0;c=2&&(y=Qpt(s,!0,d),!t.e&&(t.e=new Rb(t)),qit(t.e,y,s,t.b)),vlt(s,d),function(t){var e,n,r,a,o,s,c,l,u;for(l=new yy,s=new yy,o=new pg(t);o.a-1){for(a=new pg(s);a.a0)&&(Fd(c,i.Math.min(c.o,r.o-1)),Rd(c,c.i-1),0==c.i&&Dy(s.c,c))}}(s),g=-1,h=new pg(s);h.a0&&0==n.c&&(!e&&(e=new yy),Dy(e.c,n));if(e)for(;0!=e.c.length;){if((n=KR(PQ(e,0),239)).b&&n.b.c.length>0)for(!n.b&&(n.b=new yy),a=new pg(n.b);a.ag1(t,n,0))return new rM(r,n)}else if(gx(vO(r.g,r.d[0]).a)>gx(vO(n.g,n.d[0]).a))return new rM(r,n);for(s=(!n.e&&(n.e=new yy),n.e).Kc();s.Ob();)!(o=KR(s.Pb(),239)).b&&(o.b=new yy),MY(0,(c=o.b).c.length),NS(c.c,0,n),o.c==c.c.length&&Dy(e.c,o)}return null}function q_t(t,e){var n,i,r,a,o,s,c,l,u;if(5!=e.e){if(null!=(l=e).b&&null!=t.b){for(xpt(t),$kt(t),xpt(l),$kt(l),n=WZ($pe,$Ct,28,t.b.length+l.b.length,15,1),u=0,i=0,o=0;i=s&&r<=c)s<=r&&a<=c?i+=2:s<=r?(t.b[i]=c+1,o+=2):a<=c?(n[u++]=r,n[u++]=s-1,i+=2):(n[u++]=r,n[u++]=s-1,t.b[i]=c+1,o+=2);else{if(!(c2?(G6(l=new yy,new yY(g,1,g.b)),p6(p=new Hgt(TEt(l,b+t.a)),e),Dy(n.c,p)):p=KR(Oq(t.b,r?yut(e):xut(e)),272),s=yut(e),r&&(s=xut(e)),o=function(t,e){var n,r,a;return a=ILt,Zrt(),r=vYt,a=i.Math.abs(t.b),(n=i.Math.abs(e.f-t.b))0?1:0;a.a[r]!=n;)a=a.a[r],r=t.a.Ne(n.d,a.d)>0?1:0;a.a[r]=i,i.b=n.b,i.a[0]=n.a[0],i.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}(t,c,o,u=new nJ(h.d,h.e)),f==o&&(f=u)),f.a[f.a[1]==h?1:0]=h.a[h.a[0]?0:1],--t.c),t.b=c.a[1],t.b&&(t.b.b=!1),n.b}function G_t(t,e,n){var r,a,o,s,c,l,u,h,f,d;if(n)for(r=-1,h=new CV(e,0);h.b=14&&s<=16?rO(i,183)?FQ(n,Uft(KR(i,183))):rO(i,195)?FQ(n,blt(KR(i,195))):rO(i,201)?FQ(n,iht(KR(i,201))):rO(i,2111)?FQ(n,mlt(KR(i,2111))):rO(i,53)?FQ(n,Hft(KR(i,53))):rO(i,376)?FQ(n,udt(KR(i,376))):rO(i,846)?FQ(n,qft(KR(i,846))):rO(i,109)&&FQ(n,zft(KR(i,109))):e.a._b(i)?(n.a?tL(n.a,n.b):n.a=new pN(n.d),ZM(n.a,"[...]")):FQ(n,K_t(X2(i),new y$(e))):FQ(n,null==i?wSt:Get(i));return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function Y_t(t,e){var n,i,r,a;a=t.F,null==e?(t.F=null,K8(t,null)):(t.F=(yH(e),e),-1!=(i=NL(e,Wlt(60)))?(tJ(0,i,e.length),r=e.substr(0,i),-1==NL(e,Wlt(46))&&!_B(r,aSt)&&!_B(r,Jjt)&&!_B(r,tzt)&&!_B(r,ezt)&&!_B(r,nzt)&&!_B(r,izt)&&!_B(r,rzt)&&!_B(r,azt)&&(r=ozt),-1!=(n=fN(e,Wlt(62)))&&(r+=""+(IY(n+1,e.length+1),e.substr(n+1))),K8(t,r)):(r=e,-1==NL(e,Wlt(46))&&(-1!=(i=NL(e,Wlt(91)))&&(tJ(0,i,e.length),r=e.substr(0,i)),_B(r,aSt)||_B(r,Jjt)||_B(r,tzt)||_B(r,ezt)||_B(r,nzt)||_B(r,izt)||_B(r,rzt)||_B(r,azt)?r=e:(r=ozt,-1!=i&&(r+=""+(IY(i,e.length+1),e.substr(i))))),K8(t,r),r==e&&(t.F=t.D))),4&t.Db&&!(1&t.Db)&&Q5(t,new nz(t,1,5,a,e))}function V_t(t,e){var n,i,r,a,o,s,c,l;if(IY(s=e.length-1,e.length),93==(o=e.charCodeAt(s))){if((a=NL(e,Wlt(91)))>=0)return r=function(t,e){var n;if(rO(n=Bbt(t.Dh(),e),102))return KR(n,19);throw Ay(new Tx(OFt+e+"' is not a valid reference"))}(t,(tJ(1,a,e.length),e.substr(1,a-1))),tJ(a+1,s,e.length),function(t,e,n){var i,r,a,o,s,c,l,u,h,f;for(c=new yy,h=e.length,o=q7(n),l=0;l=0?t.Lh(l,!1,!0):jdt(t,n,!1),61).Kc();a.Ob();){for(r=KR(a.Pb(),58),u=0;u=0){i=KR(EQ(t,K0(t,(tJ(1,n,e.length),e.substr(1,n-1))),!1),61),c=0;try{c=evt((IY(n+1,e.length+1),e.substr(n+1)),gCt,lSt)}catch(t){throw rO(t=j6(t),130)?Ay(new y1(t)):Ay(t)}if(c>16==-10?n=KR(t.Cb,292).Yk(e,n):t.Db>>16==-15&&(!e&&(KEt(),e=yde),!s&&(KEt(),s=yde),t.Cb.Yh()&&(o=new M1(t.Cb,1,13,s,e,dat(k1(KR(t.Cb,62)),t),!1),n?n.nj(o):n=o));else if(rO(t.Cb,90))t.Db>>16==-23&&(rO(e,90)||(KEt(),e=xde),rO(s,90)||(KEt(),s=xde),t.Cb.Yh()&&(o=new M1(t.Cb,1,10,s,e,dat(JW(KR(t.Cb,29)),t),!1),n?n.nj(o):n=o));else if(rO(t.Cb,457))for(!(a=KR(t.Cb,850)).b&&(a.b=new ly(new uv)),r=new uy(new G5(new Jd(a.b.a).a));r.a.b;)n=W_t(i=KR(d3(r.a).ld(),89),Jpt(i,a),n);return n}function X_t(t){var e,n,r,a,o,s,c,l,u,h,f,d;if((d=KR(spt(t,(zEt(),Sse)),21)).dc())return null;if(c=0,s=0,d.Hc((ait(),Rue))){for(h=KR(spt(t,Wse),101),r=2,n=2,a=2,o=2,e=DK(t)?KR(spt(DK(t),ese),88):KR(spt(t,ese),88),u=new zO((!t.c&&(t.c=new ez(Jhe,t,9,9)),t.c));u.e!=u.i.gc();)if(l=KR(Frt(u),123),(f=KR(spt(l,nce),64))==(MTt(),Sue)&&(f=Qvt(l,e),nat(l,nce,f)),h==(plt(),Kle))switch(f.g){case 1:r=i.Math.max(r,l.i+l.g);break;case 2:n=i.Math.max(n,l.j+l.f);break;case 3:a=i.Math.max(a,l.i+l.g);break;case 4:o=i.Math.max(o,l.j+l.f)}else switch(f.g){case 1:r+=l.g+2;break;case 2:n+=l.f+2;break;case 3:a+=l.g+2;break;case 4:o+=l.f+2}c=i.Math.max(r,a),s=i.Math.max(n,o)}return DTt(t,c,s,!0,!0)}function Q_t(t,e,n,r,a){var o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x;for(w=KR(bX(q0(nU(new k$(null,new OY(e.d,16)),new ib(n)),new rb(n)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15),f=lSt,h=gCt,l=new pg(e.b.j);l.a0)?l&&(u=p.p,o?++u:--u,h=!(wbt(i=d7(KR(c$(p.c.a,u),10)),v,n[0])||Wj(i,v,n[0]))):h=!0),f=!1,(w=e.D.i)&&w.c&&s.e&&(o&&w.p>0||!o&&w.po?1:DL(isNaN(0),isNaN(o)))<0&&(p4(wPt),(i.Math.abs(o-1)<=wPt||1==o||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:DL(isNaN(o),isNaN(1)))<0)&&(p4(wPt),(i.Math.abs(0-s)<=wPt||0==s||isNaN(0)&&isNaN(s)?0:0s?1:DL(isNaN(0),isNaN(s)))<0)&&(p4(wPt),(i.Math.abs(s-1)<=wPt||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:DL(isNaN(s),isNaN(1)))<0))}function rTt(t,e,n){var r;if(n.Ug("StretchWidth layering",1),0!=e.a.c.length){for(t.c=e,t.t=0,t.u=0,t.i=fAt,t.g=dAt,t.d=gx(qD(fut(e,(CEt(),e6t)))),function(t){var e,n,i;for(i=t.c.a,t.p=(kq(i),new HB(i)),n=new pg(i);n.a0&&(e.a+=dSt),sTt(KR(Frt(o),167),e);for(e.a+=qIt,s=new KN((!i.c&&(i.c=new bB(Uhe,i,5,8)),i.c));s.e!=s.i.gc();)s.e>0&&(e.a+=dSt),sTt(KR(Frt(s),167),e);e.a+=")"}}}function cTt(t,e,n){var r,a,o,s,c,l,h,f;switch(n.Ug("Node promotion heuristic",1),t.i=e,t.r=KR(fut(e,(CEt(),s5t)),243),t.r!=(Twt(),g7t)&&t.r!=p7t?function(t){var e,n,r,a,o,s,c,l,h,f,d,g,p,b,m;for(t.o=gx(qD(fut(t.i,(CEt(),h6t)))),t.f=gx(qD(fut(t.i,a6t))),t.j=t.i.b.c.length,c=t.j-1,g=0,t.k=0,t.n=0,t.b=OQ(WZ(nUt,RSt,17,t.j,0,1)),t.c=OQ(WZ(ZHt,RSt,345,t.j,7,1)),s=new pg(t.i.b);s.a0&&SO(t.q,f),SO(t.p,f);p=l+(e-=r),h+=e*t.f,YX(t.b,c,ttt(p)),YX(t.c,c,h),t.k=i.Math.max(t.k,p),t.n=i.Math.max(t.n,h),t.e+=e,e+=m}}(t):function(t){var e,n,i,r,a,o,s;for(t.a=new WP,s=0,r=0,i=new pg(t.i.b);i.at.k&&(t.r=b7t,Dkt(t,o));break;case 4:for(t.r=k7t,Dkt(t,o),h=0,a=new pg(t.c);a.at.n&&(t.r=w7t,Dkt(t,o));break;case 6:Dkt(t,new Fp(oK(i.Math.ceil(t.g.length*f/100))));break;case 5:Dkt(t,new $p(oK(i.Math.ceil(t.e*f/100))));break;case 8:OEt(t,!0);break;case 9:OEt(t,!1)}t.r!=g7t&&t.r!=p7t?function(t,e){var n,i,r,a,o,s;for(r=new yy,n=0;n<=t.j;n++)(i=new $q(e)).p=t.j-n,Dy(r.c,i);for(s=new pg(t.p);s.a0&&(t.c[e.c.p][e.p].d+=Xpt(t.i,24)*RAt*.07000000029802322-.03500000014901161,t.c[e.c.p][e.p].a=t.c[e.c.p][e.p].d/t.c[e.c.p][e.p].b)}}function fTt(t,e){var n,i,r,a,o,s,c,l,u;return l="",0==e.length?t.ne(kCt,vCt,-1,-1):(_B((u=bft(e)).substr(0,3),"at ")&&(IY(3,u.length+1),u=u.substr(3)),-1==(o=(u=u.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(o=u.indexOf("@"))?(l=u,u=""):(l=bft((IY(o+1,u.length+1),u.substr(o+1))),u=bft((tJ(0,o,u.length),u.substr(0,o)))):(tJ(o+1,n=u.indexOf(")",o),u.length),l=u.substr(o+1,n-(o+1)),u=bft((tJ(0,o,u.length),u.substr(0,o)))),-1!=(o=NL(u,Wlt(46)))&&(IY(o+1,u.length+1),u=u.substr(o+1)),(0==u.length||_B(u,"Anonymous function"))&&(u=vCt),s=fN(l,Wlt(58)),r=EB(l,Wlt(58),s-1),c=-1,i=-1,a=kCt,-1!=s&&-1!=r&&(tJ(0,r,l.length),a=l.substr(0,r),c=XN((tJ(r+1,s,l.length),l.substr(r+1,s-(r+1)))),i=XN((IY(s+1,l.length+1),l.substr(s+1)))),t.ne(a,u,c,i))}function dTt(t,e,n,r,a){var o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_;for(_=0,g=0,f=new pg(e.e);f.a=u&&k>=m&&(d+=p.n.b+b.n.b+b.a.b-x,++c));if(n)for(s=new pg(w.e);s.a=u&&k>=m&&(d+=p.n.b+b.n.b+b.a.b-x,++c))}c>0&&(_+=d/c,++g)}g>0?(e.a=a*_/g,e.g=g):(e.a=0,e.g=0)}function gTt(t,e,n,r){var a,o,s,c,l;return function(t,e){var n,i,r,a;for(n=!e||!t.u.Hc((cdt(),eue)),a=0,r=new pg(t.e.Xf());r.ar.d,r.d=i.Math.max(r.d,e),c&&n&&(r.d=i.Math.max(r.d,r.a),r.a=r.d+a);break;case 3:n=e>r.a,r.a=i.Math.max(r.a,e),c&&n&&(r.a=i.Math.max(r.a,r.d),r.d=r.a+a);break;case 2:n=e>r.c,r.c=i.Math.max(r.c,e),c&&n&&(r.c=i.Math.max(r.b,r.c),r.b=r.c+a);break;case 4:n=e>r.b,r.b=i.Math.max(r.b,e),c&&n&&(r.b=i.Math.max(r.b,r.c),r.c=r.b+a)}}}(c),function(t){switch(t.q.g){case 5:lct(t,(MTt(),cue)),lct(t,Eue);break;case 4:b_t(t,(MTt(),cue)),b_t(t,Eue);break;default:oft(t,(MTt(),cue)),oft(t,Eue)}}(c),function(t){switch(t.q.g){case 5:uct(t,(MTt(),sue)),uct(t,Cue);break;case 4:m_t(t,(MTt(),sue)),m_t(t,Cue);break;default:sft(t,(MTt(),sue)),sft(t,Cue)}}(c),function(t){var e,n,i,r,a,o,s;if(!t.A.dc()){if(t.A.Hc((ait(),Rue))&&(KR(zH(t.b,(MTt(),cue)),127).k=!0,KR(zH(t.b,Eue),127).k=!0,e=t.q!=(plt(),Yle)&&t.q!=Kle,Sd(KR(zH(t.b,sue),127),e),Sd(KR(zH(t.b,Cue),127),e),Sd(t.g,e),t.A.Hc(Fue)&&(KR(zH(t.b,cue),127).j=!0,KR(zH(t.b,Eue),127).j=!0,KR(zH(t.b,sue),127).k=!0,KR(zH(t.b,Cue),127).k=!0,t.g.k=!0)),t.A.Hc(Bue))for(t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,s=t.B.Hc((Vwt(),Kue)),a=0,o=(r=Ert()).length;a1)for(UX(w,new XC(t,d=new Wkt(g,w,r))),Dy(s.c,d),h=w.a.ec().Kc();h.Ob();)u1(o,KR(h.Pb(),42).b);if(c.a.gc()>1)for(UX(c,new QC(t,d=new Wkt(g,c,r))),Dy(s.c,d),h=c.a.ec().Kc();h.Ob();)u1(o,KR(h.Pb(),42).b)}}function mTt(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y;if(b=t.n,m=t.o,d=t.d,f=gx(qD(Gnt(t,(CEt(),Z5t)))),e){for(h=f*(e.gc()-1),g=0,l=e.Kc();l.Ob();)h+=(s=KR(l.Pb(),10)).o.a,g=i.Math.max(g,s.o.b);for(y=b.a-(h-m.a)/2,o=b.b-d.d+g,a=r=m.a/(e.gc()+1),c=e.Kc();c.Ob();)(s=KR(c.Pb(),10)).n.a=y,s.n.b=o-s.o.b,y+=s.o.a+f,(u=rbt(s)).n.a=s.o.a/2-u.a.a,u.n.b=s.o.b,(p=KR(fut(s,(jEt(),d1t)),12)).e.c.length+p.g.c.length==1&&(p.n.a=a-p.a.a,p.n.b=0,iY(p,t)),a+=r}if(n){for(h=f*(n.gc()-1),g=0,l=n.Kc();l.Ob();)h+=(s=KR(l.Pb(),10)).o.a,g=i.Math.max(g,s.o.b);for(y=b.a-(h-m.a)/2,o=b.b+m.b+d.a-g,a=r=m.a/(n.gc()+1),c=n.Kc();c.Ob();)(s=KR(c.Pb(),10)).n.a=y,s.n.b=o,y+=s.o.a+f,(u=rbt(s)).n.a=s.o.a/2-u.a.a,u.n.b=0,(p=KR(fut(s,(jEt(),d1t)),12)).e.c.length+p.g.c.length==1&&(p.n.a=a-p.a.a,p.n.b=m.b,iY(p,t)),a+=r}}function yTt(t,e,n,i){var r,a,o,s,c,l,u,h,f,d,g,p;for(c=new IA(i.i+i.g/2,i.j+i.f/2),f=jkt(i),d=KR(spt(e,(CEt(),R5t)),101),p=KR(spt(i,q5t),64),_M(Brt(i),B5t)||(g=0==i.i&&0==i.j?0:function(t,e){var n;if(!dK(t))throw Ay(new Ex(gFt));switch(n=dK(t),e.g){case 1:return-(t.j+t.f);case 2:return t.i-n.g;case 3:return t.j-n.f;case 4:return-(t.i+t.g)}return 0}(i,p),nat(i,B5t,g)),E7(r=eEt(i,d,p,f,new IA(e.g,e.f),c,new IA(i.g,i.f),KR(fut(n,C3t),88),n),(jEt(),U1t),i),function(t,e){t.c=e}(a=KR(c$(r.j,0),12),function(t){var e,n,i,r,a;for(a=dK(t),r=new zO((!t.e&&(t.e=new bB(Ghe,t,7,4)),t.e));r.e!=r.i.gc();)if(i=KR(Frt(r),74),!Y0(Blt(KR(l2((!i.c&&(i.c=new bB(Uhe,i,5,8)),i.c),0),84)),a))return!0;for(n=new zO((!t.d&&(t.d=new bB(Ghe,t,8,5)),t.d));n.e!=n.i.gc();)if(e=KR(Frt(n),74),!Y0(Blt(KR(l2((!e.b&&(e.b=new bB(Uhe,e,4,7)),e.b),0),84)),a))return!0;return!1}(i)),E7(r,j5t,(cdt(),fet(iue))),u=KR(spt(e,j5t),181).Hc(eue),s=new zO((!i.n&&(i.n=new ez(Qhe,i,1,7)),i.n));s.e!=s.i.gc();)if(!dx(zD(spt(o=KR(Frt(s),135),E5t)))&&o.a&&(h=O9(o),SO(a.f,h),!u))switch(l=0,Xj(KR(spt(e,j5t),21))&&(l=kdt(new IA(o.i,o.j),new IA(o.g,o.f),new IA(i.g,i.f),0,p)),p.g){case 2:case 4:h.o.a=l;break;case 1:case 3:h.o.b=l}E7(r,l6t,qD(spt(DK(e),l6t))),E7(r,u6t,qD(spt(DK(e),u6t))),E7(r,s6t,qD(spt(DK(e),s6t))),SO(n.a,r),LH(t.a,i,r)}function wTt(t,e,n,i,r,a){var o,s,c,l,u,h;for(p6(l=new sht,e),Vft(l,KR(spt(e,(CEt(),q5t)),64)),E7(l,(jEt(),U1t),e),iY(l,n),(h=l.o).a=e.g,h.b=e.f,(u=l.n).a=e.i,u.b=e.j,LH(t.a,e,l),(o=nQ(iU(Z1(new k$(null,(!e.e&&(e.e=new bB(Ghe,e,7,4)),new OY(e.e,16))),new Ve),new Ke),new wp(e)))||(o=nQ(iU(Z1(new k$(null,(!e.d&&(e.d=new bB(Ghe,e,8,5)),new OY(e.d,16))),new We),new Ye),new vp(e))),o||(o=nQ(new k$(null,(!e.e&&(e.e=new bB(Ghe,e,7,4)),new OY(e.e,16))),new Xe)),E7(l,I1t,(FN(),!!o)),function(t,e,n,i){var r,a,o,s,c,l;if((s=t.j)==(MTt(),Sue)&&e!=(plt(),Wle)&&e!=(plt(),Xle)&&(Vft(t,s=kvt(t,n)),!(t.q?t.q:(QU(),QU(),DUt))._b((CEt(),B5t))&&s!=Sue&&(0!=t.n.a||0!=t.n.b)&&E7(t,B5t,function(t,e){var n;switch(n=t.i,e.g){case 1:return-(t.n.b+t.o.b);case 2:return t.n.a-n.o.a;case 3:return t.n.b-n.o.b;case 4:return-(t.n.a+t.o.a)}return 0}(t,s))),e==(plt(),Yle)){switch(l=0,s.g){case 1:case 3:(a=t.i.o.a)>0&&(l=t.n.a/a);break;case 2:case 4:(r=t.i.o.b)>0&&(l=t.n.b/r)}E7(t,(jEt(),J1t),l)}if(c=t.o,o=t.a,i)o.a=i.a,o.b=i.b,t.d=!0;else if(e!=Wle&&e!=Xle&&s!=Sue)switch(s.g){case 1:o.a=c.a/2;break;case 2:o.a=c.a,o.b=c.b/2;break;case 3:o.a=c.a/2,o.b=c.b;break;case 4:o.b=c.b/2}else o.a=c.a/2,o.b=c.b/2}(l,a,r,KR(spt(e,P5t),8)),c=new zO((!e.n&&(e.n=new ez(Qhe,e,1,7)),e.n));c.e!=c.i.gc();)!dx(zD(spt(s=KR(Frt(c),135),E5t)))&&s.a&&SO(l.f,O9(s));switch(r.g){case 2:case 1:(l.j==(MTt(),cue)||l.j==Eue)&&i.Fc((Hmt(),KJt));break;case 4:case 3:(l.j==(MTt(),sue)||l.j==Cue)&&i.Fc((Hmt(),KJt))}return l}function vTt(t){var e;if(this.r=function(t,e){return new cG(KR(kq(t),50),KR(kq(e),50))}(new Et,new St),this.b=new Uet(KR(kq(Due),297)),this.p=new Uet(KR(kq(Due),297)),this.i=new Uet(KR(kq(tYt),297)),this.e=t,this.o=new KL(t.Mf()),this.D=t.Yf()||dx(zD(t.of((zEt(),gse)))),this.A=KR(t.of((zEt(),Sse)),21),this.B=KR(t.of(Ise),21),this.q=KR(t.of(Wse),101),this.u=KR(t.of(Jse),21),!function(t){var e;return cdt(),!(g6(eK(Z$(eue,t7(rk(oue,1),sCt,279,0,[iue])),t))>1||(e=Z$(tue,t7(rk(oue,1),sCt,279,0,[Jle,rue])),g6(eK(e,t))>1))}(this.u))throw Ay(new Mx("Invalid port label placement: "+this.u));if(this.v=dx(zD(t.of(ece))),this.j=KR(t.of(Tse),21),!function(t){var e,n;return cpt(),!(g6(eK(Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ole])),t))>1||(e=Z$(Ale,t7(rk(Rle,1),sCt,95,0,[Cle,Lle])),g6(eK(e,t))>1)||(n=Z$(Ple,t7(rk(Rle,1),sCt,95,0,[Dle,Nle])),g6(eK(n,t))>1))}(this.j))throw Ay(new Mx("Invalid node label placement: "+this.j));this.n=KR(xst(t,kse),107),this.k=gx(qD(xst(t,yce))),this.d=gx(qD(xst(t,mce))),this.w=gx(qD(xst(t,Ece))),this.s=gx(qD(xst(t,wce))),this.t=gx(qD(xst(t,vce))),this.C=KR(xst(t,_ce),140),this.c=2*this.d,e=!this.B.Hc((Vwt(),zue)),this.f=new ert(0,e,0),this.g=new ert(1,e,0),cx(this.f,(d2(),fKt),this.g)}function xTt(t,e){var n,i,r,a,o,s,c;if(xF(),this.a=new cO(this),this.b=t,this.c=e,this.f=$z(T1((Xht(),age),e)),this.f.dc())if((s=pct(age,t))==e)for(this.e=!0,this.d=new yy,this.f=new ol,this.f.Fc(Jzt),KR(Ikt(_1(age,r2(t)),""),29)==t&&this.f.Fc(_j(age,r2(t))),r=Lwt(age,t).Kc();r.Ob();)switch(i=KR(r.Pb(),179),vH(T1(age,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc($z(T1(age,i)))}else if(UE(),KR(e,69).xk())for(this.e=!0,this.f=null,this.d=new yy,o=0,c=(null==t.i&&uxt(t),t.i).length;o=0&&o0&&(KR(zH(t.b,e),127).a.b=n)}function _Tt(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g;switch(u=new Zw,t.a.g){case 3:f=KR(fut(e.e,(jEt(),l0t)),15),d=KR(fut(e.j,l0t),15),g=KR(fut(e.f,l0t),15),n=KR(fut(e.e,s0t),15),i=KR(fut(e.j,s0t),15),r=KR(fut(e.f,s0t),15),G6(o=new yy,f),d.Jc(new ba),G6(o,ant(d)),G6(o,g),G6(a=new yy,n),G6(a,ant(i)),G6(a,r),E7(e.f,l0t,o),E7(e.f,s0t,a),E7(e.f,u0t,e.f),E7(e.e,l0t,null),E7(e.e,s0t,null),E7(e.j,l0t,null),E7(e.j,s0t,null);break;case 1:z3(u,e.e.a),RF(u,e.i.n),z3(u,ant(e.j.a)),RF(u,e.a.n),z3(u,e.f.a);break;default:z3(u,e.e.a),z3(u,ant(e.j.a)),z3(u,e.f.a)}FU(e.f.a),z3(e.f.a,u),eY(e.f,e.e.c),s=KR(fut(e.e,(CEt(),J3t)),75),l=KR(fut(e.j,J3t),75),c=KR(fut(e.f,J3t),75),(s||l||c)&&(Kz(h=new Zw,c),Kz(h,l),Kz(h,s),E7(e.f,J3t,h)),eY(e.j,null),rY(e.j,null),eY(e.e,null),rY(e.e,null),nY(e.a,null),nY(e.i,null),e.g&&_Tt(t,e.g)}function TTt(){var t,e,n;for(TTt=E,new Ntt(1,0),new Ntt(10,0),new Ntt(0,0),dUt=WZ(xUt,RSt,247,11,0,1),gUt=WZ(Fpe,_Ct,28,100,15,1),pUt=t7(rk(Hpe,1),wAt,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),bUt=WZ($pe,$Ct,28,pUt.length,15,1),mUt=t7(rk(Hpe,1),wAt,28,15,[1,10,100,TCt,1e4,vAt,1e6,1e7,1e8,oAt,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),yUt=WZ($pe,$Ct,28,mUt.length,15,1),wUt=WZ(xUt,RSt,247,11,0,1),t=0;t0&&(IY(0,e.length),64!=(s=e.charCodeAt(0)))){if(37==s&&(c=!1,0!=(u=e.lastIndexOf("%"))&&(u==h-1||(IY(u+1,e.length),c=46==e.charCodeAt(u+1))))){if(tJ(1,u,e.length),y=_B("%",o=e.substr(1,u-1))?null:RTt(o),i=0,c)try{i=evt((IY(u+2,e.length+1),e.substr(u+2)),gCt,lSt)}catch(t){throw rO(t=j6(t),130)?Ay(new y1(t)):Ay(t)}for(p=g3(t.Gh());p.Ob();)if(rO(d=c6(p),519)&&(m=(r=KR(d,598)).d,(null==y?null==m:_B(y,m))&&0==i--))return r;return null}if(f=-1==(l=e.lastIndexOf("."))?e:(tJ(0,l,e.length),e.substr(0,l)),n=0,-1!=l)try{n=evt((IY(l+1,e.length+1),e.substr(l+1)),gCt,lSt)}catch(t){if(!rO(t=j6(t),130))throw Ay(t);f=e}for(f=_B("%",f)?null:RTt(f),g=g3(t.Gh());g.Ob();)if(rO(d=c6(g),197)&&(b=(a=KR(d,197)).xe(),(null==f?null==b:_B(f,b))&&0==n--))return a;return null}return V_t(t,e)}function DTt(t,e,n,r,a){var o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_;if(m=new IA(t.g,t.f),(b=gft(t)).a=i.Math.max(b.a,e),b.b=i.Math.max(b.b,n),_=b.a/m.a,h=b.b/m.b,x=b.a-m.a,l=b.b-m.b,r)for(s=DK(t)?KR(spt(DK(t),(zEt(),ese)),88):KR(spt(t,(zEt(),ese)),88),c=$M(spt(t,(zEt(),Wse)))===$M((plt(),Kle)),w=new zO((!t.c&&(t.c=new ez(Jhe,t,9,9)),t.c));w.e!=w.i.gc();)switch(y=KR(Frt(w),123),v=KR(spt(y,nce),64),v==(MTt(),Sue)&&(v=Qvt(y,s),nat(y,nce,v)),v.g){case 1:c||D2(y,y.i*_);break;case 2:D2(y,y.i+x),c||P2(y,y.j*h);break;case 3:c||D2(y,y.i*_),P2(y,y.j+l);break;case 4:c||P2(y,y.j*h)}if(sI(t,b.a,b.b),a)for(d=new zO((!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n));d.e!=d.i.gc();)g=(f=KR(Frt(d),135)).i+f.g/2,p=f.j+f.f/2,(k=g/m.a)+(u=p/m.b)>=1&&(k-u>0&&p>=0?(D2(f,f.i+x),P2(f,f.j+l*u)):k-u<0&&g>=0&&(D2(f,f.i+x*k),P2(f,f.j+l)));return nat(t,(zEt(),Sse),(ait(),new UB(o=KR(t_(jue),9),KR(jP(o,o.length),9),0))),new IA(_,h)}function PTt(t){IE(t,new Dlt(yk(xk(mk(vk(wk(new hc,SBt),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Ms),SBt))),BV(t,SBt,iPt,Rrt(Cne)),BV(t,SBt,QLt,Rrt(Dne)),BV(t,SBt,sIt,Rrt(vne)),BV(t,SBt,SIt,Rrt(xne)),BV(t,SBt,oIt,Rrt(kne)),BV(t,SBt,cIt,Rrt(wne)),BV(t,SBt,rIt,Rrt(_ne)),BV(t,SBt,lIt,Rrt(Sne)),BV(t,SBt,mBt,Rrt(mne)),BV(t,SBt,bBt,Rrt(yne)),BV(t,SBt,pBt,Rrt(Mne)),BV(t,SBt,xBt,Rrt(One)),BV(t,SBt,kBt,Rrt(Lne)),BV(t,SBt,_Bt,Rrt(Ine)),BV(t,SBt,vBt,Rrt(Tne)),BV(t,SBt,dBt,Rrt(Ene)),BV(t,SBt,gBt,Rrt(Ane)),BV(t,SBt,yBt,Rrt(Nne)),BV(t,SBt,wBt,Rrt(Pne)),BV(t,SBt,fBt,Rrt(bne))}function BTt(t){var e,n,i,r,a,o,s,c,l,u,h;if(null==t)throw Ay(new Zx(wSt));if(l=t,c=!1,(a=t.length)>0&&(IY(0,t.length),(45==(e=t.charCodeAt(0))||43==e)&&(IY(1,t.length+1),t=t.substr(1),--a,c=45==e)),0==a)throw Ay(new Zx(hAt+l+'"'));for(;t.length>0&&(IY(0,t.length),48==t.charCodeAt(0));)IY(1,t.length+1),t=t.substr(1),--a;if(a>(Ivt(),oUt)[10])throw Ay(new Zx(hAt+l+'"'));for(r=0;r0&&(h=-parseInt((tJ(0,i,t.length),t.substr(0,i)),10),IY(i,t.length+1),t=t.substr(i),a-=i,n=!1);a>=o;){if(i=parseInt((tJ(0,o,t.length),t.substr(0,o)),10),IY(o,t.length+1),t=t.substr(o),a-=o,n)n=!1;else{if(F9(h,s)<0)throw Ay(new Zx(hAt+l+'"'));h=Cet(h,u)}h=Aet(h,i)}if(F9(h,0)>0)throw Ay(new Zx(hAt+l+'"'));if(!c&&F9(h=d1(h),0)<0)throw Ay(new Zx(hAt+l+'"'));return h}function RTt(t){var e,n,i,r,a,o,s,c;if(Nkt(),null==t)return null;if((r=NL(t,Wlt(37)))<0)return t;for(c=new pN((tJ(0,r,t.length),t.substr(0,r))),e=WZ(qpe,KFt,28,4,15,1),s=0,i=0,o=t.length;rr+2&&_7((IY(r+1,t.length),t.charCodeAt(r+1)),Pfe,Bfe)&&_7((IY(r+2,t.length),t.charCodeAt(r+2)),Pfe,Bfe))if(n=lF((IY(r+1,t.length),t.charCodeAt(r+1)),(IY(r+2,t.length),t.charCodeAt(r+2))),r+=2,i>0?128==(192&n)?e[s++]=n<<24>>24:i=0:n>=128&&(192==(224&n)?(e[s++]=n<<24>>24,i=2):224==(240&n)?(e[s++]=n<<24>>24,i=3):240==(248&n)&&(e[s++]=n<<24>>24,i=4)),i>0){if(s==i){switch(s){case 2:Vq(c,((31&e[0])<<6|63&e[1])&ECt);break;case 3:Vq(c,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&ECt)}s=0,i=0}}else{for(a=0;a=2){if(0==(!t.a&&(t.a=new ez(Khe,t,6,6)),t.a).i)Vk(),n=new el,sJ((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a),n);else if((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a).i>1)for(f=new KN((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a));f.e!=f.i.gc();)Nct(f);gxt(e,KR(l2((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a),0),166))}if(h)for(r=new zO((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a));r.e!=r.i.gc();)for(l=new zO((!(n=KR(Frt(r),166)).a&&(n.a=new AO(zhe,n,5)),n.a));l.e!=l.i.gc();)c=KR(Frt(l),377),s.a=i.Math.max(s.a,c.a),s.b=i.Math.max(s.b,c.b);for(o=new zO((!t.n&&(t.n=new ez(Qhe,t,1,7)),t.n));o.e!=o.i.gc();)a=KR(Frt(o),135),(u=KR(spt(a,gle),8))&&cI(a,u.a,u.b),h&&(s.a=i.Math.max(s.a,a.i+a.g),s.b=i.Math.max(s.b,a.j+a.f));return s}function $Tt(t,e,n,i,r){var a,o,s;if(n0(t,e),o=e[0],a=JH(n.c,0),s=-1,X7(n))if(i>0){if(o+i>t.length)return!1;s=Mdt((tJ(0,o+i,t.length),t.substr(0,o+i)),e)}else s=Mdt(t,e);switch(a){case 71:return s=Iht(t,o,t7(rk(fUt,1),RSt,2,6,[jCt,zCt]),e),r.e=s,!0;case 77:case 76:return function(t,e,n,i,r){return i<0?((i=Iht(t,r,t7(rk(fUt,1),RSt,2,6,[SCt,CCt,ACt,MCt,LCt,ICt,OCt,NCt,DCt,PCt,BCt,RCt]),e))<0&&(i=Iht(t,r,t7(rk(fUt,1),RSt,2,6,["Jan","Feb","Mar","Apr",LCt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(n.k=i,0))):i>0&&(n.k=i-1,!0)}(t,e,r,s,o);case 69:case 99:return function(t,e,n,i){var r;return(r=Iht(t,n,t7(rk(fUt,1),RSt,2,6,[qCt,HCt,UCt,GCt,KCt,YCt,VCt]),e))<0&&(r=Iht(t,n,t7(rk(fUt,1),RSt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}(t,e,o,r);case 97:return s=Iht(t,o,t7(rk(fUt,1),RSt,2,6,["AM","PM"]),e),r.b=s,!0;case 121:return function(t,e,n,i,r,a){var o,s,c;if(s=32,i<0){if(e[0]>=t.length||43!=(s=JH(t,e[0]))&&45!=s||(++e[0],(i=Mdt(t,e))<0))return!1;45==s&&(i=-i)}return 32==s&&e[0]-n==2&&2==r.b&&(o=(c=(new TT).q.getFullYear()-FCt+FCt-80)%100,a.a=i==o,i+=100*(c/100|0)+(i3;)r*=10,--a;t=(t+(r>>1))/r|0}return i.i=t,!0}(s,o,e[0],r);case 104:12==s&&(s=0);case 75:case 72:return!(s<0||(r.f=s,r.g=!1,0));case 107:return!(s<0||(r.f=s,r.g=!0,0));case 109:return!(s<0||(r.j=s,0));case 115:return!(s<0||(r.n=s,0));case 90:if(oc&&(v=0,x+=s+y,s=0),Hwt(b,n,v,x),e=i.Math.max(e,v+m.a),s=i.Math.max(s,m.b),v+=m.a+y;return b}function qTt(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x;for(s=new pg(t.a.b);s.a0)if(r=h.gc(),l=oK(i.Math.floor((r+1)/2))-1,a=oK(i.Math.ceil((r+1)/2))-1,e.o==n9t)for(u=a;u>=l;u--)e.a[v.p]==v&&(p=KR(h.Xb(u),42),g=KR(p.a,10),!NT(n,p.b)&&d>t.b.e[g.p]&&(e.a[g.p]=v,e.g[v.p]=e.g[g.p],e.a[v.p]=e.g[v.p],e.f[e.g[v.p].p]=(FN(),!!(dx(e.f[e.g[v.p].p])&v.k==(Vut(),eXt))),d=t.b.e[g.p]));else for(u=l;u<=a;u++)e.a[v.p]==v&&(m=KR(h.Xb(u),42),b=KR(m.a,10),!NT(n,m.b)&&d0&&(a=KR(c$(m.c.a,_-1),10),s=t.i[a.p],E=i.Math.ceil(HI(t.n,a,m)),o=k.a.e-m.d.d-(s.a.e+a.o.b+a.d.a)-E),u=fAt,_0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)<0,p=v.a.e.e-v.a.a-(v.b.e.e-v.b.a)<0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)>0,g=v.a.e.e+v.b.aT.b.e.e+T.a.a,x=0,!b&&!p&&(d?o+f>0?x=f:u-r>0&&(x=r):g&&(o+c>0?x=c:u-w>0&&(x=w))),k.a.e+=x,k.b&&(k.d.e+=x),1)))}function UTt(t,e,n){var r,a,o,s,c,l,u,h,f,d;if(r=new pU(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),a=new WL,t.c)for(s=new pg(e.Rf());s.al&&(i.a+=dO(WZ(Fpe,_Ct,28,-l,15,1))),i.a+="Is",NL(c,Wlt(32))>=0)for(r=0;r=2&&(i=KR(r.Kc().Pb(),117),n=t.u.Hc((cdt(),tue)),a=t.u.Hc(rue),!i.a&&!n&&(2==r.gc()||a))}(t,e),n=t.u.Hc((cdt(),Jle)),c=l.Kc();c.Ob();)if((s=KR(c.Pb(),117)).c&&!(s.c.d.c.length<=0)){switch(f=s.b.Mf(),(h=(u=s.c).i).b=(a=u.n,u.e.a+a.b+a.c),h.a=(r=u.n,u.e.b+r.d+r.a),e.g){case 1:s.a?(h.c=(f.a-h.b)/2,cJ(u,(PJ(),yKt))):o||n?(h.c=-h.b-t.s,cJ(u,(PJ(),vKt))):(h.c=f.a+t.s,cJ(u,(PJ(),wKt))),h.d=-h.a-t.t,kP(u,(z1(),TKt));break;case 3:s.a?(h.c=(f.a-h.b)/2,cJ(u,(PJ(),yKt))):o||n?(h.c=-h.b-t.s,cJ(u,(PJ(),vKt))):(h.c=f.a+t.s,cJ(u,(PJ(),wKt))),h.d=f.b+t.t,kP(u,(z1(),SKt));break;case 2:s.a?(i=t.v?h.a:KR(c$(u.d,0),187).Mf().b,h.d=(f.b-i)/2,kP(u,(z1(),EKt))):o||n?(h.d=-h.a-t.t,kP(u,(z1(),TKt))):(h.d=f.b+t.t,kP(u,(z1(),SKt))),h.c=f.a+t.s,cJ(u,(PJ(),wKt));break;case 4:s.a?(i=t.v?h.a:KR(c$(u.d,0),187).Mf().b,h.d=(f.b-i)/2,kP(u,(z1(),EKt))):o||n?(h.d=-h.a-t.t,kP(u,(z1(),TKt))):(h.d=f.b+t.t,kP(u,(z1(),SKt))),h.c=-h.b-t.s,cJ(u,(PJ(),vKt))}o=!1}}function WTt(t,e,n,i){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y;if(f=!1,h=!1,JL(KR(fut(i,(CEt(),R5t)),101))){o=!1,s=!1;t:for(g=new pg(i.j);g.a=i.o.b/2}y?(m=KR(fut(i,(jEt(),d0t)),15))?f?a=m:(r=KR(fut(i,h1t),15))?a=m.gc()<=r.gc()?m:r:(a=new yy,E7(i,h1t,a)):(a=new yy,E7(i,d0t,a)):(r=KR(fut(i,(jEt(),h1t)),15))?h?a=r:(m=KR(fut(i,d0t),15))?a=r.gc()<=m.gc()?r:m:(a=new yy,E7(i,d0t,a)):(a=new yy,E7(i,h1t,a)),a.Fc(t),E7(t,(jEt(),d1t),n),e.d==n?(rY(e,null),n.e.c.length+n.g.c.length==0&&iY(n,null),function(t){var e,n;(e=KR(fut(t,(jEt(),Z1t)),10))&&(u1((n=e.c).a,e),0==n.a.c.length&&u1(uH(e).b,n))}(n)):(eY(e,null),n.e.c.length+n.g.c.length==0&&iY(n,null)),FU(e.a)}function XTt(t,e,n){var r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A,M,L,I,O;for(n.Ug("MinWidth layering",1),p=e.b,E=e.a,O=KR(fut(e,(CEt(),r5t)),17).a,c=KR(fut(e,a5t),17).a,t.b=gx(qD(fut(e,e6t))),t.d=fAt,k=new pg(E);k.a0){for(f=u<100?null:new $k(u),g=new _5(e).g,b=WZ($pe,$Ct,28,u,15,1),i=0,w=new t2(u),r=0;r=0;)if(null!=d?wtt(d,g[c]):$M(d)===$M(g[c])){b.length<=i&&ext(b,0,b=WZ($pe,$Ct,28,2*b.length,15,1),0,i),b[i++]=r,sJ(w,g[c]);break t}if($M(d)===$M(s))break}}if(l=w,g=w.g,u=i,i>b.length&&ext(b,0,b=WZ($pe,$Ct,28,i,15,1),0,i),i>0){for(y=!0,a=0;a=0;)sst(t,b[o]);if(i!=u){for(r=u;--r>=i;)sst(l,r);ext(b,0,b=WZ($pe,$Ct,28,i,15,1),0,i)}e=l}}}else for(e=function(t,e){var n,i,r;if(e.dc())return WD(),WD(),_fe;for(n=new EP(t,e.gc()),r=new zO(t);r.e!=r.i.gc();)i=Frt(r),e.Hc(i)&&sJ(n,i);return n}(t,e),r=t.i;--r>=0;)e.Hc(t.g[r])&&(sst(t,r),y=!0);if(y){if(null!=b){for(h=1==(n=e.gc())?JK(t,4,e.Kc().Pb(),null,b[0],p):JK(t,6,e,b,b[0],p),f=n<100?null:new $k(n),r=e.Kc();r.Ob();)f=RB(t,KR(d=r.Pb(),76),f);f?(f.nj(h),f.oj()):Q5(t.e,h)}else{for(f=function(t){return t<100?null:new $k(t)}(e.gc()),r=e.Kc();r.Ob();)f=RB(t,KR(d=r.Pb(),76),f);f&&f.oj()}return!0}return!1}function ZTt(t,e){var n,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v;for((n=new bat(e)).a||function(t){var e,n,r,a,o;switch(a=KR(c$(t.a,0),10),e=new Bat(t),SO(t.a,e),e.o.a=i.Math.max(1,a.o.a),e.o.b=i.Math.max(1,a.o.b),e.n.a=a.n.a,e.n.b=a.n.b,KR(fut(a,(jEt(),E1t)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}iY(r=new sht,e),eY(n=new EG,o=KR(c$(a.j,0),12)),rY(n,r),aB(mL(r.n),o.n),aB(mL(r.a),o.a)}(e),h=function(t){var e,n,i,r,a,o,s;for(s=new tQ,o=new pg(t.a);o.a=s.b.c)&&(s.b=e),(!s.c||e.c<=s.c.c)&&(s.d=s.c,s.c=e),(!s.e||e.d>=s.e.d)&&(s.e=e),(!s.f||e.d<=s.f.d)&&(s.f=e);return i=new Urt((i7(),SWt)),TV(t,DWt,new Dx(t7(rk(TWt,1),pSt,382,0,[i]))),o=new Urt(MWt),TV(t,NWt,new Dx(t7(rk(TWt,1),pSt,382,0,[o]))),r=new Urt(CWt),TV(t,OWt,new Dx(t7(rk(TWt,1),pSt,382,0,[r]))),a=new Urt(AWt),TV(t,IWt,new Dx(t7(rk(TWt,1),pSt,382,0,[a]))),ibt(i.c,SWt),ibt(r.c,CWt),ibt(a.c,AWt),ibt(o.c,MWt),s.a.c.length=0,G6(s.a,i.c),G6(s.a,ant(r.c)),G6(s.a,a.c),G6(s.a,ant(o.c)),s}(h)),n}function JTt(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p;if(null==n.p[e.p]){c=!0,n.p[e.p]=0,s=e,p=n.o==(mK(),e9t)?dAt:fAt;do{a=t.b.e[s.p],o=s.c.a.c.length,n.o==e9t&&a>0||n.o==n9t&&a1&&(s=i.Math.min(s,i.Math.abs(KR(Yrt(c.a,1),8).b-h.b)))));else for(p=new pg(e.j);p.aa&&(o=d.a-a,s=lSt,r.c.length=0,a=d.a),d.a>=a&&(Dy(r.c,c),c.a.b>1&&(s=i.Math.min(s,i.Math.abs(KR(Yrt(c.a,c.a.b-2),8).b-d.b)))));if(0!=r.c.length&&o>e.o.a/2&&s>e.o.b/2){for(iY(g=new sht,e),Vft(g,(MTt(),cue)),g.n.a=e.o.a/2,iY(b=new sht,e),Vft(b,Eue),b.n.a=e.o.a/2,b.n.b=e.o.b,l=new pg(r);l.a=u.b?eY(c,b):eY(c,g)):(u=KR(qR(c.a),8),(0==c.a.b?EY(c.c):KR(oD(c.a),8)).b>=u.b?rY(c,b):rY(c,g)),(f=KR(fut(c,(CEt(),J3t)),75))&&ynt(f,u,!0);e.n.a=a-e.o.a/2}}function eEt(t,e,n,i,r,a,o,s,c){var l,u,h,f,d,g,p;switch(d=n,Md(u=new Bat(c),(Vut(),JWt)),E7(u,(jEt(),S1t),o),E7(u,(CEt(),R5t),(plt(),Kle)),p=gx(qD(t.of(B5t))),E7(u,B5t,p),iY(h=new sht,u),e!=Wle&&e!=Xle||(d=i>=0?snt(s):Ytt(snt(s)),t.qf(q5t,d)),l=new Hk,f=!1,t.pf(P5t)?(yD(l,KR(t.of(P5t),8)),f=!0):function(t,e,n){t.a=e,t.b=n}(l,o.a/2,o.b/2),d.g){case 4:E7(u,n5t,(bnt(),b0t)),E7(u,w1t,(I7(),cJt)),u.o.b=o.b,p<0&&(u.o.a=-p),Vft(h,(MTt(),sue)),f||(l.a=o.a),l.a-=o.a;break;case 2:E7(u,n5t,(bnt(),y0t)),E7(u,w1t,(I7(),oJt)),u.o.b=o.b,p<0&&(u.o.a=-p),Vft(h,(MTt(),Cue)),f||(l.a=0);break;case 1:E7(u,O1t,(q1(),r1t)),u.o.a=o.a,p<0&&(u.o.b=-p),Vft(h,(MTt(),Eue)),f||(l.b=o.b),l.b-=o.b;break;case 3:E7(u,O1t,(q1(),n1t)),u.o.a=o.a,p<0&&(u.o.b=-p),Vft(h,(MTt(),cue)),f||(l.b=0)}if(yD(h.n,l),E7(u,P5t,l),e==Gle||e==Yle||e==Kle){if(g=0,e==Gle&&t.pf(F5t))switch(d.g){case 1:case 2:g=KR(t.of(F5t),17).a;break;case 3:case 4:g=-KR(t.of(F5t),17).a}else switch(d.g){case 4:case 2:g=a.b,e==Yle&&(g/=r.b);break;case 1:case 3:g=a.a,e==Yle&&(g/=r.a)}E7(u,J1t,g)}return E7(u,E1t,d),u}function nEt(t,e,n){var i,r,a,o,s,c,l,u,h,f;for(p6(u=new Bat(n),e),E7(u,(jEt(),U1t),e),u.o.a=e.g,u.o.b=e.f,u.n.a=e.i,u.n.b=e.j,SO(n.a,u),LH(t.a,e,u),(0!=(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i||dx(zD(spt(e,(CEt(),W3t)))))&&E7(u,g1t,(FN(),!0)),l=KR(fut(n,A1t),21),(h=KR(fut(u,(CEt(),R5t)),101))==(plt(),Xle)?E7(u,R5t,Wle):h!=Wle&&l.Fc((Hmt(),GJt)),f=0,i=KR(fut(n,C3t),88),c=new zO((!e.c&&(e.c=new ez(Jhe,e,9,9)),e.c));c.e!=c.i.gc();)s=KR(Frt(c),123),($M(spt(r=DK(e),f3t))!==$M((Mit(),S7t))||$M(spt(r,E3t))===$M((Ait(),JZt))||$M(spt(r,E3t))===$M((Ait(),QZt))||dx(zD(spt(r,g3t)))||$M(spt(r,o3t))!==$M((Yit(),qWt))||$M(spt(r,s5t))===$M((Twt(),g7t))||$M(spt(r,s5t))===$M((Twt(),p7t))||$M(spt(r,c5t))===$M((Dbt(),F6t))||$M(spt(r,c5t))===$M((Dbt(),j6t)))&&!dx(zD(spt(e,u3t)))&&nat(s,H1t,ttt(f++)),dx(zD(spt(s,E5t)))||wTt(t,s,u,l,i,h);for(o=new zO((!e.n&&(e.n=new ez(Qhe,e,1,7)),e.n));o.e!=o.i.gc();)!dx(zD(spt(a=KR(Frt(o),135),E5t)))&&a.a&&SO(u.b,O9(a));return dx(zD(fut(u,n3t)))&&l.Fc((Hmt(),jJt)),dx(zD(fut(u,V3t)))&&(l.Fc((Hmt(),UJt)),l.Fc(HJt),E7(u,R5t,Wle)),u}function iEt(t,e,n,r,a,o,s){var c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A,M,L,I;for(b=0,C=0,u=new pg(t.b);u.ab&&(o&&(sL(_,g),sL(E,ttt(h.b-1)),SO(t.d,p),c.c.length=0),L=n.b,I+=g+e,g=0,f=i.Math.max(f,n.b+n.c+M)),Dy(c.c,l),Grt(l,L,I),f=i.Math.max(f,L+M+n.c),g=i.Math.max(g,d),L+=M+e,p=l;if(G6(t.a,c),SO(t.d,KR(c$(c,c.c.length-1),163)),f=i.Math.max(f,r),(A=I+g+n.a)0,b=w.g.c.length>0,l&&b?Dy(f.c,w):l?Dy(g.c,w):b&&Dy(y.c,w);for(d=new pg(g);d.aw.nh()-u.b&&(d=w.nh()-u.b),g>w.oh()-u.d&&(g=w.oh()-u.d),h=l.c.c.length?VW((Vut(),nXt),eXt):VW((Vut(),eXt),eXt),u*=2,a=n.a.g,n.a.g=i.Math.max(a,a+(u-a)),o=n.b.g,n.b.g=i.Math.max(o,o+(u-o)),r=e}}(t),o.Vg()),Aat(t.f),a=KR(fut(e,b6t),17).a*t.f.a.c.length,zwt(uk(hk(hR(t.f),a),!1),n.eh(1)),0!=t.d.a.gc()){for((o=n.eh(1)).Ug("Flexible Where Space Processing",1),s=KR(TN(Uj(iU(new k$(null,new OY(t.f.a,16)),new za),new Da)),17).a,c=KR(TN(Hj(iU(new k$(null,new OY(t.f.a,16)),new qa),new Pa)),17).a-s,l=CN(new yw,t.f),h=CN(new yw,t.f),Kbt(rE(iE(nE(aE(new mw,2e4),c),l),h)),VT(nU(nU(Lz(t.i),new Ha),new Ua),new gU(s,l,c,h)),r=t.d.a.ec().Kc();r.Ob();)KR(r.Pb(),218).g=1;zwt(uk(hk(hR(t.f),a),!1),o.eh(1)),o.Vg()}dx(zD(fut(e,b5t)))&&((o=n.eh(1)).Ug("Straight Edges Post-Processing",1),function(t){var e,n,i;for(z3(n=new jT,t.o),i=new $w;0!=n.b;)HTt(t,e=KR(0==n.b?null:(KD(0!=n.b),J0(n,n.a.a)),515),!0)&&SO(i.a,e);for(;0!=i.a.c.length;)HTt(t,e=KR(U8(i),515),!1)}(t),o.Vg()),function(t){var e,n,i,r,a,o,s,c,l,u,h,f,d,g,p;for(n=new pg(t.e.b);n.al&&(f=0,d+=c+e,c=0),awt(o,f,d),n=i.Math.max(n,f+u.a),c=i.Math.max(c,u.b),f+=u.a+e;return new IA(n+e,d+c+e)}(IN(t,(MTt(),due)),e),p=qot(IN(t,gue),e),x=qot(IN(t,kue),e),E=Hot(IN(t,Tue),e),d=Hot(IN(t,lue),e),w=qot(IN(t,xue),e),b=qot(IN(t,pue),e),_=qot(IN(t,_ue),e),k=qot(IN(t,uue),e),S=Hot(IN(t,fue),e),y=qot(IN(t,wue),e),v=qot(IN(t,yue),e),T=qot(IN(t,hue),e),C=Hot(IN(t,vue),e),g=Hot(IN(t,bue),e),m=qot(IN(t,mue),e),n=G0(t7(rk(Hpe,1),wAt,28,15,[w.a,E.a,_.a,C.a])),r=G0(t7(rk(Hpe,1),wAt,28,15,[p.a,f.a,x.a,m.a])),a=y.a,o=G0(t7(rk(Hpe,1),wAt,28,15,[b.a,d.a,k.a,g.a])),u=G0(t7(rk(Hpe,1),wAt,28,15,[w.b,p.b,b.b,v.b])),l=G0(t7(rk(Hpe,1),wAt,28,15,[E.b,f.b,d.b,m.b])),h=S.b,c=G0(t7(rk(Hpe,1),wAt,28,15,[_.b,x.b,k.b,T.b])),gJ(IN(t,due),n+a,u+h),gJ(IN(t,mue),n+a,u+h),gJ(IN(t,gue),n+a,0),gJ(IN(t,kue),n+a,u+h+l),gJ(IN(t,Tue),0,u+h),gJ(IN(t,lue),n+a+r,u+h),gJ(IN(t,pue),n+a+r,0),gJ(IN(t,_ue),0,u+h+l),gJ(IN(t,uue),n+a+r,u+h+l),gJ(IN(t,fue),0,u),gJ(IN(t,wue),n,0),gJ(IN(t,hue),0,u+h+l),gJ(IN(t,bue),n+a+r,0),(s=new Hk).a=G0(t7(rk(Hpe,1),wAt,28,15,[n+r+a+o,S.a,v.a,T.a])),s.b=G0(t7(rk(Hpe,1),wAt,28,15,[u+l+h+c,y.b,C.b,g.b])),s}function uEt(t){var e,n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_;for(p=new IA(fAt,fAt),e=new IA(dAt,dAt),x=new pg(t);x.a=48&&e<=57))throw Ay(new Nx(XEt((LI(),vjt))));for(i=e-48;r=48&&e<=57;)if((i=10*i+e-48)<0)throw Ay(new Nx(XEt((LI(),Tjt))));if(n=i,44==e){if(r>=t.j)throw Ay(new Nx(XEt((LI(),kjt))));if((e=JH(t.i,r++))>=48&&e<=57){for(n=e-48;r=48&&e<=57;)if((n=10*n+e-48)<0)throw Ay(new Nx(XEt((LI(),Tjt))));if(i>n)throw Ay(new Nx(XEt((LI(),_jt))))}else n=-1}if(125!=e)throw Ay(new Nx(XEt((LI(),xjt))));t.bm(r)?(UEt(),UEt(),a=new rX(9,a),t.d=r+1):(UEt(),UEt(),a=new rX(3,a),t.d=r),a.Om(i),a.Nm(n),AEt(t)}}return a}function dEt(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w;if(mz(t.a,e)){if(NT(KR(Oq(t.a,e),49),n))return 1}else LH(t.a,e,new hw);if(mz(t.a,n)){if(NT(KR(Oq(t.a,n),49),e))return-1}else LH(t.a,n,new hw);if(mz(t.e,e)){if(NT(KR(Oq(t.e,e),49),n))return-1}else LH(t.e,e,new hw);if(mz(t.e,n)){if(NT(KR(Oq(t.a,n),49),e))return 1}else LH(t.e,n,new hw);if(t.c==(Mit(),C7t)||!cD(e,(jEt(),H1t))||!cD(n,(jEt(),H1t))){for(h=null,l=new pg(e.j);l.a(o=Fct(t,n))?fwt(t,e,n):fwt(t,n,e),ro?1:0}return(i=KR(fut(e,(jEt(),H1t)),17).a)>(a=KR(fut(n,H1t),17).a)?fwt(t,e,n):fwt(t,n,e),ia?1:0}function gEt(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p;if(null==n)return null;if(t.a!=e.jk())throw Ay(new Tx(HFt+e.xe()+UFt));if(rO(e,469)){if(!(p=function(t,e){var n,i;if(null==e){for(!t.a&&(t.a=new ez(tde,t,9,5)),i=new zO(t.a);i.e!=i.i.gc();)if(null==((n=KR(Frt(i),694)).c??n.zb))return n}else for(!t.a&&(t.a=new ez(tde,t,9,5)),i=new zO(t.a);i.e!=i.i.gc();)if(_B(e,(n=KR(Frt(i),694)).c??n.zb))return n;return null}(KR(e,685),n)))throw Ay(new Tx(GFt+n+"' is not a valid enumerator of '"+e.xe()+"'"));return p}switch(gtt((Xht(),age),e).Nl()){case 2:n=gkt(n,!1);break;case 3:n=gkt(n,!0)}if(i=gtt(age,e).Jl())return i.jk().wi().ti(i,n);if(h=gtt(age,e).Ll()){for(p=new yy,l=0,u=(c=A8(n)).length;l1)for(d=new KN((!t.a&&(t.a=new ez(Khe,t,6,6)),t.a));d.e!=d.i.gc();)Nct(d);for(p=A,A>v+w?p=v+w:Ax+g?b=x+g:Mv-w&&px-g&&bA+C?_=A+C:vM+k?T=M+k:xA-C&&_M-k&&Tn&&(h=n-1),(f=N+Xpt(e,24)*RAt*u-u/2)<0?f=1:f>r&&(f=r-1),Vk(),$2(a=new Zc,h),L2(a,f),sJ((!s.a&&(s.a=new AO(zhe,s,5)),s.a),a)}function wEt(t){IE(t,new Dlt(xk(mk(vk(wk(new hc,XBt),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new $s))),BV(t,XBt,CLt,1.3),BV(t,XBt,aIt,(FN(),!1)),BV(t,XBt,ALt,Qie),BV(t,XBt,QLt,15),BV(t,XBt,VDt,Rrt(Pie)),BV(t,XBt,sIt,Rrt(qie)),BV(t,XBt,SIt,Rrt(Uie)),BV(t,XBt,oIt,Rrt(Gie)),BV(t,XBt,cIt,Rrt(zie)),BV(t,XBt,rIt,Rrt(Kie)),BV(t,XBt,lIt,Rrt(Zie)),BV(t,XBt,zBt,Rrt(ire)),BV(t,XBt,qBt,Rrt(nre)),BV(t,XBt,jBt,Rrt(are)),BV(t,XBt,$Bt,Rrt(rre)),BV(t,XBt,HBt,Rrt(Wie)),BV(t,XBt,UBt,Rrt(Vie)),BV(t,XBt,GBt,Rrt(Yie)),BV(t,XBt,KBt,Rrt(ere)),BV(t,XBt,eIt,Rrt(Fie)),BV(t,XBt,oPt,Rrt($ie)),BV(t,XBt,RBt,Rrt(Rie)),BV(t,XBt,BBt,Rrt(Bie)),BV(t,XBt,FBt,Rrt(jie)),BV(t,XBt,PBt,Rrt(tre))}function vEt(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A;if(hkt(),T=t.e,g=t.d,r=t.a,0==T)switch(e){case 0:return"0";case 1:return _At;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(k=new Vx).a+=e<0?"0E+":"0E",k.a+=-e,k.a}if(v=WZ(Fpe,_Ct,28,1+(w=10*g+1+7),15,1),n=w,1==g)if((s=r[0])<0){A=BY(s,kAt);do{p=A,A=yct(A,10),v[--n]=48+bj(Aet(p,Cet(A,10)))&ECt}while(0!=F9(A,0))}else{A=s;do{p=A,A=A/10|0,v[--n]=p-10*A+48&ECt}while(0!=A)}else{ext(r,0,S=WZ($pe,$Ct,28,g,15,1),0,C=g);t:for(;;){for(_=0,l=C-1;l>=0;l--)m=Slt(Set(Aj(_,32),BY(S[l],kAt))),S[l]=bj(m),_=bj(Mj(m,32));y=bj(_),b=n;do{v[--n]=48+y%10&ECt}while(0!=(y=y/10|0)&&0!=n);for(i=9-b+n,c=0;c0;c++)v[--n]=48;for(h=C-1;0==S[h];h--)if(0==h)break t;C=h+1}for(;48==v[n];)++n}if(d=T<0,o=w-n-e-1,0==e)return d&&(v[--n]=45),Sit(v,n,w-n);if(e>0&&o>=-6){if(o>=0){for(u=n+o,f=w-1;f>=u;f--)v[f+1]=v[f];return v[++u]=46,d&&(v[--n]=45),Sit(v,n,w-n+1)}for(h=2;h<1-o;h++)v[--n]=48;return v[--n]=46,v[--n]=48,d&&(v[--n]=45),Sit(v,n,w-n)}return E=n+1,a=w,x=new Wx,d&&(x.a+="-"),a-E>=1?(Vq(x,v[n]),x.a+=".",x.a+=Sit(v,n+1,w-n-1)):x.a+=Sit(v,n,w-n),x.a+="E",o>0&&(x.a+="+"),x.a+=""+o,x.a}function xEt(t,e){var n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x;switch(t.c=e,t.g=new my,BE(),cnt(new Qg(new ix(t.c))),y=HD(spt(t.c,(but(),eae))),s=KR(spt(t.c,iae),324),v=KR(spt(t.c,rae),437),a=KR(spt(t.c,Xre),490),w=KR(spt(t.c,nae),438),t.j=gx(qD(spt(t.c,aae))),o=t.a,s.g){case 0:o=t.a;break;case 1:o=t.b;break;case 2:o=t.i;break;case 3:o=t.e;break;case 4:o=t.f;break;default:throw Ay(new Tx(nRt+(null!=s.f?s.f:""+s.g)))}if(t.d=new cK(o,v,a),E7(t.d,(B5(),bYt),zD(spt(t.c,Zre))),t.d.c=dx(zD(spt(t.c,Qre))),0==eG(t.c).i)return t.d;for(u=new zO(eG(t.c));u.e!=u.i.gc();){for(f=(l=KR(Frt(u),27)).g/2,h=l.f/2,x=new IA(l.i+f,l.j+h);mz(t.g,x);)bD(x,(i.Math.random()-.5)*GLt,(i.Math.random()-.5)*GLt);g=KR(spt(l,(zEt(),vse)),140),p=new jK(x,new pU(x.a-f-t.j/2-g.b,x.b-h-t.j/2-g.d,l.g+t.j+(g.b+g.c),l.f+t.j+(g.d+g.a))),SO(t.d.i,p),LH(t.g,x,new rM(p,l))}switch(w.g){case 0:if(null==y)t.d.d=KR(c$(t.d.i,0),68);else for(m=new pg(t.d.i);m.a1&&dX(h,y,h.c.b,h.c),H0(a)));y=w}return h}function _Et(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S;for(n.Ug(QPt,1),S=KR(bX(nU(new k$(null,new OY(e,16)),new gs),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15),u=KR(bX(nU(new k$(null,new OY(e,16)),new Zb(e)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),15),g=KR(bX(nU(new k$(null,new OY(e,16)),new Qb(e)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),15),p=WZ(z9t,RPt,40,e.gc(),0,1),o=0;o=0&&E=0&&!p[d]){p[d]=r,u.gd(s),--s;break}if((d=E-f)=0&&!p[d]){p[d]=r,u.gd(s),--s;break}}for(g.jd(new ps),c=p.length-1;c>=0;c--)!p[c]&&!g.dc()&&(p[c]=KR(g.Xb(0),40),g.gd(0));for(l=0;l=0;c--)RF(n,(LY(c,o.c.length),KR(o.c[c],8)));return n}function EEt(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v;for(w=gx(qD(spt(e,(Dyt(),die)))),d=gx(qD(spt(e,hie))),f=gx(qD(spt(e,cie))),S3((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a)),m=Fkt((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a),w,t.b),b=0;bf&&Rst((LY(f,e.c.length),KR(e.c[f],186)),u),u=null;e.c.length>f&&0==(LY(f,e.c.length),KR(e.c[f],186)).a.c.length;)u1(e,(LY(f,e.c.length),e.c[f]));if(!u){--o;continue}if(!dx(zD(KR(c$(u.b,0),27).of((ayt(),jie))))&&fvt(e,g,a,u,b,n,f,i)){p=!0;continue}if(b){if(d=g.b,h=u.f,!dx(zD(KR(c$(u.b,0),27).of(jie)))&&y_t(e,g,a,u,n,f,i,r)){if(p=!0,d=t.j)return t.a=-1,void(t.c=1);if(e=JH(t.i,t.d++),t.a=e,1!=t.b){switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,t.d>=t.j||63!=JH(t.i,t.d))break;if(++t.d>=t.j)throw Ay(new Nx(XEt((LI(),U$t))));switch(e=JH(t.i,t.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(t.d>=t.j)throw Ay(new Nx(XEt((LI(),U$t))));if(61==(e=JH(t.i,t.d++)))i=16;else{if(33!=e)throw Ay(new Nx(XEt((LI(),G$t))));i=17}break;case 35:for(;t.d=t.j)throw Ay(new Nx(XEt((LI(),H$t))));t.a=JH(t.i,t.d++);break;default:i=0}t.c=i}else{switch(e){case 92:if(i=10,t.d>=t.j)throw Ay(new Nx(XEt((LI(),H$t))));t.a=JH(t.i,t.d++);break;case 45:512==(512&t.e)&&t.dt.a.c.length-1;)SO(t.a,new rM(ILt,DPt));i=KR(fut(r,mee),17).a,n==(jtt(),Fce)||n==$ce?(r.e.agx(qD(KR(c$(t.a,i),42).b))&&Gd(KR(c$(t.a,i),42),r.e.a+r.f.a)):(r.e.bgx(qD(KR(c$(t.a,i),42).b))&&Gd(KR(c$(t.a,i),42),r.e.b+r.f.b))}}(t,e,r),function(t,e){var n,i,r,a,o,s,c,l,u,h,f;for(u=(r=KR(fut(t,(axt(),Gte)),88))==(jtt(),Fce)||r==$ce?Rce:$ce,n=KR(bX(nU(new k$(null,new OY(t.b,16)),new Po),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[(e9(),vGt)]))),15),(c=KR(bX(iU(n.Oc(),new Yb(e)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),15)).Gc(KR(bX(iU(n.Oc(),new Vb(e)),bJ(new V,new Y,new nt,t7(rk(_Gt,1),sCt,108,0,[vGt]))),16)),c.jd(new Wb(u)),f=new y_(new Xb(r)),i=new my,s=c.Kc();s.Ob();)o=KR(s.Pb(),240),l=KR(o.a,40),dx(zD(o.c))?(f.a.zc(l,(FN(),HHt)),new Cg(f.a.Zc(l,!1)).a.gc()>0&&LH(i,l,KR(new Cg(f.a.Zc(l,!1)).a.Vc(),40)),new Cg(f.a.ad(l,!0)).a.gc()>1&&LH(i,Lnt(f,l),l)):(new Cg(f.a.Zc(l,!1)).a.gc()>0&&$M(a=KR(new Cg(f.a.Zc(l,!1)).a.Vc(),40))===$M(FM(U$(i.f,l)))&&KR(fut(l,(ETt(),ste)),15).Fc(a),new Cg(f.a.ad(l,!0)).a.gc()>1&&(h=Lnt(f,l),$M(FM(U$(i.f,h)))===$M(l)&&KR(fut(h,(ETt(),ste)),15).Fc(l)),f.a.Bc(l))}(e,d/2/2),E3(g=e.b,new Ub(r)),l=Mrt(g,0);l.b!=l.d.c;)if(!dx(zD(fut(c=KR(gW(l),40),(ETt(),Mte))))){if(i=Oyt(c,r),p=kxt(c,e),h=0,f=0,i)switch(b=i.e,r.g){case 2:h=b.a-d-c.f.a,p.e.a-d-c.f.ah&&(h=p.e.a+p.f.a+d),f=h+c.f.a;break;case 4:h=b.b-d-c.f.b,p.e.b-d-c.f.bh&&(h=p.e.b+p.f.b+d),f=h+c.f.b}else if(p)switch(r.g){case 2:f=(h=p.e.a-d-c.f.a)+c.f.a;break;case 1:f=(h=p.e.a+p.f.a+d)+c.f.a;break;case 4:f=(h=p.e.b-d-c.f.b)+c.f.b;break;case 3:f=(h=p.e.b+p.f.b+d)+c.f.b}$M(fut(e,Vte))===$M((v8(),ete))?(a=h,o=f,null!=(s=c8(nU(new k$(null,new OY(t.a,16)),new JC(a,o)))).a?r==(jtt(),Fce)||r==$ce?c.e.a=h:c.e.b=h:null!=(s=r==(jtt(),Fce)||r==zce?c8(nU(u2(new k$(null,new OY(t.a,16))),new Gb(a))):c8(nU(u2(new k$(null,new OY(t.a,16))),new Kb(a)))).a&&(r==Fce||r==$ce?c.e.a=gx(qD((KD(null!=s.a),KR(s.a,42)).a)):c.e.b=gx(qD((KD(null!=s.a),KR(s.a,42)).a))),null!=s.a&&(u=g1(t.a,(KD(null!=s.a),s.a),0))>0&&u!=KR(fut(c,mee),17).a&&(E7(c,cte,(FN(),!0)),E7(c,mee,ttt(u)))):r==(jtt(),Fce)||r==$ce?c.e.a=h:c.e.b=h}n.Vg()}}function LEt(t){var e,n,i,r,a,o,s,c;for(t.b=1,AEt(t),e=null,0==t.c&&94==t.a?(AEt(t),UEt(),UEt(),Nmt(e=new UY(4),0,Dqt),o=new UY(4)):(UEt(),UEt(),o=new UY(4)),r=!0;1!=(c=t.c);){if(0==c&&93==t.a&&!r){e&&(q_t(e,o),o=e);break}if(n=t.a,i=!1,10==c)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:pkt(o,nvt(n)),i=!0;break;case 105:case 73:case 99:case 67:pkt(o,nvt(n)),(n=-1)<0&&(i=!0);break;case 112:case 80:if(!(s=Tdt(t,n)))throw Ay(new Nx(XEt((LI(),ijt))));pkt(o,s),i=!0;break;default:n=dyt(t)}else if(24==c&&!r){if(e&&(q_t(e,o),o=e),q_t(o,LEt(t)),0!=t.c||93!=t.a)throw Ay(new Nx(XEt((LI(),sjt))));break}if(AEt(t),!i){if(0==c){if(91==n)throw Ay(new Nx(XEt((LI(),cjt))));if(93==n)throw Ay(new Nx(XEt((LI(),ljt))));if(45==n&&!r&&93!=t.a)throw Ay(new Nx(XEt((LI(),ujt))))}if(0!=t.c||45!=t.a||45==n&&r)Nmt(o,n,n);else{if(AEt(t),1==(c=t.c))throw Ay(new Nx(XEt((LI(),ajt))));if(0==c&&93==t.a)Nmt(o,n,n),Nmt(o,45,45);else{if(0==c&&93==t.a||24==c)throw Ay(new Nx(XEt((LI(),ujt))));if(a=t.a,0==c){if(91==a)throw Ay(new Nx(XEt((LI(),cjt))));if(93==a)throw Ay(new Nx(XEt((LI(),ljt))));if(45==a)throw Ay(new Nx(XEt((LI(),ujt))))}else 10==c&&(a=dyt(t));if(AEt(t),n>a)throw Ay(new Nx(XEt((LI(),djt))));Nmt(o,n,a)}}}r=!1}if(1==t.c)throw Ay(new Nx(XEt((LI(),ajt))));return xpt(o),$kt(o),t.b=0,AEt(t),o}function IEt(t,e,n){var i,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k;if(n.Ug("Coffman-Graham Layering",1),0!=e.a.c.length){for(k=KR(fut(e,(CEt(),t5t)),17).a,c=0,o=0,d=new pg(e.a);d.a=k||!git(y,i))&&(i=FH(e,h)),nY(y,i),a=new Dj(lN(Det(y).a.Kc(),new u));Rgt(a);)r=KR(bQ(a),18),!t.a[r.p]&&(b=r.c.i,--t.e[b.p],0==t.e[b.p]&&iF(Zlt(g,b),EAt));for(l=h.c.length-1;l>=0;--l)SO(e.b,(LY(l,h.c.length),KR(h.c[l],30)));e.a.c.length=0,n.Vg()}else n.Vg()}function OEt(t,e){var n,i,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v;v=!1;do{for(v=!1,a=e?new Zd(t.a.b).a.gc()-2:1;e?a>=0:aKR(fut(b,H1t),17).a)&&(w=!1);if(w){for(s=e?a+1:a-1,o=!1,y=!0,i=!1,l=Mrt(kW(t.a,ttt(s)),0);l.b!=l.d.c;)cD(c=KR(gW(l),10),H1t)?c.p!=h.p&&(o|=e?KR(fut(c,H1t),17).aKR(fut(h,H1t),17).a,y=!1):!o&&y&&c.k==(Vut(),tXt)&&(i=!0,(f=e?KR(bQ(new Dj(lN(Det(c).a.Kc(),new u))),18).c.i:KR(bQ(new Dj(lN(Pet(c).a.Kc(),new u))),18).d.i)==h&&(n=e?KR(bQ(new Dj(lN(Pet(c).a.Kc(),new u))),18).d.i:KR(bQ(new Dj(lN(Det(c).a.Kc(),new u))),18).c.i,(e?KR(hD(t.a,n),17).a-KR(hD(t.a,f),17).a:KR(hD(t.a,f),17).a-KR(hD(t.a,n),17).a)<=2&&(y=!1)));if(i&&y&&(n=e?KR(bQ(new Dj(lN(Pet(h).a.Kc(),new u))),18).d.i:KR(bQ(new Dj(lN(Det(h).a.Kc(),new u))),18).c.i,(e?KR(hD(t.a,n),17).a-KR(hD(t.a,h),17).a:KR(hD(t.a,h),17).a-KR(hD(t.a,n),17).a)<=2&&n.k==(Vut(),nXt)&&(y=!1)),o||y){for(p=abt(t,h,e);0!=p.a.gc();)g=KR(p.a.ec().Kc().Pb(),10),p.a.Bc(g),z3(p,abt(t,g,e));--d,v=!0}}}}while(v)}function NEt(t,e,n,i,r,a,o){var s,c,l,u,h,f,d,g;return f=KR(i.a,17).a,d=KR(i.b,17).a,h=t.b,g=t.c,s=0,u=0,e==(jtt(),Fce)||e==$ce?(u=HC(Ott(rU(iU(new k$(null,new OY(n.b,16)),new ms),new Jo))),h.e.b+h.f.b/2>u?(l=++d,s=gx(qD(TN(Hj(iU(new k$(null,new OY(n.b,16)),new SA(r,l)),new ts))))):(c=++f,s=gx(qD(TN(Uj(iU(new k$(null,new OY(n.b,16)),new CA(r,c)),new es)))))):(u=HC(Ott(rU(iU(new k$(null,new OY(n.b,16)),new as),new Zo))),h.e.a+h.f.a/2>u?(l=++d,s=gx(qD(TN(Hj(iU(new k$(null,new OY(n.b,16)),new TA(r,l)),new ns))))):(c=++f,s=gx(qD(TN(Uj(iU(new k$(null,new OY(n.b,16)),new EA(r,c)),new is)))))),e==Fce?(sL(t.a,new IA(gx(qD(fut(h,(ETt(),xte))))-r,s)),sL(t.a,new IA(g.e.a+g.f.a+r+a,s)),sL(t.a,new IA(g.e.a+g.f.a+r+a,g.e.b+g.f.b/2)),sL(t.a,new IA(g.e.a+g.f.a,g.e.b+g.f.b/2))):e==$ce?(sL(t.a,new IA(gx(qD(fut(h,(ETt(),vte))))+r,h.e.b+h.f.b/2)),sL(t.a,new IA(h.e.a+h.f.a+r,s)),sL(t.a,new IA(g.e.a-r-a,s)),sL(t.a,new IA(g.e.a-r-a,g.e.b+g.f.b/2)),sL(t.a,new IA(g.e.a,g.e.b+g.f.b/2))):e==zce?(sL(t.a,new IA(s,gx(qD(fut(h,(ETt(),xte))))-r)),sL(t.a,new IA(s,g.e.b+g.f.b+r+a)),sL(t.a,new IA(g.e.a+g.f.a/2,g.e.b+g.f.b+r+a)),sL(t.a,new IA(g.e.a+g.f.a/2,g.e.b+g.f.b+r))):(0==t.a.b||(KR(oD(t.a),8).b=gx(qD(fut(h,(ETt(),vte))))+r*KR(o.b,17).a),sL(t.a,new IA(s,gx(qD(fut(h,(ETt(),vte))))+r*KR(o.b,17).a)),sL(t.a,new IA(s,g.e.b-r*KR(o.a,17).a-a))),new rM(ttt(f),ttt(d))}function DEt(){DEt=E,pEt(),Ndt(UWt=new VG,(MTt(),gue),due),Ndt(UWt,Tue,due),Ndt(UWt,pue,due),Ndt(UWt,xue,due),Ndt(UWt,vue,due),Ndt(UWt,yue,due),Ndt(UWt,xue,gue),Ndt(UWt,due,lue),Ndt(UWt,gue,lue),Ndt(UWt,Tue,lue),Ndt(UWt,pue,lue),Ndt(UWt,wue,lue),Ndt(UWt,xue,lue),Ndt(UWt,vue,lue),Ndt(UWt,yue,lue),Ndt(UWt,fue,lue),Ndt(UWt,due,kue),Ndt(UWt,gue,kue),Ndt(UWt,lue,kue),Ndt(UWt,Tue,kue),Ndt(UWt,pue,kue),Ndt(UWt,wue,kue),Ndt(UWt,xue,kue),Ndt(UWt,fue,kue),Ndt(UWt,_ue,kue),Ndt(UWt,vue,kue),Ndt(UWt,bue,kue),Ndt(UWt,yue,kue),Ndt(UWt,gue,Tue),Ndt(UWt,pue,Tue),Ndt(UWt,xue,Tue),Ndt(UWt,yue,Tue),Ndt(UWt,gue,pue),Ndt(UWt,Tue,pue),Ndt(UWt,xue,pue),Ndt(UWt,pue,pue),Ndt(UWt,vue,pue),Ndt(UWt,due,uue),Ndt(UWt,gue,uue),Ndt(UWt,lue,uue),Ndt(UWt,kue,uue),Ndt(UWt,Tue,uue),Ndt(UWt,pue,uue),Ndt(UWt,wue,uue),Ndt(UWt,xue,uue),Ndt(UWt,_ue,uue),Ndt(UWt,fue,uue),Ndt(UWt,yue,uue),Ndt(UWt,vue,uue),Ndt(UWt,mue,uue),Ndt(UWt,due,_ue),Ndt(UWt,gue,_ue),Ndt(UWt,lue,_ue),Ndt(UWt,Tue,_ue),Ndt(UWt,pue,_ue),Ndt(UWt,wue,_ue),Ndt(UWt,xue,_ue),Ndt(UWt,fue,_ue),Ndt(UWt,yue,_ue),Ndt(UWt,bue,_ue),Ndt(UWt,mue,_ue),Ndt(UWt,gue,fue),Ndt(UWt,Tue,fue),Ndt(UWt,pue,fue),Ndt(UWt,xue,fue),Ndt(UWt,_ue,fue),Ndt(UWt,yue,fue),Ndt(UWt,vue,fue),Ndt(UWt,due,hue),Ndt(UWt,gue,hue),Ndt(UWt,lue,hue),Ndt(UWt,Tue,hue),Ndt(UWt,pue,hue),Ndt(UWt,wue,hue),Ndt(UWt,xue,hue),Ndt(UWt,fue,hue),Ndt(UWt,yue,hue),Ndt(UWt,gue,vue),Ndt(UWt,lue,vue),Ndt(UWt,kue,vue),Ndt(UWt,pue,vue),Ndt(UWt,due,bue),Ndt(UWt,gue,bue),Ndt(UWt,kue,bue),Ndt(UWt,Tue,bue),Ndt(UWt,pue,bue),Ndt(UWt,wue,bue),Ndt(UWt,xue,bue),Ndt(UWt,xue,mue),Ndt(UWt,pue,mue),Ndt(UWt,fue,due),Ndt(UWt,fue,Tue),Ndt(UWt,fue,lue),Ndt(UWt,wue,due),Ndt(UWt,wue,gue),Ndt(UWt,wue,kue)}function PEt(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k;switch(n.Ug("Brandes & Koepf node placement",1),t.a=e,t.c=sxt(e),r=KR(fut(e,(CEt(),p5t)),281),g=dx(zD(fut(e,b5t))),t.d=r==(Sct(),SJt)&&!g||r==_Jt,function(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w;if(!((p=e.b.c.length)<3)){for(d=WZ($pe,$Ct,28,p,15,1),h=0,u=new pg(e.b);u.ao)&&Az(t.b,KR(b.b,18));++s}a=o}}}(t,e),x=null,k=null,m=null,y=null,E4(4,oCt),b=new lZ(4),KR(fut(e,p5t),281).g){case 3:m=new Fwt(e,t.c.d,(mK(),e9t),(bK(),Q8t)),Dy(b.c,m);break;case 1:y=new Fwt(e,t.c.d,(mK(),n9t),(bK(),Q8t)),Dy(b.c,y);break;case 4:x=new Fwt(e,t.c.d,(mK(),e9t),(bK(),Z8t)),Dy(b.c,x);break;case 2:k=new Fwt(e,t.c.d,(mK(),n9t),(bK(),Z8t)),Dy(b.c,k);break;default:m=new Fwt(e,t.c.d,(mK(),e9t),(bK(),Q8t)),y=new Fwt(e,t.c.d,n9t,Q8t),x=new Fwt(e,t.c.d,e9t,Z8t),k=new Fwt(e,t.c.d,n9t,Z8t),Dy(b.c,x),Dy(b.c,k),Dy(b.c,m),Dy(b.c,y)}for(a=new qC(e,t.c),c=new pg(b);c.a_[l]&&(p=l),h=new pg(t.a.b);h.agpt(o))&&(f=o);for(!f&&(LY(0,b.c.length),f=KR(b.c[0],185)),p=new pg(e.b);p.a=-1900?1:0,tL(t,n>=4?t7(rk(fUt,1),RSt,2,6,[jCt,zCt])[s]:t7(rk(fUt,1),RSt,2,6,["BC","AD"])[s]);break;case 121:!function(t,e,n){var i;switch((i=n.q.getFullYear()-FCt+FCt)<0&&(i=-i),e){case 1:t.a+=i;break;case 2:L1(t,i%100,2);break;default:L1(t,i,e)}}(t,n,r);break;case 77:!function(t,e,n){var i;switch(i=n.q.getMonth(),e){case 5:tL(t,t7(rk(fUt,1),RSt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:tL(t,t7(rk(fUt,1),RSt,2,6,[SCt,CCt,ACt,MCt,LCt,ICt,OCt,NCt,DCt,PCt,BCt,RCt])[i]);break;case 3:tL(t,t7(rk(fUt,1),RSt,2,6,["Jan","Feb","Mar","Apr",LCt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:L1(t,i+1,e)}}(t,n,r);break;case 107:L1(t,0==(c=a.q.getHours())?24:c,n);break;case 83:!function(t,e,n){var r,a;F9(r=h6(n.q.getTime()),0)<0?(a=TCt-bj(Qnt(d1(r),TCt)))==TCt&&(a=0):a=bj(Qnt(r,TCt)),1==e?Vq(t,48+(a=i.Math.min((a+50)/100|0,9))&ECt):2==e?L1(t,a=i.Math.min((a+5)/10|0,99),2):(L1(t,a,3),e>3&&L1(t,0,e-3))}(t,n,a);break;case 69:l=r.q.getDay(),tL(t,5==n?t7(rk(fUt,1),RSt,2,6,["S","M","T","W","T","F","S"])[l]:4==n?t7(rk(fUt,1),RSt,2,6,[qCt,HCt,UCt,GCt,KCt,YCt,VCt])[l]:t7(rk(fUt,1),RSt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[l]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?tL(t,t7(rk(fUt,1),RSt,2,6,["AM","PM"])[1]):tL(t,t7(rk(fUt,1),RSt,2,6,["AM","PM"])[0]);break;case 104:L1(t,0==(u=a.q.getHours()%12)?12:u,n);break;case 75:L1(t,a.q.getHours()%12,n);break;case 72:L1(t,a.q.getHours(),n);break;case 99:h=r.q.getDay(),5==n?tL(t,t7(rk(fUt,1),RSt,2,6,["S","M","T","W","T","F","S"])[h]):4==n?tL(t,t7(rk(fUt,1),RSt,2,6,[qCt,HCt,UCt,GCt,KCt,YCt,VCt])[h]):3==n?tL(t,t7(rk(fUt,1),RSt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[h]):L1(t,h,1);break;case 76:f=r.q.getMonth(),5==n?tL(t,t7(rk(fUt,1),RSt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[f]):4==n?tL(t,t7(rk(fUt,1),RSt,2,6,[SCt,CCt,ACt,MCt,LCt,ICt,OCt,NCt,DCt,PCt,BCt,RCt])[f]):3==n?tL(t,t7(rk(fUt,1),RSt,2,6,["Jan","Feb","Mar","Apr",LCt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[f]):L1(t,f+1,n);break;case 81:d=r.q.getMonth()/3|0,tL(t,n<4?t7(rk(fUt,1),RSt,2,6,["Q1","Q2","Q3","Q4"])[d]:t7(rk(fUt,1),RSt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[d]);break;case 100:L1(t,r.q.getDate(),n);break;case 109:L1(t,a.q.getMinutes(),n);break;case 115:L1(t,a.q.getSeconds(),n);break;case 122:tL(t,n<4?o.c[0]:o.c[1]);break;case 118:tL(t,o.b);break;case 90:tL(t,n<3?function(t){var e,n;return n=-t.a,e=t7(rk(Fpe,1),_Ct,28,15,[43,48,48,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&ECt,e[2]=e[2]+(n/60|0)%10&ECt,e[3]=e[3]+(n%60/10|0)&ECt,e[4]=e[4]+n%10&ECt,Sit(e,0,e.length)}(o):3==n?function(t){var e,n;return n=-t.a,e=t7(rk(Fpe,1),_Ct,28,15,[43,48,48,58,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&ECt,e[2]=e[2]+(n/60|0)%10&ECt,e[4]=e[4]+(n%60/10|0)&ECt,e[5]=e[5]+n%10&ECt,Sit(e,0,e.length)}(o):function(t){var e;return e=t7(rk(Fpe,1),_Ct,28,15,[71,77,84,45,48,48,58,48,48]),t<=0&&(e[3]=43,t=-t),e[4]=e[4]+((t/60|0)/10|0)&ECt,e[5]=e[5]+(t/60|0)%10&ECt,e[7]=e[7]+(t%60/10|0)&ECt,e[8]=e[8]+t%10&ECt,Sit(e,0,e.length)}(o.a));break;default:return!1}return!0}function $Et(t,e,n,i){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A;if(swt(e),c=KR(l2((!e.b&&(e.b=new bB(Uhe,e,4,7)),e.b),0),84),u=KR(l2((!e.c&&(e.c=new bB(Uhe,e,5,8)),e.c),0),84),s=Blt(c),l=Blt(u),o=0==(!e.a&&(e.a=new ez(Khe,e,6,6)),e.a).i?null:KR(l2((!e.a&&(e.a=new ez(Khe,e,6,6)),e.a),0),166),k=KR(Oq(t.a,s),10),S=KR(Oq(t.a,l),10),_=null,C=null,rO(c,193)&&(rO(x=KR(Oq(t.a,c),305),12)?_=KR(x,12):rO(x,10)&&(k=KR(x,10),_=KR(c$(k.j,0),12))),rO(u,193)&&(rO(E=KR(Oq(t.a,u),305),12)?C=KR(E,12):rO(E,10)&&(S=KR(E,10),C=KR(c$(S.j,0),12))),!k||!S)throw Ay(new Lx("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(p6(p=new EG,e),E7(p,(jEt(),U1t),e),E7(p,(CEt(),J3t),null),d=KR(fut(i,A1t),21),k==S&&d.Fc((Hmt(),VJt)),_||(d4(),v=B7t,T=null,o&&JL(KR(fut(k,R5t),101))&&(HW(T=new IA(o.j,o.k),fK(e)),GX(T,n),Y0(l,s)&&(v=P7t,aB(T,k.n))),_=vkt(k,T,v,i)),C||(d4(),v=P7t,A=null,o&&JL(KR(fut(S,R5t),101))&&(HW(A=new IA(o.b,o.c),fK(e)),GX(A,n)),C=vkt(S,A,v,uH(S))),eY(p,_),rY(p,C),(_.e.c.length>1||_.g.c.length>1||C.e.c.length>1||C.g.c.length>1)&&d.Fc((Hmt(),HJt)),f=new zO((!e.n&&(e.n=new ez(Qhe,e,1,7)),e.n));f.e!=f.i.gc();)if(!dx(zD(spt(h=KR(Frt(f),135),E5t)))&&h.a)switch(b=O9(h),SO(p.b,b),KR(fut(b,O3t),278).g){case 1:case 2:d.Fc((Hmt(),zJt));break;case 0:d.Fc((Hmt(),$Jt)),E7(b,O3t,(g2(),Uce))}if(a=KR(fut(i,T3t),322),m=KR(fut(i,v5t),323),r=a==(A4(),$Zt)||m==(Qrt(),s7t),o&&0!=(!o.a&&(o.a=new AO(zhe,o,5)),o.a).i&&r){for(y=yht(o),g=new Zw,w=Mrt(y,0);w.b!=w.d.c;)RF(g,new KL(KR(gW(w),8)));E7(p,G1t,g)}return p}function jEt(){var t,e;jEt=E,U1t=new Vm(pIt),p1t=new Vm("coordinateOrigin"),t0t=new Vm("processors"),g1t=new AP("compoundNode",(FN(),!1)),I1t=new AP("insideConnections",!1),G1t=new Vm("originalBendpoints"),K1t=new Vm("originalDummyNodePosition"),Y1t=new Vm("originalLabelEdge"),n0t=new Vm("representedLabels"),v1t=new Vm("endLabels"),x1t=new Vm("endLabel.origin"),B1t=new AP("labelSide",(bst(),Tle)),q1t=new AP("maxEdgeThickness",0),i0t=new AP("reversed",!1),e0t=new Vm(bIt),$1t=new AP("longEdgeSource",null),j1t=new AP("longEdgeTarget",null),F1t=new AP("longEdgeHasLabelDummies",!1),R1t=new AP("longEdgeBeforeLabelDummy",!1),w1t=new AP("edgeConstraint",(I7(),sJt)),N1t=new Vm("inLayerLayoutUnit"),O1t=new AP("inLayerConstraint",(q1(),i1t)),D1t=new AP("inLayerSuccessorConstraint",new yy),P1t=new AP("inLayerSuccessorConstraintBetweenNonDummies",!1),Z1t=new Vm("portDummy"),b1t=new AP("crossingHint",ttt(0)),A1t=new AP("graphProperties",new UB(e=KR(t_(XJt),9),KR(jP(e,e.length),9),0)),E1t=new AP("externalPortSide",(MTt(),Sue)),S1t=new AP("externalPortSize",new Hk),_1t=new Vm("externalPortReplacedDummies"),T1t=new Vm("externalPortReplacedDummy"),k1t=new AP("externalPortConnections",new UB(t=KR(t_(Due),9),KR(jP(t,t.length),9),0)),J1t=new AP(YMt,0),u1t=new Vm("barycenterAssociates"),d0t=new Vm("TopSideComments"),h1t=new Vm("BottomSideComments"),d1t=new Vm("CommentConnectionPort"),L1t=new AP("inputCollect",!1),X1t=new AP("outputCollect",!1),y1t=new AP("cyclic",!1),m1t=new Vm("crossHierarchyMap"),f0t=new Vm("targetOffset"),new AP("splineLabelSize",new Hk),o0t=new Vm("spacings"),Q1t=new AP("partitionConstraint",!1),f1t=new Vm("breakingPoint.info"),u0t=new Vm("splines.survivingEdge"),l0t=new Vm("splines.route.start"),s0t=new Vm("splines.edgeChain"),W1t=new Vm("originalPortConstraints"),a0t=new Vm("selfLoopHolder"),c0t=new Vm("splines.nsPortY"),H1t=new Vm("modelOrder"),z1t=new Vm("longEdgeTargetNode"),C1t=new AP(LOt,!1),r0t=new AP(LOt,!1),M1t=new Vm("layerConstraints.hiddenNodes"),V1t=new Vm("layerConstraints.opposidePort"),h0t=new Vm("targetNode.modelOrder")}function zEt(){var t,e;zEt=E,qoe=new Vm(FRt),sce=new Vm($Rt),xat(),Hoe=new vL(BDt,Uoe=poe),Goe=new vL(CLt,null),Koe=new Vm(jRt),Yct(),Joe=Z$(joe,t7(rk(Bce,1),sCt,298,0,[Boe])),Zoe=new vL(VDt,Joe),tse=new vL(PDt,(FN(),!1)),jtt(),ese=new vL($Dt,nse=jce),Iet(),ose=new vL(cDt,sse=Zce),use=new vL(BRt,!1),V9(),hse=new vL(iDt,fse=mle),Bse=new bI(12),Pse=new vL(ALt,Bse),bse=new vL(eIt,!1),mse=new vL(oPt,!1),Dse=new vL(rIt,!1),plt(),Wse=new vL(nIt,Xse=Xle),rce=new Vm(iPt),ace=new Vm(XLt),oce=new Vm(JLt),lce=new Vm(tIt),wse=new Zw,yse=new vL(WDt,wse),Qoe=new vL(ZDt,!1),dse=new vL(JDt,!1),xse=new qw,vse=new vL(rPt,xse),Nse=new vL(NDt,!1),cce=new vL(zRt,1),Xoe=new Vm(qRt),Woe=new Vm(HRt),Ace=new vL(uIt,!1),new vL(URt,!0),ttt(0),new vL(GRt,ttt(100)),new vL(KRt,!1),ttt(0),new vL(YRt,ttt(4e3)),ttt(0),new vL(VRt,ttt(400)),new vL(WRt,!1),new vL(XRt,!1),new vL(QRt,!0),new vL(ZRt,!1),mnt(),Yoe=new vL(RRt,Voe=uhe),uce=new vL(xDt,10),hce=new vL(kDt,10),fce=new vL(ELt,20),dce=new vL(_Dt,10),gce=new vL(ZLt,2),pce=new vL(TDt,10),mce=new vL(EDt,0),yce=new vL(ADt,5),wce=new vL(SDt,1),vce=new vL(CDt,1),xce=new vL(QLt,20),kce=new vL(MDt,10),Ece=new vL(LDt,10),bce=new Vm(IDt),Tce=new $L,_ce=new vL(aPt,Tce),$se=new Vm(nPt),Rse=new vL(ePt,Fse=!1),_se=new bI(5),kse=new vL(jDt,_se),cpt(),e=KR(t_(Rle),9),Ese=new UB(e,KR(jP(e,e.length),9),0),Tse=new vL(cIt,Ese),Drt(),zse=new vL(HDt,qse=jle),Use=new Vm(UDt),Gse=new Vm(GDt),Kse=new Vm(KDt),Hse=new Vm(YDt),t=KR(t_(jue),9),Cse=new UB(t,KR(jP(t,t.length),9),0),Sse=new vL(sIt,Cse),Ose=fet((Vwt(),Hue)),Ise=new vL(oIt,Ose),Lse=new IA(0,0),Mse=new vL(SIt,Lse),Ase=new vL(aIt,!1),g2(),rse=new vL(XDt,ase=Uce),ise=new vL(iIt,!1),ttt(1),new vL(JRt,null),Yse=new Vm(tPt),Qse=new Vm(QDt),MTt(),nce=new vL(DDt,ice=Sue),Vse=new Vm(ODt),cdt(),tce=fet(iue),Jse=new vL(lIt,tce),Zse=new vL(zDt,!1),ece=new vL(qDt,!0),Oce=new vL(hIt,1),Dce=new vL(tFt,null),Cce=new vL(fIt,150),Sce=new vL(dIt,1.414),Mce=new vL(gIt,null),Lce=new vL(eFt,1),gse=new vL(RDt,!1),pse=new vL(FDt,!1),cse=new vL(SLt,1),Qlt(),new vL(nFt,lse=ale),jse=!0,Y9(),Nce=Zue,Pce=Zue,Ice=Zue}function qEt(){qEt=E,OXt=new FS("DIRECTION_PREPROCESSOR",0),MXt=new FS("COMMENT_PREPROCESSOR",1),NXt=new FS("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),WXt=new FS("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),gQt=new FS("PARTITION_PREPROCESSOR",4),JXt=new FS("LABEL_DUMMY_INSERTER",5),vQt=new FS("SELF_LOOP_PREPROCESSOR",6),rQt=new FS("LAYER_CONSTRAINT_PREPROCESSOR",7),fQt=new FS("PARTITION_MIDPROCESSOR",8),UXt=new FS("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),cQt=new FS("NODE_PROMOTION",10),iQt=new FS("LAYER_CONSTRAINT_POSTPROCESSOR",11),dQt=new FS("PARTITION_POSTPROCESSOR",12),jXt=new FS("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),kQt=new FS("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),_Xt=new FS("BREAKING_POINT_INSERTER",15),sQt=new FS("LONG_EDGE_SPLITTER",16),bQt=new FS("PORT_SIDE_PROCESSOR",17),XXt=new FS("INVERTED_PORT_PROCESSOR",18),pQt=new FS("PORT_LIST_SORTER",19),TQt=new FS("SORT_BY_INPUT_ORDER_OF_MODEL",20),uQt=new FS("NORTH_SOUTH_PORT_PREPROCESSOR",21),TXt=new FS("BREAKING_POINT_PROCESSOR",22),hQt=new FS(sOt,23),EQt=new FS(cOt,24),yQt=new FS("SELF_LOOP_PORT_RESTORER",25),_Qt=new FS("SINGLE_EDGE_GRAPH_WRAPPER",26),QXt=new FS("IN_LAYER_CONSTRAINT_PROCESSOR",27),RXt=new FS("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),ZXt=new FS("LABEL_AND_NODE_SIZE_PROCESSOR",29),VXt=new FS("INNERMOST_NODE_MARGIN_CALCULATOR",30),xQt=new FS("SELF_LOOP_ROUTER",31),CXt=new FS("COMMENT_NODE_MARGIN_CALCULATOR",32),PXt=new FS("END_LABEL_PREPROCESSOR",33),eQt=new FS("LABEL_DUMMY_SWITCHER",34),SXt=new FS("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),nQt=new FS("LABEL_SIDE_SELECTOR",36),KXt=new FS("HYPEREDGE_DUMMY_MERGER",37),zXt=new FS("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),aQt=new FS("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),HXt=new FS("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),LXt=new FS("CONSTRAINTS_POSTPROCESSOR",41),AXt=new FS("COMMENT_POSTPROCESSOR",42),YXt=new FS("HYPERNODE_PROCESSOR",43),qXt=new FS("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),oQt=new FS("LONG_EDGE_JOINER",45),wQt=new FS("SELF_LOOP_POSTPROCESSOR",46),EXt=new FS("BREAKING_POINT_REMOVER",47),lQt=new FS("NORTH_SOUTH_PORT_POSTPROCESSOR",48),GXt=new FS("HORIZONTAL_COMPACTOR",49),tQt=new FS("LABEL_DUMMY_REMOVER",50),FXt=new FS("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),BXt=new FS("END_LABEL_SORTER",52),mQt=new FS("REVERSED_EDGE_RESTORER",53),DXt=new FS("END_LABEL_POSTPROCESSOR",54),$Xt=new FS("HIERARCHICAL_NODE_RESIZER",55),IXt=new FS("DIRECTION_POSTPROCESSOR",56)}function HEt(){HEt=E,E0(),r2t=new vL(IOt,a2t=nJt),k2t=new vL(OOt,(FN(),!1)),TW(),C2t=new vL(NOt,A2t=s1t),K2t=new vL(DOt,!1),Y2t=new vL(POt,!0),x0t=new vL(BOt,!1),H1(),f4t=new vL(ROt,d4t=I7t),ttt(1),x4t=new vL(FOt,ttt(7)),k4t=new vL($Ot,!1),_2t=new vL(jOt,!1),Ait(),n2t=new vL(zOt,i2t=XZt),Dbt(),U2t=new vL(qOt,G2t=G6t),bnt(),D2t=new vL(HOt,P2t=w0t),ttt(-1),N2t=new vL(UOt,null),ttt(-1),B2t=new vL(GOt,ttt(-1)),ttt(-1),R2t=new vL(KOt,ttt(4)),ttt(-1),$2t=new vL(YOt,ttt(2)),Twt(),q2t=new vL(VOt,H2t=x7t),ttt(0),z2t=new vL(WOt,ttt(0)),I2t=new vL(XOt,ttt(lSt)),A4(),t2t=new vL(QOt,e2t=jZt),R0t=new vL(ZOt,!1),K0t=new vL(JOt,.1),Z0t=new vL(tNt,!1),V0t=new vL(eNt,null),W0t=new vL(nNt,null),ttt(-1),X0t=new vL(iNt,null),ttt(-1),Q0t=new vL(rNt,ttt(-1)),ttt(0),F0t=new vL(aNt,ttt(40)),_6(),H0t=new vL(oNt,U0t=JJt),$0t=new vL(sNt,j0t=QJt),Qrt(),u4t=new vL(cNt,h4t=o7t),t4t=new Vm(lNt),KJ(),V2t=new vL(uNt,W2t=wJt),Sct(),Q2t=new vL(hNt,Z2t=SJt),i4t=new vL(fNt,.3),a4t=new Vm(dNt),wat(),o4t=new vL(gNt,s4t=n7t),P5(),f2t=new vL(pNt,d2t=z7t),w8(),g2t=new vL(bNt,p2t=Y7t),t9(),b2t=new vL(mNt,m2t=Z7t),w2t=new vL(yNt,.2),u2t=new vL(wNt,2),m4t=new vL(vNt,null),w4t=new vL(xNt,10),y4t=new vL(kNt,10),v4t=new vL(_Nt,20),ttt(0),g4t=new vL(TNt,ttt(0)),ttt(0),p4t=new vL(ENt,ttt(0)),ttt(0),b4t=new vL(SNt,ttt(0)),k0t=new vL(CNt,!1),zut(),E0t=new vL(ANt,S0t=PJt),gZ(),_0t=new vL(MNt,T0t=BZt),E2t=new vL(LNt,!1),ttt(0),T2t=new vL(INt,ttt(16)),ttt(0),S2t=new vL(ONt,ttt(5)),r7(),U4t=new vL(NNt,G4t=s8t),_4t=new vL(DNt,10),S4t=new vL(PNt,1),f4(),D4t=new vL(BNt,P4t=KZt),M4t=new Vm(RNt),O4t=ttt(1),ttt(0),I4t=new vL(FNt,O4t),h4(),W4t=new vL($Nt,X4t=e8t),K4t=new Vm(jNt),j4t=new vL(zNt,!0),F4t=new vL(qNt,2),q4t=new vL(HNt,!0),Zut(),c2t=new vL(UNt,l2t=pJt),Jht(),o2t=new vL(GNt,s2t=MZt),Mit(),P0t=new vL(KNt,B0t=S7t),D0t=new vL(YNt,!1),N0t=new vL(VNt,!1),Yit(),C0t=new vL(WNt,A0t=qWt),K9(),I0t=new vL(XNt,O0t=W6t),M0t=new vL(QNt,0),L0t=new vL(ZNt,0),L2t=ZZt,M2t=$Zt,F2t=U6t,j2t=U6t,O2t=$6t,V9(),Y0t=ble,J0t=jZt,G0t=jZt,z0t=jZt,q0t=ble,e4t=l7t,n4t=o7t,X2t=o7t,J2t=o7t,r4t=c7t,l4t=l7t,c4t=l7t,Iet(),y2t=Qce,v2t=Qce,x2t=Z7t,h2t=Xce,T4t=c8t,E4t=o8t,C4t=c8t,A4t=o8t,B4t=c8t,R4t=o8t,L4t=GZt,N4t=KZt,Q4t=c8t,Z4t=o8t,Y4t=c8t,V4t=o8t,z4t=o8t,$4t=o8t,H4t=o8t}function UEt(){UEt=E,ppe=new by(7),bpe=new D$(8,94),new D$(8,64),mpe=new D$(8,36),_pe=new D$(8,65),Tpe=new D$(8,122),Epe=new D$(8,90),Ape=new D$(8,98),xpe=new D$(8,66),Spe=new D$(8,60),Mpe=new D$(8,62),gpe=new by(11),Nmt(dpe=new UY(4),48,57),Nmt(Cpe=new UY(4),48,57),Nmt(Cpe,65,90),Nmt(Cpe,95,95),Nmt(Cpe,97,122),Nmt(kpe=new UY(4),9,9),Nmt(kpe,10,10),Nmt(kpe,12,12),Nmt(kpe,13,13),Nmt(kpe,32,32),ype=Zvt(dpe),vpe=Zvt(Cpe),wpe=Zvt(kpe),lpe=new my,upe=new my,hpe=t7(rk(fUt,1),RSt,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),cpe=t7(rk(fUt,1),RSt,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",Hqt,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),fpe=t7(rk($pe,1),$Ct,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function GEt(){GEt=E,VKt=new n5("OUT_T_L",0,(PJ(),wKt),(z1(),TKt),(d2(),hKt),hKt,t7(rk(sHt,1),pSt,21,0,[Z$((cpt(),Ole),t7(rk(Rle,1),sCt,95,0,[Ple,Ale]))])),YKt=new n5("OUT_T_C",1,yKt,TKt,hKt,fKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ple,Cle])),Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ple,Cle,Mle]))])),WKt=new n5("OUT_T_R",2,vKt,TKt,hKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ple,Lle]))])),$Kt=new n5("OUT_B_L",3,wKt,SKt,dKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Nle,Ale]))])),FKt=new n5("OUT_B_C",4,yKt,SKt,dKt,fKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Nle,Cle])),Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Nle,Cle,Mle]))])),jKt=new n5("OUT_B_R",5,vKt,SKt,dKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Nle,Lle]))])),HKt=new n5("OUT_L_T",6,vKt,SKt,hKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ale,Ple,Mle]))])),qKt=new n5("OUT_L_C",7,vKt,EKt,fKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ale,Dle])),Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ale,Dle,Mle]))])),zKt=new n5("OUT_L_B",8,vKt,TKt,dKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Ale,Nle,Mle]))])),KKt=new n5("OUT_R_T",9,wKt,SKt,hKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Lle,Ple,Mle]))])),GKt=new n5("OUT_R_C",10,wKt,EKt,fKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Lle,Dle])),Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Lle,Dle,Mle]))])),UKt=new n5("OUT_R_B",11,wKt,TKt,dKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ole,t7(rk(Rle,1),sCt,95,0,[Lle,Nle,Mle]))])),BKt=new n5("IN_T_L",12,wKt,SKt,hKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Ale])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Ale,Mle]))])),PKt=new n5("IN_T_C",13,yKt,SKt,hKt,fKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Cle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Cle,Mle]))])),RKt=new n5("IN_T_R",14,vKt,SKt,hKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Lle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Ple,Lle,Mle]))])),NKt=new n5("IN_C_L",15,wKt,EKt,fKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Ale])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Ale,Mle]))])),OKt=new n5("IN_C_C",16,yKt,EKt,fKt,fKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Cle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Cle,Mle]))])),DKt=new n5("IN_C_R",17,vKt,EKt,fKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Lle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Dle,Lle,Mle]))])),LKt=new n5("IN_B_L",18,wKt,TKt,dKt,hKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Ale])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Ale,Mle]))])),MKt=new n5("IN_B_C",19,yKt,TKt,dKt,fKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Cle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Cle,Mle]))])),IKt=new n5("IN_B_R",20,vKt,TKt,dKt,dKt,t7(rk(sHt,1),pSt,21,0,[Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Lle])),Z$(Ile,t7(rk(Rle,1),sCt,95,0,[Nle,Lle,Mle]))])),XKt=new n5(qMt,21,null,null,null,null,t7(rk(sHt,1),pSt,21,0,[]))}function KEt(){KEt=E,lde=(Aq(),sde).b,KR(l2(iG(sde.b),0),35),KR(l2(iG(sde.b),1),19),cde=sde.a,KR(l2(iG(sde.a),0),35),KR(l2(iG(sde.a),1),19),KR(l2(iG(sde.a),2),19),KR(l2(iG(sde.a),3),19),KR(l2(iG(sde.a),4),19),ude=sde.o,KR(l2(iG(sde.o),0),35),KR(l2(iG(sde.o),1),35),fde=KR(l2(iG(sde.o),2),19),KR(l2(iG(sde.o),3),19),KR(l2(iG(sde.o),4),19),KR(l2(iG(sde.o),5),19),KR(l2(iG(sde.o),6),19),KR(l2(iG(sde.o),7),19),KR(l2(iG(sde.o),8),19),KR(l2(iG(sde.o),9),19),KR(l2(iG(sde.o),10),19),KR(l2(iG(sde.o),11),19),KR(l2(iG(sde.o),12),19),KR(l2(iG(sde.o),13),19),KR(l2(iG(sde.o),14),19),KR(l2(iG(sde.o),15),19),KR(l2(nG(sde.o),0),62),KR(l2(nG(sde.o),1),62),KR(l2(nG(sde.o),2),62),KR(l2(nG(sde.o),3),62),KR(l2(nG(sde.o),4),62),KR(l2(nG(sde.o),5),62),KR(l2(nG(sde.o),6),62),KR(l2(nG(sde.o),7),62),KR(l2(nG(sde.o),8),62),KR(l2(nG(sde.o),9),62),hde=sde.p,KR(l2(iG(sde.p),0),35),KR(l2(iG(sde.p),1),35),KR(l2(iG(sde.p),2),35),KR(l2(iG(sde.p),3),35),KR(l2(iG(sde.p),4),19),KR(l2(iG(sde.p),5),19),KR(l2(nG(sde.p),0),62),KR(l2(nG(sde.p),1),62),dde=sde.q,KR(l2(iG(sde.q),0),35),gde=sde.v,KR(l2(iG(sde.v),0),19),KR(l2(nG(sde.v),0),62),KR(l2(nG(sde.v),1),62),KR(l2(nG(sde.v),2),62),pde=sde.w,KR(l2(iG(sde.w),0),35),KR(l2(iG(sde.w),1),35),KR(l2(iG(sde.w),2),35),KR(l2(iG(sde.w),3),19),bde=sde.B,KR(l2(iG(sde.B),0),19),KR(l2(nG(sde.B),0),62),KR(l2(nG(sde.B),1),62),KR(l2(nG(sde.B),2),62),wde=sde.Q,KR(l2(iG(sde.Q),0),19),KR(l2(nG(sde.Q),0),62),vde=sde.R,KR(l2(iG(sde.R),0),35),xde=sde.S,KR(l2(nG(sde.S),0),62),KR(l2(nG(sde.S),1),62),KR(l2(nG(sde.S),2),62),KR(l2(nG(sde.S),3),62),KR(l2(nG(sde.S),4),62),KR(l2(nG(sde.S),5),62),KR(l2(nG(sde.S),6),62),KR(l2(nG(sde.S),7),62),KR(l2(nG(sde.S),8),62),KR(l2(nG(sde.S),9),62),KR(l2(nG(sde.S),10),62),KR(l2(nG(sde.S),11),62),KR(l2(nG(sde.S),12),62),KR(l2(nG(sde.S),13),62),KR(l2(nG(sde.S),14),62),kde=sde.T,KR(l2(iG(sde.T),0),19),KR(l2(iG(sde.T),2),19),_de=KR(l2(iG(sde.T),3),19),KR(l2(iG(sde.T),4),19),KR(l2(nG(sde.T),0),62),KR(l2(nG(sde.T),1),62),KR(l2(iG(sde.T),1),19),Tde=sde.U,KR(l2(iG(sde.U),0),35),KR(l2(iG(sde.U),1),35),KR(l2(iG(sde.U),2),19),KR(l2(iG(sde.U),3),19),KR(l2(iG(sde.U),4),19),KR(l2(iG(sde.U),5),19),KR(l2(nG(sde.U),0),62),Ede=sde.V,KR(l2(iG(sde.V),0),19),Sde=sde.W,KR(l2(iG(sde.W),0),35),KR(l2(iG(sde.W),1),35),KR(l2(iG(sde.W),2),35),KR(l2(iG(sde.W),3),19),KR(l2(iG(sde.W),4),19),KR(l2(iG(sde.W),5),19),Ade=sde.bb,KR(l2(iG(sde.bb),0),35),KR(l2(iG(sde.bb),1),35),KR(l2(iG(sde.bb),2),35),KR(l2(iG(sde.bb),3),35),KR(l2(iG(sde.bb),4),35),KR(l2(iG(sde.bb),5),35),KR(l2(iG(sde.bb),6),35),KR(l2(iG(sde.bb),7),19),KR(l2(nG(sde.bb),0),62),KR(l2(nG(sde.bb),1),62),Mde=sde.eb,KR(l2(iG(sde.eb),0),35),KR(l2(iG(sde.eb),1),35),KR(l2(iG(sde.eb),2),35),KR(l2(iG(sde.eb),3),35),KR(l2(iG(sde.eb),4),35),KR(l2(iG(sde.eb),5),35),KR(l2(iG(sde.eb),6),19),KR(l2(iG(sde.eb),7),19),Cde=sde.ab,KR(l2(iG(sde.ab),0),35),KR(l2(iG(sde.ab),1),35),mde=sde.H,KR(l2(iG(sde.H),0),19),KR(l2(iG(sde.H),1),19),KR(l2(iG(sde.H),2),19),KR(l2(iG(sde.H),3),19),KR(l2(iG(sde.H),4),19),KR(l2(iG(sde.H),5),19),KR(l2(nG(sde.H),0),62),Lde=sde.db,KR(l2(iG(sde.db),0),19),yde=sde.M}function YEt(t,e,n,r){var a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A,M,L,I,O,N,D,P,B,R,F,$,j,z,q,H,U,G,K,Y;if(r.$g()||dx(zD(spt(e,(zEt(),Nse)))))return QU(),QU(),NUt;if(_=0!=(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i,T=!(E=function(t){var e,n,i;if(dx(zD(spt(t,(zEt(),gse))))){for(i=new yy,n=new Dj(lN(Ypt(t).a.Kc(),new u));Rgt(n);)Idt(e=KR(bQ(n),74))&&dx(zD(spt(e,pse)))&&Dy(i.c,e);return i}return QU(),QU(),NUt}(e)).dc(),_||T){if(!(a=KR(spt(e,sce),143)))throw Ay(new Mx("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(U=kM(a,(Ogt(),sfe)),urt(e),!_&&T&&!U)return QU(),QU(),NUt;if(w=new yy,$M(spt(e,hse))===$M((V9(),ble))&&(kM(a,rfe)||kM(a,ife))){if(dx(zD(spt(e,Ace))))throw Ay(new Mx("Topdown layout cannot be used together with hierarchy handling."));for(D=Ryt(t,e),z3(P=new jT,(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a));0!=P.b;)urt(O=KR(0==P.b?null:(KD(0!=P.b),J0(P,P.a.a)),27)),$M(spt(O,hse))===$M(yle)||GZ(O,qoe)&&!rQ(a,spt(O,sce))?(G6(w,YEt(t,O,n,r)),nat(O,hse,yle),Bwt(O)):z3(P,(!O.a&&(O.a=new ez(Zhe,O,10,11)),O.a))}else{if(D=(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i,dx(zD(spt(e,Ace)))){if((G=r.eh(1)).Ug(kRt,1),null==spt(e,Mce))throw Ay(new Mx(e.k+" has not been assigned a top-down node type."));if(KR(spt(e,Mce),280)==(Y9(),Zue)||KR(spt(e,Mce),280)==the)for(y=new zO((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a));y.e!=y.i.gc();)m=KR(Frt(y),27),I=KR(spt(m,sce),143),(!m.a&&(m.a=new ez(Zhe,m,10,11)),m.a).i>0&&HG(I.f),null!=spt(m,Dce)&&(H=KR(spt(m,Dce),347).Tg(m),sI(m,i.Math.max(m.g,H.a),i.Math.max(m.f,H.b)));if(B=KR(spt(e,Pse),107),g=e.g-(B.b+B.c),d=e.f-(B.d+B.a),G.bh("Available Child Area: ("+g+"|"+d+")"),nat(e,Goe,g/d),prt(e,a,r.eh(D)),KR(spt(e,Mce),280)==the&&(aEt(e),sI(e,B.b+gx(qD(spt(e,Xoe)))+B.c,B.d+gx(qD(spt(e,Woe)))+B.a)),G.bh("Executed layout algorithm: "+HD(spt(e,qoe))+" on node "+e.k),KR(spt(e,Mce),280)==Zue){if(g<0||d<0)throw Ay(new Mx("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(GZ(e,Xoe)||GZ(e,Woe)||aEt(e),b=gx(qD(spt(e,Xoe))),p=gx(qD(spt(e,Woe))),G.bh("Desired Child Area: ("+b+"|"+p+")"),F=g/b,$=d/p,R=i.Math.min(F,i.Math.min($,gx(qD(spt(e,Lce))))),nat(e,Oce,R),G.bh(e.k+" -- Local Scale Factor (X|Y): ("+F+"|"+$+")"),v=KR(spt(e,Zoe),21),o=0,s=0,R'?":_B(G$t,t)?"'(?<' or '(? toIndex: ",JAt=", toIndex: ",tMt="Index: ",eMt=", Size: ",nMt="org.eclipse.elk.alg.common",iMt={50:1},rMt="org.eclipse.elk.alg.common.compaction",aMt="Scanline/EventHandler",oMt="org.eclipse.elk.alg.common.compaction.oned",sMt="CNode belongs to another CGroup.",cMt="ISpacingsHandler/1",lMt="The ",uMt=" instance has been finished already.",hMt="The direction ",fMt=" is not supported by the CGraph instance.",dMt="OneDimensionalCompactor",gMt="OneDimensionalCompactor/lambda$0$Type",pMt="Quadruplet",bMt="ScanlineConstraintCalculator",mMt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",yMt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",wMt="ScanlineConstraintCalculator/Timestamp",vMt="ScanlineConstraintCalculator/lambda$0$Type",xMt={178:1,46:1},kMt="org.eclipse.elk.alg.common.compaction.options",_Mt="org.eclipse.elk.core.data",TMt="org.eclipse.elk.polyomino.traversalStrategy",EMt="org.eclipse.elk.polyomino.lowLevelSort",SMt="org.eclipse.elk.polyomino.highLevelSort",CMt="org.eclipse.elk.polyomino.fill",AMt={134:1},MMt="polyomino",LMt="org.eclipse.elk.alg.common.networksimplex",IMt={183:1,3:1,4:1},OMt="org.eclipse.elk.alg.common.nodespacing",NMt="org.eclipse.elk.alg.common.nodespacing.cellsystem",DMt="CENTER",PMt={217:1,336:1},BMt={3:1,4:1,5:1,603:1},RMt="LEFT",FMt="RIGHT",$Mt="Vertical alignment cannot be null",jMt="BOTTOM",zMt="org.eclipse.elk.alg.common.nodespacing.internal",qMt="UNDEFINED",HMt=.01,UMt="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",GMt="LabelPlacer/lambda$0$Type",KMt="LabelPlacer/lambda$1$Type",YMt="portRatioOrPosition",VMt="org.eclipse.elk.alg.common.overlaps",WMt="DOWN",XMt="org.eclipse.elk.alg.common.polyomino",QMt="NORTH",ZMt="EAST",JMt="SOUTH",tLt="WEST",eLt="org.eclipse.elk.alg.common.polyomino.structures",nLt="Direction",iLt="Grid is only of size ",rLt=". Requested point (",aLt=") is out of bounds.",oLt=" Given center based coordinates were (",sLt="org.eclipse.elk.graph.properties",cLt="IPropertyHolder",lLt={3:1,96:1,137:1},uLt="org.eclipse.elk.alg.common.spore",hLt="org.eclipse.elk.alg.common.utils",fLt={205:1},dLt="org.eclipse.elk.core",gLt="Connected Components Compaction",pLt="org.eclipse.elk.alg.disco",bLt="org.eclipse.elk.alg.disco.graph",mLt="org.eclipse.elk.alg.disco.options",yLt="CompactionStrategy",wLt="org.eclipse.elk.disco.componentCompaction.strategy",vLt="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",xLt="org.eclipse.elk.disco.debug.discoGraph",kLt="org.eclipse.elk.disco.debug.discoPolys",_Lt="componentCompaction",TLt="org.eclipse.elk.disco",ELt="org.eclipse.elk.spacing.componentComponent",SLt="org.eclipse.elk.edge.thickness",CLt="org.eclipse.elk.aspectRatio",ALt="org.eclipse.elk.padding",MLt="org.eclipse.elk.alg.disco.transform",LLt=1.5707963267948966,ILt=17976931348623157e292,OLt={3:1,4:1,5:1,198:1},NLt={3:1,6:1,4:1,5:1,100:1,115:1},DLt="org.eclipse.elk.alg.force",PLt="ComponentsProcessor",BLt="ComponentsProcessor/1",RLt="ElkGraphImporter/lambda$0$Type",FLt="org.eclipse.elk.alg.force.graph",$Lt="Component Layout",jLt="org.eclipse.elk.alg.force.model",zLt="org.eclipse.elk.force.model",qLt="org.eclipse.elk.force.iterations",HLt="org.eclipse.elk.force.repulsivePower",ULt="org.eclipse.elk.force.temperature",GLt=.001,KLt="org.eclipse.elk.force.repulsion",YLt="org.eclipse.elk.alg.force.options",VLt=1.600000023841858,WLt="org.eclipse.elk.force",XLt="org.eclipse.elk.priority",QLt="org.eclipse.elk.spacing.nodeNode",ZLt="org.eclipse.elk.spacing.edgeLabel",JLt="org.eclipse.elk.randomSeed",tIt="org.eclipse.elk.separateConnectedComponents",eIt="org.eclipse.elk.interactive",nIt="org.eclipse.elk.portConstraints",iIt="org.eclipse.elk.edgeLabels.inline",rIt="org.eclipse.elk.omitNodeMicroLayout",aIt="org.eclipse.elk.nodeSize.fixedGraphSize",oIt="org.eclipse.elk.nodeSize.options",sIt="org.eclipse.elk.nodeSize.constraints",cIt="org.eclipse.elk.nodeLabels.placement",lIt="org.eclipse.elk.portLabels.placement",uIt="org.eclipse.elk.topdownLayout",hIt="org.eclipse.elk.topdown.scaleFactor",fIt="org.eclipse.elk.topdown.hierarchicalNodeWidth",dIt="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",gIt="org.eclipse.elk.topdown.nodeType",pIt="origin",bIt="random",mIt="boundingBox.upLeft",yIt="boundingBox.lowRight",wIt="org.eclipse.elk.stress.fixed",vIt="org.eclipse.elk.stress.desiredEdgeLength",xIt="org.eclipse.elk.stress.dimension",kIt="org.eclipse.elk.stress.epsilon",_It="org.eclipse.elk.stress.iterationLimit",TIt="org.eclipse.elk.stress",EIt="ELK Stress",SIt="org.eclipse.elk.nodeSize.minimum",CIt="org.eclipse.elk.alg.force.stress",AIt="Layered layout",MIt="org.eclipse.elk.alg.layered",LIt="org.eclipse.elk.alg.layered.compaction.components",IIt="org.eclipse.elk.alg.layered.compaction.oned",OIt="org.eclipse.elk.alg.layered.compaction.oned.algs",NIt="org.eclipse.elk.alg.layered.compaction.recthull",DIt="org.eclipse.elk.alg.layered.components",PIt="NONE",BIt="MODEL_ORDER",RIt={3:1,6:1,4:1,9:1,5:1,126:1},FIt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},$It="org.eclipse.elk.alg.layered.compound",jIt={47:1},zIt="org.eclipse.elk.alg.layered.graph",qIt=" -> ",HIt="Not supported by LGraph",UIt="Port side is undefined",GIt={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},KIt={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},YIt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},VIt="([{\"' \t\r\n",WIt=")]}\"' \t\r\n",XIt="The given string contains parts that cannot be parsed as numbers.",QIt="org.eclipse.elk.core.math",ZIt={3:1,4:1,140:1,214:1,423:1},JIt={3:1,4:1,107:1,214:1,423:1},tOt="org.eclipse.elk.alg.layered.graph.transform",eOt="ElkGraphImporter",nOt="ElkGraphImporter/lambda$1$Type",iOt="ElkGraphImporter/lambda$2$Type",rOt="ElkGraphImporter/lambda$4$Type",aOt="org.eclipse.elk.alg.layered.intermediate",oOt="Node margin calculation",sOt="ONE_SIDED_GREEDY_SWITCH",cOt="TWO_SIDED_GREEDY_SWITCH",lOt="No implementation is available for the layout processor ",uOt="IntermediateProcessorStrategy",hOt="Node '",fOt="FIRST_SEPARATE",dOt="LAST_SEPARATE",gOt="Odd port side processing",pOt="org.eclipse.elk.alg.layered.intermediate.compaction",bOt="org.eclipse.elk.alg.layered.intermediate.greedyswitch",mOt="org.eclipse.elk.alg.layered.p3order.counting",yOt={230:1},wOt="org.eclipse.elk.alg.layered.intermediate.loops",vOt="org.eclipse.elk.alg.layered.intermediate.loops.ordering",xOt="org.eclipse.elk.alg.layered.intermediate.loops.routing",kOt="org.eclipse.elk.alg.layered.intermediate.preserveorder",_Ot="org.eclipse.elk.alg.layered.intermediate.wrapping",TOt="org.eclipse.elk.alg.layered.options",EOt="INTERACTIVE",SOt="GREEDY",COt="DEPTH_FIRST",AOt="EDGE_LENGTH",MOt="SELF_LOOPS",LOt="firstTryWithInitialOrder",IOt="org.eclipse.elk.layered.directionCongruency",OOt="org.eclipse.elk.layered.feedbackEdges",NOt="org.eclipse.elk.layered.interactiveReferencePoint",DOt="org.eclipse.elk.layered.mergeEdges",POt="org.eclipse.elk.layered.mergeHierarchyEdges",BOt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",ROt="org.eclipse.elk.layered.portSortingStrategy",FOt="org.eclipse.elk.layered.thoroughness",$Ot="org.eclipse.elk.layered.unnecessaryBendpoints",jOt="org.eclipse.elk.layered.generatePositionAndLayerIds",zOt="org.eclipse.elk.layered.cycleBreaking.strategy",qOt="org.eclipse.elk.layered.layering.strategy",HOt="org.eclipse.elk.layered.layering.layerConstraint",UOt="org.eclipse.elk.layered.layering.layerChoiceConstraint",GOt="org.eclipse.elk.layered.layering.layerId",KOt="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",YOt="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",VOt="org.eclipse.elk.layered.layering.nodePromotion.strategy",WOt="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",XOt="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",QOt="org.eclipse.elk.layered.crossingMinimization.strategy",ZOt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",JOt="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",tNt="org.eclipse.elk.layered.crossingMinimization.semiInteractive",eNt="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",nNt="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",iNt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",rNt="org.eclipse.elk.layered.crossingMinimization.positionId",aNt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",oNt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",sNt="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",cNt="org.eclipse.elk.layered.nodePlacement.strategy",lNt="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",uNt="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",hNt="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",fNt="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",dNt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",gNt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",pNt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",bNt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",mNt="org.eclipse.elk.layered.edgeRouting.splines.mode",yNt="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",wNt="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",vNt="org.eclipse.elk.layered.spacing.baseValue",xNt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",kNt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",_Nt="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",TNt="org.eclipse.elk.layered.priority.direction",ENt="org.eclipse.elk.layered.priority.shortness",SNt="org.eclipse.elk.layered.priority.straightness",CNt="org.eclipse.elk.layered.compaction.connectedComponents",ANt="org.eclipse.elk.layered.compaction.postCompaction.strategy",MNt="org.eclipse.elk.layered.compaction.postCompaction.constraints",LNt="org.eclipse.elk.layered.highDegreeNodes.treatment",INt="org.eclipse.elk.layered.highDegreeNodes.threshold",ONt="org.eclipse.elk.layered.highDegreeNodes.treeHeight",NNt="org.eclipse.elk.layered.wrapping.strategy",DNt="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",PNt="org.eclipse.elk.layered.wrapping.correctionFactor",BNt="org.eclipse.elk.layered.wrapping.cutting.strategy",RNt="org.eclipse.elk.layered.wrapping.cutting.cuts",FNt="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",$Nt="org.eclipse.elk.layered.wrapping.validify.strategy",jNt="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",zNt="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",qNt="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",HNt="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",UNt="org.eclipse.elk.layered.edgeLabels.sideSelection",GNt="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",KNt="org.eclipse.elk.layered.considerModelOrder.strategy",YNt="org.eclipse.elk.layered.considerModelOrder.portModelOrder",VNt="org.eclipse.elk.layered.considerModelOrder.noModelOrder",WNt="org.eclipse.elk.layered.considerModelOrder.components",XNt="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",QNt="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",ZNt="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",JNt="layering",tDt="layering.minWidth",eDt="layering.nodePromotion",nDt="crossingMinimization",iDt="org.eclipse.elk.hierarchyHandling",rDt="crossingMinimization.greedySwitch",aDt="nodePlacement",oDt="nodePlacement.bk",sDt="edgeRouting",cDt="org.eclipse.elk.edgeRouting",lDt="spacing",uDt="priority",hDt="compaction",fDt="compaction.postCompaction",dDt="Specifies whether and how post-process compaction is applied.",gDt="highDegreeNodes",pDt="wrapping",bDt="wrapping.cutting",mDt="wrapping.validify",yDt="wrapping.multiEdge",wDt="edgeLabels",vDt="considerModelOrder",xDt="org.eclipse.elk.spacing.commentComment",kDt="org.eclipse.elk.spacing.commentNode",_Dt="org.eclipse.elk.spacing.edgeEdge",TDt="org.eclipse.elk.spacing.edgeNode",EDt="org.eclipse.elk.spacing.labelLabel",SDt="org.eclipse.elk.spacing.labelPortHorizontal",CDt="org.eclipse.elk.spacing.labelPortVertical",ADt="org.eclipse.elk.spacing.labelNode",MDt="org.eclipse.elk.spacing.nodeSelfLoop",LDt="org.eclipse.elk.spacing.portPort",IDt="org.eclipse.elk.spacing.individual",ODt="org.eclipse.elk.port.borderOffset",NDt="org.eclipse.elk.noLayout",DDt="org.eclipse.elk.port.side",PDt="org.eclipse.elk.debugMode",BDt="org.eclipse.elk.alignment",RDt="org.eclipse.elk.insideSelfLoops.activate",FDt="org.eclipse.elk.insideSelfLoops.yo",$Dt="org.eclipse.elk.direction",jDt="org.eclipse.elk.nodeLabels.padding",zDt="org.eclipse.elk.portLabels.nextToPortIfPossible",qDt="org.eclipse.elk.portLabels.treatAsGroup",HDt="org.eclipse.elk.portAlignment.default",UDt="org.eclipse.elk.portAlignment.north",GDt="org.eclipse.elk.portAlignment.south",KDt="org.eclipse.elk.portAlignment.west",YDt="org.eclipse.elk.portAlignment.east",VDt="org.eclipse.elk.contentAlignment",WDt="org.eclipse.elk.junctionPoints",XDt="org.eclipse.elk.edgeLabels.placement",QDt="org.eclipse.elk.port.index",ZDt="org.eclipse.elk.commentBox",JDt="org.eclipse.elk.hypernode",tPt="org.eclipse.elk.port.anchor",ePt="org.eclipse.elk.partitioning.activate",nPt="org.eclipse.elk.partitioning.partition",iPt="org.eclipse.elk.position",rPt="org.eclipse.elk.margins",aPt="org.eclipse.elk.spacing.portsSurrounding",oPt="org.eclipse.elk.interactiveLayout",sPt="org.eclipse.elk.core.util",cPt={3:1,4:1,5:1,601:1},lPt="NETWORK_SIMPLEX",uPt="SIMPLE",hPt={106:1,47:1},fPt="org.eclipse.elk.alg.layered.p1cycles",dPt="org.eclipse.elk.alg.layered.p2layers",gPt={413:1,230:1},pPt={846:1,3:1,4:1},bPt="org.eclipse.elk.alg.layered.p3order",mPt="org.eclipse.elk.alg.layered.p4nodes",yPt={3:1,4:1,5:1,854:1},wPt=1e-5,vPt="org.eclipse.elk.alg.layered.p4nodes.bk",xPt="org.eclipse.elk.alg.layered.p5edges",kPt="org.eclipse.elk.alg.layered.p5edges.orthogonal",_Pt="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",TPt=1e-6,EPt="org.eclipse.elk.alg.layered.p5edges.splines",SPt=.09999999999999998,CPt=1e-8,APt=4.71238898038469,MPt=3.141592653589793,LPt="org.eclipse.elk.alg.mrtree",IPt=.10000000149011612,OPt="SUPER_ROOT",NPt="org.eclipse.elk.alg.mrtree.graph",DPt=-17976931348623157e292,PPt="org.eclipse.elk.alg.mrtree.intermediate",BPt="Processor compute fanout",RPt={3:1,6:1,4:1,5:1,534:1,100:1,115:1},FPt="Set neighbors in level",$Pt="org.eclipse.elk.alg.mrtree.options",jPt="DESCENDANTS",zPt="org.eclipse.elk.mrtree.compaction",qPt="org.eclipse.elk.mrtree.edgeEndTextureLength",HPt="org.eclipse.elk.mrtree.treeLevel",UPt="org.eclipse.elk.mrtree.positionConstraint",GPt="org.eclipse.elk.mrtree.weighting",KPt="org.eclipse.elk.mrtree.edgeRoutingMode",YPt="org.eclipse.elk.mrtree.searchOrder",VPt="Position Constraint",WPt="org.eclipse.elk.mrtree",XPt="org.eclipse.elk.tree",QPt="Processor arrange level",ZPt="org.eclipse.elk.alg.mrtree.p2order",JPt="org.eclipse.elk.alg.mrtree.p4route",tBt="org.eclipse.elk.alg.radial",eBt=6.283185307179586,nBt="Before",iBt=5e-324,rBt="After",aBt="org.eclipse.elk.alg.radial.intermediate",oBt="COMPACTION",sBt="org.eclipse.elk.alg.radial.intermediate.compaction",cBt={3:1,4:1,5:1,100:1},lBt="org.eclipse.elk.alg.radial.intermediate.optimization",uBt="No implementation is available for the layout option ",hBt="org.eclipse.elk.alg.radial.options",fBt="org.eclipse.elk.radial.centerOnRoot",dBt="org.eclipse.elk.radial.orderId",gBt="org.eclipse.elk.radial.radius",pBt="org.eclipse.elk.radial.rotate",bBt="org.eclipse.elk.radial.compactor",mBt="org.eclipse.elk.radial.compactionStepSize",yBt="org.eclipse.elk.radial.sorter",wBt="org.eclipse.elk.radial.wedgeCriteria",vBt="org.eclipse.elk.radial.optimizationCriteria",xBt="org.eclipse.elk.radial.rotation.targetAngle",kBt="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",_Bt="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",TBt="Compaction",EBt="rotation",SBt="org.eclipse.elk.radial",CBt="org.eclipse.elk.alg.radial.p1position.wedge",ABt="org.eclipse.elk.alg.radial.sorting",MBt=5.497787143782138,LBt=3.9269908169872414,IBt=2.356194490192345,OBt="org.eclipse.elk.alg.rectpacking",NBt="org.eclipse.elk.alg.rectpacking.intermediate",DBt="org.eclipse.elk.alg.rectpacking.options",PBt="org.eclipse.elk.rectpacking.trybox",BBt="org.eclipse.elk.rectpacking.currentPosition",RBt="org.eclipse.elk.rectpacking.desiredPosition",FBt="org.eclipse.elk.rectpacking.inNewRow",$Bt="org.eclipse.elk.rectpacking.widthApproximation.strategy",jBt="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",zBt="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",qBt="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",HBt="org.eclipse.elk.rectpacking.packing.strategy",UBt="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",GBt="org.eclipse.elk.rectpacking.packing.compaction.iterations",KBt="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",YBt="widthApproximation",VBt="Compaction Strategy",WBt="packing.compaction",XBt="org.eclipse.elk.rectpacking",QBt="org.eclipse.elk.alg.rectpacking.p1widthapproximation",ZBt="org.eclipse.elk.alg.rectpacking.p2packing",JBt="No Compaction",tRt="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",eRt="org.eclipse.elk.alg.rectpacking.util",nRt="No implementation available for ",iRt="org.eclipse.elk.alg.spore",rRt="org.eclipse.elk.alg.spore.options",aRt="org.eclipse.elk.sporeCompaction",oRt="org.eclipse.elk.underlyingLayoutAlgorithm",sRt="org.eclipse.elk.processingOrder.treeConstruction",cRt="org.eclipse.elk.processingOrder.spanningTreeCostFunction",lRt="org.eclipse.elk.processingOrder.preferredRoot",uRt="org.eclipse.elk.processingOrder.rootSelection",hRt="org.eclipse.elk.structure.structureExtractionStrategy",fRt="org.eclipse.elk.compaction.compactionStrategy",dRt="org.eclipse.elk.compaction.orthogonal",gRt="org.eclipse.elk.overlapRemoval.maxIterations",pRt="org.eclipse.elk.overlapRemoval.runScanline",bRt="processingOrder",mRt="overlapRemoval",yRt="org.eclipse.elk.sporeOverlap",wRt="org.eclipse.elk.alg.spore.p1structure",vRt="org.eclipse.elk.alg.spore.p2processingorder",xRt="org.eclipse.elk.alg.spore.p3execution",kRt="Topdown Layout",_Rt="Invalid index: ",TRt="org.eclipse.elk.core.alg",ERt={341:1},SRt={295:1},CRt="Make sure its type is registered with the ",ARt=" utility class.",MRt="true",LRt="false",IRt="Couldn't clone property '",ORt=.05,NRt="org.eclipse.elk.core.options",DRt=1.2999999523162842,PRt="org.eclipse.elk.box",BRt="org.eclipse.elk.expandNodes",RRt="org.eclipse.elk.box.packingMode",FRt="org.eclipse.elk.algorithm",$Rt="org.eclipse.elk.resolvedAlgorithm",jRt="org.eclipse.elk.bendPoints",zRt="org.eclipse.elk.scaleFactor",qRt="org.eclipse.elk.childAreaWidth",HRt="org.eclipse.elk.childAreaHeight",URt="org.eclipse.elk.animate",GRt="org.eclipse.elk.animTimeFactor",KRt="org.eclipse.elk.layoutAncestors",YRt="org.eclipse.elk.maxAnimTime",VRt="org.eclipse.elk.minAnimTime",WRt="org.eclipse.elk.progressBar",XRt="org.eclipse.elk.validateGraph",QRt="org.eclipse.elk.validateOptions",ZRt="org.eclipse.elk.zoomToFit",JRt="org.eclipse.elk.font.size",tFt="org.eclipse.elk.topdown.sizeApproximator",eFt="org.eclipse.elk.topdown.scaleCap",nFt="org.eclipse.elk.edge.type",iFt="partitioning",rFt="nodeLabels",aFt="portAlignment",oFt="nodeSize",sFt="port",cFt="portLabels",lFt="topdown",uFt="insideSelfLoops",hFt="org.eclipse.elk.fixed",fFt="org.eclipse.elk.random",dFt={3:1,34:1,22:1,347:1},gFt="port must have a parent node to calculate the port side",pFt="The edge needs to have exactly one edge section. Found: ",bFt="org.eclipse.elk.core.util.adapters",mFt="org.eclipse.emf.ecore",yFt="org.eclipse.elk.graph",wFt="EMapPropertyHolder",vFt="ElkBendPoint",xFt="ElkGraphElement",kFt="ElkConnectableShape",_Ft="ElkEdge",TFt="ElkEdgeSection",EFt="EModelElement",SFt="ENamedElement",CFt="ElkLabel",AFt="ElkNode",MFt="ElkPort",LFt={94:1,93:1},IFt="org.eclipse.emf.common.notify.impl",OFt="The feature '",NFt="' is not a valid changeable feature",DFt="Expecting null",PFt="' is not a valid feature",BFt="The feature ID",RFt=" is not a valid feature ID",FFt=32768,$Ft={110:1,94:1,93:1,58:1,54:1,99:1},jFt="org.eclipse.emf.ecore.impl",zFt="org.eclipse.elk.graph.impl",qFt="Recursive containment not allowed for ",HFt="The datatype '",UFt="' is not a valid classifier",GFt="The value '",KFt={195:1,3:1,4:1},YFt="The class '",VFt="http://www.eclipse.org/elk/ElkGraph",WFt="property",XFt="value",QFt="source",ZFt="properties",JFt="identifier",t$t="height",e$t="width",n$t="parent",i$t="text",r$t="children",a$t="hierarchical",o$t="sources",s$t="targets",c$t="sections",l$t="bendPoints",u$t="outgoingShape",h$t="incomingShape",f$t="outgoingSections",d$t="incomingSections",g$t="org.eclipse.emf.common.util",p$t="Severe implementation error in the Json to ElkGraph importer.",b$t="id",m$t="org.eclipse.elk.graph.json",y$t="Unhandled parameter types: ",w$t="startPoint",v$t="An edge must have at least one source and one target (edge id: '",x$t="').",k$t="Referenced edge section does not exist: ",_$t=" (edge id: '",T$t="target",E$t="sourcePoint",S$t="targetPoint",C$t="group",A$t="name",M$t="connectableShape cannot be null",L$t="edge cannot be null",I$t="Passed edge is not 'simple'.",O$t="org.eclipse.elk.graph.util",N$t="The 'no duplicates' constraint is violated",D$t="targetIndex=",P$t=", size=",B$t="sourceIndex=",R$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},F$t={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},$$t="logging",j$t="measureExecutionTime",z$t="parser.parse.1",q$t="parser.parse.2",H$t="parser.next.1",U$t="parser.next.2",G$t="parser.next.3",K$t="parser.next.4",Y$t="parser.factor.1",V$t="parser.factor.2",W$t="parser.factor.3",X$t="parser.factor.4",Q$t="parser.factor.5",Z$t="parser.factor.6",J$t="parser.atom.1",tjt="parser.atom.2",ejt="parser.atom.3",njt="parser.atom.4",ijt="parser.atom.5",rjt="parser.cc.1",ajt="parser.cc.2",ojt="parser.cc.3",sjt="parser.cc.5",cjt="parser.cc.6",ljt="parser.cc.7",ujt="parser.cc.8",hjt="parser.ope.1",fjt="parser.ope.2",djt="parser.ope.3",gjt="parser.descape.1",pjt="parser.descape.2",bjt="parser.descape.3",mjt="parser.descape.4",yjt="parser.descape.5",wjt="parser.process.1",vjt="parser.quantifier.1",xjt="parser.quantifier.2",kjt="parser.quantifier.3",_jt="parser.quantifier.4",Tjt="parser.quantifier.5",Ejt="org.eclipse.emf.common.notify",Sjt={424:1,686:1},Cjt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Ajt={378:1,152:1},Mjt="index=",Ljt={3:1,4:1,5:1,129:1},Ijt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Ojt={3:1,6:1,4:1,5:1,198:1},Njt={3:1,4:1,5:1,173:1,379:1},Djt=";/?:@&=+$,",Pjt="invalid authority: ",Bjt="EAnnotation",Rjt="ETypedElement",Fjt="EStructuralFeature",$jt="EAttribute",jjt="EClassifier",zjt="EEnumLiteral",qjt="EGenericType",Hjt="EOperation",Ujt="EParameter",Gjt="EReference",Kjt="ETypeParameter",Yjt="org.eclipse.emf.ecore.util",Vjt={79:1},Wjt={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},Xjt="org.eclipse.emf.ecore.util.FeatureMap$Entry",Qjt=8192,Zjt=2048,Jjt="byte",tzt="char",ezt="double",nzt="float",izt="int",rzt="long",azt="short",ozt="java.lang.Object",szt={3:1,4:1,5:1,254:1},czt={3:1,4:1,5:1,688:1},lzt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},uzt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},hzt="mixed",fzt="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",dzt="kind",gzt={3:1,4:1,5:1,689:1},pzt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},bzt={20:1,31:1,56:1,16:1,15:1,61:1,71:1},mzt={51:1,128:1,287:1},yzt={76:1,343:1},wzt="The value of type '",vzt="' must be of type '",xzt=1352,kzt="http://www.eclipse.org/emf/2002/Ecore",_zt=-32768,Tzt="constraints",Ezt="baseType",Szt="getEStructuralFeature",Czt="getFeatureID",Azt="feature",Mzt="getOperationID",Lzt="operation",Izt="defaultValue",Ozt="eTypeParameters",Nzt="isInstance",Dzt="getEEnumLiteral",Pzt="eContainingClass",Bzt={57:1},Rzt={3:1,4:1,5:1,124:1},Fzt="org.eclipse.emf.ecore.resource",$zt={94:1,93:1,599:1,2034:1},jzt="org.eclipse.emf.ecore.resource.impl",zzt="unspecified",qzt="simple",Hzt="attribute",Uzt="attributeWildcard",Gzt="element",Kzt="elementWildcard",Yzt="collapse",Vzt="itemType",Wzt="namespace",Xzt="##targetNamespace",Qzt="whiteSpace",Zzt="wildcards",Jzt="http://www.eclipse.org/emf/2003/XMLType",tqt="##any",eqt="uninitialized",nqt="The multiplicity constraint is violated",iqt="org.eclipse.emf.ecore.xml.type",rqt="ProcessingInstruction",aqt="SimpleAnyType",oqt="XMLTypeDocumentRoot",sqt="org.eclipse.emf.ecore.xml.type.impl",cqt="INF",lqt="processing",uqt="ENTITIES_._base",hqt="minLength",fqt="ENTITY",dqt="NCName",gqt="IDREFS_._base",pqt="integer",bqt="token",mqt="pattern",yqt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",wqt="\\i\\c*",vqt="[\\i-[:]][\\c-[:]]*",xqt="nonPositiveInteger",kqt="maxInclusive",_qt="NMTOKEN",Tqt="NMTOKENS_._base",Eqt="nonNegativeInteger",Sqt="minInclusive",Cqt="normalizedString",Aqt="unsignedByte",Mqt="unsignedInt",Lqt="18446744073709551615",Iqt="unsignedShort",Oqt="processingInstruction",Nqt="org.eclipse.emf.ecore.xml.type.internal",Dqt=1114111,Pqt="Internal Error: shorthands: \\u",Bqt="xml:isDigit",Rqt="xml:isWord",Fqt="xml:isSpace",$qt="xml:isNameChar",jqt="xml:isInitialNameChar",zqt="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",qqt="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",Hqt="Private Use",Uqt="ASSIGNED",Gqt="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",Kqt="UNASSIGNED",Yqt={3:1,122:1},Vqt="org.eclipse.emf.ecore.xml.type.util",Wqt={3:1,4:1,5:1,381:1},Xqt="org.eclipse.xtext.xbase.lib",Qqt="Cannot add elements to a Range",Zqt="Cannot set elements in a Range",Jqt="Cannot remove elements from a Range",tHt="user.agent";i.goog=i.goog||{},i.goog.global=i.goog.global||i,JEt={},Bgt(1,null,{},r),ZEt.Fb=function(t){return SL(this,t)},ZEt.Gb=function(){return this.Rm},ZEt.Hb=function(){return DN(this)},ZEt.Ib=function(){return a_(i9(this))+"@"+(N3(this)>>>0).toString(16)},ZEt.equals=function(t){return this.Fb(t)},ZEt.hashCode=function(){return this.Hb()},ZEt.toString=function(){return this.Ib()},Bgt(297,1,{297:1,2124:1},N7),ZEt.ve=function(t){var e;return(e=new N7).i=4,e.c=t>1?FK(this,t-1):this,e},ZEt.we=function(){return UD(this),this.b},ZEt.xe=function(){return a_(this)},ZEt.ye=function(){return UD(this),this.k},ZEt.ze=function(){return 0!=(4&this.i)},ZEt.Ae=function(){return 0!=(1&this.i)},ZEt.Ib=function(){return P0(this)},ZEt.i=0;var eHt,nHt=vq(uSt,"Object",1),iHt=vq(uSt,"Class",297);Bgt(2096,1,hSt),vq(fSt,"Optional",2096),Bgt(1191,2096,hSt,a),ZEt.Fb=function(t){return t===this},ZEt.Hb=function(){return 2040732332},ZEt.Ib=function(){return"Optional.absent()"},ZEt.Jb=function(t){return kq(t),Ev(),eHt},vq(fSt,"Absent",1191),Bgt(636,1,{},zx),vq(fSt,"Joiner",636);var rHt=WF(fSt,"Predicate");Bgt(589,1,{178:1,589:1,3:1,46:1},Rf),ZEt.Mb=function(t){return W7(this,t)},ZEt.Lb=function(t){return W7(this,t)},ZEt.Fb=function(t){var e;return!!rO(t,589)&&(e=KR(t,589),Ygt(this.a,e.a))},ZEt.Hb=function(){return Z7(this.a)+306654252},ZEt.Ib=function(){return function(t){var e,n,i,r;for(e=Vq(tL(new pN("Predicates."),"and"),40),n=!0,r=new mg(t);r.b0},ZEt.Pb=function(){if(this.c>=this.d)throw Ay(new ew);return this.Xb(this.c++)},ZEt.Tb=function(){return this.c},ZEt.Ub=function(){if(this.c<=0)throw Ay(new ew);return this.Xb(--this.c)},ZEt.Vb=function(){return this.c-1},ZEt.c=0,ZEt.d=0,vq(xSt,"AbstractIndexedListIterator",399),Bgt(713,204,vSt),ZEt.Ob=function(){return i3(this)},ZEt.Pb=function(){return f1(this)},ZEt.e=1,vq(xSt,"AbstractIterator",713),Bgt(2084,1,{229:1}),ZEt.Zb=function(){return this.f||(this.f=this.ac())},ZEt.Fb=function(t){return T8(this,t)},ZEt.Hb=function(){return N3(this.Zb())},ZEt.dc=function(){return 0==this.gc()},ZEt.ec=function(){return wj(this)},ZEt.Ib=function(){return Get(this.Zb())},vq(xSt,"AbstractMultimap",2084),Bgt(742,2084,_St),ZEt.$b=function(){x4(this)},ZEt._b=function(t){return n_(this,t)},ZEt.ac=function(){return new rT(this,this.c)},ZEt.ic=function(t){return this.hc()},ZEt.bc=function(){return new HO(this,this.c)},ZEt.jc=function(){return this.mc(this.hc())},ZEt.kc=function(){return new Iv(this)},ZEt.lc=function(){return Ylt(this.c.vc().Nc(),new s,64,this.d)},ZEt.cc=function(t){return IQ(this,t)},ZEt.fc=function(t){return A9(this,t)},ZEt.gc=function(){return this.d},ZEt.mc=function(t){return QU(),new hg(t)},ZEt.nc=function(){return new Lv(this)},ZEt.oc=function(){return Ylt(this.c.Cc().Nc(),new o,64,this.d)},ZEt.pc=function(t,e){return new rZ(this,t,e,null)},ZEt.d=0,vq(xSt,"AbstractMapBasedMultimap",742),Bgt(1696,742,_St),ZEt.hc=function(){return new lZ(this.a)},ZEt.jc=function(){return QU(),QU(),NUt},ZEt.cc=function(t){return KR(IQ(this,t),15)},ZEt.fc=function(t){return KR(A9(this,t),15)},ZEt.Zb=function(){return HU(this)},ZEt.Fb=function(t){return T8(this,t)},ZEt.qc=function(t){return KR(IQ(this,t),15)},ZEt.rc=function(t){return KR(A9(this,t),15)},ZEt.mc=function(t){return hG(KR(t,15))},ZEt.pc=function(t,e){return hW(this,t,KR(e,15),null)},vq(xSt,"AbstractListMultimap",1696),Bgt(748,1,TSt),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return this.c.Ob()||this.e.Ob()},ZEt.Pb=function(){var t;return this.e.Ob()||(t=KR(this.c.Pb(),44),this.b=t.ld(),this.a=KR(t.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},ZEt.Qb=function(){this.e.Qb(),KR(mH(this.a),16).dc()&&this.c.Qb(),--this.d.d},vq(xSt,"AbstractMapBasedMultimap/Itr",748),Bgt(1129,748,TSt,Lv),ZEt.sc=function(t,e){return e},vq(xSt,"AbstractMapBasedMultimap/1",1129),Bgt(1130,1,{},o),ZEt.Kb=function(t){return KR(t,16).Nc()},vq(xSt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),Bgt(1131,748,TSt,Iv),ZEt.sc=function(t,e){return new dT(t,e)},vq(xSt,"AbstractMapBasedMultimap/2",1131);var aHt=WF(ESt,"Map");Bgt(2065,1,SSt),ZEt.wc=function(t){I5(this,t)},ZEt.yc=function(t,e,n){return $et(this,t,e,n)},ZEt.$b=function(){this.vc().$b()},ZEt.tc=function(t){return bot(this,t)},ZEt._b=function(t){return!!olt(this,t,!1)},ZEt.uc=function(t){var e,n;for(e=this.vc().Kc();e.Ob();)if(n=KR(e.Pb(),44).md(),$M(t)===$M(n)||null!=t&&wtt(t,n))return!0;return!1},ZEt.Fb=function(t){var e,n,i;if(t===this)return!0;if(!rO(t,85)||(i=KR(t,85),this.gc()!=i.gc()))return!1;for(n=i.vc().Kc();n.Ob();)if(e=KR(n.Pb(),44),!this.tc(e))return!1;return!0},ZEt.xc=function(t){return FM(olt(this,t,!1))},ZEt.Hb=function(){return h7(this.vc())},ZEt.dc=function(){return 0==this.gc()},ZEt.ec=function(){return new Zd(this)},ZEt.zc=function(t,e){throw Ay(new Ax("Put not supported on this map"))},ZEt.Ac=function(t){v5(this,t)},ZEt.Bc=function(t){return FM(olt(this,t,!0))},ZEt.gc=function(){return this.vc().gc()},ZEt.Ib=function(){return ylt(this)},ZEt.Cc=function(){return new ag(this)},vq(ESt,"AbstractMap",2065),Bgt(2085,2065,SSt),ZEt.bc=function(){return new kT(this)},ZEt.vc=function(){return yj(this)},ZEt.ec=function(){return this.g||(this.g=this.bc())},ZEt.Cc=function(){return this.i||(this.i=new xT(this))},vq(xSt,"Maps/ViewCachingAbstractMap",2085),Bgt(402,2085,SSt,rT),ZEt.xc=function(t){return function(t,e){var n,i;return(n=KR(ctt(t.d,e),16))?(i=e,t.e.pc(i,n)):null}(this,t)},ZEt.Bc=function(t){return function(t,e){var n,i;return(n=KR(t.d.Bc(e),16))?((i=t.e.hc()).Gc(n),t.e.d-=n.gc(),n.$b(),i):null}(this,t)},ZEt.$b=function(){this.d==this.e.c?this.e.$b():r$(new o$(this))},ZEt._b=function(t){return ott(this.d,t)},ZEt.Ec=function(){return new $f(this)},ZEt.Dc=function(){return this.Ec()},ZEt.Fb=function(t){return this===t||wtt(this.d,t)},ZEt.Hb=function(){return N3(this.d)},ZEt.ec=function(){return this.e.ec()},ZEt.gc=function(){return this.d.gc()},ZEt.Ib=function(){return Get(this.d)},vq(xSt,"AbstractMapBasedMultimap/AsMap",402);var oHt=WF(uSt,"Iterable");Bgt(31,1,CSt),ZEt.Jc=function(t){UX(this,t)},ZEt.Lc=function(){return this.Oc()},ZEt.Nc=function(){return new OY(this,0)},ZEt.Oc=function(){return new k$(null,this.Nc())},ZEt.Fc=function(t){throw Ay(new Ax("Add not supported on this collection"))},ZEt.Gc=function(t){return z3(this,t)},ZEt.$b=function(){sU(this)},ZEt.Hc=function(t){return ynt(this,t,!1)},ZEt.Ic=function(t){return F6(this,t)},ZEt.dc=function(){return 0==this.gc()},ZEt.Mc=function(t){return ynt(this,t,!0)},ZEt.Pc=function(){return Tj(this)},ZEt.Qc=function(t){return pot(this,t)},ZEt.Ib=function(){return Tut(this)},vq(ESt,"AbstractCollection",31);var sHt=WF(ESt,"Set");Bgt(ASt,31,MSt),ZEt.Nc=function(){return new OY(this,1)},ZEt.Fb=function(t){return Uit(this,t)},ZEt.Hb=function(){return h7(this)},vq(ESt,"AbstractSet",ASt),Bgt(2068,ASt,MSt),vq(xSt,"Sets/ImprovedAbstractSet",2068),Bgt(2069,2068,MSt),ZEt.$b=function(){this.Rc().$b()},ZEt.Hc=function(t){return Knt(this,t)},ZEt.dc=function(){return this.Rc().dc()},ZEt.Mc=function(t){var e;return!(!this.Hc(t)||!rO(t,44))&&(e=KR(t,44),this.Rc().ec().Mc(e.ld()))},ZEt.gc=function(){return this.Rc().gc()},vq(xSt,"Maps/EntrySet",2069),Bgt(1127,2069,MSt,$f),ZEt.Hc=function(t){return stt(this.a.d.vc(),t)},ZEt.Kc=function(){return new o$(this.a)},ZEt.Rc=function(){return this.a},ZEt.Mc=function(t){var e;return!!stt(this.a.d.vc(),t)&&(e=KR(mH(KR(t,44)),44),TQ(this.a.e,e.ld()),!0)},ZEt.Nc=function(){return $R(this.a.d.vc().Nc(),new jf(this.a))},vq(xSt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),Bgt(1128,1,{},jf),ZEt.Kb=function(t){return gQ(this.a,KR(t,44))},vq(xSt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),Bgt(746,1,TSt,o$),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){var t;return t=KR(this.b.Pb(),44),this.a=KR(t.md(),16),gQ(this.c,t)},ZEt.Ob=function(){return this.b.Ob()},ZEt.Qb=function(){eR(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},vq(xSt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),Bgt(542,2068,MSt,kT),ZEt.$b=function(){this.b.$b()},ZEt.Hc=function(t){return this.b._b(t)},ZEt.Jc=function(t){kq(t),this.b.wc(new ud(t))},ZEt.dc=function(){return this.b.dc()},ZEt.Kc=function(){return new qv(this.b.vc().Kc())},ZEt.Mc=function(t){return!!this.b._b(t)&&(this.b.Bc(t),!0)},ZEt.gc=function(){return this.b.gc()},vq(xSt,"Maps/KeySet",542),Bgt(327,542,MSt,HO),ZEt.$b=function(){r$(new aT(this,this.b.vc().Kc()))},ZEt.Ic=function(t){return this.b.ec().Ic(t)},ZEt.Fb=function(t){return this===t||wtt(this.b.ec(),t)},ZEt.Hb=function(){return N3(this.b.ec())},ZEt.Kc=function(){return new aT(this,this.b.vc().Kc())},ZEt.Mc=function(t){var e,n;return n=0,(e=KR(this.b.Bc(t),16))&&(n=e.gc(),e.$b(),this.a.d-=n),n>0},ZEt.Nc=function(){return this.b.ec().Nc()},vq(xSt,"AbstractMapBasedMultimap/KeySet",327),Bgt(747,1,TSt,aT),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return this.c.Ob()},ZEt.Pb=function(){return this.a=KR(this.c.Pb(),44),this.a.ld()},ZEt.Qb=function(){var t;eR(!!this.a),t=KR(this.a.md(),16),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},vq(xSt,"AbstractMapBasedMultimap/KeySet/1",747),Bgt(503,402,{85:1,133:1},iP),ZEt.bc=function(){return this.Sc()},ZEt.ec=function(){return this.Uc()},ZEt.Sc=function(){return new W_(this.c,this.Wc())},ZEt.Tc=function(){return this.Wc().Tc()},ZEt.Uc=function(){return this.b||(this.b=this.Sc())},ZEt.Vc=function(){return this.Wc().Vc()},ZEt.Wc=function(){return KR(this.d,133)},vq(xSt,"AbstractMapBasedMultimap/SortedAsMap",503),Bgt(446,503,LSt,rP),ZEt.bc=function(){return new X_(this.a,KR(KR(this.d,133),139))},ZEt.Sc=function(){return new X_(this.a,KR(KR(this.d,133),139))},ZEt.ec=function(){return KR(this.b||(this.b=new X_(this.a,KR(KR(this.d,133),139))),277)},ZEt.Uc=function(){return KR(this.b||(this.b=new X_(this.a,KR(KR(this.d,133),139))),277)},ZEt.Wc=function(){return KR(KR(this.d,133),139)},ZEt.Xc=function(t){return KR(KR(this.d,133),139).Xc(t)},ZEt.Yc=function(t){return KR(KR(this.d,133),139).Yc(t)},ZEt.Zc=function(t,e){return new rP(this.a,KR(KR(this.d,133),139).Zc(t,e))},ZEt.$c=function(t){return KR(KR(this.d,133),139).$c(t)},ZEt._c=function(t){return KR(KR(this.d,133),139)._c(t)},ZEt.ad=function(t,e){return new rP(this.a,KR(KR(this.d,133),139).ad(t,e))},vq(xSt,"AbstractMapBasedMultimap/NavigableAsMap",446),Bgt(502,327,ISt,W_),ZEt.Nc=function(){return this.b.ec().Nc()},vq(xSt,"AbstractMapBasedMultimap/SortedKeySet",502),Bgt(401,502,OSt,X_),vq(xSt,"AbstractMapBasedMultimap/NavigableKeySet",401),Bgt(551,31,CSt,rZ),ZEt.Fc=function(t){var e,n;return Xet(this),n=this.d.dc(),(e=this.d.Fc(t))&&(++this.f.d,n&&RP(this)),e},ZEt.Gc=function(t){var e,n,i;return!t.dc()&&(Xet(this),i=this.d.gc(),(e=this.d.Gc(t))&&(n=this.d.gc(),this.f.d+=n-i,0==i&&RP(this)),e)},ZEt.$b=function(){var t;Xet(this),0!=(t=this.d.gc())&&(this.d.$b(),this.f.d-=t,j$(this))},ZEt.Hc=function(t){return Xet(this),this.d.Hc(t)},ZEt.Ic=function(t){return Xet(this),this.d.Ic(t)},ZEt.Fb=function(t){return t===this||(Xet(this),wtt(this.d,t))},ZEt.Hb=function(){return Xet(this),N3(this.d)},ZEt.Kc=function(){return Xet(this),new FR(this)},ZEt.Mc=function(t){var e;return Xet(this),(e=this.d.Mc(t))&&(--this.f.d,j$(this)),e},ZEt.gc=function(){return VM(this)},ZEt.Nc=function(){return Xet(this),this.d.Nc()},ZEt.Ib=function(){return Xet(this),Get(this.d)},vq(xSt,"AbstractMapBasedMultimap/WrappedCollection",551);var cHt=WF(ESt,"List");Bgt(744,551,{20:1,31:1,16:1,15:1},jj),ZEt.jd=function(t){E3(this,t)},ZEt.Nc=function(){return Xet(this),this.d.Nc()},ZEt.bd=function(t,e){var n;Xet(this),n=this.d.dc(),KR(this.d,15).bd(t,e),++this.a.d,n&&RP(this)},ZEt.cd=function(t,e){var n,i,r;return!e.dc()&&(Xet(this),r=this.d.gc(),(n=KR(this.d,15).cd(t,e))&&(i=this.d.gc(),this.a.d+=i-r,0==r&&RP(this)),n)},ZEt.Xb=function(t){return Xet(this),KR(this.d,15).Xb(t)},ZEt.dd=function(t){return Xet(this),KR(this.d,15).dd(t)},ZEt.ed=function(){return Xet(this),new SI(this)},ZEt.fd=function(t){return Xet(this),new jU(this,t)},ZEt.gd=function(t){var e;return Xet(this),e=KR(this.d,15).gd(t),--this.a.d,j$(this),e},ZEt.hd=function(t,e){return Xet(this),KR(this.d,15).hd(t,e)},ZEt.kd=function(t,e){return Xet(this),hW(this.a,this.e,KR(this.d,15).kd(t,e),this.b?this.b:this)},vq(xSt,"AbstractMapBasedMultimap/WrappedList",744),Bgt(1126,744,{20:1,31:1,16:1,15:1,59:1},GN),vq(xSt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),Bgt(628,1,TSt,FR),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return BU(this),this.b.Ob()},ZEt.Pb=function(){return BU(this),this.b.Pb()},ZEt.Qb=function(){JO(this)},vq(xSt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),Bgt(745,628,NSt,SI,jU),ZEt.Qb=function(){JO(this)},ZEt.Rb=function(t){var e;e=0==VM(this.a),(BU(this),KR(this.b,128)).Rb(t),++this.a.a.d,e&&RP(this.a)},ZEt.Sb=function(){return(BU(this),KR(this.b,128)).Sb()},ZEt.Tb=function(){return(BU(this),KR(this.b,128)).Tb()},ZEt.Ub=function(){return(BU(this),KR(this.b,128)).Ub()},ZEt.Vb=function(){return(BU(this),KR(this.b,128)).Vb()},ZEt.Wb=function(t){(BU(this),KR(this.b,128)).Wb(t)},vq(xSt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),Bgt(743,551,ISt,eP),ZEt.Nc=function(){return Xet(this),this.d.Nc()},vq(xSt,"AbstractMapBasedMultimap/WrappedSortedSet",743),Bgt(1125,743,OSt,hI),vq(xSt,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),Bgt(1124,551,MSt,nP),ZEt.Nc=function(){return Xet(this),this.d.Nc()},vq(xSt,"AbstractMapBasedMultimap/WrappedSet",1124),Bgt(1133,1,{},s),ZEt.Kb=function(t){return function(t){var e;return e=t.ld(),$R(KR(t.md(),16).Nc(),new Uf(e))}(KR(t,44))},vq(xSt,"AbstractMapBasedMultimap/lambda$1$Type",1133),Bgt(1132,1,{},Uf),ZEt.Kb=function(t){return new dT(this.a,t)},vq(xSt,"AbstractMapBasedMultimap/lambda$2$Type",1132);var lHt,uHt,hHt,fHt,dHt=WF(ESt,"Map/Entry");Bgt(358,1,DSt),ZEt.Fb=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),oH(this.ld(),e.ld())&&oH(this.md(),e.md()))},ZEt.Hb=function(){var t,e;return t=this.ld(),e=this.md(),(null==t?0:N3(t))^(null==e?0:N3(e))},ZEt.nd=function(t){throw Ay(new Zy)},ZEt.Ib=function(){return this.ld()+"="+this.md()},vq(xSt,PSt,358),Bgt(2086,31,CSt),ZEt.$b=function(){this.od().$b()},ZEt.Hc=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),function(t,e,n){var i;return!!(i=KR(t.Zb().xc(e),16))&&i.Hc(n)}(this.od(),e.ld(),e.md()))},ZEt.Mc=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),vV(this.od(),e.ld(),e.md()))},ZEt.gc=function(){return this.od().d},vq(xSt,"Multimaps/Entries",2086),Bgt(749,2086,CSt,Gf),ZEt.Kc=function(){return this.a.kc()},ZEt.od=function(){return this.a},ZEt.Nc=function(){return this.a.lc()},vq(xSt,"AbstractMultimap/Entries",749),Bgt(750,749,MSt,Ov),ZEt.Nc=function(){return this.a.lc()},ZEt.Fb=function(t){return wht(this,t)},ZEt.Hb=function(){return q3(this)},vq(xSt,"AbstractMultimap/EntrySet",750),Bgt(751,31,CSt,Kf),ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return function(t,e){var n;for(n=t.Zb().Cc().Kc();n.Ob();)if(KR(n.Pb(),16).Hc(e))return!0;return!1}(this.a,t)},ZEt.Kc=function(){return this.a.nc()},ZEt.gc=function(){return this.a.d},ZEt.Nc=function(){return this.a.oc()},vq(xSt,"AbstractMultimap/Values",751),Bgt(2087,31,{849:1,20:1,31:1,16:1}),ZEt.Jc=function(t){kq(t),cU(this).Jc(new bd(t))},ZEt.Nc=function(){var t;return Ylt(t=cU(this).Nc(),new p,64|1296&t.yd(),this.a.d)},ZEt.Fc=function(t){return Hx(),!0},ZEt.Gc=function(t){return kq(this),kq(t),rO(t,552)?jV(KR(t,849)):!t.dc()&&V1(this,t.Kc())},ZEt.Hc=function(t){var e;return((e=KR(ctt(HU(this.a),t),16))?e.gc():0)>0},ZEt.Fb=function(t){return function(t,e){var n,i,r;if(e===t)return!0;if(rO(e,552)){if(r=KR(e,849),t.a.d!=r.a.d||cU(t).gc()!=cU(r).gc())return!1;for(i=cU(r).Kc();i.Ob();)if(bY(t,(n=KR(i.Pb(),425)).a.ld())!=KR(n.a.md(),16).gc())return!1;return!0}return!1}(this,t)},ZEt.Hb=function(){return N3(cU(this))},ZEt.dc=function(){return cU(this).dc()},ZEt.Mc=function(t){return pdt(this,t,1)>0},ZEt.Ib=function(){return Get(cU(this))},vq(xSt,"AbstractMultiset",2087),Bgt(2089,2068,MSt),ZEt.$b=function(){x4(this.a.a)},ZEt.Hc=function(t){var e;return!(!rO(t,504)||(e=KR(t,425),KR(e.a.md(),16).gc()<=0||bY(this.a,e.a.ld())!=KR(e.a.md(),16).gc()))},ZEt.Mc=function(t){var e,n,i;return!(!rO(t,504)||(n=KR(t,425),e=n.a.ld(),i=KR(n.a.md(),16).gc(),0==i))&&function(t,e,n){var i,r,a;return E4(n,"oldCount"),E4(0,"newCount"),((i=KR(ctt(HU(t.a),e),16))?i.gc():0)==n&&(E4(0,"count"),(a=-((r=KR(ctt(HU(t.a),e),16))?r.gc():0))>0?Hx():a<0&&pdt(t,e,-a),!0)}(this.a,e,i)},vq(xSt,"Multisets/EntrySet",2089),Bgt(1139,2089,MSt,Yf),ZEt.Kc=function(){return new Uv(yj(HU(this.a.a)).Kc())},ZEt.gc=function(){return HU(this.a.a).gc()},vq(xSt,"AbstractMultiset/EntrySet",1139),Bgt(627,742,_St),ZEt.hc=function(){return this.pd()},ZEt.jc=function(){return this.qd()},ZEt.cc=function(t){return this.rd(t)},ZEt.fc=function(t){return this.sd(t)},ZEt.Zb=function(){return this.f||(this.f=this.ac())},ZEt.qd=function(){return QU(),QU(),PUt},ZEt.Fb=function(t){return T8(this,t)},ZEt.rd=function(t){return KR(IQ(this,t),21)},ZEt.sd=function(t){return KR(A9(this,t),21)},ZEt.mc=function(t){return QU(),new Jx(KR(t,21))},ZEt.pc=function(t,e){return new nP(this,t,KR(e,21))},vq(xSt,"AbstractSetMultimap",627),Bgt(1723,627,_St),ZEt.hc=function(){return new y_(this.b)},ZEt.pd=function(){return new y_(this.b)},ZEt.jc=function(){return hH(new y_(this.b))},ZEt.qd=function(){return hH(new y_(this.b))},ZEt.cc=function(t){return KR(KR(IQ(this,t),21),87)},ZEt.rd=function(t){return KR(KR(IQ(this,t),21),87)},ZEt.fc=function(t){return KR(KR(A9(this,t),21),87)},ZEt.sd=function(t){return KR(KR(A9(this,t),21),87)},ZEt.mc=function(t){return rO(t,277)?hH(KR(t,277)):(QU(),new xN(KR(t,87)))},ZEt.Zb=function(){return this.f||(this.f=rO(this.c,139)?new rP(this,KR(this.c,139)):rO(this.c,133)?new iP(this,KR(this.c,133)):new rT(this,this.c))},ZEt.pc=function(t,e){return rO(e,277)?new hI(this,t,KR(e,277)):new eP(this,t,KR(e,87))},vq(xSt,"AbstractSortedSetMultimap",1723),Bgt(1724,1723,_St),ZEt.Zb=function(){return KR(KR(this.f||(this.f=rO(this.c,139)?new rP(this,KR(this.c,139)):rO(this.c,133)?new iP(this,KR(this.c,133)):new rT(this,this.c)),133),139)},ZEt.ec=function(){return KR(KR(this.i||(this.i=rO(this.c,139)?new X_(this,KR(this.c,139)):rO(this.c,133)?new W_(this,KR(this.c,133)):new HO(this,this.c)),87),277)},ZEt.bc=function(){return rO(this.c,139)?new X_(this,KR(this.c,139)):rO(this.c,133)?new W_(this,KR(this.c,133)):new HO(this,this.c)},vq(xSt,"AbstractSortedKeySortedSetMultimap",1724),Bgt(2109,1,{2046:1}),ZEt.Fb=function(t){return function(t,e){var n;return e===t||!!rO(e,678)&&(n=KR(e,2046),Uit(t.g||(t.g=new Wf(t)),n.g||(n.g=new Wf(n))))}(this,t)},ZEt.Hb=function(){return h7(this.g||(this.g=new Wf(this)))},ZEt.Ib=function(){return ylt(this.f||(this.f=new tN(this)))},vq(xSt,"AbstractTable",2109),Bgt(679,ASt,MSt,Wf),ZEt.$b=function(){Ux()},ZEt.Hc=function(t){var e,n;return!!rO(t,479)&&(e=KR(t,697),!!(n=KR(ctt(gq(this.a),YM(e.c.e,e.b)),85))&&stt(n.vc(),new dT(YM(e.c.c,e.a),nZ(e.c,e.b,e.a))))},ZEt.Kc=function(){return new eN(t=this.a,t.e.Rd().gc()*t.c.Rd().gc());var t},ZEt.Mc=function(t){var e,n;return!!rO(t,479)&&(e=KR(t,697),!!(n=KR(ctt(gq(this.a),YM(e.c.e,e.b)),85))&&function(t,e){kq(t);try{return t.Mc(e)}catch(t){if(rO(t=j6(t),212)||rO(t,169))return!1;throw Ay(t)}}(n.vc(),new dT(YM(e.c.c,e.a),nZ(e.c,e.b,e.a))))},ZEt.gc=function(){return JF(this.a)},ZEt.Nc=function(){return t$((t=this.a).e.Rd().gc()*t.c.Rd().gc(),273,new zf(t));var t},vq(xSt,"AbstractTable/CellSet",679),Bgt(2025,31,CSt,Xf),ZEt.$b=function(){Ux()},ZEt.Hc=function(t){return function(t,e){var n,i,r,a,o,s,c;for(s=0,c=(o=t.a).length;s=0?"+":"")+(n/60|0),e=PL(i.Math.abs(n)%60),(uut(),jUt)[this.q.getDay()]+" "+zUt[this.q.getMonth()]+" "+PL(this.q.getDate())+" "+PL(this.q.getHours())+":"+PL(this.q.getMinutes())+":"+PL(this.q.getSeconds())+" GMT"+t+e+" "+this.q.getFullYear()};var NHt,DHt,PHt,BHt,RHt,FHt,$Ht,jHt,zHt,qHt=vq(ESt,"Date",206);Bgt(2015,206,JCt,nct),ZEt.a=!1,ZEt.b=0,ZEt.c=0,ZEt.d=0,ZEt.e=0,ZEt.f=0,ZEt.g=!1,ZEt.i=0,ZEt.j=0,ZEt.k=0,ZEt.n=0,ZEt.o=0,ZEt.p=0,vq("com.google.gwt.i18n.shared.impl","DateRecord",2015),Bgt(2064,1,{}),ZEt.pe=function(){return null},ZEt.qe=function(){return null},ZEt.re=function(){return null},ZEt.se=function(){return null},ZEt.te=function(){return null},vq(tAt,"JSONValue",2064),Bgt(221,2064,{221:1},Td,vd),ZEt.Fb=function(t){return!!rO(t,221)&&PY(this.a,KR(t,221).a)},ZEt.oe=function(){return Sy},ZEt.Hb=function(){return dG(this.a)},ZEt.pe=function(){return this},ZEt.Ib=function(){var t,e,n;for(n=new pN("["),e=0,t=this.a.length;e0&&(n.a+=","),JM(n,Q1(this,e));return n.a+="]",n.a},vq(tAt,"JSONArray",221),Bgt(493,2064,{493:1},xd),ZEt.oe=function(){return Cy},ZEt.qe=function(){return this},ZEt.Ib=function(){return FN(),""+this.a},ZEt.a=!1,vq(tAt,"JSONBoolean",493),Bgt(997,63,bCt,Vv),vq(tAt,"JSONException",997),Bgt(1036,2064,{},_),ZEt.oe=function(){return My},ZEt.Ib=function(){return wSt},vq(tAt,"JSONNull",1036),Bgt(263,2064,{263:1},kd),ZEt.Fb=function(t){return!!rO(t,263)&&this.a==KR(t,263).a},ZEt.oe=function(){return Ty},ZEt.Hb=function(){return LL(this.a)},ZEt.re=function(){return this},ZEt.Ib=function(){return this.a+""},ZEt.a=0,vq(tAt,"JSONNumber",263),Bgt(190,2064,{190:1},Wv,_d),ZEt.Fb=function(t){return!!rO(t,190)&&PY(this.a,KR(t,190).a)},ZEt.oe=function(){return Ey},ZEt.Hb=function(){return dG(this.a)},ZEt.se=function(){return this},ZEt.Ib=function(){var t,e,n,i,r,a;for(a=new pN("{"),t=!0,i=0,r=(n=H3(this,WZ(fUt,RSt,2,0,6,1))).length;i=0?":"+this.c:"")+")"},ZEt.c=0;var hUt=vq(uSt,"StackTraceElement",319);iSt={3:1,484:1,34:1,2:1};var fUt=vq(uSt,yCt,2);Bgt(111,427,{484:1},Kx,Yx,gN),vq(uSt,"StringBuffer",111),Bgt(104,427,{484:1},Vx,Wx,pN),vq(uSt,"StringBuilder",104),Bgt(702,77,lAt,Xx),vq(uSt,"StringIndexOutOfBoundsException",702),Bgt(2145,1,{}),Bgt(48,63,{3:1,103:1,63:1,82:1,48:1},Zy,Ax),vq(uSt,"UnsupportedOperationException",48),Bgt(247,242,{3:1,34:1,242:1,247:1},Ntt,E_),ZEt.Fd=function(t){return Wvt(this,KR(t,247))},ZEt.ue=function(){return Xut(qkt(this))},ZEt.Fb=function(t){var e;return this===t||!!rO(t,247)&&(e=KR(t,247),this.e==e.e&&0==Wvt(this,e))},ZEt.Hb=function(){var t;return 0!=this.b?this.b:this.a<54?(t=h6(this.f),this.b=bj(BY(t,-1)),this.b=33*this.b+bj(BY(Mj(t,32),-1)),this.b=17*this.b+oK(this.e),this.b):(this.b=17*I9(this.c)+oK(this.e),this.b)},ZEt.Ib=function(){return qkt(this)},ZEt.a=0,ZEt.b=0,ZEt.d=0,ZEt.e=0,ZEt.f=0;var dUt,gUt,pUt,bUt,mUt,yUt,wUt,vUt,xUt=vq("java.math","BigDecimal",247);Bgt(92,242,{3:1,34:1,242:1,92:1},iX,qY,Pz,trt,pI),ZEt.Fd=function(t){return Dit(this,KR(t,92))},ZEt.ue=function(){return Xut(vEt(this,0))},ZEt.Fb=function(t){return ont(this,t)},ZEt.Hb=function(){return I9(this)},ZEt.Ib=function(){return vEt(this,0)},ZEt.b=-2,ZEt.c=0,ZEt.d=0,ZEt.e=0;var kUt,_Ut,TUt,EUt,SUt,CUt,AUt,MUt,LUt,IUt,OUt=vq("java.math","BigInteger",92);Bgt(498,2065,SSt),ZEt.$b=function(){_z(this)},ZEt._b=function(t){return mz(this,t)},ZEt.uc=function(t){return B8(this,t,this.i)||B8(this,t,this.f)},ZEt.vc=function(){return new Jd(this)},ZEt.xc=function(t){return Oq(this,t)},ZEt.zc=function(t,e){return LH(this,t,e)},ZEt.Bc=function(t){return $Q(this,t)},ZEt.gc=function(){return PT(this)},ZEt.g=0,vq(ESt,"AbstractHashMap",498),Bgt(267,ASt,MSt,Jd),ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return qV(this,t)},ZEt.Kc=function(){return new G5(this.a)},ZEt.Mc=function(t){var e;return!!qV(this,t)&&(e=KR(t,44).ld(),this.a.Bc(e),!0)},ZEt.gc=function(){return this.a.gc()},vq(ESt,"AbstractHashMap/EntrySet",267),Bgt(268,1,TSt,G5),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return d3(this)},ZEt.Ob=function(){return this.b},ZEt.Qb=function(){x1(this)},ZEt.b=!1,ZEt.d=0,vq(ESt,"AbstractHashMap/EntrySetIterator",268),Bgt(426,1,TSt,mg),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return VE(this)},ZEt.Pb=function(){return RU(this)},ZEt.Qb=function(){nH(this)},ZEt.b=0,ZEt.c=-1,vq(ESt,"AbstractList/IteratorImpl",426),Bgt(98,426,NSt,CV),ZEt.Qb=function(){nH(this)},ZEt.Rb=function(t){BP(this,t)},ZEt.Sb=function(){return this.b>0},ZEt.Tb=function(){return this.b},ZEt.Ub=function(){return KD(this.b>0),this.a.Xb(this.c=--this.b)},ZEt.Vb=function(){return this.b-1},ZEt.Wb=function(t){YD(-1!=this.c),this.a.hd(this.c,t)},vq(ESt,"AbstractList/ListIteratorImpl",98),Bgt(244,56,cCt,yY),ZEt.bd=function(t,e){MY(t,this.b),this.c.bd(this.a+t,e),++this.b},ZEt.Xb=function(t){return LY(t,this.b),this.c.Xb(this.a+t)},ZEt.gd=function(t){var e;return LY(t,this.b),e=this.c.gd(this.a+t),--this.b,e},ZEt.hd=function(t,e){return LY(t,this.b),this.c.hd(this.a+t,e)},ZEt.gc=function(){return this.b},ZEt.a=0,ZEt.b=0,vq(ESt,"AbstractList/SubList",244),Bgt(266,ASt,MSt,Zd),ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return this.a._b(t)},ZEt.Kc=function(){return new rg(this.a.vc().Kc())},ZEt.Mc=function(t){return!!this.a._b(t)&&(this.a.Bc(t),!0)},ZEt.gc=function(){return this.a.gc()},vq(ESt,"AbstractMap/1",266),Bgt(541,1,TSt,rg),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return this.a.Ob()},ZEt.Pb=function(){return KR(this.a.Pb(),44).ld()},ZEt.Qb=function(){this.a.Qb()},vq(ESt,"AbstractMap/1/1",541),Bgt(231,31,CSt,ag),ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return this.a.uc(t)},ZEt.Kc=function(){return new og(this.a.vc().Kc())},ZEt.gc=function(){return this.a.gc()},vq(ESt,"AbstractMap/2",231),Bgt(301,1,TSt,og),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return this.a.Ob()},ZEt.Pb=function(){return KR(this.a.Pb(),44).md()},ZEt.Qb=function(){this.a.Qb()},vq(ESt,"AbstractMap/2/1",301),Bgt(494,1,{494:1,44:1}),ZEt.Fb=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),jH(this.d,e.ld())&&jH(this.e,e.md()))},ZEt.ld=function(){return this.d},ZEt.md=function(){return this.e},ZEt.Hb=function(){return TI(this.d)^TI(this.e)},ZEt.nd=function(t){return DP(this,t)},ZEt.Ib=function(){return this.d+"="+this.e},vq(ESt,"AbstractMap/AbstractEntry",494),Bgt(397,494,{494:1,397:1,44:1},uS),vq(ESt,"AbstractMap/SimpleEntry",397),Bgt(2082,1,TAt),ZEt.Fb=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),jH(this.ld(),e.ld())&&jH(this.md(),e.md()))},ZEt.Hb=function(){return TI(this.ld())^TI(this.md())},ZEt.Ib=function(){return this.ld()+"="+this.md()},vq(ESt,PSt,2082),Bgt(2090,2065,LSt),ZEt.Xc=function(t){return r_(this.Ee(t))},ZEt.tc=function(t){return dQ(this,t)},ZEt._b=function(t){return PP(this,t)},ZEt.vc=function(){return new lg(this)},ZEt.Tc=function(){return Tz(this.Ge())},ZEt.Yc=function(t){return r_(this.He(t))},ZEt.xc=function(t){var e;return e=t,FM(this.Fe(e))},ZEt.$c=function(t){return r_(this.Ie(t))},ZEt.ec=function(){return new sg(this)},ZEt.Vc=function(){return Tz(this.Je())},ZEt._c=function(t){return r_(this.Ke(t))},vq(ESt,"AbstractNavigableMap",2090),Bgt(629,ASt,MSt,lg),ZEt.Hc=function(t){return rO(t,44)&&dQ(this.b,KR(t,44))},ZEt.Kc=function(){return this.b.De()},ZEt.Mc=function(t){var e;return!!rO(t,44)&&(e=KR(t,44),this.b.Le(e))},ZEt.gc=function(){return this.b.gc()},vq(ESt,"AbstractNavigableMap/EntrySet",629),Bgt(1146,ASt,OSt,sg),ZEt.Nc=function(){return new oS(this)},ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return PP(this.a,t)},ZEt.Kc=function(){return new cg(this.a.vc().b.De())},ZEt.Mc=function(t){return!!PP(this.a,t)&&(this.a.Bc(t),!0)},ZEt.gc=function(){return this.a.gc()},vq(ESt,"AbstractNavigableMap/NavigableKeySet",1146),Bgt(1147,1,TSt,cg),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return VE(this.a.a)},ZEt.Pb=function(){return lD(this.a).ld()},ZEt.Qb=function(){VB(this.a)},vq(ESt,"AbstractNavigableMap/NavigableKeySet/1",1147),Bgt(2103,31,CSt),ZEt.Fc=function(t){return iF(Zlt(this,t),EAt),!0},ZEt.Gc=function(t){return yH(t),nF(t!=this,"Can't add a queue to itself"),z3(this,t)},ZEt.$b=function(){for(;null!=J1(this););},vq(ESt,"AbstractQueue",2103),Bgt(310,31,{4:1,20:1,31:1,16:1},$O,AV),ZEt.Fc=function(t){return pW(this,t),!0},ZEt.$b=function(){QW(this)},ZEt.Hc=function(t){return H6(new QH(this),t)},ZEt.dc=function(){return Rx(this)},ZEt.Kc=function(){return new QH(this)},ZEt.Mc=function(t){return function(t,e){return!!H6(t,e)&&(v4(t),!0)}(new QH(this),t)},ZEt.gc=function(){return this.c-this.b&this.a.length-1},ZEt.Nc=function(){return new OY(this,272)},ZEt.Qc=function(t){var e;return e=this.c-this.b&this.a.length-1,t.lengthe&&Dq(t,e,null),t},ZEt.b=0,ZEt.c=0,vq(ESt,"ArrayDeque",310),Bgt(459,1,TSt,QH),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return this.a!=this.b},ZEt.Pb=function(){return L9(this)},ZEt.Qb=function(){v4(this)},ZEt.a=0,ZEt.b=0,ZEt.c=-1,vq(ESt,"ArrayDeque/IteratorImpl",459),Bgt(13,56,SAt,yy,lZ,HB),ZEt.bd=function(t,e){V$(this,t,e)},ZEt.Fc=function(t){return SO(this,t)},ZEt.cd=function(t,e){return a9(this,t,e)},ZEt.Gc=function(t){return G6(this,t)},ZEt.$b=function(){ow(this.c,0)},ZEt.Hc=function(t){return-1!=g1(this,t,0)},ZEt.Jc=function(t){V0(this,t)},ZEt.Xb=function(t){return c$(this,t)},ZEt.dd=function(t){return g1(this,t,0)},ZEt.dc=function(){return 0==this.c.length},ZEt.Kc=function(){return new pg(this)},ZEt.gd=function(t){return PQ(this,t)},ZEt.Mc=function(t){return u1(this,t)},ZEt.ce=function(t,e){mY(this,t,e)},ZEt.hd=function(t,e){return YX(this,t,e)},ZEt.gc=function(){return this.c.length},ZEt.jd=function(t){PI(this,t)},ZEt.Pc=function(){return OF(this.c)},ZEt.Qc=function(t){return yrt(this,t)};var NUt,DUt,PUt,BUt,RUt,FUt,$Ut,jUt,zUt,qUt=vq(ESt,"ArrayList",13);Bgt(7,1,TSt,pg),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return BI(this)},ZEt.Pb=function(){return jY(this)},ZEt.Qb=function(){zz(this)},ZEt.a=0,ZEt.b=-1,vq(ESt,"ArrayList/1",7),Bgt(2112,i.Function,{},C),ZEt.Me=function(t,e){return cet(t,e)},Bgt(151,56,CAt,Dx),ZEt.Hc=function(t){return-1!=_4(this,t)},ZEt.Jc=function(t){var e,n,i,r;for(yH(t),i=0,r=(n=this.a).length;i0)throw Ay(new Tx(qAt+t+" greater than "+this.e));return this.f.Te()?JG(this.c,this.b,this.a,t,e):_Y(this.c,t,e)},ZEt.zc=function(t,e){if(!ast(this.c,this.f,t,this.b,this.a,this.e,this.d))throw Ay(new Tx(t+" outside the range "+this.b+" to "+this.e));return $7(this.c,t,e)},ZEt.Bc=function(t){var e;return e=t,ast(this.c,this.f,e,this.b,this.a,this.e,this.d)?nK(this.c,e):null},ZEt.Le=function(t){return rH(this,t.ld())&&QZ(this.c,t)},ZEt.gc=function(){var t,e,n;if(!((e=this.f.Te()?this.a?cit(this.c,this.b,!0):cit(this.c,this.b,!1):WJ(this.c))&&rH(this,e.d)&&e))return 0;for(t=0,n=new t5(this.c,this.f,this.b,this.a,this.e,this.d);VE(n.a);n.b=KR(RU(n.a),44))++t;return t},ZEt.ad=function(t,e){if(this.f.Te()&&this.c.a.Ne(t,this.b)<0)throw Ay(new Tx(qAt+t+HAt+this.b));return this.f.Ue()?JG(this.c,t,e,this.e,this.d):TY(this.c,t,e)},ZEt.a=!1,ZEt.d=!1,vq(ESt,"TreeMap/SubMap",631),Bgt(304,22,UAt,sS),ZEt.Te=function(){return!1},ZEt.Ue=function(){return!1};var rGt,aGt,oGt,sGt,cGt,lGt=Z2(ESt,"TreeMap/SubMapType",304,bHt,(function(){return DJ(),t7(rk(lGt,1),sCt,304,0,[rGt,aGt,oGt,sGt])}),(function(t){return DJ(),Q2((NJ(),cGt),t)}));Bgt(1143,304,UAt,gI),ZEt.Ue=function(){return!0},Z2(ESt,"TreeMap/SubMapType/1",1143,lGt,null,null),Bgt(1144,304,UAt,YI),ZEt.Te=function(){return!0},ZEt.Ue=function(){return!0},Z2(ESt,"TreeMap/SubMapType/2",1144,lGt,null,null),Bgt(1145,304,UAt,dI),ZEt.Te=function(){return!0},Z2(ESt,"TreeMap/SubMapType/3",1145,lGt,null,null),Bgt(157,ASt,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},dw,y_,Cg),ZEt.Nc=function(){return new oS(this)},ZEt.Fc=function(t){return Mz(this,t)},ZEt.$b=function(){this.a.$b()},ZEt.Hc=function(t){return this.a._b(t)},ZEt.Kc=function(){return this.a.ec().Kc()},ZEt.Mc=function(t){return kO(this,t)},ZEt.gc=function(){return this.a.gc()};var uGt=vq(ESt,"TreeSet",157);Bgt(1082,1,{},Ag),ZEt.Ve=function(t,e){return function(t,e,n){return t.Ne(e,n)<=0?n:e}(this.a,t,e)},vq(GAt,"BinaryOperator/lambda$0$Type",1082),Bgt(1083,1,{},Mg),ZEt.Ve=function(t,e){return function(t,e,n){return t.Ne(e,n)<=0?e:n}(this.a,t,e)},vq(GAt,"BinaryOperator/lambda$1$Type",1083),Bgt(952,1,{},q),ZEt.Kb=function(t){return t},vq(GAt,"Function/lambda$0$Type",952),Bgt(395,1,hCt,Lg),ZEt.Mb=function(t){return!this.a.Mb(t)},vq(GAt,"Predicate/lambda$2$Type",395),Bgt(581,1,{581:1});var hGt,fGt,dGt=vq(KAt,"Handler",581);Bgt(2107,1,hSt),ZEt.xe=function(){return"DUMMY"},ZEt.Ib=function(){return this.xe()},vq(KAt,"Level",2107),Bgt(1706,2107,hSt,H),ZEt.xe=function(){return"INFO"},vq(KAt,"Level/LevelInfo",1706),Bgt(1843,1,{},fw),vq(KAt,"LogManager",1843),Bgt(1896,1,hSt,YB),ZEt.b=null,vq(KAt,"LogRecord",1896),Bgt(525,1,{525:1},QX),ZEt.e=!1;var gGt=!1,pGt=!1,bGt=!1,mGt=!1,yGt=!1;vq(KAt,"Logger",525),Bgt(835,581,{581:1},U),vq(KAt,"SimpleConsoleLogHandler",835),Bgt(108,22,{3:1,34:1,22:1,108:1},cS);var wGt,vGt,xGt,kGt,_Gt=Z2(WAt,"Collector/Characteristics",108,bHt,(function(){return e9(),t7(rk(_Gt,1),sCt,108,0,[wGt,vGt,xGt])}),(function(t){return e9(),Q2(($Z(),kGt),t)}));Bgt(758,1,{},Bz),vq(WAt,"CollectorImpl",758),Bgt(1074,1,{},G),ZEt.Ve=function(t,e){return function(t,e){var n;return e.a&&(n=e.a.a.length,t.a?tL(t.a,t.b):t.a=new pN(t.d),SV(t.a,e.a,e.d.length,n)),t}(KR(t,213),KR(e,213))},vq(WAt,"Collectors/10methodref$merge$Type",1074),Bgt(1075,1,{},K),ZEt.Kb=function(t){return IV(KR(t,213))},vq(WAt,"Collectors/11methodref$toString$Type",1075),Bgt(1076,1,{},Ig),ZEt.Kb=function(t){return FN(),!!ML(t)},vq(WAt,"Collectors/12methodref$test$Type",1076),Bgt(144,1,{},Y),ZEt.Yd=function(t,e){KR(t,16).Fc(e)},vq(WAt,"Collectors/20methodref$add$Type",144),Bgt(146,1,{},V),ZEt.Xe=function(){return new yy},vq(WAt,"Collectors/21methodref$ctor$Type",146),Bgt(359,1,{},W),ZEt.Xe=function(){return new hw},vq(WAt,"Collectors/23methodref$ctor$Type",359),Bgt(360,1,{},X),ZEt.Yd=function(t,e){Az(KR(t,49),e)},vq(WAt,"Collectors/24methodref$add$Type",360),Bgt(1069,1,{},Q),ZEt.Ve=function(t,e){return QT(KR(t,15),KR(e,16))},vq(WAt,"Collectors/4methodref$addAll$Type",1069),Bgt(1073,1,{},Z),ZEt.Yd=function(t,e){FQ(KR(t,213),KR(e,484))},vq(WAt,"Collectors/9methodref$add$Type",1073),Bgt(1072,1,{},WR),ZEt.Xe=function(){return new y6(this.a,this.b,this.c)},vq(WAt,"Collectors/lambda$15$Type",1072),Bgt(1077,1,{},J),ZEt.Xe=function(){var t;return Trt(t=new fX,(FN(),!1),new yy),Trt(t,!0,new yy),t},vq(WAt,"Collectors/lambda$22$Type",1077),Bgt(1078,1,{},Og),ZEt.Xe=function(){return t7(rk(nHt,1),pSt,1,5,[this.a])},vq(WAt,"Collectors/lambda$25$Type",1078),Bgt(1079,1,{},Ng),ZEt.Yd=function(t,e){!function(t,e){Dq(e,0,h$(e[0],Kit(1)))}(this.a,X2(t))},vq(WAt,"Collectors/lambda$26$Type",1079),Bgt(1080,1,{},Dg),ZEt.Ve=function(t,e){return function(t,e,n){return Dq(e,0,h$(e[0],n[0])),e}(this.a,X2(t),X2(e))},vq(WAt,"Collectors/lambda$27$Type",1080),Bgt(1081,1,{},tt),ZEt.Kb=function(t){return X2(t)[0]},vq(WAt,"Collectors/lambda$28$Type",1081),Bgt(728,1,{},et),ZEt.Ve=function(t,e){return h$(t,e)},vq(WAt,"Collectors/lambda$4$Type",728),Bgt(145,1,{},nt),ZEt.Ve=function(t,e){return function(t,e){return t.Gc(e),t}(KR(t,16),KR(e,16))},vq(WAt,"Collectors/lambda$42$Type",145),Bgt(361,1,{},it),ZEt.Ve=function(t,e){return function(t,e){return z3(t,e),t}(KR(t,49),KR(e,49))},vq(WAt,"Collectors/lambda$50$Type",361),Bgt(362,1,{},rt),ZEt.Kb=function(t){return KR(t,49)},vq(WAt,"Collectors/lambda$51$Type",362),Bgt(1068,1,{},Pg),ZEt.Yd=function(t,e){!function(t,e,n){var i,r;FN(),i=!!ML(n),(r=KR(e.xc(i),15))||(r=new yy,e.zc(i,r)),r.Fc(n)}(this.a,KR(t,85),e)},vq(WAt,"Collectors/lambda$7$Type",1068),Bgt(1070,1,{},at),ZEt.Ve=function(t,e){return function(t,e,n){var i,r;for(r=e.vc().Kc();r.Ob();)i=KR(r.Pb(),44),t.yc(i.ld(),i.md(),n);return t}(KR(t,85),KR(e,85),new Q)},vq(WAt,"Collectors/lambda$8$Type",1070),Bgt(1071,1,{},Bg),ZEt.Kb=function(t){return function(t,e){var n,i,r;for(r=new my,i=e.vc().Kc();i.Ob();)LH(r,(n=KR(i.Pb(),44)).ld(),Z5(t,KR(n.md(),15)));return r}(this.a,KR(t,85))},vq(WAt,"Collectors/lambda$9$Type",1071),Bgt(550,1,{}),ZEt.$e=function(){dH(this)},ZEt.d=!1,vq(WAt,"TerminatableStream",550),Bgt(827,550,XAt,JD),ZEt.$e=function(){dH(this)},vq(WAt,"DoubleStreamImpl",827),Bgt(1847,736,$St,XR),ZEt.Re=function(t){return function(t,e){var n;return t.a||(n=WZ(Hpe,wAt,28,0,15,1),I_(t.b.a,new Rg(n)),Py(n,s2(C.prototype.Me,C,[])),t.a=new DB(n,t.d)),cZ(t.a,e)}(this,KR(t,189))},ZEt.a=null,vq(WAt,"DoubleStreamImpl/2",1847),Bgt(1848,1,LAt,Rg),ZEt.Pe=function(t){!function(t,e){t[t.length]=e}(this.a,t)},vq(WAt,"DoubleStreamImpl/2/lambda$0$Type",1848),Bgt(1845,1,LAt,Fg),ZEt.Pe=function(t){!function(t,e){t[t.length]=e}(this.a,t)},vq(WAt,"DoubleStreamImpl/lambda$0$Type",1845),Bgt(1846,1,LAt,$g),ZEt.Pe=function(t){Rnt(this.a,t)},vq(WAt,"DoubleStreamImpl/lambda$2$Type",1846),Bgt(1397,735,$St,ZX),ZEt.Re=function(t){return function(t,e){return t.a<=t.b&&(e.Dd(t.a++),!0)}(this,KR(t,202))},ZEt.a=0,ZEt.b=0,ZEt.c=0,vq(WAt,"IntStream/5",1397),Bgt(806,550,XAt,tP),ZEt.$e=function(){dH(this)},ZEt._e=function(){return fH(this),this.a},vq(WAt,"IntStreamImpl",806),Bgt(807,550,XAt,KT),ZEt.$e=function(){dH(this)},ZEt._e=function(){return fH(this),YO(),eGt},vq(WAt,"IntStreamImpl/Empty",807),Bgt(1687,1,zSt,jg),ZEt.Dd=function(t){X5(this.a,t)},vq(WAt,"IntStreamImpl/lambda$4$Type",1687);var TGt,EGt=WF(WAt,"Stream");Bgt(26,550,{533:1,687:1,848:1},k$),ZEt.$e=function(){dH(this)},vq(WAt,"StreamImpl",26),Bgt(1102,500,$St,LB),ZEt.Bd=function(t){for(;_J(this);){if(this.a.Bd(t))return!0;dH(this.b),this.b=null,this.a=null}return!1},vq(WAt,"StreamImpl/1",1102),Bgt(1103,1,jSt,zg),ZEt.Cd=function(t){!function(t,e){e&&(t.b=e,t.a=(fH(e),e.a))}(this.a,KR(t,848))},vq(WAt,"StreamImpl/1/lambda$0$Type",1103),Bgt(1104,1,hCt,qg),ZEt.Mb=function(t){return Az(this.a,t)},vq(WAt,"StreamImpl/1methodref$add$Type",1104),Bgt(1105,500,$St,qU),ZEt.Bd=function(t){var e;return this.a||(e=new yy,this.b.a.Nb(new Hg(e)),QU(),PI(e,this.c),this.a=new OY(e,16)),F0(this.a,t)},ZEt.a=null,vq(WAt,"StreamImpl/5",1105),Bgt(1106,1,jSt,Hg),ZEt.Cd=function(t){SO(this.a,t)},vq(WAt,"StreamImpl/5/2methodref$add$Type",1106),Bgt(737,500,$St,ZJ),ZEt.Bd=function(t){for(this.b=!1;!this.b&&this.c.Bd(new hS(this,t)););return this.b},ZEt.b=!1,vq(WAt,"StreamImpl/FilterSpliterator",737),Bgt(1096,1,jSt,hS),ZEt.Cd=function(t){!function(t,e,n){t.a.Mb(n)&&(t.b=!0,e.Cd(n))}(this.a,this.b,t)},vq(WAt,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),Bgt(1091,736,$St,jQ),ZEt.Re=function(t){return function(t,e){return t.b.Bd(new fS(t,e))}(this,KR(t,189))},vq(WAt,"StreamImpl/MapToDoubleSpliterator",1091),Bgt(1095,1,jSt,fS),ZEt.Cd=function(t){!function(t,e,n){e.Pe(t.a.Ye(n))}(this.a,this.b,t)},vq(WAt,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),Bgt(1090,735,$St,zQ),ZEt.Re=function(t){return function(t,e){return t.b.Bd(new dS(t,e))}(this,KR(t,202))},vq(WAt,"StreamImpl/MapToIntSpliterator",1090),Bgt(1094,1,jSt,dS),ZEt.Cd=function(t){!function(t,e,n){e.Dd(t.a.Ze(n))}(this.a,this.b,t)},vq(WAt,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),Bgt(734,500,$St,qQ),ZEt.Bd=function(t){return TB(this,t)},vq(WAt,"StreamImpl/MapToObjSpliterator",734),Bgt(1093,1,jSt,gS),ZEt.Cd=function(t){!function(t,e,n){e.Cd(t.a.Kb(n))}(this.a,this.b,t)},vq(WAt,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),Bgt(1092,500,$St,z4),ZEt.Bd=function(t){for(;WE(this.b,0);){if(!this.a.Bd(new ot))return!1;this.b=Aet(this.b,1)}return this.a.Bd(t)},ZEt.b=0,vq(WAt,"StreamImpl/SkipSpliterator",1092),Bgt(1097,1,jSt,ot),ZEt.Cd=function(t){},vq(WAt,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),Bgt(626,1,jSt,st),ZEt.Cd=function(t){Ed(this,t)},vq(WAt,"StreamImpl/ValueConsumer",626),Bgt(1098,1,jSt,ct),ZEt.Cd=function(t){YT()},vq(WAt,"StreamImpl/lambda$0$Type",1098),Bgt(1099,1,jSt,lt),ZEt.Cd=function(t){YT()},vq(WAt,"StreamImpl/lambda$1$Type",1099),Bgt(1100,1,{},Ug),ZEt.Ve=function(t,e){return function(t,e,n){return YT(),t.a.Yd(e,n),e}(this.a,t,e)},vq(WAt,"StreamImpl/lambda$4$Type",1100),Bgt(1101,1,jSt,bS),ZEt.Cd=function(t){!function(t,e,n){YT(),Ed(t,e.Ve(t.a,n))}(this.b,this.a,t)},vq(WAt,"StreamImpl/lambda$5$Type",1101),Bgt(1107,1,jSt,Gg),ZEt.Cd=function(t){!function(t,e){var n;try{e.de()}catch(e){if(!rO(e=j6(e),82))throw Ay(e);n=e,Dy(t.c,n)}}(this.a,KR(t,380))},vq(WAt,"TerminatableStream/lambda$0$Type",1107),Bgt(2142,1,{}),Bgt(2014,1,{},ut),vq("javaemul.internal","ConsoleLogger",2014);var SGt=0;Bgt(2134,1,{}),Bgt(1830,1,jSt,ht),ZEt.Cd=function(t){KR(t,317)},vq(nMt,"BowyerWatsonTriangulation/lambda$0$Type",1830),Bgt(1831,1,jSt,Yg),ZEt.Cd=function(t){z3(this.a,KR(t,317).e)},vq(nMt,"BowyerWatsonTriangulation/lambda$1$Type",1831),Bgt(1832,1,jSt,ft),ZEt.Cd=function(t){KR(t,177)},vq(nMt,"BowyerWatsonTriangulation/lambda$2$Type",1832),Bgt(1827,1,iMt,Vg),ZEt.Ne=function(t,e){return function(t,e,n){return Oj(qD(FM(U$(t.f,e))),qD(FM(U$(t.f,n))))}(this.a,KR(t,177),KR(e,177))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(nMt,"NaiveMinST/lambda$0$Type",1827),Bgt(449,1,{},Kg),vq(nMt,"NodeMicroLayout",449),Bgt(177,1,{177:1},pS),ZEt.Fb=function(t){var e;return!!rO(t,177)&&(e=KR(t,177),jH(this.a,e.a)&&jH(this.b,e.b)||jH(this.a,e.b)&&jH(this.b,e.a))},ZEt.Hb=function(){return TI(this.a)+TI(this.b)};var CGt=vq(nMt,"TEdge",177);Bgt(317,1,{317:1},vxt),ZEt.Fb=function(t){var e;return!!rO(t,317)&&S1(this,(e=KR(t,317)).a)&&S1(this,e.b)&&S1(this,e.c)},ZEt.Hb=function(){return TI(this.a)+TI(this.b)+TI(this.c)},vq(nMt,"TTriangle",317),Bgt(225,1,{225:1},VI),vq(nMt,"Tree",225),Bgt(1218,1,{},zK),vq(rMt,"Scanline",1218);var AGt=WF(rMt,aMt);Bgt(1758,1,{},C0),vq(oMt,"CGraph",1758),Bgt(316,1,{316:1},UK),ZEt.b=0,ZEt.c=0,ZEt.d=0,ZEt.g=0,ZEt.i=0,ZEt.k=dAt,vq(oMt,"CGroup",316),Bgt(830,1,{},vw),vq(oMt,"CGroup/CGroupBuilder",830),Bgt(60,1,{60:1},KP),ZEt.Ib=function(){return this.j?HD(this.j.Kb(this)):(UD(LGt),LGt.o+"@"+(DN(this)>>>0).toString(16))},ZEt.f=0,ZEt.i=dAt;var MGt,LGt=vq(oMt,"CNode",60);Bgt(829,1,{},xw),vq(oMt,"CNode/CNodeBuilder",829),Bgt(1590,1,{},dt),ZEt.ff=function(t,e){return 0},ZEt.gf=function(t,e){return 0},vq(oMt,cMt,1590),Bgt(1853,1,{},gt),ZEt.cf=function(t){var e,n,r,a,o,s,c,l,u,h,f,d,g,p,b;for(u=fAt,r=new pg(t.a.b);r.an.d.c||n.d.c==r.d.c&&n.d.b0?t+this.n.d+this.n.a:0},ZEt.kf=function(){var t,e,n,r,a;if(a=0,this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].kf());else if(this.g)a=nnt(this,Hst(this,null,!0));else for(d2(),n=0,r=(e=t7(rk(pKt,1),sCt,237,0,[hKt,fKt,dKt])).length;n0?a+this.n.b+this.n.c:0},ZEt.lf=function(){var t,e,n,i,r;if(this.g)for(t=Hst(this,null,!1),d2(),i=0,r=(n=t7(rk(pKt,1),sCt,237,0,[hKt,fKt,dKt])).length;i0&&(r[0]+=this.d,n-=r[0]),r[2]>0&&(r[2]+=this.d,n-=r[2]),this.c.a=i.Math.max(0,n),this.c.d=e.d+t.d+(this.c.a-n)/2,r[1]=i.Math.max(r[1],n),LQ(this,fKt,e.d+t.d+r[0]-(r[1]-n)/2,r)},ZEt.b=null,ZEt.d=0,ZEt.e=!1,ZEt.f=!1,ZEt.g=!1;var bKt=0,mKt=0;vq(NMt,"GridContainerCell",1538),Bgt(471,22,{3:1,34:1,22:1,471:1},kS);var yKt,wKt,vKt,xKt,kKt=Z2(NMt,"HorizontalLabelAlignment",471,bHt,(function(){return PJ(),t7(rk(kKt,1),sCt,471,0,[wKt,yKt,vKt])}),(function(t){return PJ(),Q2((BZ(),xKt),t)}));Bgt(314,217,{217:1,314:1},hK,M0,jG),ZEt.jf=function(){return DF(this)},ZEt.kf=function(){return PF(this)},ZEt.a=0,ZEt.c=!1;var _Kt=vq(NMt,"LabelCell",314);Bgt(252,336,{217:1,336:1,252:1},ert),ZEt.jf=function(){return bdt(this)},ZEt.kf=function(){return mdt(this)},ZEt.lf=function(){oxt(this)},ZEt.mf=function(){hxt(this)},ZEt.b=0,ZEt.c=0,ZEt.d=!1,vq(NMt,"StripContainerCell",252),Bgt(1691,1,hCt,xt),ZEt.Mb=function(t){return!!(e=KR(t,217))&&e.k;var e},vq(NMt,"StripContainerCell/lambda$0$Type",1691),Bgt(1692,1,{},kt),ZEt.Ye=function(t){return KR(t,217).kf()},vq(NMt,"StripContainerCell/lambda$1$Type",1692),Bgt(1693,1,hCt,_t),ZEt.Mb=function(t){return!!(e=KR(t,217))&&e.j;var e},vq(NMt,"StripContainerCell/lambda$2$Type",1693),Bgt(1694,1,{},Tt),ZEt.Ye=function(t){return KR(t,217).jf()},vq(NMt,"StripContainerCell/lambda$3$Type",1694),Bgt(472,22,{3:1,34:1,22:1,472:1},_S);var TKt,EKt,SKt,CKt,AKt=Z2(NMt,"VerticalLabelAlignment",472,bHt,(function(){return z1(),t7(rk(AKt,1),sCt,472,0,[SKt,EKt,TKt])}),(function(t){return z1(),Q2((FZ(),CKt),t)}));Bgt(800,1,{},vTt),ZEt.c=0,ZEt.d=0,ZEt.k=0,ZEt.s=0,ZEt.t=0,ZEt.v=!1,ZEt.w=0,ZEt.D=!1,vq(zMt,"NodeContext",800),Bgt(1536,1,iMt,Et),ZEt.Ne=function(t,e){return RL(KR(t,64),KR(e,64))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(zMt,"NodeContext/0methodref$comparePortSides$Type",1536),Bgt(1537,1,iMt,St),ZEt.Ne=function(t,e){return function(t,e){var n;if(0!=(n=RL(t.b.ag(),e.b.ag())))return n;switch(t.b.ag().g){case 1:case 2:return $I(t.b.Nf(),e.b.Nf());case 3:case 4:return $I(e.b.Nf(),t.b.Nf())}return 0}(KR(t,117),KR(e,117))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(zMt,"NodeContext/1methodref$comparePortContexts$Type",1537),Bgt(164,22,{3:1,34:1,22:1,164:1},n5);var MKt,LKt,IKt,OKt,NKt,DKt,PKt,BKt,RKt,FKt,$Kt,jKt,zKt,qKt,HKt,UKt,GKt,KKt,YKt,VKt,WKt,XKt,QKt,ZKt,JKt,tYt=Z2(zMt,"NodeLabelLocation",164,bHt,Ert,(function(t){return GEt(),Q2((dL(),QKt),t)}));Bgt(117,1,{117:1},ngt),ZEt.a=!1,vq(zMt,"PortContext",117),Bgt(1541,1,jSt,Ct),ZEt.Cd=function(t){O_(KR(t,314))},vq(UMt,GMt,1541),Bgt(1542,1,hCt,At),ZEt.Mb=function(t){return!!KR(t,117).c},vq(UMt,KMt,1542),Bgt(1543,1,jSt,Mt),ZEt.Cd=function(t){O_(KR(t,117).c)},vq(UMt,"LabelPlacer/lambda$2$Type",1543),Bgt(1540,1,jSt,Lt),ZEt.Cd=function(t){var e;gP(),(e=KR(t,117)).b.Of(e.e)},vq(UMt,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),Bgt(801,1,jSt,sR),ZEt.Cd=function(t){CE(this.b,this.c,this.a,KR(t,187))},ZEt.a=!1,ZEt.c=!1,vq(UMt,"NodeLabelCellCreator/lambda$0$Type",801),Bgt(1539,1,jSt,Zg),ZEt.Cd=function(t){!function(t,e){xht(t.c,e)}(this.a,KR(t,187))},vq(UMt,"PortContextCreator/lambda$0$Type",1539),Bgt(1902,1,{},It),vq(VMt,"GreedyRectangleStripOverlapRemover",1902),Bgt(1903,1,iMt,Ot),ZEt.Ne=function(t,e){return function(t,e){return cet(t.c.d,e.c.d)}(KR(t,226),KR(e,226))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(VMt,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),Bgt(1849,1,{},Sw),ZEt.a=5,ZEt.e=0,vq(VMt,"RectangleStripOverlapRemover",1849),Bgt(1850,1,iMt,Nt),ZEt.Ne=function(t,e){return function(t,e){return cet(t.c.c,e.c.c)}(KR(t,226),KR(e,226))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(VMt,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),Bgt(1852,1,iMt,Dt),ZEt.Ne=function(t,e){return function(t,e){return cet(t.c.c+t.c.b,e.c.c+e.c.b)}(KR(t,226),KR(e,226))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(VMt,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),Bgt(417,22,{3:1,34:1,22:1,417:1},TS);var eYt,nYt,iYt,rYt,aYt,oYt=Z2(VMt,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,bHt,(function(){return k6(),t7(rk(oYt,1),sCt,417,0,[rYt,eYt,nYt,iYt])}),(function(t){return k6(),Q2((RJ(),aYt),t)}));Bgt(226,1,{226:1},nj),vq(VMt,"RectangleStripOverlapRemover/RectangleNode",226),Bgt(1851,1,jSt,Jg),ZEt.Cd=function(t){!function(t,e){var n,i;switch(i=e.c,n=e.a,t.b.g){case 0:n.d=t.e-i.a-i.d;break;case 1:n.d+=t.e;break;case 2:n.c=t.e-i.a-i.d;break;case 3:n.c=t.e+i.d}}(this.a,KR(t,226))},vq(VMt,"RectangleStripOverlapRemover/lambda$1$Type",1851),Bgt(1323,1,iMt,Pt),ZEt.Ne=function(t,e){return function(t,e){var n,i,r,a;return n=new Bt,1==(r=2==(r=(i=KR(bX(iU(new k$(null,new OY(t.f,16)),n),c1(new W,new X,new it,new rt,t7(rk(_Gt,1),sCt,108,0,[(e9(),xGt),vGt]))),21)).gc())?1:0)&&HM(Qnt(KR(bX(nU(i.Lc(),new Rt),N5(Kit(0),new et)),168).a,2),0)&&(r=0),1==(a=2==(a=(i=KR(bX(iU(new k$(null,new OY(e.f,16)),n),c1(new W,new X,new it,new rt,t7(rk(_Gt,1),sCt,108,0,[xGt,vGt]))),21)).gc())?1:0)&&HM(Qnt(KR(bX(nU(i.Lc(),new Ft),N5(Kit(0),new et)),168).a,2),0)&&(a=0),r0?Iz(t.a,e,n):Iz(t.b,e,n)}(this,KR(t,42),KR(e,176))},vq(XMt,"SuccessorCombination",782),Bgt(649,1,{},Kt),ZEt.Ve=function(t,e){var n;return function(t){var e,n,r,a,o;return n=a=KR(t.a,17).a,r=o=KR(t.b,17).a,e=i.Math.max(i.Math.abs(a),i.Math.abs(o)),a<=0&&a==o?(n=0,r=o-1):a==-e&&o!=e?(n=o,r=a,o>=0&&++n):(n=-o,r=a),new rM(ttt(n),ttt(r))}((n=KR(t,42),KR(e,176),n))},vq(XMt,"SuccessorJitter",649),Bgt(648,1,{},Yt),ZEt.Ve=function(t,e){var n;return function(t){var e,n;if(e=KR(t.a,17).a,n=KR(t.b,17).a,e>=0){if(e==n)return new rM(ttt(-e-1),ttt(-e-1));if(e==-n)return new rM(ttt(-e),ttt(n+1))}return i.Math.abs(e)>i.Math.abs(n)?new rM(ttt(-e),ttt(e<0?n:n+1)):new rM(ttt(e+1),ttt(n))}((n=KR(t,42),KR(e,176),n))},vq(XMt,"SuccessorLineByLine",648),Bgt(573,1,{},Vt),ZEt.Ve=function(t,e){var n;return function(t){var e,n,i,r;return e=i=KR(t.a,17).a,n=r=KR(t.b,17).a,0==i&&0==r?n-=1:-1==i&&r<=0?(e=0,n-=2):i<=0&&r>0?(e-=1,n-=1):i>=0&&r<0?(e+=1,n+=1):i>0&&r>=0?(e-=1,n+=1):(e+=1,n-=1),new rM(ttt(e),ttt(n))}((n=KR(t,42),KR(e,176),n))},vq(XMt,"SuccessorManhattan",573),Bgt(1344,1,{},Wt),ZEt.Ve=function(t,e){var n;return function(t){var e,n,r;return n=KR(t.a,17).a,r=KR(t.b,17).a,n<(e=i.Math.max(i.Math.abs(n),i.Math.abs(r)))&&r==-e?new rM(ttt(n+1),ttt(r)):n==e&&r=-e&&r==e?new rM(ttt(n-1),ttt(r)):new rM(ttt(n),ttt(r-1))}((n=KR(t,42),KR(e,176),n))},vq(XMt,"SuccessorMaxNormWindingInMathPosSense",1344),Bgt(409,1,{},tp),ZEt.Ve=function(t,e){return Iz(this,t,e)},ZEt.c=!1,ZEt.d=!1,ZEt.e=!1,ZEt.f=!1,vq(XMt,"SuccessorQuadrantsGeneric",409),Bgt(1345,1,{},Xt),ZEt.Kb=function(t){return KR(t,334).a},vq(XMt,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),Bgt(332,22,{3:1,34:1,22:1,332:1},SS),ZEt.a=!1;var sYt,cYt,lYt,uYt,hYt,fYt=Z2(eLt,nLt,332,bHt,(function(){return Jrt(),t7(rk(fYt,1),sCt,332,0,[cYt,sYt,lYt,uYt])}),(function(t){return Jrt(),Q2(($J(),hYt),t)}));Bgt(1317,1,{}),ZEt.Ib=function(){var t,e,n,i,r,a;for(n=" ",t=ttt(0),r=0;r0&&D2(m,v*k),x>0&&P2(m,x*_);for(I5(t.b,new ue),e=new yy,s=new G5(new Jd(t.c).a);s.b;)i=KR((o=d3(s)).ld(),74),n=KR(o.md(),407).a,r=Fmt(i,!1,!1),gxt(h=Clt(yut(i),yht(r),n),r),(w=wut(i))&&-1==g1(e,w,0)&&(Dy(e.c,w),oU(w,(KD(0!=h.b),KR(h.a.a.c,8)),n));for(b=new G5(new Jd(t.d).a);b.b;)i=KR((p=d3(b)).ld(),74),n=KR(p.md(),407).a,r=Fmt(i,!1,!1),h=Clt(xut(i),s8(yht(r)),n),gxt(h=s8(h),r),(w=vut(i))&&-1==g1(e,w,0)&&(Dy(e.c,w),oU(w,(KD(0!=h.b),KR(h.c.b.c,8)),n))}(r),nat(t,PYt,this.b),e.Vg()},ZEt.a=0,vq(pLt,"DisCoLayoutProvider",1114),Bgt(1208,1,{},ie),ZEt.c=!1,ZEt.e=0,ZEt.f=0,vq(pLt,"DisCoPolyominoCompactor",1208),Bgt(567,1,{567:1},x$),ZEt.b=!0,vq(bLt,"DCComponent",567),Bgt(406,22,{3:1,34:1,22:1,406:1},AS),ZEt.a=!1;var wYt,vYt,xYt,kYt,_Yt,TYt=Z2(bLt,"DCDirection",406,bHt,(function(){return Zrt(),t7(rk(TYt,1),sCt,406,0,[vYt,wYt,xYt,kYt])}),(function(t){return Zrt(),Q2((FJ(),_Yt),t)}));Bgt(272,137,{3:1,272:1,96:1,137:1},Hgt),vq(bLt,"DCElement",272),Bgt(407,1,{407:1},mot),ZEt.c=0,vq(bLt,"DCExtension",407),Bgt(762,137,lLt,Bk),vq(bLt,"DCGraph",762),Bgt(489,22,{3:1,34:1,22:1,489:1},_D);var EYt,SYt,CYt,AYt,MYt,LYt,IYt,OYt,NYt,DYt,PYt,BYt,RYt,FYt,$Yt,jYt,zYt,qYt,HYt,UYt,GYt,KYt,YYt=Z2(mLt,yLt,489,bHt,(function(){return cE(),t7(rk(YYt,1),sCt,489,0,[EYt])}),(function(t){return cE(),Q2((WV(),SYt),t)}));Bgt(865,1,AMt,Bh),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,wLt),_Lt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),MYt),(Kht(),ioe)),YYt),fet((Art(),Qae))))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,vLt),_Lt),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),soe),fUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,xLt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),ooe),nHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,kLt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),ooe),nHt),fet(Qae)))),Zxt((new Rh,t))},vq(mLt,"DisCoMetaDataProvider",865),Bgt(1010,1,AMt,Rh),ZEt.hf=function(t){Zxt(t)},vq(mLt,"DisCoOptions",1010),Bgt(1011,1,{},re),ZEt.sf=function(){return new ne},ZEt.tf=function(t){},vq(mLt,"DisCoOptions/DiscoFactory",1011),Bgt(568,176,{330:1,176:1,568:1},Rpt),ZEt.a=0,ZEt.b=0,ZEt.c=0,ZEt.d=0,vq("org.eclipse.elk.alg.disco.structures","DCPolyomino",568),Bgt(1286,1,hCt,ae),ZEt.Mb=function(t){return ML(t)},vq(MLt,"ElkGraphComponentsProcessor/lambda$0$Type",1286),Bgt(1287,1,{},oe),ZEt.Kb=function(t){return JU(),yut(KR(t,74))},vq(MLt,"ElkGraphComponentsProcessor/lambda$1$Type",1287),Bgt(1288,1,hCt,se),ZEt.Mb=function(t){return e=KR(t,74),JU(),yut(e)==DK(xut(e));var e},vq(MLt,"ElkGraphComponentsProcessor/lambda$2$Type",1288),Bgt(1289,1,{},ce),ZEt.Kb=function(t){return JU(),xut(KR(t,74))},vq(MLt,"ElkGraphComponentsProcessor/lambda$3$Type",1289),Bgt(1290,1,hCt,le),ZEt.Mb=function(t){return e=KR(t,74),JU(),xut(e)==DK(yut(e));var e},vq(MLt,"ElkGraphComponentsProcessor/lambda$4$Type",1290),Bgt(1291,1,hCt,np),ZEt.Mb=function(t){return function(t,e){return JU(),t==DK(yut(e))||t==DK(xut(e))}(this.a,KR(t,74))},vq(MLt,"ElkGraphComponentsProcessor/lambda$5$Type",1291),Bgt(1292,1,{},ip),ZEt.Kb=function(t){return function(t,e){return JU(),t==yut(e)?xut(e):yut(e)}(this.a,KR(t,74))},vq(MLt,"ElkGraphComponentsProcessor/lambda$6$Type",1292),Bgt(1205,1,{},zW),ZEt.a=0,vq(MLt,"ElkGraphTransformer",1205),Bgt(1206,1,{},ue),ZEt.Yd=function(t,e){!function(t,e,n){var i,r,a,o;t.a=n.b.d,rO(e,326)?(UX(a=yht(r=Fmt(KR(e,74),!1,!1)),i=new rp(t)),gxt(a,r),null!=e.of((zEt(),yse))&&UX(KR(e.of(yse),75),i)):((o=KR(e,422)).rh(o.nh()+t.a.a),o.sh(o.oh()+t.a.b))}(this,KR(t,167),KR(e,272))},vq(MLt,"ElkGraphTransformer/OffsetApplier",1206),Bgt(1207,1,jSt,rp),ZEt.Cd=function(t){!function(t,e){bD(e,t.a.a.a,t.a.a.b)}(this,KR(t,8))},vq(MLt,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),Bgt(760,1,{},he),vq(DLt,PLt,760),Bgt(1195,1,iMt,fe),ZEt.Ne=function(t,e){return function(t,e){var n,i,r;return 0==(n=KR(fut(e,(Evt(),vVt)),17).a-KR(fut(t,vVt),17).a)?(i=oB(tO(KR(fut(t,(f3(),NVt)),8)),KR(fut(t,DVt),8)),r=oB(tO(KR(fut(e,NVt),8)),KR(fut(e,DVt),8)),cet(i.a*i.b,r.a*r.b)):n}(KR(t,235),KR(e,235))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(DLt,BLt,1195),Bgt(1196,1,jSt,MS),ZEt.Cd=function(t){!function(t,e,n){var i;aB(i=new KL(n.d),t),wet(e,i.a,i.b)}(this.b,this.a,KR(t,250))},vq(DLt,RLt,1196),Bgt(738,205,fLt,ww),ZEt.rf=function(t,e){Upt(this,t,e)},vq(DLt,"ForceLayoutProvider",738),Bgt(309,137,{3:1,309:1,96:1,137:1}),vq(FLt,"FParticle",309),Bgt(250,309,{3:1,250:1,309:1,96:1,137:1},cq),ZEt.Ib=function(){var t;return this.a?(t=g1(this.a.a,this,0))>=0?"b"+t+"["+HX(this.a)+"]":"b["+HX(this.a)+"]":"b_"+DN(this)},vq(FLt,"FBendpoint",250),Bgt(290,137,{3:1,290:1,96:1,137:1},YP),ZEt.Ib=function(){return HX(this)},vq(FLt,"FEdge",290),Bgt(235,137,{3:1,235:1,96:1,137:1},KQ);var VYt,WYt,XYt,QYt,ZYt,JYt,tVt,eVt,nVt=vq(FLt,"FGraph",235);Bgt(454,309,{3:1,454:1,309:1,96:1,137:1},jW),ZEt.Ib=function(){return null==this.b||0==this.b.length?"l["+HX(this.a)+"]":"l_"+this.b},vq(FLt,"FLabel",454),Bgt(153,309,{3:1,153:1,309:1,96:1,137:1},GI),ZEt.Ib=function(){return VY(this)},ZEt.a=0,vq(FLt,"FNode",153),Bgt(2100,1,{}),ZEt.vf=function(t){Bvt(this,t)},ZEt.wf=function(){Oot(this)},ZEt.d=0,vq(jLt,"AbstractForceModel",2100),Bgt(641,2100,{641:1},U5),ZEt.uf=function(t,e){var n,r,a,o;return t_t(this.f,t,e),a=oB(tO(e.d),t.d),o=i.Math.sqrt(a.a*a.a+a.b*a.b),r=i.Math.max(0,o-iH(t.e)/2-iH(e.e)/2),EO(a,((n=Rdt(this.e,t,e))>0?-function(t,e){return t>0?i.Math.log(t/e):-100}(r,this.c)*n:function(t,e){return t>0?e/(t*t):100*e}(r,this.b)*KR(fut(t,(Evt(),vVt)),17).a)/o),a},ZEt.vf=function(t){Bvt(this,t),this.a=KR(fut(t,(Evt(),lVt)),17).a,this.c=gx(qD(fut(t,SVt))),this.b=gx(qD(fut(t,kVt)))},ZEt.xf=function(t){return t0?e*e/t:e*e*100}(r=i.Math.max(0,s-iH(t.e)/2-iH(e.e)/2),this.a)*KR(fut(t,(Evt(),vVt)),17).a,(n=Rdt(this.e,t,e))>0&&(o-=function(t,e){return t*t/e}(r,this.a)*n),EO(a,o*this.b/s),a},ZEt.vf=function(t){var e,n,r,a,o,s,c;for(Bvt(this,t),this.b=gx(qD(fut(t,(Evt(),CVt)))),this.c=this.b/KR(fut(t,lVt),17).a,r=t.e.c.length,o=0,a=0,c=new pg(t.e);c.a0},ZEt.a=0,ZEt.b=0,ZEt.c=0,vq(jLt,"FruchtermanReingoldModel",642),Bgt(860,1,AMt,Fh),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zLt),""),"Force Model"),"Determines the model for force calculation."),XYt),(Kht(),ioe)),eWt),fet((Art(),Qae))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,qLt),""),"Iterations"),"The number of iterations on the force model."),ttt(300)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,HLt),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ttt(0)),aoe),nUt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ULt),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),GLt),noe),ZHt),fet(Qae)))),PV(t,ULt,zLt,eVt),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,KLt),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),noe),ZHt),fet(Qae)))),PV(t,KLt,zLt,ZYt),GTt((new $h,t))},vq(YLt,"ForceMetaDataProvider",860),Bgt(432,22,{3:1,34:1,22:1,432:1},LS);var iVt,rVt,aVt,oVt,sVt,cVt,lVt,uVt,hVt,fVt,dVt,gVt,pVt,bVt,mVt,yVt,wVt,vVt,xVt,kVt,_Vt,TVt,EVt,SVt,CVt,AVt,MVt,LVt,IVt,OVt,NVt,DVt,PVt,BVt,RVt,FVt,$Vt,jVt,zVt,qVt,HVt,UVt,GVt,KVt,YVt,VVt,WVt,XVt,QVt,ZVt,JVt,tWt,eWt=Z2(YLt,"ForceModelStrategy",432,bHt,(function(){return T0(),t7(rk(eWt,1),sCt,432,0,[iVt,rVt])}),(function(t){return T0(),Q2((_X(),aVt),t)}));Bgt(TCt,1,AMt,$h),ZEt.hf=function(t){GTt(t)},vq(YLt,"ForceOptions",TCt),Bgt(1001,1,{},me),ZEt.sf=function(){return new ww},ZEt.tf=function(t){},vq(YLt,"ForceOptions/ForceFactory",1001),Bgt(861,1,AMt,jh),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,wIt),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(FN(),!1)),(Kht(),eoe)),KHt),fet((Art(),Xae))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,vIt),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),noe),ZHt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Vae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,xIt),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),$Vt),ioe),lWt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,kIt),""),"Stress Epsilon"),"Termination criterion for the iterative process."),GLt),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,_It),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ttt(lSt)),aoe),nUt),fet(Qae)))),j_t((new zh,t))},vq(YLt,"StressMetaDataProvider",861),Bgt(1004,1,AMt,zh),ZEt.hf=function(t){j_t(t)},vq(YLt,"StressOptions",1004),Bgt(1005,1,{},pe),ZEt.sf=function(){return new VP},ZEt.tf=function(t){},vq(YLt,"StressOptions/StressFactory",1005),Bgt(1110,205,fLt,VP),ZEt.rf=function(t,e){var n,i,r,a;for(e.Ug(EIt,1),dx(zD(spt(t,(Tst(),YVt))))?dx(zD(spt(t,JVt)))||aK(new Kg((BE(),new ix(t)))):Upt(new ww,t,e.eh(1)),i=S7(t),a=(n=lxt(this.a,i)).Kc();a.Ob();)!((r=KR(a.Pb(),235)).e.c.length<=1)&&(Bkt(this.b,r),upt(this.b),V0(r.d,new be));cEt(i=zTt(n)),e.Vg()},vq(CIt,"StressLayoutProvider",1110),Bgt(1111,1,jSt,be),ZEt.Cd=function(t){Xxt(KR(t,454))},vq(CIt,"StressLayoutProvider/lambda$0$Type",1111),Bgt(1002,1,{},aw),ZEt.c=0,ZEt.e=0,ZEt.g=0,vq(CIt,"StressMajorization",1002),Bgt(391,22,{3:1,34:1,22:1,391:1},IS);var nWt,iWt,rWt,aWt,oWt,sWt,cWt,lWt=Z2(CIt,"StressMajorization/Dimension",391,bHt,(function(){return j1(),t7(rk(lWt,1),sCt,391,0,[iWt,nWt,rWt])}),(function(t){return j1(),Q2((jZ(),aWt),t)}));Bgt(1003,1,iMt,ap),ZEt.Ne=function(t,e){return function(t,e,n){return cet(t[e.a],t[n.a])}(this.a,KR(t,153),KR(e,153))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(CIt,"StressMajorization/lambda$0$Type",1003),Bgt(1192,1,{},eV),vq(MIt,"ElkLayered",1192),Bgt(1193,1,jSt,op),ZEt.Cd=function(t){!function(t,e){var n;if((n=KR(fut(e,(CEt(),T3t)),322))!=t)throw Ay(new Lx("The hierarchy aware processor "+n+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}(this.a,KR(t,36))},vq(MIt,"ElkLayered/lambda$0$Type",1193),Bgt(1194,1,jSt,sp),ZEt.Cd=function(t){!function(t,e){E7(e,(CEt(),b3t),t)}(this.a,KR(t,36))},vq(MIt,"ElkLayered/lambda$1$Type",1194),Bgt(1281,1,{},fO),vq(MIt,"GraphConfigurator",1281),Bgt(770,1,jSt,cp),ZEt.Cd=function(t){Yut(this.a,KR(t,10))},vq(MIt,"GraphConfigurator/lambda$0$Type",770),Bgt(771,1,{},ge),ZEt.Kb=function(t){return ict(),new k$(null,new OY(KR(t,30).a,16))},vq(MIt,"GraphConfigurator/lambda$1$Type",771),Bgt(772,1,jSt,lp),ZEt.Cd=function(t){Yut(this.a,KR(t,10))},vq(MIt,"GraphConfigurator/lambda$2$Type",772),Bgt(1109,205,fLt,Cw),ZEt.rf=function(t,e){var n;n=dkt(new Mw,t),$M(spt(t,(CEt(),U3t)))===$M((V9(),ble))?yet(this.a,n,e):ipt(this.a,n,e),e.$g()||STt(new qh,n)},vq(MIt,"LayeredLayoutProvider",1109),Bgt(367,22,{3:1,34:1,22:1,367:1},OS);var uWt,hWt,fWt,dWt,gWt,pWt,bWt,mWt,yWt=Z2(MIt,"LayeredPhases",367,bHt,(function(){return dut(),t7(rk(yWt,1),sCt,367,0,[uWt,hWt,fWt,dWt,gWt])}),(function(t){return dut(),Q2((h0(),pWt),t)}));Bgt(1717,1,{},B4),ZEt.i=0,vq(LIt,"ComponentsToCGraphTransformer",1717),Bgt(1718,1,{},de),ZEt.yf=function(t,e){return i.Math.min(null!=t.a?gx(t.a):t.c.i,null!=e.a?gx(e.a):e.c.i)},ZEt.zf=function(t,e){return i.Math.min(null!=t.a?gx(t.a):t.c.i,null!=e.a?gx(e.a):e.c.i)},vq(LIt,"ComponentsToCGraphTransformer/1",1718),Bgt(86,1,{86:1}),ZEt.i=0,ZEt.k=!0,ZEt.o=dAt;var wWt,vWt,xWt=vq(IIt,"CNode",86);Bgt(470,86,{470:1,86:1},UN,Zit),ZEt.Ib=function(){return""},vq(LIt,"ComponentsToCGraphTransformer/CRectNode",470),Bgt(1688,1,{},ye),vq(LIt,"OneDimensionalComponentsCompaction",1688),Bgt(1689,1,{},we),ZEt.Kb=function(t){return e=KR(t,42),n9(),FN(),0!=KR(e.a,86).d.e;var e},ZEt.Fb=function(t){return this===t},vq(LIt,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),Bgt(1690,1,{},ve),ZEt.Kb=function(t){return e=KR(t,42),n9(),FN(),!!(Ket(KR(e.a,86).j,KR(e.b,88))||0!=KR(e.a,86).d.e&&Ket(KR(e.a,86).j,KR(e.b,88)));var e},ZEt.Fb=function(t){return this===t},vq(LIt,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),Bgt(1720,1,{},jq),vq(IIt,"CGraph",1720),Bgt(194,1,{194:1},Jit),ZEt.b=0,ZEt.c=0,ZEt.e=0,ZEt.g=!0,ZEt.i=dAt,vq(IIt,"CGroup",194),Bgt(1719,1,{},xe),ZEt.yf=function(t,e){return i.Math.max(null!=t.a?gx(t.a):t.c.i,null!=e.a?gx(e.a):e.c.i)},ZEt.zf=function(t,e){return i.Math.max(null!=t.a?gx(t.a):t.c.i,null!=e.a?gx(e.a):e.c.i)},vq(IIt,cMt,1719),Bgt(1721,1,{},Hdt),ZEt.d=!1;var kWt,_Wt=vq(IIt,dMt,1721);Bgt(1722,1,{},ke),ZEt.Kb=function(t){return hE(),FN(),0!=KR(KR(t,42).a,86).d.e},ZEt.Fb=function(t){return this===t},vq(IIt,gMt,1722),Bgt(833,1,{},b$),ZEt.a=!1,ZEt.b=!1,ZEt.c=!1,ZEt.d=!1,vq(IIt,pMt,833),Bgt(1898,1,{},ij),vq(OIt,bMt,1898);var TWt=WF(NIt,aMt);Bgt(1899,1,{382:1},xG),ZEt.bf=function(t){!function(t,e){var n,i,r;e.a?(Mz(t.b,e.b),t.a[e.b.i]=KR(XT(t.b,e.b),86),(n=KR(WT(t.b,e.b),86))&&(t.a[n.i]=e.b)):((i=KR(XT(t.b,e.b),86))&&i==t.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),(r=KR(WT(t.b,e.b),86))&&t.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),kO(t.b,e.b))}(this,KR(t,476))},vq(OIt,mMt,1899),Bgt(FCt,1,iMt,_e),ZEt.Ne=function(t,e){return function(t,e){return cet(t.g.c+t.g.b/2,e.g.c+e.g.b/2)}(KR(t,86),KR(e,86))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(OIt,yMt,FCt),Bgt(476,1,{476:1},VS),ZEt.a=!1,vq(OIt,wMt,476),Bgt(1901,1,iMt,Te),ZEt.Ne=function(t,e){return function(t,e){var n,i,r;if(i=t.b.g.d,t.a||(i+=t.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),0==(n=cet(i,r))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}(KR(t,476),KR(e,476))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(OIt,vMt,1901),Bgt(148,1,{148:1},WS,ZR),ZEt.Fb=function(t){var e;return null!=t&&EWt==i9(t)&&(e=KR(t,148),jH(this.c,e.c)&&jH(this.d,e.d))},ZEt.Hb=function(){return s9(t7(rk(nHt,1),pSt,1,5,[this.c,this.d]))},ZEt.Ib=function(){return"("+this.c+dSt+this.d+(this.a?"cx":"")+this.b+")"},ZEt.a=!0,ZEt.c=0,ZEt.d=0;var EWt=vq(NIt,"Point",148);Bgt(416,22,{3:1,34:1,22:1,416:1},DS);var SWt,CWt,AWt,MWt,LWt,IWt,OWt,NWt,DWt,PWt,BWt,RWt,FWt=Z2(NIt,"Point/Quadrant",416,bHt,(function(){return i7(),t7(rk(FWt,1),sCt,416,0,[SWt,MWt,CWt,AWt])}),(function(t){return i7(),Q2((zJ(),LWt),t)}));Bgt(1708,1,{},Tw),ZEt.b=null,ZEt.c=null,ZEt.d=null,ZEt.e=null,ZEt.f=null,vq(NIt,"RectilinearConvexHull",1708),Bgt(583,1,{382:1},Urt),ZEt.bf=function(t){!function(t,e){t.a.Ne(e.d,t.b)>0&&(SO(t.c,new ZR(e.c,e.d,t.d)),t.b=e.d)}(this,KR(t,148))},ZEt.b=0,vq(NIt,"RectilinearConvexHull/MaximalElementsEventHandler",583),Bgt(1710,1,iMt,Ee),ZEt.Ne=function(t,e){return function(t,e){return fE(),cet((yH(t),t),(yH(e),e))}(qD(t),qD(e))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),Bgt(1709,1,{382:1},A0),ZEt.bf=function(t){Mbt(this,KR(t,148))},ZEt.a=0,ZEt.b=null,ZEt.c=null,ZEt.d=null,ZEt.e=null,vq(NIt,"RectilinearConvexHull/RectangleEventHandler",1709),Bgt(1711,1,iMt,Se),ZEt.Ne=function(t,e){return function(t,e){return S0(),t.c==e.c?cet(e.d,t.d):cet(t.c,e.c)}(KR(t,148),KR(e,148))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/lambda$0$Type",1711),Bgt(1712,1,iMt,Le),ZEt.Ne=function(t,e){return function(t,e){return S0(),t.c==e.c?cet(t.d,e.d):cet(t.c,e.c)}(KR(t,148),KR(e,148))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/lambda$1$Type",1712),Bgt(1713,1,iMt,Ie),ZEt.Ne=function(t,e){return function(t,e){return S0(),t.c==e.c?cet(e.d,t.d):cet(e.c,t.c)}(KR(t,148),KR(e,148))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/lambda$2$Type",1713),Bgt(1714,1,iMt,Me),ZEt.Ne=function(t,e){return function(t,e){return S0(),t.c==e.c?cet(t.d,e.d):cet(e.c,t.c)}(KR(t,148),KR(e,148))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/lambda$3$Type",1714),Bgt(1715,1,iMt,Oe),ZEt.Ne=function(t,e){return gut(KR(t,148),KR(e,148))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NIt,"RectilinearConvexHull/lambda$4$Type",1715),Bgt(1716,1,{},qK),vq(NIt,"Scanline",1716),Bgt(2104,1,{}),vq(DIt,"AbstractGraphPlacer",2104),Bgt(335,1,{335:1},pD),ZEt.Ff=function(t){return!!this.Gf(t)&&(Ndt(this.b,KR(fut(t,(jEt(),k1t)),21),t),!0)},ZEt.Gf=function(t){var e,n,i;for(e=KR(fut(t,(jEt(),k1t)),21),i=KR(IQ(RWt,e),21).Kc();i.Ob();)if(n=KR(i.Pb(),21),!KR(IQ(this.b,n),15).dc())return!1;return!0},vq(DIt,"ComponentGroup",335),Bgt(779,2104,{},Ew),ZEt.Hf=function(t){var e;for(e=new pg(this.a);e.ai?1:0}(KR(t,36),KR(e,36))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(DIt,"ComponentsProcessor/lambda$0$Type",1283),Bgt(579,335,{335:1,579:1},JX),ZEt.Ff=function(t){return E8(this,t)},ZEt.Gf=function(t){return _bt(this,t)},vq(DIt,"ModelOrderComponentGroup",579),Bgt(1310,2104,{},De),ZEt.Ef=function(t,e){var n,r,a,o,s,c,l,u,h;if(1!=t.gc()){if(t.dc())return e.a.c.length=0,e.f.a=0,void(e.f.b=0);for(this.Jf(t,e),a=KR(t.Xb(0),36),e.a.c.length=0,p6(e,a),c=0,h=0,o=t.Kc();o.Ob();)l=KR(o.Pb(),36).f,c=i.Math.max(c,l.a),h+=l.a*l.b;if(c=i.Math.max(c,i.Math.sqrt(h)*gx(qD(fut(e,(CEt(),e3t))))),r=gx(qD(fut(e,t6t))),this.If(t,e,c,r),dx(zD(fut(a,i3t)))){for(bEt(n=new Ae,t,r),s=t.Kc();s.Ob();)aB(mL(KR(s.Pb(),36).c),n.e);aB(mL(e.f),n.a)}dJ(e,t)}else(u=KR(t.Xb(0),36))!=e&&(e.a.c.length=0,Nwt(e,u,0,0),p6(e,u),zU(e.d,u.d),e.f.a=u.f.a,e.f.b=u.f.b)},ZEt.If=function(t,e,n,r){var a,o,s,c,l,u,h,f;for(h=0,f=0,c=0,a=r,s=t.Kc();s.Ob();)h+(u=(o=KR(s.Pb(),36)).f).a>n&&(h=0,f+=c+r,c=0),awt(o,h+(l=o.c).a,f+l.b),mL(l),a=i.Math.max(a,h+u.a),c=i.Math.max(c,u.b),h+=u.a+r;e.f.a=a,e.f.b=f+c},ZEt.Jf=function(t,e){var n,i,r,a,o;if($M(fut(e,(CEt(),o3t)))===$M((Yit(),qWt))){for(i=t.Kc();i.Ob();){for(o=0,a=new pg((n=KR(i.Pb(),36)).a);a.an&&!KR(fut(o,(jEt(),k1t)),21).Hc((MTt(),cue))||l&&KR(fut(l,(jEt(),k1t)),21).Hc((MTt(),sue))||KR(fut(o,(jEt(),k1t)),21).Hc((MTt(),Cue)))&&(d=f,g+=c+r,c=0),u=o.c,KR(fut(o,(jEt(),k1t)),21).Hc((MTt(),cue))&&(d=a+r),awt(o,d+u.a,g+u.b),a=i.Math.max(a,d+h.a),KR(fut(o,k1t),21).Hc(Eue)&&(f=i.Math.max(f,d+h.a+r)),mL(u),c=i.Math.max(c,h.b),d+=h.a+r,l=o;e.f.a=a,e.f.b=g+c},ZEt.Jf=function(t,e){},vq(DIt,"ModelOrderRowGraphPlacer",1313),Bgt(1311,1,iMt,Pe),ZEt.Ne=function(t,e){return function(t,e){var n;return 0==(n=e.p-t.p)?cet(t.f.a*t.f.b,e.f.a*e.f.b):n}(KR(t,36),KR(e,36))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(DIt,"SimpleRowGraphPlacer/1",1311),Bgt(1280,1,xMt,Be),ZEt.Lb=function(t){var e;return!!(e=KR(fut(KR(t,249).b,(CEt(),J3t)),75))&&0!=e.b},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){var e;return!!(e=KR(fut(KR(t,249).b,(CEt(),J3t)),75))&&0!=e.b},vq($It,"CompoundGraphPostprocessor/1",1280),Bgt(1279,1,jIt,Lw),ZEt.Kf=function(t,e){mat(this,KR(t,36),e)},vq($It,"CompoundGraphPreprocessor",1279),Bgt(453,1,{453:1},Dtt),ZEt.c=!1,vq($It,"CompoundGraphPreprocessor/ExternalPort",453),Bgt(249,1,{249:1},oR),ZEt.Ib=function(){return uD(this.c)+":"+vdt(this.b)},vq($It,"CrossHierarchyEdge",249),Bgt(777,1,iMt,up),ZEt.Ne=function(t,e){return function(t,e,n){var i,r;return e.c==(d4(),B7t)&&n.c==P7t?-1:e.c==P7t&&n.c==B7t?1:(i=p9(e.a,t.a),r=p9(n.a,t.a),e.c==B7t?r-i:i-r)}(this,KR(t,249),KR(e,249))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq($It,"CrossHierarchyEdgeComparator",777),Bgt(305,137,{3:1,305:1,96:1,137:1}),ZEt.p=0,vq(zIt,"LGraphElement",305),Bgt(18,305,{3:1,18:1,305:1,96:1,137:1},EG),ZEt.Ib=function(){return vdt(this)};var YWt=vq(zIt,"LEdge",18);Bgt(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},R4),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new pg(this.b)},ZEt.Ib=function(){return 0==this.b.c.length?"G-unlayered"+Tut(this.a):0==this.a.c.length?"G-layered"+Tut(this.b):"G[layerless"+Tut(this.a)+", layers"+Tut(this.b)+"]"};var VWt,WWt=vq(zIt,"LGraph",36);Bgt(666,1,{}),ZEt.Lf=function(){return this.e.n},ZEt.of=function(t){return fut(this.e,t)},ZEt.Mf=function(){return this.e.o},ZEt.Nf=function(){return this.e.p},ZEt.pf=function(t){return cD(this.e,t)},ZEt.Of=function(t){this.e.n.a=t.a,this.e.n.b=t.b},ZEt.Pf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},ZEt.Qf=function(t){this.e.p=t},vq(zIt,"LGraphAdapters/AbstractLShapeAdapter",666),Bgt(474,1,{853:1},hp),ZEt.Rf=function(){var t,e;if(!this.b)for(this.b=WN(this.a.b.c.length),e=new pg(this.a.b);e.a0&&b9((IY(e-1,t.length),t.charCodeAt(e-1)),WIt);)--e;if(r> ",t),Qot(n)),tL(JM((t.a+="[",t),n.i),"]")),t.a},ZEt.c=!0,ZEt.d=!1;var sXt,cXt,lXt,uXt,hXt,fXt,dXt,gXt,pXt=vq(zIt,"LPort",12);Bgt(408,1,GSt,dp),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new gp(new pg(this.a.e))},vq(zIt,"LPort/1",408),Bgt(1309,1,TSt,gp),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return KR(jY(this.a),18).c},ZEt.Ob=function(){return BI(this.a)},ZEt.Qb=function(){zz(this.a)},vq(zIt,"LPort/1/1",1309),Bgt(369,1,GSt,pp),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new bp(new pg(this.a.g))},vq(zIt,"LPort/2",369),Bgt(776,1,TSt,bp),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return KR(jY(this.a),18).d},ZEt.Ob=function(){return BI(this.a)},ZEt.Qb=function(){zz(this.a)},vq(zIt,"LPort/2/1",776),Bgt(1302,1,GSt,qS),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new GQ(this)},vq(zIt,"LPort/CombineIter",1302),Bgt(208,1,TSt,GQ),ZEt.Nb=function(t){bz(this,t)},ZEt.Qb=function(){f_()},ZEt.Ob=function(){return NN(this)},ZEt.Pb=function(){return BI(this.a)?jY(this.a):jY(this.b)},vq(zIt,"LPort/CombineIter/1",208),Bgt(1303,1,xMt,je),ZEt.Lb=function(t){return Kj(t)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),0!=KR(t,12).g.c.length},vq(zIt,"LPort/lambda$0$Type",1303),Bgt(1304,1,xMt,ze),ZEt.Lb=function(t){return Yj(t)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),0!=KR(t,12).e.c.length},vq(zIt,"LPort/lambda$1$Type",1304),Bgt(1305,1,xMt,qe),ZEt.Lb=function(t){return m5(),KR(t,12).j==(MTt(),cue)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),KR(t,12).j==(MTt(),cue)},vq(zIt,"LPort/lambda$2$Type",1305),Bgt(1306,1,xMt,He),ZEt.Lb=function(t){return m5(),KR(t,12).j==(MTt(),sue)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),KR(t,12).j==(MTt(),sue)},vq(zIt,"LPort/lambda$3$Type",1306),Bgt(1307,1,xMt,Ue),ZEt.Lb=function(t){return m5(),KR(t,12).j==(MTt(),Eue)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),KR(t,12).j==(MTt(),Eue)},vq(zIt,"LPort/lambda$4$Type",1307),Bgt(1308,1,xMt,Ge),ZEt.Lb=function(t){return m5(),KR(t,12).j==(MTt(),Cue)},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return m5(),KR(t,12).j==(MTt(),Cue)},vq(zIt,"LPort/lambda$5$Type",1308),Bgt(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},$q),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new pg(this.a)},ZEt.Ib=function(){return"L_"+g1(this.b.b,this,0)+Tut(this.a)},vq(zIt,"Layer",30),Bgt(1330,1,{},Mw),vq(tOt,eOt,1330),Bgt(1334,1,{},Ke),ZEt.Kb=function(t){return Blt(KR(t,84))},vq(tOt,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),Bgt(1337,1,{},Ye),ZEt.Kb=function(t){return Blt(KR(t,84))},vq(tOt,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),Bgt(1331,1,jSt,mp),ZEt.Cd=function(t){rgt(this.a,KR(t,123))},vq(tOt,RLt,1331),Bgt(1332,1,jSt,yp),ZEt.Cd=function(t){rgt(this.a,KR(t,123))},vq(tOt,nOt,1332),Bgt(1333,1,{},Ve),ZEt.Kb=function(t){return new k$(null,new OY(UH(KR(t,74)),16))},vq(tOt,iOt,1333),Bgt(1335,1,hCt,wp),ZEt.Mb=function(t){return function(t,e){return Y0(e,dK(t))}(this.a,KR(t,27))},vq(tOt,rOt,1335),Bgt(1336,1,{},We),ZEt.Kb=function(t){return new k$(null,new OY((!(e=KR(t,74)).b&&(e.b=new bB(Uhe,e,4,7)),e.b),16));var e},vq(tOt,"ElkGraphImporter/lambda$5$Type",1336),Bgt(1338,1,hCt,vp),ZEt.Mb=function(t){return function(t,e){return Y0(e,dK(t))}(this.a,KR(t,27))},vq(tOt,"ElkGraphImporter/lambda$7$Type",1338),Bgt(1339,1,hCt,Xe),ZEt.Mb=function(t){return Idt(e=KR(t,74))&&dx(zD(spt(e,(CEt(),X3t))));var e},vq(tOt,"ElkGraphImporter/lambda$8$Type",1339),Bgt(1297,1,{},qh),vq(tOt,"ElkGraphLayoutTransferrer",1297),Bgt(1298,1,hCt,xp),ZEt.Mb=function(t){return function(t,e){return bE(),!J5(e.d.i,t)}(this.a,KR(t,18))},vq(tOt,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),Bgt(1299,1,jSt,kp),ZEt.Cd=function(t){bE(),SO(this.a,KR(t,18))},vq(tOt,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),Bgt(1300,1,hCt,_p),ZEt.Mb=function(t){return function(t,e){return bE(),J5(e.d.i,t)}(this.a,KR(t,18))},vq(tOt,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),Bgt(1301,1,jSt,Tp),ZEt.Cd=function(t){bE(),SO(this.a,KR(t,18))},vq(tOt,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),Bgt(819,1,{},WP),vq(aOt,"BiLinkedHashMultiMap",819),Bgt(1550,1,jIt,Qe),ZEt.Kf=function(t,e){!function(t,e){e.Ug(oOt,1),VT(Z1(new k$(null,new OY(t.b,16)),new Ze),new Je),e.Vg()}(KR(t,36),e)},vq(aOt,"CommentNodeMarginCalculator",1550),Bgt(1551,1,{},Ze),ZEt.Kb=function(t){return new k$(null,new OY(KR(t,30).a,16))},vq(aOt,"CommentNodeMarginCalculator/lambda$0$Type",1551),Bgt(1552,1,jSt,Je),ZEt.Cd=function(t){!function(t){var e,n,r,a,o,s,c,l,u,h,f,d;if(c=t.d,f=KR(fut(t,(jEt(),d0t)),15),e=KR(fut(t,h1t),15),f||e){if(o=gx(qD(Gnt(t,(CEt(),Z5t)))),s=gx(qD(Gnt(t,J5t))),d=0,f){for(u=0,a=f.Kc();a.Ob();)r=KR(a.Pb(),10),u=i.Math.max(u,r.o.b),d+=r.o.a;d+=o*(f.gc()-1),c.d+=u+s}if(n=0,e){for(u=0,a=e.Kc();a.Ob();)r=KR(a.Pb(),10),u=i.Math.max(u,r.o.b),n+=r.o.a;n+=o*(e.gc()-1),c.a+=u+s}(l=i.Math.max(d,n))>t.o.a&&(h=(l-t.o.a)/2,c.b=i.Math.max(c.b,h),c.c=i.Math.max(c.c,h))}}(KR(t,10))},vq(aOt,"CommentNodeMarginCalculator/lambda$1$Type",1552),Bgt(1553,1,jIt,tn),ZEt.Kf=function(t,e){!function(t,e){var n,i,r,a,o,s,c;for(e.Ug("Comment post-processing",1),a=new pg(t.b);a.a0&&Zwt((LY(0,n.c.length),KR(n.c[0],30)),t),n.c.length>1&&Zwt(KR(c$(n,n.c.length-1),30),t),e.Vg()}(KR(t,36),e)},vq(aOt,"HierarchicalPortPositionProcessor",1582),Bgt(1583,1,jIt,Hh),ZEt.Kf=function(t,e){!function(t,e){var n,r,a,o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E;for(t.b=e,t.a=KR(fut(e,(CEt(),G3t)),17).a,t.c=KR(fut(e,Y3t),17).a,0==t.c&&(t.c=lSt),b=new CV(e.b,0);b.b=t.a&&(r=Fxt(t,y),f=i.Math.max(f,r.b),v=i.Math.max(v,r.d),SO(c,new rM(y,r)));for(_=new yy,h=0;h0),b.a.Xb(b.c=--b.b),BP(b,T=new $q(t.b)),KD(b.b=2){for(d=!0,n=KR(jY(u=new pg(r.j)),12),h=null;u.a0)}(KR(t,18))},vq(aOt,"PartitionPreprocessor/lambda$2$Type",1643),Bgt(1644,1,jSt,xi),ZEt.Cd=function(t){!function(t){var e;xxt(t,!0),e=TCt,cD(t,(CEt(),K5t))&&(e+=KR(fut(t,K5t),17).a),E7(t,K5t,ttt(e))}(KR(t,18))},vq(aOt,"PartitionPreprocessor/lambda$3$Type",1644),Bgt(1645,1,jIt,Zh),ZEt.Kf=function(t,e){!function(t,e){var n,i,r,a,o,s;for(e.Ug("Port order processing",1),s=KR(fut(t,(CEt(),H5t)),430),n=new pg(t.b);n.ae.d.c){if((d=t.c[e.a.d])==(b=t.c[h.a.d]))continue;Kbt(rE(iE(aE(nE(new mw,1),100),d),b))}}}(this),function(t){var e,n,i,r,a,o,s;for(a=new jT,r=new pg(t.d.a);r.a1)for(e=CN((n=new yw,++t.b,n),t.d),s=Mrt(a,0);s.b!=s.d.c;)o=KR(gW(s),125),Kbt(rE(iE(aE(nE(new mw,1),0),e),o))}(this),zwt(hR(this.d),new vv),a=new pg(this.a.a.b);a.a=b&&(SO(o,ttt(h)),w=i.Math.max(w,v[h-1]-f),c+=p,m+=v[h-1]-m,f=v[h-1],p=l[h]),p=i.Math.max(p,l[h]),++h;c+=p}(g=i.Math.min(1/w,1/e.b/c))>r&&(r=g,n=o)}return n},ZEt.pg=function(){return!1},vq(_Ot,"MSDCutIndexHeuristic",816),Bgt(1683,1,jIt,ka),ZEt.Kf=function(t,e){Lxt(KR(t,36),e)},vq(_Ot,"SingleEdgeGraphWrapper",1683),Bgt(232,22,{3:1,34:1,22:1,232:1},oC);var CZt,AZt,MZt,LZt,IZt,OZt,NZt,DZt=Z2(TOt,"CenterEdgeLabelPlacementStrategy",232,bHt,(function(){return Jht(),t7(rk(DZt,1),sCt,232,0,[MZt,IZt,AZt,LZt,OZt,CZt])}),(function(t){return Jht(),Q2((m2(),NZt),t)}));Bgt(431,22,{3:1,34:1,22:1,431:1},aC);var PZt,BZt,RZt,FZt=Z2(TOt,"ConstraintCalculationStrategy",431,bHt,(function(){return gZ(),t7(rk(FZt,1),sCt,431,0,[PZt,BZt])}),(function(t){return gZ(),Q2((LX(),RZt),t)}));Bgt(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},sC),ZEt.dg=function(){return adt(this)},ZEt.qg=function(){return adt(this)};var $Zt,jZt,zZt,qZt,HZt=Z2(TOt,"CrossingMinimizationStrategy",322,bHt,(function(){return A4(),t7(rk(HZt,1),sCt,322,0,[jZt,$Zt,zZt])}),(function(t){return A4(),Q2((pZ(),qZt),t)}));Bgt(351,22,{3:1,34:1,22:1,351:1},cC);var UZt,GZt,KZt,YZt,VZt=Z2(TOt,"CuttingStrategy",351,bHt,(function(){return f4(),t7(rk(VZt,1),sCt,351,0,[UZt,KZt,GZt])}),(function(t){return f4(),Q2((bZ(),YZt),t)}));Bgt(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},lC),ZEt.dg=function(){return Wgt(this)},ZEt.qg=function(){return Wgt(this)};var WZt,XZt,QZt,ZZt,JZt,tJt,eJt=Z2(TOt,"CycleBreakingStrategy",348,bHt,(function(){return Ait(),t7(rk(eJt,1),sCt,348,0,[XZt,WZt,ZZt,JZt,QZt])}),(function(t){return Ait(),Q2((d0(),tJt),t)}));Bgt(428,22,{3:1,34:1,22:1,428:1},uC);var nJt,iJt,rJt,aJt=Z2(TOt,"DirectionCongruency",428,bHt,(function(){return E0(),t7(rk(aJt,1),sCt,428,0,[nJt,iJt])}),(function(t){return E0(),Q2((SX(),rJt),t)}));Bgt(460,22,{3:1,34:1,22:1,460:1},hC);var oJt,sJt,cJt,lJt,uJt=Z2(TOt,"EdgeConstraint",460,bHt,(function(){return I7(),t7(rk(uJt,1),sCt,460,0,[sJt,oJt,cJt])}),(function(t){return I7(),Q2((yZ(),lJt),t)}));Bgt(283,22,{3:1,34:1,22:1,283:1},fC);var hJt,fJt,dJt,gJt,pJt,bJt,mJt,yJt=Z2(TOt,"EdgeLabelSideSelection",283,bHt,(function(){return Zut(),t7(rk(yJt,1),sCt,283,0,[fJt,hJt,gJt,dJt,bJt,pJt])}),(function(t){return Zut(),Q2((y2(),mJt),t)}));Bgt(488,22,{3:1,34:1,22:1,488:1},dC);var wJt,vJt,xJt,kJt=Z2(TOt,"EdgeStraighteningStrategy",488,bHt,(function(){return KJ(),t7(rk(kJt,1),sCt,488,0,[vJt,wJt])}),(function(t){return KJ(),Q2((CX(),xJt),t)}));Bgt(281,22,{3:1,34:1,22:1,281:1},gC);var _Jt,TJt,EJt,SJt,CJt,AJt,MJt,LJt=Z2(TOt,"FixedAlignment",281,bHt,(function(){return Sct(),t7(rk(LJt,1),sCt,281,0,[SJt,EJt,AJt,TJt,CJt,_Jt])}),(function(t){return Sct(),Q2((w2(),MJt),t)}));Bgt(282,22,{3:1,34:1,22:1,282:1},pC);var IJt,OJt,NJt,DJt,PJt,BJt,RJt,FJt=Z2(TOt,"GraphCompactionStrategy",282,bHt,(function(){return zut(),t7(rk(FJt,1),sCt,282,0,[PJt,OJt,BJt,DJt,NJt,IJt])}),(function(t){return zut(),Q2((v2(),RJt),t)}));Bgt(259,22,{3:1,34:1,22:1,259:1},bC);var $Jt,jJt,zJt,qJt,HJt,UJt,GJt,KJt,YJt,VJt,WJt,XJt=Z2(TOt,"GraphProperties",259,bHt,(function(){return Hmt(),t7(rk(XJt,1),sCt,259,0,[jJt,qJt,HJt,UJt,GJt,KJt,VJt,$Jt,zJt,YJt])}),(function(t){return Hmt(),Q2((M7(),WJt),t)}));Bgt(299,22,{3:1,34:1,22:1,299:1},mC);var QJt,ZJt,JJt,t1t,e1t=Z2(TOt,"GreedySwitchType",299,bHt,(function(){return _6(),t7(rk(e1t,1),sCt,299,0,[ZJt,JJt,QJt])}),(function(t){return _6(),Q2((wZ(),t1t),t)}));Bgt(311,22,{3:1,34:1,22:1,311:1},yC);var n1t,i1t,r1t,a1t,o1t=Z2(TOt,"InLayerConstraint",311,bHt,(function(){return q1(),t7(rk(o1t,1),sCt,311,0,[i1t,r1t,n1t])}),(function(t){return q1(),Q2((vZ(),a1t),t)}));Bgt(429,22,{3:1,34:1,22:1,429:1},wC);var s1t,c1t,l1t,u1t,h1t,f1t,d1t,g1t,p1t,b1t,m1t,y1t,w1t,v1t,x1t,k1t,_1t,T1t,E1t,S1t,C1t,A1t,M1t,L1t,I1t,O1t,N1t,D1t,P1t,B1t,R1t,F1t,$1t,j1t,z1t,q1t,H1t,U1t,G1t,K1t,Y1t,V1t,W1t,X1t,Q1t,Z1t,J1t,t0t,e0t,n0t,i0t,r0t,a0t,o0t,s0t,c0t,l0t,u0t,h0t,f0t,d0t,g0t=Z2(TOt,"InteractiveReferencePoint",429,bHt,(function(){return TW(),t7(rk(g0t,1),sCt,429,0,[s1t,c1t])}),(function(t){return TW(),Q2((EX(),l1t),t)}));Bgt(171,22,{3:1,34:1,22:1,171:1},vC);var p0t,b0t,m0t,y0t,w0t,v0t,x0t,k0t,_0t,T0t,E0t,S0t,C0t,A0t,M0t,L0t,I0t,O0t,N0t,D0t,P0t,B0t,R0t,F0t,$0t,j0t,z0t,q0t,H0t,U0t,G0t,K0t,Y0t,V0t,W0t,X0t,Q0t,Z0t,J0t,t2t,e2t,n2t,i2t,r2t,a2t,o2t,s2t,c2t,l2t,u2t,h2t,f2t,d2t,g2t,p2t,b2t,m2t,y2t,w2t,v2t,x2t,k2t,_2t,T2t,E2t,S2t,C2t,A2t,M2t,L2t,I2t,O2t,N2t,D2t,P2t,B2t,R2t,F2t,$2t,j2t,z2t,q2t,H2t,U2t,G2t,K2t,Y2t,V2t,W2t,X2t,Q2t,Z2t,J2t,t4t,e4t,n4t,i4t,r4t,a4t,o4t,s4t,c4t,l4t,u4t,h4t,f4t,d4t,g4t,p4t,b4t,m4t,y4t,w4t,v4t,x4t,k4t,_4t,T4t,E4t,S4t,C4t,A4t,M4t,L4t,I4t,O4t,N4t,D4t,P4t,B4t,R4t,F4t,$4t,j4t,z4t,q4t,H4t,U4t,G4t,K4t,Y4t,V4t,W4t,X4t,Q4t,Z4t,J4t,t3t,e3t,n3t,i3t,r3t,a3t,o3t,s3t,c3t,l3t,u3t,h3t,f3t,d3t,g3t,p3t,b3t,m3t,y3t,w3t,v3t,x3t,k3t,_3t,T3t,E3t,S3t,C3t,A3t,M3t,L3t,I3t,O3t,N3t,D3t,P3t,B3t,R3t,F3t,$3t,j3t,z3t,q3t,H3t,U3t,G3t,K3t,Y3t,V3t,W3t,X3t,Q3t,Z3t,J3t,t5t,e5t,n5t,i5t,r5t,a5t,o5t,s5t,c5t,l5t,u5t,h5t,f5t,d5t,g5t,p5t,b5t,m5t,y5t,w5t,v5t,x5t,k5t,_5t,T5t,E5t,S5t,C5t,A5t,M5t,L5t,I5t,O5t,N5t,D5t,P5t,B5t,R5t,F5t,$5t,j5t,z5t,q5t,H5t,U5t,G5t,K5t,Y5t,V5t,W5t,X5t,Q5t,Z5t,J5t,t6t,e6t,n6t,i6t,r6t,a6t,o6t,s6t,c6t,l6t,u6t,h6t,f6t,d6t,g6t,p6t,b6t,m6t,y6t,w6t,v6t,x6t,k6t,_6t,T6t,E6t,S6t,C6t,A6t,M6t,L6t,I6t,O6t,N6t,D6t,P6t,B6t,R6t=Z2(TOt,"LayerConstraint",171,bHt,(function(){return bnt(),t7(rk(R6t,1),sCt,171,0,[w0t,p0t,b0t,m0t,y0t])}),(function(t){return bnt(),Q2((p0(),v0t),t)}));Bgt(859,1,AMt,of),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,IOt),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),a2t),(Kht(),ioe)),aJt),fet((Art(),Qae))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,OOt),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(FN(),!1)),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,NOt),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),A2t),ioe),g0t),fet(Qae)))),PV(t,NOt,zOt,L2t),PV(t,NOt,QOt,M2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,DOt),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,POt),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),eoe),KHt),fet(Qae)))),jet(t,new $ht(function(t,e){return t.f=e,t}(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,BOt),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),eoe),KHt),fet(Zae)),t7(rk(fUt,1),RSt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ROt),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),d4t),ioe),D7t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,FOt),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ttt(7)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,$Ot),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,jOt),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zOt),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),i2t),ioe),eJt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,qOt),JNt),"Node Layering Strategy"),"Strategy for node layering."),G2t),ioe),V6t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,HOt),JNt),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),P2t),ioe),R6t),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,UOt),JNt),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,GOt),JNt),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ttt(-1)),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,KOt),tDt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),ttt(4)),aoe),nUt),fet(Qae)))),PV(t,KOt,qOt,F2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,YOt),tDt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),ttt(2)),aoe),nUt),fet(Qae)))),PV(t,YOt,qOt,j2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,VOt),eDt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),H2t),ioe),T7t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,WOt),eDt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ttt(0)),aoe),nUt),fet(Qae)))),PV(t,WOt,VOt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,XOt),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ttt(lSt)),aoe),nUt),fet(Qae)))),PV(t,XOt,qOt,O2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,QOt),nDt),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),e2t),ioe),HZt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ZOt),nDt),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,JOt),nDt),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),noe),ZHt),fet(Qae)))),PV(t,JOt,iDt,Y0t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,tNt),nDt),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),eoe),KHt),fet(Qae)))),PV(t,tNt,QOt,J0t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,eNt),nDt),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),soe),fUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,nNt),nDt),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),soe),fUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,iNt),nDt),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,rNt),nDt),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ttt(-1)),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,aNt),rDt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),ttt(40)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,oNt),rDt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),U0t),ioe),e1t),fet(Qae)))),PV(t,oNt,QOt,G0t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,sNt),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),j0t),ioe),e1t),fet(Qae)))),PV(t,sNt,QOt,z0t),PV(t,sNt,iDt,q0t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,cNt),aDt),"Node Placement Strategy"),"Strategy for node placement."),h4t),ioe),f7t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,lNt),aDt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),eoe),KHt),fet(Qae)))),PV(t,lNt,cNt,e4t),PV(t,lNt,cNt,n4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,uNt),oDt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),W2t),ioe),kJt),fet(Qae)))),PV(t,uNt,cNt,X2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,hNt),oDt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Z2t),ioe),LJt),fet(Qae)))),PV(t,hNt,cNt,J2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,fNt),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),noe),ZHt),fet(Qae)))),PV(t,fNt,cNt,r4t),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,dNt),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ioe),a7t),fet(Xae)))),PV(t,dNt,cNt,l4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,gNt),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),s4t),ioe),a7t),fet(Qae)))),PV(t,gNt,cNt,c4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,pNt),sDt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),d2t),ioe),U7t),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,bNt),sDt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),p2t),ioe),W7t),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,mNt),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),m2t),ioe),t8t),fet(Qae)))),PV(t,mNt,cDt,y2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,yNt),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),noe),ZHt),fet(Qae)))),PV(t,yNt,cDt,v2t),PV(t,yNt,mNt,x2t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,wNt),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),noe),ZHt),fet(Qae)))),PV(t,wNt,cDt,h2t),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,vNt),lDt),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,xNt),lDt),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,kNt),lDt),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,_Nt),lDt),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,TNt),uDt),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),ttt(0)),aoe),nUt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ENt),uDt),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ttt(0)),aoe),nUt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,SNt),uDt),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),ttt(0)),aoe),nUt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,CNt),hDt),gLt),"Tries to further compact components (disconnected sub-graphs)."),!1),eoe),KHt),fet(Qae)))),PV(t,CNt,tIt,!0),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ANt),fDt),"Post Compaction Strategy"),dDt),S0t),ioe),FJt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,MNt),fDt),"Post Compaction Constraint Calculation"),dDt),T0t),ioe),FZt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,LNt),gDt),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,INt),gDt),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ttt(16)),aoe),nUt),fet(Qae)))),PV(t,INt,LNt,!0),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ONt),gDt),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ttt(5)),aoe),nUt),fet(Qae)))),PV(t,ONt,LNt,!0),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,NNt),pDt),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),G4t),ioe),k8t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,DNt),pDt),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),noe),ZHt),fet(Qae)))),PV(t,DNt,NNt,T4t),PV(t,DNt,NNt,E4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,PNt),pDt),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),noe),ZHt),fet(Qae)))),PV(t,PNt,NNt,C4t),PV(t,PNt,NNt,A4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,BNt),bDt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),P4t),ioe),VZt),fet(Qae)))),PV(t,BNt,NNt,B4t),PV(t,BNt,NNt,R4t),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,RNt),bDt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),ooe),cHt),fet(Qae)))),PV(t,RNt,BNt,L4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,FNt),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),O4t),aoe),nUt),fet(Qae)))),PV(t,FNt,BNt,N4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,$Nt),mDt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),X4t),ioe),a8t),fet(Qae)))),PV(t,$Nt,NNt,Q4t),PV(t,$Nt,NNt,Z4t),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,jNt),mDt),"Valid Indices for Wrapping"),null),ooe),cHt),fet(Qae)))),PV(t,jNt,NNt,Y4t),PV(t,jNt,NNt,V4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zNt),yDt),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),eoe),KHt),fet(Qae)))),PV(t,zNt,NNt,z4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,qNt),yDt),"Distance Penalty When Improving Cuts"),null),2),noe),ZHt),fet(Qae)))),PV(t,qNt,NNt,$4t),PV(t,qNt,zNt,!0),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,HNt),yDt),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),eoe),KHt),fet(Qae)))),PV(t,HNt,NNt,H4t),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,UNt),wDt),"Edge Label Side Selection"),"Method to decide on edge label sides."),l2t),ioe),yJt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,GNt),wDt),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),s2t),ioe),DZt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,KNt),vDt),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),B0t),ioe),L7t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,YNt),vDt),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,VNt),vDt),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,WNt),vDt),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),A0t),ioe),KWt),fet(Qae)))),PV(t,WNt,tIt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,XNt),vDt),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),O0t),ioe),J6t),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,QNt),vDt),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),noe),ZHt),fet(Qae)))),PV(t,QNt,KNt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ZNt),vDt),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),noe),ZHt),fet(Qae)))),PV(t,ZNt,KNt,null),WEt((new sf,t))},vq(TOt,"LayeredMetaDataProvider",859),Bgt(998,1,AMt,sf),ZEt.hf=function(t){WEt(t)},vq(TOt,"LayeredOptions",998),Bgt(999,1,{},_a),ZEt.sf=function(){return new Cw},ZEt.tf=function(t){},vq(TOt,"LayeredOptions/LayeredFactory",999),Bgt(1391,1,{}),ZEt.a=0,vq(sPt,"ElkSpacings/AbstractSpacingsBuilder",1391),Bgt(792,1391,{},Ent),vq(TOt,"LayeredSpacings/LayeredSpacingsBuilder",792),Bgt(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},xC),ZEt.dg=function(){return kyt(this)},ZEt.qg=function(){return kyt(this)};var F6t,$6t,j6t,z6t,q6t,H6t,U6t,G6t,K6t,Y6t,V6t=Z2(TOt,"LayeringStrategy",265,bHt,(function(){return Dbt(),t7(rk(V6t,1),sCt,265,0,[G6t,q6t,H6t,$6t,z6t,K6t,U6t,F6t,j6t])}),(function(t){return Dbt(),Q2((E6(),Y6t),t)}));Bgt(390,22,{3:1,34:1,22:1,390:1},kC);var W6t,X6t,Q6t,Z6t,J6t=Z2(TOt,"LongEdgeOrderingStrategy",390,bHt,(function(){return K9(),t7(rk(J6t,1),sCt,390,0,[W6t,X6t,Q6t])}),(function(t){return K9(),Q2((xZ(),Z6t),t)}));Bgt(203,22,{3:1,34:1,22:1,203:1},_C);var t7t,e7t,n7t,i7t,r7t,a7t=Z2(TOt,"NodeFlexibility",203,bHt,(function(){return wat(),t7(rk(a7t,1),sCt,203,0,[n7t,i7t,e7t,t7t])}),(function(t){return wat(),Q2((UJ(),r7t),t)}));Bgt(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},TC),ZEt.dg=function(){return Vgt(this)},ZEt.qg=function(){return Vgt(this)};var o7t,s7t,c7t,l7t,u7t,h7t,f7t=Z2(TOt,"NodePlacementStrategy",323,bHt,(function(){return Qrt(),t7(rk(f7t,1),sCt,323,0,[u7t,s7t,c7t,o7t,l7t])}),(function(t){return Qrt(),Q2((g0(),h7t),t)}));Bgt(243,22,{3:1,34:1,22:1,243:1},EC);var d7t,g7t,p7t,b7t,m7t,y7t,w7t,v7t,x7t,k7t,_7t,T7t=Z2(TOt,"NodePromotionStrategy",243,bHt,(function(){return Twt(),t7(rk(T7t,1),sCt,243,0,[x7t,b7t,w7t,m7t,y7t,d7t,v7t,k7t,g7t,p7t])}),(function(t){return Twt(),Q2((L7(),_7t),t)}));Bgt(284,22,{3:1,34:1,22:1,284:1},SC);var E7t,S7t,C7t,A7t,M7t,L7t=Z2(TOt,"OrderingStrategy",284,bHt,(function(){return Mit(),t7(rk(L7t,1),sCt,284,0,[S7t,E7t,C7t,A7t])}),(function(t){return Mit(),Q2((GJ(),M7t),t)}));Bgt(430,22,{3:1,34:1,22:1,430:1},CC);var I7t,O7t,N7t,D7t=Z2(TOt,"PortSortingStrategy",430,bHt,(function(){return H1(),t7(rk(D7t,1),sCt,430,0,[I7t,O7t])}),(function(t){return H1(),Q2((AX(),N7t),t)}));Bgt(463,22,{3:1,34:1,22:1,463:1},AC);var P7t,B7t,R7t,F7t,$7t=Z2(TOt,"PortType",463,bHt,(function(){return d4(),t7(rk($7t,1),sCt,463,0,[R7t,P7t,B7t])}),(function(t){return d4(),Q2((TZ(),F7t),t)}));Bgt(387,22,{3:1,34:1,22:1,387:1},MC);var j7t,z7t,q7t,H7t,U7t=Z2(TOt,"SelfLoopDistributionStrategy",387,bHt,(function(){return P5(),t7(rk(U7t,1),sCt,387,0,[j7t,z7t,q7t])}),(function(t){return P5(),Q2((kZ(),H7t),t)}));Bgt(349,22,{3:1,34:1,22:1,349:1},LC);var G7t,K7t,Y7t,V7t,W7t=Z2(TOt,"SelfLoopOrderingStrategy",349,bHt,(function(){return w8(),t7(rk(W7t,1),sCt,349,0,[Y7t,G7t,K7t])}),(function(t){return w8(),Q2((_Z(),V7t),t)}));Bgt(312,1,{312:1},x_t),vq(TOt,"Spacings",312),Bgt(350,22,{3:1,34:1,22:1,350:1},IC);var X7t,Q7t,Z7t,J7t,t8t=Z2(TOt,"SplineRoutingMode",350,bHt,(function(){return t9(),t7(rk(t8t,1),sCt,350,0,[X7t,Q7t,Z7t])}),(function(t){return t9(),Q2((EZ(),J7t),t)}));Bgt(352,22,{3:1,34:1,22:1,352:1},OC);var e8t,n8t,i8t,r8t,a8t=Z2(TOt,"ValidifyStrategy",352,bHt,(function(){return h4(),t7(rk(a8t,1),sCt,352,0,[i8t,e8t,n8t])}),(function(t){return h4(),Q2((SZ(),r8t),t)}));Bgt(388,22,{3:1,34:1,22:1,388:1},NC);var o8t,s8t,c8t,l8t,u8t,h8t,f8t,d8t,g8t,p8t,b8t,m8t,y8t,w8t,v8t,x8t,k8t=Z2(TOt,"WrappingStrategy",388,bHt,(function(){return r7(),t7(rk(k8t,1),sCt,388,0,[s8t,c8t,o8t])}),(function(t){return r7(),Q2((CZ(),l8t),t)}));Bgt(1398,1,hPt,Qh),ZEt.rg=function(t){return KR(t,36),u8t},ZEt.Kf=function(t,e){!function(t,e,n){var i,r,a,o,s,c,l,u;for(n.Ug("Depth-first cycle removal",1),c=(l=e.a).c.length,t.c=new yy,t.d=WZ(jpe,IMt,28,c,16,1),t.a=WZ(jpe,IMt,28,c,16,1),t.b=new yy,a=0,s=new pg(l);s.a0?S+1:1);for(o=new pg(x.g);o.a0?S+1:1)}0==t.c[l]?RF(t.e,p):0==t.a[l]&&RF(t.f,p),++l}for(g=-1,d=1,h=new yy,t.d=KR(fut(e,(jEt(),e0t)),234);I>0;){for(;0!=t.e.b;)A=KR(zR(t.e),10),t.b[A.p]=g--,Uwt(t,A),--I;for(;0!=t.f.b;)M=KR(zR(t.f),10),t.b[M.p]=d++,Uwt(t,M),--I;if(I>0){for(f=gCt,y=new pg(w);y.a=f&&(v>f&&(h.c.length=0,f=v),Dy(h.c,p));u=t.sg(h),t.b[u.p]=d++,Uwt(t,u),--I}}for(C=w.c.length+1,l=0;lt.b[L]&&(xxt(i,!0),E7(e,y1t,(FN(),!0)));t.a=null,t.c=null,t.b=null,FU(t.f),FU(t.e),n.Vg()}(this,KR(t,36),e)},ZEt.sg=function(t){return KR(c$(t,Tat(this.d,t.c.length)),10)},vq(fPt,"GreedyCycleBreaker",793),Bgt(1401,793,hPt,iL),ZEt.sg=function(t){var e,n,i,r;for(r=null,e=lSt,i=new pg(t);i.a0&&Fht(t,s,u);for(r=new pg(u);r.a0){for(v=Mrt(t.f,0);v.b!=v.d.c;)KR(gW(v),10).p+=g-t.e;tft(t),FU(t.f),lyt(t,r,p)}else{for(RF(t.f,p),p.p=r,t.e=i.Math.max(t.e,r),o=new Dj(lN(Det(p).a.Kc(),new u));Rgt(o);)!(a=KR(bQ(o),18)).c.i.c&&a.c.i.k==(Vut(),tXt)&&(RF(t.f,a.c.i),a.c.i.p=r-1);t.c=r}else tft(t),FU(t.f),r=0,Rgt(new Dj(lN(Det(p).a.Kc(),new u)))?lyt(t,r=(g=oat(g=0,p))+2,p):(RF(t.f,p),p.p=0,t.e=i.Math.max(t.e,0),t.b=KR(c$(t.d.b,0),30),t.c=0);for(0==t.f.b||tft(t),t.d.a.c.length=0,w=new yy,h=new pg(t.d.b);h.a=c){KD(w.b>0),w.a.Xb(w.c=--w.b);break}m.a>l&&(r?(G6(r.b,m.b),r.a=i.Math.max(r.a,m.a),nH(w)):(SO(m.b,h),m.c=i.Math.min(m.c,l),m.a=i.Math.max(m.a,c),r=m))}r||((r=new Iw).c=l,r.a=c,BP(w,r),SO(r.b,h))}for(s=t.b,u=0,y=new pg(n);y.ae.p?-1:0}(KR(t,10),KR(e,10))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(dPt,"StretchWidthLayerer/1",1409),Bgt(413,1,gPt),ZEt.gg=function(t,e,n,i,r,a){},ZEt.ug=function(t,e,n){return Qwt(this,t,e,n)},ZEt.fg=function(){this.g=WZ(Upe,pPt,28,this.d,15,1),this.f=WZ(Upe,pPt,28,this.d,15,1)},ZEt.hg=function(t,e){this.e[t]=WZ($pe,$Ct,28,e[t].length,15,1)},ZEt.ig=function(t,e,n){n[t][e].p=e,this.e[t][e]=e},ZEt.jg=function(t,e,n,i){KR(c$(i[t][e].j,n),12).p=this.d++},ZEt.b=0,ZEt.c=0,ZEt.d=0,vq(bPt,"AbstractBarycenterPortDistributor",413),Bgt(1698,1,iMt,ub),ZEt.Ne=function(t,e){return function(t,e,n){var i,r,a,o;return(a=e.j)!=(o=n.j)?a.g-o.g:(i=t.f[e.p],r=t.f[n.p],0==i&&0==r?0:0==i?-1:0==r?1:cet(i,r))}(this.a,KR(t,12),KR(e,12))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(bPt,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),Bgt(832,1,yOt,sW),ZEt.gg=function(t,e,n,i,r,a){},ZEt.ig=function(t,e,n){},ZEt.jg=function(t,e,n,i){},ZEt.eg=function(){return!1},ZEt.fg=function(){this.c=this.e.a,this.g=this.f.g},ZEt.hg=function(t,e){e[t][0].c.p=t},ZEt.kg=function(){return!1},ZEt.vg=function(t,e,n,i){n?cct(this,t):(xct(this,t,i),G_t(this,t,e)),t.c.length>1&&(dx(zD(fut(uH((LY(0,t.c.length),KR(t.c[0],10))),(CEt(),g3t))))?Lpt(t,this.d,KR(this,669)):(QU(),PI(t,this.d)),s6(this.e,t))},ZEt.lg=function(t,e,n,i){var r,a,o,s,c,l,u;for(e!=E$(n,t.length)&&(a=t[e-(n?1:-1)],XQ(this.f,a,n?(d4(),B7t):(d4(),P7t))),r=t[e][0],u=!i||r.k==(Vut(),JWt),l=OQ(t[e]),this.vg(l,u,!1,n),o=0,c=new pg(l);c.a"),t0?SK(this.a,t[e-1],t[e]):!n&&e0&&(n+=c.n.a+c.o.a/2,++h),d=new pg(c.j);d.a0&&(n/=h),b=WZ(Hpe,wAt,28,i.a.c.length,15,1),s=0,l=new pg(i.a);l.a1&&(dx(zD(fut(uH((LY(0,t.c.length),KR(t.c[0],10))),(CEt(),g3t))))?Lpt(t,this.d,this):(QU(),PI(t,this.d)),dx(zD(fut(uH((LY(0,t.c.length),KR(t.c[0],10))),g3t)))||s6(this.e,t))},vq(bPt,"ModelOrderBarycenterHeuristic",669),Bgt(1866,1,iMt,wb),ZEt.Ne=function(t,e){return ght(this.a,KR(t,10),KR(e,10))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(bPt,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),Bgt(1423,1,hPt,lf),ZEt.rg=function(t){var e;return KR(t,36),QF(e=XL(O8t),(dut(),fWt),(qEt(),pQt)),e},ZEt.Kf=function(t,e){var n;KR(t,36),(n=e).Ug("No crossing minimization",1),n.Vg()},vq(bPt,"NoCrossingMinimizer",1423),Bgt(809,413,gPt,Fk),ZEt.tg=function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d;switch(h=this.g,n.g){case 1:for(r=0,a=0,u=new pg(t.j);u.a1&&(r.j==(MTt(),sue)?this.b[t]=!0:r.j==Cue&&t>0&&(this.b[t-1]=!0))},ZEt.f=0,vq(mOt,"AllCrossingsCounter",1861),Bgt(595,1,{},A3),ZEt.b=0,ZEt.d=0,vq(mOt,"BinaryIndexedTree",595),Bgt(532,1,{},OB),vq(mOt,"CrossingsCounter",532),Bgt(1950,1,iMt,vb),ZEt.Ne=function(t,e){return function(t,e,n){return $I(t.d[e.p],t.d[n.p])}(this.a,KR(t,12),KR(e,12))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(mOt,"CrossingsCounter/lambda$0$Type",1950),Bgt(1951,1,iMt,xb),ZEt.Ne=function(t,e){return function(t,e,n){return $I(t.d[e.p],t.d[n.p])}(this.a,KR(t,12),KR(e,12))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(mOt,"CrossingsCounter/lambda$1$Type",1951),Bgt(1952,1,iMt,kb),ZEt.Ne=function(t,e){return function(t,e,n){return $I(t.d[e.p],t.d[n.p])}(this.a,KR(t,12),KR(e,12))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(mOt,"CrossingsCounter/lambda$2$Type",1952),Bgt(1953,1,iMt,_b),ZEt.Ne=function(t,e){return function(t,e,n){return $I(t.d[e.p],t.d[n.p])}(this.a,KR(t,12),KR(e,12))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(mOt,"CrossingsCounter/lambda$3$Type",1953),Bgt(1954,1,jSt,Tb),ZEt.Cd=function(t){!function(t,e){bR(),SO(t,new rM(e,ttt(e.e.c.length+e.g.c.length)))}(this.a,KR(t,12))},vq(mOt,"CrossingsCounter/lambda$4$Type",1954),Bgt(1955,1,hCt,Eb),ZEt.Mb=function(t){return function(t,e){return bR(),e!=t}(this.a,KR(t,12))},vq(mOt,"CrossingsCounter/lambda$5$Type",1955),Bgt(1956,1,jSt,Sb),ZEt.Cd=function(t){SM(this,t)},vq(mOt,"CrossingsCounter/lambda$6$Type",1956),Bgt(1957,1,jSt,PC),ZEt.Cd=function(t){var e;bR(),bW(this.b,(e=this.a,KR(t,12),e))},vq(mOt,"CrossingsCounter/lambda$7$Type",1957),Bgt(839,1,xMt,Na),ZEt.Lb=function(t){return bR(),cD(KR(t,12),(jEt(),Z1t))},ZEt.Fb=function(t){return this===t},ZEt.Mb=function(t){return bR(),cD(KR(t,12),(jEt(),Z1t))},vq(mOt,"CrossingsCounter/lambda$8$Type",839),Bgt(1949,1,{},Cb),vq(mOt,"HyperedgeCrossingsCounter",1949),Bgt(478,1,{34:1,478:1},tB),ZEt.Fd=function(t){return function(t,e){return t.ee.e?1:t.fe.f?1:N3(t)-N3(e)}(this,KR(t,478))},ZEt.b=0,ZEt.c=0,ZEt.e=0,ZEt.f=0;var B8t=vq(mOt,"HyperedgeCrossingsCounter/Hyperedge",478);Bgt(374,1,{34:1,374:1},fU),ZEt.Fd=function(t){return function(t,e){return t.ce.c?1:t.be.b?1:t.a!=e.a?N3(t.a)-N3(e.a):t.d==(EW(),$8t)&&e.d==F8t?-1:t.d==F8t&&e.d==$8t?1:0}(this,KR(t,374))},ZEt.b=0,ZEt.c=0;var R8t=vq(mOt,"HyperedgeCrossingsCounter/HyperedgeCorner",374);Bgt(531,22,{3:1,34:1,22:1,531:1},BC);var F8t,$8t,j8t,z8t,q8t,H8t,U8t,G8t=Z2(mOt,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,bHt,(function(){return EW(),t7(rk(G8t,1),sCt,531,0,[$8t,F8t])}),(function(t){return EW(),Q2((MX(),j8t),t)}));Bgt(1425,1,hPt,uf),ZEt.rg=function(t){return KR(fut(KR(t,36),(jEt(),A1t)),21).Hc((Hmt(),qJt))?z8t:null},ZEt.Kf=function(t,e){!function(t,e,n){var i;for(n.Ug("Interactive node placement",1),t.a=KR(fut(e,(jEt(),o0t)),312),i=new pg(e.b);i.a1},vq(mPt,"NetworkSimplexPlacer/lambda$18$Type",1451),Bgt(1452,1,jSt,gU),ZEt.Cd=function(t){!function(t,e,n,i,r){XK(),Kbt(rE(iE(nE(aE(new mw,0),r.d.e-t),e),r.d)),Kbt(rE(iE(nE(aE(new mw,0),n-r.a.e),r.a),i))}(this.c,this.b,this.d,this.a,KR(t,412))},ZEt.c=0,ZEt.d=0,vq(mPt,"NetworkSimplexPlacer/lambda$19$Type",1452),Bgt(1435,1,{},Ga),ZEt.Kb=function(t){return XK(),new k$(null,new OY(KR(t,30).a,16))},vq(mPt,"NetworkSimplexPlacer/lambda$2$Type",1435),Bgt(1453,1,jSt,Ib),ZEt.Cd=function(t){!function(t,e){XK(),e.n.b+=t}(this.a,KR(t,12))},ZEt.a=0,vq(mPt,"NetworkSimplexPlacer/lambda$20$Type",1453),Bgt(1454,1,{},Ka),ZEt.Kb=function(t){return XK(),new k$(null,new OY(KR(t,30).a,16))},vq(mPt,"NetworkSimplexPlacer/lambda$21$Type",1454),Bgt(1455,1,jSt,Ob),ZEt.Cd=function(t){xO(this.a,KR(t,10))},vq(mPt,"NetworkSimplexPlacer/lambda$22$Type",1455),Bgt(1456,1,hCt,Ya),ZEt.Mb=function(t){return dP(t)},vq(mPt,"NetworkSimplexPlacer/lambda$23$Type",1456),Bgt(1457,1,{},Va),ZEt.Kb=function(t){return XK(),new k$(null,new OY(KR(t,30).a,16))},vq(mPt,"NetworkSimplexPlacer/lambda$24$Type",1457),Bgt(1458,1,hCt,Nb),ZEt.Mb=function(t){return function(t,e){return 2==t.j[e.p]}(this.a,KR(t,10))},vq(mPt,"NetworkSimplexPlacer/lambda$25$Type",1458),Bgt(1459,1,jSt,$C),ZEt.Cd=function(t){!function(t,e,n){var i,r,a;for(r=new Dj(lN(Net(n).a.Kc(),new u));Rgt(r);)!iQ(i=KR(bQ(r),18))&&(iQ(i)||i.c.i.c!=i.d.i.c)&&(a=Wpt(t,i,n,new Rw)).c.length>1&&Dy(e.c,a)}(this.a,this.b,KR(t,10))},vq(mPt,"NetworkSimplexPlacer/lambda$26$Type",1459),Bgt(1460,1,hCt,Wa),ZEt.Mb=function(t){return XK(),!iQ(KR(t,18))},vq(mPt,"NetworkSimplexPlacer/lambda$27$Type",1460),Bgt(1461,1,hCt,Xa),ZEt.Mb=function(t){return XK(),!iQ(KR(t,18))},vq(mPt,"NetworkSimplexPlacer/lambda$28$Type",1461),Bgt(1462,1,{},Db),ZEt.Ve=function(t,e){return UI(this.a,KR(t,30),KR(e,30))},vq(mPt,"NetworkSimplexPlacer/lambda$29$Type",1462),Bgt(1436,1,{},Qa),ZEt.Kb=function(t){return XK(),new k$(null,new oq(new Dj(lN(Pet(KR(t,10)).a.Kc(),new u))))},vq(mPt,"NetworkSimplexPlacer/lambda$3$Type",1436),Bgt(1437,1,hCt,Za),ZEt.Mb=function(t){return XK(),e=KR(t,18),XK(),!(iQ(e)||!iQ(e)&&e.c.i.c==e.d.i.c);var e},vq(mPt,"NetworkSimplexPlacer/lambda$4$Type",1437),Bgt(1438,1,jSt,Pb),ZEt.Cd=function(t){!function(t,e){var n,r,a,o,s,c,l,u,h,f,d;n=CN(new yw,t.f),c=t.i[e.c.i.p],f=t.i[e.d.i.p],s=e.c,h=e.d,o=s.a.b,u=h.a.b,c.b||(o+=s.n.b),f.b||(u+=h.n.b),l=oK(i.Math.max(0,o-u)),a=oK(i.Math.max(0,u-o)),d=i.Math.max(1,KR(fut(e,(CEt(),V5t)),17).a)*VW(e.c.i.k,e.d.i.k),r=new RC(Kbt(rE(iE(nE(aE(new mw,d),a),n),KR(Oq(t.k,e.c),125))),Kbt(rE(iE(nE(aE(new mw,d),l),n),KR(Oq(t.k,e.d),125)))),t.c[e.p]=r}(this.a,KR(t,18))},vq(mPt,"NetworkSimplexPlacer/lambda$5$Type",1438),Bgt(1439,1,{},Ja),ZEt.Kb=function(t){return XK(),new k$(null,new OY(KR(t,30).a,16))},vq(mPt,"NetworkSimplexPlacer/lambda$6$Type",1439),Bgt(1440,1,hCt,to),ZEt.Mb=function(t){return XK(),KR(t,10).k==(Vut(),nXt)},vq(mPt,"NetworkSimplexPlacer/lambda$7$Type",1440),Bgt(1441,1,{},eo),ZEt.Kb=function(t){return XK(),new k$(null,new oq(new Dj(lN(Net(KR(t,10)).a.Kc(),new u))))},vq(mPt,"NetworkSimplexPlacer/lambda$8$Type",1441),Bgt(1442,1,hCt,no),ZEt.Mb=function(t){return XK(),!iQ(e=KR(t,18))&&e.c.i.c==e.d.i.c;var e},vq(mPt,"NetworkSimplexPlacer/lambda$9$Type",1442),Bgt(1424,1,hPt,ff),ZEt.rg=function(t){return KR(fut(KR(t,36),(jEt(),A1t)),21).Hc((Hmt(),qJt))?W8t:null},ZEt.Kf=function(t,e){!function(t,e){var n,r,a,o,s,c,l,u,h,f;for(e.Ug("Simple node placement",1),f=KR(fut(t,(jEt(),o0t)),312),c=0,o=new pg(t.b);o.a0?(d=(g-1)*n,s&&(d+=i),u&&(d+=i),d0&&(x-=p),e_t(s,x),f=0,g=new pg(s.a);g.a0),c.a.Xb(c.c=--c.b)),l=.4*r*f,!o&&c.b"+this.b+" ("+((null!=(t=this.c).f?t.f:""+t.g)+")");var t},ZEt.d=0,vq(kPt,"HyperEdgeSegmentDependency",132),Bgt(528,22,{3:1,34:1,22:1,528:1},tA);var x9t,k9t,_9t,T9t,E9t,S9t,C9t,A9t,M9t=Z2(kPt,"HyperEdgeSegmentDependency/DependencyType",528,bHt,(function(){return fZ(),t7(rk(M9t,1),sCt,528,0,[k9t,x9t])}),(function(t){return fZ(),Q2((PX(),_9t),t)}));Bgt(1878,1,{},Rb),vq(kPt,"HyperEdgeSegmentSplitter",1878),Bgt(1879,1,{},Uk),ZEt.a=0,ZEt.b=0,vq(kPt,"HyperEdgeSegmentSplitter/AreaRating",1879),Bgt(339,1,{339:1},wR),ZEt.a=0,ZEt.b=0,ZEt.c=0,vq(kPt,"HyperEdgeSegmentSplitter/FreeArea",339),Bgt(1880,1,iMt,go),ZEt.Ne=function(t,e){return function(t,e){return cet(t.c-t.s,e.c-e.s)}(KR(t,118),KR(e,118))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(kPt,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),Bgt(1881,1,jSt,bU),ZEt.Cd=function(t){FW(this.a,this.d,this.c,this.b,KR(t,118))},ZEt.b=0,vq(kPt,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),Bgt(1882,1,{},po),ZEt.Kb=function(t){return new k$(null,new OY(KR(t,118).e,16))},vq(kPt,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),Bgt(1883,1,{},bo),ZEt.Kb=function(t){return new k$(null,new OY(KR(t,118).j,16))},vq(kPt,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),Bgt(1884,1,{},mo),ZEt.Ye=function(t){return gx(qD(t))},vq(kPt,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),Bgt(664,1,{},sq),ZEt.a=0,ZEt.b=0,ZEt.c=0,vq(kPt,"OrthogonalRoutingGenerator",664),Bgt(1703,1,{},yo),ZEt.Kb=function(t){return new k$(null,new OY(KR(t,118).e,16))},vq(kPt,"OrthogonalRoutingGenerator/lambda$0$Type",1703),Bgt(1704,1,{},wo),ZEt.Kb=function(t){return new k$(null,new OY(KR(t,118).j,16))},vq(kPt,"OrthogonalRoutingGenerator/lambda$1$Type",1704),Bgt(670,1,{}),vq(_Pt,"BaseRoutingDirectionStrategy",670),Bgt(1870,670,{},Kw),ZEt.yg=function(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b;if(!t.r||t.q)for(h=e+t.o*n,u=new pg(t.n);u.aGLt&&(a=t,r=new IA(f,o=h),RF(s.a,r),yvt(this,s,a,r,!1),(d=t.r)&&(r=new IA(g=gx(qD(Yrt(d.e,0))),o),RF(s.a,r),yvt(this,s,a,r,!1),a=d,r=new IA(g,o=e+d.o*n),RF(s.a,r),yvt(this,s,a,r,!1)),r=new IA(b,o),RF(s.a,r),yvt(this,s,a,r,!1)))},ZEt.zg=function(t){return t.i.n.a+t.n.a+t.a.a},ZEt.Ag=function(){return MTt(),Eue},ZEt.Bg=function(){return MTt(),cue},vq(_Pt,"NorthToSouthRoutingStrategy",1870),Bgt(1871,670,{},Yw),ZEt.yg=function(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b;if(!t.r||t.q)for(h=e-t.o*n,u=new pg(t.n);u.aGLt&&(a=t,r=new IA(f,o=h),RF(s.a,r),yvt(this,s,a,r,!1),(d=t.r)&&(r=new IA(g=gx(qD(Yrt(d.e,0))),o),RF(s.a,r),yvt(this,s,a,r,!1),a=d,r=new IA(g,o=e-d.o*n),RF(s.a,r),yvt(this,s,a,r,!1)),r=new IA(b,o),RF(s.a,r),yvt(this,s,a,r,!1)))},ZEt.zg=function(t){return t.i.n.a+t.n.a+t.a.a},ZEt.Ag=function(){return MTt(),cue},ZEt.Bg=function(){return MTt(),Eue},vq(_Pt,"SouthToNorthRoutingStrategy",1871),Bgt(1869,670,{},Vw),ZEt.yg=function(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b;if(!t.r||t.q)for(h=e+t.o*n,u=new pg(t.n);u.aGLt&&(a=t,r=new IA(o=h,f),RF(s.a,r),yvt(this,s,a,r,!0),(d=t.r)&&(r=new IA(o,g=gx(qD(Yrt(d.e,0)))),RF(s.a,r),yvt(this,s,a,r,!0),a=d,r=new IA(o=e+d.o*n,g),RF(s.a,r),yvt(this,s,a,r,!0)),r=new IA(o,b),RF(s.a,r),yvt(this,s,a,r,!0)))},ZEt.zg=function(t){return t.i.n.b+t.n.b+t.a.b},ZEt.Ag=function(){return MTt(),sue},ZEt.Bg=function(){return MTt(),Cue},vq(_Pt,"WestToEastRoutingStrategy",1869),Bgt(828,1,{},Sxt),ZEt.Ib=function(){return Tut(this.a)},ZEt.b=0,ZEt.c=!1,ZEt.d=!1,ZEt.f=0,vq(EPt,"NubSpline",828),Bgt(418,1,{418:1},bmt,YG),vq(EPt,"NubSpline/PolarCP",418),Bgt(1480,1,hPt,Kot),ZEt.rg=function(t){return function(t){var e,n;return V5(e=new EH,T9t),(n=KR(fut(t,(jEt(),A1t)),21)).Hc((Hmt(),VJt))&&V5(e,A9t),n.Hc($Jt)&&V5(e,E9t),n.Hc(KJt)&&V5(e,C9t),n.Hc(zJt)&&V5(e,S9t),e}(KR(t,36))},ZEt.Kf=function(t,e){!function(t,e,n){var r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S,C,A;if(n.Ug("Spline edge routing",1),0==e.b.c.length)return e.f.a=0,void n.Vg();y=gx(qD(fut(e,(CEt(),f6t)))),c=gx(qD(fut(e,a6t))),s=gx(qD(fut(e,n6t))),T=KR(fut(e,$3t),350)==(t9(),Z7t),_=gx(qD(fut(e,j3t))),t.d=e,t.j.c.length=0,t.a.c.length=0,_z(t.k),h=KM((l=KR(c$(e.b,0),30)).a,(smt(),y9t)),f=KM((p=KR(c$(e.b,e.b.c.length-1),30)).a,y9t),b=new pg(e.b),m=null,A=0;do{for(OTt(t,m,w=b.a0?(u=0,m&&(u+=c),u+=(E-1)*s,w&&(u+=c),T&&w&&(u=i.Math.max(u,Xbt(w,s,y,_))),u("+this.c+") "+this.b},ZEt.c=0,vq(EPt,"SplineEdgeRouter/Dependency",274),Bgt(465,22,{3:1,34:1,22:1,465:1},eA);var L9t,I9t,O9t,N9t=Z2(EPt,"SplineEdgeRouter/SideToProcess",465,bHt,(function(){return pK(),t7(rk(N9t,1),sCt,465,0,[L9t,I9t])}),(function(t){return pK(),Q2((BX(),O9t),t)}));Bgt(1481,1,hCt,vo),ZEt.Mb=function(t){return cmt(),!KR(t,131).o},vq(EPt,"SplineEdgeRouter/lambda$0$Type",1481),Bgt(1482,1,{},xo),ZEt.Ze=function(t){return cmt(),KR(t,131).v+1},vq(EPt,"SplineEdgeRouter/lambda$1$Type",1482),Bgt(1483,1,jSt,XC),ZEt.Cd=function(t){!function(t,e,n){LH(t.b,KR(n.b,18),e)}(this.a,this.b,KR(t,42))},vq(EPt,"SplineEdgeRouter/lambda$2$Type",1483),Bgt(1484,1,jSt,QC),ZEt.Cd=function(t){!function(t,e,n){LH(t.b,KR(n.b,18),e)}(this.a,this.b,KR(t,42))},vq(EPt,"SplineEdgeRouter/lambda$3$Type",1484),Bgt(131,1,{34:1,131:1},xft,Wkt),ZEt.Fd=function(t){return function(t,e){return t.s-e.s}(this,KR(t,131))},ZEt.b=0,ZEt.e=!1,ZEt.f=0,ZEt.g=0,ZEt.j=!1,ZEt.k=!1,ZEt.n=0,ZEt.o=!1,ZEt.p=!1,ZEt.q=!1,ZEt.s=0,ZEt.u=0,ZEt.v=0,ZEt.F=0,vq(EPt,"SplineSegment",131),Bgt(468,1,{468:1},ko),ZEt.a=0,ZEt.b=!1,ZEt.c=!1,ZEt.d=!1,ZEt.e=!1,ZEt.f=0,vq(EPt,"SplineSegment/EdgeInformation",468),Bgt(1198,1,{},_o),vq(LPt,PLt,1198),Bgt(1199,1,iMt,To),ZEt.Ne=function(t,e){return function(t,e){var n,i,r;return 0==(n=KR(fut(e,(axt(),see)),17).a-KR(fut(t,see),17).a)?(i=oB(tO(KR(fut(t,(ETt(),ate)),8)),KR(fut(t,ote),8)),r=oB(tO(KR(fut(e,ate),8)),KR(fut(e,ote),8)),cet(i.a*i.b,r.a*r.b)):n}(KR(t,121),KR(e,121))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(LPt,BLt,1199),Bgt(1197,1,{},v_),vq(LPt,"MrTree",1197),Bgt(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},nA),ZEt.dg=function(){return xdt(this)},ZEt.qg=function(){return xdt(this)};var D9t,P9t,B9t,R9t,F9t,$9t=Z2(LPt,"TreeLayoutPhases",405,bHt,(function(){return pst(),t7(rk($9t,1),sCt,405,0,[D9t,P9t,B9t,R9t])}),(function(t){return pst(),Q2((e1(),F9t),t)}));Bgt(1112,205,fLt,ZP),ZEt.rf=function(t,e){var n,r,a,o,s,c,l;for(dx(zD(spt(t,(axt(),nee))))||aK(new Kg((BE(),new ix(t)))),(o=e.eh(IPt)).Ug("build tGraph",1),p6(c=new aZ,t),E7(c,(ETt(),_te),t),function(t,e,n){var r,a,o,s,c;for(o=0,a=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));a.e!=a.i.gc();)s="",0==(!(r=KR(Frt(a),27)).n&&(r.n=new ez(Qhe,r,1,7)),r.n).i||(s=KR(l2((!r.n&&(r.n=new ez(Qhe,r,1,7)),r.n),0),135).a),p6(c=new u8(o++,e,s),r),E7(c,(ETt(),_te),r),c.e.b=r.j+r.f/2,c.f.a=i.Math.max(r.g,1),c.e.a=r.i+r.g/2,c.f.b=i.Math.max(r.f,1),RF(e.b,c),_ft(n.f,r,c)}(t,c,l=new my),function(t,e,n){var i,r,a,o,s,c,l;for(o=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));o.e!=o.i.gc();)for(r=new Dj(lN(Ypt(a=KR(Frt(o),27)).a.Kc(),new u));Rgt(r);)!_gt(i=KR(bQ(r),74))&&!_gt(i)&&!Idt(i)&&(c=KR(FM(U$(n.f,a)),40),l=KR(Oq(n,Blt(KR(l2((!i.c&&(i.c=new bB(Uhe,i,5,8)),i.c),0),84))),40),c&&l&&(E7(s=new WU(c,l),(ETt(),_te),i),p6(s,i),RF(c.d,s),RF(l.b,s),RF(e.a,s)))}(t,c,l),s=c,o.Vg(),(o=e.eh(IPt)).Ug("Split graph",1),a=avt(this.a,s),o.Vg(),r=new pg(a);r.af&&(C=0,A+=h+_,h=0),Gwt(x,s,C,A),e=i.Math.max(e,C+k.a),h=i.Math.max(h,k.b),C+=k.a+_;for(v=new my,n=new my,E=new pg(t);E.a"+WY(e.c):"e_"+N3(e),t.b&&t.c?WY(t.b)+"->"+WY(t.c):"e_"+N3(t))}(this.a,KR(t,65))},vq(LPt,"TreeUtil/lambda$3$Type",1886),Bgt(1887,1,iMt,Eo),ZEt.Ne=function(t,e){return function(t,e){return cet(t.b.e.a,e.b.e.a)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(LPt,"TreeUtil/lambda$4$Type",1887),Bgt(1888,1,hCt,zb),ZEt.Mb=function(t){return function(t,e){return _B(e.b&&e.c?WY(e.b)+"->"+WY(e.c):"e_"+N3(e),t.b&&t.c?WY(t.b)+"->"+WY(t.c):"e_"+N3(t))}(this.a,KR(t,65))},vq(LPt,"TreeUtil/lambda$7$Type",1888),Bgt(1889,1,iMt,Mo),ZEt.Ne=function(t,e){return function(t,e){return cet(t.c.e.a,e.c.e.a)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(LPt,"TreeUtil/lambda$8$Type",1889),Bgt(1890,1,{},Lo),ZEt.Kb=function(t){return KR(t,65).b},vq(LPt,"TreeUtil/lambda$9$Type",1890),Bgt(508,137,{3:1,508:1,96:1,137:1}),ZEt.g=0,vq(NPt,"TGraphElement",508),Bgt(65,508,{3:1,65:1,508:1,96:1,137:1},WU),ZEt.Ib=function(){return this.b&&this.c?WY(this.b)+"->"+WY(this.c):"e_"+N3(this)},vq(NPt,"TEdge",65),Bgt(121,137,{3:1,121:1,96:1,137:1},aZ),ZEt.Ib=function(){var t,e,n,i,r;for(r=null,i=Mrt(this.b,0);i.b!=i.d.c;)r+=(null==(n=KR(gW(i),40)).c||0==n.c.length?"n_"+n.g:"n_"+n.c)+"\n";for(e=Mrt(this.a,0);e.b!=e.d.c;)r+=((t=KR(gW(e),65)).b&&t.c?WY(t.b)+"->"+WY(t.c):"e_"+N3(t))+"\n";return r};var j9t=vq(NPt,"TGraph",121);Bgt(643,508,{3:1,508:1,643:1,96:1,137:1}),vq(NPt,"TShape",643),Bgt(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},u8),ZEt.Ib=function(){return WY(this)};var z9t=vq(NPt,"TNode",40);Bgt(236,1,GSt,qb),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return new Hb(Mrt(this.a.d,0))},vq(NPt,"TNode/2",236),Bgt(329,1,TSt,Hb),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return KR(gW(this.a),65).c},ZEt.Ob=function(){return C_(this.a)},ZEt.Qb=function(){H0(this.a)},vq(NPt,"TNode/2/1",329),Bgt(1923,1,jIt,Io),ZEt.Kf=function(t,e){MEt(this,KR(t,121),e)},vq(PPt,"CompactionProcessor",1923),Bgt(1924,1,iMt,Ub),ZEt.Ne=function(t,e){return function(t,e,n){return cet(_O(Srt(t),new IA(e.e.a,e.e.b)),_O(Srt(t),new IA(n.e.a,n.e.b)))}(this.a,KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$0$Type",1924),Bgt(1925,1,hCt,JC),ZEt.Mb=function(t){return function(t,e,n){return gx(qD(n.a))<=t&&gx(qD(n.b))>=e}(this.b,this.a,KR(t,42))},ZEt.a=0,ZEt.b=0,vq(PPt,"CompactionProcessor/lambda$1$Type",1925),Bgt(1934,1,iMt,Oo),ZEt.Ne=function(t,e){return function(t,e){return cet(t.e.a+t.f.a,e.e.a+e.f.a)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$10$Type",1934),Bgt(1935,1,iMt,No),ZEt.Ne=function(t,e){return function(t,e){return cet(t.e.b,e.e.b)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$11$Type",1935),Bgt(1936,1,iMt,Do),ZEt.Ne=function(t,e){return function(t,e){return cet(t.e.b+t.f.b,e.e.b+e.f.b)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$12$Type",1936),Bgt(1926,1,hCt,Gb),ZEt.Mb=function(t){return function(t,e){return gx(qD(e.a))<=t}(this.a,KR(t,42))},ZEt.a=0,vq(PPt,"CompactionProcessor/lambda$2$Type",1926),Bgt(1927,1,hCt,Kb),ZEt.Mb=function(t){return function(t,e){return gx(qD(e.a))>=t}(this.a,KR(t,42))},ZEt.a=0,vq(PPt,"CompactionProcessor/lambda$3$Type",1927),Bgt(1928,1,hCt,Po),ZEt.Mb=function(t){return-1==KR(t,40).c.indexOf(OPt)},vq(PPt,"CompactionProcessor/lambda$4$Type",1928),Bgt(1929,1,{},Yb),ZEt.Kb=function(t){return function(t,e){return new xR(e,vD(tO(e.e),t,t),(FN(),!0))}(this.a,KR(t,40))},ZEt.a=0,vq(PPt,"CompactionProcessor/lambda$5$Type",1929),Bgt(1930,1,{},Vb),ZEt.Kb=function(t){return function(t,e){return new xR(e,bD(tO(e.e),e.f.a+t,e.f.b+t),(FN(),!1))}(this.a,KR(t,40))},ZEt.a=0,vq(PPt,"CompactionProcessor/lambda$6$Type",1930),Bgt(1931,1,iMt,Wb),ZEt.Ne=function(t,e){return function(t,e,n){return cet(_O(Srt(t),tO(e.b)),_O(Srt(t),tO(n.b)))}(this.a,KR(t,240),KR(e,240))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$7$Type",1931),Bgt(1932,1,iMt,Xb),ZEt.Ne=function(t,e){return function(t,e,n){return cet(_O(Srt(t),tO(e.e)),_O(Srt(t),tO(n.e)))}(this.a,KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$8$Type",1932),Bgt(1933,1,iMt,Bo),ZEt.Ne=function(t,e){return function(t,e){return cet(t.e.a,e.e.a)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(PPt,"CompactionProcessor/lambda$9$Type",1933),Bgt(1921,1,jIt,Ro),ZEt.Kf=function(t,e){!function(t,e){var n,i,r,a,o,s,c;if(e.Ug("Process directions",1),(n=KR(fut(t,(axt(),Gte)),88))!=(jtt(),Rce))for(r=Mrt(t.b,0);r.b!=r.d.c;){switch(i=KR(gW(r),40),s=KR(fut(i,(ETt(),Lte)),17).a,c=KR(fut(i,Ite),17).a,n.g){case 4:c*=-1;break;case 1:a=s,s=c,c=a;break;case 2:o=s,s=-c,c=o}E7(i,Lte,ttt(s)),E7(i,Ite,ttt(c))}e.Vg()}(KR(t,121),e)},vq(PPt,"DirectionProcessor",1921),Bgt(1913,1,jIt,QP),ZEt.Kf=function(t,e){vvt(this,KR(t,121),e)},vq(PPt,"FanProcessor",1913),Bgt(1937,1,jIt,Fo),ZEt.Kf=function(t,e){!function(t,e){e.Ug("Process graph bounds",1),E7(t,(ETt(),dte),HC(c5(rU(new k$(null,new OY(t.b,16)),new $o)))),E7(t,pte,HC(c5(rU(new k$(null,new OY(t.b,16)),new jo)))),E7(t,fte,HC(s5(rU(new k$(null,new OY(t.b,16)),new zo)))),E7(t,gte,HC(s5(rU(new k$(null,new OY(t.b,16)),new qo)))),e.Vg()}(KR(t,121),e)},vq(PPt,"GraphBoundsProcessor",1937),Bgt(1938,1,{},$o),ZEt.Ye=function(t){return KR(t,40).e.a},vq(PPt,"GraphBoundsProcessor/lambda$0$Type",1938),Bgt(1939,1,{},jo),ZEt.Ye=function(t){return KR(t,40).e.b},vq(PPt,"GraphBoundsProcessor/lambda$1$Type",1939),Bgt(1940,1,{},zo),ZEt.Ye=function(t){return(e=KR(t,40)).e.a+e.f.a;var e},vq(PPt,"GraphBoundsProcessor/lambda$2$Type",1940),Bgt(1941,1,{},qo),ZEt.Ye=function(t){return(e=KR(t,40)).e.b+e.f.b;var e},vq(PPt,"GraphBoundsProcessor/lambda$3$Type",1941),Bgt(262,22,{3:1,34:1,22:1,262:1,196:1},iA),ZEt.dg=function(){switch(this.g){case 0:return new yv;case 1:return new QP;case 2:return new mv;case 3:return new Yo;case 4:return new Uo;case 8:return new Ho;case 5:return new Ro;case 6:return new Wo;case 7:return new Io;case 9:return new Fo;case 10:return new Xo;default:throw Ay(new Tx(lOt+(null!=this.f?this.f:""+this.g)))}};var q9t,H9t,U9t,G9t,K9t,Y9t,V9t,W9t,X9t,Q9t,Z9t,J9t,tte=Z2(PPt,uOt,262,bHt,j5,(function(t){return Awt(),Q2((pL(),J9t),t)}));Bgt(1920,1,jIt,Ho),ZEt.Kf=function(t,e){!function(t,e){var n,i,r,a,o;for(e.Ug("Processor determine the coords for each level",1),i=new yy,o=Mrt(t.b,0);o.b!=o.d.c;){for(r=KR(gW(o),40);KR(fut(r,(axt(),mee)),17).a>i.c.length-1;)SO(i,new rM(ILt,DPt));n=KR(fut(r,mee),17).a,tI(KR(fut(t,Gte),88))?(r.e.agx(qD((LY(n,i.c.length),KR(i.c[n],42)).b))&&Gd((LY(n,i.c.length),KR(i.c[n],42)),r.e.a+r.f.a)):(r.e.bgx(qD((LY(n,i.c.length),KR(i.c[n],42)).b))&&Gd((LY(n,i.c.length),KR(i.c[n],42)),r.e.b+r.f.b))}for(a=Mrt(t.b,0);a.b!=a.d.c;)r=KR(gW(a),40),n=KR(fut(r,(axt(),mee)),17).a,E7(r,(ETt(),xte),qD((LY(n,i.c.length),KR(i.c[n],42)).a)),E7(r,vte,qD((LY(n,i.c.length),KR(i.c[n],42)).b));e.Vg()}(KR(t,121),e)},vq(PPt,"LevelCoordinatesProcessor",1920),Bgt(1918,1,jIt,Uo),ZEt.Kf=function(t,e){xbt(this,KR(t,121),e)},ZEt.a=0,vq(PPt,"LevelHeightProcessor",1918),Bgt(1919,1,GSt,Go),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return QU(),qT(),BUt},vq(PPt,"LevelHeightProcessor/1",1919),Bgt(1914,1,jIt,mv),ZEt.Kf=function(t,e){Qmt(this,KR(t,121),e)},vq(PPt,"LevelProcessor",1914),Bgt(1915,1,hCt,Ko),ZEt.Mb=function(t){return dx(zD(fut(KR(t,40),(ETt(),Mte))))},vq(PPt,"LevelProcessor/lambda$0$Type",1915),Bgt(1916,1,jIt,Yo),ZEt.Kf=function(t,e){dft(this,KR(t,121),e)},ZEt.a=0,vq(PPt,"NeighborsProcessor",1916),Bgt(1917,1,GSt,Vo),ZEt.Jc=function(t){UX(this,t)},ZEt.Kc=function(){return QU(),qT(),BUt},vq(PPt,"NeighborsProcessor/1",1917),Bgt(1922,1,jIt,Wo),ZEt.Kf=function(t,e){!function(t,e,n){var i,r,a,o,s,c,l,u,h;for(n.Ug("Processor set coordinates",1),t.a=0==e.b.b?1:e.b.b,l=null,i=Mrt(e.b,0);!l&&i.b!=i.d.c;)dx(zD(fut(h=KR(gW(i),40),(ETt(),Mte))))&&(l=h,(c=h.e).a=KR(fut(h,Lte),17).a,c.b=KR(fut(h,Ite),17).a);s=K6(l),u=1;do{u=(s=Fut((r=s,n.eh(u),r))).b/t.a|0}while(0!=s.b);for(o=Mrt(e.b,0);o.b!=o.d.c;)oB((a=KR(gW(o),40)).e,new IA(a.f.a/2,a.f.b/2));n.Vg()}(this,KR(t,121),e)},ZEt.a=0,vq(PPt,"NodePositionProcessor",1922),Bgt(1912,1,jIt,yv),ZEt.Kf=function(t,e){!function(t,e,n){var i,r,a,o,s,c,l;for(n.Ug("Find roots",1),t.a.c.length=0,r=Mrt(e.b,0);r.b!=r.d.c;)0==(i=KR(gW(r),40)).b.b&&(E7(i,(ETt(),Mte),(FN(),!0)),SO(t.a,i));switch(t.a.c.length){case 0:E7(a=new u8(0,e,"DUMMY_ROOT"),(ETt(),Mte),(FN(),!0)),E7(a,ute,!0),RF(e.b,a);break;case 1:break;default:for(o=new u8(0,e,OPt),c=new pg(t.a);c.a=0}(this.a,KR(t,40))},vq(ZPt,"NodeOrderer/lambda$2$Type",1490),Bgt(1491,1,hCt,Qb),ZEt.Mb=function(t){return function(t,e){return p2(),KR(fut(e,(axt(),oee)),17).a>=t.gc()}(this.a,KR(t,40))},vq(ZPt,"NodeOrderer/lambda$3$Type",1491),Bgt(1492,1,iMt,ps),ZEt.Ne=function(t,e){return function(t,e){return p2(),-$I(KR(fut(t,(axt(),oee)),17).a,KR(fut(e,oee),17).a)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(ZPt,"NodeOrderer/lambda$4$Type",1492),Bgt(1493,1,hCt,bs),ZEt.Mb=function(t){return p2(),0!=KR(fut(KR(t,40),(ETt(),hte)),17).a},vq(ZPt,"NodeOrderer/lambda$5$Type",1493),Bgt(1495,1,hPt,bf),ZEt.rg=function(t){return KR(t,121),Iee},ZEt.Kf=function(t,e){Ywt(this,KR(t,121),e)},ZEt.b=0,vq("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),Bgt(1496,1,hPt,pf),ZEt.rg=function(t){return KR(t,121),Oee},ZEt.Kf=function(t,e){mwt(KR(t,121),e)},vq(JPt,"EdgeRouter",1496),Bgt(1498,1,iMt,fs),ZEt.Ne=function(t,e){return $I(KR(t,17).a,KR(e,17).a)},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/0methodref$compare$Type",1498),Bgt(1503,1,{},Jo),ZEt.Ye=function(t){return gx(qD(t))},vq(JPt,"EdgeRouter/1methodref$doubleValue$Type",1503),Bgt(1505,1,iMt,ts),ZEt.Ne=function(t,e){return cet(gx(qD(t)),gx(qD(e)))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/2methodref$compare$Type",1505),Bgt(1507,1,iMt,es),ZEt.Ne=function(t,e){return cet(gx(qD(t)),gx(qD(e)))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/3methodref$compare$Type",1507),Bgt(1509,1,{},Zo),ZEt.Ye=function(t){return gx(qD(t))},vq(JPt,"EdgeRouter/4methodref$doubleValue$Type",1509),Bgt(1511,1,iMt,ns),ZEt.Ne=function(t,e){return cet(gx(qD(t)),gx(qD(e)))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/5methodref$compare$Type",1511),Bgt(1513,1,iMt,is),ZEt.Ne=function(t,e){return cet(gx(qD(t)),gx(qD(e)))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/6methodref$compare$Type",1513),Bgt(1497,1,{},rs),ZEt.Kb=function(t){return b2(),KR(fut(KR(t,40),(axt(),mee)),17)},vq(JPt,"EdgeRouter/lambda$0$Type",1497),Bgt(1508,1,{},as),ZEt.Kb=function(t){return e=KR(t,40),b2(),e.e.a+e.f.a/2;var e},vq(JPt,"EdgeRouter/lambda$11$Type",1508),Bgt(1510,1,{},TA),ZEt.Kb=function(t){return function(t,e,n){return b2(),n.e.a+n.f.a+t*e}(this.b,this.a,KR(t,40))},ZEt.a=0,ZEt.b=0,vq(JPt,"EdgeRouter/lambda$13$Type",1510),Bgt(1512,1,{},EA),ZEt.Kb=function(t){return function(t,e,n){return b2(),n.e.a-t*e}(this.b,this.a,KR(t,40))},ZEt.a=0,ZEt.b=0,vq(JPt,"EdgeRouter/lambda$15$Type",1512),Bgt(1514,1,iMt,os),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet((0==t.a.b?new IA(t.c.e.a,t.c.e.b):KR(aD(t.a),8)).b,(0==e.a.b?new IA(e.c.e.a,e.c.e.b):KR(aD(e.a),8)).b)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$17$Type",1514),Bgt(1515,1,iMt,ss),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet((0==t.a.b?new IA(t.c.e.a,t.c.e.b):KR(aD(t.a),8)).a,(0==e.a.b?new IA(e.c.e.a,e.c.e.b):KR(aD(e.a),8)).a)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$18$Type",1515),Bgt(1516,1,iMt,cs),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet((0==t.a.b?new IA(t.b.e.a,t.b.e.b):KR(oD(t.a),8)).b,(0==e.a.b?new IA(e.b.e.a,e.b.e.b):KR(oD(e.a),8)).b)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$19$Type",1516),Bgt(1499,1,hCt,Jb),ZEt.Mb=function(t){return function(t,e){return b2(),KR(fut(e,(axt(),mee)),17).a==t}(this.a,KR(t,40))},ZEt.a=0,vq(JPt,"EdgeRouter/lambda$2$Type",1499),Bgt(1517,1,iMt,ls),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet((0==t.a.b?new IA(t.b.e.a,t.b.e.b):KR(oD(t.a),8)).a,(0==e.a.b?new IA(e.b.e.a,e.b.e.b):KR(oD(e.a),8)).a)}(KR(t,65),KR(e,65))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$20$Type",1517),Bgt(1500,1,iMt,us),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet(t.e.b,e.e.b)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$3$Type",1500),Bgt(1501,1,iMt,hs),ZEt.Ne=function(t,e){return function(t,e){return b2(),cet(t.e.a,e.e.a)}(KR(t,40),KR(e,40))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"EdgeRouter/lambda$4$Type",1501),Bgt(1502,1,{},ms),ZEt.Kb=function(t){return e=KR(t,40),b2(),e.e.b+e.f.b/2;var e},vq(JPt,"EdgeRouter/lambda$5$Type",1502),Bgt(1504,1,{},SA),ZEt.Kb=function(t){return function(t,e,n){return b2(),n.e.b+n.f.b+t*e}(this.b,this.a,KR(t,40))},ZEt.a=0,ZEt.b=0,vq(JPt,"EdgeRouter/lambda$7$Type",1504),Bgt(1506,1,{},CA),ZEt.Kb=function(t){return function(t,e,n){return b2(),n.e.b-t*e}(this.b,this.a,KR(t,40))},ZEt.a=0,ZEt.b=0,vq(JPt,"EdgeRouter/lambda$9$Type",1506),Bgt(675,1,{675:1},yot),ZEt.e=0,ZEt.f=!1,ZEt.g=!1,vq(JPt,"MultiLevelEdgeNodeNodeGap",675),Bgt(1943,1,iMt,ys),ZEt.Ne=function(t,e){return function(t,e){return cet(KR(t.c,65).c.e.b,KR(e.c,65).c.e.b)}(KR(t,240),KR(e,240))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),Bgt(1944,1,iMt,ws),ZEt.Ne=function(t,e){return function(t,e){return cet(KR(t.c,65).c.e.a,KR(e.c,65).c.e.a)}(KR(t,240),KR(e,240))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(JPt,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),Bgt(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},sA),ZEt.dg=function(){return dnt(this)},ZEt.qg=function(){return dnt(this)};var Pee,Bee,Ree,Fee=Z2(tBt,"RadialLayoutPhases",501,bHt,(function(){return h3(),t7(rk(Fee,1),sCt,501,0,[Pee,Bee])}),(function(t){return h3(),Q2((OX(),Ree),t)}));Bgt(1113,205,fLt,w_),ZEt.rf=function(t,e){var n,i,r,a;if(n=Vbt(this,t),e.Ug("Radial layout",n.c.length),dx(zD(spt(t,(pht(),_ne))))||aK(new Kg((BE(),new ix(t)))),a=function(t){var e,n;for(n=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));n.e!=n.i.gc();)if(!Rgt(new Dj(lN(Kpt(e=KR(Frt(n),27)).a.Kc(),new u))))return e;return null}(t),nat(t,(XD(),Nee),a),!a)throw Ay(new Tx("The given graph is not a tree!"));for(0==(i=gx(qD(spt(t,Ane))))&&(i=sdt(t)),nat(t,Ane,i),r=new pg(Vbt(this,t));r.aeBt&&(a-=eBt),u=(c=KR(spt(r,rce),8)).a,f=c.b+t,(o=i.Math.atan2(f,u))<0&&(o+=eBt),(o+=e)>eBt&&(o-=eBt),CI(),p4(1e-10),i.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:DL(isNaN(a),isNaN(o))}(this.a,this.b,KR(t,27),KR(e,27))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},ZEt.a=0,ZEt.b=0,vq(tBt,"RadialUtil/lambda$0$Type",556),Bgt(1395,1,jIt,vs),ZEt.Kf=function(t,e){!function(t,e){var n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S;for(e.Ug("Calculate Graph Size",1),e.dh(t,nBt),f=ILt,d=ILt,u=iBt,h=iBt,b=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));b.e!=b.i.gc();)w=(g=KR(Frt(b),27)).i,v=g.j,S=g.g,c=g.f,l=KR(spt(g,(zEt(),vse)),140),f=i.Math.min(f,w-l.b),d=i.Math.min(d,v-l.d),u=i.Math.max(u,w+S+l.c),h=i.Math.max(h,v+c+l.a);for(m=new IA(f-(y=KR(spt(t,(zEt(),Pse)),107)).b,d-y.d),E=u-f+(y.b+y.c),s=h-d+(y.d+y.a),dx(zD(spt(t,(pht(),bne))))&&(x=KR(spt(t,(XD(),Nee)),27),k=KR(spt(x,vse),140),_=x.i+x.g/2+(k.b+k.c)/2-m.a,o=s-(T=x.j+x.f/2+(k.d+k.a)/2-m.b),(a=E-_)=3)for(w=KR(l2(m,0),27),v=KR(l2(m,1),27),r=0;r+2=w.f+v.f+c||v.f>=y.f+w.f+c){x=!0;break}++r}else x=!0;if(!x){for(u=m.i,a=new zO(m);a.e!=a.i.gc();)nat(KR(Frt(a),27),(zEt(),ace),ttt(u)),--u;return nxt(t,new vv),void e.Vg()}for(GH(this.a),Fz(this.a,(oit(),Vne),KR(spt(t,rre),188)),Fz(this.a,Wne,KR(spt(t,Wie),188)),Fz(this.a,Xne,KR(spt(t,ere),188)),HL(this.a,(QF(_=new EH,Vne,(vat(),eie)),QF(_,Wne,tie),dx(zD(spt(t,Fie)))&&QF(_,Vne,Jne),_)),s=1/(n=n_t(this.a,t)).c.length,f=new pg(n);f.ai?1:0}(KR(t,27),KR(e,27))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(NBt,"InteractiveNodeReorderer/lambda$0$Type",1519),Bgt(456,22,{3:1,34:1,22:1,456:1,196:1},gA),ZEt.dg=function(){switch(this.g){case 0:return new Ps;case 1:return new Fs;case 2:return new Rs}return null};var Jne,tie,eie,nie,iie,rie,aie,oie,sie,cie,lie,uie,hie,fie,die,gie=Z2(NBt,uOt,456,bHt,(function(){return vat(),t7(rk(gie,1),sCt,456,0,[Jne,eie,tie])}),(function(t){return vat(),Q2((OZ(),nie),t)}));Bgt(1521,1,jIt,Rs),ZEt.Kf=function(t,e){!function(t,e){e.Ug("Min Size Postprocessing",1),nat(t,(Dyt(),die),i.Math.max(gx(qD(spt(t,die))),gx(qD(spt(t,hie))))),e.Vg()}(KR(t,27),e)},vq(NBt,"MinSizePostProcessor",1521),Bgt(1520,1,jIt,Fs),ZEt.Kf=function(t,e){!function(t,e){var n;e.Ug("Min Size Preprocessing",1),n=gft(t),nat(t,(Dyt(),hie),n.a),nat(t,cie,n.b),e.Vg()}(KR(t,27),e)},vq(NBt,"MinSizePreProcessor",1520),Bgt(394,22,{3:1,34:1,22:1,394:1},pA);var pie,bie,mie,yie,wie,vie,xie,kie,_ie,Tie,Eie,Sie,Cie,Aie,Mie,Lie,Iie,Oie,Nie,Die,Pie,Bie,Rie,Fie,$ie,jie,zie,qie,Hie,Uie,Gie,Kie,Yie,Vie,Wie,Xie,Qie,Zie,Jie,tre,ere,nre,ire,rre,are,ore=Z2(DBt,"OptimizationGoal",394,bHt,(function(){return Oet(),t7(rk(ore,1),sCt,394,0,[bie,mie,pie])}),(function(t){return Oet(),Q2((NZ(),yie),t)}));Bgt(867,1,AMt,kf),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,PBt),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(FN(),!1)),(Kht(),eoe)),KHt),fet((Art(),Qae))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,BBt),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),ttt(-1)),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,RBt),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),ttt(-1)),aoe),nUt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,FBt),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,$Bt),YBt),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),Oie),ioe),hre),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,jBt),YBt),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zBt),YBt),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),Lie),ioe),ore),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,qBt),YBt),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,HBt),"packing"),VBt),"Strategy for finding an initial placement on nodes."),Eie),ioe),bre),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,UBt),WBt),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,GBt),WBt),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),ttt(1)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,KBt),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),ioe),vre),fet(Qae)))),wEt((new _f,t))},vq(DBt,"RectPackingMetaDataProvider",867),Bgt(1016,1,AMt,_f),ZEt.hf=function(t){wEt(t)},vq(DBt,"RectPackingOptions",1016),Bgt(1017,1,{},$s),ZEt.sf=function(){return new x_},ZEt.tf=function(t){},vq(DBt,"RectPackingOptions/RectpackingFactory",1017),Bgt(1705,1,{},vR),ZEt.a=0,ZEt.c=!1,vq(QBt,"AreaApproximation",1705);var sre=WF(QBt,"BestCandidateFilter");Bgt(673,1,{535:1},js),ZEt.Hg=function(t,e,n){var r,a,o,s,c,l;for(l=new yy,o=fAt,c=new pg(t);c.a1;){if(a=kbt(e),f=o.g,p=KR(spt(e,Xie),107),b=gx(qD(spt(e,Die))),(!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a).i>1&&gx(qD(spt(e,(Dyt(),uie))))!=fAt&&(o.c+(p.b+p.c))/(o.b+(p.d+p.a))1&&gx(qD(spt(e,(Dyt(),lie))))!=fAt&&(o.c+(p.b+p.c))/(o.b+(p.d+p.a))>b&&nat(a,(Dyt(),die),i.Math.max(gx(qD(spt(e,hie))),gx(qD(spt(a,die)))-gx(qD(spt(e,lie))))),(u=(l=EEt(g=new AA(r,h),a,d)).g)>=f&&u==u){for(s=0;s<(!a.a&&(a.a=new ez(Zhe,a,10,11)),a.a).i;s++)wdt(t,KR(l2((!a.a&&(a.a=new ez(Zhe,a,10,11)),a.a),s),27),KR(l2((!e.a&&(e.a=new ez(Zhe,e,10,11)),e.a),s),27));X0(e,g),KG(o,l.c),GG(o,l.b)}--c}nat(e,(Dyt(),rie),o.b),nat(e,aie,o.c),n.Vg()}(this,KR(t,27),e)},vq(ZBt,"Compactor",1471),Bgt(1473,1,hPt,Ks),ZEt.rg=function(t){return KR(t,27),null},ZEt.Kf=function(t,e){Zbt(KR(t,27),e)},vq(ZBt,"NoPlacement",1473),Bgt(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},mA),ZEt.dg=function(){return X9(this)},ZEt.qg=function(){return X9(this)};var fre,dre,gre,pre,bre=Z2(ZBt,"PackingStrategy",439,bHt,(function(){return s1(),t7(rk(bre,1),sCt,439,0,[fre,gre,dre])}),(function(t){return s1(),Q2((DZ(),pre),t)}));Bgt(810,1,{},AA),ZEt.a=0,ZEt.b=0,ZEt.c=0,ZEt.d=fAt,ZEt.e=0,ZEt.f=fAt,vq(ZBt,"RowFillingAndCompaction",810),Bgt(1472,1,hPt,Ys),ZEt.rg=function(t){return KR(t,27),null},ZEt.Kf=function(t,e){!function(t,e){var n,r,a,o,s,c,l,u,h,f,d,g,p;for(e.Ug(JBt,1),g=gx(qD(spt(t,(Dyt(),die)))),s=gx(qD(spt(t,(ayt(),Jie)))),c=KR(spt(t,Xie),107),S3((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a)),h=Fkt((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a),g,s),!t.a&&(t.a=new ez(Zhe,t,10,11)),u=new pg(h);u.a1)for(i=new pg(t.a);i.a>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[15&t]<<28);var t,e},ZEt.cg=function(t){var e,n,i;for(n=0;n0&&T9((IY(e-1,t.length),t.charCodeAt(e-1)),WIt);)--e;if(n>=e)throw Ay(new Tx("The given string does not contain any numbers."));if(2!=(i=rxt((tJ(n,e,t.length),t.substr(n,e-n)),",|;|\r|\n")).length)throw Ay(new Tx("Exactly two numbers are expected, "+i.length+" were found."));try{this.a=Xut(bft(i[0])),this.b=Xut(bft(i[1]))}catch(t){throw rO(t=j6(t),130)?Ay(new Tx(XIt+t)):Ay(t)}},ZEt.Ib=function(){return"("+this.a+","+this.b+")"},ZEt.a=0,ZEt.b=0;var doe=vq(QIt,"KVector",8);Bgt(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Zw,Pk,xD),ZEt.Pc=function(){return function(t){var e,n,i;for(e=0,i=WZ(doe,RSt,8,t.b,0,1),n=Mrt(t,0);n.b!=n.d.c;)i[e++]=KR(gW(n),8);return i}(this)},ZEt.cg=function(t){var e,n,i,r,a;n=rxt(t,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),FU(this);try{for(e=0,r=0,i=0,a=0;e0&&(r%2==0?i=Xut(n[e]):a=Xut(n[e]),r>0&&r%2!=0&&RF(this,new IA(i,a)),++r),++e}catch(t){throw rO(t=j6(t),130)?Ay(new Tx("The given string does not match the expected format for vectors."+t)):Ay(t)}},ZEt.Ib=function(){var t,e,n;for(t=new pN("("),e=Mrt(this,0);e.b!=e.d.c;)tL(t,(n=KR(gW(e),8)).a+","+n.b),e.b!=e.d.c&&(t.a+="; ");return(t.a+=")",t).a};var goe=vq(QIt,"KVectorChain",75);Bgt(255,22,{3:1,34:1,22:1,255:1},OA);var poe,boe,moe,yoe,woe,voe,xoe,koe,_oe,Toe,Eoe,Soe,Coe,Aoe,Moe,Loe,Ioe,Ooe,Noe,Doe=Z2(NRt,"Alignment",255,bHt,(function(){return xat(),t7(rk(Doe,1),sCt,255,0,[poe,yoe,woe,voe,boe,moe])}),(function(t){return xat(),Q2((k2(),xoe),t)}));Bgt(991,1,AMt,Mf),ZEt.hf=function(t){xvt(t)},vq(NRt,"BoxLayouterOptions",991),Bgt(992,1,{},Pc),ZEt.sf=function(){return new Fc},ZEt.tf=function(t){},vq(NRt,"BoxLayouterOptions/BoxFactory",992),Bgt(298,22,{3:1,34:1,22:1,298:1},PA);var Poe,Boe,Roe,Foe,$oe,joe,zoe,qoe,Hoe,Uoe,Goe,Koe,Yoe,Voe,Woe,Xoe,Qoe,Zoe,Joe,tse,ese,nse,ise,rse,ase,ose,sse,cse,lse,use,hse,fse,dse,gse,pse,bse,mse,yse,wse,vse,xse,kse,_se,Tse,Ese,Sse,Cse,Ase,Mse,Lse,Ise,Ose,Nse,Dse,Pse,Bse,Rse,Fse,$se,jse,zse,qse,Hse,Use,Gse,Kse,Yse,Vse,Wse,Xse,Qse,Zse,Jse,tce,ece,nce,ice,rce,ace,oce,sce,cce,lce,uce,hce,fce,dce,gce,pce,bce,mce,yce,wce,vce,xce,kce,_ce,Tce,Ece,Sce,Cce,Ace,Mce,Lce,Ice,Oce,Nce,Dce,Pce,Bce=Z2(NRt,"ContentAlignment",298,bHt,(function(){return Yct(),t7(rk(Bce,1),sCt,298,0,[joe,$oe,Foe,Boe,Poe,Roe])}),(function(t){return Yct(),Q2((_2(),zoe),t)}));Bgt(699,1,AMt,Lf),ZEt.hf=function(t){jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,FRt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Kht(),soe)),fUt),fet((Art(),Qae))))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,$Rt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),ooe),Kae),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,BDt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Uoe),ioe),Doe),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,CLt),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,jRt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),ooe),goe),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,VDt),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Joe),roe),Bce),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,PDt),""),"Debug Mode"),"Whether additional debug information shall be generated."),(FN(),!1)),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,$Dt),""),nLt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),nse),ioe),Hce),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,cDt),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),sse),ioe),tle),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,BRt),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,iDt),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),fse),ioe),vle),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ALt),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Bse),ooe),oXt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,eIt),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,oPt),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,rIt),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,nIt),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Xse),ioe),Zle),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,iPt),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),ooe),doe),Z$(Xae,t7(rk(toe,1),sCt,170,0,[Zae,Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,XLt),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),aoe),nUt),Z$(Xae,t7(rk(toe,1),sCt,170,0,[Vae]))))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,JLt),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,tIt),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,WDt),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),wse),ooe),goe),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ZDt),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,JDt),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,"org.eclipse.elk.labelManager"),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),ooe),Kpe),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,rPt),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),xse),ooe),XWt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,NDt),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),eoe),KHt),Z$(Xae,t7(rk(toe,1),sCt,170,0,[Vae,Zae,Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zRt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),noe),ZHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,qRt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,HRt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,uIt),""),kRt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),eoe),KHt),fet(Qae)))),PV(t,uIt,gIt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,URt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,GRt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),ttt(100)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,KRt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,YRt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ttt(4e3)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,VRt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ttt(400)),aoe),nUt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,WRt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,XRt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,QRt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ZRt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,RRt),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Voe),ioe),fhe),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,xDt),lDt),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,kDt),lDt),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ELt),lDt),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,_Dt),lDt),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ZLt),lDt),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,TDt),lDt),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,EDt),lDt),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ADt),lDt),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,SDt),lDt),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,CDt),lDt),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,QLt),lDt),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,MDt),lDt),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),noe),ZHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,LDt),lDt),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),noe),ZHt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,IDt),lDt),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),ooe),dhe),Z$(Xae,t7(rk(toe,1),sCt,170,0,[Vae,Zae,Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,aPt),lDt),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Tce),ooe),XWt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,nPt),iFt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),aoe),nUt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),PV(t,nPt,ePt,jse),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,ePt),iFt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),Fse),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,jDt),rFt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),_se),ooe),oXt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,cIt),rFt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Ese),roe),Rle),Z$(Xae,t7(rk(toe,1),sCt,170,0,[Wae]))))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,HDt),aFt),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),qse),ioe),Ule),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,UDt),aFt),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ioe),Ule),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,GDt),aFt),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ioe),Ule),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,KDt),aFt),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ioe),Ule),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,YDt),aFt),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ioe),Ule),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,sIt),oFt),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Cse),roe),jue),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,oIt),oFt),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Ose),roe),Que),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,SIt),oFt),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Lse),ooe),doe),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,aIt),oFt),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),eoe),KHt),fet(Qae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,XDt),wDt),"Edge Label Placement"),"Gives a hint on where to put edge labels."),ase),ioe),Vce),fet(Wae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,iIt),wDt),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),eoe),KHt),fet(Wae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,"org.eclipse.elk.font.name"),"font"),"Font Name"),"Font name used for a label."),soe),fUt),fet(Wae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,JRt),"font"),"Font Size"),"Font size used for a label."),aoe),nUt),fet(Wae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,tPt),sFt),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),ooe),doe),fet(Zae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,QDt),sFt),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),aoe),nUt),fet(Zae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,DDt),sFt),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),ice),ioe),Due),fet(Zae)))),jet(t,new $ht(Ok(Ik(Nk(Sk(Lk(Ak(Mk(new Dc,ODt),sFt),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),noe),ZHt),fet(Zae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,lIt),cFt),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),tce),roe),oue),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,zDt),cFt),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,qDt),cFt),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,hIt),lFt),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),noe),ZHt),fet(Qae)))),PV(t,hIt,gIt,Nce),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,tFt),lFt),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),ioe),ohe),fet(Xae)))),PV(t,tFt,gIt,Pce),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,fIt),lFt),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),noe),ZHt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),PV(t,fIt,gIt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,dIt),lFt),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),noe),ZHt),Z$(Qae,t7(rk(toe,1),sCt,170,0,[Xae]))))),PV(t,dIt,gIt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,gIt),lFt),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),ioe),nhe),fet(Xae)))),PV(t,gIt,aIt,null),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,eFt),lFt),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),noe),ZHt),fet(Qae)))),PV(t,eFt,gIt,Ice),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,RDt),uFt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),eoe),KHt),fet(Xae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,FDt),uFt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),eoe),KHt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,SLt),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),noe),ZHt),fet(Vae)))),jet(t,new $ht(Ok(Ik(Nk(Ck(Sk(Lk(Ak(Mk(new Dc,nFt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),lse),ioe),ple),fet(Vae)))),LE(t,new wY(_k(Ek(Tk(new dc,bAt),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),LE(t,new wY(_k(Ek(Tk(new dc,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),LE(t,new wY(_k(Ek(Tk(new dc,WLt),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),LE(t,new wY(_k(Ek(Tk(new dc,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),LE(t,new wY(_k(Ek(Tk(new dc,XPt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),LE(t,new wY(_k(Ek(Tk(new dc,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),LE(t,new wY(_k(Ek(Tk(new dc,SBt),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),xwt((new If,t)),xvt((new Mf,t)),uyt((new Of,t))},vq(NRt,"CoreOptions",699),Bgt(88,22,{3:1,34:1,22:1,88:1},BA);var Rce,Fce,$ce,jce,zce,qce,Hce=Z2(NRt,nLt,88,bHt,(function(){return jtt(),t7(rk(Hce,1),sCt,88,0,[jce,$ce,Fce,Rce,zce])}),(function(t){return jtt(),Q2((w0(),qce),t)}));Bgt(278,22,{3:1,34:1,22:1,278:1},RA);var Uce,Gce,Kce,Yce,Vce=Z2(NRt,"EdgeLabelPlacement",278,bHt,(function(){return g2(),t7(rk(Vce,1),sCt,278,0,[Uce,Gce,Kce])}),(function(t){return g2(),Q2((HZ(),Yce),t)}));Bgt(223,22,{3:1,34:1,22:1,223:1},FA);var Wce,Xce,Qce,Zce,Jce,tle=Z2(NRt,"EdgeRouting",223,bHt,(function(){return Iet(),t7(rk(tle,1),sCt,223,0,[Zce,Xce,Wce,Qce])}),(function(t){return Iet(),Q2((n1(),Jce),t)}));Bgt(321,22,{3:1,34:1,22:1,321:1},$A);var ele,nle,ile,rle,ale,ole,sle,cle,lle,ule,hle,fle,dle,gle,ple=Z2(NRt,"EdgeType",321,bHt,(function(){return Qlt(),t7(rk(ple,1),sCt,321,0,[ale,ile,ole,ele,rle,nle])}),(function(t){return Qlt(),Q2((T2(),sle),t)}));Bgt(989,1,AMt,If),ZEt.hf=function(t){xwt(t)},vq(NRt,"FixedLayouterOptions",989),Bgt(990,1,{},Bc),ZEt.sf=function(){return new Yc},ZEt.tf=function(t){},vq(NRt,"FixedLayouterOptions/FixedFactory",990),Bgt(346,22,{3:1,34:1,22:1,346:1},jA);var ble,mle,yle,wle,vle=Z2(NRt,"HierarchyHandling",346,bHt,(function(){return V9(),t7(rk(vle,1),sCt,346,0,[mle,ble,yle])}),(function(t){return V9(),Q2((zZ(),wle),t)}));Bgt(291,22,{3:1,34:1,22:1,291:1},zA);var xle,kle,_le,Tle,Ele,Sle=Z2(NRt,"LabelSide",291,bHt,(function(){return bst(),t7(rk(Sle,1),sCt,291,0,[Tle,xle,kle,_le])}),(function(t){return bst(),Q2((i1(),Ele),t)}));Bgt(95,22,{3:1,34:1,22:1,95:1},qA);var Cle,Ale,Mle,Lle,Ile,Ole,Nle,Dle,Ple,Ble,Rle=Z2(NRt,"NodeLabelPlacement",95,bHt,(function(){return cpt(),t7(rk(Rle,1),sCt,95,0,[Ale,Cle,Lle,Ple,Dle,Nle,Ile,Ole,Mle])}),(function(t){return cpt(),Q2((C6(),Ble),t)}));Bgt(256,22,{3:1,34:1,22:1,256:1},HA);var Fle,$le,jle,zle,qle,Hle,Ule=Z2(NRt,"PortAlignment",256,bHt,(function(){return Drt(),t7(rk(Ule,1),sCt,256,0,[jle,qle,Fle,$le,zle])}),(function(t){return Drt(),Q2((x0(),Hle),t)}));Bgt(101,22,{3:1,34:1,22:1,101:1},UA);var Gle,Kle,Yle,Vle,Wle,Xle,Qle,Zle=Z2(NRt,"PortConstraints",101,bHt,(function(){return plt(),t7(rk(Zle,1),sCt,101,0,[Xle,Wle,Vle,Gle,Yle,Kle])}),(function(t){return plt(),Q2((E2(),Qle),t)}));Bgt(279,22,{3:1,34:1,22:1,279:1},GA);var Jle,tue,eue,nue,iue,rue,aue,oue=Z2(NRt,"PortLabelPlacement",279,bHt,(function(){return cdt(),t7(rk(oue,1),sCt,279,0,[iue,eue,nue,tue,Jle,rue])}),(function(t){return cdt(),Q2((S2(),aue),t)}));Bgt(64,22,{3:1,34:1,22:1,64:1},KA);var sue,cue,lue,uue,hue,fue,due,gue,pue,bue,mue,yue,wue,vue,xue,kue,_ue,Tue,Eue,Sue,Cue,Aue,Mue,Lue,Iue,Oue,Nue,Due=Z2(NRt,"PortSide",64,bHt,(function(){return MTt(),t7(rk(Due,1),RIt,64,0,[Sue,cue,sue,Eue,Cue])}),(function(t){return MTt(),Q2((k0(),Aue),t)}));Bgt(993,1,AMt,Of),ZEt.hf=function(t){uyt(t)},vq(NRt,"RandomLayouterOptions",993),Bgt(994,1,{},Rc),ZEt.sf=function(){return new Uc},ZEt.tf=function(t){},vq(NRt,"RandomLayouterOptions/RandomFactory",994),Bgt(386,22,{3:1,34:1,22:1,386:1},YA);var Pue,Bue,Rue,Fue,$ue,jue=Z2(NRt,"SizeConstraint",386,bHt,(function(){return ait(),t7(rk(jue,1),sCt,386,0,[Rue,Fue,Bue,Pue])}),(function(t){return ait(),Q2((r1(),$ue),t)}));Bgt(264,22,{3:1,34:1,22:1,264:1},VA);var zue,que,Hue,Uue,Gue,Kue,Yue,Vue,Wue,Xue,Que=Z2(NRt,"SizeOptions",264,bHt,(function(){return Vwt(),t7(rk(Que,1),sCt,264,0,[Hue,Gue,que,Kue,Yue,Wue,Vue,Uue,zue])}),(function(t){return Vwt(),Q2((S6(),Xue),t)}));Bgt(280,22,{3:1,34:1,22:1,280:1},WA);var Zue,Jue,the,ehe,nhe=Z2(NRt,"TopdownNodeTypes",280,bHt,(function(){return Y9(),t7(rk(nhe,1),sCt,280,0,[Jue,Zue,the])}),(function(t){return Y9(),Q2((UZ(),ehe),t)}));Bgt(347,22,dFt);var ihe,rhe,ahe,ohe=Z2(NRt,"TopdownSizeApproximator",347,bHt,(function(){return mR(),t7(rk(ohe,1),sCt,347,0,[ihe,rhe])}),(function(t){return mR(),Q2((qX(),ahe),t)}));Bgt(987,347,dFt,YF),ZEt.Tg=function(t){return Mat(t)},Z2(NRt,"TopdownSizeApproximator/1",987,ohe,null,null),Bgt(988,347,dFt,oz),ZEt.Tg=function(t){var e,n,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v;for(e=KR(spt(t,(zEt(),sce)),143),Vk(),Ebt(m=new Xw,t),y=new my,o=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));o.e!=o.i.gc();)r=KR(Frt(o),27),ybt(d=new Xw,m),Ebt(d,r),v=Mat(r),sI(d,i.Math.max(r.g,v.a),i.Math.max(r.f,v.b)),_ft(y.f,r,d);for(a=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));a.e!=a.i.gc();)for(l=new zO((!(r=KR(Frt(a),27)).e&&(r.e=new bB(Ghe,r,7,4)),r.e));l.e!=l.i.gc();)c=KR(Frt(l),74),p=KR(FM(U$(y.f,r)),27),b=KR(Oq(y,l2((!c.c&&(c.c=new bB(Uhe,c,5,8)),c.c),0)),27),sJ((!(g=new tl).b&&(g.b=new bB(Uhe,g,4,7)),g.b),p),sJ((!g.c&&(g.c=new bB(Uhe,g,5,8)),g.c),b),cbt(g,DK(p)),Ebt(g,c);u=KR(HG(e.f),205);try{u.rf(m,new Qc),bH(e.f,u)}catch(t){throw rO(t=j6(t),103),Ay(t)}return GZ(m,Xoe)||GZ(m,Woe)||aEt(m),s=gx(qD(spt(m,Xoe)))/gx(qD(spt(m,Woe))),n=gx(qD(spt(m,Cce)))*i.Math.sqrt((!m.a&&(m.a=new ez(Zhe,m,10,11)),m.a).i),f=(w=KR(spt(m,Pse),107)).b+w.c+1,h=w.d+w.a+1,new IA(i.Math.max(f,n),i.Math.max(h,n/s))},Z2(NRt,"TopdownSizeApproximator/2",988,ohe,null,null),Bgt(344,1,{871:1},vv),ZEt.Ug=function(t,e){return Flt(this,t,e)},ZEt.Vg=function(){mht(this)},ZEt.Wg=function(){return this.q},ZEt.Xg=function(){return this.f?hG(this.f):null},ZEt.Yg=function(){return hG(this.a)},ZEt.Zg=function(){return this.p},ZEt.$g=function(){return!1},ZEt._g=function(){return this.n},ZEt.ah=function(){return null!=this.p&&!this.b},ZEt.bh=function(t){var e;this.n&&(e=t,SO(this.f,e))},ZEt.dh=function(t,e){var n,i;this.n&&t&&function(t,e,n){var i;t.n&&e&&n&&(i=new Xc,SO(t.e,i))}(this,(i=Wwt(n=new lq,t),function(t){var e,n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m,y,w,v,x,k;for(h=new Rq(new Sg(t));h.c!=h.d.a.d;)for(s=KR((u=N1(h)).d,58),e=KR(u.e,58),p=0,v=(null==(o=s.Dh()).i&&uxt(o),o.i).length;p=0&&p0?e-1:e,Kk(function(t,e){return t.j=e,t}(V2(dF(new vv,n),t.n),t.j),t.k)}(this,this.g),RF(this.a,e),e.i=this,this.d=t,e)},ZEt.fh=function(t){t>0&&!this.b&&q4(this,t)},ZEt.b=!1,ZEt.c=0,ZEt.d=-1,ZEt.e=null,ZEt.f=null,ZEt.g=-1,ZEt.j=!1,ZEt.k=!1,ZEt.n=!1,ZEt.o=0,ZEt.q=0,ZEt.r=0,vq(sPt,"BasicProgressMonitor",344),Bgt(717,205,fLt,Fc),ZEt.rf=function(t,e){nxt(t,e)},vq(sPt,"BoxLayoutProvider",717),Bgt(983,1,iMt,hm),ZEt.Ne=function(t,e){return function(t,e,n){var i,r,a;return!(r=KR(spt(e,(mut(),Ooe)),17))&&(r=ttt(0)),!(a=KR(spt(n,Ooe),17))&&(a=ttt(0)),r.a>a.a?-1:r.a0&&p.b>0&&DTt(b,p.a,p.b,!0,!0)),d=i.Math.max(d,b.i+b.g),g=i.Math.max(g,b.j+b.f),h=new zO((!b.n&&(b.n=new ez(Qhe,b,1,7)),b.n));h.e!=h.i.gc();)c=KR(Frt(h),135),(T=KR(spt(c,gle),8))&&cI(c,T.a,T.b),d=i.Math.max(d,b.i+c.i+c.g),g=i.Math.max(g,b.j+c.j+c.f);for(x=new zO((!b.c&&(b.c=new ez(Jhe,b,9,9)),b.c));x.e!=x.i.gc();)for(v=KR(Frt(x),123),(T=KR(spt(v,gle),8))&&cI(v,T.a,T.b),k=b.i+v.i,_=b.j+v.j,d=i.Math.max(d,k+v.g),g=i.Math.max(g,_+v.f),l=new zO((!v.n&&(v.n=new ez(Qhe,v,1,7)),v.n));l.e!=l.i.gc();)c=KR(Frt(l),135),(T=KR(spt(c,gle),8))&&cI(c,T.a,T.b),d=i.Math.max(d,k+c.i+c.g),g=i.Math.max(g,_+c.j+c.f);for(a=new Dj(lN(Ypt(b).a.Kc(),new u));Rgt(a);)f=FTt(n=KR(bQ(a),74)),d=i.Math.max(d,f.a),g=i.Math.max(g,f.b);for(r=new Dj(lN(Kpt(b).a.Kc(),new u));Rgt(r);)DK(yut(n=KR(bQ(r),74)))!=t&&(f=FTt(n),d=i.Math.max(d,f.a),g=i.Math.max(g,f.b))}if(o==(Iet(),Wce))for(m=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));m.e!=m.i.gc();)for(r=new Dj(lN(Ypt(b=KR(Frt(m),27)).a.Kc(),new u));Rgt(r);)0==(s=Ovt(n=KR(bQ(r),74))).b?nat(n,yse,null):nat(n,yse,s);dx(zD(spt(t,(k8(),ule))))||DTt(t,d+(w=KR(spt(t,fle),107)).b+w.c,g+w.d+w.a,!0,!0),e.Vg()},vq(sPt,"FixedLayoutProvider",1119),Bgt(385,137,{3:1,423:1,385:1,96:1,137:1},Vc,D1),ZEt.cg=function(t){var e,n,i,r,a,o,s;if(t)try{for(o=rxt(t,";,;"),r=0,a=(i=o).length;r>16&ECt|t^(n&ECt)<<16},ZEt.Kc=function(){return new pm(this)},ZEt.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+Get(this.b)+")":null==this.b?"pair("+Get(this.a)+",null)":"pair("+Get(this.a)+","+Get(this.b)+")"},vq(sPt,"Pair",42),Bgt(995,1,TSt,pm),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},ZEt.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw Ay(new ew)},ZEt.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),Ay(new Xy)},ZEt.b=!1,ZEt.c=!1,vq(sPt,"Pair/1",995),Bgt(455,1,{455:1},yU),ZEt.Fb=function(t){return jH(this.a,KR(t,455).a)&&jH(this.c,KR(t,455).c)&&jH(this.d,KR(t,455).d)&&jH(this.b,KR(t,455).b)},ZEt.Hb=function(){return s9(t7(rk(nHt,1),pSt,1,5,[this.a,this.c,this.d,this.b]))},ZEt.Ib=function(){return"("+this.a+dSt+this.c+dSt+this.d+dSt+this.b+")"},vq(sPt,"Quadruple",455),Bgt(1108,205,fLt,Uc),ZEt.rf=function(t,e){var n;e.Ug("Random Layout",1),0!=(!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a).i?(function(t,e,n,r,a){var o,s,c,l,h,f,d,g,p,b,m,y,w,v,x,k,_,T,E,S;for(v=0,b=0,p=0,g=1,w=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));w.e!=w.i.gc();)g+=GW(new Dj(lN(Ypt(m=KR(Frt(w),27)).a.Kc(),new u))),T=m.g,b=i.Math.max(b,T),d=m.f,p=i.Math.max(p,d),v+=T*d;for(s=v+2*r*r*g*(!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a).i,o=i.Math.sqrt(s),l=i.Math.max(o*n,b),c=i.Math.max(o/n,p),y=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));y.e!=y.i.gc();)m=KR(Frt(y),27),E=a.b+(Xpt(e,26)*DAt+Xpt(e,27)*PAt)*(l-m.g),S=a.b+(Xpt(e,26)*DAt+Xpt(e,27)*PAt)*(c-m.f),D2(m,E),P2(m,S);for(_=l+(a.b+a.c),k=c+(a.d+a.a),x=new zO((!t.a&&(t.a=new ez(Zhe,t,10,11)),t.a));x.e!=x.i.gc();)for(f=new Dj(lN(Ypt(KR(Frt(x),27)).a.Kc(),new u));Rgt(f);)_gt(h=KR(bQ(f),74))||yEt(h,e,_,k);DTt(t,_+=a.b+a.c,k+=a.d+a.a,!1,!0)}(t,(n=KR(spt(t,(rit(),Oue)),17))&&0!=n.a?new vX(n.a):new pnt,px(qD(spt(t,Mue))),px(qD(spt(t,Nue))),KR(spt(t,Lue),107)),e.Vg()):e.Vg()},vq(sPt,"RandomLayoutProvider",1108),Bgt(240,1,{240:1},xR),ZEt.Fb=function(t){return jH(this.a,KR(t,240).a)&&jH(this.b,KR(t,240).b)&&jH(this.c,KR(t,240).c)},ZEt.Hb=function(){return s9(t7(rk(nHt,1),pSt,1,5,[this.a,this.b,this.c]))},ZEt.Ib=function(){return"("+this.a+dSt+this.b+dSt+this.c+")"},vq(sPt,"Triple",240),Bgt(562,1,{}),ZEt.Lf=function(){return new IA(this.f.i,this.f.j)},ZEt.of=function(t){return OG(t,(zEt(),Vse))?spt(this.f,vhe):spt(this.f,t)},ZEt.Mf=function(){return new IA(this.f.g,this.f.f)},ZEt.Nf=function(){return this.g},ZEt.pf=function(t){return GZ(this.f,t)},ZEt.Of=function(t){D2(this.f,t.a),P2(this.f,t.b)},ZEt.Pf=function(t){N2(this.f,t.a),O2(this.f,t.b)},ZEt.Qf=function(t){this.g=t},ZEt.g=0,vq(bFt,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),Bgt(563,1,{853:1},bm),ZEt.Rf=function(){var t,e;if(!this.b)for(this.b=QV(qH(this.a).i),e=new zO(qH(this.a));e.e!=e.i.gc();)t=KR(Frt(e),135),SO(this.b,new rx(t));return this.b},ZEt.b=null,vq(bFt,"ElkGraphAdapters/ElkEdgeAdapter",563),Bgt(289,562,{},ix),ZEt.Sf=function(){return jot(this)},ZEt.a=null,vq(bFt,"ElkGraphAdapters/ElkGraphAdapter",289),Bgt(640,562,{187:1},rx),vq(bFt,"ElkGraphAdapters/ElkLabelAdapter",640),Bgt(639,562,{695:1},qN),ZEt.Rf=function(){return function(t){var e,n;if(!t.b)for(t.b=QV(KR(t.f,27).kh().i),n=new zO(KR(t.f,27).kh());n.e!=n.i.gc();)e=KR(Frt(n),135),SO(t.b,new rx(e));return t.b}(this)},ZEt.Vf=function(){var t;return!(t=KR(spt(this.f,(zEt(),vse)),140))&&(t=new qw),t},ZEt.Xf=function(){return function(t){var e,n;if(!t.e)for(t.e=QV(HH(KR(t.f,27)).i),n=new zO(HH(KR(t.f,27)));n.e!=n.i.gc();)e=KR(Frt(n),123),SO(t.e,new mm(e));return t.e}(this)},ZEt.Zf=function(t){var e;e=new BR(t),nat(this.f,(zEt(),vse),e)},ZEt.$f=function(t){nat(this.f,(zEt(),Pse),new RR(t))},ZEt.Tf=function(){return this.d},ZEt.Uf=function(){var t,e;if(!this.a)for(this.a=new yy,e=new Dj(lN(Kpt(KR(this.f,27)).a.Kc(),new u));Rgt(e);)t=KR(bQ(e),74),SO(this.a,new bm(t));return this.a},ZEt.Wf=function(){var t,e;if(!this.c)for(this.c=new yy,e=new Dj(lN(Ypt(KR(this.f,27)).a.Kc(),new u));Rgt(e);)t=KR(bQ(e),74),SO(this.c,new bm(t));return this.c},ZEt.Yf=function(){return 0!=eG(KR(this.f,27)).i||dx(zD(KR(this.f,27).of((zEt(),gse))))},ZEt._f=function(){P1(this,(BE(),whe))},ZEt.a=null,ZEt.b=null,ZEt.c=null,ZEt.d=null,ZEt.e=null,vq(bFt,"ElkGraphAdapters/ElkNodeAdapter",639),Bgt(1284,562,{852:1},mm),ZEt.Rf=function(){return function(t){var e,n;if(!t.b)for(t.b=QV(KR(t.f,123).kh().i),n=new zO(KR(t.f,123).kh());n.e!=n.i.gc();)e=KR(Frt(n),135),SO(t.b,new rx(e));return t.b}(this)},ZEt.Uf=function(){var t,e;if(!this.a)for(this.a=WN(KR(this.f,123).hh().i),e=new zO(KR(this.f,123).hh());e.e!=e.i.gc();)t=KR(Frt(e),74),SO(this.a,new bm(t));return this.a},ZEt.Wf=function(){var t,e;if(!this.c)for(this.c=WN(KR(this.f,123).ih().i),e=new zO(KR(this.f,123).ih());e.e!=e.i.gc();)t=KR(Frt(e),74),SO(this.c,new bm(t));return this.c},ZEt.ag=function(){return KR(KR(this.f,123).of((zEt(),nce)),64)},ZEt.bg=function(){var t,e,n,i,r,a,o;for(i=dK(KR(this.f,123)),n=new zO(KR(this.f,123).ih());n.e!=n.i.gc();)for(o=new zO((!(t=KR(Frt(n),74)).c&&(t.c=new bB(Uhe,t,5,8)),t.c));o.e!=o.i.gc();){if(Y0(Blt(a=KR(Frt(o),84)),i))return!0;if(Blt(a)==i&&dx(zD(spt(t,(zEt(),pse)))))return!0}for(e=new zO(KR(this.f,123).hh());e.e!=e.i.gc();)for(r=new zO((!(t=KR(Frt(e),74)).b&&(t.b=new bB(Uhe,t,4,7)),t.b));r.e!=r.i.gc();)if(Y0(Blt(KR(Frt(r),84)),i))return!0;return!1},ZEt.a=null,ZEt.b=null,ZEt.c=null,vq(bFt,"ElkGraphAdapters/ElkPortAdapter",1284),Bgt(1285,1,iMt,Hc),ZEt.Ne=function(t,e){return function(t,e){var n,i,r,a;if(0!=(a=KR(spt(t,(zEt(),nce)),64).g-KR(spt(e,nce),64).g))return a;if(n=KR(spt(t,Qse),17),i=KR(spt(e,Qse),17),n&&i&&0!=(r=n.a-i.a))return r;switch(KR(spt(t,nce),64).g){case 1:return cet(t.i,e.i);case 2:return cet(t.j,e.j);case 3:return cet(e.i,t.i);case 4:return cet(e.j,t.j);default:throw Ay(new Ex(UIt))}}(KR(t,123),KR(e,123))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(bFt,"ElkGraphAdapters/PortComparator",1285);var khe,_he,The,Ehe,She,Che,Ahe,Mhe,Lhe,Ihe,Ohe,Nhe,Dhe,Phe,Bhe,Rhe,Fhe,$he=WF(mFt,"EObject"),jhe=WF(yFt,wFt),zhe=WF(yFt,vFt),qhe=WF(yFt,xFt),Hhe=WF(yFt,"ElkShape"),Uhe=WF(yFt,kFt),Ghe=WF(yFt,_Ft),Khe=WF(yFt,TFt),Yhe=WF(mFt,EFt),Vhe=WF(mFt,"EFactory"),Whe=WF(mFt,SFt),Xhe=WF(mFt,"EPackage"),Qhe=WF(yFt,CFt),Zhe=WF(yFt,AFt),Jhe=WF(yFt,MFt);Bgt(93,1,LFt),ZEt.th=function(){return this.uh(),null},ZEt.uh=function(){return null},ZEt.vh=function(){return this.uh(),!1},ZEt.wh=function(){return!1},ZEt.xh=function(t){Q5(this,t)},vq(IFt,"BasicNotifierImpl",93),Bgt(99,93,$Ft),ZEt.Yh=function(){return ZL(this)},ZEt.yh=function(t,e){return t},ZEt.zh=function(){throw Ay(new Zy)},ZEt.Ah=function(t){var e;return e=Oat(KR(N0(this.Dh(),this.Fh()),19)),this.Ph().Th(this,e.n,e.f,t)},ZEt.Bh=function(t,e){throw Ay(new Zy)},ZEt.Ch=function(t,e,n){return svt(this,t,e,n)},ZEt.Dh=function(){var t;return this.zh()&&(t=this.zh().Nk())?t:this.ii()},ZEt.Eh=function(){return Sgt(this)},ZEt.Fh=function(){throw Ay(new Zy)},ZEt.Gh=function(){var t,e;return!(e=this.$h().Ok())&&this.zh().Tk((zE(),e=null==(t=UG(uxt(this.Dh())))?jde:new jN(this,t))),e},ZEt.Hh=function(t,e){return t},ZEt.Ih=function(t){return t.pk()?t.Lj():knt(this.Dh(),t)},ZEt.Jh=function(){var t;return(t=this.zh())?t.Qk():null},ZEt.Kh=function(){return this.zh()?this.zh().Nk():null},ZEt.Lh=function(t,e,n){return uat(this,t,e,n)},ZEt.Mh=function(t){return kJ(this,t)},ZEt.Nh=function(t,e){return EQ(this,t,e)},ZEt.Oh=function(){var t;return!!(t=this.zh())&&t.Rk()},ZEt.Ph=function(){throw Ay(new Zy)},ZEt.Qh=function(){return Hit(this)},ZEt.Rh=function(t,e,n,i){return tat(this,t,e,i)},ZEt.Sh=function(t,e,n){return KR(N0(this.Dh(),e),69).wk().zk(this,this.hi(),e-this.ji(),t,n)},ZEt.Th=function(t,e,n,i){return qG(this,t,e,i)},ZEt.Uh=function(t,e,n){return KR(N0(this.Dh(),e),69).wk().Ak(this,this.hi(),e-this.ji(),t,n)},ZEt.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},ZEt.Wh=function(t){return Prt(this,t)},ZEt.Xh=function(t){return TK(this,t)},ZEt.Zh=function(t){return V_t(this,t)},ZEt.$h=function(){throw Ay(new Zy)},ZEt._h=function(){return this.zh()?this.zh().Pk():null},ZEt.ai=function(){return Hit(this)},ZEt.bi=function(t,e){Ift(this,t,e)},ZEt.ci=function(t){this.$h().Sk(t)},ZEt.di=function(t){this.$h().Vk(t)},ZEt.ei=function(t){this.$h().Uk(t)},ZEt.fi=function(t,e){var n,i,r,a;return(a=this.Jh())&&t&&(e=cat(a.El(),this,e),a.Il(this)),(i=this.Ph())&&(Swt(this,this.Ph(),this.Fh()).Bb&mAt?(r=i.Qh())&&(t?!a&&r.Il(this):r.Hl(this)):(e=(n=this.Fh())>=0?this.Ah(e):this.Ph().Th(this,-1-n,null,e),e=this.Ch(null,-1,e))),this.di(t),e},ZEt.gi=function(t){var e,n,i,r,a,o,s;if((a=knt(n=this.Dh(),t))>=(e=this.ji()))return KR(t,69).wk().Dk(this,this.hi(),a-e);if(a<=-1){if(!(o=s_t((Xht(),age),n,t)))throw Ay(new Tx(OFt+t.xe()+PFt));if(UE(),KR(o,69).xk()||(o=KY(T1(age,o))),r=KR((i=this.Ih(o))>=0?this.Lh(i,!0,!0):jdt(this,o,!0),160),(s=o.Ik())>1||-1==s)return KR(KR(r,220).Sl(t,!1),79)}else if(t.Jk())return KR((i=this.Ih(t))>=0?this.Lh(i,!1,!0):jdt(this,t,!1),79);return new AM(this,t)},ZEt.hi=function(){return F1(this)},ZEt.ii=function(){return(Aq(),sde).S},ZEt.ji=function(){return Lq(this.ii())},ZEt.ki=function(t){Hht(this,t)},ZEt.Ib=function(){return _pt(this)},vq(jFt,"BasicEObjectImpl",99),Bgt(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),ZEt.li=function(t){return R1(this)[t]},ZEt.mi=function(t,e){Dq(R1(this),t,e)},ZEt.ni=function(t){Dq(R1(this),t,null)},ZEt.th=function(){return KR(i6(this,4),129)},ZEt.uh=function(){throw Ay(new Zy)},ZEt.vh=function(){return 0!=(4&this.Db)},ZEt.zh=function(){throw Ay(new Zy)},ZEt.oi=function(t){zit(this,2,t)},ZEt.Bh=function(t,e){this.Db=e<<16|255&this.Db,this.oi(t)},ZEt.Dh=function(){return RG(this)},ZEt.Fh=function(){return this.Db>>16},ZEt.Gh=function(){var t;return zE(),null==(t=UG(uxt(KR(i6(this,16),29)||this.ii())))?jde:new jN(this,t)},ZEt.wh=function(){return 0==(1&this.Db)},ZEt.Jh=function(){return KR(i6(this,128),2034)},ZEt.Kh=function(){return KR(i6(this,16),29)},ZEt.Oh=function(){return 0!=(32&this.Db)},ZEt.Ph=function(){return KR(i6(this,2),54)},ZEt.Vh=function(){return 0!=(64&this.Db)},ZEt.$h=function(){throw Ay(new Zy)},ZEt._h=function(){return KR(i6(this,64),288)},ZEt.ci=function(t){zit(this,16,t)},ZEt.di=function(t){zit(this,128,t)},ZEt.ei=function(t){zit(this,64,t)},ZEt.hi=function(){return jit(this)},ZEt.Db=0,vq(jFt,"MinimalEObjectImpl",119),Bgt(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),ZEt.oi=function(t){this.Cb=t},ZEt.Ph=function(){return this.Cb},vq(jFt,"MinimalEObjectImpl/Container",120),Bgt(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),ZEt.Lh=function(t,e,n){return est(this,t,e,n)},ZEt.Uh=function(t,e,n){return Gut(this,t,e,n)},ZEt.Wh=function(t){return wV(this,t)},ZEt.bi=function(t,e){l8(this,t,e)},ZEt.ii=function(){return hEt(),Dhe},ZEt.ki=function(t){y7(this,t)},ZEt.nf=function(){return Brt(this)},ZEt.gh=function(){return!this.o&&(this.o=new mJ((hEt(),Ohe),nfe,this,0)),this.o},ZEt.of=function(t){return spt(this,t)},ZEt.pf=function(t){return GZ(this,t)},ZEt.qf=function(t,e){return nat(this,t,e)},vq(zFt,"EMapPropertyHolderImpl",2083),Bgt(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Zc),ZEt.Lh=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return uat(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 0:return 0!=this.a;case 1:return 0!=this.b}return Prt(this,t)},ZEt.bi=function(t,e){switch(t){case 0:return void $2(this,gx(qD(e)));case 1:return void L2(this,gx(qD(e)))}Ift(this,t,e)},ZEt.ii=function(){return hEt(),The},ZEt.ki=function(t){switch(t){case 0:return void $2(this,0);case 1:return void L2(this,0)}Hht(this,t)},ZEt.Ib=function(){var t;return 64&this.Db?_pt(this):((t=new gN(_pt(this))).a+=" (x: ",o_(t,this.a),t.a+=", y: ",o_(t,this.b),t.a+=")",t.a)},ZEt.a=0,ZEt.b=0,vq(zFt,"ElkBendPointImpl",572),Bgt(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),ZEt.Lh=function(t,e,n){return Wtt(this,t,e,n)},ZEt.Sh=function(t,e,n){return Ult(this,t,e,n)},ZEt.Uh=function(t,e,n){return D6(this,t,e,n)},ZEt.Wh=function(t){return u6(this,t)},ZEt.bi=function(t,e){Cct(this,t,e)},ZEt.ii=function(){return hEt(),Ahe},ZEt.ki=function(t){W9(this,t)},ZEt.jh=function(){return this.k},ZEt.kh=function(){return qH(this)},ZEt.Ib=function(){return vet(this)},ZEt.k=null,vq(zFt,"ElkGraphElementImpl",739),Bgt(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),ZEt.Lh=function(t,e,n){return Yet(this,t,e,n)},ZEt.Wh=function(t){return fnt(this,t)},ZEt.bi=function(t,e){Act(this,t,e)},ZEt.ii=function(){return hEt(),Nhe},ZEt.ki=function(t){Fnt(this,t)},ZEt.lh=function(){return this.f},ZEt.mh=function(){return this.g},ZEt.nh=function(){return this.i},ZEt.oh=function(){return this.j},ZEt.ph=function(t,e){sI(this,t,e)},ZEt.qh=function(t,e){cI(this,t,e)},ZEt.rh=function(t){D2(this,t)},ZEt.sh=function(t){P2(this,t)},ZEt.Ib=function(){return eht(this)},ZEt.f=0,ZEt.g=0,ZEt.i=0,ZEt.j=0,vq(zFt,"ElkShapeImpl",740),Bgt(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),ZEt.Lh=function(t,e,n){return Uat(this,t,e,n)},ZEt.Sh=function(t,e,n){return fct(this,t,e,n)},ZEt.Uh=function(t,e,n){return dct(this,t,e,n)},ZEt.Wh=function(t){return n8(this,t)},ZEt.bi=function(t,e){Kgt(this,t,e)},ZEt.ii=function(){return hEt(),Ehe},ZEt.ki=function(t){eat(this,t)},ZEt.hh=function(){return!this.d&&(this.d=new bB(Ghe,this,8,5)),this.d},ZEt.ih=function(){return!this.e&&(this.e=new bB(Ghe,this,7,4)),this.e},vq(zFt,"ElkConnectableShapeImpl",741),Bgt(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},tl),ZEt.Ah=function(t){return Fst(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 3:return fK(this);case 4:return!this.b&&(this.b=new bB(Uhe,this,4,7)),this.b;case 5:return!this.c&&(this.c=new bB(Uhe,this,5,8)),this.c;case 6:return!this.a&&(this.a=new ez(Khe,this,6,6)),this.a;case 7:return FN(),!this.b&&(this.b=new bB(Uhe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new bB(Uhe,this,5,8)),this.c.i<=1));case 8:return FN(),!!_gt(this);case 9:return FN(),!!Idt(this);case 10:return FN(),!this.b&&(this.b=new bB(Uhe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new bB(Uhe,this,5,8)),0!=this.c.i)}return Wtt(this,t,e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?Fst(this,n):this.Cb.Th(this,-1-i,null,n)),vP(this,KR(t,27),n);case 4:return!this.b&&(this.b=new bB(Uhe,this,4,7)),Vnt(this.b,t,n);case 5:return!this.c&&(this.c=new bB(Uhe,this,5,8)),Vnt(this.c,t,n);case 6:return!this.a&&(this.a=new ez(Khe,this,6,6)),Vnt(this.a,t,n)}return Ult(this,t,e,n)},ZEt.Uh=function(t,e,n){switch(e){case 3:return vP(this,null,n);case 4:return!this.b&&(this.b=new bB(Uhe,this,4,7)),cat(this.b,t,n);case 5:return!this.c&&(this.c=new bB(Uhe,this,5,8)),cat(this.c,t,n);case 6:return!this.a&&(this.a=new ez(Khe,this,6,6)),cat(this.a,t,n)}return D6(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 3:return!!fK(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new bB(Uhe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new bB(Uhe,this,5,8)),this.c.i<=1));case 8:return _gt(this);case 9:return Idt(this);case 10:return!this.b&&(this.b=new bB(Uhe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new bB(Uhe,this,5,8)),0!=this.c.i)}return u6(this,t)},ZEt.bi=function(t,e){switch(t){case 3:return void cbt(this,KR(e,27));case 4:return!this.b&&(this.b=new bB(Uhe,this,4,7)),Vkt(this.b),!this.b&&(this.b=new bB(Uhe,this,4,7)),void nq(this.b,KR(e,16));case 5:return!this.c&&(this.c=new bB(Uhe,this,5,8)),Vkt(this.c),!this.c&&(this.c=new bB(Uhe,this,5,8)),void nq(this.c,KR(e,16));case 6:return!this.a&&(this.a=new ez(Khe,this,6,6)),Vkt(this.a),!this.a&&(this.a=new ez(Khe,this,6,6)),void nq(this.a,KR(e,16))}Cct(this,t,e)},ZEt.ii=function(){return hEt(),She},ZEt.ki=function(t){switch(t){case 3:return void cbt(this,null);case 4:return!this.b&&(this.b=new bB(Uhe,this,4,7)),void Vkt(this.b);case 5:return!this.c&&(this.c=new bB(Uhe,this,5,8)),void Vkt(this.c);case 6:return!this.a&&(this.a=new ez(Khe,this,6,6)),void Vkt(this.a)}W9(this,t)},ZEt.Ib=function(){return ykt(this)},vq(zFt,"ElkEdgeImpl",326),Bgt(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},el),ZEt.Ah=function(t){return Ast(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new AO(zhe,this,5)),this.a;case 6:return gK(this);case 7:return e?Iat(this):this.i;case 8:return e?Lat(this):this.f;case 9:return!this.g&&(this.g=new bB(Khe,this,9,10)),this.g;case 10:return!this.e&&(this.e=new bB(Khe,this,10,9)),this.e;case 11:return this.d}return est(this,t,e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?Ast(this,n):this.Cb.Th(this,-1-i,null,n)),wP(this,KR(t,74),n);case 9:return!this.g&&(this.g=new bB(Khe,this,9,10)),Vnt(this.g,t,n);case 10:return!this.e&&(this.e=new bB(Khe,this,10,9)),Vnt(this.e,t,n)}return KR(N0(KR(i6(this,16),29)||(hEt(),Che),e),69).wk().zk(this,jit(this),e-Lq((hEt(),Che)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 5:return!this.a&&(this.a=new AO(zhe,this,5)),cat(this.a,t,n);case 6:return wP(this,null,n);case 9:return!this.g&&(this.g=new bB(Khe,this,9,10)),cat(this.g,t,n);case 10:return!this.e&&(this.e=new bB(Khe,this,10,9)),cat(this.e,t,n)}return Gut(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!gK(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return wV(this,t)},ZEt.bi=function(t,e){switch(t){case 1:return void B2(this,gx(qD(e)));case 2:return void F2(this,gx(qD(e)));case 3:return void I2(this,gx(qD(e)));case 4:return void R2(this,gx(qD(e)));case 5:return!this.a&&(this.a=new AO(zhe,this,5)),Vkt(this.a),!this.a&&(this.a=new AO(zhe,this,5)),void nq(this.a,KR(e,16));case 6:return void sbt(this,KR(e,74));case 7:return void V4(this,KR(e,84));case 8:return void Y4(this,KR(e,84));case 9:return!this.g&&(this.g=new bB(Khe,this,9,10)),Vkt(this.g),!this.g&&(this.g=new bB(Khe,this,9,10)),void nq(this.g,KR(e,16));case 10:return!this.e&&(this.e=new bB(Khe,this,10,9)),Vkt(this.e),!this.e&&(this.e=new bB(Khe,this,10,9)),void nq(this.e,KR(e,16));case 11:return void o3(this,HD(e))}l8(this,t,e)},ZEt.ii=function(){return hEt(),Che},ZEt.ki=function(t){switch(t){case 1:return void B2(this,0);case 2:return void F2(this,0);case 3:return void I2(this,0);case 4:return void R2(this,0);case 5:return!this.a&&(this.a=new AO(zhe,this,5)),void Vkt(this.a);case 6:return void sbt(this,null);case 7:return void V4(this,null);case 8:return void Y4(this,null);case 9:return!this.g&&(this.g=new bB(Khe,this,9,10)),void Vkt(this.g);case 10:return!this.e&&(this.e=new bB(Khe,this,10,9)),void Vkt(this.e);case 11:return void o3(this,null)}y7(this,t)},ZEt.Ib=function(){return hgt(this)},ZEt.b=0,ZEt.c=0,ZEt.d=null,ZEt.j=0,ZEt.k=0,vq(zFt,"ElkEdgeSectionImpl",452),Bgt(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),ZEt.Lh=function(t,e,n){return 0==t?(!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab):OJ(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e,n)},ZEt.Sh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n)):KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().zk(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Uh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n)):KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().Ak(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Wh=function(t){return 0==t?!!this.Ab&&0!=this.Ab.i:AW(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.Zh=function(t){return NTt(this,t)},ZEt.bi=function(t,e){if(0===t)return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));Wet(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e)},ZEt.di=function(t){zit(this,128,t)},ZEt.ii=function(){return KEt(),wde},ZEt.ki=function(t){if(0===t)return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);vtt(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.pi=function(){this.Bb|=1},ZEt.qi=function(t){return gvt(this,t)},ZEt.Bb=0,vq(jFt,"EModelElementImpl",158),Bgt(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Df),ZEt.ri=function(t,e){return F_t(this,t,e)},ZEt.si=function(t){var e,n,i,r;if(this.a!=r2(t)||256&t.Bb)throw Ay(new Tx(YFt+t.zb+UFt));for(n=PG(t);0!=JW(n.a).i;){if(zot(e=KR(g_t(n,0,rO(r=KR(l2(JW(n.a),0),89).c,90)?KR(r,29):(KEt(),xde)),29)))return KR(i=r2(e).wi().si(e),54).ci(t),i;n=PG(e)}return"java.util.Map$Entry"==(null!=t.D?t.D:t.B)?new GF(t):new yF(t)},ZEt.ti=function(t,e){return gEt(this,t,e)},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.a}return OJ(this,t-Lq((KEt(),bde)),N0(KR(i6(this,16),29)||bde,t),e,n)},ZEt.Sh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 1:return this.a&&(n=KR(this.a,54).Th(this,4,Xhe,n)),H9(this,KR(t,241),n)}return KR(N0(KR(i6(this,16),29)||(KEt(),bde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),bde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 1:return H9(this,null,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),bde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),bde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return AW(this,t-Lq((KEt(),bde)),N0(KR(i6(this,16),29)||bde,t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void Sut(this,KR(e,241))}Wet(this,t-Lq((KEt(),bde)),N0(KR(i6(this,16),29)||bde,t),e)},ZEt.ii=function(){return KEt(),bde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void Sut(this,null)}vtt(this,t-Lq((KEt(),bde)),N0(KR(i6(this,16),29)||bde,t))},vq(jFt,"EFactoryImpl",720),Bgt(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},nl),ZEt.ri=function(t,e){switch(t.hk()){case 12:return KR(e,149).Pg();case 13:return Get(e);default:throw Ay(new Tx(HFt+t.xe()+UFt))}},ZEt.si=function(t){var e;switch(-1==t.G&&(t.G=(e=r2(t))?dat(e.vi(),t):-1),t.G){case 4:return new il;case 6:return new Xw;case 7:return new Qw;case 8:return new tl;case 9:return new Zc;case 10:return new el;case 11:return new rl;default:throw Ay(new Tx(YFt+t.zb+UFt))}},ZEt.ti=function(t,e){switch(t.hk()){case 13:case 12:return null;default:throw Ay(new Tx(HFt+t.xe()+UFt))}},vq(zFt,"ElkGraphFactoryImpl",1037),Bgt(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),ZEt.Gh=function(){var t;return null==(t=UG(uxt(KR(i6(this,16),29)||this.ii())))?(zE(),zE(),jde):new ED(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.xe()}return OJ(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return AW(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void this.ui(HD(e))}Wet(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e)},ZEt.ii=function(){return KEt(),vde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void this.ui(null)}vtt(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.xe=function(){return this.zb},ZEt.ui=function(t){B3(this,t)},ZEt.Ib=function(){return utt(this)},ZEt.zb=null,vq(jFt,"ENamedElementImpl",448),Bgt(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},YU),ZEt.Ah=function(t){return Ost(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new lz(this,Vfe,this)),this.rb;case 6:return!this.vb&&(this.vb=new cB(Xhe,this,6,7)),this.vb;case 7:return e?this.Db>>16==7?KR(this.Cb,241):null:IK(this)}return OJ(this,t-Lq((KEt(),Tde)),N0(KR(i6(this,16),29)||Tde,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 4:return this.sb&&(n=KR(this.sb,54).Th(this,1,Vhe,n)),ftt(this,KR(t,480),n);case 5:return!this.rb&&(this.rb=new lz(this,Vfe,this)),Vnt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new cB(Xhe,this,6,7)),Vnt(this.vb,t,n);case 7:return this.Cb&&(n=(i=this.Db>>16)>=0?Ost(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,7,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),Tde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),Tde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 4:return ftt(this,null,n);case 5:return!this.rb&&(this.rb=new lz(this,Vfe,this)),cat(this.rb,t,n);case 6:return!this.vb&&(this.vb=new cB(Xhe,this,6,7)),cat(this.vb,t,n);case 7:return svt(this,null,7,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),Tde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),Tde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!IK(this)}return AW(this,t-Lq((KEt(),Tde)),N0(KR(i6(this,16),29)||Tde,t))},ZEt.Zh=function(t){return function(t,e){var n,i,r,a,o,s;if(!t.tb){for(!t.rb&&(t.rb=new lz(t,Vfe,t)),s=new RT((a=t.rb).i),r=new zO(a);r.e!=r.i.gc();)i=KR(Frt(r),142),(n=KR(null==(o=i.xe())?_ft(s.f,null,i):pet(s.i,o,i),142))&&(null==o?_ft(s.f,null,n):pet(s.i,o,n));t.tb=s}return KR(ZG(t.tb,e),142)}(this,t)||NTt(this,t)},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void B3(this,HD(e));case 2:return void F3(this,HD(e));case 3:return void R3(this,HD(e));case 4:return void Kut(this,KR(e,480));case 5:return!this.rb&&(this.rb=new lz(this,Vfe,this)),Vkt(this.rb),!this.rb&&(this.rb=new lz(this,Vfe,this)),void nq(this.rb,KR(e,16));case 6:return!this.vb&&(this.vb=new cB(Xhe,this,6,7)),Vkt(this.vb),!this.vb&&(this.vb=new cB(Xhe,this,6,7)),void nq(this.vb,KR(e,16))}Wet(this,t-Lq((KEt(),Tde)),N0(KR(i6(this,16),29)||Tde,t),e)},ZEt.ei=function(t){var e,n;if(t&&this.rb)for(n=new zO(this.rb);n.e!=n.i.gc();)rO(e=Frt(n),364)&&(KR(e,364).w=null);zit(this,64,t)},ZEt.ii=function(){return KEt(),Tde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void B3(this,null);case 2:return void F3(this,null);case 3:return void R3(this,null);case 4:return void Kut(this,null);case 5:return!this.rb&&(this.rb=new lz(this,Vfe,this)),void Vkt(this.rb);case 6:return!this.vb&&(this.vb=new cB(Xhe,this,6,7)),void Vkt(this.vb)}vtt(this,t-Lq((KEt(),Tde)),N0(KR(i6(this,16),29)||Tde,t))},ZEt.pi=function(){nst(this)},ZEt.vi=function(){return!this.rb&&(this.rb=new lz(this,Vfe,this)),this.rb},ZEt.wi=function(){return this.sb},ZEt.xi=function(){return this.ub},ZEt.yi=function(){return this.xb},ZEt.zi=function(){return this.yb},ZEt.Ai=function(t){this.ub=t},ZEt.Ib=function(){var t;return 64&this.Db?utt(this):((t=new gN(utt(this))).a+=" (nsURI: ",QM(t,this.yb),t.a+=", nsPrefix: ",QM(t,this.xb),t.a+=")",t.a)},ZEt.xb=null,ZEt.yb=null,vq(jFt,"EPackageImpl",184),Bgt(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},Igt),ZEt.q=!1,ZEt.r=!1;var tfe=!1;vq(zFt,"ElkGraphPackageImpl",569),Bgt(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},il),ZEt.Ah=function(t){return Mst(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 7:return NK(this);case 8:return this.a}return Yet(this,t,e,n)},ZEt.Sh=function(t,e,n){var i;return 7===e?(this.Cb&&(n=(i=this.Db>>16)>=0?Mst(this,n):this.Cb.Th(this,-1-i,null,n)),gj(this,KR(t,167),n)):Ult(this,t,e,n)},ZEt.Uh=function(t,e,n){return 7==e?gj(this,null,n):D6(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 7:return!!NK(this);case 8:return!_B("",this.a)}return fnt(this,t)},ZEt.bi=function(t,e){switch(t){case 7:return void Ibt(this,KR(e,167));case 8:return void W4(this,HD(e))}Act(this,t,e)},ZEt.ii=function(){return hEt(),Mhe},ZEt.ki=function(t){switch(t){case 7:return void Ibt(this,null);case 8:return void W4(this,"")}Fnt(this,t)},ZEt.Ib=function(){return Oht(this)},ZEt.a="",vq(zFt,"ElkLabelImpl",366),Bgt(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Xw),ZEt.Ah=function(t){return $st(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 9:return!this.c&&(this.c=new ez(Jhe,this,9,9)),this.c;case 10:return!this.a&&(this.a=new ez(Zhe,this,10,11)),this.a;case 11:return DK(this);case 12:return!this.b&&(this.b=new ez(Ghe,this,12,3)),this.b;case 13:return FN(),!this.a&&(this.a=new ez(Zhe,this,10,11)),this.a.i>0}return Uat(this,t,e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 9:return!this.c&&(this.c=new ez(Jhe,this,9,9)),Vnt(this.c,t,n);case 10:return!this.a&&(this.a=new ez(Zhe,this,10,11)),Vnt(this.a,t,n);case 11:return this.Cb&&(n=(i=this.Db>>16)>=0?$st(this,n):this.Cb.Th(this,-1-i,null,n)),sB(this,KR(t,27),n);case 12:return!this.b&&(this.b=new ez(Ghe,this,12,3)),Vnt(this.b,t,n)}return fct(this,t,e,n)},ZEt.Uh=function(t,e,n){switch(e){case 9:return!this.c&&(this.c=new ez(Jhe,this,9,9)),cat(this.c,t,n);case 10:return!this.a&&(this.a=new ez(Zhe,this,10,11)),cat(this.a,t,n);case 11:return sB(this,null,n);case 12:return!this.b&&(this.b=new ez(Ghe,this,12,3)),cat(this.b,t,n)}return dct(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!DK(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new ez(Zhe,this,10,11)),this.a.i>0}return n8(this,t)},ZEt.bi=function(t,e){switch(t){case 9:return!this.c&&(this.c=new ez(Jhe,this,9,9)),Vkt(this.c),!this.c&&(this.c=new ez(Jhe,this,9,9)),void nq(this.c,KR(e,16));case 10:return!this.a&&(this.a=new ez(Zhe,this,10,11)),Vkt(this.a),!this.a&&(this.a=new ez(Zhe,this,10,11)),void nq(this.a,KR(e,16));case 11:return void ybt(this,KR(e,27));case 12:return!this.b&&(this.b=new ez(Ghe,this,12,3)),Vkt(this.b),!this.b&&(this.b=new ez(Ghe,this,12,3)),void nq(this.b,KR(e,16))}Kgt(this,t,e)},ZEt.ii=function(){return hEt(),Lhe},ZEt.ki=function(t){switch(t){case 9:return!this.c&&(this.c=new ez(Jhe,this,9,9)),void Vkt(this.c);case 10:return!this.a&&(this.a=new ez(Zhe,this,10,11)),void Vkt(this.a);case 11:return void ybt(this,null);case 12:return!this.b&&(this.b=new ez(Ghe,this,12,3)),void Vkt(this.b)}eat(this,t)},ZEt.Ib=function(){return Jyt(this)},vq(zFt,"ElkNodeImpl",207),Bgt(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Qw),ZEt.Ah=function(t){return Lst(this,t)},ZEt.Lh=function(t,e,n){return 9==t?dK(this):Uat(this,t,e,n)},ZEt.Sh=function(t,e,n){var i;return 9===e?(this.Cb&&(n=(i=this.Db>>16)>=0?Lst(this,n):this.Cb.Th(this,-1-i,null,n)),xP(this,KR(t,27),n)):fct(this,t,e,n)},ZEt.Uh=function(t,e,n){return 9==e?xP(this,null,n):dct(this,t,e,n)},ZEt.Wh=function(t){return 9==t?!!dK(this):n8(this,t)},ZEt.bi=function(t,e){9!==t?Kgt(this,t,e):lbt(this,KR(e,27))},ZEt.ii=function(){return hEt(),Ihe},ZEt.ki=function(t){9!==t?eat(this,t):lbt(this,null)},ZEt.Ib=function(){return twt(this)},vq(zFt,"ElkPortImpl",193);var efe=WF(g$t,"BasicEMap/Entry");Bgt(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},rl),ZEt.Fb=function(t){return this===t},ZEt.ld=function(){return this.b},ZEt.Hb=function(){return DN(this)},ZEt.Di=function(t){X4(this,KR(t,149))},ZEt.Lh=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return uat(this,t,e,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.b;case 1:return null!=this.c}return Prt(this,t)},ZEt.bi=function(t,e){switch(t){case 0:return void X4(this,KR(e,149));case 1:return void H4(this,e)}Ift(this,t,e)},ZEt.ii=function(){return hEt(),Ohe},ZEt.ki=function(t){switch(t){case 0:return void X4(this,null);case 1:return void H4(this,null)}Hht(this,t)},ZEt.Bi=function(){var t;return-1==this.a&&(t=this.b,this.a=t?N3(t):0),this.a},ZEt.md=function(){return this.c},ZEt.Ci=function(t){this.a=t},ZEt.nd=function(t){var e;return e=this.c,H4(this,t),e},ZEt.Ib=function(){var t;return 64&this.Db?_pt(this):(tL(tL(tL(t=new Vx,this.b?this.b.Pg():wSt),qIt),dN(this.c)),t.a)},ZEt.a=-1,ZEt.c=null;var nfe=vq(zFt,"ElkPropertyToValueMapEntryImpl",1122);Bgt(996,1,{},sl),vq(m$t,"JsonAdapter",996),Bgt(216,63,bCt,Ix),vq(m$t,"JsonImportException",216),Bgt(868,1,{},Dst),vq(m$t,"JsonImporter",868),Bgt(903,1,{},aM),vq(m$t,"JsonImporter/lambda$0$Type",903),Bgt(904,1,{},oM),vq(m$t,"JsonImporter/lambda$1$Type",904),Bgt(912,1,{},ym),vq(m$t,"JsonImporter/lambda$10$Type",912),Bgt(914,1,{},sM),vq(m$t,"JsonImporter/lambda$11$Type",914),Bgt(915,1,{},cM),vq(m$t,"JsonImporter/lambda$12$Type",915),Bgt(921,1,{},TU),vq(m$t,"JsonImporter/lambda$13$Type",921),Bgt(920,1,{},EU),vq(m$t,"JsonImporter/lambda$14$Type",920),Bgt(916,1,{},lM),vq(m$t,"JsonImporter/lambda$15$Type",916),Bgt(917,1,{},uM),vq(m$t,"JsonImporter/lambda$16$Type",917),Bgt(918,1,{},hM),vq(m$t,"JsonImporter/lambda$17$Type",918),Bgt(919,1,{},fM),vq(m$t,"JsonImporter/lambda$18$Type",919),Bgt(924,1,{},wm),vq(m$t,"JsonImporter/lambda$19$Type",924),Bgt(905,1,{},vm),vq(m$t,"JsonImporter/lambda$2$Type",905),Bgt(922,1,{},xm),vq(m$t,"JsonImporter/lambda$20$Type",922),Bgt(923,1,{},km),vq(m$t,"JsonImporter/lambda$21$Type",923),Bgt(927,1,{},_m),vq(m$t,"JsonImporter/lambda$22$Type",927),Bgt(925,1,{},Tm),vq(m$t,"JsonImporter/lambda$23$Type",925),Bgt(926,1,{},Em),vq(m$t,"JsonImporter/lambda$24$Type",926),Bgt(929,1,{},Sm),vq(m$t,"JsonImporter/lambda$25$Type",929),Bgt(928,1,{},Cm),vq(m$t,"JsonImporter/lambda$26$Type",928),Bgt(930,1,jSt,dM),ZEt.Cd=function(t){!function(t,e,n){var i,r;r=null,(i=xK(t,n))&&(r=Uht(i)),brt(e,n,r)}(this.b,this.a,HD(t))},vq(m$t,"JsonImporter/lambda$27$Type",930),Bgt(931,1,jSt,gM),ZEt.Cd=function(t){!function(t,e,n){var i,r;r=null,(i=xK(t,n))&&(r=Uht(i)),brt(e,n,r)}(this.b,this.a,HD(t))},vq(m$t,"JsonImporter/lambda$28$Type",931),Bgt(932,1,{},pM),vq(m$t,"JsonImporter/lambda$29$Type",932),Bgt(908,1,{},Am),vq(m$t,"JsonImporter/lambda$3$Type",908),Bgt(933,1,{},bM),vq(m$t,"JsonImporter/lambda$30$Type",933),Bgt(934,1,{},Mm),vq(m$t,"JsonImporter/lambda$31$Type",934),Bgt(935,1,{},Lm),vq(m$t,"JsonImporter/lambda$32$Type",935),Bgt(936,1,{},Im),vq(m$t,"JsonImporter/lambda$33$Type",936),Bgt(937,1,{},Om),vq(m$t,"JsonImporter/lambda$34$Type",937),Bgt(870,1,{},Nm),vq(m$t,"JsonImporter/lambda$35$Type",870),Bgt(941,1,{},TR),vq(m$t,"JsonImporter/lambda$36$Type",941),Bgt(938,1,jSt,Dm),ZEt.Cd=function(t){!function(t,e){var n;aG(n=new Wv,"x",e.a),aG(n,"y",e.b),zq(t,n)}(this.a,KR(t,377))},vq(m$t,"JsonImporter/lambda$37$Type",938),Bgt(939,1,jSt,yM),ZEt.Cd=function(t){!function(t,e,n){Tct(e,ift(t,n))}(this.a,this.b,KR(t,166))},vq(m$t,"JsonImporter/lambda$38$Type",939),Bgt(940,1,jSt,wM),ZEt.Cd=function(t){!function(t,e,n){Tct(e,ift(t,n))}(this.a,this.b,KR(t,166))},vq(m$t,"JsonImporter/lambda$39$Type",940),Bgt(906,1,{},Pm),vq(m$t,"JsonImporter/lambda$4$Type",906),Bgt(942,1,jSt,Bm),ZEt.Cd=function(t){!function(t,e){var n;aG(n=new Wv,"x",e.a),aG(n,"y",e.b),zq(t,n)}(this.a,KR(t,8))},vq(m$t,"JsonImporter/lambda$40$Type",942),Bgt(907,1,{},Rm),vq(m$t,"JsonImporter/lambda$5$Type",907),Bgt(911,1,{},Fm),vq(m$t,"JsonImporter/lambda$6$Type",911),Bgt(909,1,{},$m),vq(m$t,"JsonImporter/lambda$7$Type",909),Bgt(910,1,{},jm),vq(m$t,"JsonImporter/lambda$8$Type",910),Bgt(913,1,{},zm),vq(m$t,"JsonImporter/lambda$9$Type",913),Bgt(961,1,jSt,qm),ZEt.Cd=function(t){zq(this.a,new _q(HD(t)))},vq(m$t,"JsonMetaDataConverter/lambda$0$Type",961),Bgt(962,1,jSt,Hm),ZEt.Cd=function(t){!function(t,e){zq(t,new _q(null!=e.f?e.f:""+e.g))}(this.a,KR(t,245))},vq(m$t,"JsonMetaDataConverter/lambda$1$Type",962),Bgt(963,1,jSt,Um),ZEt.Cd=function(t){!function(t,e){null!=e.c&&zq(t,new _q(e.c))}(this.a,KR(t,143))},vq(m$t,"JsonMetaDataConverter/lambda$2$Type",963),Bgt(964,1,jSt,Gm),ZEt.Cd=function(t){!function(t,e){zq(t,new _q(null!=e.f?e.f:""+e.g))}(this.a,KR(t,170))},vq(m$t,"JsonMetaDataConverter/lambda$3$Type",964),Bgt(245,22,{3:1,34:1,22:1,245:1},vM);var ife,rfe,afe,ofe,sfe,cfe,lfe,ufe,hfe,ffe=Z2(sLt,"GraphFeature",245,bHt,(function(){return Ogt(),t7(rk(ffe,1),sCt,245,0,[ufe,sfe,cfe,ofe,lfe,rfe,ife,afe])}),(function(t){return Ogt(),Q2((F5(),hfe),t)}));Bgt(11,1,{34:1,149:1},Vm,AP,vL,vI),ZEt.Fd=function(t){return function(t,e){return BQ(t.b,e.Pg())}(this,KR(t,149))},ZEt.Fb=function(t){return OG(this,t)},ZEt.Sg=function(){return Rrt(this)},ZEt.Pg=function(){return this.b},ZEt.Hb=function(){return d8(this.b)},ZEt.Ib=function(){return this.b},vq(sLt,"Property",11),Bgt(671,1,iMt,Km),ZEt.Ne=function(t,e){return function(t,e,n){var i,r;return i=KR(e.of(t.a),34),r=KR(n.of(t.a),34),null!=i&&null!=r?w5(i,r):null!=i?-1:null!=r?1:0}(this,KR(t,96),KR(e,96))},ZEt.Fb=function(t){return this===t},ZEt.Oe=function(){return new wg(this)},vq(sLt,"PropertyHolderComparator",671),Bgt(709,1,TSt,Ym),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return function(t){var e;if(!t.a)throw Ay(new _U);return e=t.a,t.a=DK(t.a),e}(this)},ZEt.Qb=function(){f_()},ZEt.Ob=function(){return!!this.a},vq(O$t,"ElkGraphUtil/AncestorIterator",709);var dfe=WF(g$t,"EList");Bgt(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),ZEt.bd=function(t,e){$tt(this,t,e)},ZEt.Fc=function(t){return sJ(this,t)},ZEt.cd=function(t,e){return w7(this,t,e)},ZEt.Gc=function(t){return nq(this,t)},ZEt.Ii=function(){return new YN(this)},ZEt.Ji=function(){return new VN(this)},ZEt.Ki=function(t){return y4(this,t)},ZEt.Li=function(){return!0},ZEt.Mi=function(t,e){},ZEt.Ni=function(){},ZEt.Oi=function(t,e){XZ(this,t,e)},ZEt.Pi=function(t,e,n){},ZEt.Qi=function(t,e){},ZEt.Ri=function(t,e,n){},ZEt.Fb=function(t){return byt(this,t)},ZEt.Hb=function(){return Z6(this)},ZEt.Si=function(){return!1},ZEt.Kc=function(){return new zO(this)},ZEt.ed=function(){return new KN(this)},ZEt.fd=function(t){var e;if(e=this.gc(),t<0||t>e)throw Ay(new wB(t,e));return new Rz(this,t)},ZEt.Ui=function(t,e){this.Ti(t,this.dd(e))},ZEt.Mc=function(t){return Y1(this,t)},ZEt.Wi=function(t,e){return e},ZEt.hd=function(t,e){return gat(this,t,e)},ZEt.Ib=function(){return int(this)},ZEt.Yi=function(){return!0},ZEt.Zi=function(t,e){return f8(this,e)},vq(g$t,"AbstractEList",70),Bgt(66,70,R$t,ul,t2,_5),ZEt.Ei=function(t,e){return Glt(this,t,e)},ZEt.Fi=function(t){return lot(this,t)},ZEt.Gi=function(t,e){ptt(this,t,e)},ZEt.Hi=function(t){SQ(this,t)},ZEt.$i=function(t){return AJ(this,t)},ZEt.$b=function(){CQ(this)},ZEt.Hc=function(t){return mct(this,t)},ZEt.Xb=function(t){return l2(this,t)},ZEt._i=function(t){var e,n,i;++this.j,t>(n=null==this.g?0:this.g.length)&&(i=this.g,(e=n+(n/2|0)+4)=0&&(this.gd(e),!0)},ZEt.Xi=function(t,e){return this.Dj(t,this.Zi(t,e))},ZEt.gc=function(){return this.Ej()},ZEt.Pc=function(){return this.Fj()},ZEt.Qc=function(t){return this.Gj(t)},ZEt.Ib=function(){return this.Hj()},vq(g$t,"DelegatingEList",2093),Bgt(2094,2093,Cjt),ZEt.Ei=function(t,e){return Dvt(this,t,e)},ZEt.Fi=function(t){return this.Ei(this.Ej(),t)},ZEt.Gi=function(t,e){Ngt(this,t,e)},ZEt.Hi=function(t){ogt(this,t)},ZEt.Li=function(){return!this.Mj()},ZEt.$b=function(){Jkt(this)},ZEt.Ij=function(t,e,n,i,r){return new MG(this,t,e,n,i,r)},ZEt.Jj=function(t){Q5(this.jj(),t)},ZEt.Kj=function(){return null},ZEt.Lj=function(){return-1},ZEt.jj=function(){return null},ZEt.Mj=function(){return!1},ZEt.Nj=function(t,e){return e},ZEt.Oj=function(t,e){return e},ZEt.Pj=function(){return!1},ZEt.Qj=function(){return!this.Aj()},ZEt.Ti=function(t,e){var n,i;return this.Pj()?(i=this.Qj(),n=kut(this,t,e),this.Jj(this.Ij(7,ttt(e),n,t,i)),n):kut(this,t,e)},ZEt.gd=function(t){var e,n,i,r;return this.Pj()?(n=null,i=this.Qj(),e=this.Ij(4,r=XF(this,t),null,t,i),this.Mj()&&r?(n=this.Oj(r,n))?(n.nj(e),n.oj()):this.Jj(e):n?(n.nj(e),n.oj()):this.Jj(e),r):(r=XF(this,t),this.Mj()&&r&&(n=this.Oj(r,null))&&n.oj(),r)},ZEt.Xi=function(t,e){return Pvt(this,t,e)},vq(IFt,"DelegatingNotifyingListImpl",2094),Bgt(152,1,Ajt),ZEt.nj=function(t){return rlt(this,t)},ZEt.oj=function(){w1(this)},ZEt.gj=function(){return this.d},ZEt.Kj=function(){return null},ZEt.Rj=function(){return null},ZEt.hj=function(t){return-1},ZEt.ij=function(){return Emt(this)},ZEt.jj=function(){return null},ZEt.kj=function(){return Smt(this)},ZEt.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},ZEt.Sj=function(){return!1},ZEt.mj=function(t){var e,n,i,r,a,o,s,c;switch(this.d){case 1:case 2:switch(t.gj()){case 1:case 2:if($M(t.jj())===$M(this.jj())&&this.hj(null)==t.hj(null))return this.g=t.ij(),1==t.gj()&&(this.d=1),!0}case 4:if(4===t.gj()&&$M(t.jj())===$M(this.jj())&&this.hj(null)==t.hj(null))return o=d_t(this),a=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,i=t.lj(),this.d=6,c=new t2(2),a<=i?(sJ(c,this.n),sJ(c,t.kj()),this.g=t7(rk($pe,1),$Ct,28,15,[this.o=a,i+1])):(sJ(c,t.kj()),sJ(c,this.n),this.g=t7(rk($pe,1),$Ct,28,15,[this.o=i,a])),this.n=c,o||(this.o=-2-this.o-1),!0;break;case 6:if(4===t.gj()&&$M(t.jj())===$M(this.jj())&&this.hj(null)==t.hj(null)){for(o=d_t(this),i=t.lj(),s=KR(this.g,53),n=WZ($pe,$Ct,28,s.length+1,15,1),e=0;e>>0).toString(16))).a+=" (eventType: ",this.d){case 1:n.a+="SET";break;case 2:n.a+="UNSET";break;case 3:n.a+="ADD";break;case 5:n.a+="ADD_MANY";break;case 4:n.a+="REMOVE";break;case 6:n.a+="REMOVE_MANY";break;case 7:n.a+="MOVE";break;case 8:n.a+="REMOVING_ADAPTER";break;case 9:n.a+="RESOLVE";break;default:s_(n,this.d)}if(ywt(this)&&(n.a+=", touch: true"),n.a+=", position: ",s_(n,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),n.a+=", notifier: ",XM(n,this.jj()),n.a+=", feature: ",XM(n,this.Kj()),n.a+=", oldValue: ",XM(n,Smt(this)),n.a+=", newValue: ",6==this.d&&rO(this.g,53)){for(e=KR(this.g,53),n.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new y$(this),this.a=this.j),NT(this.b,t)):mct(this,t)},ZEt.Yi=function(){return!0},ZEt.a=0,vq(g$t,"AbstractEList/1",966),Bgt(302,77,lAt,wB),vq(g$t,"AbstractEList/BasicIndexOutOfBoundsException",302),Bgt(37,1,TSt,zO),ZEt.Nb=function(t){bz(this,t)},ZEt.Xj=function(){if(this.i.j!=this.f)throw Ay(new Jy)},ZEt.Yj=function(){return Frt(this)},ZEt.Ob=function(){return this.e!=this.i.gc()},ZEt.Pb=function(){return this.Yj()},ZEt.Qb=function(){Nct(this)},ZEt.e=0,ZEt.f=0,ZEt.g=-1,vq(g$t,"AbstractEList/EIterator",37),Bgt(286,37,NSt,KN,Rz),ZEt.Qb=function(){Nct(this)},ZEt.Rb=function(t){znt(this,t)},ZEt.Zj=function(){var t;try{return t=this.d.Xb(--this.e),this.Xj(),this.g=this.e,t}catch(t){throw rO(t=j6(t),77)?(this.Xj(),Ay(new ew)):Ay(t)}},ZEt.$j=function(t){got(this,t)},ZEt.Sb=function(){return 0!=this.e},ZEt.Tb=function(){return this.e},ZEt.Ub=function(){return this.Zj()},ZEt.Vb=function(){return this.e-1},ZEt.Wb=function(t){this.$j(t)},vq(g$t,"AbstractEList/EListIterator",286),Bgt(355,37,TSt,YN),ZEt.Yj=function(){return $rt(this)},ZEt.Qb=function(){throw Ay(new Zy)},vq(g$t,"AbstractEList/NonResolvingEIterator",355),Bgt(398,286,NSt,VN,AB),ZEt.Rb=function(t){throw Ay(new Zy)},ZEt.Yj=function(){var t;try{return t=this.c.Vi(this.e),this.Xj(),this.g=this.e++,t}catch(t){throw rO(t=j6(t),77)?(this.Xj(),Ay(new ew)):Ay(t)}},ZEt.Zj=function(){var t;try{return t=this.c.Vi(--this.e),this.Xj(),this.g=this.e,t}catch(t){throw rO(t=j6(t),77)?(this.Xj(),Ay(new ew)):Ay(t)}},ZEt.Qb=function(){throw Ay(new Zy)},ZEt.Wb=function(t){throw Ay(new Zy)},vq(g$t,"AbstractEList/NonResolvingEListIterator",398),Bgt(2080,70,Ijt),ZEt.Ei=function(t,e){var n,i,r,a,o,s,c,l,u;if(0!=(i=e.gc())){for(n=D8(this,(l=null==(c=KR(i6(this.a,4),129))?0:c.length)+i),(u=l-t)>0&&ext(c,t,n,t+i,u),s=e.Kc(),a=0;an)throw Ay(new wB(t,n));return new XH(this,t)},ZEt.$b=function(){var t,e;++this.j,e=null==(t=KR(i6(this.a,4),129))?0:t.length,vrt(this,null),XZ(this,e,t)},ZEt.Hc=function(t){var e,n,i,r;if(null!=(e=KR(i6(this.a,4),129)))if(null!=t){for(i=0,r=(n=e).length;i=(n=null==(e=KR(i6(this.a,4),129))?0:e.length))throw Ay(new wB(t,n));return e[t]},ZEt.dd=function(t){var e,n,i;if(null!=(e=KR(i6(this.a,4),129)))if(null!=t){for(n=0,i=e.length;nn)throw Ay(new wB(t,n));return new WH(this,t)},ZEt.Ti=function(t,e){var n,i,r;if(t>=(r=null==(n=vit(this))?0:n.length))throw Ay(new vx(D$t+t+P$t+r));if(e>=r)throw Ay(new vx(B$t+e+P$t+r));return i=n[e],t!=e&&(t=(o=null==(n=KR(i6(t.a,4),129))?0:n.length))throw Ay(new wB(e,o));return r=n[e],1==o?i=null:(ext(n,0,i=WZ(xfe,Ljt,424,o-1,0,1),0,e),(a=o-e-1)>0&&ext(n,e+1,i,e,a)),vrt(t,i),kft(t,e,r),r}(this,t)},ZEt.Xi=function(t,e){var n,i;return i=(n=vit(this))[t],kI(n,t,f8(this,e)),vrt(this,n),i},ZEt.gc=function(){var t;return null==(t=KR(i6(this.a,4),129))?0:t.length},ZEt.Pc=function(){var t,e,n;return n=null==(t=KR(i6(this.a,4),129))?0:t.length,e=WZ(xfe,Ljt,424,n,0,1),n>0&&ext(t,0,e,0,n),e},ZEt.Qc=function(t){var e,n;return(n=null==(e=KR(i6(this.a,4),129))?0:e.length)>0&&(t.lengthn&&Dq(t,n,null),t},vq(g$t,"ArrayDelegatingEList",2080),Bgt(1051,37,TSt,oQ),ZEt.Xj=function(){if(this.b.j!=this.f||$M(KR(i6(this.b.a,4),129))!==$M(this.a))throw Ay(new Jy)},ZEt.Qb=function(){Nct(this),this.a=KR(i6(this.b.a,4),129)},vq(g$t,"ArrayDelegatingEList/EIterator",1051),Bgt(722,286,NSt,sz,WH),ZEt.Xj=function(){if(this.b.j!=this.f||$M(KR(i6(this.b.a,4),129))!==$M(this.a))throw Ay(new Jy)},ZEt.$j=function(t){got(this,t),this.a=KR(i6(this.b.a,4),129)},ZEt.Qb=function(){Nct(this),this.a=KR(i6(this.b.a,4),129)},vq(g$t,"ArrayDelegatingEList/EListIterator",722),Bgt(1052,355,TSt,sQ),ZEt.Xj=function(){if(this.b.j!=this.f||$M(KR(i6(this.b.a,4),129))!==$M(this.a))throw Ay(new Jy)},vq(g$t,"ArrayDelegatingEList/NonResolvingEIterator",1052),Bgt(723,398,NSt,cz,XH),ZEt.Xj=function(){if(this.b.j!=this.f||$M(KR(i6(this.b.a,4),129))!==$M(this.a))throw Ay(new Jy)},vq(g$t,"ArrayDelegatingEList/NonResolvingEListIterator",723),Bgt(615,302,lAt,wL),vq(g$t,"BasicEList/BasicIndexOutOfBoundsException",615),Bgt(710,66,R$t,PM),ZEt.bd=function(t,e){throw Ay(new Zy)},ZEt.Fc=function(t){throw Ay(new Zy)},ZEt.cd=function(t,e){throw Ay(new Zy)},ZEt.Gc=function(t){throw Ay(new Zy)},ZEt.$b=function(){throw Ay(new Zy)},ZEt._i=function(t){throw Ay(new Zy)},ZEt.Kc=function(){return this.Ii()},ZEt.ed=function(){return this.Ji()},ZEt.fd=function(t){return this.Ki(t)},ZEt.Ti=function(t,e){throw Ay(new Zy)},ZEt.Ui=function(t,e){throw Ay(new Zy)},ZEt.gd=function(t){throw Ay(new Zy)},ZEt.Mc=function(t){throw Ay(new Zy)},ZEt.hd=function(t,e){throw Ay(new Zy)},vq(g$t,"BasicEList/UnmodifiableEList",710),Bgt(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),ZEt.bd=function(t,e){!function(t,e,n){t.c.bd(e,KR(n,136))}(this,t,KR(e,44))},ZEt.Fc=function(t){return function(t,e){return t.c.Fc(KR(e,136))}(this,KR(t,44))},ZEt.Jc=function(t){UX(this,t)},ZEt.Xb=function(t){return KR(l2(this.c,t),136)},ZEt.Ti=function(t,e){return KR(this.c.Ti(t,e),44)},ZEt.Ui=function(t,e){!function(t,e,n){t.c.Ui(e,KR(n,136))}(this,t,KR(e,44))},ZEt.Lc=function(){return new k$(null,new OY(this,16))},ZEt.gd=function(t){return KR(this.c.gd(t),44)},ZEt.hd=function(t,e){return function(t,e,n){return KR(t.c.hd(e,KR(n,136)),44)}(this,t,KR(e,44))},ZEt.jd=function(t){E3(this,t)},ZEt.Nc=function(){return new OY(this,16)},ZEt.Oc=function(){return new k$(null,new OY(this,16))},ZEt.cd=function(t,e){return this.c.cd(t,e)},ZEt.Gc=function(t){return this.c.Gc(t)},ZEt.$b=function(){this.c.$b()},ZEt.Hc=function(t){return this.c.Hc(t)},ZEt.Ic=function(t){return F6(this.c,t)},ZEt._j=function(){var t,e;if(null==this.d){for(this.d=WZ(gfe,Ojt,66,2*this.f+1,0,1),e=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)Nat(this,KR(t.Yj(),136));this.e=e}},ZEt.Fb=function(t){return PB(this,t)},ZEt.Hb=function(){return Z6(this.c)},ZEt.dd=function(t){return this.c.dd(t)},ZEt.ak=function(){this.c=new Wm(this)},ZEt.dc=function(){return 0==this.f},ZEt.Kc=function(){return this.c.Kc()},ZEt.ed=function(){return this.c.ed()},ZEt.fd=function(t){return this.c.fd(t)},ZEt.bk=function(){return YZ(this)},ZEt.ck=function(t,e,n){return new ER(t,e,n)},ZEt.dk=function(){return new fl},ZEt.Mc=function(t){return b4(this,t)},ZEt.gc=function(){return this.f},ZEt.kd=function(t,e){return new yY(this.c,t,e)},ZEt.Pc=function(){return this.c.Pc()},ZEt.Qc=function(t){return this.c.Qc(t)},ZEt.Ib=function(){return int(this.c)},ZEt.e=0,ZEt.f=0,vq(g$t,"BasicEMap",721),Bgt(1046,66,R$t,Wm),ZEt.Mi=function(t,e){!function(t,e){Nat(t.a,e)}(this,KR(e,136))},ZEt.Pi=function(t,e,n){++(this,KR(e,136),this).a.e},ZEt.Qi=function(t,e){!function(t,e){Qtt(t.a,e)}(this,KR(e,136))},ZEt.Ri=function(t,e,n){!function(t,e,n){Qtt(t.a,n),Nat(t.a,e)}(this,KR(e,136),KR(n,136))},ZEt.Oi=function(t,e){n6(this.a)},vq(g$t,"BasicEMap/1",1046),Bgt(1047,66,R$t,fl),ZEt.aj=function(t){return WZ(Tfe,Njt,621,t,0,1)},vq(g$t,"BasicEMap/2",1047),Bgt(1048,ASt,MSt,Xm),ZEt.$b=function(){this.a.c.$b()},ZEt.Hc=function(t){return Bnt(this.a,t)},ZEt.Kc=function(){return 0==this.a.f?(WD(),_fe.a):new jk(this.a)},ZEt.Mc=function(t){var e;return e=this.a.f,Nit(this.a,t),this.a.f!=e},ZEt.gc=function(){return this.a.f},vq(g$t,"BasicEMap/3",1048),Bgt(1049,31,CSt,Qm),ZEt.$b=function(){this.a.c.$b()},ZEt.Hc=function(t){return myt(this.a,t)},ZEt.Kc=function(){return 0==this.a.f?(WD(),_fe.a):new zk(this.a)},ZEt.gc=function(){return this.a.f},vq(g$t,"BasicEMap/4",1049),Bgt(1050,ASt,MSt,Zm),ZEt.$b=function(){this.a.c.$b()},ZEt.Hc=function(t){var e,n,i,r,a,o,s,c,l;if(this.a.f>0&&rO(t,44)&&(this.a._j(),r=null==(s=(c=KR(t,44)).ld())?0:N3(s),a=_P(this.a,r),e=this.a.d[a]))for(n=KR(e.g,379),l=e.i,o=0;o"+this.c},ZEt.a=0;var _fe,Tfe=vq(g$t,"BasicEMap/EntryImpl",621);Bgt(546,1,{},dl),vq(g$t,"BasicEMap/View",546),Bgt(783,1,{}),ZEt.Fb=function(t){return Ygt((QU(),NUt),t)},ZEt.Hb=function(){return Z7((QU(),NUt))},ZEt.Ib=function(){return Tut((QU(),NUt))},vq(g$t,"ECollections/BasicEmptyUnmodifiableEList",783),Bgt(1348,1,NSt,gl),ZEt.Nb=function(t){bz(this,t)},ZEt.Rb=function(t){throw Ay(new Zy)},ZEt.Ob=function(){return!1},ZEt.Sb=function(){return!1},ZEt.Pb=function(){throw Ay(new ew)},ZEt.Tb=function(){return 0},ZEt.Ub=function(){throw Ay(new ew)},ZEt.Vb=function(){return-1},ZEt.Qb=function(){throw Ay(new Zy)},ZEt.Wb=function(t){throw Ay(new Zy)},vq(g$t,"ECollections/BasicEmptyUnmodifiableEList/1",1348),Bgt(1346,783,{20:1,16:1,15:1,61:1},Jw),ZEt.bd=function(t,e){N_()},ZEt.Fc=function(t){return D_()},ZEt.cd=function(t,e){return P_()},ZEt.Gc=function(t){return B_()},ZEt.$b=function(){R_()},ZEt.Hc=function(t){return!1},ZEt.Ic=function(t){return!1},ZEt.Jc=function(t){UX(this,t)},ZEt.Xb=function(t){return lL((QU(),t)),null},ZEt.dd=function(t){return-1},ZEt.dc=function(){return!0},ZEt.Kc=function(){return this.a},ZEt.ed=function(){return this.a},ZEt.fd=function(t){return this.a},ZEt.Ti=function(t,e){return F_()},ZEt.Ui=function(t,e){$_()},ZEt.Lc=function(){return new k$(null,new OY(this,16))},ZEt.gd=function(t){return j_()},ZEt.Mc=function(t){return z_()},ZEt.hd=function(t,e){return q_()},ZEt.gc=function(){return 0},ZEt.jd=function(t){E3(this,t)},ZEt.Nc=function(){return new OY(this,16)},ZEt.Oc=function(){return new k$(null,new OY(this,16))},ZEt.kd=function(t,e){return QU(),new yY(NUt,t,e)},ZEt.Pc=function(){return Tj((QU(),NUt))},ZEt.Qc=function(t){return QU(),pot(NUt,t)},vq(g$t,"ECollections/EmptyUnmodifiableEList",1346),Bgt(1347,783,{20:1,16:1,15:1,61:1,597:1},tv),ZEt.bd=function(t,e){N_()},ZEt.Fc=function(t){return D_()},ZEt.cd=function(t,e){return P_()},ZEt.Gc=function(t){return B_()},ZEt.$b=function(){R_()},ZEt.Hc=function(t){return!1},ZEt.Ic=function(t){return!1},ZEt.Jc=function(t){UX(this,t)},ZEt.Xb=function(t){return lL((QU(),t)),null},ZEt.dd=function(t){return-1},ZEt.dc=function(){return!0},ZEt.Kc=function(){return this.a},ZEt.ed=function(){return this.a},ZEt.fd=function(t){return this.a},ZEt.Ti=function(t,e){return F_()},ZEt.Ui=function(t,e){$_()},ZEt.Lc=function(){return new k$(null,new OY(this,16))},ZEt.gd=function(t){return j_()},ZEt.Mc=function(t){return z_()},ZEt.hd=function(t,e){return q_()},ZEt.gc=function(){return 0},ZEt.jd=function(t){E3(this,t)},ZEt.Nc=function(){return new OY(this,16)},ZEt.Oc=function(){return new k$(null,new OY(this,16))},ZEt.kd=function(t,e){return QU(),new yY(NUt,t,e)},ZEt.Pc=function(){return Tj((QU(),NUt))},ZEt.Qc=function(t){return QU(),pot(NUt,t)},ZEt.bk=function(){return QU(),QU(),DUt},vq(g$t,"ECollections/EmptyUnmodifiableEMap",1347);var Efe,Sfe=WF(g$t,"Enumerator");Bgt(288,1,{288:1},Tyt),ZEt.Fb=function(t){var e;return this===t||!!rO(t,288)&&(e=KR(t,288),this.f==e.f&&function(t,e){return null==t?null==e:Git(t,e)}(this.i,e.i)&&S$(this.a,256&this.f?256&e.f?e.a:null:256&e.f?null:e.a)&&S$(this.d,e.d)&&S$(this.g,e.g)&&S$(this.e,e.e)&&function(t,e){var n,i;if(t.j.length!=e.j.length)return!1;for(n=0,i=t.j.length;n=0?t.ki(n):edt(t,e)},vq(jFt,"BasicEObjectImpl/4",1040),Bgt(2081,1,{114:1}),ZEt.Mk=function(t){this.e=0==t?Ide:WZ(nHt,pSt,1,t,5,1)},ZEt.li=function(t){return this.e[t]},ZEt.mi=function(t,e){this.e[t]=e},ZEt.ni=function(t){this.e[t]=null},ZEt.Nk=function(){return this.c},ZEt.Ok=function(){throw Ay(new Zy)},ZEt.Pk=function(){throw Ay(new Zy)},ZEt.Qk=function(){return this.d},ZEt.Rk=function(){return null!=this.e},ZEt.Sk=function(t){this.c=t},ZEt.Tk=function(t){throw Ay(new Zy)},ZEt.Uk=function(t){throw Ay(new Zy)},ZEt.Vk=function(t){this.d=t},vq(jFt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),Bgt(192,2081,{114:1},Cf),ZEt.Ok=function(){return this.a},ZEt.Pk=function(){return this.b},ZEt.Tk=function(t){this.a=t},ZEt.Uk=function(t){this.b=t},vq(jFt,"BasicEObjectImpl/EPropertiesHolderImpl",192),Bgt(516,99,$Ft,pl),ZEt.uh=function(){return this.f},ZEt.zh=function(){return this.k},ZEt.Bh=function(t,e){this.g=t,this.i=e},ZEt.Dh=function(){return 2&this.j?this.$h().Nk():this.ii()},ZEt.Fh=function(){return this.i},ZEt.wh=function(){return 0!=(1&this.j)},ZEt.Ph=function(){return this.g},ZEt.Vh=function(){return 0!=(4&this.j)},ZEt.$h=function(){return!this.k&&(this.k=new Cf),this.k},ZEt.ci=function(t){this.$h().Sk(t),t?this.j|=2:this.j&=-3},ZEt.ei=function(t){this.$h().Uk(t),t?this.j|=4:this.j&=-5},ZEt.ii=function(){return(Aq(),sde).S},ZEt.i=0,ZEt.j=1,vq(jFt,"EObjectImpl",516),Bgt(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},yF),ZEt.li=function(t){return this.e[t]},ZEt.mi=function(t,e){this.e[t]=e},ZEt.ni=function(t){this.e[t]=null},ZEt.Dh=function(){return this.d},ZEt.Ih=function(t){return knt(this.d,t)},ZEt.Kh=function(){return this.d},ZEt.Oh=function(){return null!=this.e},ZEt.$h=function(){return!this.k&&(this.k=new bl),this.k},ZEt.ci=function(t){this.d=t},ZEt.hi=function(){var t;return null==this.e&&(t=Lq(this.d),this.e=0==t?Ode:WZ(nHt,pSt,1,t,5,1)),this},ZEt.ji=function(){return 0},vq(jFt,"DynamicEObjectImpl",798),Bgt(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},GF),ZEt.Fb=function(t){return this===t},ZEt.Hb=function(){return DN(this)},ZEt.ci=function(t){this.d=t,this.b=Bbt(t,"key"),this.c=Bbt(t,XFt)},ZEt.Bi=function(){var t;return-1==this.a&&(t=B1(this,this.b),this.a=null==t?0:N3(t)),this.a},ZEt.ld=function(){return B1(this,this.b)},ZEt.md=function(){return B1(this,this.c)},ZEt.Ci=function(t){this.a=t},ZEt.Di=function(t){_K(this,this.b,t)},ZEt.nd=function(t){var e;return e=B1(this,this.c),_K(this,this.c,t),e},ZEt.a=0,vq(jFt,"DynamicEObjectImpl/BasicEMapEntry",1522),Bgt(1523,1,{114:1},bl),ZEt.Mk=function(t){throw Ay(new Zy)},ZEt.li=function(t){throw Ay(new Zy)},ZEt.mi=function(t,e){throw Ay(new Zy)},ZEt.ni=function(t){throw Ay(new Zy)},ZEt.Nk=function(){throw Ay(new Zy)},ZEt.Ok=function(){return this.a},ZEt.Pk=function(){return this.b},ZEt.Qk=function(){return this.c},ZEt.Rk=function(){throw Ay(new Zy)},ZEt.Sk=function(t){throw Ay(new Zy)},ZEt.Tk=function(t){this.a=t},ZEt.Uk=function(t){this.b=t},ZEt.Vk=function(t){this.c=t},vq(jFt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),Bgt(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},ml),ZEt.Ah=function(t){return Nst(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new TD((KEt(),Cde),Jde,this)),this.b):(!this.b&&(this.b=new TD((KEt(),Cde),Jde,this)),YZ(this.b));case 3:return BK(this);case 4:return!this.a&&(this.a=new AO($he,this,4)),this.a;case 5:return!this.c&&(this.c=new BO($he,this,5)),this.c}return OJ(this,t-Lq((KEt(),cde)),N0(KR(i6(this,16),29)||cde,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?Nst(this,n):this.Cb.Th(this,-1-i,null,n)),pj(this,KR(t,155),n)}return KR(N0(KR(i6(this,16),29)||(KEt(),cde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),cde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 2:return!this.b&&(this.b=new TD((KEt(),Cde),Jde,this)),BB(this.b,t,n);case 3:return pj(this,null,n);case 4:return!this.a&&(this.a=new AO($he,this,4)),cat(this.a,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),cde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),cde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!BK(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return AW(this,t-Lq((KEt(),cde)),N0(KR(i6(this,16),29)||cde,t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void function(t,e){J4(t,null==e?null:(yH(e),e))}(this,HD(e));case 2:return!this.b&&(this.b=new TD((KEt(),Cde),Jde,this)),void L5(this.b,e);case 3:return void Obt(this,KR(e,155));case 4:return!this.a&&(this.a=new AO($he,this,4)),Vkt(this.a),!this.a&&(this.a=new AO($he,this,4)),void nq(this.a,KR(e,16));case 5:return!this.c&&(this.c=new BO($he,this,5)),Vkt(this.c),!this.c&&(this.c=new BO($he,this,5)),void nq(this.c,KR(e,16))}Wet(this,t-Lq((KEt(),cde)),N0(KR(i6(this,16),29)||cde,t),e)},ZEt.ii=function(){return KEt(),cde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void J4(this,null);case 2:return!this.b&&(this.b=new TD((KEt(),Cde),Jde,this)),void this.b.c.$b();case 3:return void Obt(this,null);case 4:return!this.a&&(this.a=new AO($he,this,4)),void Vkt(this.a);case 5:return!this.c&&(this.c=new BO($he,this,5)),void Vkt(this.c)}vtt(this,t-Lq((KEt(),cde)),N0(KR(i6(this,16),29)||cde,t))},ZEt.Ib=function(){return ktt(this)},ZEt.d=null,vq(jFt,"EAnnotationImpl",519),Bgt(141,721,Wjt,mJ),ZEt.Gi=function(t,e){!function(t,e,n){KR(t.c,71).Gi(e,n)}(this,t,KR(e,44))},ZEt.Wk=function(t,e){return function(t,e,n){return KR(t.c,71).Wk(e,n)}(this,KR(t,44),e)},ZEt.$i=function(t){return KR(KR(this.c,71).$i(t),136)},ZEt.Ii=function(){return KR(this.c,71).Ii()},ZEt.Ji=function(){return KR(this.c,71).Ji()},ZEt.Ki=function(t){return KR(this.c,71).Ki(t)},ZEt.Xk=function(t,e){return BB(this,t,e)},ZEt.Fk=function(t){return KR(this.c,79).Fk(t)},ZEt.ak=function(){},ZEt.Qj=function(){return KR(this.c,79).Qj()},ZEt.ck=function(t,e,n){var i;return(i=KR(r2(this.b).wi().si(this.b),136)).Ci(t),i.Di(e),i.nd(n),i},ZEt.dk=function(){return new gy(this)},ZEt.Wb=function(t){L5(this,t)},ZEt.Gk=function(){KR(this.c,79).Gk()},vq(Yjt,"EcoreEMap",141),Bgt(165,141,Wjt,TD),ZEt._j=function(){var t,e,n,i,r;if(null==this.d){for(r=WZ(gfe,Ojt,66,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)!(t=r[i=((e=KR(n.Yj(),136)).Bi()&lSt)%r.length])&&(t=r[i]=new gy(this)),t.Fc(e);this.d=r}},vq(jFt,"EAnnotationImpl/1",165),Bgt(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),!!this.Jk();case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q}return OJ(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 9:return iq(this,n)}return KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().Ak(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i)}return AW(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.bi=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void this.ui(HD(e));case 2:return void Ttt(this,dx(zD(e)));case 3:return void Ctt(this,dx(zD(e)));case 4:return void j2(this,KR(e,17).a);case 5:return void this.Zk(KR(e,17).a);case 8:return void g9(this,KR(e,142));case 9:return void((n=Klt(this,KR(e,89),null))&&n.oj())}Wet(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e)},ZEt.ii=function(){return KEt(),Mde},ZEt.ki=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void this.ui(null);case 2:return void Ttt(this,!0);case 3:return void Ctt(this,!0);case 4:return void j2(this,0);case 5:return void this.Zk(1);case 8:return void g9(this,null);case 9:return void((e=Klt(this,null,null))&&e.oj())}vtt(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.pi=function(){qst(this),this.Bb|=1},ZEt.Hk=function(){return qst(this)},ZEt.Ik=function(){return this.t},ZEt.Jk=function(){var t;return(t=this.t)>1||-1==t},ZEt.Si=function(){return 0!=(512&this.Bb)},ZEt.Yk=function(t,e){return dtt(this,t,e)},ZEt.Zk=function(t){z2(this,t)},ZEt.Ib=function(){return fgt(this)},ZEt.s=0,ZEt.t=1,vq(jFt,"ETypedElementImpl",292),Bgt(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),ZEt.Ah=function(t){return cst(this,t)},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),!!this.Jk();case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q;case 10:return FN(),!!(this.Bb&rCt);case 11:return FN(),!!(this.Bb&Zjt);case 12:return FN(),!!(this.Bb&gAt);case 13:return this.j;case 14:return ubt(this);case 15:return FN(),!!(this.Bb&Qjt);case 16:return FN(),!!(this.Bb&FSt);case 17:return PK(this)}return OJ(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 17:return this.Cb&&(n=(i=this.Db>>16)>=0?cst(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,17,n)}return KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().zk(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 9:return iq(this,n);case 17:return svt(this,null,17,n)}return KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().Ak(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.Jk();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i);case 10:return 0==(this.Bb&rCt);case 11:return 0!=(this.Bb&Zjt);case 12:return 0!=(this.Bb&gAt);case 13:return null!=this.j;case 14:return null!=ubt(this);case 15:return 0!=(this.Bb&Qjt);case 16:return 0!=(this.Bb&FSt);case 17:return!!PK(this)}return AW(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.bi=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void lY(this,HD(e));case 2:return void Ttt(this,dx(zD(e)));case 3:return void Ctt(this,dx(zD(e)));case 4:return void j2(this,KR(e,17).a);case 5:return void this.Zk(KR(e,17).a);case 8:return void g9(this,KR(e,142));case 9:return void((n=Klt(this,KR(e,89),null))&&n.oj());case 10:return void Ztt(this,dx(zD(e)));case 11:return void eet(this,dx(zD(e)));case 12:return void Jtt(this,dx(zD(e)));case 13:return void TM(this,HD(e));case 15:return void tet(this,dx(zD(e)));case 16:return void _et(this,dx(zD(e)))}Wet(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e)},ZEt.ii=function(){return KEt(),Ade},ZEt.ki=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,90)&&jft(aQ(KR(this.Cb,90)),4),void B3(this,null);case 2:return void Ttt(this,!0);case 3:return void Ctt(this,!0);case 4:return void j2(this,0);case 5:return void this.Zk(1);case 8:return void g9(this,null);case 9:return void((e=Klt(this,null,null))&&e.oj());case 10:return void Ztt(this,!0);case 11:return void eet(this,!1);case 12:return void Jtt(this,!1);case 13:return this.i=null,void s3(this,null);case 15:return void tet(this,!1);case 16:return void _et(this,!1)}vtt(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.pi=function(){KH(T1((Xht(),age),this)),qst(this),this.Bb|=1},ZEt.pk=function(){return this.f},ZEt.ik=function(){return ubt(this)},ZEt.qk=function(){return PK(this)},ZEt.uk=function(){return null},ZEt.$k=function(){return this.k},ZEt.Lj=function(){return this.n},ZEt.vk=function(){return qct(this)},ZEt.wk=function(){var t,e,n,i,r,a,o,s,c;return this.p||((null==(n=PK(this)).i&&uxt(n),n.i).length,(i=this.uk())&&Lq(PK(i)),t=(o=(r=qst(this)).kk())?1&o.i?o==jpe?KHt:o==$pe?nUt:o==Upe?JHt:o==Hpe?ZHt:o==zpe?cUt:o==Gpe?uUt:o==qpe?VHt:QHt:o:null,e=ubt(this),s=r.ik(),Bet(this),this.Bb&FSt&&((a=pct((Xht(),age),n))&&a!=this||(a=KY(T1(age,this))))?this.p=new LM(this,a):this.Jk()?this.al()?i?this.Bb&Qjt?t?this.bl()?this.p=new SU(47,t,this,i):this.p=new SU(5,t,this,i):this.bl()?this.p=new cX(46,this,i):this.p=new cX(4,this,i):t?this.bl()?this.p=new SU(49,t,this,i):this.p=new SU(7,t,this,i):this.bl()?this.p=new cX(48,this,i):this.p=new cX(6,this,i):this.Bb&Qjt?t?t==dHt?this.p=new SR(50,efe,this):this.bl()?this.p=new SR(43,t,this):this.p=new SR(1,t,this):this.bl()?this.p=new SG(42,this):this.p=new SG(0,this):t?t==dHt?this.p=new SR(41,efe,this):this.bl()?this.p=new SR(45,t,this):this.p=new SR(3,t,this):this.bl()?this.p=new SG(44,this):this.p=new SG(2,this):rO(r,156)?t==Fde?this.p=new SG(40,this):512&this.Bb?this.Bb&Qjt?this.p=t?new SR(9,t,this):new SG(8,this):this.p=t?new SR(11,t,this):new SG(10,this):this.Bb&Qjt?this.p=t?new SR(13,t,this):new SG(12,this):this.p=t?new SR(15,t,this):new SG(14,this):i?(c=i.t)>1||-1==c?this.bl()?this.Bb&Qjt?this.p=t?new SU(25,t,this,i):new cX(24,this,i):this.p=t?new SU(27,t,this,i):new cX(26,this,i):this.Bb&Qjt?this.p=t?new SU(29,t,this,i):new cX(28,this,i):this.p=t?new SU(31,t,this,i):new cX(30,this,i):this.bl()?this.Bb&Qjt?this.p=t?new SU(33,t,this,i):new cX(32,this,i):this.p=t?new SU(35,t,this,i):new cX(34,this,i):this.Bb&Qjt?this.p=t?new SU(37,t,this,i):new cX(36,this,i):this.p=t?new SU(39,t,this,i):new cX(38,this,i):this.bl()?this.Bb&Qjt?this.p=t?new SR(17,t,this):new SG(16,this):this.p=t?new SR(19,t,this):new SG(18,this):this.Bb&Qjt?this.p=t?new SR(21,t,this):new SG(20,this):this.p=t?new SR(23,t,this):new SG(22,this):this._k()?this.bl()?this.p=new CR(KR(r,29),this,i):this.p=new XG(KR(r,29),this,i):rO(r,156)?t==Fde?this.p=new SG(40,this):this.Bb&Qjt?this.p=t?new fj(e,s,this,(qnt(),o==$pe?Wde:o==jpe?Ude:o==zpe?Xde:o==Upe?Vde:o==Hpe?Yde:o==Gpe?Zde:o==qpe?Gde:o==Fpe?Kde:Qde)):new MU(KR(r,156),e,s,this):this.p=t?new hj(e,s,this,(qnt(),o==$pe?Wde:o==jpe?Ude:o==zpe?Xde:o==Upe?Vde:o==Hpe?Yde:o==Gpe?Zde:o==qpe?Gde:o==Fpe?Kde:Qde)):new AU(KR(r,156),e,s,this):this.al()?i?this.Bb&Qjt?this.bl()?this.p=new NR(KR(r,29),this,i):this.p=new OR(KR(r,29),this,i):this.bl()?this.p=new IR(KR(r,29),this,i):this.p=new AR(KR(r,29),this,i):this.Bb&Qjt?this.bl()?this.p=new DD(KR(r,29),this):this.p=new OD(KR(r,29),this):this.bl()?this.p=new ID(KR(r,29),this):this.p=new LD(KR(r,29),this):this.bl()?i?this.Bb&Qjt?this.p=new DR(KR(r,29),this,i):this.p=new MR(KR(r,29),this,i):this.Bb&Qjt?this.p=new PD(KR(r,29),this):this.p=new ND(KR(r,29),this):i?this.Bb&Qjt?this.p=new PR(KR(r,29),this,i):this.p=new LR(KR(r,29),this,i):this.Bb&Qjt?this.p=new BD(KR(r,29),this):this.p=new P$(KR(r,29),this)),this.p},ZEt.rk=function(){return 0!=(this.Bb&rCt)},ZEt._k=function(){return!1},ZEt.al=function(){return!1},ZEt.sk=function(){return 0!=(this.Bb&FSt)},ZEt.xk=function(){return G1(this)},ZEt.bl=function(){return!1},ZEt.tk=function(){return 0!=(this.Bb&Qjt)},ZEt.cl=function(t){this.k=t},ZEt.ui=function(t){lY(this,t)},ZEt.Ib=function(){return zyt(this)},ZEt.e=!1,ZEt.n=0,vq(jFt,"EStructuralFeatureImpl",462),Bgt(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},rv),ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),!!_dt(this);case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q;case 10:return FN(),!!(this.Bb&rCt);case 11:return FN(),!!(this.Bb&Zjt);case 12:return FN(),!!(this.Bb&gAt);case 13:return this.j;case 14:return ubt(this);case 15:return FN(),!!(this.Bb&Qjt);case 16:return FN(),!!(this.Bb&FSt);case 17:return PK(this);case 18:return FN(),!!(this.Bb&FFt);case 19:return e?R6(this):tZ(this)}return OJ(this,t-Lq((KEt(),lde)),N0(KR(i6(this,16),29)||lde,t),e,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return _dt(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i);case 10:return 0==(this.Bb&rCt);case 11:return 0!=(this.Bb&Zjt);case 12:return 0!=(this.Bb&gAt);case 13:return null!=this.j;case 14:return null!=ubt(this);case 15:return 0!=(this.Bb&Qjt);case 16:return 0!=(this.Bb&FSt);case 17:return!!PK(this);case 18:return 0!=(this.Bb&FFt);case 19:return!!tZ(this)}return AW(this,t-Lq((KEt(),lde)),N0(KR(i6(this,16),29)||lde,t))},ZEt.bi=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void lY(this,HD(e));case 2:return void Ttt(this,dx(zD(e)));case 3:return void Ctt(this,dx(zD(e)));case 4:return void j2(this,KR(e,17).a);case 5:return void Gk(this,KR(e,17).a);case 8:return void g9(this,KR(e,142));case 9:return void((n=Klt(this,KR(e,89),null))&&n.oj());case 10:return void Ztt(this,dx(zD(e)));case 11:return void eet(this,dx(zD(e)));case 12:return void Jtt(this,dx(zD(e)));case 13:return void TM(this,HD(e));case 15:return void tet(this,dx(zD(e)));case 16:return void _et(this,dx(zD(e)));case 18:return void xet(this,dx(zD(e)))}Wet(this,t-Lq((KEt(),lde)),N0(KR(i6(this,16),29)||lde,t),e)},ZEt.ii=function(){return KEt(),lde},ZEt.ki=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,90)&&jft(aQ(KR(this.Cb,90)),4),void B3(this,null);case 2:return void Ttt(this,!0);case 3:return void Ctt(this,!0);case 4:return void j2(this,0);case 5:return this.b=0,void z2(this,1);case 8:return void g9(this,null);case 9:return void((e=Klt(this,null,null))&&e.oj());case 10:return void Ztt(this,!0);case 11:return void eet(this,!1);case 12:return void Jtt(this,!1);case 13:return this.i=null,void s3(this,null);case 15:return void tet(this,!1);case 16:return void _et(this,!1);case 18:return void xet(this,!1)}vtt(this,t-Lq((KEt(),lde)),N0(KR(i6(this,16),29)||lde,t))},ZEt.pi=function(){R6(this),KH(T1((Xht(),age),this)),qst(this),this.Bb|=1},ZEt.Jk=function(){return _dt(this)},ZEt.Yk=function(t,e){return this.b=0,this.a=null,dtt(this,t,e)},ZEt.Zk=function(t){Gk(this,t)},ZEt.Ib=function(){var t;return 64&this.Db?zyt(this):((t=new gN(zyt(this))).a+=" (iD: ",c_(t,0!=(this.Bb&FFt)),t.a+=")",t.a)},ZEt.b=0,vq(jFt,"EAttributeImpl",331),Bgt(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),ZEt.dl=function(t){return t.Dh()==this},ZEt.Ah=function(t){return Yot(this,t)},ZEt.Bh=function(t,e){this.w=null,this.Db=e<<16|255&this.Db,this.Cb=t},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return zot(this);case 4:return this.ik();case 5:return this.F;case 6:return e?r2(this):OK(this);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),this.A}return OJ(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?Yot(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,6,n)}return KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().zk(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 6:return svt(this,null,6,n);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),cat(this.A,t,n)}return KR(N0(KR(i6(this,16),29)||this.ii(),e),69).wk().Ak(this,jit(this),e-Lq(this.ii()),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!zot(this);case 4:return null!=this.ik();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!OK(this);case 7:return!!this.A&&0!=this.A.i}return AW(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void cY(this,HD(e));case 2:return void aI(this,HD(e));case 5:return void Y_t(this,HD(e));case 7:return!this.A&&(this.A=new NO(Bde,this,7)),Vkt(this.A),!this.A&&(this.A=new NO(Bde,this,7)),void nq(this.A,KR(e,16))}Wet(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t),e)},ZEt.ii=function(){return KEt(),hde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,184)&&(KR(this.Cb,184).tb=null),void B3(this,null);case 2:return K8(this,null),void H2(this,this.D);case 5:return void Y_t(this,null);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),void Vkt(this.A)}vtt(this,t-Lq(this.ii()),N0(KR(i6(this,16),29)||this.ii(),t))},ZEt.hk=function(){var t;return-1==this.G&&(this.G=(t=r2(this))?dat(t.vi(),this):-1),this.G},ZEt.ik=function(){return null},ZEt.jk=function(){return r2(this)},ZEt.el=function(){return this.v},ZEt.kk=function(){return zot(this)},ZEt.lk=function(){return null!=this.D?this.D:this.B},ZEt.mk=function(){return this.F},ZEt.fk=function(t){return Yvt(this,t)},ZEt.fl=function(t){this.v=t},ZEt.gl=function(t){K3(this,t)},ZEt.hl=function(t){this.C=t},ZEt.ui=function(t){cY(this,t)},ZEt.Ib=function(){return Ont(this)},ZEt.C=null,ZEt.D=null,ZEt.G=-1,vq(jFt,"EClassifierImpl",364),Bgt(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},Nf),ZEt.dl=function(t){return function(t,e){return e==t||mct(ebt(e),t)}(this,t.Dh())},ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return zot(this);case 4:return null;case 5:return this.F;case 6:return e?r2(this):OK(this);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),this.A;case 8:return FN(),!!(256&this.Bb);case 9:return FN(),!!(512&this.Bb);case 10:return PG(this);case 11:return!this.q&&(this.q=new ez(nde,this,11,10)),this.q;case 12:return okt(this);case 13:return Qxt(this);case 14:return Qxt(this),this.r;case 15:return okt(this),this.k;case 16:return pft(this);case 17:return Pxt(this);case 18:return uxt(this);case 19:return ebt(this);case 20:return okt(this),this.o;case 21:return!this.s&&(this.s=new ez(Kfe,this,21,17)),this.s;case 22:return JW(this);case 23:return fyt(this)}return OJ(this,t-Lq((KEt(),ude)),N0(KR(i6(this,16),29)||ude,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?Yot(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,6,n);case 11:return!this.q&&(this.q=new ez(nde,this,11,10)),Vnt(this.q,t,n);case 21:return!this.s&&(this.s=new ez(Kfe,this,21,17)),Vnt(this.s,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),ude),e),69).wk().zk(this,jit(this),e-Lq((KEt(),ude)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 6:return svt(this,null,6,n);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),cat(this.A,t,n);case 11:return!this.q&&(this.q=new ez(nde,this,11,10)),cat(this.q,t,n);case 21:return!this.s&&(this.s=new ez(Kfe,this,21,17)),cat(this.s,t,n);case 22:return cat(JW(this),t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),ude),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),ude)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!zot(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!OK(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0!=(256&this.Bb);case 9:return 0!=(512&this.Bb);case 10:return!(!this.u||0==JW(this.u.a).i||this.n&&jat(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=okt(this).i;case 13:return 0!=Qxt(this).i;case 14:return Qxt(this),0!=this.r.i;case 15:return okt(this),0!=this.k.i;case 16:return 0!=pft(this).i;case 17:return 0!=Pxt(this).i;case 18:return 0!=uxt(this).i;case 19:return 0!=ebt(this).i;case 20:return okt(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&jat(this.n);case 23:return 0!=fyt(this).i}return AW(this,t-Lq((KEt(),ude)),N0(KR(i6(this,16),29)||ude,t))},ZEt.Zh=function(t){return(null==this.i||this.q&&0!=this.q.i?null:Bbt(this,t))||NTt(this,t)},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void cY(this,HD(e));case 2:return void aI(this,HD(e));case 5:return void Y_t(this,HD(e));case 7:return!this.A&&(this.A=new NO(Bde,this,7)),Vkt(this.A),!this.A&&(this.A=new NO(Bde,this,7)),void nq(this.A,KR(e,16));case 8:return void Ett(this,dx(zD(e)));case 9:return void Att(this,dx(zD(e)));case 10:return Jkt(PG(this)),void nq(PG(this),KR(e,16));case 11:return!this.q&&(this.q=new ez(nde,this,11,10)),Vkt(this.q),!this.q&&(this.q=new ez(nde,this,11,10)),void nq(this.q,KR(e,16));case 21:return!this.s&&(this.s=new ez(Kfe,this,21,17)),Vkt(this.s),!this.s&&(this.s=new ez(Kfe,this,21,17)),void nq(this.s,KR(e,16));case 22:return Vkt(JW(this)),void nq(JW(this),KR(e,16))}Wet(this,t-Lq((KEt(),ude)),N0(KR(i6(this,16),29)||ude,t),e)},ZEt.ii=function(){return KEt(),ude},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,184)&&(KR(this.Cb,184).tb=null),void B3(this,null);case 2:return K8(this,null),void H2(this,this.D);case 5:return void Y_t(this,null);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),void Vkt(this.A);case 8:return void Ett(this,!1);case 9:return void Att(this,!1);case 10:return void(this.u&&Jkt(this.u));case 11:return!this.q&&(this.q=new ez(nde,this,11,10)),void Vkt(this.q);case 21:return!this.s&&(this.s=new ez(Kfe,this,21,17)),void Vkt(this.s);case 22:return void(this.n&&Vkt(this.n))}vtt(this,t-Lq((KEt(),ude)),N0(KR(i6(this,16),29)||ude,t))},ZEt.pi=function(){var t,e,n;if(okt(this),Qxt(this),pft(this),Pxt(this),uxt(this),ebt(this),fyt(this),CQ((!(n=aQ(this)).c&&(n.c=new Pl),n.c)),this.s)for(t=0,e=this.s.i;t=0;--e)l2(this,e);return Int(this,t)},ZEt.Gk=function(){Vkt(this)},ZEt.Zi=function(t,e){return Y2(this,0,e)},vq(Yjt,"EcoreEList",632),Bgt(505,632,uzt,bF),ZEt.Li=function(){return!1},ZEt.Lj=function(){return this.c},ZEt.Mj=function(){return!1},ZEt.ol=function(){return!0},ZEt.Si=function(){return!0},ZEt.Wi=function(t,e){return e},ZEt.Yi=function(){return!1},ZEt.c=0,vq(Yjt,"EObjectEList",505),Bgt(83,505,uzt,AO),ZEt.Mj=function(){return!0},ZEt.ml=function(){return!1},ZEt.al=function(){return!0},vq(Yjt,"EObjectContainmentEList",83),Bgt(555,83,uzt,MO),ZEt.Ni=function(){this.b=!0},ZEt.Qj=function(){return this.b},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.b,this.b=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.b=!1},ZEt.b=!1,vq(Yjt,"EObjectContainmentEList/Unsettable",555),Bgt(1161,555,uzt,lj),ZEt.Ti=function(t,e){var n,i;return n=KR(Xtt(this,t,e),89),ZL(this.e)&&cw(this,new wJ(this.a,7,(KEt(),fde),ttt(e),rO(i=n.c,90)?KR(i,29):xde,t)),n},ZEt.Uj=function(t,e){return function(t,e,n){var i,r;return i=new M1(t.e,3,10,null,rO(r=e.c,90)?KR(r,29):(KEt(),xde),dat(t,e),!1),n?n.nj(i):n=i,n}(this,KR(t,89),e)},ZEt.Vj=function(t,e){return function(t,e,n){var i,r;return i=new M1(t.e,4,10,rO(r=e.c,90)?KR(r,29):(KEt(),xde),null,dat(t,e),!1),n?n.nj(i):n=i,n}(this,KR(t,89),e)},ZEt.Wj=function(t,e,n){return function(t,e,n,i){var r,a,o;return r=new M1(t.e,1,10,rO(o=e.c,90)?KR(o,29):(KEt(),xde),rO(a=n.c,90)?KR(a,29):(KEt(),xde),dat(t,e),!1),i?i.nj(r):i=r,i}(this,KR(t,89),KR(e,89),n)},ZEt.Ij=function(t,e,n,i,r){switch(t){case 3:return JK(this,t,e,n,i,this.i>1);case 5:return JK(this,t,e,n,i,this.i-KR(n,15).gc()>0);default:return new M1(this.e,t,this.c,e,n,i,!0)}},ZEt.Tj=function(){return!0},ZEt.Qj=function(){return jat(this)},ZEt.Gk=function(){Vkt(this)},vq(jFt,"EClassImpl/1",1161),Bgt(1175,1174,Sjt),ZEt.dj=function(t){var e,n,i,r,a,o,s;if(8!=(n=t.gj())){if(0==(i=function(t){switch(t.hj(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(t)))switch(n){case 1:case 9:null!=(s=t.kj())&&(!(e=aQ(KR(s,482))).c&&(e.c=new Pl),Y1(e.c,t.jj())),null!=(o=t.ij())&&(1&(r=KR(o,482)).Bb||(!(e=aQ(r)).c&&(e.c=new Pl),sJ(e.c,KR(t.jj(),29))));break;case 3:null!=(o=t.ij())&&(1&(r=KR(o,482)).Bb||(!(e=aQ(r)).c&&(e.c=new Pl),sJ(e.c,KR(t.jj(),29))));break;case 5:if(null!=(o=t.ij()))for(a=KR(o,16).Kc();a.Ob();)1&(r=KR(a.Pb(),482)).Bb||(!(e=aQ(r)).c&&(e.c=new Pl),sJ(e.c,KR(t.jj(),29)));break;case 4:null!=(s=t.kj())&&(1&(r=KR(s,482)).Bb||(!(e=aQ(r)).c&&(e.c=new Pl),Y1(e.c,t.jj())));break;case 6:if(null!=(s=t.kj()))for(a=KR(s,16).Kc();a.Ob();)1&(r=KR(a.Pb(),482)).Bb||(!(e=aQ(r)).c&&(e.c=new Pl),Y1(e.c,t.jj()))}this.ql(i)}},ZEt.ql=function(t){Pyt(this,t)},ZEt.b=63,vq(jFt,"ESuperAdapter",1175),Bgt(1176,1175,Sjt,ty),ZEt.ql=function(t){jft(this,t)},vq(jFt,"EClassImpl/10",1176),Bgt(1165,710,uzt),ZEt.Ei=function(t,e){return Glt(this,t,e)},ZEt.Fi=function(t){return lot(this,t)},ZEt.Gi=function(t,e){ptt(this,t,e)},ZEt.Hi=function(t){SQ(this,t)},ZEt.$i=function(t){return AJ(this,t)},ZEt.Xi=function(t,e){return K1(this,t,e)},ZEt.Wk=function(t,e){throw Ay(new Zy)},ZEt.Ii=function(){return new YN(this)},ZEt.Ji=function(){return new VN(this)},ZEt.Ki=function(t){return y4(this,t)},ZEt.Xk=function(t,e){throw Ay(new Zy)},ZEt.Fk=function(t){return this},ZEt.Qj=function(){return 0!=this.i},ZEt.Wb=function(t){throw Ay(new Zy)},ZEt.Gk=function(){throw Ay(new Zy)},vq(Yjt,"EcoreEList/UnmodifiableEList",1165),Bgt(328,1165,uzt,xL),ZEt.Yi=function(){return!1},vq(Yjt,"EcoreEList/UnmodifiableEList/FastCompare",328),Bgt(1168,328,uzt,P7),ZEt.dd=function(t){var e,n;if(rO(t,179)&&-1!=(e=KR(t,179).Lj()))for(n=this.i;e4){if(!this.fk(t))return!1;if(this.al()){if(o=(e=(n=KR(t,54)).Eh())==this.b&&(this.ml()?n.yh(n.Fh(),KR(N0(RG(this.b),this.Lj()).Hk(),29).kk())==Oat(KR(N0(RG(this.b),this.Lj()),19)).n:-1-n.Fh()==this.Lj()),this.nl()&&!o&&!e&&n.Jh())for(i=0;i1||-1==n)},ZEt.ml=function(){var t;return!!rO(t=N0(RG(this.b),this.Lj()),102)&&!!Oat(KR(t,19))},ZEt.nl=function(){var t;return!!rO(t=N0(RG(this.b),this.Lj()),102)&&0!=(KR(t,19).Bb&mAt)},ZEt.dd=function(t){var e,n,i;if((n=this.zj(t))>=0)return n;if(this.ol())for(e=0,i=this.Ej();e=0;--t)g_t(this,t,this.xj(t));return this.Fj()},ZEt.Qc=function(t){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)g_t(this,e,this.xj(e));return this.Gj(t)},ZEt.Gk=function(){Jkt(this)},ZEt.Zi=function(t,e){return MJ(this,0,e)},vq(Yjt,"DelegatingEcoreEList",756),Bgt(1171,756,pzt,SP),ZEt.qj=function(t,e){!function(t,e,n){$tt(JW(t.a),e,uY(n))}(this,t,KR(e,29))},ZEt.rj=function(t){!function(t,e){sJ(JW(t.a),uY(e))}(this,KR(t,29))},ZEt.xj=function(t){var e;return rO(e=KR(l2(JW(this.a),t),89).c,90)?KR(e,29):(KEt(),xde)},ZEt.Cj=function(t){var e;return rO(e=KR(qmt(JW(this.a),t),89).c,90)?KR(e,29):(KEt(),xde)},ZEt.Dj=function(t,e){return function(t,e,n){var i,r,a;return(64&(a=rO(r=(i=KR(l2(JW(t.a),e),89)).c,90)?KR(r,29):(KEt(),xde)).Db?j9(t.b,a):a)==n?$vt(i):a2(i,n),a}(this,t,KR(e,29))},ZEt.Li=function(){return!1},ZEt.Ij=function(t,e,n,i,r){return null},ZEt.sj=function(){return new iy(this)},ZEt.tj=function(){Vkt(JW(this.a))},ZEt.uj=function(t){return Ltt(this,t)},ZEt.vj=function(t){var e;for(e=t.Kc();e.Ob();)if(!Ltt(this,e.Pb()))return!1;return!0},ZEt.wj=function(t){var e,n,i;if(rO(t,15)&&(i=KR(t,15)).gc()==JW(this.a).i){for(e=i.Kc(),n=new zO(this);e.Ob();)if($M(e.Pb())!==$M(Frt(n)))return!1;return!0}return!1},ZEt.yj=function(){var t,e,n,i;for(e=1,t=new zO(JW(this.a));t.e!=t.i.gc();)e=31*e+((n=rO(i=KR(Frt(t),89).c,90)?KR(i,29):(KEt(),xde))?DN(n):0);return e},ZEt.zj=function(t){var e,n,i,r;for(i=0,n=new zO(JW(this.a));n.e!=n.i.gc();){if(e=KR(Frt(n),89),$M(t)===$M(rO(r=e.c,90)?KR(r,29):(KEt(),xde)))return i;++i}return-1},ZEt.Aj=function(){return 0==JW(this.a).i},ZEt.Bj=function(){return null},ZEt.Ej=function(){return JW(this.a).i},ZEt.Fj=function(){var t,e,n,i,r,a;for(a=JW(this.a).i,r=WZ(nHt,pSt,1,a,5,1),n=0,e=new zO(JW(this.a));e.e!=e.i.gc();)t=KR(Frt(e),89),r[n++]=rO(i=t.c,90)?KR(i,29):(KEt(),xde);return r},ZEt.Gj=function(t){var e,n,i,r;for(r=JW(this.a).i,t.lengthr&&Dq(t,r,null),n=0,e=new zO(JW(this.a));e.e!=e.i.gc();)Dq(t,n++,rO(i=KR(Frt(e),89).c,90)?KR(i,29):(KEt(),xde));return t},ZEt.Hj=function(){var t,e,n,i,r;for((r=new Kx).a+="[",t=JW(this.a),e=0,i=JW(this.a).i;e>16)>=0?Yot(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,6,n);case 9:return!this.a&&(this.a=new ez(tde,this,9,5)),Vnt(this.a,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),gde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),gde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 6:return svt(this,null,6,n);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),cat(this.A,t,n);case 9:return!this.a&&(this.a=new ez(tde,this,9,5)),cat(this.a,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),gde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),gde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!zot(this);case 4:return!!X8(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!OK(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0==(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return AW(this,t-Lq((KEt(),gde)),N0(KR(i6(this,16),29)||gde,t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void cY(this,HD(e));case 2:return void aI(this,HD(e));case 5:return void Y_t(this,HD(e));case 7:return!this.A&&(this.A=new NO(Bde,this,7)),Vkt(this.A),!this.A&&(this.A=new NO(Bde,this,7)),void nq(this.A,KR(e,16));case 8:return void Stt(this,dx(zD(e)));case 9:return!this.a&&(this.a=new ez(tde,this,9,5)),Vkt(this.a),!this.a&&(this.a=new ez(tde,this,9,5)),void nq(this.a,KR(e,16))}Wet(this,t-Lq((KEt(),gde)),N0(KR(i6(this,16),29)||gde,t),e)},ZEt.ii=function(){return KEt(),gde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,184)&&(KR(this.Cb,184).tb=null),void B3(this,null);case 2:return K8(this,null),void H2(this,this.D);case 5:return void Y_t(this,null);case 7:return!this.A&&(this.A=new NO(Bde,this,7)),void Vkt(this.A);case 8:return void Stt(this,!0);case 9:return!this.a&&(this.a=new ez(tde,this,9,5)),void Vkt(this.a)}vtt(this,t-Lq((KEt(),gde)),N0(KR(i6(this,16),29)||gde,t))},ZEt.pi=function(){var t,e;if(this.a)for(t=0,e=this.a.i;t>16==5?KR(this.Cb,685):null}return OJ(this,t-Lq((KEt(),pde)),N0(KR(i6(this,16),29)||pde,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 5:return this.Cb&&(n=(i=this.Db>>16)>=0?Ist(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,5,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),pde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),pde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 5:return svt(this,null,5,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),pde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),pde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!KR(this.Cb,685))}return AW(this,t-Lq((KEt(),pde)),N0(KR(i6(this,16),29)||pde,t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void B3(this,HD(e));case 2:return void q2(this,KR(e,17).a);case 3:return void Wdt(this,KR(e,2039));case 4:return void U4(this,HD(e))}Wet(this,t-Lq((KEt(),pde)),N0(KR(i6(this,16),29)||pde,t),e)},ZEt.ii=function(){return KEt(),pde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void B3(this,null);case 2:return void q2(this,0);case 3:return void Wdt(this,null);case 4:return void U4(this,null)}vtt(this,t-Lq((KEt(),pde)),N0(KR(i6(this,16),29)||pde,t))},ZEt.Ib=function(){return this.c??this.zb},ZEt.b=null,ZEt.c=null,ZEt.d=0,vq(jFt,"EEnumLiteralImpl",582);var $de,jde,zde,qde=WF(jFt,"EFactoryImpl/InternalEDateTimeFormat");Bgt(499,1,{2114:1},ry),vq(jFt,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),Bgt(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},xy),ZEt.Ch=function(t,e,n){var i;return n=svt(this,t,e,n),this.e&&rO(t,179)&&(i=Jpt(this,this.e))!=this.c&&(n=W_t(this,i,n)),n},ZEt.Lh=function(t,e,n){switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new AO(ede,this,1)),this.d;case 2:return e?$vt(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return e?Gat(this):this.a}return OJ(this,t-Lq((KEt(),mde)),N0(KR(i6(this,16),29)||mde,t),e,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return z9(this,null,n);case 1:return!this.d&&(this.d=new AO(ede,this,1)),cat(this.d,t,n);case 3:return q9(this,null,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),mde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),mde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return AW(this,t-Lq((KEt(),mde)),N0(KR(i6(this,16),29)||mde,t))},ZEt.bi=function(t,e){switch(t){case 0:return void Xct(this,KR(e,89));case 1:return!this.d&&(this.d=new AO(ede,this,1)),Vkt(this.d),!this.d&&(this.d=new AO(ede,this,1)),void nq(this.d,KR(e,16));case 3:return void Wct(this,KR(e,89));case 4:return void Cut(this,KR(e,850));case 5:return void a2(this,KR(e,142))}Wet(this,t-Lq((KEt(),mde)),N0(KR(i6(this,16),29)||mde,t),e)},ZEt.ii=function(){return KEt(),mde},ZEt.ki=function(t){switch(t){case 0:return void Xct(this,null);case 1:return!this.d&&(this.d=new AO(ede,this,1)),void Vkt(this.d);case 3:return void Wct(this,null);case 4:return void Cut(this,null);case 5:return void a2(this,null)}vtt(this,t-Lq((KEt(),mde)),N0(KR(i6(this,16),29)||mde,t))},ZEt.Ib=function(){var t;return(t=new pN(_pt(this))).a+=" (expression: ",Mkt(this,t),t.a+=")",t.a},vq(jFt,"EGenericTypeImpl",248),Bgt(2067,2062,bzt),ZEt.Gi=function(t,e){yP(this,t,e)},ZEt.Wk=function(t,e){return yP(this,this.gc(),t),e},ZEt.$i=function(t){return Yrt(this.pj(),t)},ZEt.Ii=function(){return this.Ji()},ZEt.pj=function(){return new dy(this)},ZEt.Ji=function(){return this.Ki(0)},ZEt.Ki=function(t){return this.pj().fd(t)},ZEt.Xk=function(t,e){return ynt(this,t,!0),e},ZEt.Ti=function(t,e){var n;return n=kst(this,e),this.fd(t).Rb(n),n},ZEt.Ui=function(t,e){ynt(this,e,!0),this.fd(t).Rb(e)},vq(Yjt,"AbstractSequentialInternalEList",2067),Bgt(496,2067,bzt,jN),ZEt.$i=function(t){return Yrt(this.pj(),t)},ZEt.Ii=function(){return null==this.b?(qE(),qE(),zde):this.sl()},ZEt.pj=function(){return new kL(this.a,this.b)},ZEt.Ji=function(){return null==this.b?(qE(),qE(),zde):this.sl()},ZEt.Ki=function(t){var e,n;if(null==this.b){if(t<0||t>1)throw Ay(new vx(Mjt+t+", size=0"));return qE(),qE(),zde}for(n=this.sl(),e=0;e0;)if(e=this.c[--this.d],(!this.e||e.pk()!=jhe||0!=e.Lj())&&(!this.vl()||this.b.Xh(e)))if(a=this.b.Nh(e,this.ul()),this.f=(UE(),KR(e,69).xk()),this.f||e.Jk()){if(this.ul()?(i=KR(a,15),this.k=i):(i=KR(a,71),this.k=this.j=i),rO(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?Wht(this,this.p):Oft(this))return r=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?((t=KR(r,76)).Lk(),n=t.md(),this.i=n):(n=r,this.i=n),this.g=-3,!0}else if(null!=a)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},ZEt.Pb=function(){return c6(this)},ZEt.Tb=function(){return this.a},ZEt.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw Ay(new ew)},ZEt.Vb=function(){return this.a-1},ZEt.Qb=function(){throw Ay(new Zy)},ZEt.ul=function(){return!1},ZEt.Wb=function(t){throw Ay(new Zy)},ZEt.vl=function(){return!0},ZEt.a=0,ZEt.d=0,ZEt.f=!1,ZEt.g=0,ZEt.n=0,ZEt.o=0,vq(Yjt,"EContentsEList/FeatureIteratorImpl",287),Bgt(711,287,mzt,SD),ZEt.ul=function(){return!0},vq(Yjt,"EContentsEList/ResolvingFeatureIteratorImpl",711),Bgt(1178,711,mzt,CD),ZEt.vl=function(){return!1},vq(jFt,"ENamedElementImpl/1/1",1178),Bgt(1179,287,mzt,AD),ZEt.vl=function(){return!1},vq(jFt,"ENamedElementImpl/1/2",1179),Bgt(39,152,Ajt,aX,oX,nz,yJ,M1,cQ,J2,aV,t4,oV,lQ,sV,i4,cV,uQ,lV,e4,uV,iz,wJ,oG,n4,hV,hQ,fV),ZEt.Kj=function(){return oJ(this)},ZEt.Rj=function(){var t;return(t=oJ(this))?t.ik():null},ZEt.hj=function(t){return-1==this.b&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,t)},ZEt.jj=function(){return this.c},ZEt.Sj=function(){var t;return!!(t=oJ(this))&&t.tk()},ZEt.b=-1,vq(jFt,"ENotificationImpl",39),Bgt(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},sv),ZEt.Ah=function(t){return jst(this,t)},ZEt.Lh=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),(i=this.t)>1||-1==i;case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?KR(this.Cb,29):null;case 11:return!this.d&&(this.d=new NO(Bde,this,11)),this.d;case 12:return!this.c&&(this.c=new ez(ide,this,12,10)),this.c;case 13:return!this.a&&(this.a=new CP(this,this)),this.a;case 14:return k1(this)}return OJ(this,t-Lq((KEt(),kde)),N0(KR(i6(this,16),29)||kde,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?jst(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,10,n);case 12:return!this.c&&(this.c=new ez(ide,this,12,10)),Vnt(this.c,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),kde),e),69).wk().zk(this,jit(this),e-Lq((KEt(),kde)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 9:return iq(this,n);case 10:return svt(this,null,10,n);case 11:return!this.d&&(this.d=new NO(Bde,this,11)),cat(this.d,t,n);case 12:return!this.c&&(this.c=new ez(ide,this,12,10)),cat(this.c,t,n);case 14:return cat(k1(this),t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),kde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),kde)),t,n)},ZEt.Wh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i);case 10:return!(this.Db>>16!=10||!KR(this.Cb,29));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==k1(this.a.a).i||this.b&&zat(this.b));case 14:return!!this.b&&zat(this.b)}return AW(this,t-Lq((KEt(),kde)),N0(KR(i6(this,16),29)||kde,t))},ZEt.bi=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void B3(this,HD(e));case 2:return void Ttt(this,dx(zD(e)));case 3:return void Ctt(this,dx(zD(e)));case 4:return void j2(this,KR(e,17).a);case 5:return void z2(this,KR(e,17).a);case 8:return void g9(this,KR(e,142));case 9:return void((n=Klt(this,KR(e,89),null))&&n.oj());case 11:return!this.d&&(this.d=new NO(Bde,this,11)),Vkt(this.d),!this.d&&(this.d=new NO(Bde,this,11)),void nq(this.d,KR(e,16));case 12:return!this.c&&(this.c=new ez(ide,this,12,10)),Vkt(this.c),!this.c&&(this.c=new ez(ide,this,12,10)),void nq(this.c,KR(e,16));case 13:return!this.a&&(this.a=new CP(this,this)),Jkt(this.a),!this.a&&(this.a=new CP(this,this)),void nq(this.a,KR(e,16));case 14:return Vkt(k1(this)),void nq(k1(this),KR(e,16))}Wet(this,t-Lq((KEt(),kde)),N0(KR(i6(this,16),29)||kde,t),e)},ZEt.ii=function(){return KEt(),kde},ZEt.ki=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void B3(this,null);case 2:return void Ttt(this,!0);case 3:return void Ctt(this,!0);case 4:return void j2(this,0);case 5:return void z2(this,1);case 8:return void g9(this,null);case 9:return void((e=Klt(this,null,null))&&e.oj());case 11:return!this.d&&(this.d=new NO(Bde,this,11)),void Vkt(this.d);case 12:return!this.c&&(this.c=new ez(ide,this,12,10)),void Vkt(this.c);case 13:return void(this.a&&Jkt(this.a));case 14:return void(this.b&&Vkt(this.b))}vtt(this,t-Lq((KEt(),kde)),N0(KR(i6(this,16),29)||kde,t))},ZEt.pi=function(){var t,e;if(this.c)for(t=0,e=this.c.i;ti&&Dq(t,i,null),n=0,e=new zO(k1(this.a));e.e!=e.i.gc();)Dq(t,n++,KR(Frt(e),89).c||(KEt(),yde));return t},ZEt.Hj=function(){var t,e,n,i;for((i=new Kx).a+="[",t=k1(this.a),e=0,n=k1(this.a).i;e1);case 5:return JK(this,t,e,n,i,this.i-KR(n,15).gc()>0);default:return new M1(this.e,t,this.c,e,n,i,!0)}},ZEt.Tj=function(){return!0},ZEt.Qj=function(){return zat(this)},ZEt.Gk=function(){Vkt(this)},vq(jFt,"EOperationImpl/2",1377),Bgt(507,1,{2037:1,507:1},MM),vq(jFt,"EPackageImpl/1",507),Bgt(14,83,uzt,ez),ZEt.il=function(){return this.d},ZEt.jl=function(){return this.b},ZEt.ml=function(){return!0},ZEt.b=0,vq(Yjt,"EObjectContainmentWithInverseEList",14),Bgt(365,14,uzt,cB),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectContainmentWithInverseEList/Resolving",365),Bgt(308,365,uzt,lz),ZEt.Ni=function(){this.a.tb=null},vq(jFt,"EPackageImpl/2",308),Bgt(1278,1,{},(function(){})),vq(jFt,"EPackageImpl/3",1278),Bgt(733,45,IAt,cv),ZEt._b=function(t){return jM(t)?gG(this,t):!!U$(this.f,t)},vq(jFt,"EPackageRegistryImpl",733),Bgt(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},lv),ZEt.Ah=function(t){return zst(this,t)},ZEt.Lh=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),(i=this.t)>1||-1==i;case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?KR(this.Cb,62):null}return OJ(this,t-Lq((KEt(),Ede)),N0(KR(i6(this,16),29)||Ede,t),e,n)},ZEt.Sh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vnt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?zst(this,n):this.Cb.Th(this,-1-i,null,n)),svt(this,t,10,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),Ede),e),69).wk().zk(this,jit(this),e-Lq((KEt(),Ede)),t,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 9:return iq(this,n);case 10:return svt(this,null,10,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),Ede),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),Ede)),t,n)},ZEt.Wh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i);case 10:return!(this.Db>>16!=10||!KR(this.Cb,62))}return AW(this,t-Lq((KEt(),Ede)),N0(KR(i6(this,16),29)||Ede,t))},ZEt.ii=function(){return KEt(),Ede},vq(jFt,"EParameterImpl",518),Bgt(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},QD),ZEt.Lh=function(t,e,n){var i,r;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return FN(),!!(256&this.Bb);case 3:return FN(),!!(512&this.Bb);case 4:return ttt(this.s);case 5:return ttt(this.t);case 6:return FN(),(r=this.t)>1||-1==r;case 7:return FN(),this.s>=1;case 8:return e?qst(this):this.r;case 9:return this.q;case 10:return FN(),!!(this.Bb&rCt);case 11:return FN(),!!(this.Bb&Zjt);case 12:return FN(),!!(this.Bb&gAt);case 13:return this.j;case 14:return ubt(this);case 15:return FN(),!!(this.Bb&Qjt);case 16:return FN(),!!(this.Bb&FSt);case 17:return PK(this);case 18:return FN(),!!(this.Bb&FFt);case 19:return FN(),!!((i=Oat(this))&&i.Bb&FFt);case 20:return FN(),!!(this.Bb&mAt);case 21:return e?Oat(this):this.b;case 22:return e?q7(this):vQ(this);case 23:return!this.a&&(this.a=new BO(Yfe,this,23)),this.a}return OJ(this,t-Lq((KEt(),Sde)),N0(KR(i6(this,16),29)||Sde,t),e,n)},ZEt.Wh=function(t){var e,n;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(n=this.t)>1||-1==n;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==Gq(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==Gq(this.q).i);case 10:return 0==(this.Bb&rCt);case 11:return 0!=(this.Bb&Zjt);case 12:return 0!=(this.Bb&gAt);case 13:return null!=this.j;case 14:return null!=ubt(this);case 15:return 0!=(this.Bb&Qjt);case 16:return 0!=(this.Bb&FSt);case 17:return!!PK(this);case 18:return 0!=(this.Bb&FFt);case 19:return!!(e=Oat(this))&&0!=(e.Bb&FFt);case 20:return 0==(this.Bb&mAt);case 21:return!!this.b;case 22:return!!vQ(this);case 23:return!!this.a&&0!=this.a.i}return AW(this,t-Lq((KEt(),Sde)),N0(KR(i6(this,16),29)||Sde,t))},ZEt.bi=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void lY(this,HD(e));case 2:return void Ttt(this,dx(zD(e)));case 3:return void Ctt(this,dx(zD(e)));case 4:return void j2(this,KR(e,17).a);case 5:return void z2(this,KR(e,17).a);case 8:return void g9(this,KR(e,142));case 9:return void((n=Klt(this,KR(e,89),null))&&n.oj());case 10:return void Ztt(this,dx(zD(e)));case 11:return void eet(this,dx(zD(e)));case 12:return void Jtt(this,dx(zD(e)));case 13:return void TM(this,HD(e));case 15:return void tet(this,dx(zD(e)));case 16:return void _et(this,dx(zD(e)));case 18:return void function(t,e){ket(t,e),rO(t.Cb,90)&&jft(aQ(KR(t.Cb,90)),2)}(this,dx(zD(e)));case 20:return void Tet(this,dx(zD(e)));case 21:return void c3(this,KR(e,19));case 23:return!this.a&&(this.a=new BO(Yfe,this,23)),Vkt(this.a),!this.a&&(this.a=new BO(Yfe,this,23)),void nq(this.a,KR(e,16))}Wet(this,t-Lq((KEt(),Sde)),N0(KR(i6(this,16),29)||Sde,t),e)},ZEt.ii=function(){return KEt(),Sde},ZEt.ki=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return rO(this.Cb,90)&&jft(aQ(KR(this.Cb,90)),4),void B3(this,null);case 2:return void Ttt(this,!0);case 3:return void Ctt(this,!0);case 4:return void j2(this,0);case 5:return void z2(this,1);case 8:return void g9(this,null);case 9:return void((e=Klt(this,null,null))&&e.oj());case 10:return void Ztt(this,!0);case 11:return void eet(this,!1);case 12:return void Jtt(this,!1);case 13:return this.i=null,void s3(this,null);case 15:return void tet(this,!1);case 16:return void _et(this,!1);case 18:return ket(this,!1),void(rO(this.Cb,90)&&jft(aQ(KR(this.Cb,90)),2));case 20:return void Tet(this,!0);case 21:return void c3(this,null);case 23:return!this.a&&(this.a=new BO(Yfe,this,23)),void Vkt(this.a)}vtt(this,t-Lq((KEt(),Sde)),N0(KR(i6(this,16),29)||Sde,t))},ZEt.pi=function(){q7(this),KH(T1((Xht(),age),this)),qst(this),this.Bb|=1},ZEt.uk=function(){return Oat(this)},ZEt._k=function(){var t;return!!(t=Oat(this))&&0!=(t.Bb&FFt)},ZEt.al=function(){return 0!=(this.Bb&FFt)},ZEt.bl=function(){return 0!=(this.Bb&mAt)},ZEt.Yk=function(t,e){return this.c=null,dtt(this,t,e)},ZEt.Ib=function(){var t;return 64&this.Db?zyt(this):((t=new gN(zyt(this))).a+=" (containment: ",c_(t,0!=(this.Bb&FFt)),t.a+=", resolveProxies: ",c_(t,0!=(this.Bb&mAt)),t.a+=")",t.a)},vq(jFt,"EReferenceImpl",102),Bgt(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},El),ZEt.Fb=function(t){return this===t},ZEt.ld=function(){return this.b},ZEt.md=function(){return this.c},ZEt.Hb=function(){return DN(this)},ZEt.Di=function(t){!function(t,e){Q4(t,null==e?null:(yH(e),e))}(this,HD(t))},ZEt.nd=function(t){return function(t,e){var n;return n=t.c,Z4(t,e),n}(this,HD(t))},ZEt.Lh=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return OJ(this,t-Lq((KEt(),Cde)),N0(KR(i6(this,16),29)||Cde,t),e,n)},ZEt.Wh=function(t){switch(t){case 0:return null!=this.b;case 1:return null!=this.c}return AW(this,t-Lq((KEt(),Cde)),N0(KR(i6(this,16),29)||Cde,t))},ZEt.bi=function(t,e){switch(t){case 0:return void function(t,e){Q4(t,null==e?null:(yH(e),e))}(this,HD(e));case 1:return void Z4(this,HD(e))}Wet(this,t-Lq((KEt(),Cde)),N0(KR(i6(this,16),29)||Cde,t),e)},ZEt.ii=function(){return KEt(),Cde},ZEt.ki=function(t){switch(t){case 0:return void Q4(this,null);case 1:return void Z4(this,null)}vtt(this,t-Lq((KEt(),Cde)),N0(KR(i6(this,16),29)||Cde,t))},ZEt.Bi=function(){var t;return-1==this.a&&(t=this.b,this.a=null==t?0:d8(t)),this.a},ZEt.Ci=function(t){this.a=t},ZEt.Ib=function(){var t;return 64&this.Db?_pt(this):((t=new gN(_pt(this))).a+=" (key: ",QM(t,this.b),t.a+=", value: ",QM(t,this.c),t.a+=")",t.a)},ZEt.a=-1,ZEt.b=null,ZEt.c=null;var Hde,Ude,Gde,Kde,Yde,Vde,Wde,Xde,Qde,Zde,Jde=vq(jFt,"EStringToStringMapEntryImpl",561),tge=WF(Yjt,"FeatureMap/Entry/Internal");Bgt(576,1,yzt),ZEt.xl=function(t){return this.yl(KR(t,54))},ZEt.yl=function(t){return this.xl(t)},ZEt.Fb=function(t){var e,n;return this===t||!!rO(t,76)&&(e=KR(t,76)).Lk()==this.c&&(null==(n=this.md())?null==e.md():wtt(n,e.md()))},ZEt.Lk=function(){return this.c},ZEt.Hb=function(){var t;return t=this.md(),N3(this.c)^(null==t?0:N3(t))},ZEt.Ib=function(){var t,e;return e=r2((t=this.c).qk()).yi(),t.xe(),(null!=e&&0!=e.length?e+":"+t.xe():t.xe())+"="+this.md()},vq(jFt,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),Bgt(791,576,yzt,MP),ZEt.yl=function(t){return new MP(this.c,t)},ZEt.md=function(){return this.a},ZEt.zl=function(t,e,n){return function(t,e,n,i,r){var a;return n&&(a=knt(e.Dh(),t.c),r=n.Rh(e,-1-(-1==a?i:a),null,r)),r}(this,t,this.a,e,n)},ZEt.Al=function(t,e,n){return function(t,e,n,i,r){var a;return n&&(a=knt(e.Dh(),t.c),r=n.Th(e,-1-(-1==a?i:a),null,r)),r}(this,t,this.a,e,n)},vq(jFt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),Bgt(1350,1,{},LM),ZEt.yk=function(t,e,n,i,r){return KR(kJ(t,this.b),220).Yl(this.a).Fk(i)},ZEt.zk=function(t,e,n,i,r){return KR(kJ(t,this.b),220).Pl(this.a,i,r)},ZEt.Ak=function(t,e,n,i,r){return KR(kJ(t,this.b),220).Ql(this.a,i,r)},ZEt.Bk=function(t,e,n){return KR(kJ(t,this.b),220).Yl(this.a).Qj()},ZEt.Ck=function(t,e,n,i){KR(kJ(t,this.b),220).Yl(this.a).Wb(i)},ZEt.Dk=function(t,e,n){return KR(kJ(t,this.b),220).Yl(this.a)},ZEt.Ek=function(t,e,n){KR(kJ(t,this.b),220).Yl(this.a).Gk()},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),Bgt(91,1,{},SR,SU,SG,cX),ZEt.yk=function(t,e,n,i,r){var a;if(null==(a=e.li(n))&&e.mi(n,a=BEt(this,t)),!r)switch(this.e){case 50:case 41:return KR(a,597).bk();case 40:return KR(a,220).Vl()}return a},ZEt.zk=function(t,e,n,i,r){var a;return null==(a=e.li(n))&&e.mi(n,a=BEt(this,t)),KR(a,71).Wk(i,r)},ZEt.Ak=function(t,e,n,i,r){var a;return null!=(a=e.li(n))&&(r=KR(a,71).Xk(i,r)),r},ZEt.Bk=function(t,e,n){var i;return null!=(i=e.li(n))&&KR(i,79).Qj()},ZEt.Ck=function(t,e,n,i){var r;!(r=KR(e.li(n),79))&&e.mi(n,r=BEt(this,t)),r.Wb(i)},ZEt.Dk=function(t,e,n){var i;return null==(i=e.li(n))&&e.mi(n,i=BEt(this,t)),rO(i,79)?KR(i,79):new oy(KR(e.li(n),15))},ZEt.Ek=function(t,e,n){var i;!(i=KR(e.li(n),79))&&e.mi(n,i=BEt(this,t)),i.Gk()},ZEt.b=0,ZEt.e=0,vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),Bgt(512,1,{}),ZEt.zk=function(t,e,n,i,r){throw Ay(new Zy)},ZEt.Ak=function(t,e,n,i,r){throw Ay(new Zy)},ZEt.Dk=function(t,e,n){return new CU(this,t,e,n)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),Bgt(1367,1,Vjt,CU),ZEt.Fk=function(t){return this.a.yk(this.c,this.d,this.b,t,!0)},ZEt.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},ZEt.Wb=function(t){this.a.Ck(this.c,this.d,this.b,t)},ZEt.Gk=function(){this.a.Ek(this.c,this.d,this.b)},ZEt.b=0,vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),Bgt(784,512,{},XG),ZEt.yk=function(t,e,n,i,r){return Swt(t,t.Ph(),t.Fh())==this.b?this.bl()&&i?Sgt(t):t.Ph():null},ZEt.zk=function(t,e,n,i,r){var a,o;return t.Ph()&&(r=(a=t.Fh())>=0?t.Ah(r):t.Ph().Th(t,-1-a,null,r)),o=knt(t.Dh(),this.e),t.Ch(i,o,r)},ZEt.Ak=function(t,e,n,i,r){var a;return a=knt(t.Dh(),this.e),t.Ch(null,a,r)},ZEt.Bk=function(t,e,n){var i;return i=knt(t.Dh(),this.e),!!t.Ph()&&t.Fh()==i},ZEt.Ck=function(t,e,n,i){var r,a,o,s,c;if(null!=i&&!Yvt(this.a,i))throw Ay(new _x(wzt+(rO(i,58)?Vct(KR(i,58).Dh()):P0(i9(i)))+vzt+this.a+"'"));if(r=t.Ph(),o=knt(t.Dh(),this.e),$M(i)!==$M(r)||t.Fh()!=o&&null!=i){if(Bst(t,KR(i,58)))throw Ay(new Tx(qFt+t.Ib()));c=null,r&&(c=(a=t.Fh())>=0?t.Ah(c):t.Ph().Th(t,-1-a,null,c)),(s=KR(i,54))&&(c=s.Rh(t,knt(s.Dh(),this.b),null,c)),(c=t.Ch(s,o,c))&&c.oj()}else t.vh()&&t.wh()&&Q5(t,new nz(t,1,o,i,i))},ZEt.Ek=function(t,e,n){var i,r,a;t.Ph()?(a=(i=t.Fh())>=0?t.Ah(null):t.Ph().Th(t,-1-i,null,null),r=knt(t.Dh(),this.e),(a=t.Ch(null,r,a))&&a.oj()):t.vh()&&t.wh()&&Q5(t,new iz(t,1,this.e,null,null))},ZEt.bl=function(){return!1},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),Bgt(1351,784,{},CR),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),Bgt(574,512,{}),ZEt.yk=function(t,e,n,i,r){var a;return null==(a=e.li(n))?this.b:$M(a)===$M(Hde)?null:a},ZEt.Bk=function(t,e,n){var i;return null!=(i=e.li(n))&&($M(i)===$M(Hde)||!wtt(i,this.b))},ZEt.Ck=function(t,e,n,i){var r,a;t.vh()&&t.wh()?(r=null==(a=e.li(n))?this.b:$M(a)===$M(Hde)?null:a,null==i?null!=this.c?(e.mi(n,null),i=this.b):null!=this.b?e.mi(n,Hde):e.mi(n,null):(this.Bl(i),e.mi(n,i)),Q5(t,this.d.Cl(t,1,this.e,r,i))):null==i?null!=this.c?e.mi(n,null):null!=this.b?e.mi(n,Hde):e.mi(n,null):(this.Bl(i),e.mi(n,i))},ZEt.Ek=function(t,e,n){var i,r;t.vh()&&t.wh()?(i=null==(r=e.li(n))?this.b:$M(r)===$M(Hde)?null:r,e.ni(n),Q5(t,this.d.Cl(t,1,this.e,i,this.b))):e.ni(n)},ZEt.Bl=function(t){throw Ay(new Vy)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),Bgt(xzt,1,{},Sl),ZEt.Cl=function(t,e,n,i,r){return new iz(t,e,n,i,r)},ZEt.Dl=function(t,e,n,i,r,a){return new oG(t,e,n,i,r,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",xzt),Bgt(1368,xzt,{},Cl),ZEt.Cl=function(t,e,n,i,r){return new hQ(t,e,n,dx(zD(i)),dx(zD(r)))},ZEt.Dl=function(t,e,n,i,r,a){return new fV(t,e,n,dx(zD(i)),dx(zD(r)),a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),Bgt(1369,xzt,{},Al),ZEt.Cl=function(t,e,n,i,r){return new J2(t,e,n,KR(i,222).a,KR(r,222).a)},ZEt.Dl=function(t,e,n,i,r,a){return new aV(t,e,n,KR(i,222).a,KR(r,222).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),Bgt(1370,xzt,{},Ml),ZEt.Cl=function(t,e,n,i,r){return new t4(t,e,n,KR(i,180).a,KR(r,180).a)},ZEt.Dl=function(t,e,n,i,r,a){return new oV(t,e,n,KR(i,180).a,KR(r,180).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),Bgt(1371,xzt,{},Ll),ZEt.Cl=function(t,e,n,i,r){return new lQ(t,e,n,gx(qD(i)),gx(qD(r)))},ZEt.Dl=function(t,e,n,i,r,a){return new sV(t,e,n,gx(qD(i)),gx(qD(r)),a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),Bgt(1372,xzt,{},Il),ZEt.Cl=function(t,e,n,i,r){return new i4(t,e,n,KR(i,161).a,KR(r,161).a)},ZEt.Dl=function(t,e,n,i,r,a){return new cV(t,e,n,KR(i,161).a,KR(r,161).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),Bgt(1373,xzt,{},Ol),ZEt.Cl=function(t,e,n,i,r){return new uQ(t,e,n,KR(i,17).a,KR(r,17).a)},ZEt.Dl=function(t,e,n,i,r,a){return new lV(t,e,n,KR(i,17).a,KR(r,17).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),Bgt(1374,xzt,{},Nl),ZEt.Cl=function(t,e,n,i,r){return new e4(t,e,n,KR(i,168).a,KR(r,168).a)},ZEt.Dl=function(t,e,n,i,r,a){return new uV(t,e,n,KR(i,168).a,KR(r,168).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),Bgt(1375,xzt,{},Dl),ZEt.Cl=function(t,e,n,i,r){return new n4(t,e,n,KR(i,191).a,KR(r,191).a)},ZEt.Dl=function(t,e,n,i,r,a){return new hV(t,e,n,KR(i,191).a,KR(r,191).a,a)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),Bgt(1353,574,{},AU),ZEt.Bl=function(t){if(!this.a.fk(t))throw Ay(new _x(wzt+i9(t)+vzt+this.a+"'"))},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),Bgt(1354,574,{},hj),ZEt.Bl=function(t){},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),Bgt(785,574,{}),ZEt.Bk=function(t,e,n){return null!=e.li(n)},ZEt.Ck=function(t,e,n,i){var r,a;t.vh()&&t.wh()?(r=!0,null==(a=e.li(n))?(r=!1,a=this.b):$M(a)===$M(Hde)&&(a=null),null==i?null!=this.c?(e.mi(n,null),i=this.b):e.mi(n,Hde):(this.Bl(i),e.mi(n,i)),Q5(t,this.d.Dl(t,1,this.e,a,i,!r))):null==i?null!=this.c?e.mi(n,null):e.mi(n,Hde):(this.Bl(i),e.mi(n,i))},ZEt.Ek=function(t,e,n){var i,r;t.vh()&&t.wh()?(i=!0,null==(r=e.li(n))?(i=!1,r=this.b):$M(r)===$M(Hde)&&(r=null),e.ni(n),Q5(t,this.d.Dl(t,2,this.e,r,this.b,i))):e.ni(n)},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),Bgt(1355,785,{},MU),ZEt.Bl=function(t){if(!this.a.fk(t))throw Ay(new _x(wzt+i9(t)+vzt+this.a+"'"))},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),Bgt(1356,785,{},fj),ZEt.Bl=function(t){},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),Bgt(410,512,{},P$),ZEt.yk=function(t,e,n,i,r){var a,o,s,c,l;if(l=e.li(n),this.tk()&&$M(l)===$M(Hde))return null;if(this.bl()&&i&&null!=l){if((s=KR(l,54)).Vh()&&s!=(c=j9(t,s))){if(!Yvt(this.a,c))throw Ay(new _x(wzt+i9(c)+vzt+this.a+"'"));e.mi(n,l=c),this.al()&&(a=KR(c,54),o=s.Th(t,this.b?knt(s.Dh(),this.b):-1-knt(t.Dh(),this.e),null,null),!a.Ph()&&(o=a.Rh(t,this.b?knt(a.Dh(),this.b):-1-knt(t.Dh(),this.e),null,o)),o&&o.oj()),t.vh()&&t.wh()&&Q5(t,new iz(t,9,this.e,s,c))}return l}return l},ZEt.zk=function(t,e,n,i,r){var a,o;return $M(o=e.li(n))===$M(Hde)&&(o=null),e.mi(n,i),this.Mj()?$M(o)!==$M(i)&&null!=o&&(r=(a=KR(o,54)).Th(t,knt(a.Dh(),this.b),null,r)):this.al()&&null!=o&&(r=KR(o,54).Th(t,-1-knt(t.Dh(),this.e),null,r)),t.vh()&&t.wh()&&(!r&&(r=new $k(4)),r.nj(new iz(t,1,this.e,o,i))),r},ZEt.Ak=function(t,e,n,i,r){var a;return $M(a=e.li(n))===$M(Hde)&&(a=null),e.ni(n),t.vh()&&t.wh()&&(!r&&(r=new $k(4)),this.tk()?r.nj(new iz(t,2,this.e,a,null)):r.nj(new iz(t,1,this.e,a,null))),r},ZEt.Bk=function(t,e,n){return null!=e.li(n)},ZEt.Ck=function(t,e,n,i){var r,a,o,s,c;if(null!=i&&!Yvt(this.a,i))throw Ay(new _x(wzt+(rO(i,58)?Vct(KR(i,58).Dh()):P0(i9(i)))+vzt+this.a+"'"));s=null!=(c=e.li(n)),this.tk()&&$M(c)===$M(Hde)&&(c=null),o=null,this.Mj()?$M(c)!==$M(i)&&(null!=c&&(o=(r=KR(c,54)).Th(t,knt(r.Dh(),this.b),null,o)),null!=i&&(o=(r=KR(i,54)).Rh(t,knt(r.Dh(),this.b),null,o))):this.al()&&$M(c)!==$M(i)&&(null!=c&&(o=KR(c,54).Th(t,-1-knt(t.Dh(),this.e),null,o)),null!=i&&(o=KR(i,54).Rh(t,-1-knt(t.Dh(),this.e),null,o))),null==i&&this.tk()?e.mi(n,Hde):e.mi(n,i),t.vh()&&t.wh()?(a=new oG(t,1,this.e,c,i,this.tk()&&!s),o?(o.nj(a),o.oj()):Q5(t,a)):o&&o.oj()},ZEt.Ek=function(t,e,n){var i,r,a,o,s;o=null!=(s=e.li(n)),this.tk()&&$M(s)===$M(Hde)&&(s=null),a=null,null!=s&&(this.Mj()?a=(i=KR(s,54)).Th(t,knt(i.Dh(),this.b),null,a):this.al()&&(a=KR(s,54).Th(t,-1-knt(t.Dh(),this.e),null,a))),e.ni(n),t.vh()&&t.wh()?(r=new oG(t,this.tk()?2:1,this.e,s,null,o),a?(a.nj(r),a.oj()):Q5(t,r)):a&&a.oj()},ZEt.Mj=function(){return!1},ZEt.al=function(){return!1},ZEt.bl=function(){return!1},ZEt.tk=function(){return!1},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),Bgt(575,410,{},LD),ZEt.al=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),Bgt(1359,575,{},ID),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),Bgt(787,575,{},OD),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),Bgt(1361,787,{},DD),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),Bgt(650,575,{},AR),ZEt.Mj=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),Bgt(1360,650,{},IR),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),Bgt(788,650,{},OR),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),Bgt(1362,788,{},NR),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),Bgt(651,410,{},ND),ZEt.bl=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),Bgt(1363,651,{},PD),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),Bgt(789,651,{},MR),ZEt.Mj=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),Bgt(1364,789,{},DR),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),Bgt(1357,410,{},BD),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),Bgt(786,410,{},LR),ZEt.Mj=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),Bgt(1358,786,{},PR),ZEt.tk=function(){return!0},vq(jFt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),Bgt(790,576,yzt,Wq),ZEt.yl=function(t){return new Wq(this.a,this.c,t)},ZEt.md=function(){return this.b},ZEt.zl=function(t,e,n){return function(t,e,n,i){return n&&(i=n.Rh(e,knt(n.Dh(),t.c.uk()),null,i)),i}(this,t,this.b,n)},ZEt.Al=function(t,e,n){return function(t,e,n,i){return n&&(i=n.Th(e,knt(n.Dh(),t.c.uk()),null,i)),i}(this,t,this.b,n)},vq(jFt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),Bgt(1365,1,Vjt,oy),ZEt.Fk=function(t){return this.a},ZEt.Qj=function(){return rO(this.a,97)?KR(this.a,97).Qj():!this.a.dc()},ZEt.Wb=function(t){this.a.$b(),this.a.Gc(KR(t,15))},ZEt.Gk=function(){rO(this.a,97)?KR(this.a,97).Gk():this.a.$b()},vq(jFt,"EStructuralFeatureImpl/SettingMany",1365),Bgt(1366,576,yzt,hX),ZEt.xl=function(t){return new LP((l_t(),Kge),this.b.ri(this.a,t))},ZEt.md=function(){return null},ZEt.zl=function(t,e,n){return n},ZEt.Al=function(t,e,n){return n},vq(jFt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),Bgt(652,576,yzt,LP),ZEt.xl=function(t){return new LP(this.c,t)},ZEt.md=function(){return this.a},ZEt.zl=function(t,e,n){return n},ZEt.Al=function(t,e,n){return n},vq(jFt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),Bgt(403,506,R$t,Pl),ZEt.aj=function(t){return WZ(Wfe,pSt,29,t,0,1)},ZEt.Yi=function(){return!1},vq(jFt,"ESuperAdapter/1",403),Bgt(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},Bl),ZEt.Lh=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new B$(this,ede,this)),this.a}return OJ(this,t-Lq((KEt(),Lde)),N0(KR(i6(this,16),29)||Lde,t),e,n)},ZEt.Uh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),cat(this.Ab,t,n);case 2:return!this.a&&(this.a=new B$(this,ede,this)),cat(this.a,t,n)}return KR(N0(KR(i6(this,16),29)||(KEt(),Lde),e),69).wk().Ak(this,jit(this),e-Lq((KEt(),Lde)),t,n)},ZEt.Wh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return AW(this,t-Lq((KEt(),Lde)),N0(KR(i6(this,16),29)||Lde,t))},ZEt.bi=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),Vkt(this.Ab),!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void nq(this.Ab,KR(e,16));case 1:return void B3(this,HD(e));case 2:return!this.a&&(this.a=new B$(this,ede,this)),Vkt(this.a),!this.a&&(this.a=new B$(this,ede,this)),void nq(this.a,KR(e,16))}Wet(this,t-Lq((KEt(),Lde)),N0(KR(i6(this,16),29)||Lde,t),e)},ZEt.ii=function(){return KEt(),Lde},ZEt.ki=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new ez(Ufe,this,0,3)),void Vkt(this.Ab);case 1:return void B3(this,null);case 2:return!this.a&&(this.a=new B$(this,ede,this)),void Vkt(this.a)}vtt(this,t-Lq((KEt(),Lde)),N0(KR(i6(this,16),29)||Lde,t))},vq(jFt,"ETypeParameterImpl",457),Bgt(458,83,uzt,B$),ZEt.Nj=function(t,e){return function(t,e,n){var i,r;for(n=tat(e,t.e,-1-t.c,n),r=new uy(new G5(new Jd(wH(t.a).a).a));r.a.b;)n=W_t(i=KR(d3(r.a).ld(),89),Jpt(i,t.a),n);return n}(this,KR(t,89),e)},ZEt.Oj=function(t,e){return function(t,e,n){var i,r;for(n=qG(e,t.e,-1-t.c,n),r=new uy(new G5(new Jd(wH(t.a).a).a));r.a.b;)n=W_t(i=KR(d3(r.a).ld(),89),Jpt(i,t.a),n);return n}(this,KR(t,89),e)},vq(jFt,"ETypeParameterImpl/1",458),Bgt(647,45,IAt,uv),ZEt.ec=function(){return new ly(this)},vq(jFt,"ETypeParameterImpl/2",647),Bgt(570,ASt,MSt,ly),ZEt.Fc=function(t){return rB(this,KR(t,89))},ZEt.Gc=function(t){var e,n,i;for(i=!1,n=t.Kc();n.Ob();)e=KR(n.Pb(),89),null==LH(this.a,e,"")&&(i=!0);return i},ZEt.$b=function(){_z(this.a)},ZEt.Hc=function(t){return mz(this.a,t)},ZEt.Kc=function(){return new uy(new G5(new Jd(this.a).a))},ZEt.Mc=function(t){return eZ(this,t)},ZEt.gc=function(){return PT(this.a)},vq(jFt,"ETypeParameterImpl/2/1",570),Bgt(571,1,TSt,uy),ZEt.Nb=function(t){bz(this,t)},ZEt.Pb=function(){return KR(d3(this.a).ld(),89)},ZEt.Ob=function(){return this.a.b},ZEt.Qb=function(){x1(this.a)},vq(jFt,"ETypeParameterImpl/2/1/1",571),Bgt(1329,45,IAt,hv),ZEt._b=function(t){return jM(t)?gG(this,t):!!U$(this.f,t)},ZEt.xc=function(t){var e;return rO(e=jM(t)?ZG(this,t):FM(U$(this.f,t)),851)?(e=KR(e,851).Kk(),LH(this,KR(t,241),e),e):e??(null==t?(HE(),uge):null)},vq(jFt,"EValidatorRegistryImpl",1329),Bgt(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Rl),ZEt.ri=function(t,e){switch(t.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==e?null:Get(e);case 25:return c2(e);case 27:return rO(n=e,180)?""+KR(n,180).a:null==n?null:Get(n);case 28:return function(t){return rO(t,180)?""+KR(t,180).a:null==t?null:Get(t)}(e);case 29:return null==e?null:JI(Bhe[0],KR(e,206));case 41:return null==e?"":a_(KR(e,297));case 42:return Get(e);case 50:return HD(e);default:throw Ay(new Tx(HFt+t.xe()+UFt))}var n},ZEt.si=function(t){var e;switch(-1==t.G&&(t.G=(e=r2(t))?dat(e.vi(),t):-1),t.G){case 0:return new rv;case 1:return new ml;case 2:return new Nf;case 4:return new rw;case 5:return new ov;case 6:return new iw;case 7:return new Df;case 10:return new pl;case 11:return new sv;case 12:return new YU;case 13:return new lv;case 14:return new QD;case 17:return new El;case 18:return new xy;case 19:return new Bl;default:throw Ay(new Tx(YFt+t.zb+UFt))}},ZEt.ti=function(t,e){switch(t.hk()){case 20:return null==e?null:new E_(e);case 21:return null==e?null:new pI(e);case 23:case 22:return null==e?null:function(t){if(Git(MRt,t))return FN(),UHt;if(Git(LRt,t))return FN(),HHt;throw Ay(new Tx("Expecting true or false"))}(e);case 26:case 24:return null==e?null:O1(evt(e,-128,127)<<24>>24);case 25:return function(t){var e,n,i,r,a,o,s;if(null==t)return null;for(s=t.length,o=WZ(qpe,KFt,28,r=(s+1)/2|0,15,1),s%2!=0&&(o[--r]=wyt((IY(s-1,t.length),t.charCodeAt(s-1)))),n=0,i=0;n>24;return o}(e);case 27:return function(t){var e;if(null==t)return null;e=0;try{e=evt(t,gCt,lSt)&ECt}catch(n){if(!rO(n=j6(n),130))throw Ay(n);e=I1(t)[0]}return f6(e)}(e);case 28:return function(t){var e;if(null==t)return null;e=0;try{e=evt(t,gCt,lSt)&ECt}catch(n){if(!rO(n=j6(n),130))throw Ay(n);e=I1(t)[0]}return f6(e)}(e);case 29:return function(t){var e,n;if(null==t)return null;for(e=null,n=0;n>16);case 50:return e;default:throw Ay(new Tx(HFt+t.xe()+UFt))}},vq(jFt,"EcoreFactoryImpl",1349),Bgt(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},SH),ZEt.gb=!1,ZEt.hb=!1;var ege,nge=!1;vq(jFt,"EcorePackageImpl",560),Bgt(1234,1,{851:1},Fl),ZEt.Kk=function(){return VO(),hge},vq(jFt,"EcorePackageImpl/1",1234),Bgt(1243,1,Bzt,$l),ZEt.fk=function(t){return rO(t,155)},ZEt.gk=function(t){return WZ(Yhe,pSt,155,t,0,1)},vq(jFt,"EcorePackageImpl/10",1243),Bgt(1244,1,Bzt,jl),ZEt.fk=function(t){return rO(t,197)},ZEt.gk=function(t){return WZ(Whe,pSt,197,t,0,1)},vq(jFt,"EcorePackageImpl/11",1244),Bgt(1245,1,Bzt,zl),ZEt.fk=function(t){return rO(t,58)},ZEt.gk=function(t){return WZ($he,pSt,58,t,0,1)},vq(jFt,"EcorePackageImpl/12",1245),Bgt(1246,1,Bzt,ql),ZEt.fk=function(t){return rO(t,411)},ZEt.gk=function(t){return WZ(nde,czt,62,t,0,1)},vq(jFt,"EcorePackageImpl/13",1246),Bgt(1247,1,Bzt,Hl),ZEt.fk=function(t){return rO(t,241)},ZEt.gk=function(t){return WZ(Xhe,pSt,241,t,0,1)},vq(jFt,"EcorePackageImpl/14",1247),Bgt(1248,1,Bzt,Ul),ZEt.fk=function(t){return rO(t,518)},ZEt.gk=function(t){return WZ(ide,pSt,2116,t,0,1)},vq(jFt,"EcorePackageImpl/15",1248),Bgt(1249,1,Bzt,Gl),ZEt.fk=function(t){return rO(t,102)},ZEt.gk=function(t){return WZ(rde,szt,19,t,0,1)},vq(jFt,"EcorePackageImpl/16",1249),Bgt(1250,1,Bzt,Kl),ZEt.fk=function(t){return rO(t,179)},ZEt.gk=function(t){return WZ(Kfe,szt,179,t,0,1)},vq(jFt,"EcorePackageImpl/17",1250),Bgt(1251,1,Bzt,Yl),ZEt.fk=function(t){return rO(t,481)},ZEt.gk=function(t){return WZ(Gfe,pSt,481,t,0,1)},vq(jFt,"EcorePackageImpl/18",1251),Bgt(1252,1,Bzt,Vl),ZEt.fk=function(t){return rO(t,561)},ZEt.gk=function(t){return WZ(Jde,Njt,561,t,0,1)},vq(jFt,"EcorePackageImpl/19",1252),Bgt(1235,1,Bzt,Wl),ZEt.fk=function(t){return rO(t,331)},ZEt.gk=function(t){return WZ(Yfe,szt,35,t,0,1)},vq(jFt,"EcorePackageImpl/2",1235),Bgt(1253,1,Bzt,Xl),ZEt.fk=function(t){return rO(t,248)},ZEt.gk=function(t){return WZ(ede,gzt,89,t,0,1)},vq(jFt,"EcorePackageImpl/20",1253),Bgt(1254,1,Bzt,Ql),ZEt.fk=function(t){return rO(t,457)},ZEt.gk=function(t){return WZ(Bde,pSt,850,t,0,1)},vq(jFt,"EcorePackageImpl/21",1254),Bgt(1255,1,Bzt,Zl),ZEt.fk=function(t){return zM(t)},ZEt.gk=function(t){return WZ(KHt,RSt,485,t,8,1)},vq(jFt,"EcorePackageImpl/22",1255),Bgt(1256,1,Bzt,Jl),ZEt.fk=function(t){return rO(t,195)},ZEt.gk=function(t){return WZ(qpe,RSt,195,t,0,2)},vq(jFt,"EcorePackageImpl/23",1256),Bgt(1257,1,Bzt,tu),ZEt.fk=function(t){return rO(t,222)},ZEt.gk=function(t){return WZ(VHt,RSt,222,t,0,1)},vq(jFt,"EcorePackageImpl/24",1257),Bgt(1258,1,Bzt,eu),ZEt.fk=function(t){return rO(t,180)},ZEt.gk=function(t){return WZ(QHt,RSt,180,t,0,1)},vq(jFt,"EcorePackageImpl/25",1258),Bgt(1259,1,Bzt,nu),ZEt.fk=function(t){return rO(t,206)},ZEt.gk=function(t){return WZ(qHt,RSt,206,t,0,1)},vq(jFt,"EcorePackageImpl/26",1259),Bgt(1260,1,Bzt,iu),ZEt.fk=function(t){return!1},ZEt.gk=function(t){return WZ(Ype,pSt,2215,t,0,1)},vq(jFt,"EcorePackageImpl/27",1260),Bgt(1261,1,Bzt,ru),ZEt.fk=function(t){return qM(t)},ZEt.gk=function(t){return WZ(ZHt,RSt,345,t,7,1)},vq(jFt,"EcorePackageImpl/28",1261),Bgt(1262,1,Bzt,au),ZEt.fk=function(t){return rO(t,61)},ZEt.gk=function(t){return WZ(dfe,OLt,61,t,0,1)},vq(jFt,"EcorePackageImpl/29",1262),Bgt(1236,1,Bzt,ou),ZEt.fk=function(t){return rO(t,519)},ZEt.gk=function(t){return WZ(Ufe,{3:1,4:1,5:1,2033:1},598,t,0,1)},vq(jFt,"EcorePackageImpl/3",1236),Bgt(1263,1,Bzt,su),ZEt.fk=function(t){return rO(t,582)},ZEt.gk=function(t){return WZ(Sfe,pSt,2039,t,0,1)},vq(jFt,"EcorePackageImpl/30",1263),Bgt(1264,1,Bzt,cu),ZEt.fk=function(t){return rO(t,160)},ZEt.gk=function(t){return WZ(gge,OLt,160,t,0,1)},vq(jFt,"EcorePackageImpl/31",1264),Bgt(1265,1,Bzt,lu),ZEt.fk=function(t){return rO(t,76)},ZEt.gk=function(t){return WZ(Fde,Rzt,76,t,0,1)},vq(jFt,"EcorePackageImpl/32",1265),Bgt(1266,1,Bzt,uu),ZEt.fk=function(t){return rO(t,161)},ZEt.gk=function(t){return WZ(JHt,RSt,161,t,0,1)},vq(jFt,"EcorePackageImpl/33",1266),Bgt(1267,1,Bzt,hu),ZEt.fk=function(t){return rO(t,17)},ZEt.gk=function(t){return WZ(nUt,RSt,17,t,0,1)},vq(jFt,"EcorePackageImpl/34",1267),Bgt(1268,1,Bzt,fu),ZEt.fk=function(t){return rO(t,297)},ZEt.gk=function(t){return WZ(iHt,pSt,297,t,0,1)},vq(jFt,"EcorePackageImpl/35",1268),Bgt(1269,1,Bzt,du),ZEt.fk=function(t){return rO(t,168)},ZEt.gk=function(t){return WZ(cUt,RSt,168,t,0,1)},vq(jFt,"EcorePackageImpl/36",1269),Bgt(1270,1,Bzt,gu),ZEt.fk=function(t){return rO(t,85)},ZEt.gk=function(t){return WZ(aHt,pSt,85,t,0,1)},vq(jFt,"EcorePackageImpl/37",1270),Bgt(1271,1,Bzt,pu),ZEt.fk=function(t){return rO(t,599)},ZEt.gk=function(t){return WZ(lge,pSt,599,t,0,1)},vq(jFt,"EcorePackageImpl/38",1271),Bgt(1272,1,Bzt,bu),ZEt.fk=function(t){return!1},ZEt.gk=function(t){return WZ(Vpe,pSt,2216,t,0,1)},vq(jFt,"EcorePackageImpl/39",1272),Bgt(1237,1,Bzt,mu),ZEt.fk=function(t){return rO(t,90)},ZEt.gk=function(t){return WZ(Wfe,pSt,29,t,0,1)},vq(jFt,"EcorePackageImpl/4",1237),Bgt(1273,1,Bzt,yu),ZEt.fk=function(t){return rO(t,191)},ZEt.gk=function(t){return WZ(uUt,RSt,191,t,0,1)},vq(jFt,"EcorePackageImpl/40",1273),Bgt(1274,1,Bzt,wu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(jFt,"EcorePackageImpl/41",1274),Bgt(1275,1,Bzt,vu),ZEt.fk=function(t){return rO(t,596)},ZEt.gk=function(t){return WZ(pfe,pSt,596,t,0,1)},vq(jFt,"EcorePackageImpl/42",1275),Bgt(1276,1,Bzt,xu),ZEt.fk=function(t){return!1},ZEt.gk=function(t){return WZ(Wpe,RSt,2217,t,0,1)},vq(jFt,"EcorePackageImpl/43",1276),Bgt(1277,1,Bzt,ku),ZEt.fk=function(t){return rO(t,44)},ZEt.gk=function(t){return WZ(dHt,WSt,44,t,0,1)},vq(jFt,"EcorePackageImpl/44",1277),Bgt(1238,1,Bzt,_u),ZEt.fk=function(t){return rO(t,142)},ZEt.gk=function(t){return WZ(Vfe,pSt,142,t,0,1)},vq(jFt,"EcorePackageImpl/5",1238),Bgt(1239,1,Bzt,Tu),ZEt.fk=function(t){return rO(t,156)},ZEt.gk=function(t){return WZ(Xfe,pSt,156,t,0,1)},vq(jFt,"EcorePackageImpl/6",1239),Bgt(1240,1,Bzt,Eu),ZEt.fk=function(t){return rO(t,469)},ZEt.gk=function(t){return WZ(Jfe,pSt,685,t,0,1)},vq(jFt,"EcorePackageImpl/7",1240),Bgt(1241,1,Bzt,Su),ZEt.fk=function(t){return rO(t,582)},ZEt.gk=function(t){return WZ(tde,pSt,694,t,0,1)},vq(jFt,"EcorePackageImpl/8",1241),Bgt(1242,1,Bzt,Cu),ZEt.fk=function(t){return rO(t,480)},ZEt.gk=function(t){return WZ(Vhe,pSt,480,t,0,1)},vq(jFt,"EcorePackageImpl/9",1242),Bgt(1038,2080,Ijt,ax),ZEt.Mi=function(t,e){!function(t,e){var n,i,r;if(e.ej(t.a),null!=(r=KR(i6(t.a,8),2035)))for(n=0,i=r.length;n0){if(IY(0,t.length),47==t.charCodeAt(0)){for(a=new lZ(4),r=1,e=1;e0&&(tJ(0,n,t.length),t=t.substr(0,n))}return function(t,e){var n,i,r,a,o,s;for(a=null,r=new az((!t.a&&(t.a=new hy(t)),t.a));Ydt(r);)if(okt(o=(n=KR(zpt(r),58)).Dh()),null!=(i=(s=o.o)&&n.Xh(s)?vB(R6(s),n.Mh(s)):null)&&_B(i,e)){a=n;break}return a}(this,t)},ZEt.Gl=function(){return this.c},ZEt.Ib=function(){return a_(this.Rm)+"@"+(N3(this)>>>0).toString(16)+" uri='"+this.d+"'"},ZEt.b=!1,vq(jzt,"ResourceImpl",799),Bgt(1525,799,$zt,fy),vq(jzt,"BinaryResourceImpl",1525),Bgt(1190,708,F$t),ZEt.bj=function(t){return rO(t,58)?function(t,e){return t.a?e.Gh().Kc():KR(e.Gh(),71).Ii()}(this,KR(t,58)):rO(t,599)?new zO(KR(t,599).El()):$M(t)===$M(this.f)?KR(t,16).Kc():(WD(),_fe.a)},ZEt.Ob=function(){return Ydt(this)},ZEt.a=!1,vq(Yjt,"EcoreUtil/ContentTreeIterator",1190),Bgt(1526,1190,F$t,az),ZEt.bj=function(t){return $M(t)===$M(this.f)?KR(t,15).Kc():new mW(KR(t,58))},vq(jzt,"ResourceImpl/5",1526),Bgt(658,2092,lzt,hy),ZEt.Hc=function(t){return this.i<=4?mct(this,t):rO(t,54)&&KR(t,54).Jh()==this.a},ZEt.Mi=function(t,e){t==this.i-1&&(this.a.b||(this.a.b=!0))},ZEt.Oi=function(t,e){0==t?this.a.b||(this.a.b=!0):XZ(this,t,e)},ZEt.Qi=function(t,e){},ZEt.Ri=function(t,e,n){},ZEt.Lj=function(){return 2},ZEt.jj=function(){return this.a},ZEt.Mj=function(){return!0},ZEt.Nj=function(t,e){return KR(t,54).fi(this.a,e)},ZEt.Oj=function(t,e){return KR(t,54).fi(null,e)},ZEt.Pj=function(){return!1},ZEt.Si=function(){return!0},ZEt.aj=function(t){return WZ($he,pSt,58,t,0,1)},ZEt.Yi=function(){return!1},vq(jzt,"ResourceImpl/ContentsEList",658),Bgt(970,2062,cCt,dy),ZEt.fd=function(t){return this.a.Ki(t)},ZEt.gc=function(){return this.a.gc()},vq(Yjt,"AbstractSequentialInternalEList/1",970),Bgt(634,1,{},wF),vq(Yjt,"BasicExtendedMetaData",634),Bgt(1181,1,{},OM),ZEt.Jl=function(){return null},ZEt.Kl=function(){return-2==this.a&&(t=this,e=function(t,e){var n,i,r;if((n=e.qi(t.a))&&null!=(r=Ynt((!n.b&&(n.b=new TD((KEt(),Cde),Jde,n)),n.b),dzt)))for(i=1;i<(Xht(),ige).length;++i)if(_B(ige[i],r))return i;return 0}(this.d,this.b),t.a=e),this.a;var t,e},ZEt.Ll=function(){return null},ZEt.Ml=function(){return QU(),QU(),NUt},ZEt.xe=function(){return this.c==eqt&&(t=this,e=art(this.d,this.b),t.c=e),this.c;var t,e},ZEt.Nl=function(){return 0},ZEt.a=-2,ZEt.c=eqt,vq(Yjt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),Bgt(1182,1,{},gV),ZEt.Jl=function(){return this.a==(oZ(),sge)&&function(t,e){t.a=e}(this,(t=this.f,e=this.b,(i=e.qi(t.a))&&(!i.b&&(i.b=new TD((KEt(),Cde),Jde,i)),null!=(n=HD(Ynt(i.b,Ezt)))&&rO(a=-1==(r=n.lastIndexOf("#"))?RD(t,e.jk(),n):0==r?xJ(t,null,(IY(1,n.length+1),n.substr(1))):xJ(t,(tJ(0,r,n.length),n.substr(0,r)),(IY(r+1,n.length+1),n.substr(r+1))),156))?KR(a,156):null)),this.a;var t,e,n,i,r,a},ZEt.Kl=function(){return 0},ZEt.Ll=function(){return this.c==(oZ(),sge)&&function(t,e){t.c=e}(this,(t=this.f,e=this.b,(n=e.qi(t.a))&&(!n.b&&(n.b=new TD((KEt(),Cde),Jde,n)),null!=(r=HD(Ynt(n.b,Vzt)))&&rO(a=-1==(i=r.lastIndexOf("#"))?RD(t,e.jk(),r):0==i?xJ(t,null,(IY(1,r.length+1),r.substr(1))):xJ(t,(tJ(0,i,r.length),r.substr(0,i)),(IY(i+1,r.length+1),r.substr(i+1))),156))?KR(a,156):null)),this.c;var t,e,n,i,r,a},ZEt.Ml=function(){return!this.d&&(t=this,e=function(t,e){var n,i,r,a,o,s,c,l,u;if((n=e.qi(t.a))&&null!=(c=HD(Ynt((!n.b&&(n.b=new TD((KEt(),Cde),Jde,n)),n.b),"memberTypes")))){for(l=new yy,o=0,s=(a=rxt(c,"\\w")).length;on?e:n;l<=h;++l)l==n?s=i++:(a=r[l],u=g.am(a.Lk()),l==e&&(c=l!=h||u?i:i-1),u&&++i);return f=KR(Xtt(t,e,n),76),s!=c&&cw(t,new wJ(t.e,7,o,ttt(s),d.md(),c)),f}return KR(Xtt(t,e,n),76)}(this,t,e)},ZEt.Wi=function(t,e){return function(t,e,n){var i,r,a,o,s,c,l,u,h,f,d,g,p,b;if(rO(o=n.Lk(),102)&&KR(o,19).Bb&mAt&&(f=KR(n.md(),54),(p=j9(t.e,f))!=f)){if(CO(t,e,Elt(t,0,u=KW(o,p))),h=null,ZL(t.e)&&(i=s_t((Xht(),age),t.e.Dh(),o))!=N0(t.e.Dh(),t.c)){for(b=Jbt(t.e.Dh(),o),s=0,a=KR(t.g,124),c=0;c=0;)if(e=t[this.c],this.k.am(e.Lk()))return this.j=this.f?e:e.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},vq(Yjt,"BasicFeatureMap/FeatureEIterator",420),Bgt(676,420,NSt,_L),ZEt.ul=function(){return!0},vq(Yjt,"BasicFeatureMap/ResolvingFeatureEIterator",676),Bgt(968,496,bzt,lO),ZEt.pj=function(){return this},vq(Yjt,"EContentsEList/1",968),Bgt(969,496,bzt,kL),ZEt.ul=function(){return!1},vq(Yjt,"EContentsEList/2",969),Bgt(967,287,mzt,uO),ZEt.wl=function(t){},ZEt.Ob=function(){return!1},ZEt.Sb=function(){return!1},vq(Yjt,"EContentsEList/FeatureIteratorImpl/1",967),Bgt(840,593,uzt,LO),ZEt.Ni=function(){this.a=!0},ZEt.Qj=function(){return this.a},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.a,this.a=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.a=!1},ZEt.a=!1,vq(Yjt,"EDataTypeEList/Unsettable",840),Bgt(1958,593,uzt,IO),ZEt.Si=function(){return!0},vq(Yjt,"EDataTypeUniqueEList",1958),Bgt(1959,840,uzt,OO),ZEt.Si=function(){return!0},vq(Yjt,"EDataTypeUniqueEList/Unsettable",1959),Bgt(147,83,uzt,NO),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectContainmentEList/Resolving",147),Bgt(1184,555,uzt,DO),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectContainmentEList/Unsettable/Resolving",1184),Bgt(766,14,uzt,lB),ZEt.Ni=function(){this.a=!0},ZEt.Qj=function(){return this.a},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.a,this.a=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.a=!1},ZEt.a=!1,vq(Yjt,"EObjectContainmentWithInverseEList/Unsettable",766),Bgt(1222,766,uzt,uB),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),Bgt(757,505,uzt,PO),ZEt.Ni=function(){this.a=!0},ZEt.Qj=function(){return this.a},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.a,this.a=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.a=!1},ZEt.a=!1,vq(Yjt,"EObjectEList/Unsettable",757),Bgt(338,505,uzt,BO),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectResolvingEList",338),Bgt(1844,757,uzt,RO),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectResolvingEList/Unsettable",1844),Bgt(1527,1,{},Au),vq(Yjt,"EObjectValidator",1527),Bgt(559,505,uzt,rz),ZEt.il=function(){return this.d},ZEt.jl=function(){return this.b},ZEt.Mj=function(){return!0},ZEt.ml=function(){return!0},ZEt.b=0,vq(Yjt,"EObjectWithInverseEList",559),Bgt(1225,559,uzt,hB),ZEt.ll=function(){return!0},vq(Yjt,"EObjectWithInverseEList/ManyInverse",1225),Bgt(635,559,uzt,fB),ZEt.Ni=function(){this.a=!0},ZEt.Qj=function(){return this.a},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.a,this.a=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.a=!1},ZEt.a=!1,vq(Yjt,"EObjectWithInverseEList/Unsettable",635),Bgt(1224,635,uzt,gB),ZEt.ll=function(){return!0},vq(Yjt,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),Bgt(767,559,uzt,dB),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectWithInverseResolvingEList",767),Bgt(32,767,uzt,bB),ZEt.ll=function(){return!0},vq(Yjt,"EObjectWithInverseResolvingEList/ManyInverse",32),Bgt(768,635,uzt,pB),ZEt.nl=function(){return!0},ZEt.Wi=function(t,e){return mgt(this,t,KR(e,58))},vq(Yjt,"EObjectWithInverseResolvingEList/Unsettable",768),Bgt(1223,768,uzt,mB),ZEt.ll=function(){return!0},vq(Yjt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),Bgt(1185,632,uzt),ZEt.Li=function(){return 0==(1792&this.b)},ZEt.Ni=function(){this.b|=1},ZEt.kl=function(){return 0!=(4&this.b)},ZEt.Mj=function(){return 0!=(40&this.b)},ZEt.ll=function(){return 0!=(16&this.b)},ZEt.ml=function(){return 0!=(8&this.b)},ZEt.nl=function(){return 0!=(this.b&Zjt)},ZEt.al=function(){return 0!=(32&this.b)},ZEt.ol=function(){return 0!=(this.b&rCt)},ZEt.fk=function(t){return this.d?DW(this.d,t):this.Lk().Hk().fk(t)},ZEt.Qj=function(){return 2&this.b?0!=(1&this.b):0!=this.i},ZEt.Si=function(){return 0!=(128&this.b)},ZEt.Gk=function(){var t;Vkt(this),2&this.b&&(ZL(this.e)?(t=0!=(1&this.b),this.b&=-2,cw(this,new cQ(this.e,2,knt(this.e.Dh(),this.Lk()),t,!1))):this.b&=-2)},ZEt.Yi=function(){return 0==(1536&this.b)},ZEt.b=0,vq(Yjt,"EcoreEList/Generic",1185),Bgt(1186,1185,uzt,sG),ZEt.Lk=function(){return this.a},vq(Yjt,"EcoreEList/Dynamic",1186),Bgt(765,66,R$t,gy),ZEt.aj=function(t){return U2(this.a.a,t)},vq(Yjt,"EcoreEMap/1",765),Bgt(764,83,uzt,uz),ZEt.Mi=function(t,e){Nat(this.b,KR(e,136))},ZEt.Oi=function(t,e){n6(this.b)},ZEt.Pi=function(t,e,n){var i;++(i=this.b,KR(e,136),i).e},ZEt.Qi=function(t,e){Qtt(this.b,KR(e,136))},ZEt.Ri=function(t,e,n){var i;Qtt(this.b,KR(n,136)),$M(n)===$M(e)&&KR(n,136).Ci(null==(i=KR(e,136).ld())?0:N3(i)),Nat(this.b,KR(e,136))},vq(Yjt,"EcoreEMap/DelegateEObjectContainmentEList",764),Bgt(1220,141,Wjt,F4),vq(Yjt,"EcoreEMap/Unsettable",1220),Bgt(1221,764,uzt,yB),ZEt.Ni=function(){this.a=!0},ZEt.Qj=function(){return this.a},ZEt.Gk=function(){var t;Vkt(this),ZL(this.e)?(t=this.a,this.a=!1,Q5(this.e,new cQ(this.e,2,this.c,t,!1))):this.a=!1},ZEt.a=!1,vq(Yjt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),Bgt(1189,215,IAt,lq),ZEt.a=!1,ZEt.b=!1,vq(Yjt,"EcoreUtil/Copier",1189),Bgt(759,1,TSt,mW),ZEt.Nb=function(t){bz(this,t)},ZEt.Ob=function(){return sit(this)},ZEt.Pb=function(){var t;return sit(this),t=this.b,this.b=null,t},ZEt.Qb=function(){this.a.Qb()},vq(Yjt,"EcoreUtil/ProperContentIterator",759),Bgt(1528,1527,{},Pf),vq(Yjt,"EcoreValidator",1528),WF(Yjt,"FeatureMapUtil/Validator"),Bgt(1295,1,{2041:1},Mu),ZEt.am=function(t){return!0},vq(Yjt,"FeatureMapUtil/1",1295),Bgt(773,1,{2041:1},xTt),ZEt.am=function(t){var e;return this.c==t||(null==(e=zD(Oq(this.a,t)))?function(t,e){var n;return t.f==dge?(n=vH(T1((Xht(),age),e)),t.e?4==n&&e!=(egt(),yge)&&e!=(egt(),pge)&&e!=(egt(),bge)&&e!=(egt(),mge):2==n):!(!t.d||!(t.d.Hc(e)||t.d.Hc(KY(T1((Xht(),age),e)))||t.d.Hc(s_t((Xht(),age),t.b,e))))||!(!t.f||!vbt((Xht(),t.f),YH(T1(age,e))))&&(n=vH(T1(age,e)),t.e?4==n:2==n)}(this,t)?(AQ(this.a,t,(FN(),UHt)),!0):(AQ(this.a,t,(FN(),HHt)),!1):e==(FN(),UHt))},ZEt.e=!1,vq(Yjt,"FeatureMapUtil/BasicValidator",773),Bgt(774,45,IAt,cO),vq(Yjt,"FeatureMapUtil/BasicValidator/Cache",774),Bgt(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},DM),ZEt.bd=function(t,e){Cmt(this.c,this.b,t,e)},ZEt.Fc=function(t){return Rwt(this.c,this.b,t)},ZEt.cd=function(t,e){return function(t,e,n,i){var r,a,o,s,c,l,u,h;if(0==i.gc())return!1;if(UE(),o=(c=KR(e,69).xk())?i:new t2(i.gc()),xmt(t.e,e)){if(e.Si())for(u=i.Kc();u.Ob();)fxt(t,e,l=u.Pb(),rO(e,102)&&0!=(KR(e,19).Bb&mAt))||(a=KW(e,l),o.Fc(a));else if(!c)for(u=i.Kc();u.Ob();)a=KW(e,l=u.Pb()),o.Fc(a)}else{for(h=Jbt(t.e.Dh(),e),r=KR(t.g,124),s=0;s1)throw Ay(new Tx(nqt));c||(a=KW(e,i.Kc().Pb()),o.Fc(a))}return w7(t,Ght(t,e,n),o)}(this.c,this.b,t,e)},ZEt.Gc=function(t){return iO(this,t)},ZEt.Gi=function(t,e){!function(t,e,n,i){t.j=-1,sgt(t,Ght(t,e,n),(UE(),KR(e,69).vk().xl(i)))}(this.c,this.b,t,e)},ZEt.Wk=function(t,e){return qyt(this.c,this.b,t,e)},ZEt.$i=function(t){return ukt(this.c,this.b,t,!1)},ZEt.Ii=function(){return iI(this.c,this.b)},ZEt.Ji=function(){return t=this.c,new w6(this.b,t);var t},ZEt.Ki=function(t){return function(t,e,n){var i,r;for(r=new w6(e,t),i=0;i0)if((n-=r.length-e)>=0){for(a.a+="0.";n>gUt.length;n-=gUt.length)s$(a,gUt);OP(a,gUt,oK(n)),tL(a,(IY(e,r.length+1),r.substr(e)))}else tL(a,$G(r,e,oK(n=e-n))),a.a+=".",tL(a,Pq(r,oK(n)));else{for(tL(a,(IY(e,r.length+1),r.substr(e)));n<-gUt.length;n+=gUt.length)s$(a,gUt);OP(a,gUt,oK(-n))}return a.a}(KR(e,247));case 15:case 14:return null==e?null:(n=gx(qD(e)))==fAt?cqt:n==dAt?"-INF":""+n;case 17:return Qct((l_t(),e));case 18:return Qct(e);case 21:case 20:return null==e?null:function(t){return t==fAt?cqt:t==dAt?"-INF":""+t}(KR(e,161).a);case 27:return jD(KR(e,195));case 30:return Mot((l_t(),KR(e,15)));case 31:return Mot(KR(e,15));case 40:case 59:case 48:return function(t){return null==t?null:Get(t)}((l_t(),e));case 42:return Zct((l_t(),e));case 43:return Zct(e);default:throw Ay(new Tx(HFt+t.xe()+UFt))}var n},ZEt.si=function(t){var e;switch(-1==t.G&&(t.G=(e=r2(t))?dat(e.vi(),t):-1),t.G){case 0:return new fv;case 1:return new ju;case 2:return new dv;case 3:return new gv;default:throw Ay(new Tx(YFt+t.zb+UFt))}},ZEt.ti=function(t,e){var n,i,r,a,o,s,c,l,u,h,f,d,g,p,b,m;switch(t.hk()){case 5:case 52:case 4:return e;case 6:return Krt(e);case 8:case 7:return null==e?null:function(t){if(t=gkt(t,!0),_B(MRt,t)||_B("1",t))return FN(),UHt;if(_B(LRt,t)||_B("0",t))return FN(),HHt;throw Ay(new Ox("Invalid boolean value: '"+t+"'"))}(e);case 9:return null==e?null:O1(evt((i=gkt(e,!0)).length>0&&(IY(0,i.length),43==i.charCodeAt(0))?(IY(1,i.length+1),i.substr(1)):i,-128,127)<<24>>24);case 10:return null==e?null:O1(evt((r=gkt(e,!0)).length>0&&(IY(0,r.length),43==r.charCodeAt(0))?(IY(1,r.length+1),r.substr(1)):r,-128,127)<<24>>24);case 11:return HD(gEt(this,(l_t(),Cge),e));case 12:return HD(gEt(this,(l_t(),Age),e));case 13:return null==e?null:new E_(gkt(e,!0));case 15:case 14:return function(t){var e,n,i,r;if(null==t)return null;if(i=gkt(t,!0),r=cqt.length,_B(i.substr(i.length-r,r),cqt))if(4==(n=i.length)){if(IY(0,i.length),43==(e=i.charCodeAt(0)))return Vge;if(45==e)return Yge}else if(3==n)return Vge;return Xut(i)}(e);case 16:return HD(gEt(this,(l_t(),Mge),e));case 17:return xit((l_t(),e));case 18:return xit(e);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return gkt(e,!0);case 21:case 20:return function(t){var e,n,i,r;if(null==t)return null;if(i=gkt(t,!0),r=cqt.length,_B(i.substr(i.length-r,r),cqt))if(4==(n=i.length)){if(IY(0,i.length),43==(e=i.charCodeAt(0)))return Xge;if(45==e)return Wge}else if(3==n)return Xge;return new uw(i)}(e);case 22:return HD(gEt(this,(l_t(),Lge),e));case 23:return HD(gEt(this,(l_t(),Ige),e));case 24:return HD(gEt(this,(l_t(),Oge),e));case 25:return HD(gEt(this,(l_t(),Nge),e));case 26:return HD(gEt(this,(l_t(),Dge),e));case 27:return xrt(e);case 30:return kit((l_t(),e));case 31:return kit(e);case 32:return null==e?null:ttt(evt((u=gkt(e,!0)).length>0&&(IY(0,u.length),43==u.charCodeAt(0))?(IY(1,u.length+1),u.substr(1)):u,gCt,lSt));case 33:return null==e?null:new pI((h=gkt(e,!0)).length>0&&(IY(0,h.length),43==h.charCodeAt(0))?(IY(1,h.length+1),h.substr(1)):h);case 34:return null==e?null:ttt(evt((f=gkt(e,!0)).length>0&&(IY(0,f.length),43==f.charCodeAt(0))?(IY(1,f.length+1),f.substr(1)):f,gCt,lSt));case 36:return null==e?null:Kit(BTt((d=gkt(e,!0)).length>0&&(IY(0,d.length),43==d.charCodeAt(0))?(IY(1,d.length+1),d.substr(1)):d));case 37:return null==e?null:Kit(BTt((g=gkt(e,!0)).length>0&&(IY(0,g.length),43==g.charCodeAt(0))?(IY(1,g.length+1),g.substr(1)):g));case 40:case 59:case 48:return function(t){var e;return null==t?null:new pI((e=gkt(t,!0)).length>0&&(IY(0,e.length),43==e.charCodeAt(0))?(IY(1,e.length+1),e.substr(1)):e)}((l_t(),e));case 42:return _it((l_t(),e));case 43:return _it(e);case 44:return null==e?null:new pI((p=gkt(e,!0)).length>0&&(IY(0,p.length),43==p.charCodeAt(0))?(IY(1,p.length+1),p.substr(1)):p);case 45:return null==e?null:new pI((b=gkt(e,!0)).length>0&&(IY(0,b.length),43==b.charCodeAt(0))?(IY(1,b.length+1),b.substr(1)):b);case 46:return gkt(e,!1);case 47:return HD(gEt(this,(l_t(),Pge),e));case 49:return HD(gEt(this,(l_t(),Rge),e));case 50:return null==e?null:ett(evt((m=gkt(e,!0)).length>0&&(IY(0,m.length),43==m.charCodeAt(0))?(IY(1,m.length+1),m.substr(1)):m,_zt,32767)<<16>>16);case 51:return null==e?null:ett(evt((a=gkt(e,!0)).length>0&&(IY(0,a.length),43==a.charCodeAt(0))?(IY(1,a.length+1),a.substr(1)):a,_zt,32767)<<16>>16);case 53:return HD(gEt(this,(l_t(),jge),e));case 55:return null==e?null:ett(evt((o=gkt(e,!0)).length>0&&(IY(0,o.length),43==o.charCodeAt(0))?(IY(1,o.length+1),o.substr(1)):o,_zt,32767)<<16>>16);case 56:return null==e?null:ett(evt((s=gkt(e,!0)).length>0&&(IY(0,s.length),43==s.charCodeAt(0))?(IY(1,s.length+1),s.substr(1)):s,_zt,32767)<<16>>16);case 57:return null==e?null:Kit(BTt((c=gkt(e,!0)).length>0&&(IY(0,c.length),43==c.charCodeAt(0))?(IY(1,c.length+1),c.substr(1)):c));case 58:return null==e?null:Kit(BTt((l=gkt(e,!0)).length>0&&(IY(0,l.length),43==l.charCodeAt(0))?(IY(1,l.length+1),l.substr(1)):l));case 60:return null==e?null:ttt(evt((n=gkt(e,!0)).length>0&&(IY(0,n.length),43==n.charCodeAt(0))?(IY(1,n.length+1),n.substr(1)):n,gCt,lSt));case 61:return null==e?null:ttt(evt(gkt(e,!0),gCt,lSt));default:throw Ay(new Tx(HFt+t.xe()+UFt))}},vq(sqt,"XMLTypeFactoryImpl",2028),Bgt(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},CH),ZEt.N=!1,ZEt.O=!1;var tpe,epe,npe,ipe,rpe,ape=!1;vq(sqt,"XMLTypePackageImpl",594),Bgt(1961,1,{851:1},Iu),ZEt.Kk=function(){return Fvt(),Lpe},vq(sqt,"XMLTypePackageImpl/1",1961),Bgt(1970,1,Bzt,Ou),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/10",1970),Bgt(1971,1,Bzt,Nu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/11",1971),Bgt(1972,1,Bzt,Du),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/12",1972),Bgt(1973,1,Bzt,Pu),ZEt.fk=function(t){return qM(t)},ZEt.gk=function(t){return WZ(ZHt,RSt,345,t,7,1)},vq(sqt,"XMLTypePackageImpl/13",1973),Bgt(1974,1,Bzt,Bu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/14",1974),Bgt(1975,1,Bzt,Ru),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/15",1975),Bgt(1976,1,Bzt,Fu),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/16",1976),Bgt(1977,1,Bzt,$u),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/17",1977),Bgt(1978,1,Bzt,zu),ZEt.fk=function(t){return rO(t,161)},ZEt.gk=function(t){return WZ(JHt,RSt,161,t,0,1)},vq(sqt,"XMLTypePackageImpl/18",1978),Bgt(1979,1,Bzt,qu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/19",1979),Bgt(1962,1,Bzt,Hu),ZEt.fk=function(t){return rO(t,857)},ZEt.gk=function(t){return WZ(vge,pSt,857,t,0,1)},vq(sqt,"XMLTypePackageImpl/2",1962),Bgt(1980,1,Bzt,Uu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/20",1980),Bgt(1981,1,Bzt,Gu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/21",1981),Bgt(1982,1,Bzt,Ku),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/22",1982),Bgt(1983,1,Bzt,Yu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/23",1983),Bgt(1984,1,Bzt,Vu),ZEt.fk=function(t){return rO(t,195)},ZEt.gk=function(t){return WZ(qpe,RSt,195,t,0,2)},vq(sqt,"XMLTypePackageImpl/24",1984),Bgt(1985,1,Bzt,Wu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/25",1985),Bgt(1986,1,Bzt,Xu),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/26",1986),Bgt(1987,1,Bzt,Qu),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/27",1987),Bgt(1988,1,Bzt,Zu),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/28",1988),Bgt(1989,1,Bzt,Ju),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/29",1989),Bgt(1963,1,Bzt,th),ZEt.fk=function(t){return rO(t,681)},ZEt.gk=function(t){return WZ(Qge,pSt,2119,t,0,1)},vq(sqt,"XMLTypePackageImpl/3",1963),Bgt(1990,1,Bzt,eh),ZEt.fk=function(t){return rO(t,17)},ZEt.gk=function(t){return WZ(nUt,RSt,17,t,0,1)},vq(sqt,"XMLTypePackageImpl/30",1990),Bgt(1991,1,Bzt,nh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/31",1991),Bgt(1992,1,Bzt,ih),ZEt.fk=function(t){return rO(t,168)},ZEt.gk=function(t){return WZ(cUt,RSt,168,t,0,1)},vq(sqt,"XMLTypePackageImpl/32",1992),Bgt(1993,1,Bzt,rh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/33",1993),Bgt(1994,1,Bzt,ah),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/34",1994),Bgt(1995,1,Bzt,oh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/35",1995),Bgt(1996,1,Bzt,sh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/36",1996),Bgt(1997,1,Bzt,ch),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/37",1997),Bgt(1998,1,Bzt,lh),ZEt.fk=function(t){return rO(t,15)},ZEt.gk=function(t){return WZ(cHt,OLt,15,t,0,1)},vq(sqt,"XMLTypePackageImpl/38",1998),Bgt(1999,1,Bzt,uh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/39",1999),Bgt(1964,1,Bzt,hh),ZEt.fk=function(t){return rO(t,682)},ZEt.gk=function(t){return WZ(Zge,pSt,2120,t,0,1)},vq(sqt,"XMLTypePackageImpl/4",1964),Bgt(2e3,1,Bzt,fh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/40",2e3),Bgt(2001,1,Bzt,dh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/41",2001),Bgt(2002,1,Bzt,gh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/42",2002),Bgt(2003,1,Bzt,ph),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/43",2003),Bgt(2004,1,Bzt,bh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/44",2004),Bgt(2005,1,Bzt,mh),ZEt.fk=function(t){return rO(t,191)},ZEt.gk=function(t){return WZ(uUt,RSt,191,t,0,1)},vq(sqt,"XMLTypePackageImpl/45",2005),Bgt(2006,1,Bzt,yh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/46",2006),Bgt(2007,1,Bzt,wh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/47",2007),Bgt(2008,1,Bzt,vh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/48",2008),Bgt(2009,1,Bzt,xh),ZEt.fk=function(t){return rO(t,191)},ZEt.gk=function(t){return WZ(uUt,RSt,191,t,0,1)},vq(sqt,"XMLTypePackageImpl/49",2009),Bgt(1965,1,Bzt,kh),ZEt.fk=function(t){return rO(t,683)},ZEt.gk=function(t){return WZ(Jge,pSt,2121,t,0,1)},vq(sqt,"XMLTypePackageImpl/5",1965),Bgt(2010,1,Bzt,_h),ZEt.fk=function(t){return rO(t,168)},ZEt.gk=function(t){return WZ(cUt,RSt,168,t,0,1)},vq(sqt,"XMLTypePackageImpl/50",2010),Bgt(2011,1,Bzt,Th),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/51",2011),Bgt(2012,1,Bzt,Eh),ZEt.fk=function(t){return rO(t,17)},ZEt.gk=function(t){return WZ(nUt,RSt,17,t,0,1)},vq(sqt,"XMLTypePackageImpl/52",2012),Bgt(1966,1,Bzt,Sh),ZEt.fk=function(t){return jM(t)},ZEt.gk=function(t){return WZ(fUt,RSt,2,t,6,1)},vq(sqt,"XMLTypePackageImpl/6",1966),Bgt(1967,1,Bzt,Ch),ZEt.fk=function(t){return rO(t,195)},ZEt.gk=function(t){return WZ(qpe,RSt,195,t,0,2)},vq(sqt,"XMLTypePackageImpl/7",1967),Bgt(1968,1,Bzt,Ah),ZEt.fk=function(t){return zM(t)},ZEt.gk=function(t){return WZ(KHt,RSt,485,t,8,1)},vq(sqt,"XMLTypePackageImpl/8",1968),Bgt(1969,1,Bzt,Mh),ZEt.fk=function(t){return rO(t,222)},ZEt.gk=function(t){return WZ(VHt,RSt,222,t,0,1)},vq(sqt,"XMLTypePackageImpl/9",1969),Bgt(55,63,bCt,Nx),vq(Nqt,"RegEx/ParseException",55),Bgt(836,1,{},Lh),ZEt.bm=function(t){return t16*n)throw Ay(new Nx(XEt((LI(),pjt))));n=16*n+r}if(125!=this.a)throw Ay(new Nx(XEt((LI(),bjt))));if(n>Dqt)throw Ay(new Nx(XEt((LI(),mjt))));t=n}else{if(r=0,0!=this.c||(r=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(n=r,AEt(this),0!=this.c||(r=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));t=n=16*n+r}break;case 117:if(i=0,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));t=e=16*e+i;break;case 118:if(AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if(e=16*e+i,AEt(this),0!=this.c||(i=Kat(this.a))<0)throw Ay(new Nx(XEt((LI(),gjt))));if((e=16*e+i)>Dqt)throw Ay(new Nx(XEt((LI(),"parser.descappe.4"))));t=e;break;case 65:case 90:case 122:throw Ay(new Nx(XEt((LI(),yjt))))}return t},ZEt.dm=function(t){var e;switch(t){case 100:e=32==(32&this.e)?KTt("Nd",!0):(UEt(),dpe);break;case 68:e=32==(32&this.e)?KTt("Nd",!1):(UEt(),ype);break;case 119:e=32==(32&this.e)?KTt("IsWord",!0):(UEt(),Cpe);break;case 87:e=32==(32&this.e)?KTt("IsWord",!1):(UEt(),vpe);break;case 115:e=32==(32&this.e)?KTt("IsSpace",!0):(UEt(),kpe);break;case 83:e=32==(32&this.e)?KTt("IsSpace",!1):(UEt(),wpe);break;default:throw Ay(new Yv(Pqt+t.toString(16)))}return e},ZEt.em=function(t){var e,n,i,r,a,o,s,c,l,u,h;for(this.b=1,AEt(this),e=null,0==this.c&&94==this.a?(AEt(this),t?(UEt(),UEt(),l=new UY(5)):(UEt(),UEt(),Nmt(e=new UY(4),0,Dqt),l=new UY(4))):(UEt(),UEt(),l=new UY(4)),r=!0;1!=(h=this.c)&&(0!=h||93!=this.a||r);){if(r=!1,n=this.a,i=!1,10==h)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:pkt(l,this.dm(n)),i=!0;break;case 105:case 73:case 99:case 67:(n=this.um(l,n))<0&&(i=!0);break;case 112:case 80:if(!(u=Tdt(this,n)))throw Ay(new Nx(XEt((LI(),ijt))));pkt(l,u),i=!0;break;default:n=this.cm()}else if(20==h){if((a=QN(this.i,58,this.d))<0)throw Ay(new Nx(XEt((LI(),rjt))));if(o=!0,94==JH(this.i,this.d)&&(++this.d,o=!1),!(s=lJ($G(this.i,this.d,a),o,512==(512&this.e))))throw Ay(new Nx(XEt((LI(),ojt))));if(pkt(l,s),i=!0,a+1>=this.j||93!=JH(this.i,a+1))throw Ay(new Nx(XEt((LI(),rjt))));this.d=a+2}if(AEt(this),!i)if(0!=this.c||45!=this.a)Nmt(l,n,n);else{if(AEt(this),1==(h=this.c))throw Ay(new Nx(XEt((LI(),ajt))));0==h&&93==this.a?(Nmt(l,n,n),Nmt(l,45,45)):(c=this.a,10==h&&(c=this.cm()),AEt(this),Nmt(l,n,c))}(this.e&rCt)==rCt&&0==this.c&&44==this.a&&AEt(this)}if(1==this.c)throw Ay(new Nx(XEt((LI(),ajt))));return e&&(q_t(e,l),l=e),xpt(l),$kt(l),this.b=0,AEt(this),l},ZEt.fm=function(){var t,e,n,i;for(n=this.em(!1);7!=(i=this.c);){if(t=this.a,(0!=i||45!=t&&38!=t)&&4!=i)throw Ay(new Nx(XEt((LI(),fjt))));if(AEt(this),9!=this.c)throw Ay(new Nx(XEt((LI(),hjt))));if(e=this.em(!1),4==i)pkt(n,e);else if(45==t)q_t(n,e);else{if(38!=t)throw Ay(new Yv("ASSERT"));L_t(n,e)}}return AEt(this),n},ZEt.gm=function(){var t,e;return t=this.a-48,UEt(),UEt(),e=new WG(12,null,t),!this.g&&(this.g=new gw),sw(this.g,new py(t)),AEt(this),e},ZEt.hm=function(){return AEt(this),UEt(),_pe},ZEt.im=function(){return AEt(this),UEt(),xpe},ZEt.jm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.km=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.lm=function(){return AEt(this),m8()},ZEt.mm=function(){return AEt(this),UEt(),Epe},ZEt.nm=function(){return AEt(this),UEt(),Ape},ZEt.om=function(){var t;if(this.d>=this.j||64!=(65504&(t=JH(this.i,this.d++))))throw Ay(new Nx(XEt((LI(),J$t))));return AEt(this),UEt(),UEt(),new D$(0,t-64)},ZEt.pm=function(){return AEt(this),function(){var t,e,n,i,r,a;if(UEt(),Dpe)return Dpe;for(pkt(t=new UY(4),KTt(Uqt,!0)),q_t(t,KTt("M",!0)),q_t(t,KTt("C",!0)),a=new UY(4),i=0;i<11;i++)Nmt(a,i,i);return pkt(e=new UY(4),KTt("M",!0)),Nmt(e,4448,4607),Nmt(e,65438,65439),Ukt(r=new EI(2),t),Ukt(r,ppe),(n=new EI(2)).Jm(N$(a,KTt("L",!0))),n.Jm(e),n=new qz(r,n=new rX(3,n)),Dpe=n}()},ZEt.qm=function(){return AEt(this),UEt(),Mpe},ZEt.rm=function(){var t;return UEt(),UEt(),t=new D$(0,105),AEt(this),t},ZEt.sm=function(){return AEt(this),UEt(),Spe},ZEt.tm=function(){return AEt(this),UEt(),Tpe},ZEt.um=function(t,e){return this.cm()},ZEt.vm=function(){return AEt(this),UEt(),bpe},ZEt.wm=function(){var t,e,n,i,r;if(this.d+1>=this.j)throw Ay(new Nx(XEt((LI(),X$t))));if(i=-1,e=null,49<=(t=JH(this.i,this.d))&&t<=57){if(i=t-48,!this.g&&(this.g=new gw),sw(this.g,new py(i)),++this.d,41!=JH(this.i,this.d))throw Ay(new Nx(XEt((LI(),Y$t))));++this.d}else switch(63==t&&--this.d,AEt(this),e=fEt(this),e.e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));break;default:throw Ay(new Nx(XEt((LI(),Q$t))))}if(AEt(this),n=null,2==(r=Oit(this)).e){if(2!=r.Pm())throw Ay(new Nx(XEt((LI(),Z$t))));n=r.Lm(1),r=r.Lm(0)}if(7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),UEt(),UEt(),new e0(i,e,r,n)},ZEt.xm=function(){return AEt(this),UEt(),mpe},ZEt.ym=function(){var t;if(AEt(this),t=gz(24,Oit(this)),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.zm=function(){var t;if(AEt(this),t=gz(20,Oit(this)),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Am=function(){var t;if(AEt(this),t=gz(22,Oit(this)),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Bm=function(){var t,e,n,i,r;for(t=0,n=0,e=-1;this.d=this.j)throw Ay(new Nx(XEt((LI(),V$t))));if(45==e){for(++this.d;this.d=this.j)throw Ay(new Nx(XEt((LI(),V$t))))}if(58==e){if(++this.d,AEt(this),i=mq(Oit(this),t,n),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));AEt(this)}else{if(41!=e)throw Ay(new Nx(XEt((LI(),W$t))));++this.d,AEt(this),i=mq(Oit(this),t,n)}return i},ZEt.Cm=function(){var t;if(AEt(this),t=gz(21,Oit(this)),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Dm=function(){var t;if(AEt(this),t=gz(23,Oit(this)),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Em=function(){var t,e;if(AEt(this),t=this.f++,e=pz(Oit(this),t),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),e},ZEt.Fm=function(){var t;if(AEt(this),t=pz(Oit(this),0),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Gm=function(t){return AEt(this),5==this.c?(AEt(this),N$(t,(UEt(),UEt(),new rX(9,t)))):N$(t,(UEt(),UEt(),new rX(3,t)))},ZEt.Hm=function(t){var e;return AEt(this),UEt(),UEt(),e=new EI(2),5==this.c?(AEt(this),Ukt(e,ppe),Ukt(e,t)):(Ukt(e,t),Ukt(e,ppe)),e},ZEt.Im=function(t){return AEt(this),5==this.c?(AEt(this),UEt(),UEt(),new rX(9,t)):(UEt(),UEt(),new rX(3,t))},ZEt.a=0,ZEt.b=0,ZEt.c=0,ZEt.d=0,ZEt.e=0,ZEt.f=1,ZEt.g=null,ZEt.j=0,vq(Nqt,"RegEx/RegexParser",836),Bgt(1947,836,{},pv),ZEt.bm=function(t){return!1},ZEt.cm=function(){return dyt(this)},ZEt.dm=function(t){return nvt(t)},ZEt.em=function(t){return LEt(this)},ZEt.fm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.gm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.hm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.im=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.jm=function(){return AEt(this),nvt(67)},ZEt.km=function(){return AEt(this),nvt(73)},ZEt.lm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.mm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.nm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.om=function(){return AEt(this),nvt(99)},ZEt.pm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.qm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.rm=function(){return AEt(this),nvt(105)},ZEt.sm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.tm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.um=function(t,e){return pkt(t,nvt(e)),-1},ZEt.vm=function(){return AEt(this),UEt(),UEt(),new D$(0,94)},ZEt.wm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.xm=function(){return AEt(this),UEt(),UEt(),new D$(0,36)},ZEt.ym=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.zm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Am=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Bm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Cm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Dm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Em=function(){var t;if(AEt(this),t=pz(Oit(this),0),7!=this.c)throw Ay(new Nx(XEt((LI(),Y$t))));return AEt(this),t},ZEt.Fm=function(){throw Ay(new Nx(XEt((LI(),wjt))))},ZEt.Gm=function(t){return AEt(this),N$(t,(UEt(),UEt(),new rX(3,t)))},ZEt.Hm=function(t){var e;return AEt(this),UEt(),UEt(),Ukt(e=new EI(2),t),Ukt(e,ppe),e},ZEt.Im=function(t){return AEt(this),UEt(),UEt(),new rX(3,t)};var ope=null,spe=null;vq(Nqt,"RegEx/ParserForXMLSchema",1947),Bgt(122,1,Yqt,by),ZEt.Jm=function(t){throw Ay(new Yv("Not supported."))},ZEt.Km=function(){return-1},ZEt.Lm=function(t){return null},ZEt.Mm=function(){return null},ZEt.Nm=function(t){},ZEt.Om=function(t){},ZEt.Pm=function(){return 0},ZEt.Ib=function(){return this.Qm(0)},ZEt.Qm=function(t){return 11==this.e?".":""},ZEt.e=0;var cpe,lpe,upe,hpe,fpe,dpe,gpe,ppe,bpe,mpe,ype,wpe,vpe,xpe,kpe,_pe,Tpe,Epe,Spe,Cpe,Ape,Mpe,Lpe,Ipe,Ope=null,Npe=null,Dpe=null,Ppe=vq(Nqt,"RegEx/Token",122);Bgt(138,122,{3:1,138:1,122:1},UY),ZEt.Qm=function(t){var e,n,i;if(4==this.e)if(this==gpe)n=".";else if(this==dpe)n="\\d";else if(this==Cpe)n="\\w";else if(this==kpe)n="\\s";else{for((i=new Kx).a+="[",e=0;e0&&(i.a+=","),this.b[e]===this.b[e+1]?QM(i,Txt(this.b[e])):(QM(i,Txt(this.b[e])),i.a+="-",QM(i,Txt(this.b[e+1])));i.a+="]",n=i.a}else if(this==ype)n="\\D";else if(this==vpe)n="\\W";else if(this==wpe)n="\\S";else{for((i=new Kx).a+="[^",e=0;e0&&(i.a+=","),this.b[e]===this.b[e+1]?QM(i,Txt(this.b[e])):(QM(i,Txt(this.b[e])),i.a+="-",QM(i,Txt(this.b[e+1])));i.a+="]",n=i.a}return n},ZEt.a=!1,ZEt.c=!1,vq(Nqt,"RegEx/RangeToken",138),Bgt(592,1,{592:1},py),ZEt.a=0,vq(Nqt,"RegEx/RegexParser/ReferencePosition",592),Bgt(591,1,{3:1,591:1},U_),ZEt.Fb=function(t){var e;return!(null==t||!rO(t,591))&&(e=KR(t,591),_B(this.b,e.b)&&this.a==e.a)},ZEt.Hb=function(){return d8(this.b+"/"+Qbt(this.a))},ZEt.Ib=function(){return this.c.Qm(this.a)},ZEt.a=0,vq(Nqt,"RegEx/RegularExpression",591),Bgt(228,122,Yqt,D$),ZEt.Km=function(){return this.a},ZEt.Qm=function(t){var e,n;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:n="\\"+zP(this.a&ECt);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=this.a>=mAt?"\\v"+$G(e="0"+(this.a>>>0).toString(16),e.length-6,e.length):""+zP(this.a&ECt)}break;case 8:n=this==bpe||this==mpe?""+zP(this.a&ECt):"\\"+zP(this.a&ECt);break;default:n=null}return n},ZEt.a=0,vq(Nqt,"RegEx/Token/CharToken",228),Bgt(318,122,Yqt,rX),ZEt.Lm=function(t){return this.a},ZEt.Nm=function(t){this.b=t},ZEt.Om=function(t){this.c=t},ZEt.Pm=function(){return 1},ZEt.Qm=function(t){var e;if(3==this.e)if(this.c<0&&this.b<0)e=this.a.Qm(t)+"*";else if(this.c==this.b)e=this.a.Qm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)e=this.a.Qm(t)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw Ay(new Yv("Token#toString(): CLOSURE "+this.c+dSt+this.b));e=this.a.Qm(t)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)e=this.a.Qm(t)+"*?";else if(this.c==this.b)e=this.a.Qm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)e=this.a.Qm(t)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw Ay(new Yv("Token#toString(): NONGREEDYCLOSURE "+this.c+dSt+this.b));e=this.a.Qm(t)+"{"+this.c+",}?"}return e},ZEt.b=0,ZEt.c=0,vq(Nqt,"RegEx/Token/ClosureToken",318),Bgt(837,122,Yqt,qz),ZEt.Lm=function(t){return 0==t?this.a:this.b},ZEt.Pm=function(){return 2},ZEt.Qm=function(t){return 3==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(t)+"+":9==this.b.e&&this.b.Lm(0)==this.a?this.a.Qm(t)+"+?":this.a.Qm(t)+""+this.b.Qm(t)},vq(Nqt,"RegEx/Token/ConcatToken",837),Bgt(1945,122,Yqt,e0),ZEt.Lm=function(t){if(0==t)return this.d;if(1==t)return this.b;throw Ay(new Yv("Internal Error: "+t))},ZEt.Pm=function(){return this.b?2:1},ZEt.Qm=function(t){var e;return e=this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a,this.b?e+=this.d+"|"+this.b+")":e+=this.d+")",e},ZEt.c=0,vq(Nqt,"RegEx/Token/ConditionToken",1945),Bgt(1946,122,Yqt,HY),ZEt.Lm=function(t){return this.b},ZEt.Pm=function(){return 1},ZEt.Qm=function(t){return"(?"+(0==this.a?"":Qbt(this.a))+(0==this.c?"":Qbt(this.c))+":"+this.b.Qm(t)+")"},ZEt.a=0,ZEt.c=0,vq(Nqt,"RegEx/Token/ModifierToken",1946),Bgt(838,122,Yqt,Qq),ZEt.Lm=function(t){return this.a},ZEt.Pm=function(){return 1},ZEt.Qm=function(t){var e;switch(e=null,this.e){case 6:e=0==this.b?"(?:"+this.a.Qm(t)+")":"("+this.a.Qm(t)+")";break;case 20:e="(?="+this.a.Qm(t)+")";break;case 21:e="(?!"+this.a.Qm(t)+")";break;case 22:e="(?<="+this.a.Qm(t)+")";break;case 23:e="(?"+this.a.Qm(t)+")"}return e},ZEt.b=0,vq(Nqt,"RegEx/Token/ParenToken",838),Bgt(530,122,{3:1,122:1,530:1},WG),ZEt.Mm=function(){return this.b},ZEt.Qm=function(t){return 12==this.e?"\\"+this.a:function(t){var e,n,i,r;for(r=t.length,e=null,i=0;i=0?(e||(e=new Yx,i>0&&QM(e,(tJ(0,i,t.length),t.substr(0,i)))),e.a+="\\",Yq(e,n&ECt)):e&&Yq(e,n&ECt);return e?e.a:t}(this.b)},ZEt.a=0,vq(Nqt,"RegEx/Token/StringToken",530),Bgt(477,122,Yqt,EI),ZEt.Jm=function(t){Ukt(this,t)},ZEt.Lm=function(t){return KR(aH(this.a,t),122)},ZEt.Pm=function(){return this.a?this.a.a.c.length:0},ZEt.Qm=function(t){var e,n,i,r,a;if(1==this.e){if(2==this.a.a.c.length)e=KR(aH(this.a,0),122),r=3==(n=KR(aH(this.a,1),122)).e&&n.Lm(0)==e?e.Qm(t)+"+":9==n.e&&n.Lm(0)==e?e.Qm(t)+"+?":e.Qm(t)+""+n.Qm(t);else{for(a=new Kx,i=0;i=t.c.b:t.a<=t.c.b))throw Ay(new ew);return e=t.a,t.a+=t.c.c,++t.b,ttt(e)}(this)},ZEt.Ub=function(){return function(t){if(t.b<=0)throw Ay(new ew);return--t.b,t.a-=t.c.c,ttt(t.a)}(this)},ZEt.Wb=function(t){KR(t,17),function(){throw Ay(new Ax(Zqt))}()},ZEt.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},ZEt.Sb=function(){return this.b>0},ZEt.Tb=function(){return this.b},ZEt.Vb=function(){return this.b-1},ZEt.Qb=function(){throw Ay(new Ax(Jqt))},ZEt.a=0,ZEt.b=0,vq(Xqt,"ExclusiveRange/RangeIterator",258);var Bpe,Rpe,Fpe=xH(tzt,"C"),$pe=xH(izt,"I"),jpe=xH(aSt,"Z"),zpe=xH(rzt,"J"),qpe=xH(Jjt,"B"),Hpe=xH(ezt,"D"),Upe=xH(nzt,"F"),Gpe=xH(azt,"S"),Kpe=WF("org.eclipse.elk.core.labels","ILabelManager"),Ype=WF(g$t,"DiagnosticChain"),Vpe=WF(Fzt,"ResourceSet"),Wpe=vq(g$t,"InvocationTargetException",null),Xpe=(Gx(),function(t){return Gx(),function(){return nW(t,this,arguments)}}),Qpe=Qpe=function(t,e,n,i){V_();var r=tSt;function a(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var i=Object.assign({},e),r=!1;try{t.resolve("web-worker"),r=!0}catch{}if(e.workerUrl)if(r){var a=t("web-worker");i.workerFactory=function(t){return new a(t)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!i.workerFactory){var o=t("./elk-worker.min.js").Worker;i.workerFactory=function(t){return new o(t)}}return function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n}(t("./elk-api.js").default);Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports=i,i.default=i},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(t,e,n){e.exports=Worker},{}]},{},[3])(3)}(lF);const uF=new(r(lF.exports));let hF={};const fF={};let dF={};const gF=(t,e,n)=>{const i={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return i.TD=i.TB,i[n][e][t]},pF=(t,e,n)=>{if(l.info("getNextPort",{node:t,edgeDirection:e,graphDirection:n}),!hF[t])switch(n){case"TB":case"TD":hF[t]={inPosition:"north",outPosition:"south"};break;case"BT":hF[t]={inPosition:"south",outPosition:"north"};break;case"RL":hF[t]={inPosition:"east",outPosition:"west"};break;case"LR":hF[t]={inPosition:"west",outPosition:"east"}}const i="in"===e?hF[t].inPosition:hF[t].outPosition;return"in"===e?hF[t].inPosition=gF(hF[t].inPosition,e,n):hF[t].outPosition=gF(hF[t].outPosition,e,n),i},bF=function(t,e,n,i,r,a){const o=function(t,e,n){const i=((t,e,n)=>{const{parentById:i}=n,r=new Set;let a=t;for(;a;){if(r.add(a),a===e)return a;a=i[a]}for(a=e;a;){if(r.has(a))return a;a=i[a]}return"root"})(t,e,n);if(void 0===i||"root"===i)return{x:0,y:0};const r=dF[i].offset;return{x:r.posX,y:r.posY}}(e.sourceId,e.targetId,r),s=e.sections[0].startPoint,c=e.sections[0].endPoint,l=(e.sections[0].bendPoints?e.sections[0].bendPoints:[]).map((t=>[t.x+o.x,t.y+o.y])),u=[[s.x+o.x,s.y+o.y],...l,[c.x+o.x,c.y+o.y]],{x:h,y:f}=dI(e.edgeData),d=$o().x(h).y(f).curve(Bo),g=t.insert("path").attr("d",d(u)).attr("class","path "+n.classes).attr("fill","none"),p=t.insert("g").attr("class","edgeLabel"),b=ee(p.node().appendChild(e.labelEl)),m=b.node().firstChild.getBoundingClientRect();b.attr("width",m.width),b.attr("height",m.height),p.attr("transform",`translate(${e.labels[0].x+o.x}, ${e.labels[0].y+o.y})`),function(t,e,n,i,r){let a="";i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),gI(t,e,a,r,n)}(g,n,i.type,i.arrowMarkerAbsolute,a)},mF=(t,e)=>{t.forEach((t=>{t.children||(t.children=[]);const n=e.childrenById[t.id];n&&n.forEach((e=>{t.children.push(dF[e])})),mF(t.children,e)}))},yF=(t,e,n,i,r,a,o)=>{n.forEach((function(n){if(n)if(dF[n.id].offset={posX:n.x+t,posY:n.y+e,x:t,y:e,depth:o,width:n.width,height:n.height},"group"===n.type){const i=r.insert("g").attr("class","subgraph");i.insert("rect").attr("class","subgraph subgraph-lvl-"+o%5+" node").attr("x",n.x+t).attr("y",n.y+e).attr("width",n.width).attr("height",n.height);const a=i.insert("g").attr("class","label"),s=sd().flowchart.htmlLabels?n.labelData.width/2:0;a.attr("transform",`translate(${n.labels[0].x+t+n.x+s}, ${n.labels[0].y+e+n.y+3})`),a.node().appendChild(n.labelData.labelNode),l.info("Id (UGH)= ",n.type,n.labels)}else l.info("Id (UGH)= ",n.id),n.el.attr("transform",`translate(${n.x+t+n.width/2}, ${n.y+e+n.height/2})`)})),n.forEach((function(n){n&&"group"===n.type&&yF(t+n.x,e+n.y,n.children,i,r,a,o+1)}))},wF={getClasses:function(t,e){return l.info("Extracting classes"),e.db.getClasses()},draw:async function(t,e,n,i){var r;i.db.clear(),dF={},hF={},i.db.setGen("gen-2"),i.parser.parse(t);const a=ee("body").append("div").attr("style","height:400px").attr("id","cy");let o={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(l.info("Drawing flowchart using v3 renderer",uF),i.db.getDirection()){case"BT":o.layoutOptions["elk.direction"]="UP";break;case"TB":o.layoutOptions["elk.direction"]="DOWN";break;case"LR":o.layoutOptions["elk.direction"]="RIGHT";break;case"RL":o.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:s,flowchart:c}=sd();let u;"sandbox"===s&&(u=ee("#i"+e));const h=ee("sandbox"===s?u.nodes()[0].contentDocument.body:"body"),f="sandbox"===s?u.nodes()[0].contentDocument:document,d=h.select(`[id="${e}"]`);NA(d,["point","circle","cross"],i.type,e);const g=i.db.getVertices();let p;const b=i.db.getSubGraphs();l.info("Subgraphs - ",b);for(let t=b.length-1;t>=0;t--)p=b[t],i.db.addVertex(p.id,{text:p.title,type:p.labelType},"group",void 0,p.classes,p.dir);const m=d.insert("g").attr("class","subgraphs"),y=function(t){const e={parentById:{},childrenById:{}},n=t.getSubGraphs();return l.info("Subgraphs - ",n),n.forEach((function(t){t.nodes.forEach((function(n){e.parentById[n]=t.id,void 0===e.childrenById[t.id]&&(e.childrenById[t.id]=[]),e.childrenById[t.id].push(n)}))})),n.forEach((function(t){t.id,void 0!==e.parentById[t.id]&&e.parentById[t.id]})),e}(i.db);o=await async function(t,e,n,i,r,a,o){const s=n.select(`[id="${e}"]`).insert("g").attr("class","nodes"),c=Object.keys(t);return await Promise.all(c.map((async function(e){const n=t[e];let o="default";n.classes.length>0&&(o=n.classes.join(" ")),o+=" flowchart-label";const c=Zh(n.styles);let l=void 0!==n.text?n.text:n.id;const u={width:0,height:0},h=[{id:n.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:n.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:n.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:n.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let f=0,d="",g={};switch(n.type){case"round":f=5,d="rect";break;case"square":case"group":default:d="rect";break;case"diamond":d="question",g={portConstraints:"FIXED_SIDE"};break;case"hexagon":d="hexagon";break;case"odd":case"odd_right":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"doublecircle":d="doublecircle"}const p={labelStyle:c.labelStyle,shape:d,labelText:l,labelType:n.labelType,rx:f,ry:f,class:o,style:c.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:r.db.getTooltip(n.id)||"",domId:r.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:sd().flowchart.padding};let b,m;if("group"!==p.type)m=await aI(s,p,n.dir),b=m.node().getBBox();else{i.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:t,bbox:e}=await OL(s,p,void 0,!0);u.width=e.width,u.wrappingWidth=sd().flowchart.wrappingWidth,u.height=e.height,u.labelNode=t.node(),p.labelData=u}const y={id:n.id,ports:"diamond"===n.type?h:[],layoutOptions:g,labelText:l,labelData:u,domId:r.db.lookUpDomId(n.id),width:null==b?void 0:b.width,height:null==b?void 0:b.height,type:n.type,el:m,parent:a.parentById[n.id]};dF[p.id]=y}))),o}(g,e,h,f,i,y,o);const w=d.insert("g").attr("class","edges edgePath"),v=i.db.getEdges();o=function(t,e,n,i){l.info("abc78 edges = ",t);const r=i.insert("g").attr("class","edgeLabels");let a,o,s={},c=e.db.getDirection();if(void 0!==t.defaultStyle){const e=Zh(t.defaultStyle);a=e.style,o=e.labelStyle}return t.forEach((function(e){const i="L-"+e.start+"-"+e.end;void 0===s[i]?(s[i]=0,l.info("abc78 new entry",i,s[i])):(s[i]++,l.info("abc78 new entry",i,s[i]));let u=i+"-"+s[i];l.info("abc78 new link id to be used is",i,u,s[i]);const h="LS-"+e.start,f="LE-"+e.end,d={style:"",labelStyle:""};switch(d.minlen=e.length||1,"arrow_open"===e.type?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",e.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle"}let g="",p="";switch(e.stroke){case"normal":g="fill:none;",void 0!==a&&(g=a),void 0!==o&&(p=o),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;"}if(void 0!==e.style){const t=Zh(e.style);g=t.style,p=t.labelStyle}d.style=d.style+=g,d.labelStyle=d.labelStyle+=p,void 0!==e.interpolate?d.curve=Vh(e.interpolate,Bo):void 0!==t.defaultInterpolate?d.curve=Vh(t.defaultInterpolate,Bo):d.curve=Vh(fF.curve,Bo),void 0===e.text?void 0!==e.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType=e.labelType,d.label=e.text.replace(Bc.lineBreakRegex,"\n"),void 0===e.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=u,d.classes="flowchart-link "+h+" "+f;const b=wI(r,d),{source:m,target:y,sourceId:w,targetId:v}=((t,e)=>{let n=t.start,i=t.end;const r=n,a=i,o=dF[n],s=dF[i];return o&&s?("diamond"===o.type&&(n=`${n}-${pF(n,"out",e)}`),"diamond"===s.type&&(i=`${i}-${pF(i,"in",e)}`),{source:n,target:i,sourceId:r,targetId:a}):{source:n,target:i}})(e,c);l.debug("abc78 source and target",m,y),n.edges.push({id:"e"+e.start+e.end,sources:[m],targets:[y],sourceId:w,targetId:v,labelEl:b,labels:[{width:d.width,height:d.height,orgWidth:d.width,orgHeight:d.height,text:d.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:d})})),n}(v,i,o,d),Object.keys(dF).forEach((t=>{const e=dF[t];e.parent||o.children.push(e),void 0!==y.childrenById[t]&&(e.labels=[{text:e.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:e.labelData.width,height:e.labelData.height}],delete e.x,delete e.y,delete e.width,delete e.height)})),mF(o.children,y),l.info("after layout",JSON.stringify(o,null,2));const x=await uF.layout(o);yF(0,0,x.children,d,m,i,0),l.info("after layout",x),null==(r=x.edges)||r.map((t=>{bF(w,t,t.edgeData,i,y,e)})),Gd({},d,c.diagramPadding,c.useMaxWidth),a.remove()}},vF=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:q_,renderer:wF,parser:Kk,styles:t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.85;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n\n .flowchart-label text {\n text-anchor: middle;\n }\n\n ${(t=>{let e="";for(let n=0;n<5;n++)e+=`\n .subgraph-lvl-${n} {\n fill: ${t[`surface${n}`]};\n stroke: ${t[`surfacePeer${n}`]};\n }\n `;return e})(t)}\n`}},Symbol.toStringTag,{value:"Module"}));var xF=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],i=[1,10],r=[1,11],a=[1,12],o=[1,13],s=[1,16],c=[1,17],l={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 1:return a[s-1];case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 8:i.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 15:i.addTask(a[s],0,""),this.$=a[s];break;case 16:i.addEvent(a[s].substr(2)),this.$=a[s]}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:r,16:a,17:o,18:14,19:15,20:s,21:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:i,14:r,16:a,17:o,18:14,19:15,20:s,21:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},u={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;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 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/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;]+)/i,/^(?:[^#:\n;]+)/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],inclusive:!0}}};function h(){this.yy={}}return l.lexer=u,h.prototype=l,l.Parser=h,new h}();xF.parser=xF;const kF=xF;let _F="",TF=0;const EF=[],SF=[],CF=[],AF=()=>rg,MF=function(){EF.length=0,SF.length=0,_F="",CF.length=0,Qd()},LF=function(t){_F=t,EF.push(t)},IF=function(){return EF},OF=function(){let t=BF(),e=0;for(;!t&&e<100;)t=BF(),e++;return SF.push(...CF),SF},NF=function(t,e,n){const i={id:TF++,section:_F,type:_F,task:t,score:e||0,events:n?[n]:[]};CF.push(i)},DF=function(t){CF.find((t=>t.id===TF-1)).events.push(t)},PF=function(t){const e={section:_F,type:_F,description:t,task:t,classes:[]};SF.push(e)},BF=function(){const t=function(t){return CF[t].processed};let e=!0;for(const[n,i]of CF.entries())t(n),e=e&&i.processed;return e},RF=Object.freeze(Object.defineProperty({__proto__:null,addEvent:DF,addSection:LF,addTask:NF,addTaskOrg:PF,clear:MF,default:{clear:MF,getCommonDb:AF,addSection:LF,getSections:IF,getTasks:OF,addTask:NF,addTaskOrg:PF,addEvent:DF},getCommonDb:AF,getSections:IF,getTasks:OF},Symbol.toStringTag,{value:"Module"}));function FF(t,e){t.each((function(){var t,n=ee(this),i=n.text().split(/(\s+|
)/).reverse(),r=[],a=n.attr("y"),o=parseFloat(n.attr("dy")),s=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em");for(let o=0;oe||"
"===t)&&(r.pop(),s.text(r.join(" ").trim()),r="
"===t?[""]:[t],s=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}const $F=function(t,e,n,i){const r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=a.append("g"),s=a.append("g"),c=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(FF,e.width).node().getBBox(),l=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=c.height+1.1*l*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,s.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}(o,e,r),e},jF=function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(FF,e.width).node().getBBox(),a=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},zF=function(t,e,n,i,r,a,o,s,c,u,h){var f;for(const s of e){const e={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};l.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),g=$F(d,e,n,o).height;if(l.debug("taskHeight after draw",g),d.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,g),s.events){const e=t.append("g").attr("class","lineWrapper");let l=a;r+=100,l+=qF(t,s.events,n,i,r,o),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+(h?a:u)+c+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,h&&(null==(f=o.timeline)||!f.disableMulticolor)&&n++}r-=10},qF=function(t,e,n,i,r,a){let o=0;const s=r;r+=100;for(const s of e){const e={descr:s,section:n,number:n,width:150,padding:20,maxHeight:50};l.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),u=$F(c,e,n,a).height;o+=u,c.attr("transform",`translate(${i}, ${r})`),r=r+10+u}return r=s,o},HF={setConf:()=>{},draw:function(t,e,n,i){var r,a;const o=sg(),s=o.leftMargin??50;l.debug("timeline",i.db);const c=o.securityLevel;let u;"sandbox"===c&&(u=ee("#i"+e));const h=ee("sandbox"===c?u.nodes()[0].contentDocument.body:"body").select("#"+e);h.append("g");const f=i.db.getTasks(),d=i.db.getCommonDb().getDiagramTitle();l.debug("task",f),function(t){t.append("defs").append("marker").attr("id","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")}(h);const g=i.db.getSections();l.debug("sections",g);let p=0,b=0,m=0,y=0,w=50+s,v=50;y=50;let x=0,k=!0;g.forEach((function(t){const e=jF(h,{number:x,descr:t,section:x,width:150,padding:20,maxHeight:p},o);l.debug("sectionHeight before draw",e),p=Math.max(p,e+20)}));let _=0,T=0;l.debug("tasks.length",f.length);for(const[t,e]of f.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:b},i=jF(h,n,o);l.debug("taskHeight before draw",i),b=Math.max(b,i+20),_=Math.max(_,e.events.length);let r=0;for(let t=0;t0?g.forEach((t=>{const e=f.filter((e=>e.section===t)),n={number:x,descr:t,section:x,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:p};l.debug("sectionNode",n);const i=h.append("g"),r=$F(i,n,x,o);l.debug("sectionNode output",r),i.attr("transform",`translate(${w}, 50)`),v+=p+50,e.length>0&&zF(h,e,x,w,v,b,o,0,T,p,!1),w+=200*Math.max(e.length,1),v=50,x++})):(k=!1,zF(h,f,x,w,v,b,o,0,T,p,!0));const E=h.node().getBBox();l.debug("bounds",E),d&&h.append("text").text(d).attr("x",E.width/2-s).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),m=k?p+b+150:b+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",s).attr("y1",m).attr("x2",E.width+3*s).attr("y2",m).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Gd(void 0,h,(null==(r=o.timeline)?void 0:r.padding)??50,(null==(a=o.timeline)?void 0:a.useMaxWidth)??!1)}},UF=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:RF,renderer:HF,parser:kF,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},y={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16: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 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},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}}};function w(){this.yy={}}return m.lexer=y,w.prototype=m,m.Parser=w,new w}();GF.parser=GF;const KF=GF;let YF=[],VF=0,WF={};const XF={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},QF={clear:()=>{YF=[],VF=0,WF={}},addNode:(t,e,n,i)=>{var r,a;l.info("addNode",t,e,n,i);const o=sg();let s=(null==(r=o.mindmap)?void 0:r.padding)??bl.mindmap.padding;switch(i){case XF.ROUNDED_RECT:case XF.RECT:case XF.HEXAGON:s*=2}const c={id:VF++,nodeId:_c(e,o),level:t,descr:_c(n,o),type:i,children:[],width:(null==(a=o.mindmap)?void 0:a.maxNodeWidth)??bl.mindmap.maxNodeWidth,padding:s},u=function(t){for(let e=YF.length-1;e>=0;e--)if(YF[e].levelYF.length>0?YF[0]:null,nodeType:XF,getType:(t,e)=>{switch(l.debug("In get type",t,e),t){case"[":return XF.RECT;case"(":return")"===e?XF.ROUNDED_RECT:XF.CLOUD;case"((":return XF.CIRCLE;case")":return XF.CLOUD;case"))":return XF.BANG;case"{{":return XF.HEXAGON;default:return XF.DEFAULT}},setElementForId:(t,e)=>{WF[t]=e},decorateNode:t=>{if(!t)return;const e=sg(),n=YF[YF.length-1];t.icon&&(n.icon=_c(t.icon,e)),t.class&&(n.class=_c(t.class,e))},type2Str:t=>{switch(t){case XF.DEFAULT:return"no-border";case XF.RECT:return"rect";case XF.ROUNDED_RECT:return"rounded-rect";case XF.CIRCLE:return"circle";case XF.CLOUD:return"cloud";case XF.BANG:return"bang";case XF.HEXAGON:return"hexgon";default:return"no-border"}},getLogger:()=>l,getElementById:t=>WF[t]};var ZF={exports:{}};!function(t,e){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n"u"?null:window,l=c?c.navigator:null;c&&c.document;var u=t(""),h=t({}),f=t((function(){})),d=typeof HTMLElement>"u"?"undefined":t(HTMLElement),g=function(t){return t&&t.instanceString&&b(t.instanceString)?t.instanceString():null},p=function(e){return null!=e&&t(e)==u},b=function(e){return null!=e&&t(e)===f},m=function(t){return!x(t)&&(Array.isArray?Array.isArray(t):null!=t&&t instanceof Array)},y=function(e){return null!=e&&t(e)===h&&!m(e)&&e.constructor===Object},w=function(e){return null!=e&&t(e)===t(1)&&!isNaN(e)},v=function(t){if("undefined"!==d)return null!=t&&t instanceof HTMLElement},x=function(t){return k(t)||_(t)},k=function(t){return"collection"===g(t)&&t._private.single},_=function(t){return"collection"===g(t)&&!t._private.single},T=function(t){return"core"===g(t)},E=function(t){return"stylesheet"===g(t)},S=function(t){return null==t||!(""!==t&&!t.match(/^\s+$/))},C=function(e){return function(e){return null!=e&&t(e)===h}(e)&&b(e.then)},A=function(t,e){e||(e=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var t=[],e=0;ee?1:0},$=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,n=1;n255)return;e.push(Math.floor(a))}var o=i[1]||i[2]||i[3],s=i[1]&&i[2]&&i[3];if(o&&!s)return;var c=n[4];if(void 0!==c){if((c=parseFloat(c))<0||c>1)return;e.push(c)}}return e}(t)||function(t){var e,n,i,r,a,o,s,c;function l(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var u=new RegExp("^"+B+"$").exec(t);if(u){if((n=parseInt(u[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(i=parseFloat(u[2]))<0||i>100||(i/=100,(r=parseFloat(u[3]))<0||r>100)||(r/=100,void 0!==(a=u[4])&&((a=parseFloat(a))<0||a>1)))return;if(0===i)o=s=c=Math.round(255*r);else{var h=r<.5?r*(1+i):r+i-r*i,f=2*r-h;o=Math.round(255*l(f,h,n+1/3)),s=Math.round(255*l(f,h,n)),c=Math.round(255*l(f,h,n-1/3))}e=[o,s,c,a]}return e}(t)},z={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],olive:[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]},q=function(t){for(var e=t.map,n=t.keys,i=n.length,r=0;r=e||n<0||h&&t-l>=a}function p(){var t=W();if(g(t))return b(t);s=setTimeout(p,function(t){var n=e-(t-c);return h?yt(n,a-(t-l)):n}(t))}function b(t){return s=void 0,f&&i?d(t):(i=r=void 0,o)}function m(){var t=W(),n=g(t);if(i=arguments,r=this,c=t,n){if(void 0===s)return function(t){return l=t,s=setTimeout(p,e),u?d(t):o}(c);if(h)return clearTimeout(s),s=setTimeout(p,e),d(c)}return void 0===s&&(s=setTimeout(p,e)),o}return e=bt(e)||0,U(n)&&(u=!!n.leading,a=(h="maxWait"in n)?mt(bt(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},m.flush=function(){return void 0===s?o:b(W())},m},vt=c?c.performance:null,xt=vt&&vt.now?function(){return vt.now()}:function(){return Date.now()},kt=function(){if(c){if(c.requestAnimationFrame)return function(t){c.requestAnimationFrame(t)};if(c.mozRequestAnimationFrame)return function(t){c.mozRequestAnimationFrame(t)};if(c.webkitRequestAnimationFrame)return function(t){c.webkitRequestAnimationFrame(t)};if(c.msRequestAnimationFrame)return function(t){c.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout((function(){t(xt())}),1e3/60)}}(),_t=function(t){return kt(t)},Tt=xt,Et=9261,St=5381,Ct=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et;!(e=t.next()).done;)n=65599*n+e.value|0;return n},At=function(t){return 65599*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et)+t|0},Mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:St;return(e<<5)+e+t|0},Lt=function(t){return 2097152*t[0]+t[1]},It=function(t,e){return[At(t[0],e[0]),Mt(t[1],e[1])]},Ot=function(t,e){var n={value:0,done:!1},i=0,r=t.length;return Ct({next:function(){return i=0&&(t[i]!==e||(t.splice(i,1),!n));i--);},Zt=function(t){t.splice(0,t.length)},Jt=function(t,e,n){return n&&(e=I(n,e)),t[e]},te=function(t,e,n,i){n&&(e=I(n,e)),t[e]=i},ee=function(){function t(){e(this,t),this._obj={}}return r(t,[{key:"set",value:function(t,e){return this._obj[t]=e,this}},{key:"delete",value:function(t){return this._obj[t]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(t){return void 0!==this._obj[t]}},{key:"get",value:function(t){return this._obj[t]}}]),t}(),ne=typeof Map<"u"?Map:ee,ie=function(){function t(n){if(e(this,t),this._obj=Object.create(null),this.size=0,null!=n){var i;i=null!=n.instanceString&&n.instanceString()===this.instanceString()?n.toArray():n;for(var r=0;r"u"?"undefined":t(Set))?Set:ie,ae=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==t&&void 0!==e&&T(t)){var i=e.group;if(null==i&&(i=e.data&&null!=e.data.source&&null!=e.data.target?"edges":"nodes"),"nodes"===i||"edges"===i){this.length=1,this[0]=this;var r=this._private={cy:t,single:!0,data:e.data||{},position:e.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:!!e.selected,selectable:void 0===e.selectable||!!e.selectable,locked:!!e.locked,grabbed:!1,grabbable:void 0===e.grabbable||!!e.grabbable,pannable:void 0===e.pannable?"edges"===i:!!e.pannable,active:!1,classes:new re,animation:{current:[],queue:[]},rscratch:{},scratch:e.scratch||{},edges:[],children:[],parent:e.parent&&e.parent.isNode()?e.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(null==r.position.x&&(r.position.x=0),null==r.position.y&&(r.position.y=0),e.renderedPosition){var a=e.renderedPosition,o=t.pan(),s=t.zoom();r.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var c=[];m(e.classes)?c=e.classes:p(e.classes)&&(c=e.classes.split(/\s+/));for(var l=0,u=c.length;le?1:0},l=function(t,e,r,a,o){var s;if(null==r&&(r=0),null==o&&(o=n),r<0)throw new Error("lo must be non-negative");for(null==a&&(a=t.length);rn;0<=n?e++:e--)l.push(e);return l}.apply(this).reverse()).length;ap;0<=p?++f:--f)b.push(a(t,i));return b},g=function(t,e,i,r){var a,o,s;for(null==r&&(r=n),a=t[i];i>e&&r(a,o=t[s=i-1>>1])<0;)t[i]=o,i=s;return t[i]=a},p=function(t,e,i){var r,a,o,s,c;for(null==i&&(i=n),a=t.length,c=e,o=t[e],r=2*e+1;r0;){var T=v.pop(),E=w(T),S=T.id();if(d[S]=E,E!==1/0)for(var C=T.neighborhood().intersect(b),A=0;A0)for(n.unshift(e);f[r];){var a=f[r];n.unshift(a.edge),n.unshift(a.node),r=(i=a.node).id()}return c.spawn(n)}}}},he={kruskal:function(t){t=t||function(t){return 1};for(var e=this.byGroup(),n=e.nodes,i=e.edges,r=n.length,a=new Array(r),o=n,s=function(t){for(var e=0;e0;){if(c=b.pop(),l=c.id(),m.delete(l),x++,l===f){for(var k=[],_=r,T=f,E=w[T];k.unshift(_),null!=E&&k.unshift(E),null!=(_=y[T]);)E=w[T=_.id()];return{found:!0,distance:d[l],path:this.spawn(k),steps:x}}p[l]=!0;for(var S=c._private.edges,C=0;CC&&(d[S]=C,y[S]=E,w[S]=x),!r){var A=E*l+T;!r&&d[A]>C&&(d[A]=C,y[A]=T,w[A]=x)}}}for(var M=0;M1&&void 0!==arguments[1]?arguments[1]:a,i=[],r=w(t);;){if(null==r)return e.spawn();var o=y(r),c=o.edge,l=o.pred;if(i.unshift(r[0]),r.same(n)&&i.length>0)break;null!=c&&i.unshift(c),r=l}return s.spawn(i)},hasNegativeWeightCycle:g,negativeWeightCycles:b}}},ye=Math.sqrt(2),we=function(t,e,n){0===n.length&&Ht("Karger-Stein must be run on a connected (sub)graph");for(var i=n[t],r=i[1],a=i[2],o=e[r],s=e[a],c=n,l=c.length-1;l>=0;l--){var u=c[l],h=u[1],f=u[2];(e[h]===o&&e[f]===s||e[h]===s&&e[f]===o)&&c.splice(l,1)}for(var d=0;di;){var r=Math.floor(Math.random()*e.length);e=we(r,t,e),n--}return e},xe={kargerStein:function(){var t=this,e=this.byGroup(),n=e.nodes,i=e.edges;i.unmergeBy((function(t){return t.isLoop()}));var r=n.length,a=i.length,o=Math.ceil(Math.pow(Math.log(r)/Math.LN2,2)),s=Math.floor(r/ye);if(!(r<2)){for(var c=[],l=0;l0?1:t<0?-1:0},Ae=function(t,e){return Math.sqrt(Me(t,e))},Me=function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i},Le=function(t){for(var e=t.length,n=0,i=0;i=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(null!=t.w&&null!=t.h&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},Pe=function(t,e){t.x1=Math.min(t.x1,e.x1),t.x2=Math.max(t.x2,e.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,e.y1),t.y2=Math.max(t.y2,e.y2),t.h=t.y2-t.y1},Be=function(t,e,n){t.x1=Math.min(t.x1,e),t.x2=Math.max(t.x2,e),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,n),t.y2=Math.max(t.y2,n),t.h=t.y2-t.y1},Re=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.x1-=e,t.x2+=e,t.y1-=e,t.y2+=e,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},Fe=function(t){var e,n,i,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)e=n=i=r=a[0];else if(2===a.length)e=i=a[0],r=n=a[1];else if(4===a.length){var s=o(a,4);e=s[0],n=s[1],i=s[2],r=s[3]}return t.x1-=r,t.x2+=n,t.y1-=e,t.y2+=i,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},$e=function(t,e){t.x1=e.x1,t.y1=e.y1,t.x2=e.x2,t.y2=e.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},je=function(t,e){return!(t.x1>e.x2||e.x1>t.x2||t.x2e.y2||e.y1>t.y2)},ze=function(t,e,n){return t.x1<=e&&e<=t.x2&&t.y1<=n&&n<=t.y2},qe=function(t,e){return ze(t,e.x,e.y)},He=function(t,e){return ze(t,e.x1,e.y1)&&ze(t,e.x2,e.y2)},Ue=function(t,e,n,i,r,a,o){var s,c=ln(r,a),l=r/2,u=a/2,h=i-u-o;if((s=nn(t,e,n,i,n-l+c-o,h,n+l-c+o,h,!1)).length>0)return s;var f=n+l+o;if((s=nn(t,e,n,i,f,i-u+c-o,f,i+u-c+o,!1)).length>0)return s;var d=i+u+o;if((s=nn(t,e,n,i,n-l+c-o,d,n+l-c+o,d,!1)).length>0)return s;var g,p=n-l-o;if((s=nn(t,e,n,i,p,i-u+c-o,p,i+u-c+o,!1)).length>0)return s;var b=n-l+c,m=i-u+c;if((g=tn(t,e,n,i,b,m,c+o)).length>0&&g[0]<=b&&g[1]<=m)return[g[0],g[1]];var y=n+l-c,w=i-u+c;if((g=tn(t,e,n,i,y,w,c+o)).length>0&&g[0]>=y&&g[1]<=w)return[g[0],g[1]];var v=n+l-c,x=i+u-c;if((g=tn(t,e,n,i,v,x,c+o)).length>0&&g[0]>=v&&g[1]>=x)return[g[0],g[1]];var k=n-l+c,_=i+u-c;return(g=tn(t,e,n,i,k,_,c+o)).length>0&&g[0]<=k&&g[1]>=_?[g[0],g[1]]:[]},Ge=function(t,e,n,i,r,a,o){var s=o,c=Math.min(n,r),l=Math.max(n,r),u=Math.min(i,a),h=Math.max(i,a);return c-s<=t&&t<=l+s&&u-s<=e&&e<=h+s},Ke=function(t,e,n,i,r,a,o,s,c){var l=Math.min(n,o,r)-c,u=Math.max(n,o,r)+c,h=Math.min(i,s,a)-c,f=Math.max(i,s,a)+c;return!(tu||ef)},Ye=function(t,e,n,i,r,a,o,s){var c=[];!function(t,e,n,i,r){var a,o,s,c,l,u,h,f;0===t&&(t=1e-5),s=-27*(i/=t)+(e/=t)*(9*(n/=t)-e*e*2),a=(o=(3*n-e*e)/9)*o*o+(s/=54)*s,r[1]=0,h=e/3,a>0?(l=(l=s+Math.sqrt(a))<0?-Math.pow(-l,1/3):Math.pow(l,1/3),u=(u=s-Math.sqrt(a))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),r[0]=-h+l+u,h+=(l+u)/2,r[4]=r[2]=-h,h=Math.sqrt(3)*(-u+l)/2,r[3]=h,r[5]=-h):(r[5]=r[3]=0,0===a?(f=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),r[0]=2*f-h,r[4]=r[2]=-(f+h)):(c=(o=-o)*o*o,c=Math.acos(s/Math.sqrt(c)),f=2*Math.sqrt(o),r[0]=-h+f*Math.cos(c/3),r[2]=-h+f*Math.cos((c+2*Math.PI)/3),r[4]=-h+f*Math.cos((c+4*Math.PI)/3)))}(1*n*n-4*n*r+2*n*o+4*r*r-4*r*o+o*o+i*i-4*i*a+2*i*s+4*a*a-4*a*s+s*s,9*n*r-3*n*n-3*n*o-6*r*r+3*r*o+9*i*a-3*i*i-3*i*s-6*a*a+3*a*s,3*n*n-6*n*r+n*o-n*t+2*r*r+2*r*t-o*t+3*i*i-6*i*a+i*s-i*e+2*a*a+2*a*e-s*e,1*n*r-n*n+n*t-r*t+i*a-i*i+i*e-a*e,c);for(var l=[],u=0;u<6;u+=2)Math.abs(c[u+1])<1e-7&&c[u]>=0&&c[u]<=1&&l.push(c[u]);l.push(1),l.push(0);for(var h,f,d,g=-1,p=0;p=0?dc?(t-r)*(t-r)+(e-a)*(e-a):l-h},We=function(t,e,n){for(var i,r,a,o,s=0,c=0;c=t&&t>=a||i<=t&&t<=a))continue;(t-i)/(a-i)*(o-r)+r>e&&s++}return s%2!=0},Xe=function(t,e,n,i,r,a,o,s,c){var l,u,h=new Array(n.length);null!=s[0]?(l=Math.atan(s[1]/s[0]),s[0]<0?l+=Math.PI/2:l=-l-Math.PI/2):l=s;for(var f=Math.cos(-l),d=Math.sin(-l),g=0;g0){var p=Ze(h,-c);u=Qe(p)}else u=h;return We(t,e,u)},Qe=function(t){for(var e,n,i,r,a,o,s,c,l=new Array(t.length/2),u=0;u=0&&g<=1&&b.push(g),p>=0&&p<=1&&b.push(p),0===b.length)return[];var m=b[0]*s[0]+t,y=b[0]*s[1]+e;return b.length>1?b[0]==b[1]?[m,y]:[m,y,b[1]*s[0]+t,b[1]*s[1]+e]:[m,y]},en=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},nn=function(t,e,n,i,r,a,o,s,c){var l=t-r,u=n-t,h=o-r,f=e-a,d=i-e,g=s-a,p=h*f-g*l,b=u*f-d*l,m=g*u-h*d;if(0!==m){var y=p/m,w=b/m,v=-.001;return v<=y&&y<=1.001&&v<=w&&w<=1.001||c?[t+y*u,e+y*d]:[]}return 0===p||0===b?en(t,n,o)===o?[o,s]:en(t,n,r)===r?[r,a]:en(r,o,n)===n?[n,i]:[]:[]},rn=function(t,e,n,i,r,a,o,s){var c,l,u=[],h=new Array(n.length),f=!0;if(null==a&&(f=!1),f){for(var d=0;d0){var g=Ze(h,-s);l=Qe(g)}else l=h}else l=n;for(var p,b,m,y,w=0;wl&&(l=e)},get:function(t){return c[t]}},h=0;h0?w.edgesTo(y)[0]:y.edgesTo(w)[0];var v=i(m);y=y.id(),h[y]>h[p]+v&&(h[y]=h[p]+v,f.nodes.indexOf(y)<0?f.push(y):f.updateItem(y),l[y]=0,c[y]=[]),h[y]==h[p]+v&&(l[y]=l[y]+l[p],c[y].push(p))}else for(var x=0;x0;){for(var E=n.pop(),S=0;S0&&o.push(n[s]);0!==o.length&&r.push(i.collection(o))}return r}(u,c,e,i);return function(t){for(var e=0;e5&&void 0!==arguments[5]?arguments[5]:Ln,o=i,s=0;s=2?Bn(t,e,n,0,Nn,Dn):Bn(t,e,n,0,On)},squaredEuclidean:function(t,e,n){return Bn(t,e,n,0,Nn)},manhattan:function(t,e,n){return Bn(t,e,n,0,On)},max:function(t,e,n){return Bn(t,e,n,-1/0,Pn)}};function Fn(t,e,n,i,r,a){var o;return o=b(t)?t:Rn[t]||Rn.euclidean,0===e&&b(t)?o(r,a):o(e,n,i,r,a)}Rn["squared-euclidean"]=Rn.squaredEuclidean,Rn.squaredeuclidean=Rn.squaredEuclidean;var $n=Xt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),jn=function(t){return $n(t)},zn=function(t,e,n,i,r){var a="kMedoids"!==r?function(t){return n[t]}:function(t){return i[t](n)},o=n,s=e;return Fn(t,i.length,a,(function(t){return i[t](e)}),o,s)},qn=function(t,e,n){for(var i=n.length,r=new Array(i),a=new Array(i),o=new Array(e),s=null,c=0;cn)return!1;return!0},Yn=function(t,e,n){for(var i=0;io&&(o=e[c][l],s=l);r[s].push(t[c])}for(var u=0;u=r.threshold||"dendrogram"===r.mode&&1===t.length)return!1;var d,g=e[o],p=e[i[o]];d="dendrogram"===r.mode?{left:g,right:p,key:g.key}:{value:g.value.concat(p.value),key:g.key},t[g.index]=d,t.splice(p.index,1),e[g.key]=d;for(var b=0;bn[p.key][m.key]&&(a=n[p.key][m.key])):"max"===r.linkage?(a=n[g.key][m.key],n[g.key][m.key]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n0&&t.splice(0,e)):t=t.slice(e,n);for(var a=0,o=t.length-1;o>=0;o--){var s=t[o];r?isFinite(s)||(t[o]=-1/0,a++):t.splice(o,1)}i&&t.sort((function(t,e){return t-e}));var c=t.length,l=Math.floor(c/2);return c%2!=0?t[l+1+a]:(t[l-1+a]+t[l+a])/2}(t):"mean"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0,a=e;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=1/0,r=e;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=-1/0,r=e;ro&&(a=c,o=e[r*t+c])}a>0&&i.push(a)}for(var l=0;l=C?(A=C,C=L,M=I):L>A&&(A=L);for(var O=0;O0?1:0;T[f%i.minIterations*o+F]=$,R+=$}if(R>0&&(f>=i.minIterations-1||f==i.maxIterations-1)){for(var j=0,z=0;z0&&i.push(r);return i}(o,u,h),U=function(t,e,n){for(var i=fi(t,e,n),r=0;rc&&(s=l,c=u)}n[r]=a[s]}return fi(t,e,n)}(o,c,H),G={},K=0;K1||o>1)&&(l=!0),u[e]=[],t.outgoers().forEach((function(t){t.isEdge()&&u[e].push(t.id())}))}else h[e]=[void 0,t.target().id()]})):c.forEach((function(t){var e=t.id();t.isNode()?(t.degree(!0)%2&&(n?i?l=!0:i=e:n=e),u[e]=[],t.connectedEdges().forEach((function(t){return u[e].push(t.id())}))):h[e]=[t.source().id(),t.target().id()]}));var f={found:!1,trail:void 0};if(l)return f;if(i&&n)if(s){if(r&&i!=r)return f;r=i}else{if(r&&i!=r&&n!=r)return f;r||(r=i)}else r||(r=c[0].id());var d=function(t){for(var e,n,i,r=t,a=[t];u[r].length;)e=u[r].shift(),n=h[e][0],r!=(i=h[e][1])?(u[i]=u[i].filter((function(t){return t!=e})),r=i):!s&&r!=n&&(u[n]=u[n].filter((function(t){return t!=e})),r=n),a.unshift(e),a.unshift(r);return a},g=[],b=[];for(b=d(r);1!=b.length;)0==u[b[0]].length?(g.unshift(c.getElementById(b.shift())),g.unshift(c.getElementById(b.shift()))):b=d(b.shift()).concat(b);for(var m in g.unshift(c.getElementById(b.shift())),u)if(u[m].length)return f;return f.found=!0,f.trail=this.spawn(g,!0),f}},mi=function(){var t=this,e={},n=0,i=0,r=[],a=[],o={},s=function s(c,l,u){c===u&&(i+=1),e[l]={id:n,low:n++,cutVertex:!1};var h,f,d,g,p=t.getElementById(l).connectedEdges().intersection(t);0===p.size()?r.push(t.spawn(t.getElementById(l))):p.forEach((function(n){h=n.source().id(),f=n.target().id(),(d=h===l?f:h)!==u&&(g=n.id(),o[g]||(o[g]=!0,a.push({x:l,y:d,edge:n})),d in e?e[l].low=Math.min(e[l].low,e[d].id):(s(c,d,l),e[l].low=Math.min(e[l].low,e[d].low),e[l].id<=e[d].low&&(e[l].cutVertex=!0,function(n,i){for(var o=a.length-1,s=[],c=t.spawn();a[o].x!=n||a[o].y!=i;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach((function(n){var i=n.connectedNodes().intersection(t);c.merge(n),i.forEach((function(n){var i=n.id(),r=n.connectedEdges().intersection(t);c.merge(n),e[i].cutVertex?c.merge(r.filter((function(t){return t.isLoop()}))):c.merge(r)}))})),r.push(c)}(l,d))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(i=0,s(n,n),e[n].cutVertex=i>1)}}));var c=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(c),components:r}},yi=function(){var t=this,e={},n=0,i=[],r=[],a=t.spawn(t),o=function o(s){if(r.push(s),e[s]={index:n,low:n++,explored:!1},t.getElementById(s).connectedEdges().intersection(t).forEach((function(t){var n=t.target().id();n!==s&&(n in e||o(n),e[n].explored||(e[s].low=Math.min(e[s].low,e[n].low)))})),e[s].index===e[s].low){for(var c=t.spawn();;){var l=r.pop();if(c.merge(t.getElementById(l)),e[l].low=e[s].index,e[l].explored=!0,l===s)break}var u=c.edgesWith(c),h=c.merge(u);i.push(h),a=a.difference(h)}};return t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||o(n)}})),{cut:a,components:i}},wi={};[se,ue,he,de,pe,me,xe,dn,pn,mn,wn,Mn,ti,ci,gi,bi,{hopcroftTarjanBiconnected:mi,htbc:mi,htb:mi,hopcroftTarjanBiconnectedComponents:mi},{tarjanStronglyConnected:yi,tsc:yi,tscc:yi,tarjanStronglyConnectedComponents:yi}].forEach((function(t){$(wi,t)}));var vi=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};vi.prototype={fulfill:function(t){return xi(this,1,"fulfillValue",t)},reject:function(t){return xi(this,2,"rejectReason",t)},then:function(t,e){var n=this,i=new vi;return n.onFulfilled.push(Ti(t,i,"fulfill")),n.onRejected.push(Ti(e,i,"reject")),ki(n),i.proxy}};var xi=function(t,e,n,i){return 0===t.state&&(t.state=e,t[n]=i,ki(t)),t},ki=function(t){1===t.state?_i(t,"onFulfilled",t.fulfillValue):2===t.state&&_i(t,"onRejected",t.rejectReason)},_i=function(t,e,n){if(0!==t[e].length){var i=t[e];t[e]=[];var r=function(){for(var t=0;t0:void 0}},clearQueue:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n-1};var dr=function(t,e){var n=this.__data__,i=cr(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function gr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(i).updateStyle().emit("class"),e},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var e=this[0];return null!=e&&e._private.classes.has(t)},toggleClass:function(t,e){m(t)||(t=t.match(/\S+/g)||[]);for(var n=this,i=void 0===e,r=[],a=0,o=n.length;a0&&this.spawn(r).updateStyle().emit("class"),n},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,e){var n=this;if(null==e)e=250;else if(0===e)return n;return n.addClass(t),setTimeout((function(){n.removeClass(t)}),e),n}};Jr.className=Jr.classNames=Jr.classes;var ta={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:N,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ta.variable="(?:[\\w-.]|(?:\\\\"+ta.metaChar+"))+",ta.className="(?:[\\w-]|(?:\\\\"+ta.metaChar+"))+",ta.value=ta.string+"|"+ta.number,ta.id=ta.variable,function(){var t,e,n;for(t=ta.comparatorOp.split("|"),n=0;n=0)&&"="!==e&&(ta.comparatorOp+="|\\!"+e)}();var ea=0,na=1,ia=2,ra=3,aa=4,oa=5,sa=6,ca=7,la=8,ua=9,ha=10,fa=11,da=12,ga=13,pa=14,ba=15,ma=16,ya=17,wa=18,va=19,xa=20,ka=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort((function(t,e){return function(t,e){return-1*F(t,e)}(t.selector,e.selector)})),_a=function(){for(var t,e={},n=0;n0&&l.edgeCount>0)return Gt("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return Gt("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&Gt("The selector `"+t+"` 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},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var t=function(t){return t??""},e=function(e){return p(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},i=function(r,a){return r.checks.reduce((function(o,s,c){return o+(a===r&&0===c?"$":"")+function(r,a){var o=r.type,s=r.value;switch(o){case ea:var c=t(s);return c.substring(0,c.length-1);case ra:var l=r.field,u=r.operator;return"["+l+n(t(u))+e(s)+"]";case oa:var h=r.operator,f=r.field;return"["+t(h)+f+"]";case aa:return"["+r.field+"]";case sa:var d=r.operator;return"[["+r.field+n(t(d))+e(s)+"]]";case ca:return s;case la:return"#"+s;case ua:return"."+s;case ya:case ba:return i(r.parent,a)+n(">")+i(r.child,a);case wa:case ma:return i(r.ancestor,a)+" "+i(r.descendant,a);case va:var g=i(r.left,a),p=i(r.subject,a),b=i(r.right,a);return g+(g.length>0?" ":"")+p+b;case xa:return""}}(s,a)}),"")},r="",a=0;a1&&a=0&&(e=e.replace("!",""),u=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),l=!0),(o||c||l)&&(r=o||s?""+t:"",a=""+n),l&&(t=r=r.toLowerCase(),n=a=a.toLowerCase()),e){case"*=":i=r.indexOf(a)>=0;break;case"$=":i=r.indexOf(a,r.length-a.length)>=0;break;case"^=":i=0===r.indexOf(a);break;case"=":i=t===n;break;case">":h=!0,i=t>n;break;case">=":h=!0,i=t>=n;break;case"<":h=!0,i=t0;){var l=r.shift();e(l),a.add(l.id()),o&&i(r,a,l)}return t}function Ha(t,e,n){if(n.isParent())for(var i=n._private.children,r=0;r1&&void 0!==arguments[1])||arguments[1],Ha)},za.forEachUp=function(t){return qa(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ua)},za.forEachUpAndDown=function(t){return qa(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ga)},za.ancestors=za.parents,(Fa=$a={data:Qr.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:Qr.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Qr.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Qr.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Qr.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Qr.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=Fa.data,Fa.removeAttr=Fa.removeData;var Ka=$a,Ya={};function Va(t){return function(e){var n=this;if(void 0===e&&(e=!0),0===n.length);else if(n.isNode()&&!n.removed()){for(var i=0,r=n[0],a=r._private.edges,o=0;oe})),minIndegree:Wa("indegree",(function(t,e){return te})),minOutdegree:Wa("outdegree",(function(t,e){return te}))}),$(Ya,{totalDegree:function(t){for(var e=0,n=this.nodes(),i=0;i0,u=l;l&&(c=c[0]);var h=u?c.position():{x:0,y:0};return r={x:s.x-h.x,y:s.y-h.y},void 0===t?r:r[t]}for(var f=0;f0,m=b;b&&(g=g[0]);var w=m?g.position():{x:0,y:0};void 0!==e?d.position(t,e+w[t]):void 0!==r&&d.position({x:r.x+w.x,y:r.y+w.y})}}else if(!a)return;return this}}).modelPosition=Xa.point=Xa.position,Xa.modelPositions=Xa.points=Xa.positions,Xa.renderedPoint=Xa.renderedPosition,Xa.relativePoint=Xa.relativePosition;var to,eo,no=Qa;to=eo={},eo.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),i=n.zoom(),r=n.pan(),a=e.x1*i+r.x,o=e.x2*i+r.x,s=e.y1*i+r.y,c=e.y2*i+r.y;return{x1:a,x2:o,y1:s,y2:c,w:o-a,h:c-s}},eo.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp((function(e){if(e.isParent()){var n=e._private;n.compoundBoundsClean=!1,n.bbCache=null,t||e.emitAndNotify("bounds")}})),this):this},eo.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function n(t){if(t.isParent()){var e=t._private,n=t.children(),i="include"===t.pstyle("compound-sizing-wrt-labels").value,r={width:{val:t.pstyle("min-width").pfValue,left:t.pstyle("min-width-bias-left"),right:t.pstyle("min-width-bias-right")},height:{val:t.pstyle("min-height").pfValue,top:t.pstyle("min-height-bias-top"),bottom:t.pstyle("min-height-bias-bottom")}},a=n.boundingBox({includeLabels:i,includeOverlays:!1,useCache:!1}),o=e.position;(0===a.w||0===a.h)&&((a={w:t.pstyle("width").pfValue,h:t.pstyle("height").pfValue}).x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);var s=r.width.left.value;"px"===r.width.left.units&&r.width.val>0&&(s=100*s/r.width.val);var c=r.width.right.value;"px"===r.width.right.units&&r.width.val>0&&(c=100*c/r.width.val);var l=r.height.top.value;"px"===r.height.top.units&&r.height.val>0&&(l=100*l/r.height.val);var u=r.height.bottom.value;"px"===r.height.bottom.units&&r.height.val>0&&(u=100*u/r.height.val);var h=m(r.width.val-a.w,s,c),f=h.biasDiff,d=h.biasComplementDiff,g=m(r.height.val-a.h,l,u),p=g.biasDiff,b=g.biasComplementDiff;e.autoPadding=function(t,e,n,i){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(i){case"width":return t>0?n.pfValue*t:0;case"height":return e>0?n.pfValue*e:0;case"average":return t>0&&e>0?n.pfValue*(t+e)/2:0;case"min":return t>0&&e>0?t>e?n.pfValue*e:n.pfValue*t:0;case"max":return t>0&&e>0?t>e?n.pfValue*t:n.pfValue*e:0;default:return 0}}(a.w,a.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(a.w,r.width.val),o.x=(-f+a.x1+a.x2+d)/2,e.autoHeight=Math.max(a.h,r.height.val),o.y=(-p+a.y1+a.y2+b)/2}function m(t,e,n){var i=0,r=0,a=e+n;return t>0&&a>0&&(i=e/a*t,r=n/a*t),{biasDiff:i,biasComplementDiff:r}}}for(var i=0;it.x2?i:t.x2,t.y1=nt.y2?r:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},ao=function(t,e){return null==e?t:ro(t,e.x1,e.y1,e.x2,e.y2)},oo=function(t,e,n){return Jt(t,e,n)},so=function(t,e,n){if(!e.cy().headless()){var i,r,a=e._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==e.pstyle(n+"-arrow-shape").value){"source"===n?(i=o.srcX,r=o.srcY):"target"===n?(i=o.tgtX,r=o.tgtY):(i=o.midX,r=o.midY);var c=a.arrowBounds=a.arrowBounds||{},l=c[n]=c[n]||{};l.x1=i-s,l.y1=r-s,l.x2=i+s,l.y2=r+s,l.w=l.x2-l.x1,l.h=l.y2-l.y1,Re(l,1),ro(t,l.x1,l.y1,l.x2,l.y2)}}},co=function(t,e,n){if(!e.cy().headless()){var i;i=n?n+"-":"";var r=e._private,a=r.rstyle;if(e.pstyle(i+"label").strValue){var o,s,c,l,u=e.pstyle("text-halign"),h=e.pstyle("text-valign"),f=oo(a,"labelWidth",n),d=oo(a,"labelHeight",n),g=oo(a,"labelX",n),p=oo(a,"labelY",n),b=e.pstyle(i+"text-margin-x").pfValue,m=e.pstyle(i+"text-margin-y").pfValue,y=e.isEdge(),w=e.pstyle(i+"text-rotation"),v=e.pstyle("text-outline-width").pfValue,x=e.pstyle("text-border-width").pfValue/2,k=e.pstyle("text-background-padding").pfValue,_=d,T=f,E=T/2,S=_/2;if(y)o=g-E,s=g+E,c=p-S,l=p+S;else{switch(u.value){case"left":o=g-T,s=g;break;case"center":o=g-E,s=g+E;break;case"right":o=g,s=g+T}switch(h.value){case"top":c=p-_,l=p;break;case"center":c=p-S,l=p+S;break;case"bottom":c=p,l=p+_}}o+=b-Math.max(v,x)-k-2,s+=b+Math.max(v,x)+k+2,c+=m-Math.max(v,x)-k-2,l+=m+Math.max(v,x)+k+2;var C=n||"main",A=r.labelBounds,M=A[C]=A[C]||{};M.x1=o,M.y1=c,M.x2=s,M.y2=l,M.w=s-o,M.h=l-c;var L=y&&"autorotate"===w.strValue,I=null!=w.pfValue&&0!==w.pfValue;if(L||I){var O=L?oo(r.rstyle,"labelAngle",n):w.pfValue,N=Math.cos(O),D=Math.sin(O),P=(o+s)/2,B=(c+l)/2;if(!y){switch(u.value){case"left":P=s;break;case"right":P=o}switch(h.value){case"top":B=l;break;case"bottom":B=c}}var R=function(t,e){return{x:(t-=P)*N-(e-=B)*D+P,y:t*D+e*N+B}},F=R(o,c),$=R(o,l),j=R(s,c),z=R(s,l);o=Math.min(F.x,$.x,j.x,z.x),s=Math.max(F.x,$.x,j.x,z.x),c=Math.min(F.y,$.y,j.y,z.y),l=Math.max(F.y,$.y,j.y,z.y)}var q=C+"Rot",H=A[q]=A[q]||{};H.x1=o,H.y1=c,H.x2=s,H.y2=l,H.w=s-o,H.h=l-c,ro(t,o,c,s,l),ro(r.labelBounds.all,o,c,s,l)}return t}},lo=function(t,e){var n,i,r,a,o,s,c=t._private.cy,l=c.styleEnabled(),u=c.headless(),h=De(),f=t._private,d=t.isNode(),g=t.isEdge(),p=f.rstyle,b=d&&l?t.pstyle("bounds-expansion").pfValue:[0],m=function(t){return"none"!==t.pstyle("display").value},y=!l||m(t)&&(!g||m(t.source())&&m(t.target()));if(y){var w=0;l&&e.includeOverlays&&0!==t.pstyle("overlay-opacity").value&&(w=t.pstyle("overlay-padding").value);var v=0;l&&e.includeUnderlays&&0!==t.pstyle("underlay-opacity").value&&(v=t.pstyle("underlay-padding").value);var x=Math.max(w,v),k=0;if(l&&(k=t.pstyle("width").pfValue/2),d&&e.includeNodes){var _=t.position();o=_.x,s=_.y;var T=t.outerWidth()/2,E=t.outerHeight()/2;ro(h,n=o-T,r=s-E,i=o+T,a=s+E),l&&e.includeOutlines&&function(t,e){if(!e.cy().headless()){var n=e.pstyle("outline-opacity").value,i=e.pstyle("outline-width").value;if(n>0&&i>0){var r=e.pstyle("outline-offset").value,a=e.pstyle("shape").value,o=i+r,s=(t.w+2*o)/t.w,c=(t.h+2*o)/t.h,l=0;["diamond","pentagon","round-triangle"].includes(a)?(s=(t.w+2.4*o)/t.w,l=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(a)?s=(t.w+2.4*o)/t.w:"star"===a?(s=(t.w+2.8*o)/t.w,c=(t.h+2.6*o)/t.h,l=-o/3.8):"triangle"===a?(s=(t.w+2.8*o)/t.w,c=(t.h+2.4*o)/t.h,l=-o/1.4):"vee"===a&&(s=(t.w+4.4*o)/t.w,c=(t.h+3.8*o)/t.h,l=.5*-o);var u=t.h*c-t.h,h=t.w*s-t.w;if(Fe(t,[Math.ceil(u/2),Math.ceil(h/2)]),0!==l){var f=function(t,e,n){return{x1:t.x1+e,x2:t.x2+e,y1:t.y1+n,y2:t.y2+n,w:t.w,h:t.h}}(t,0,l);Pe(t,f)}}}}(h,t)}else if(g&&e.includeEdges)if(l&&!u){var S=t.pstyle("curve-style").strValue;if(n=Math.min(p.srcX,p.midX,p.tgtX),i=Math.max(p.srcX,p.midX,p.tgtX),r=Math.min(p.srcY,p.midY,p.tgtY),a=Math.max(p.srcY,p.midY,p.tgtY),ro(h,n-=k,r-=k,i+=k,a+=k),"haystack"===S){var C=p.haystackPts;if(C&&2===C.length){if(n=C[0].x,r=C[0].y,n>(i=C[1].x)){var A=n;n=i,i=A}if(r>(a=C[1].y)){var M=r;r=a,a=M}ro(h,n-k,r-k,i+k,a+k)}}else if("bezier"===S||"unbundled-bezier"===S||"segments"===S||"taxi"===S){var L;switch(S){case"bezier":case"unbundled-bezier":L=p.bezierPts;break;case"segments":case"taxi":L=p.linePts}if(null!=L)for(var I=0;I(i=D.x)){var P=n;n=i,i=P}if((r=N.y)>(a=D.y)){var B=r;r=a,a=B}ro(h,n-=k,r-=k,i+=k,a+=k)}if(l&&e.includeEdges&&g&&(so(h,t,"mid-source"),so(h,t,"mid-target"),so(h,t,"source"),so(h,t,"target")),l&&"yes"===t.pstyle("ghost").value){var R=t.pstyle("ghost-offset-x").pfValue,F=t.pstyle("ghost-offset-y").pfValue;ro(h,h.x1+R,h.y1+F,h.x2+R,h.y2+F)}var $=f.bodyBounds=f.bodyBounds||{};$e($,h),Fe($,b),Re($,1),l&&(n=h.x1,i=h.x2,r=h.y1,a=h.y2,ro(h,n-x,r-x,i+x,a+x));var j=f.overlayBounds=f.overlayBounds||{};$e(j,h),Fe(j,b),Re(j,1);var z=f.labelBounds=f.labelBounds||{};null!=z.all?function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0}(z.all):z.all=De(),l&&e.includeLabels&&(e.includeMainLabels&&co(h,t,null),g&&(e.includeSourceLabels&&co(h,t,"source"),e.includeTargetLabels&&co(h,t,"target")))}return h.x1=io(h.x1),h.y1=io(h.y1),h.x2=io(h.x2),h.y2=io(h.y2),h.w=io(h.x2-h.x1),h.h=io(h.y2-h.y1),h.w>0&&h.h>0&&y&&(Fe(h,b),Re(h,1)),h},uo=function(t){var e=0,n=function(t){return(t?1:0)<0&&void 0!==arguments[0]?arguments[0]:Io,e=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},No.removeAllListeners=function(){return this.removeListener("*")},No.emit=No.trigger=function(t,e,n){var i=this.listeners,r=i.length;return this.emitting++,m(e)||(e=[e]),Bo(this,(function(t,a){null!=n&&(i=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],r=i.length);for(var o=function(n){var r=i[n];if(r.type===a.type&&(!r.namespace||r.namespace===a.namespace||".*"===r.namespace)&&t.eventMatches(t.context,r,a)){var o=[a];null!=e&&function(t,e){for(var n=0;n1&&!i){var r=this.length-1,a=this[r],o=a._private.data.id;this[r]=void 0,this[t]=a,n.set(o,{ele:a,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var e=this._private,n=t._private.data.id,i=e.map.get(n);if(!i)return this;var r=i.index;return this.unmergeAt(r),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&p(t)){var n=t;t=e.mutableElements().filter(n)}for(var i=0;i=0;e--)t(this[e])&&this.unmergeAt(e);return this},map:function(t,e){for(var n=[],i=this,r=0;ri&&(i=s,n=o)}return{value:i,ele:n}},min:function(t,e){for(var n,i=1/0,r=this,a=0;a=0&&r"u"?"undefined":t(Symbol))!=Uo&&t(Symbol.iterator)!=Uo&&(Ho[Symbol.iterator]=function(){var t=this,e={value:void 0,done:!1},n=0,i=this.length;return a({next:function(){return n1&&void 0!==arguments[1])||arguments[1],n=this[0],i=n.cy();if(i.styleEnabled()&&n)return this.cleanStyle(),n._private.style[t]??(e?i.style().getDefaultProperty(t):null)},numericStyle:function(t){var e=this[0];if(e.cy().styleEnabled()&&e){var n=e.pstyle(t);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(t){var e=this[0];if(e.cy().styleEnabled()&&e)return e.pstyle(t).units},renderedStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=this[0];return n?e.style().getRenderedStyle(n,t):void 0},style:function(t,e){var n=this.cy();if(!n.styleEnabled())return this;var i=n.style();if(y(t)){var r=t;i.applyBypass(this,r,false),this.emitAndNotify("style")}else if(p(t)){if(void 0===e){var a=this[0];return a?i.getStylePropertyValue(a,t):void 0}i.applyBypass(this,t,e,false),this.emitAndNotify("style")}else if(void 0===t){var o=this[0];return o?i.getRawStyle(o):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=e.style(),i=this;if(void 0===t)for(var r=0;r0&&e.push(u[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)}),"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}}),ss.neighbourhood=ss.neighborhood,ss.closedNeighbourhood=ss.closedNeighborhood,ss.openNeighbourhood=ss.openNeighborhood,$(ss,{source:ja((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:ja((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:hs({attr:"source"}),targets:hs({attr:"target"})}),$(ss,{edgesWith:ja(fs(),"edgesWith"),edgesTo:ja(fs({thisIsSrc:!0}),"edgesTo")}),$(ss,{connectedEdges:ja((function(t){for(var e=[],n=0;n0);return a},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),ss.componentsOf=ss.components;var gs=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t){var r=new ne,a=!1;if(e){if(e.length>0&&y(e[0])&&!k(e[0])){a=!0;for(var o=[],s=new re,c=0,l=e.length;c0&&void 0!==arguments[0])||arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,r=i.cy(),a=r._private,o=[],s=[],c=0,l=i.length;c0){for(var R=t.length===i.length?i:new gs(r,t),F=0;F0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,i=[],r={},a=n._private.cy;function o(t){var n=r[t.id()];e&&t.removed()||n||(r[t.id()]=!0,t.isNode()?(i.push(t),function(t){for(var e=t._private.edges,n=0;n0&&(t?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var _=0;_=.001?function(e,i){for(var a=0;a0?r=c:i=c}while(Math.abs(s)>a&&++lh&&Math.abs(s.v)>h;);return a?function(t){return l[t*(l.length-1)|0]}:u}}(),ws=function(t,e,n,i){var r=ms(t,e,n,i);return function(t,e,n){return t+(e-t)*r(n)}},vs={linear:function(t,e,n){return t+(e-t)*n},ease:ws(.25,.1,.25,1),"ease-in":ws(.42,0,1,1),"ease-out":ws(0,0,.58,1),"ease-in-out":ws(.42,0,.58,1),"ease-in-sine":ws(.47,0,.745,.715),"ease-out-sine":ws(.39,.575,.565,1),"ease-in-out-sine":ws(.445,.05,.55,.95),"ease-in-quad":ws(.55,.085,.68,.53),"ease-out-quad":ws(.25,.46,.45,.94),"ease-in-out-quad":ws(.455,.03,.515,.955),"ease-in-cubic":ws(.55,.055,.675,.19),"ease-out-cubic":ws(.215,.61,.355,1),"ease-in-out-cubic":ws(.645,.045,.355,1),"ease-in-quart":ws(.895,.03,.685,.22),"ease-out-quart":ws(.165,.84,.44,1),"ease-in-out-quart":ws(.77,0,.175,1),"ease-in-quint":ws(.755,.05,.855,.06),"ease-out-quint":ws(.23,1,.32,1),"ease-in-out-quint":ws(.86,0,.07,1),"ease-in-expo":ws(.95,.05,.795,.035),"ease-out-expo":ws(.19,1,.22,1),"ease-in-out-expo":ws(1,0,0,1),"ease-in-circ":ws(.6,.04,.98,.335),"ease-out-circ":ws(.075,.82,.165,1),"ease-in-out-circ":ws(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return vs.linear;var i=ys(t,e,n);return function(t,e,n){return t+(e-t)*i(n)}},"cubic-bezier":ws};function xs(t,e,n,i,r){if(1===i||e===n)return n;var a=r(e,n,i);return null==t||((t.roundValue||t.color)&&(a=Math.round(a)),void 0!==t.min&&(a=Math.max(a,t.min)),void 0!==t.max&&(a=Math.min(a,t.max))),a}function ks(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function _s(t,e,n,i,r){var a=null!=r?r.type:null;n<0?n=0:n>1&&(n=1);var o=ks(t,r),s=ks(e,r);if(w(o)&&w(s))return xs(a,o,s,n,i);if(m(o)&&m(s)){for(var c=[],l=0;l0?("spring"===h&&f.push(o.duration),o.easingImpl=vs[h].apply(null,f)):o.easingImpl=vs[h]}var d,g=o.easingImpl;if(d=0===o.duration?1:(n-c)/o.duration,o.applying&&(d=o.progress),d<0?d=0:d>1&&(d=1),null==o.delay){var b=o.startPosition,m=o.position;if(m&&r&&!t.locked()){var y={};Es(b.x,m.x)&&(y.x=_s(b.x,m.x,d,g)),Es(b.y,m.y)&&(y.y=_s(b.y,m.y,d,g)),t.position(y)}var w=o.startPan,v=o.pan,x=a.pan,k=null!=v&&i;k&&(Es(w.x,v.x)&&(x.x=_s(w.x,v.x,d,g)),Es(w.y,v.y)&&(x.y=_s(w.y,v.y,d,g)),t.emit("pan"));var _=o.startZoom,T=o.zoom,E=null!=T&&i;E&&(Es(_,T)&&(a.zoom=Ne(a.minZoom,_s(_,T,d,g),a.maxZoom)),t.emit("zoom")),(k||E)&&t.emit("viewport");var S=o.style;if(S&&S.length>0&&r){for(var C=0;C=0;e--)(0,t[e])();t.splice(0,t.length)},u=a.length-1;u>=0;u--){var h=a[u],f=h._private;f.stopped?(a.splice(u,1),f.hooked=!1,f.playing=!1,f.started=!1,l(f.frames)):!f.playing&&!f.applying||(f.playing&&f.applying&&(f.applying=!1),f.started||Ss(0,h,t),Ts(e,h,t,n),f.applying&&(f.applying=!1),l(f.frames),null!=f.step&&f.step(t),h.completed()&&(a.splice(u,1),f.hooked=!1,f.playing=!1,f.started=!1,l(f.completes)),s=!0)}return!n&&0===a.length&&0===o.length&&i.push(e),s}for(var a=!1,o=0;o0?e.notify("draw",n):e.notify("draw")),n.unmerge(i),e.emit("step")}var As={animate:Qr.animate(),animation:Qr.animation(),animated:Qr.animated(),clearQueue:Qr.clearQueue(),delay:Qr.delay(),delayAnimation:Qr.delayAnimation(),stop:Qr.stop(),addToAnimationPool:function(t){this.styleEnabled()&&this._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,t.styleEnabled()){var e=t.renderer();e&&e.beforeRender?e.beforeRender((function(e,n){Cs(n,t)}),e.beforeRenderPriorities.animations):function e(){t._private.animationsRunning&&_t((function(n){Cs(n,t),e()}))}()}}},Ms={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var i=e.qualifier;return null==i||t!==n.target&&k(n.target)&&i.matches(n.target)},addEventFields:function(t,e){e.cy=t,e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t}},Ls=function(t){return p(t)?new Pa(t):t},Is={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new Oo(Ms,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,Ls(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,Ls(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,Ls(e),n),this},once:function(t,e,n){return this.emitter().one(t,Ls(e),n),this},emit:function(t,e){return this.emitter().emit(t,e),this},emitAndNotify:function(t,e){return this.emit(t),this.notify(t,e),this}};Qr.eventAliasesOn(Is);var Os={png:function(t){return t=t||{},this._private.renderer.png(t)},jpg:function(t){var e=this._private.renderer;return(t=t||{}).bg=t.bg||"#fff",e.jpg(t)}};Os.jpeg=Os.jpg;var Ns={layout:function(t){var e=this;if(null!=t)if(null!=t.name){var n,i=t.name,r=e.extension("layout",i);if(null!=r)return n=p(t.eles)?e.$(t.eles):null!=t.eles?t.eles:e.$(),new r($({},t,{cy:e,eles:n}));Ht("No such layout `"+i+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Ht("A `name` must be specified to make a layout");else Ht("Layout options must be specified to make a layout")}};Ns.createLayout=Ns.makeLayout=Ns.layout;var Ds={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&i.merge(e)}else if(n.notificationsEnabled){var r=this.renderer();this.destroyed()||!r||r.notify(t,e)}},notifications:function(t){var e=this._private;return void 0===t?e.notificationsEnabled:(e.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return null==t.batchCount&&(t.batchCount=0),0===t.batchCount&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(0===t.batchCount)return this;if(t.batchCount--,0===t.batchCount){t.batchStyleEles.updateStyle();var e=this.renderer();Object.keys(t.batchNotifications).forEach((function(n){var i=t.batchNotifications[n];i.empty()?e.notify(n):e.notify(n,i)}))}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var e=this;return this.batch((function(){for(var n=Object.keys(t),i=0;i0;)e.removeChild(e.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach((function(t){var e=t._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]}))},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};Bs.invalidateDimensions=Bs.resize;var Rs={collection:function(t,e){return p(t)?this.$(t):x(t)?t.collection():m(t)?(e||(e={}),new gs(this,t,e.unique,e.removed)):new gs(this)},nodes:function(t){var e=this.$((function(t){return t.isNode()}));return t?e.filter(t):e},edges:function(t){var e=this.$((function(t){return t.isEdge()}));return t?e.filter(t):e},$:function(t){var e=this._private.elements;return t?e.filter(t):e.spawnSelf()},mutableElements:function(){return this._private.elements}};Rs.elements=Rs.filter=Rs.$;var Fs={},$s="t";Fs.apply=function(t){for(var e=this,n=e._private.cy.collection(),i=0;i0;if(f||h&&d){var g=void 0;f&&d||f?g=l.properties:d&&(g=l.mappedProperties);for(var p=0;p1&&(v=1),s.color){var k=r.valueMin[0],_=r.valueMax[0],T=r.valueMin[1],E=r.valueMax[1],S=r.valueMin[2],C=r.valueMax[2],A=null==r.valueMin[3]?1:r.valueMin[3],M=null==r.valueMax[3]?1:r.valueMax[3],L=[Math.round(k+(_-k)*v),Math.round(T+(E-T)*v),Math.round(S+(C-S)*v),Math.round(A+(M-A)*v)];n={bypass:r.bypass,name:r.name,value:L,strValue:"rgb("+L[0]+", "+L[1]+", "+L[2]+")"}}else{if(!s.number)return!1;var I=r.valueMin+(r.valueMax-r.valueMin)*v;n=this.parse(r.name,I,r.bypass,f)}if(!n)return p(),!1;n.mapping=r,r=n;break;case o.data:for(var O=r.field.split("."),N=h.data,D=0;D0&&a>0){for(var s={},c=!1,l=0;l0?t.delayAnimation(o).play().promise().then(e):e()})).then((function(){return t.animation({style:s,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1}))}else i.transitioning&&(this.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1)},Fs.checkTrigger=function(t,e,n,i,r,a){var o=this.properties[e],s=r(o);null!=s&&s(n,i)&&a(o)},Fs.checkZOrderTrigger=function(t,e,n,i){var r=this;this.checkTrigger(t,e,n,i,(function(t){return t.triggersZOrder}),(function(){r._private.cy.notify("zorder",t)}))},Fs.checkBoundsTrigger=function(t,e,n,i){this.checkTrigger(t,e,n,i,(function(t){return t.triggersBounds}),(function(r){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),r.triggersBoundsOfParallelBeziers&&"curve-style"===e&&("bezier"===n||"bezier"===i)&&t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()})),r.triggersBoundsOfConnectedEdges&&"display"===e&&("none"===n||"none"===i)&&t.connectedEdges().forEach((function(t){t.dirtyBoundingBoxCache()}))}))},Fs.checkTriggers=function(t,e,n,i){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,i),this.checkBoundsTrigger(t,e,n,i)};var js={applyBypass:function(t,e,n,i){var r=[];if("*"===e||"**"===e){if(void 0!==n)for(var a=0;ae.length?a.substr(e.length):""}function s(){n=n.length>i.length?n.substr(i.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var c=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!c){Gt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}e=c[0];var l=c[1];if("core"!==l&&new Pa(l).invalid)Gt("Skipping parsing of block: Invalid selector found in string stylesheet: "+l),o();else{var u=c[2],h=!1;n=u;for(var f=[];!n.match(/^\s*$/);){var d=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!d){Gt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+u),h=!0;break}i=d[0];var g=d[1],p=d[2];this.properties[g]?r.parse(g,p)?(f.push({name:g,val:p}),s()):(Gt("Skipping property: Invalid property definition in: "+i),s()):(Gt("Skipping property: Invalid property name in: "+i),s())}if(h){o();break}r.selector(l);for(var b=0;b=7&&"d"===e[0]&&(l=new RegExp(s.data.regex).exec(e))){if(n)return!1;var f=s.data;return{name:t,value:l,strValue:""+e,mapped:f,field:l[1],bypass:n}}if(e.length>=10&&"m"===e[0]&&(u=new RegExp(s.mapData.regex).exec(e))){if(n||h.multiple)return!1;var d=s.mapData;if(!h.color&&!h.number)return!1;var g=this.parse(t,u[4]);if(!g||g.mapped)return!1;var y=this.parse(t,u[5]);if(!y||y.mapped)return!1;if(g.pfValue===y.pfValue||g.strValue===y.strValue)return Gt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(h.color){var v=g.value,x=y.value;if(!(v[0]!==x[0]||v[1]!==x[1]||v[2]!==x[2]||v[3]!==x[3]&&(null!=v[3]&&1!==v[3]||null!=x[3]&&1!==x[3])))return!1}return{name:t,value:u,strValue:""+e,mapped:d,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:g.value,valueMax:y.value,bypass:n}}}if(h.multiple&&"multiple"!==i){var k;if(k=c?e.split(/\s+/):m(e)?e:[e],h.evenMultiple&&k.length%2!=0)return null;for(var _=[],T=[],E=[],S="",C=!1,A=0;A0?" ":"")+L.strValue}return h.validate&&!h.validate(_,T)?null:h.singleEnum&&C?1===_.length&&p(_[0])?{name:t,value:_[0],strValue:_[0],bypass:n}:null:{name:t,value:_,pfValue:E,strValue:S,bypass:n,units:T}}var I=function(){for(var i=0;ih.max||h.strictMax&&e===h.max))return null;var R={name:t,value:e,strValue:""+e+(O||""),units:O,bypass:n};return h.unitless||"px"!==O&&"em"!==O?R.pfValue=e:R.pfValue="px"!==O&&O?this.getEmSizeInPixels()*e:e,("ms"===O||"s"===O)&&(R.pfValue="ms"===O?e:1e3*e),("deg"===O||"rad"===O)&&(R.pfValue="rad"===O?e:function(t){return Math.PI*t/180}(e)),"%"===O&&(R.pfValue=e/100),R}if(h.propList){var F=[],$=""+e;if("none"!==$){for(var z=$.split(/\s*,\s*|\s+/),q=0;q0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:a=(a=(a=Math.min((o-2*e)/n.w,(s-2*e)/n.h))>this._private.maxZoom?this._private.maxZoom:a)=n.minZoom&&(n.maxZoom=e),this},minZoom:function(t){return void 0===t?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return void 0===t?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var e,n,i=this._private,r=i.pan,a=i.zoom,o=!1;if(i.zoomingEnabled||(o=!0),w(t)?n=t:y(t)&&(n=t.level,null!=t.position?e=ke(t.position,a,r):null!=t.renderedPosition&&(e=t.renderedPosition),null!=e&&!i.panningEnabled&&(o=!0)),n=(n=n>i.maxZoom?i.maxZoom:n)e.maxZoom||!e.zoomingEnabled?a=!0:(e.zoom=s,r.push("zoom"))}if(i&&(!a||!t.cancelOnFailedZoom)&&e.panningEnabled){var c=t.pan;w(c.x)&&(e.pan.x=c.x,o=!1),w(c.y)&&(e.pan.y=c.y,o=!1),o||r.push("pan")}return r.length>0&&(r.push("viewport"),this.emit(r.join(" ")),this.notify("viewport")),this},center:function(t){var e=this.getCenterPan(t);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,e){if(this._private.panningEnabled){if(p(t)){var n=t;t=this.mutableElements().filter(n)}else x(t)||(t=this.mutableElements());if(0!==t.length){var i=t.boundingBox(),r=this.width(),a=this.height();return{x:(r-(e=void 0===e?this._private.zoom:e)*(i.x1+i.x2))/2,y:(a-e*(i.y1+i.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t,e,n=this._private,i=n.container;return n.sizeCache=n.sizeCache||(i?(t=this.window().getComputedStyle(i),e=function(e){return parseFloat(t.getPropertyValue(e))},{width:i.clientWidth-e("padding-left")-e("padding-right"),height:i.clientHeight-e("padding-top")-e("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var t=this._private.pan,e=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-t.x)/e,x2:(n.x2-t.x)/e,y1:(n.y1-t.y)/e,y2:(n.y2-t.y)/e};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var t=this.width(),e=this.height();return{x1:0,y1:0,x2:t,y2:e,w:t,h:e}},multiClickDebounceTime:function(t){return t?(this._private.multiClickDebounceTime=t,this):this._private.multiClickDebounceTime}};Xs.centre=Xs.center,Xs.autolockNodes=Xs.autolock,Xs.autoungrabifyNodes=Xs.autoungrabify;var Qs={data:Qr.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Qr.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Qr.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Qr.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Qs.attr=Qs.data,Qs.removeAttr=Qs.removeData;var Zs=function(t){var e=this,n=(t=$({},t)).container;n&&!v(n)&&v(n[0])&&(n=n[0]);var i=n?n._cyreg:null;(i=i||{})&&i.cy&&(i.cy.destroy(),i={});var r=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=e;var a=void 0!==c&&void 0!==n&&!t.headless,o=t;o.layout=$({name:a?"grid":"null"},o.layout),o.renderer=$({name:a?"canvas":"null"},o.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},l=this._private={container:n,ready:!1,options:o,elements:new gs(this),listeners:[],aniEles:new gs(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:w(o.zoom)?o.zoom:1,pan:{x:y(o.pan)&&w(o.pan.x)?o.pan.x:0,y:y(o.pan)&&w(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});l.styleEnabled&&e.setStyle([]);var u=$({},o,o.renderer);e.initRenderer(u);!function(t,e){if(t.some(C))return Si.all(t).then(e);e(t)}([o.style,o.elements],(function(t){var n=t[0],a=t[1];l.styleEnabled&&e.style().append(n),function(t,n,i){e.notifications(!1);var r=e.mutableElements();r.length>0&&r.remove(),null!=t&&(y(t)||m(t))&&e.add(t),e.one("layoutready",(function(t){e.notifications(!0),e.emit(t),e.one("load",n),e.emitAndNotify("load")})).one("layoutstop",(function(){e.one("done",i),e.emit("done")}));var a=$({},e._private.options.layout);a.eles=e.elements(),e.layout(a).run()}(a,(function(){e.startAnimationLoop(),l.ready=!0,b(o.ready)&&e.on("ready",o.ready);for(var t=0;t0,l=De(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()});if(x(n.roots))t=n.roots;else if(m(n.roots)){for(var u=[],h=0;h0;){var O=M.shift(),N=A(O,L);if(N)O.outgoers().filter((function(t){return t.isNode()&&r.has(t)})).forEach(I);else if(null===N){Gt("Detected double maximal shift for node `"+O.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}C();var D=0;if(n.avoidOverlap)for(var P=0;P0&&w[0].length<=3?c/2:0),h=2*Math.PI/w[i].length*r;return 0===i&&1===w[0].length&&(u=1),{x:V+u*Math.cos(h),y:W+u*Math.sin(h)}}return{x:V+(r+1-(a+1)/2)*o,y:(i+1)*s}})),this};var ac={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function oc(t){this.options=$({},ac,t)}oc.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=i.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o,s=De(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),c={x:s.x1+s.w/2,y:s.y1+s.h/2},l=(void 0===e.sweep?2*Math.PI-2*Math.PI/a.length:e.sweep)/Math.max(1,a.length-1),u=0,h=0;h1&&e.avoidOverlap){u*=1.75;var p=Math.cos(l)-Math.cos(0),b=Math.sin(l)-Math.sin(0),m=Math.sqrt(u*u/(p*p+b*b));o=Math.max(m,o)}return i.nodes().layoutPositions(this,e,(function(t,n){var i=e.startAngle+n*l*(r?1:-1),a=o*Math.cos(i),s=o*Math.sin(i);return{x:c.x+a,y:c.y+s}})),this};var sc={fit:!0,padding:30,startAngle:1.5*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:function(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function cc(t){this.options=$({},sc,t)}cc.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,i=t.cy,r=e.eles,a=r.nodes().not(":parent"),o=De(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=[],l=0,u=0;u0&&Math.abs(m[0].value-w.value)>=p&&(m=[],b.push(m)),m.push(w)}var v=l+e.minNodeSpacing;if(!e.avoidOverlap){var x=b.length>0&&b[0].length>1,k=(Math.min(o.w,o.h)/2-v)/(b.length+x?1:0);v=Math.min(v,k)}for(var _=0,T=0;T1&&e.avoidOverlap){var A=Math.cos(C)-Math.cos(0),M=Math.sin(C)-Math.sin(0),L=Math.sqrt(v*v/(A*A+M*M));_=Math.max(L,_)}E.r=_,_+=v}if(e.equidistant){for(var I=0,O=0,N=0;N=t.numIter||(yc(i,t),i.temperature=i.temperature*t.coolingFactor,i.temperature=t.animationThreshold&&a(),_t(e)):(Lc(i,t),s())}();else{for(;l;)l=o(c),c++;Lc(i,t),s()}return this},hc.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},hc.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var fc=function(t,e,n){for(var i=n.eles.edges(),r=n.eles.nodes(),a=De(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),o={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:r.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),c={},l=0;l0)for(o.graphSet.push(k),l=0;li.count?0:i.graph},gc=function t(e,n,i,r){var a=r.graphSet[i];if(-10)var s=(l=i.nodeOverlap*o)*r/(p=Math.sqrt(r*r+a*a)),c=l*a/p;else{var l,u=_c(t,r,a),h=_c(e,-1*r,-1*a),f=h.x-u.x,d=h.y-u.y,g=f*f+d*d,p=Math.sqrt(g);s=(l=(t.nodeRepulsion+e.nodeRepulsion)/g)*f/p,c=l*d/p}t.isLocked||(t.offsetX-=s,t.offsetY-=c),e.isLocked||(e.offsetX+=s,e.offsetY+=c)}},kc=function(t,e,n,i){if(n>0)var r=t.maxX-e.minX;else r=e.maxX-t.minX;if(i>0)var a=t.maxY-e.minY;else a=e.maxY-t.minY;return r>=0&&a>=0?Math.sqrt(r*r+a*a):0},_c=function(t,e,n){var i=t.positionX,r=t.positionY,a=t.height||1,o=t.width||1,s=n/e,c=a/o,l={};return 0===e&&0n?(l.x=i,l.y=r+a/2,l):0e&&-1*c<=s&&s<=c?(l.x=i-o/2,l.y=r-o*n/2/e,l):0=c)?(l.x=i+a*e/2/n,l.y=r+a/2,l):(0>n&&(s<=-1*c||s>=c)&&(l.x=i-a*e/2/n,l.y=r-a/2),l)},Tc=function(t,e){for(var n=0;n1){var g=e.gravity*h/d,p=e.gravity*f/d;u.offsetX+=g,u.offsetY+=p}}}}},Sc=function(t,e){var n=[],i=0,r=-1;for(n.push.apply(n,t.graphSet[0]),r+=t.graphSet[0].length;i<=r;){var a=n[i++],o=t.idToIndex[a],s=t.layoutNodes[o],c=s.children;if(0n)var r={x:n*t/i,y:n*e/i};else r={x:t,y:e};return r},Mc=function t(e,n){var i=e.parentId;if(null!=i){var r=n.layoutNodes[n.idToIndex[i]],a=!1;if((null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,a=!0),(null==r.minX||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,a=!0),(null==r.minY||e.minY-r.padTopg&&(h+=d+e.componentSpacing,u=0,f=0,d=0)}}},Ic={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:function(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Oc(t){this.options=$({},Ic,t)}Oc.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=i.nodes().not(":parent");e.sort&&(r=r.sort(e.sort));var a=De(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)i.nodes().layoutPositions(this,e,(function(t){return{x:a.x1,y:a.y1}}));else{var o=r.size(),s=Math.sqrt(o*a.h/a.w),c=Math.round(s),l=Math.round(a.w/a.h*s),u=function(t){if(null==t)return Math.min(c,l);Math.min(c,l)==c?c=t:l=t},h=function(t){if(null==t)return Math.max(c,l);Math.max(c,l)==c?c=t:l=t},f=e.rows,d=null!=e.cols?e.cols:e.columns;if(null!=f&&null!=d)c=f,l=d;else if(null!=f&&null==d)c=f,l=Math.ceil(o/c);else if(null==f&&null!=d)l=d,c=Math.ceil(o/l);else if(l*c>o){var g=u(),p=h();(g-1)*p>=o?u(g-1):(p-1)*g>=o&&h(p-1)}else for(;l*c=o?h(m+1):u(b+1)}var y=a.w/l,w=a.h/c;if(e.condense&&(y=0,w=0),e.avoidOverlap)for(var v=0;v=l&&(I=0,L++)},N={},D=0;D(i=Ve(t,e,v[x],v[x+1],v[x+2],v[x+3])))return b(n,i),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(v=a.allpts,x=0;x+5(i=Ye(t,e,v[x],v[x+1],v[x+2],v[x+3],v[x+4],v[x+5])))return b(n,i),!0;y=y||r.source,w=w||r.target;var k=o.getArrowWidth(c,u),_=[{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}];for(x=0;x<_.length;x++){var T=_[x],E=s.arrowShapes[n.pstyle(T.name+"-arrow-shape").value],S=n.pstyle("width").pfValue;if(E.roughCollide(t,e,k,T.angle,{x:T.x,y:T.y},S,f)&&E.collide(t,e,k,T.angle,{x:T.x,y:T.y},S,f))return b(n),!0}h&&l.length>0&&(m(y),m(w))}function w(t,e,n){return Jt(t,e,n)}function v(n,i){var r,a=n._private,o=g;r=i?i+"-":"",n.boundingBox();var s=a.labelBounds[i||"main"],c=n.pstyle(r+"label").value;if("yes"===n.pstyle("text-events").strValue&&c){var l=w(a.rscratch,"labelX",i),u=w(a.rscratch,"labelY",i),h=w(a.rscratch,"labelAngle",i),f=n.pstyle(r+"text-margin-x").pfValue,d=n.pstyle(r+"text-margin-y").pfValue,p=s.x1-o-f,m=s.x2+o-f,y=s.y1-o-d,v=s.y2+o-d;if(h){var x=Math.cos(h),k=Math.sin(h),_=function(t,e){return{x:(t-=l)*x-(e-=u)*k+l,y:t*k+e*x+u}},T=_(p,y),E=_(p,v),S=_(m,y),C=_(m,v),A=[T.x+f,T.y+d,S.x+f,S.y+d,C.x+f,C.y+d,E.x+f,E.y+d];if(We(t,e,A))return b(n),!0}else if(ze(s,t,e))return b(n),!0}}n&&(c=c.interactive);for(var x=c.length-1;x>=0;x--){var k=c[x];k.isNode()?m(k)||v(k):y(k)||v(k)||v(k,"source")||v(k,"target")}return l},getAllInBox:function(t,e,n,i){for(var r=this.getCachedZSortedEles().interactive,a=[],o=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,i),l=Math.max(e,i),u=De({x1:t=o,y1:e=c,x2:n=s,y2:i=l}),h=0;h0?Math.max(t-e,0):Math.min(t+e,0)},C=S(T,k),A=S(E,_),M=!1;"auto"===b?p=Math.abs(C)>Math.abs(A)?r:i:b===c||b===s?(p=i,M=!0):(b===a||b===o)&&(p=r,M=!0);var L,I=p===i,O=I?A:C,N=I?E:T,D=Ce(N),P=!1;(!M||!y&&!v)&&(b===s&&N<0||b===c&&N>0||b===a&&N>0||b===o&&N<0)&&(O=(D*=-1)*Math.abs(O),P=!0);var B=function(t){return Math.abs(t)=Math.abs(O)},R=B(L=y?(w<0?1+w:w)*O:(w<0?O:0)+w*D),F=B(Math.abs(O)-Math.abs(L));if(!R&&!F||P)if(I){var $=l.y1+L+(g?h/2*D:0),j=l.x1,z=l.x2;n.segpts=[j,$,z,$]}else{var q=l.x1+L+(g?u/2*D:0),H=l.y1,U=l.y2;n.segpts=[q,H,q,U]}else if(I){var G=Math.abs(N)<=h/2,K=Math.abs(T)<=f/2;if(G){var Y=(l.x1+l.x2)/2,V=l.y1,W=l.y2;n.segpts=[Y,V,Y,W]}else if(K){var X=(l.y1+l.y2)/2,Q=l.x1,Z=l.x2;n.segpts=[Q,X,Z,X]}else n.segpts=[l.x1,l.y2]}else{var J=Math.abs(N)<=u/2,tt=Math.abs(E)<=d/2;if(J){var et=(l.y1+l.y2)/2,nt=l.x1,it=l.x2;n.segpts=[nt,et,it,et]}else if(tt){var rt=(l.x1+l.x2)/2,at=l.y1,ot=l.y2;n.segpts=[rt,at,rt,ot]}else n.segpts=[l.x2,l.y1]}},Kc.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var i=e.srcPos,r=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,c=e.tgtH,l=e.srcShape,u=e.tgtShape,h=!w(n.startX)||!w(n.startY),f=!w(n.arrowStartX)||!w(n.arrowStartY),d=!w(n.endX)||!w(n.endY),g=!w(n.arrowEndX)||!w(n.arrowEndY),p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,b=Ae({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),m=bf.poolIndex()){var d=h;h=f,f=d}var g=s.srcPos=h.position(),p=s.tgtPos=f.position(),b=s.srcW=h.outerWidth(),m=s.srcH=h.outerHeight(),y=s.tgtW=f.outerWidth(),v=s.tgtH=f.outerHeight(),x=s.srcShape=n.nodeShapes[e.getNodeShape(h)],k=s.tgtShape=n.nodeShapes[e.getNodeShape(f)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_0){var q=l,H=Me(q,Te(e)),U=Me(q,Te(z)),G=H;U2&&Me(q,{x:z[2],y:z[3]})0){var rt=u,at=Me(rt,Te(e)),ot=Me(rt,Te(it)),st=at;ot2&&Me(rt,{x:it[2],y:it[3]})=l||y){u={cp:p,segment:m};break}}if(u)break}var w=u.cp,v=u.segment,x=(l-f)/v.length,k=v.t1-v.t0,_=s?v.t0+k*x:v.t1-k*x;_=Ne(0,_,1),e=Oe(w.p0,w.p1,w.p2,_),r=function(t,e,n,i){var r=Ne(0,i-.001,1),a=Ne(0,i+.001,1),o=Oe(t,e,n,r),s=Oe(t,e,n,a);return Jc(o,s)}(w.p0,w.p1,w.p2,_);break;case"straight":case"segments":case"haystack":for(var T,E,S,C,A=0,M=i.allpts.length,L=0;L+3=l));L+=2);var I=(l-E)/T;I=Ne(0,I,1),e=function(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=Ae(t,e),s=r/o,c=a/o;return n=n??0,i=i??n*o,{x:t.x+s*i,y:t.y+c*i}}(S,C,I),r=Jc(S,C)}o("labelX",n,e.x),o("labelY",n,e.y),o("labelAutoAngle",n,r)}};l("source"),l("target"),this.applyLabelDimensions(t)}},Qc.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},Qc.applyPrefixedLabelDimensions=function(t,e){var n=t._private,i=this.getLabelText(t,e),r=this.calculateLabelDimensions(t,i),a=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=Jt(n.rscratch,"labelWrapCachedLines",e)||[],c="wrap"!==o?1:Math.max(s.length,1),l=r.height/c,u=l*a,h=r.width,f=r.height+(c-1)*(a-1)*l;te(n.rstyle,"labelWidth",e,h),te(n.rscratch,"labelWidth",e,h),te(n.rstyle,"labelHeight",e,f),te(n.rscratch,"labelHeight",e,f),te(n.rscratch,"labelLineHeight",e,u)},Qc.getLabelText=function(t,e){var n=t._private,i=e?e+"-":"",r=t.pstyle(i+"label").strValue,a=t.pstyle("text-transform").value,o=function(t,i){return i?(te(n.rscratch,t,e,i),i):Jt(n.rscratch,t,e)};if(!r)return"";"none"==a||("uppercase"==a?r=r.toUpperCase():"lowercase"==a&&(r=r.toLowerCase()));var s=t.pstyle("text-wrap").value;if("wrap"===s){var c=o("labelKey");if(null!=c&&o("labelWrapKey")===c)return o("labelWrapCachedText");for(var l=r.split("\n"),u=t.pstyle("text-max-width").pfValue,h="anywhere"===t.pstyle("text-overflow-wrap").value,f=[],d=/[\s\u200b]+/,g=h?"":" ",p=0;pu){for(var w=b.split(d),v="",x=0;xT);C++)E+=r[C],C===r.length-1&&(S=!0);return S||(E+="…"),E}return r},Qc.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,n=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Qc.calculateLabelDimensions=function(t,e){var n=Ot(e,t._private.labelDimsKey),i=this.labelDimCache||(this.labelDimCache=[]),r=i[n];if(null!=r)return r;var a=t.pstyle("font-style").strValue,o=t.pstyle("font-size").pfValue,s=t.pstyle("font-family").strValue,c=t.pstyle("font-weight").strValue,l=this.labelCalcCanvas,u=this.labelCalcCanvasContext;if(!l){l=this.labelCalcCanvas=document.createElement("canvas"),u=this.labelCalcCanvasContext=l.getContext("2d");var h=l.style;h.position="absolute",h.left="-9999px",h.top="-9999px",h.zIndex="-1",h.visibility="hidden",h.pointerEvents="none"}u.font="".concat(a," ").concat(c," ").concat(o,"px ").concat(s);for(var f=0,d=0,g=e.split("\n"),p=0;p1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var i=0;i"u")&&t instanceof HTMLElement}(t);if(null==e.supportsPassiveEvents){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){return r=!0,!0}});n.addEventListener("test",null,a)}catch{}e.supportsPassiveEvents=r}var o=function(n,r,a){var o=Array.prototype.slice.call(arguments);return i&&e.supportsPassiveEvents&&(o[2]={capture:a??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:o}),(t.addEventListener||t.on).apply(t,o),this};return{on:o,addEventListener:o,addListener:o,bind:o}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()},load:function(){var t=this,e=t.cy.window(),n=function(t){return t.selected()},i=function(e,n,i,r){null==e&&(e=t.cy);for(var a=0;a=t.desktopTapThreshold2}var C=r(e);b&&(t.hoverData.tapholdCancelled=!0);n=!0,i(p,["mousemove","vmousemove","tapdrag"],e,{x:u[0],y:u[1]});var A=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:u[0],y:u[1]}}),g[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(b){var M={originalEvent:e,type:"cxtdrag",position:{x:u[0],y:u[1]}};y?y.emit(M):o.emit(M),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||p!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:u[0],y:u[1]}}),t.hoverData.cxtOver=p,p&&p.emit({originalEvent:e,type:"cxtdragover",position:{x:u[0],y:u[1]}}))}}else if(t.hoverData.dragging){if(n=!0,o.panningEnabled()&&o.userPanningEnabled()){var L;if(t.hoverData.justStartedPan){var I=t.hoverData.mdownPos;L={x:(u[0]-I[0])*s,y:(u[1]-I[1])*s},t.hoverData.justStartedPan=!1}else L={x:v[0]*s,y:v[1]*s};o.panBy(L),o.emit("dragpan"),t.hoverData.dragged=!0}u=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=g[4]||null!=y&&!y.pannable()){if(y&&y.pannable()&&y.active()&&y.unactivate(),(!y||!y.grabbed())&&p!=m&&(m&&i(m,["mouseout","tapdragout"],e,{x:u[0],y:u[1]}),p&&i(p,["mouseover","tapdragover"],e,{x:u[0],y:u[1]}),t.hoverData.last=p),y)if(b){if(o.boxSelectionEnabled()&&C)y&&y.grabbed()&&(h(x),y.emit("freeon"),x.emit("free"),t.dragData.didDrag&&(y.emit("dragfreeon"),x.emit("dragfree"))),A();else if(y&&y.grabbed()&&t.nodeIsDraggable(y)){var O=!t.dragData.didDrag;O&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||l(x,{inDragLayer:!0});var N={x:0,y:0};if(w(v[0])&&w(v[1])&&(N.x+=v[0],N.y+=v[1],O)){var D=t.hoverData.dragDelta;D&&w(D[0])&&w(D[1])&&(N.x+=D[0],N.y+=D[1])}t.hoverData.draggingEles=!0,x.silentShift(N).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else 0===(P=t.hoverData.dragDelta=t.hoverData.dragDelta||[]).length?(P.push(v[0]),P.push(v[1])):(P[0]+=v[0],P[1]+=v[1]);n=!0}else b&&(t.hoverData.dragging||!o.boxSelectionEnabled()||!C&&o.panningEnabled()&&o.userPanningEnabled()?!t.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()&&a(y,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,g[4]=0,t.data.bgActivePosistion=Te(f),t.redrawHint("select",!0),t.redraw()):A(),y&&y.pannable()&&y.active()&&y.unactivate());if(g[2]=u[0],g[3]=u[1],n)return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}var P}),!1),t.registerBinding(e,"mouseup",(function(e){if(t.hoverData.capture){t.hoverData.capture=!1;var a=t.cy,o=t.projectIntoViewport(e.clientX,e.clientY),s=t.selection,c=t.findNearestElement(o[0],o[1],!0,!1),l=t.dragData.possibleDragElements,u=t.hoverData.down,f=r(e);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,u&&u.unactivate(),3===t.hoverData.which){var d={originalEvent:e,type:"cxttapend",position:{x:o[0],y:o[1]}};if(u?u.emit(d):a.emit(d),!t.hoverData.cxtDragged){var g={originalEvent:e,type:"cxttap",position:{x:o[0],y:o[1]}};u?u.emit(g):a.emit(g)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(i(c,["mouseup","tapend","vmouseup"],e,{x:o[0],y:o[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(i(u,["click","tap","vclick"],e,{x:o[0],y:o[1]}),v=!1,e.timeStamp-x<=a.multiClickDebounceTime()?(y&&clearTimeout(y),v=!0,x=null,i(u,["dblclick","dbltap","vdblclick"],e,{x:o[0],y:o[1]})):(y=setTimeout((function(){v||i(u,["oneclick","onetap","voneclick"],e,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),x=e.timeStamp)),null==u&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!r(e)&&(a.$(n).unselect(["tapunselect"]),l.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=l=a.collection()),c==u&&!t.dragData.didDrag&&!t.hoverData.selecting&&null!=c&&c._private.selectable&&(t.hoverData.dragging||("additive"===a.selectionType()||f?c.selected()?c.unselect(["tapunselect"]):c.select(["tapselect"]):f||(a.$(n).unmerge(c).unselect(["tapunselect"]),c.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var p=a.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),p.length>0&&t.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:e,position:{x:o[0],y:o[1]}});"additive"===a.selectionType()||f||a.$(n).unmerge(p).unselect(),p.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!s[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var b=u&&u.grabbed();h(l),b&&(u.emit("freeon"),l.emit("free"),t.dragData.didDrag&&(u.emit("dragfreeon"),l.emit("dragfree")))}}s[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}}),!1);var _=function(e){if(!t.scrollingPage){var n=t.cy,i=n.zoom(),r=n.pan(),a=t.projectIntoViewport(e.clientX,e.clientY),o=[a[0]*i+r.x,a[1]*i+r.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])return void e.preventDefault();if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;e.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout((function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()}),150),s=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,s*=t.wheelSensitivity,1===e.deltaMode&&(s*=33);var c=n.zoom()*Math.pow(10,s);"gesturechange"===e.type&&(c=t.gestureStartZoom*e.scale),n.zoom({level:c,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===e.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",_,!0),t.registerBinding(e,"scroll",(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout((function(){t.scrollingPage=!1}),250)}),!0),t.registerBinding(t.container,"gesturestart",(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()}),!0),t.registerBinding(t.container,"gesturechange",(function(e){t.hasTouchStarted||_(e)}),!0),t.registerBinding(t.container,"mouseout",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),t.registerBinding(t.container,"mouseover",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var T,E,S,C,A,M,L,I,O,N,D,P,B,R,F,$,j,z,q,H,U=function(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))},G=function(t,e,n,i){return(n-t)*(n-t)+(i-e)*(i-e)};if(t.registerBinding(t.container,"touchstart",R=function(e){if(t.hasTouchStarted=!0,k(e)){d(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var n=t.cy,r=t.touchData.now,a=t.touchData.earlier;if(e.touches[0]){var o=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(e.touches[1]&&(o=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),r[2]=o[0],r[3]=o[1]),e.touches[2]&&(o=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),r[4]=o[0],r[5]=o[1]),e.touches[1]){t.touchData.singleTouchMoved=!0,h(t.dragData.touchDragEles);var c=t.findContainerClientCoords();O=c[0],N=c[1],D=c[2],P=c[3],T=e.touches[0].clientX-O,E=e.touches[0].clientY-N,S=e.touches[1].clientX-O,C=e.touches[1].clientY-N,B=0<=T&&T<=D&&0<=S&&S<=D&&0<=E&&E<=P&&0<=C&&C<=P;var f=n.pan(),g=n.zoom();A=U(T,E,S,C),M=G(T,E,S,C),I=[((L=[(T+S)/2,(E+C)/2])[0]-f.x)/g,(L[1]-f.y)/g];if(M<4e4&&!e.touches[2]){var p=t.findNearestElement(r[0],r[1],!0,!0),b=t.findNearestElement(r[2],r[3],!0,!0);return p&&p.isNode()?(p.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=p):b&&b.isNode()?(b.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=b):n.emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(e.touches[2])n.boxSelectionEnabled()&&e.preventDefault();else if(!e.touches[1]&&e.touches[0]){var m=t.findNearestElements(r[0],r[1],!0,!0),y=m[0];if(null!=y&&(y.activate(),t.touchData.start=y,t.touchData.starts=m,t.nodeIsGrabbable(y))){var w=t.dragData.touchDragEles=n.collection(),v=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),y.selected()?(v=n.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),l(v,{addToList:w})):u(y,{addToList:w}),s(y);var x=function(t){return{originalEvent:e,type:t,position:{x:r[0],y:r[1]}}};y.emit(x("grabon")),v?v.forEach((function(t){t.emit(x("grab"))})):y.emit(x("grab"))}i(y,["touchstart","tapstart","vmousedown"],e,{x:r[0],y:r[1]}),null==y&&(t.data.bgActivePosistion={x:o[0],y:o[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout((function(){!1===t.touchData.singleTouchMoved&&!t.pinching&&!t.touchData.selecting&&i(t.touchData.start,["taphold"],e,{x:r[0],y:r[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var _=t.touchData.startPosition=[null,null,null,null,null,null],R=0;R=t.touchTapThreshold2}if(n&&t.touchData.cxt){e.preventDefault();var x=e.touches[0].clientX-O,_=e.touches[0].clientY-N,L=e.touches[1].clientX-O,D=e.touches[1].clientY-N,P=G(x,_,L,D);if(P/M>=2.25||P>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var R={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(R),t.touchData.start=null):o.emit(R)}}if(n&&t.touchData.cxt){R={originalEvent:e,type:"cxtdrag",position:{x:s[0],y:s[1]}},t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(R):o.emit(R),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var F=t.findNearestElement(s[0],s[1],!0,!0);(!t.touchData.cxtOver||F!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=F,F&&F.emit({originalEvent:e,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(n&&e.touches[2]&&o.boxSelectionEnabled())e.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:s[0],y:s[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,r[4]=1,r&&0!==r.length&&void 0!==r[0]?(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3):(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(n&&e.touches[1]&&!t.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(e.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),tt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var $=0;$0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(e,"touchcancel",$=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(e,"touchend",j=function(e){var r=t.touchData.start;if(t.touchData.capture){0===e.touches.length&&(t.touchData.capture=!1),e.preventDefault();var a=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var o,s=t.cy,c=s.zoom(),l=t.touchData.now,u=t.touchData.earlier;if(e.touches[0]){var f=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);l[0]=f[0],l[1]=f[1]}if(e.touches[1]&&(f=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),l[2]=f[0],l[3]=f[1]),e.touches[2]&&(f=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),l[4]=f[0],l[5]=f[1]),r&&r.unactivate(),t.touchData.cxt){if(o={originalEvent:e,type:"cxttapend",position:{x:l[0],y:l[1]}},r?r.emit(o):s.emit(o),!t.touchData.cxtDragged){var d={originalEvent:e,type:"cxttap",position:{x:l[0],y:l[1]}};r?r.emit(d):s.emit(d)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!e.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var g=s.collection(t.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,t.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:e,position:{x:l[0],y:l[1]}});g.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),g.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=r&&r.unactivate(),e.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!e.touches[1]&&!e.touches[0]&&!e.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var p=t.dragData.touchDragEles;if(null!=r){var b=r._private.grabbed;h(p),t.redrawHint("drag",!0),t.redrawHint("eles",!0),b&&(r.emit("freeon"),p.emit("free"),t.dragData.didDrag&&(r.emit("dragfreeon"),p.emit("dragfree"))),i(r,["touchend","tapend","vmouseup","tapdragout"],e,{x:l[0],y:l[1]}),r.unactivate(),t.touchData.start=null}else{var m=t.findNearestElement(l[0],l[1],!0,!0);i(m,["touchend","tapend","vmouseup","tapdragout"],e,{x:l[0],y:l[1]})}var y=t.touchData.startPosition[0]-l[0],w=y*y,v=t.touchData.startPosition[1]-l[1],x=(w+v*v)*c*c;t.touchData.singleTouchMoved||(r||s.$(":selected").unselect(["tapunselect"]),i(r,["tap","vclick"],e,{x:l[0],y:l[1]}),z=!1,e.timeStamp-H<=s.multiClickDebounceTime()?(q&&clearTimeout(q),z=!0,H=null,i(r,["dbltap","vdblclick"],e,{x:l[0],y:l[1]})):(q=setTimeout((function(){z||i(r,["onetap","voneclick"],e,{x:l[0],y:l[1]})}),s.multiClickDebounceTime()),H=e.timeStamp)),null!=r&&!t.dragData.didDrag&&r._private.selectable&&x"u"){var K=[],Y=function(t){return{clientX:t.clientX,clientY:t.clientY,force:1,identifier:t.pointerId,pageX:t.pageX,pageY:t.pageY,radiusX:t.width/2,radiusY:t.height/2,screenX:t.screenX,screenY:t.screenY,target:t.target}},V=function(t){K.push(function(t){return{event:t,touch:Y(t)}}(t))},W=function(t){for(var e=0;e2){for(var A=[l[0],l[1]],M=Math.pow(A[0]-t,2)+Math.pow(A[1]-e,2),L=1;L0)return d[0]}return null},f=Object.keys(u),d=0;d0?c:Ue(r,a,t,e,n,i,o)},checkPoint:function(t,e,n,i,r,a,o){var s=ln(i,r),c=2*s;if(Xe(t,e,this.points,a,o,i,r-c,[0,-1],n)||Xe(t,e,this.points,a,o,i-c,r,[0,-1],n))return!0;var l=i/2+2*n,u=r/2+2*n;return!!(We(t,e,[a-l,o-u,a-l,o,a+l,o,a+l,o-u])||Je(t,e,c,c,a+i/2-s,o+r/2-s,n)||Je(t,e,c,c,a-i/2+s,o+r/2-s,n))}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",on(3,0)),this.generateRoundPolygon("round-triangle",on(3,0)),this.generatePolygon("rectangle",on(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",on(5,0)),this.generateRoundPolygon("round-pentagon",on(5,0)),this.generatePolygon("hexagon",on(6,0)),this.generateRoundPolygon("round-hexagon",on(6,0)),this.generatePolygon("heptagon",on(7,0)),this.generateRoundPolygon("round-heptagon",on(7,0)),this.generatePolygon("octagon",on(8,0)),this.generateRoundPolygon("round-octagon",on(8,0));var i=new Array(20),r=cn(5,0),a=cn(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=t.deqFastCost*p)break}else if(r){if(d>=t.deqCost*c||d>=t.deqAvgCost*s)break}else if(g>=t.deqNoDrawCost*hl)break;var b=t.deq(e,h,u);if(!(b.length>0))break;for(var m=0;m0&&(t.onDeqd(e,l),!r&&t.shouldRedraw(e,l,h,u)&&i())}),r(e))}}},dl=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;e(this,t),this.idsByKey=new ne,this.keyForId=new ne,this.cachesByLvl=new ne,this.lvls=[],this.getKey=n,this.doesEleInvalidateKey=i}return r(t,[{key:"getIdsFor",value:function(t){null==t&&Ht("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new re,e.set(t,n)),n}},{key:"addIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).add(e)}},{key:"deleteIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).delete(e)}},{key:"getNumberOfIdsForKey",value:function(t){return null==t?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e),i=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(i,e),this.keyForId.set(e,i)}},{key:"deleteKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteIdForKey(n,e),this.keyForId.delete(e)}},{key:"keyHasChangedFor",value:function(t){var e=t.id();return this.keyForId.get(e)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var e=this.cachesByLvl,n=this.lvls,i=e.get(t);return i||(i=new ne,e.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),i=this.getCache(n,e);return null!=i&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,e){var n=this.keyForId.get(t.id());return this.getCache(n,e)}},{key:"hasCache",value:function(t,e){return this.getCachesAt(e).has(t)}},{key:"has",value:function(t,e){var n=this.getKey(t);return this.hasCache(n,e)}},{key:"setCache",value:function(t,e,n){n.key=t,this.getCachesAt(e).set(t,n)}},{key:"set",value:function(t,e,n){var i=this.getKey(t);this.setCache(i,e,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,e){this.getCachesAt(e).delete(t)}},{key:"delete",value:function(t,e){var n=this.getKey(t);this.deleteCache(n,e)}},{key:"invalidateKey",value:function(t){var e=this;this.lvls.forEach((function(n){return e.deleteCache(t,n)}))}},{key:"invalidate",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||0===this.getNumberOfIdsForKey(n)}}]),t}(),gl={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},pl=Xt({getKey:null,doesEleInvalidateKey:jt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:$t,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),bl=function(t,e){var n=this;n.renderer=t,n.onDequeues=[];var i=pl(e);$(n,i),n.lookup=new dl(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},ml=bl.prototype;ml.reasons=gl,ml.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},ml.getRetiredTextureQueue=function(t){var e=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return e[t]=e[t]||[]},ml.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new ce((function(t,e){return e.reqs-t.reqs}))},ml.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},ml.getElement=function(t,e,n,i,r){var a=this,o=this.renderer,s=o.cy.zoom(),c=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(null==i&&(i=Math.ceil(Se(s*n))),i<-4)i=-4;else if(s>=7.99||i>3)return null;var l=Math.pow(2,i),u=e.h*l,h=e.w*l,f=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,f))return null;var d,g=c.get(t,i);if(g&&g.invalidated&&(g.invalidated=!1,g.texture.invalidatedWidth-=g.width),g)return g;if(d=u<=25?25:u<=50?50:50*Math.ceil(u/50),u>1024||h>1024)return null;var p=a.getTextureQueue(d),b=p[p.length-2],m=function(){return a.recycleTexture(d,h)||a.addTexture(d,h)};b||(b=p[p.length-1]),b||(b=m()),b.width-b.usedWidthi;C--)E=a.getElement(t,e,n,C,gl.downscale);S()}else{var A;if(!v&&!x&&!k)for(var M=i-1;M>=-4;M--){var L=c.get(t,M);if(L){A=L;break}}if(w(A))return a.queueElement(t,i),A;b.context.translate(b.usedWidth,0),b.context.scale(l,l),this.drawElement(b.context,t,e,f,!1),b.context.scale(1/l,1/l),b.context.translate(-b.usedWidth,0)}return g={x:b.usedWidth,texture:b,level:i,scale:l,width:h,height:u,scaledLabelShown:f},b.usedWidth+=Math.ceil(h+8),b.eleCaches.push(g),c.set(t,i,g),a.checkTextureFullness(b),g},ml.invalidateElements=function(t){for(var e=0;e=.2*t.width&&this.retireTexture(t)},ml.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?Qt(e,t):t.fullnessChecks++},ml.retireTexture=function(t){var e=t.height,n=this.getTextureQueue(e),i=this.lookup;Qt(n,t),t.retired=!0;for(var r=t.eleCaches,a=0;a=e)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,Zt(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Qt(i,a),n.push(a),a}},ml.queueElement=function(t,e){var n=this.getElementQueue(),i=this.getElementKeyToQueue(),r=this.getKey(t),a=i[r];if(a)a.level=Math.max(a.level,e),a.eles.merge(t),a.reqs++,n.updateItem(a);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:r};n.push(o),i[r]=o}},ml.dequeue=function(t){for(var e=this,n=e.getElementQueue(),i=e.getElementKeyToQueue(),r=[],a=e.lookup,o=0;o<1&&n.size()>0;o++){var s=n.pop(),c=s.key,l=s.eles[0],u=a.hasCache(l,s.level);if(i[c]=null,!u){r.push(s);var h=e.getBoundingBox(l);e.getElement(l,h,t,s.level,gl.dequeue)}}return r},ml.removeFromQueue=function(t){var e=this.getElementQueue(),n=this.getElementKeyToQueue(),i=this.getKey(t),r=n[i];null!=r&&(1===r.eles.length?(r.reqs=Ft,e.updateItem(r),e.pop(),n[i]=null):r.eles.unmerge(t))},ml.onDequeue=function(t){this.onDequeues.push(t)},ml.offDequeue=function(t){Qt(this.onDequeues,t)},ml.setupDequeueing=fl({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n=3.99||n>2)return null;i.validateLayersElesOrdering(n,t);var o,s,c=i.layersByLevel,l=Math.pow(2,n),u=c[n]=c[n]||[];if(i.levelIsComplete(n,t))return u;!function(){var e=function(e){if(i.validateLayersElesOrdering(e,t),i.levelIsComplete(e,t))return s=c[e],!0},r=function(t){if(!s)for(var i=n+t;-4<=i&&i<=2&&!e(i);i+=t);};r(1),r(-1);for(var a=u.length-1;a>=0;a--){var o=u[a];o.invalid&&Qt(u,o)}}();var h=function(e){var r=(e=e||{}).after;if(function(){if(!o){o=De();for(var e=0;e16e6)return null;var a=i.makeLayer(o,n);if(null!=r){var s=u.indexOf(r)+1;u.splice(s,0,a)}else(void 0===e.insert||e.insert)&&u.unshift(a);return a};if(i.skipping&&!a)return null;for(var f=null,d=t.length/1,g=!a,p=0;p=d||!He(f.bb,b.boundingBox()))&&!(f=h({insert:!0,after:f})))return null;s||g?i.queueLayer(f,b):i.drawEleInLayer(f,b,n,e),f.eles.push(b),y[n]=f}}return s||(g?null:u)},wl.getEleLevelForLayerLevel=function(t,e){return t},wl.drawEleInLayer=function(t,e,n,i){var r=this.renderer,a=t.context,o=e.boundingBox();0===o.w||0===o.h||!e.visible()||(n=this.getEleLevelForLayerLevel(n,i),r.setImgSmoothing(a,!1),r.drawCachedElement(a,e,null,null,n,true),r.setImgSmoothing(a,!0))},wl.levelIsComplete=function(t,e){var n=this.layersByLevel[t];if(!n||0===n.length)return!1;for(var i=0,r=0;r0||a.invalid)return!1;i+=a.eles.length}return i===e.length},wl.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var i=0;i0){t=!0;break}}return t},wl.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=Tt(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,i){e.invalidateLayer(t)})))},wl.invalidateLayer=function(t){if(this.lastInvalidationTime=Tt(),!t.invalid){var e=t.level,n=t.eles,i=this.layersByLevel[e];Qt(i,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var r=0;r3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this,s=e._private.rscratch;if((!a||e.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var c;n&&(c=n,t.translate(-c.x1,-c.y1));var l=a?e.pstyle("opacity").value:1,u=a?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,f=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,p=l*u,b=l*u,m=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;"straight-triangle"===h?(o.eleStrokeStyle(t,e,n),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=g,o.eleStrokeStyle(t,e,n),o.drawEdgePath(e,t,s.allpts,f),t.lineCap="butt")},y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;o.drawArrowheads(t,e,n)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var w=e.pstyle("ghost-offset-x").pfValue,v=e.pstyle("ghost-offset-y").pfValue,x=e.pstyle("ghost-opacity").value,k=p*x;t.translate(w,v),m(k),y(k),t.translate(-w,-v)}r&&o.drawEdgeUnderlay(t,e),m(),y(),r&&o.drawEdgeOverlay(t,e),o.drawElementText(t,e,null,i),n&&t.translate(c.x1,c.y1)}}},Rl=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n){if(n.visible()){var i=n.pstyle("".concat(t,"-opacity")).value;if(0!==i){var r=this,a=r.usePaths(),o=n._private.rscratch,s=2*n.pstyle("".concat(t,"-padding")).pfValue,c=n.pstyle("".concat(t,"-color")).value;e.lineWidth=s,"self"!==o.edgeType||a?e.lineCap="round":e.lineCap="butt",r.colorStrokeStyle(e,c[0],c[1],c[2],i),r.drawEdgePath(n,e,o.allpts,"solid")}}}};Bl.drawEdgeOverlay=Rl("overlay"),Bl.drawEdgeUnderlay=Rl("underlay"),Bl.drawEdgePath=function(t,e,n,i){var r,a=t._private.rscratch,o=e,s=!1,c=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,u=t.pstyle("line-dash-offset").pfValue;if(c){var h=n.join("$");a.pathCacheKey&&a.pathCacheKey===h?(r=e=a.pathCache,s=!0):(r=e=new Path2D,a.pathCacheKey=h,a.pathCache=r)}if(o.setLineDash)switch(i){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(l),o.lineDashOffset=u;break;case"solid":o.setLineDash([])}if(!s&&!a.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var f=2;f+35&&void 0!==arguments[5]?arguments[5]:5,o=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+i-a,n),t.quadraticCurveTo(e+i,n,e+i,n+a),t.lineTo(e+i,n+r-a),t.quadraticCurveTo(e+i,n+r,e+i-a,n+r),t.lineTo(e+a,n+r),t.quadraticCurveTo(e,n+r,e,n+r-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath(),o?t.stroke():t.fill()}$l.eleTextBiggerThanMin=function(t,e){if(!e){var n=t.cy().zoom(),i=this.getPixelRatio(),r=Math.ceil(Se(n*i));e=Math.pow(2,r)}return!(t.pstyle("font-size").pfValue*e5&&void 0!==arguments[5])||arguments[5],o=this;if(null==i){if(a&&!o.eleTextBiggerThanMin(e))return}else if(!1===i)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var c=o.getLabelJustification(e);t.textAlign=c,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,u=e.pstyle("label"),h=e.pstyle("source-label"),f=e.pstyle("target-label");if(l||(!u||!u.value)&&(!h||!h.value)&&(!f||!f.value))return;t.textAlign="center",t.textBaseline="bottom"}var d,g=!n;n&&(d=n,t.translate(-d.x1,-d.y1)),null==r?(o.drawText(t,e,null,g,a),e.isEdge()&&(o.drawText(t,e,"source",g,a),o.drawText(t,e,"target",g,a))):o.drawText(t,e,r,g,a),n&&t.translate(d.x1,d.y1)},$l.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&void 0!==arguments[2])||arguments[2],i=e.pstyle("font-style").strValue,r=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=n?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,c=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,u=e.pstyle("text-outline-color").value;t.font=i+" "+o+" "+r+" "+a,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,u[0],u[1],u[2],c)},$l.getTextAngle=function(t,e){var n=t._private.rscratch,i=e?e+"-":"",r=t.pstyle(i+"text-rotation"),a=Jt(n,"labelAngle",e);return"autorotate"===r.strValue?t.isEdge()?a:0:"none"===r.strValue?0:r.pfValue},$l.drawText=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e._private.rscratch,o=r?e.effectiveOpacity():1;if(!r||0!==o&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var s,c,l=Jt(a,"labelX",n),u=Jt(a,"labelY",n),h=this.getLabelText(e,n);if(null!=h&&""!==h&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,r);var f,d=n?n+"-":"",g=Jt(a,"labelWidth",n),p=Jt(a,"labelHeight",n),b=e.pstyle(d+"text-margin-x").pfValue,m=e.pstyle(d+"text-margin-y").pfValue,y=e.isEdge(),w=e.pstyle("text-halign").value,v=e.pstyle("text-valign").value;switch(y&&(w="center",v="center"),l+=b,u+=m,0!==(f=i?this.getTextAngle(e,n):0)&&(s=l,c=u,t.translate(s,c),t.rotate(f),l=0,u=0),v){case"top":break;case"center":u+=p/2;break;case"bottom":u+=p}var x=e.pstyle("text-background-opacity").value,k=e.pstyle("text-border-opacity").value,_=e.pstyle("text-border-width").pfValue,T=e.pstyle("text-background-padding").pfValue,E=0===e.pstyle("text-background-shape").strValue.indexOf("round");if(x>0||_>0&&k>0){var S=l-T;switch(w){case"left":S-=g;break;case"center":S-=g/2}var C=u-p-T,A=g+2*T,M=p+2*T;if(x>0){var L=t.fillStyle,I=e.pstyle("text-background-color").value;t.fillStyle="rgba("+I[0]+","+I[1]+","+I[2]+","+x*o+")",E?jl(t,S,C,A,M,2):t.fillRect(S,C,A,M),t.fillStyle=L}if(_>0&&k>0){var O=t.strokeStyle,N=t.lineWidth,D=e.pstyle("text-border-color").value,P=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+D[0]+","+D[1]+","+D[2]+","+k*o+")",t.lineWidth=_,t.setLineDash)switch(P){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=_/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(E?jl(t,S,C,A,M,2,"stroke"):t.strokeRect(S,C,A,M),"double"===P){var B=_/2;E?jl(t,S+B,C+B,A-2*B,M-2*B,2,"stroke"):t.strokeRect(S+B,C+B,A-2*B,M-2*B)}t.setLineDash&&t.setLineDash([]),t.lineWidth=N,t.strokeStyle=O}}var R=2*e.pstyle("text-outline-width").pfValue;if(R>0&&(t.lineWidth=R),"wrap"===e.pstyle("text-wrap").value){var F=Jt(a,"labelWrapCachedLines",n),$=Jt(a,"labelLineHeight",n),j=g/2,z=this.getLabelJustification(e);switch("auto"===z||("left"===w?"left"===z?l+=-g:"center"===z&&(l+=-j):"center"===w?"left"===z?l+=-j:"right"===z&&(l+=j):"right"===w&&("center"===z?l+=j:"right"===z&&(l+=g))),v){case"top":case"center":case"bottom":u-=(F.length-1)*$}for(var q=0;q0&&t.strokeText(F[q],l,u),t.fillText(F[q],l,u),u+=$}else R>0&&t.strokeText(h,l,u),t.fillText(h,l,u);0!==f&&(t.rotate(-f),t.translate(-s,-c))}}};var zl={drawNode:function(t,e,n){var i,r,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c=this,l=e._private,u=l.rscratch,h=e.position();if(w(h.x)&&w(h.y)&&(!s||e.visible())){var f,d,g=s?e.effectiveOpacity():1,p=c.usePaths(),b=!1,m=e.padding();i=e.width()+2*m,r=e.height()+2*m,n&&(d=n,t.translate(-d.x1,-d.y1));for(var y=e.pstyle("background-image").value,v=new Array(y.length),x=new Array(y.length),k=0,_=0;_0&&void 0!==arguments[0]?arguments[0]:A;c.eleFillStyle(t,e,n)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;c.colorStrokeStyle(t,M[0],M[1],M[2],e)},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P;c.colorStrokeStyle(t,N[0],N[1],N[2],e)},j=function(t,e,n,i){var r,a=c.nodePathCache=c.nodePathCache||[],o=Nt("polygon"===n?n+","+i.join(","):n,""+e,""+t),s=a[o],l=!1;return null!=s?(r=s,l=!0,u.pathCache=r):(r=new Path2D,a[o]=u.pathCache=r),{path:r,cacheHit:l}},z=e.pstyle("shape").strValue,q=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var H=j(i,r,z,q);f=H.path,b=H.cacheHit}var U=function(){if(!b){var n=h;p&&(n={x:0,y:0}),c.nodeShapes[c.getNodeShape(e)].draw(f||t,n.x,n.y,i,r)}p?t.fill(f):t.fill()},G=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=l.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;c.hasPie(e)&&(c.drawPie(t,e,a),n&&(p||c.nodeShapes[c.getNodeShape(e)].draw(t,h.x,h.y,i,r)))},Y=function(){var e=(S>0?S:-S)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g),n=S>0?0:255;0!==S&&(c.colorFillStyle(t,n,n,n,e),p?t.fill(f):t.fill())},V=function(){if(C>0){if(t.lineWidth=C,t.lineCap="butt",t.setLineDash)switch(L){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}if(p?t.stroke(f):t.stroke(),"double"===L){t.lineWidth=C/3;var e=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(f):t.stroke(),t.globalCompositeOperation=e}t.setLineDash&&t.setLineDash([])}},W=function(){if(O>0){if(t.lineWidth=O,t.lineCap="butt",t.setLineDash)switch(D){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}var n=h;p&&(n={x:0,y:0});var a,o=c.getNodeShape(e),s=(i+C+(O+B))/i,l=(r+C+(O+B))/r,u=i*s,f=r*l,d=c.nodeShapes[o].points;if(p&&(a=j(u,f,o,d).path),"ellipse"===o)c.drawEllipsePath(a||t,n.x,n.y,u,f);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(o)){var g=0,b=0,m=0;"round-diamond"===o?g=1.4*(C+B+O):"round-heptagon"===o?(g=1.075*(C+B+O),m=-(C/2+B+O)/35):"round-hexagon"===o?g=1.12*(C+B+O):"round-pentagon"===o?(g=1.13*(C+B+O),m=-(C/2+B+O)/15):"round-tag"===o?(g=1.12*(C+B+O),b=.07*(C/2+O+B)):"round-triangle"===o&&(g=(C+B+O)*(Math.PI/2),m=-(C+B/2+O)/Math.PI),0!==g&&(s=(i+g)/i,l=(r+g)/r),c.drawRoundPolygonPath(a||t,n.x+b,n.y+m,i*s,r*l,d)}else["roundrectangle","round-rectangle"].includes(o)?c.drawRoundRectanglePath(a||t,n.x,n.y,u,f):["cutrectangle","cut-rectangle"].includes(o)?c.drawCutRectanglePath(a||t,n.x,n.y,u,f):["bottomroundrectangle","bottom-round-rectangle"].includes(o)?c.drawBottomRoundRectanglePath(a||t,n.x,n.y,u,f):"barrel"===o?c.drawBarrelPath(a||t,n.x,n.y,u,f):o.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(o)?(d=Qe(Ze(d,(C+O+B)/i)),c.drawPolygonPath(a||t,n.x,n.y,i,r,d)):(d=Qe(Ze(d,-(C+O+B)/i)),c.drawPolygonPath(a||t,n.x,n.y,i,r,d));if(p?t.stroke(a):t.stroke(),"double"===D){t.lineWidth=C/3;var y=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(a):t.stroke(),t.globalCompositeOperation=y}t.setLineDash&&t.setLineDash([])}};if("yes"===e.pstyle("ghost").value){var X=e.pstyle("ghost-offset-x").pfValue,Q=e.pstyle("ghost-offset-y").pfValue,Z=e.pstyle("ghost-opacity").value,J=Z*g;t.translate(X,Q),$(),W(),R(Z*A),U(),G(J,!0),F(Z*I),V(),K(0!==S||0!==C),G(J,!1),Y(J),t.translate(-X,-Q)}p&&t.translate(-h.x,-h.y),o&&c.drawNodeUnderlay(t,e,h,i,r),p&&t.translate(h.x,h.y),$(),W(),R(),U(),G(g,!0),F(),V(),K(0!==S||0!==C),G(g,!1),Y(),p&&t.translate(-h.x,-h.y),c.drawElementText(t,e,null,a),o&&c.drawNodeOverlay(t,e,h,i,r),n&&t.translate(d.x1,d.y1)}}},ql=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n,i,r,a){if(n.visible()){var o=n.pstyle("".concat(t,"-padding")).pfValue,s=n.pstyle("".concat(t,"-opacity")).value,c=n.pstyle("".concat(t,"-color")).value,l=n.pstyle("".concat(t,"-shape")).value;if(s>0){if(i=i||n.position(),null==r||null==a){var u=n.padding();r=n.width()+2*u,a=n.height()+2*u}this.colorFillStyle(e,c[0],c[1],c[2],s),this.nodeShapes[l].draw(e,i.x,i.y,r+2*o,a+2*o),e.fill()}}}};zl.drawNodeOverlay=ql("overlay"),zl.drawNodeUnderlay=ql("underlay"),zl.hasPie=function(t){return(t=t[0])._private.hasPie},zl.drawPie=function(t,e,n,i){e=e[0],i=i||e.position();var r=e.cy().style(),a=e.pstyle("pie-size"),o=i.x,s=i.y,c=e.width(),l=e.height(),u=Math.min(c,l)/2,h=0;this.usePaths()&&(o=0,s=0),"%"===a.units?u*=a.pfValue:void 0!==a.pfValue&&(u=a.pfValue/2);for(var f=1;f<=r.pieBackgroundN;f++){var d=e.pstyle("pie-"+f+"-background-size").value,g=e.pstyle("pie-"+f+"-background-color").value,p=e.pstyle("pie-"+f+"-background-opacity").value*n,b=d/100;b+h>1&&(b=1-h);var m=1.5*Math.PI+2*Math.PI*h,y=m+2*Math.PI*b;0===d||h>=1||h+b>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,u,m,y),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],p),t.fill(),h+=b)}};var Hl={};Hl.getPixelRatio=function(){var t=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Hl.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],i=!0,r=0;ro.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!h&&(u[o.NODE]=!0,u[o.SELECT_BOX]=!0);var y=c.style(),w=c.zoom(),v=void 0!==r?r:w,x=c.pan(),k={x:x.x,y:x.y},_={zoom:w,pan:{x:x.x,y:x.y}},T=o.prevViewport;!(void 0===T||_.zoom!==T.zoom||_.pan.x!==T.pan.x||_.pan.y!==T.pan.y)&&!(p&&!g)&&(o.motionBlurPxRatio=1),a&&(k=a),v*=s,k.x*=s,k.y*=s;var E=o.getCachedZSortedEles();function S(t,e,n,i,r){var a=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,o.motionBlurTransparency),t.fillRect(e,n,i,r),t.globalCompositeOperation=a}function C(t,i){var s,c,u,h;o.clearingMotionBlur||t!==l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&t!==l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=k,c=v,u=o.canvasWidth,h=o.canvasHeight):(s={x:x.x*d,y:x.y*d},c=w*d,u=o.canvasWidth*d,h=o.canvasHeight*d),t.setTransform(1,0,0,1,0,0),"motionBlur"===i?S(t,0,0,u,h):!e&&(void 0===i||i)&&t.clearRect(0,0,u,h),n||(t.translate(s.x,s.y),t.scale(c,c)),a&&t.translate(a.x,a.y),r&&t.scale(r,r)}if(h||(o.textureDrawLastFrame=!1),h){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=c.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var A=o.data.bufferContexts[o.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(_=o.textureCache.viewport={zoom:c.zoom(),pan:c.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-_.pan.x)/_.zoom,y:(0-_.pan.y)/_.zoom}}u[o.DRAG]=!1,u[o.NODE]=!1;var M=l.contexts[o.NODE],L=o.textureCache.texture;_=o.textureCache.viewport,M.setTransform(1,0,0,1,0,0),f?S(M,0,0,_.width,_.height):M.clearRect(0,0,_.width,_.height);var I=y.core("outside-texture-bg-color").value,O=y.core("outside-texture-bg-opacity").value;o.colorFillStyle(M,I[0],I[1],I[2],O),M.fillRect(0,0,_.width,_.height),w=c.zoom(),C(M,!1),M.clearRect(_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s),M.drawImage(L,_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var N=c.extent(),D=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),P=o.hideEdgesOnViewport&&D,B=[];if(B[o.NODE]=!u[o.NODE]&&f&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,B[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),B[o.DRAG]=!u[o.DRAG]&&f&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,B[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),u[o.NODE]||n||i||B[o.NODE]){var R=f&&!B[o.NODE]&&1!==d;C(M=e||(R?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),f&&!R?"motionBlur":void 0),P?o.drawCachedNodes(M,E.nondrag,s,N):o.drawLayeredElements(M,E.nondrag,s,N),o.debug&&o.drawDebugPoints(M,E.nondrag),!n&&!f&&(u[o.NODE]=!1)}if(!i&&(u[o.DRAG]||n||B[o.DRAG])&&(R=f&&!B[o.DRAG]&&1!==d,C(M=e||(R?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]),f&&!R?"motionBlur":void 0),P?o.drawCachedNodes(M,E.drag,s,N):o.drawCachedElements(M,E.drag,s,N),o.debug&&o.drawDebugPoints(M,E.drag),!n&&!f&&(u[o.DRAG]=!1)),o.showFps||!i&&u[o.SELECT_BOX]&&!n){if(C(M=e||l.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){w=o.cy.zoom();var F=y.core("selection-box-border-width").value/w;M.lineWidth=F,M.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",M.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),F>0&&(M.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",M.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){w=o.cy.zoom();var $=l.bgActivePosistion;M.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",M.beginPath(),M.arc($.x,$.y,y.core("active-bg-size").pfValue/w,0,2*Math.PI),M.fill()}var j=o.lastRedrawTime;if(o.showFps&&j){j=Math.round(j);var z=Math.round(1e3/j);M.setTransform(1,0,0,1,0,0),M.fillStyle="rgba(255, 0, 0, 0.75)",M.strokeStyle="rgba(255, 0, 0, 0.75)",M.lineWidth=1,M.fillText("1 frame = "+j+" ms = "+z+" fps",0,20);M.strokeRect(0,30,250,20),M.fillRect(0,30,250*Math.min(z/60,1),20)}n||(u[o.SELECT_BOX]=!1)}if(f&&1!==d){var q=l.contexts[o.NODE],H=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],U=l.contexts[o.DRAG],G=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],K=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!m?t.clearRect(0,0,o.canvasWidth,o.canvasHeight):S(t,0,0,o.canvasWidth,o.canvasHeight);var i=d;t.drawImage(e,0,0,o.canvasWidth*i,o.canvasHeight*i,0,0,o.canvasWidth,o.canvasHeight)};(u[o.NODE]||B[o.NODE])&&(K(q,H,B[o.NODE]),u[o.NODE]=!1),(u[o.DRAG]||B[o.DRAG])&&(K(U,G,B[o.DRAG]),u[o.DRAG]=!1)}o.prevViewport=_,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),f&&(o.motionBlurTimeout=setTimeout((function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!h,o.mbFrames=0,u[o.NODE]=!0,u[o.DRAG]=!0,o.redraw()}),100)),e||c.emit("render")};for(var Ul={drawPolygonPath:function(t,e,n,i,r,a){var o=i/2,s=r/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*a[0],n+s*a[1]);for(var c=1;c0&&a>0){f.clearRect(0,0,r,a),f.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)f.translate(-n.x1*c,-n.y1*c),f.scale(c,c),this.drawElements(f,d),f.scale(1/c,1/c),f.translate(n.x1*c,n.y1*c);else{var g=e.pan(),p={x:g.x*c,y:g.y*c};c*=e.zoom(),f.translate(p.x,p.y),f.scale(c,c),this.drawElements(f,d),f.scale(1/c,1/c),f.translate(-p.x,-p.y)}t.bg&&(f.globalCompositeOperation="destination-over",f.fillStyle=t.bg,f.rect(0,0,r,a),f.fill())}return h},Ql.png=function(t){return Jl(t,this.bufferCanvasImage(t),"image/png")},Ql.jpg=function(t){return Jl(t,this.bufferCanvasImage(t),"image/jpeg")};var tu=nu,eu=nu.prototype;function nu(t){var e=this;e.data={canvases:new Array(eu.CANVAS_LAYERS),contexts:new Array(eu.CANVAS_LAYERS),canvasNeedsRedraw:new Array(eu.CANVAS_LAYERS),bufferCanvases:new Array(eu.BUFFER_COUNT),bufferContexts:new Array(eu.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var r=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=i,r.position="relative",r.zIndex="0",r.overflow="hidden";var a=t.cy.container();a.appendChild(e.data.canvasContainer),a.style[n]=i;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};l&&l.userAgent.match(/msie|trident|edge/i)&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s"u"?"undefined":t(OffscreenCanvas))?i=new OffscreenCanvas(e,n):((i=document.createElement("canvas")).width=e,i.height=n),i},[_l,Ml,Bl,Fl,$l,zl,Hl,Ul,Ql,{nodeShapeImpl:function(t,e,n,i,r,a,o){switch(t){case"ellipse":return this.drawEllipsePath(e,n,i,r,a);case"polygon":return this.drawPolygonPath(e,n,i,r,a,o);case"round-polygon":return this.drawRoundPolygonPath(e,n,i,r,a,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,i,r,a);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,i,r,a);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,i,r,a);case"barrel":return this.drawBarrelPath(e,n,i,r,a)}}}].forEach((function(t){$(eu,t)}));var ru=[{type:"layout",extensions:$c},{type:"renderer",extensions:[{name:"null",impl:jc},{name:"base",impl:ll},{name:"canvas",impl:tu}]}],au={},ou={};function su(t,e,n){var i=n,r=function(n){Gt("Can not register `"+e+"` for `"+t+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===t){if(Zs.prototype[e])return r(e);Zs.prototype[e]=n}else if("collection"===t){if(gs.prototype[e])return r(e);gs.prototype[e]=n}else if("layout"===t){for(var a=function(t){this.options=t,n.call(this,t),y(this._private)||(this._private={}),this._private.cy=t.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(n.prototype),s=[],c=0;ce&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>o.WORLD_BOUNDARY?e=o.WORLD_BOUNDARY:e<-o.WORLD_BOUNDARY&&(e=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var i=new c(e,n),r=t.inverseTransformPoint(i);this.setLocation(r.x,r.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,n){function i(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(t){this.x=t},i.prototype.setY=function(t){this.y=t},i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=i},function(t,e,n){var i=n(2),r=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),h=n(11);function f(t,e,n){i.call(this,n),this.estimatedSize=r.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof o?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in f.prototype=Object.create(i.prototype),i)f[d]=i[d];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(t,e,n){if(null==e&&null==n){var i=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(i)>-1)throw"Node already in graph!";return i.owner=this,this.getNodes().push(i),i}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(e.owner!=n.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=n.owner?null:(r.source=e,r.target=n,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),n!=e&&n.edges.push(r),r)},f.prototype.remove=function(t){var e=t;if(t instanceof s){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=e.edges.slice(),i=n.length,r=0;r-1&&u>-1))throw"Source and/or target doesn't know this edge!";if(a.source.edges.splice(l,1),a.target!=a.source&&a.target.edges.splice(u,1),-1==(o=a.source.owner.getEdges().indexOf(a)))throw"Not in owner's edge list!";a.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var t,e,n,i=r.MAX_VALUE,a=r.MAX_VALUE,o=this.getNodes(),s=o.length,c=0;c(t=l.getTop())&&(i=t),a>(e=l.getLeft())&&(a=e)}return i==r.MAX_VALUE?null:(n=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=a-n,this.top=i-n,new u(this.left,this.top))},f.prototype.updateBounds=function(t){for(var e,n,i,a,o,s=r.MAX_VALUE,c=-r.MAX_VALUE,u=r.MAX_VALUE,h=-r.MAX_VALUE,f=this.nodes,d=f.length,g=0;g(e=p.getLeft())&&(s=e),c<(n=p.getRight())&&(c=n),u>(i=p.getTop())&&(u=i),h<(a=p.getBottom())&&(h=a)}var b=new l(s,u,c-s,h-u);s==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),o=null!=f[0].getParent().paddingLeft?f[0].getParent().paddingLeft:this.margin,this.left=b.x-o,this.right=b.x+b.width+o,this.top=b.y-o,this.bottom=b.y+b.height+o},f.calculateBounds=function(t){for(var e,n,i,a,o=r.MAX_VALUE,s=-r.MAX_VALUE,c=r.MAX_VALUE,u=-r.MAX_VALUE,h=t.length,f=0;f(e=d.getLeft())&&(o=e),s<(n=d.getRight())&&(s=n),c>(i=d.getTop())&&(c=i),u<(a=d.getBottom())&&(u=a)}return new l(o,c,s-o,u-c)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,n=e.length,i=0;i=this.nodes.length){var c=0;r.forEach((function(e){e.owner==t&&c++})),c==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=f},function(t,e,n){var i,r=n(1);function a(t){i=n(5),this.layout=t,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(t,e,n,i,r){if(null==n&&null==i&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=n,n=t;var a=(i=e).getOwner(),o=r.getOwner();if(null==a||a.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==o||o.getGraphManager()!=this)throw"Target not in this graph mgr!";if(a==o)return n.isInterGraph=!1,a.add(n,i,r);if(n.isInterGraph=!0,n.source=i,n.target=r,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(t){if(t instanceof i){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var n,a=[],o=(a=a.concat(e.getEdges())).length,s=0;s=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var a=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=i,n[1]=c,n[2]=a,n[3]=w,!1;if(ra)return n[0]=s,n[1]=r,n[2]=m,n[3]=o,!1;if(ia?(n[0]=u,n[1]=h,_=!0):(n[0]=l,n[1]=c,_=!0):E===C&&(i>a?(n[0]=s,n[1]=c,_=!0):(n[0]=f,n[1]=h,_=!0)),-S===C?a>i?(n[2]=y,n[3]=w,T=!0):(n[2]=m,n[3]=b,T=!0):S===C&&(a>i?(n[2]=p,n[3]=b,T=!0):(n[2]=v,n[3]=w,T=!0)),_&&T)return!1;if(i>a?r>o?(A=this.getCardinalDirection(E,C,4),M=this.getCardinalDirection(S,C,2)):(A=this.getCardinalDirection(-E,C,3),M=this.getCardinalDirection(-S,C,1)):r>o?(A=this.getCardinalDirection(-E,C,1),M=this.getCardinalDirection(-S,C,3)):(A=this.getCardinalDirection(E,C,2),M=this.getCardinalDirection(S,C,4)),!_)switch(A){case 1:I=c,L=i+-g/C,n[0]=L,n[1]=I;break;case 2:L=f,I=r+d*C,n[0]=L,n[1]=I;break;case 3:I=h,L=i+g/C,n[0]=L,n[1]=I;break;case 4:L=u,I=r+-d*C,n[0]=L,n[1]=I}if(!T)switch(M){case 1:N=b,O=a+-k/C,n[2]=O,n[3]=N;break;case 2:O=v,N=o+x*C,n[2]=O,n[3]=N;break;case 3:N=w,O=a+k/C,n[2]=O,n[3]=N;break;case 4:O=y,N=o+-x*C,n[2]=O,n[3]=N}}return!1},r.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},r.getIntersection=function(t,e,n,r){if(null==r)return this.getIntersection2(t,e,n);var a,o,s,c,l,u,h,f=t.x,d=t.y,g=e.x,p=e.y,b=n.x,m=n.y,y=r.x,w=r.y;return l=g*d-f*p,u=y*m-b*w,0==(h=(a=p-d)*(c=b-y)-(o=w-m)*(s=f-g))?null:new i((s*u-c*l)/h,(o*l-a*u)/h)},r.angleOfVector=function(t,e,n,i){var r=void 0;return t!==n?(r=Math.atan((i-e)/(n-t)),n0?1:t<0?-1:0},i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=i},function(t,e,n){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,t.exports=i},function(t,e,n){var i=function(){function t(t,e){for(var n=0;n"u"?"undefined":i(t);return null==t||"object"!=e&&"function"!=e},t.exports=r},function(t,e,n){function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&e;){for(s.push(l[0]);s.length>0&&e;){var u=s[0];s.splice(0,1),o.add(u);var h=u.getEdges();for(a=0;a-1&&l.splice(p,1)}o=new Set,c=new Map}else t=[]}return t},f.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,i=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r0){for(var r=this.edgeToDummyNodes.get(n),a=0;a=0&&e.splice(h,1),u.getNeighborsList().forEach((function(t){if(n.indexOf(t)<0){var e=i.get(t)-1;1==e&&c.push(t),i.set(t,e)}}))}n=n.concat(c),(1==e.length||2==e.length)&&(r=!0,a=e[0])}return a},f.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=f},function(t,e,n){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=1e4*Math.sin(i.seed++),i.x-Math.floor(i.x)},t.exports=i},function(t,e,n){var i=n(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},r.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},r.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},r.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},r.prototype.inverseTransformPoint=function(t){return new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,n){var i=n(15),r=n(7),a=n(0),o=n(8),s=n(9);function c(){i.call(this),this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.springConstant=r.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=r.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=r.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=r.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*r.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=r.MAX_ITERATIONS}for(var l in c.prototype=Object.create(i.prototype),i)c[l]=i[l];c.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},c.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,i,o,s,c=this.getGraphManager().getAllEdges(),l=0;lr.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*r.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-r.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>r.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(r.COOLING_ADAPTATION_FACTOR,1-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*(1-r.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},c.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),a=new Set,t=0;t(c=e.getEstimatedSize()*this.gravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*a):(o>(c=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant)},c.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=s.length||l>=s[0].length))for(var u=0;ut}}]),t}();t.exports=a},function(t,e,n){var i=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.sequence1=e,this.sequence2=n,this.match_score=i,this.mismatch_penalty=r,this.gap_penalty=a,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;n--){var i=this.listeners[n];i.event===t&&i.callback===e&&this.listeners.splice(n,1)}},r.emit=function(t,e){for(var n=0;nt.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.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},a.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),r=0;r0?this.positionNodesRadially(n):(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)})),this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly())}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(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 t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.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=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!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(n,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n1)for(s=0;si&&(i=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(t,e,n){var i=Math.max(this.maxDiagonalInTree(t),c.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(e,null,0,359,0,i);var r=b.calculateBounds(t),a=new m;a.setDeviceOrgX(r.getMinX()),a.setDeviceOrgY(r.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var m=b[0];b.splice(0,1);var w=u.indexOf(m);w>=0&&u.splice(w,1),g--,h--}f=null!=e?(u.indexOf(b[0])+1)%g:0;for(var v=Math.abs(i-n)/h,x=f;d!=h;x=++x%g){var k=u[x].getOtherEnd(t);if(k!=e){var _=(n+d*v)%360,T=(_+v)%360;y.branchRadialLayout(k,t,_,T,r+a,a),d++}}},y.maxDiagonalInTree=function(t){for(var e=g.MIN_VALUE,n=0;ne&&(e=i)}return e},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],i=this.graphManager.getAllNodes(),r=0;r"u"&&(e[c]=[]),e[c]=e[c].concat(s)}Object.keys(e).forEach((function(n){if(e[n].length>1){var i="DummyCompound_"+n;t.memberGroups[i]=e[n];var r=e[n][0].getParent(),a=new o(t.graphManager);a.id=i,a.paddingLeft=r.paddingLeft||0,a.paddingRight=r.paddingRight||0,a.paddingBottom=r.paddingBottom||0,a.paddingTop=r.paddingTop||0,t.idToDummyNode[i]=a;var s=t.getGraphManager().add(t.newGraph(),a),c=r.getChild();c.add(a);for(var l=0;l=0;t--){var e=this.compoundOrder[t],n=e.id,i=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,i,r)}},y.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(n){var i=t.idToDummyNode[n],r=i.paddingLeft,a=i.paddingTop;t.adjustLocations(e[n],i.rect.x,i.rect.y,r,a)}))},y.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var i=n.getNodes(),r=0;r0)return this.toBeTiled[e]=!1,!1;if(null!=a.getChild()){if(!this.getToBeTiled(a))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[a.id]=!1}return this.toBeTiled[e]=!0,!0},y.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,i=0;ic&&(c=u.rect.height)}n+=c+t.verticalPadding}},y.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(i){var r=e[i];n.tiledMemberPack[i]=n.tileNodes(t[i],r.paddingLeft+r.paddingRight),r.rect.width=n.tiledMemberPack[i].width,r.rect.height=n.tiledMemberPack[i].height}))},y.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height0&&(a+=t.horizontalPadding),t.rowWidth[n]=a,t.width0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[n]&&(s=t.rowHeight[n],t.rowHeight[n]=o,s=t.rowHeight[n]-s),t.height+=s,t.rows[n].push(e)},y.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,i=0;in&&(e=i,n=t.rowWidth[i]);return e},y.prototype.canAddHorizontal=function(t,e,n){var i=this.getShortestRowIndex(t);if(i<0)return!0;var r=t.rowWidth[i];if(r+t.horizontalPadding+e<=t.width)return!0;var a,o,s=0;return t.rowHeight[i]0&&(s=n+t.verticalPadding-t.rowHeight[i]),a=t.width-r>=e+t.horizontalPadding?(t.height+s)/(r+e+t.horizontalPadding):(t.height+s)/t.width,s=n+t.verticalPadding,(o=t.widtha&&e!=n){i.splice(-1,1),t.rows[n].push(r),t.rowWidth[e]=t.rowWidth[e]-a,t.rowWidth[n]=t.rowWidth[n]+a,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var o=Number.MIN_VALUE,s=0;so&&(o=i[s].height);e>0&&(o+=t.verticalPadding);var c=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=o,t.rowHeight[n]0)for(var u=r;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a0)for(u=o;u<=s;u++)c[3]+=this.grid[r-1][u].length+this.grid[r][u].length-1;for(var h,f,d=g.MAX_VALUE,p=0;p0&&(o=n.getGraphManager().add(n.newGraph(),a),this.processChildrenList(o,h,n))}},h.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",h)};typeof cytoscape<"u"&&d(cytoscape),t.exports=d}]))}(n$);const o$=r(n$.exports);function s$(t,e,n,i,r){(function(t,e,n,i,r){const a=r.htmlLabels,o=i%11,s=e.append("g");n.section=o;let c="section-"+o;o<0&&(c+=" section-root"),s.attr("class",(n.class?n.class+" ":"")+"mindmap-node "+c);const l=s.append("g"),u=s.append("g"),h=n.descr.replace(/()/g,"\n");IL(u,h,{useHtmlLabels:a,width:n.width,classes:"mindmap-node-label"}),a||u.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const f=u.node().getBBox(),[d]=hf(r.fontSize);if(n.height=f.height+1.1*d*.5+n.padding,n.width=f.width+2*n.padding,n.icon)if(n.type===t.nodeType.CIRCLE)n.height+=50,n.width+=50,s.append("foreignObject").attr("height","50px").attr("width",n.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+o+" "+n.icon),u.attr("transform","translate("+n.width/2+", "+(n.height/2-1.5*n.padding)+")");else{n.width+=50;const t=n.height;n.height=Math.max(t,60);const e=Math.abs(n.height-t);s.append("foreignObject").attr("width","60px").attr("height",n.height).attr("style","text-align: center;margin-top:"+e/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+o+" "+n.icon),u.attr("transform","translate("+(25+n.width/2)+", "+(e/2+n.padding/2)+")")}else if(a){const t=(n.width-f.width)/2,e=(n.height-f.height)/2;u.attr("transform","translate("+t+", "+e+")")}else{const t=n.width/2,e=n.padding/2;u.attr("transform","translate("+t+", "+e+")")}switch(n.type){case t.nodeType.DEFAULT:!function(t,e,n,i){e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 ${n.height-5} v${10-n.height} q0,-5 5,-5 h${n.width-10} q5,0 5,5 v${n.height-5} H0 Z`),e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",n.height).attr("x2",n.width).attr("y2",n.height)}(t,l,n,o);break;case t.nodeType.ROUNDED_RECT:!function(t,e,n){e.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("height",n.height).attr("rx",n.padding).attr("ry",n.padding).attr("width",n.width)}(t,l,n);break;case t.nodeType.RECT:!function(t,e,n){e.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("height",n.height).attr("width",n.width)}(t,l,n);break;case t.nodeType.CIRCLE:l.attr("transform","translate("+n.width/2+", "+ +n.height/2+")"),function(t,e,n){e.append("circle").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("r",n.width/2)}(t,l,n);break;case t.nodeType.CLOUD:!function(t,e,n){const i=n.width,r=n.height,a=.15*i,o=.25*i,s=.35*i,c=.2*i;e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 0 a${a},${a} 0 0,1 ${.25*i},${-1*i*.1}\n a${s},${s} 1 0,1 ${.4*i},${-1*i*.1}\n a${o},${o} 1 0,1 ${.35*i},${1*i*.2}\n\n a${a},${a} 1 0,1 ${.15*i},${1*r*.35}\n a${c},${c} 1 0,1 ${-1*i*.15},${1*r*.65}\n\n a${o},${a} 1 0,1 ${-1*i*.25},${.15*i}\n a${s},${s} 1 0,1 ${-1*i*.5},0\n a${a},${a} 1 0,1 ${-1*i*.25},${-1*i*.15}\n\n a${a},${a} 1 0,1 ${-1*i*.1},${-1*r*.35}\n a${c},${c} 1 0,1 ${.1*i},${-1*r*.65}\n\n H0 V0 Z`)}(t,l,n);break;case t.nodeType.BANG:!function(t,e,n){const i=n.width,r=n.height,a=.15*i;e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 0 a${a},${a} 1 0,0 ${.25*i},${-1*r*.1}\n a${a},${a} 1 0,0 ${.25*i},0\n a${a},${a} 1 0,0 ${.25*i},0\n a${a},${a} 1 0,0 ${.25*i},${1*r*.1}\n\n a${a},${a} 1 0,0 ${.15*i},${1*r*.33}\n a${.8*a},${.8*a} 1 0,0 0,${1*r*.34}\n a${a},${a} 1 0,0 ${-1*i*.15},${1*r*.33}\n\n a${a},${a} 1 0,0 ${-1*i*.25},${.15*r}\n a${a},${a} 1 0,0 ${-1*i*.25},0\n a${a},${a} 1 0,0 ${-1*i*.25},0\n a${a},${a} 1 0,0 ${-1*i*.25},${-1*r*.15}\n\n a${a},${a} 1 0,0 ${-1*i*.1},${-1*r*.33}\n a${.8*a},${.8*a} 1 0,0 0,${-1*r*.34}\n a${a},${a} 1 0,0 ${.1*i},${-1*r*.33}\n\n H0 V0 Z`)}(t,l,n);break;case t.nodeType.HEXAGON:!function(t,e,n){const i=n.height,r=i/4,a=n.width-n.padding+2*r;!function(t,e,n,i,r){t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+(r.width-e)/2+", "+n+")")}(e,a,i,[{x:r,y:0},{x:a-r,y:0},{x:a,y:-i/2},{x:a-r,y:-i},{x:r,y:-i},{x:0,y:-i/2}],n)}(0,l,n)}t.setElementForId(n.id,s),n.height})(t,e,n,i,r),n.children&&n.children.forEach(((n,a)=>{s$(t,e,n,i<0?a:i,r)}))}function c$(t,e,n,i){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:i,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach((r=>{c$(r,e,n,i+1),e.add({group:"edges",data:{id:`${t.id}_${r.id}`,source:t.id,target:r.id,depth:i,section:r.section}})}))}function l$(t,e){return new Promise((n=>{const i=ee("body").append("div").attr("id","cy").attr("style","display:none"),r=JF({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),c$(t,r,e,0),r.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}})),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready((t=>{l.info("Ready",t),n(r)}))}))}JF.use(o$);const u$={draw:async(t,e,n,i)=>{var r,a;l.debug("Rendering mindmap diagram\n"+t);const o=i.db,s=o.getMindmap();if(!s)return;const c=sg();c.htmlLabels=!1;const u=bg(e),h=u.append("g");h.attr("class","mindmap-edges");const f=u.append("g");f.attr("class","mindmap-nodes"),s$(o,f,s,-1,c);const d=await l$(s,c);(function(t,e){e.edges().map(((e,n)=>{const i=e.data();if(e[0]._private.bodyBounds){const r=e[0]._private.rscratch;l.trace("Edge: ",n,i),t.insert("path").attr("d",`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}}))})(h,d),function(t,e){e.nodes().map(((e,n)=>{const i=e.data();i.x=e.position().x,i.y=e.position().y,function(t,e){const n=t.getElementById(e.id),i=e.x||0,r=e.y||0;n.attr("transform","translate("+i+","+r+")")}(t,i);const r=t.getElementById(i.nodeId);l.info("Id:",n,"Position: (",e.position().x,", ",e.position().y,")",i),r.attr("transform",`translate(${e.position().x-i.width/2}, ${e.position().y-i.height/2})`),r.attr("attr",`apa-${n})`)}))}(o,d),Gd(void 0,u,(null==(r=c.mindmap)?void 0:r.padding)??bl.mindmap.padding,(null==(a=c.mindmap)?void 0:a.useMaxWidth)??bl.mindmap.useMaxWidth)}},h$=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:QF,renderer:u$,parser:KF,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},a={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\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:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};function o(){this.yy={}}return r.lexer=a,o.prototype=r,r.Parser=o,new o}();f$.parser=f$;const d$=f$;let g$=[],p$=[],b$={};class m${constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}}class y${constructor(t){this.ID=t}}const w$={nodesMap:b$,getConfig:()=>sg().sankey,getNodes:()=>p$,getLinks:()=>g$,getGraph:()=>({nodes:p$.map((t=>({id:t.ID}))),links:g$.map((t=>({source:t.source.ID,target:t.target.ID,value:t.value})))}),addLink:(t,e,n)=>{g$.push(new m$(t,e,n))},findOrCreateNode:t=>(t=Bc.sanitizeText(t,sg()),b$[t]||(b$[t]=new y$(t),p$.push(b$[t])),b$[t]),getAccTitle:Jd,setAccTitle:Zd,getAccDescription:eg,setAccDescription:tg,getDiagramTitle:ig,setDiagramTitle:ng,clear:()=>{g$=[],p$=[],b$={},Qd()}};function v$(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function x$(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function k$(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function _$(t){return t.target.depth}function T$(t,e){return t.sourceLinks.length?t.depth:e-1}function E$(t){return function(){return t}}function S$(t,e){return A$(t.source,e.source)||t.index-e.index}function C$(t,e){return A$(t.target,e.target)||t.index-e.index}function A$(t,e){return t.y0-e.y0}function M$(t){return t.value}function L$(t){return t.index}function I$(t){return t.nodes}function O$(t){return t.links}function N$(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function D$({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var P$=Math.PI,B$=2*P$,R$=1e-6,F$=B$-R$;function $$(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function j$(){return new $$}function z$(t){return function(){return t}}function q$(t){return t[0]}function H$(t){return t[1]}$$.prototype=j$.prototype={constructor:$$,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var a=this._x1,o=this._y1,s=n-t,c=i-e,l=a-t,u=o-e,h=l*l+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>R$)if(Math.abs(u*s-c*l)>R$&&r){var f=n-a,d=i-o,g=s*s+c*c,p=f*f+d*d,b=Math.sqrt(g),m=Math.sqrt(h),y=r*Math.tan((P$-Math.acos((g+h-p)/(2*b*m)))/2),w=y/m,v=y/b;Math.abs(w-1)>R$&&(this._+="L"+(t+w*l)+","+(e+w*u)),this._+="A"+r+","+r+",0,0,"+ +(u*f>l*d)+","+(this._x1=t+v*s)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=t+o,l=e+s,u=1^a,h=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>R$||Math.abs(this._y1-l)>R$)&&(this._+="L"+c+","+l),n&&(h<0&&(h=h%B$+B$),h>F$?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):h>R$&&(this._+="A"+n+","+n+",0,"+ +(h>=P$)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var U$=Array.prototype.slice;function G$(t){return t.source}function K$(t){return t.target}function Y$(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function V$(t){return[t.source.x1,t.y0]}function W$(t){return[t.target.x0,t.y1]}const X$=class t{static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}};X$.count=0;let Q$=X$;const Z$={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?x$(t.sourceLinks,_$)-1:0},justify:T$},J$={draw:function(t,e,n,i){const{securityLevel:r,sankey:a}=sg(),o=lg.sankey;let s;"sandbox"===r&&(s=ee("#i"+e));const c=ee("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),l="sandbox"===r?c.select(`[id="${e}"]`):ee(`[id="${e}"]`),u=(null==a?void 0:a.width)??o.width,h=(null==a?void 0:a.height)??o.width,f=(null==a?void 0:a.useMaxWidth)??o.useMaxWidth,d=(null==a?void 0:a.nodeAlignment)??o.nodeAlignment,g=(null==a?void 0:a.prefix)??o.prefix,p=(null==a?void 0:a.suffix)??o.suffix,b=(null==a?void 0:a.showValues)??o.showValues,m=i.db.getGraph(),y=Z$[d];(function(){let t,e,n,i=0,r=0,a=1,o=1,s=24,c=8,l=L$,u=T$,h=I$,f=O$,d=6;function g(){const g={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const i=new Map(t.map(((e,n)=>[l(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:r}=n;"object"!=typeof e&&(e=n.source=N$(i,e)),"object"!=typeof r&&(r=n.target=N$(i,r)),e.sourceLinks.push(n),r.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:i}of t)e.sort(n),i.sort(n)}(g),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(k$(e.sourceLinks,M$),k$(e.targetLinks,M$)):e.fixedValue}(g),function({nodes:t}){const e=t.length;let n=new Set(t),i=new Set,r=0;for(;n.size;){for(const t of n){t.depth=r;for(const{target:e}of t.sourceLinks)i.add(e)}if(++r>e)throw new Error("circular link");n=i,i=new Set}}(g),function({nodes:t}){const e=t.length;let n=new Set(t),i=new Set,r=0;for(;n.size;){for(const t of n){t.height=r;for(const{source:e}of t.targetLinks)i.add(e)}if(++r>e)throw new Error("circular link");n=i,i=new Set}}(g),function(n){const l=function({nodes:t}){const n=v$(t,(t=>t.depth))+1,r=(a-i-s)/(n-1),o=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=i+t*r,e.x1=e.x0+s,o[t]?o[t].push(e):o[t]=[e]}if(e)for(const t of o)t.sort(e);return o}(n);t=Math.min(c,(o-r)/(v$(l,(t=>t.length))-1)),function(e){const n=x$(e,(e=>(o-r-(e.length-1)*t)/k$(e,M$)));for(const i of e){let e=r;for(const r of i){r.y0=e,r.y1=e+r.value*n,e=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*n}e=(o-e+t)/(i.length+1);for(let t=0;t0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,v(t)}void 0===e&&a.sort(A$),m(a,i)}}function b(t,n,i){for(let r=t.length-2;r>=0;--r){const a=t[r];for(const t of a){let e=0,i=0;for(const{target:n,value:r}of t.sourceLinks){let a=r*(n.layer-t.layer);e+=_(t,n)*a,i+=a}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,v(t)}void 0===e&&a.sort(A$),m(a,i)}}function m(e,n){const i=e.length>>1,a=e[i];w(e,a.y0-t,i-1,n),y(e,a.y1+t,i+1,n),w(e,o,e.length-1,n),y(e,r,0,n)}function y(e,n,i,r){for(;i1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function w(e,n,i,r){for(;i>=0;--i){const a=e[i],o=(a.y1-n)*r;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function v({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(C$);for(const{target:{targetLinks:e}}of t)e.sort(S$)}}function x(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(C$),n.sort(S$)}function k(e,n){let i=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:r,width:a}of e.sourceLinks){if(r===n)break;i+=a+t}for(const{source:t,width:r}of n.targetLinks){if(t===e)break;i-=r}return i}function _(e,n){let i=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:r,width:a}of n.targetLinks){if(r===e)break;i+=a+t}for(const{target:t,width:r}of e.sourceLinks){if(t===n)break;i-=r}return i}return g.update=function(t){return D$(t),t},g.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:E$(t),g):l},g.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:E$(t),g):u},g.nodeSort=function(t){return arguments.length?(e=t,g):e},g.nodeWidth=function(t){return arguments.length?(s=+t,g):s},g.nodePadding=function(e){return arguments.length?(c=t=+e,g):c},g.nodes=function(t){return arguments.length?(h="function"==typeof t?t:E$(t),g):h},g.links=function(t){return arguments.length?(f="function"==typeof t?t:E$(t),g):f},g.linkSort=function(t){return arguments.length?(n=t,g):n},g.size=function(t){return arguments.length?(i=r=0,a=+t[0],o=+t[1],g):[a-i,o-r]},g.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],r=+t[0][1],o=+t[1][1],g):[[i,r],[a,o]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g})().nodeId((t=>t.id)).nodeWidth(10).nodePadding(10+(b?15:0)).nodeAlign(y).extent([[0,0],[u,h]])(m);const w=Ui(ho);l.append("g").attr("class","nodes").selectAll(".node").data(m.nodes).join("g").attr("class","node").attr("id",(t=>(t.uid=Q$.next("node-")).id)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"})).attr("x",(t=>t.x0)).attr("y",(t=>t.y0)).append("rect").attr("height",(t=>t.y1-t.y0)).attr("width",(t=>t.x1-t.x0)).attr("fill",(t=>w(t.id))),l.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(m.nodes).join("text").attr("x",(t=>t.x0(t.y1+t.y0)/2)).attr("dy",(b?"0":"0.35")+"em").attr("text-anchor",(t=>t.x0b?`${t}\n${g}${Math.round(100*e)/100}${p}`:t));const v=l.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(m.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),x=(null==a?void 0:a.linkColor)||"gradient";if("gradient"===x){const t=v.append("linearGradient").attr("id",(t=>(t.uid=Q$.next("linearGradient-")).id)).attr("gradientUnits","userSpaceOnUse").attr("x1",(t=>t.source.x1)).attr("x2",(t=>t.target.x0));t.append("stop").attr("offset","0%").attr("stop-color",(t=>w(t.source.id))),t.append("stop").attr("offset","100%").attr("stop-color",(t=>w(t.target.id)))}let k;switch(x){case"gradient":k=t=>t.uid;break;case"source":k=t=>w(t.source.id);break;case"target":k=t=>w(t.target.id);break;default:k=x}v.append("path").attr("d",function(t){var e=G$,n=K$,i=q$,r=H$,a=null;function o(){var o,s=U$.call(arguments),c=e.apply(this,s),l=n.apply(this,s);if(a||(a=o=j$()),t(a,+i.apply(this,(s[0]=c,s)),+r.apply(this,s),+i.apply(this,(s[0]=l,s)),+r.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:z$(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:z$(+t),o):r},o.context=function(t){return arguments.length?(a=t??null,o):a},o}(Y$).source(V$).target(W$)).attr("stroke",k).attr("stroke-width",(t=>Math.max(1,t.width))),Gd(void 0,l,0,f)}},tj=d$.parse.bind(d$);d$.parse=t=>tj((t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim())(t));const ej=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:d$,db:w$,renderer:J$}},Symbol.toStringTag,{value:"Module"}));var nj=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,7],n=[1,13],i=[1,14],r=[1,15],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],u=[8,21,28,29,30,31,32,40,44,47],h=[1,23],f=[1,24],d=[8,15,16,21,28,29,30,31,32,40,44,47],g=[8,15,16,21,27,28,29,30,31,32,40,44,47],p=[1,49],b={trace:function(){},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,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList: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:49,$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:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"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],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(t,e,n,i,r,a,o){var s=a.length-1;switch(r){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",a[s-1]),i.setHierarchy(a[s-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",a[s]),"number"==typeof a[s].length?this.$=a[s]:this.$=[a[s]];break;case 13:i.getLogger().debug("Rule: statement #2: ",a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:i.getLogger().debug("Rule: link: ",a[s],t),this.$={edgeTypeStr:a[s],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:const e=parseInt(a[s]),n=i.generateId();this.$={id:n,type:"space",label:"",width:e,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",a[s-2],a[s-1],a[s]," typestr: ",a[s-1].edgeTypeStr);const r=i.edgeStrToEdgeData(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+"-"+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:"edge",directions:a[s].directions,arrowTypeEnd:r,arrowTypeStart:"arrow_open"},{id:a[s].id,label:a[s].label,type:i.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:i.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",a[s]),this.$={id:a[s].id,label:a[s].label,type:i.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this?this:"na"),i.getLogger().debug("COLUMNS: ",a[s]),this.$={type:"column-setting",columns:"auto"===a[s]?-1:parseInt(a[s])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",a[s-2],a[s-1]),i.generateId(),this.$={...a[s-2],type:"composite",children:a[s-1]};break;case 28:i.getLogger().debug("Rule: blockStatement : ",a[s-2],a[s-1],a[s]);const o=i.generateId();this.$={id:o,type:"composite",label:"",children:a[s-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",a[s]),this.$={id:a[s]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",a[s]),this.$=[a[s]];break;case 32:i.getLogger().debug("Rule: dirList: ",a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[s-3],a[s-2]," #3:",a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:"classDef",id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:"applyStyles",id:a[s-1].trim(),stylesStr:a[s].trim()}}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,32:a,40:o,44:s,47:c},{8:[1,20]},t(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:n,29:i,31:r,32:a,40:o,44:s,47:c}),t(u,[2,16],{14:22,15:h,16:f}),t(u,[2,17]),t(u,[2,18]),t(u,[2,19]),t(u,[2,20]),t(u,[2,21]),t(u,[2,22]),t(d,[2,25],{27:[1,25]}),t(u,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,32:a,40:o,44:s,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(g,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(l,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},t(d,[2,24]),{11:37,13:4,14:22,15:h,16:f,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:r,32:a,40:o,44:s,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(g,[2,30]),{18:[1,43]},{18:[1,44]},t(d,[2,23]),{18:[1,45]},{30:[1,46]},t(u,[2,28]),t(u,[2,35]),t(u,[2,36]),t(u,[2,37]),t(u,[2,38]),{37:[1,47]},{34:48,35:p},{15:[1,50]},t(u,[2,27]),t(g,[2,33]),{39:[1,51]},{34:52,35:p,39:[2,31]},{32:[2,15]},t(g,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],r=[],a=this.table,o="",s=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;r.push(d);var g,p=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,m,y,w,v,x,k,_,T={};;){if(m=e[e.length-1],this.defaultActions[m]?y=this.defaultActions[m]:((null===b||typeof b>"u")&&(g=void 0,"number"!=typeof(g=n.pop()||u.lex()||1)&&(g instanceof Array&&(g=(n=g).pop()),g=this.symbols_[g]||g),b=g),y=a[m]&&a[m][b]),typeof y>"u"||!y.length||!y[0]){var E;for(v in _=[],a[m])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");E=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(E,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:d,expected:_})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(y[0]){case 1:e.push(b),i.push(u.yytext),r.push(u.yylloc),e.push(y[1]),b=null,c=u.yyleng,o=u.yytext,s=u.yylineno,d=u.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=i[i.length-x],T._$={first_line:r[r.length-(x||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(x||1)].first_column,last_column:r[r.length-1].last_column},p&&(T._$.range=[r[r.length-(x||1)].range[0],r[r.length-1].range[1]]),typeof(w=this.performAction.apply(T,[o,c,s,h.yy,y[1],i,r].concat(l)))<"u")return w;x&&(e=e.slice(0,-1*x*2),i=i.slice(0,-1*x),r=r.slice(0,-1*x)),e.push(this.productions_[y[1]][0]),i.push(T.$),r.push(T._$),k=a[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ae[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 79:return"NODE_DESCR";case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 84:t.getLogger().debug("LEX POPPING"),this.popState();break;case 85:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 91:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 92:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 94:case 95:case 96:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 97:case 98:case 99:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 101:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 103:case 104:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 105:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\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*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?: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:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};function y(){this.yy={}}return b.lexer=m,y.prototype=b,b.Parser=y,new y}();nj.parser=nj;const ij=nj;let rj={},aj=[],oj={};const sj="color",cj="fill",lj=sg();let uj={};const hj=t=>Bc.sanitizeText(t,lj),fj=function(t,e=""){void 0===uj[t]&&(uj[t]={id:t,styles:[],textStyles:[]});const n=uj[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(sj)){const t=e.replace(cj,"bgFill").replace(sj,cj);n.textStyles.push(t)}n.styles.push(e)}))},dj=function(t,e=""){const n=rj[t];null!=e&&(n.styles=e.split(","))},gj=function(t,e){t.split(",").forEach((function(t){let n=rj[t];if(void 0===n){const e=t.trim();rj[e]={id:e,type:"na",children:[]},n=rj[e]}n.classes||(n.classes=[]),n.classes.push(e)}))},pj=(t,e)=>{const n=t.flat(),i=[];for(const t of n)if(t.label&&(t.label=hj(t.label)),"classDef"!==t.type)if("applyClass"!==t.type)if("applyStyles"!==t.type)if("column-setting"===t.type)e.columns=t.columns||-1;else if("edge"===t.type)oj[t.id]?oj[t.id]++:oj[t.id]=1,t.id=oj[t.id]+"-"+t.id,aj.push(t);else{t.label||("composite"===t.type?t.label="":t.label=t.id);const e=!rj[t.id];if(e?rj[t.id]=t:("na"!==t.type&&(rj[t.id].type=t.type),t.label!==t.id&&(rj[t.id].label=t.label)),t.children&&pj(t.children,t),"space"===t.type){const e=t.width||1;for(let n=0;nsd().block,typeStr2Type:function(t){switch(l.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return l.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"}},edgeTypeStr2Type:function(t){return"=="===(l.debug("typeStr2Type",t),t)?"thick":"normal"},edgeStrToEdgeData:function(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}},getLogger:()=>console,getBlocksFlat:()=>[...Object.values(rj)],getBlocks:()=>bj||[],getEdges:()=>aj,setHierarchy:t=>{mj.children=t,pj(t,mj),bj=mj.children},getBlock:t=>rj[t],setBlock:t=>{rj[t.id]=t},getColumns:t=>{const e=rj[t];return e?e.columns?e.columns:e.children?e.children.length:-1:-1},getClasses:function(){return uj},clear:()=>{l.debug("Clear called"),Qd(),mj={id:"root",type:"composite",children:[],columns:-1},rj={root:mj},bj=[],uj={},aj=[],oj={}},generateId:()=>(yj++,"id-"+Math.random().toString(36).substr(2,12)+"-"+yj)},vj=(t,e)=>{const n=Jc,i=n(t,"r"),r=n(t,"g"),a=n(t,"b");return Zc(i,r,a,e)};function xj(t,e,n=!1){var i,r,a;const o=t;let s="default";((null==(i=null==o?void 0:o.classes)?void 0:i.length)||0)>0&&(s=((null==o?void 0:o.classes)||[]).join(" ")),s+=" flowchart-label";let c,l=0,u="";switch(o.type){case"round":l=5,u="rect";break;case"composite":l=0,u="composite",c=0;break;case"square":case"group":default:u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"doublecircle":u="doublecircle"}const h=Zh((null==o?void 0:o.styles)||[]),f=o.label,d=o.size||{width:0,height:0,x:0,y:0};return{labelStyle:h.labelStyle,shape:u,labelText:f,rx:l,ry:l,class:s,style:h.style,id:o.id,directions:o.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:n,intersect:void 0,type:o.type,padding:c??((null==(a=null==(r=sd())?void 0:r.block)?void 0:a.padding)||0)}}async function kj(t,e,n){const i=xj(e,0,!1);if("group"===i.type)return;const r=await aI(t,i),a=r.node().getBBox(),o=n.getBlock(i.id);o.size={width:a.width,height:a.height,x:0,y:0,node:r},n.setBlock(o),r.remove()}async function _j(t,e,n){const i=xj(e,0,!0);"space"!==n.getBlock(i.id).type&&(await aI(t,i),e.intersect=null==i?void 0:i.intersect,oI(i))}async function Tj(t,e,n,i){for(const r of e)await i(t,r,n),r.children&&await Tj(t,r.children,n,i)}const Ej=(null==(e=null==(t=sg())?void 0:t.block)?void 0:e.padding)||8;function Sj(t,e){if(0===t||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);return t<0?{px:e,py:0}:1===t?{px:0,py:e}:{px:e%t,py:Math.floor(e/t)}}const Cj=t=>{let e=0,n=0;for(const i of t.children){const{width:r,height:a,x:o,y:s}=i.size||{width:0,height:0,x:0,y:0};l.debug("getMaxChildSize abc95 child:",i.id,"width:",r,"height:",a,"x:",o,"y:",s,i.type),"space"!==i.type&&(r>e&&(e=r/(t.widthInColumns||1)),a>n&&(n=a))}return{width:e,height:n}};function Aj(t,e,n=0,i=0){var r,a,o,s,c,u,h,f,d,g,p;l.debug("setBlockSizes abc95 (start)",t.id,null==(r=null==t?void 0:t.size)?void 0:r.x,"block width =",null==t?void 0:t.size,"sieblingWidth",n),null!=(a=null==t?void 0:t.size)&&a.width||(t.size={width:n,height:i,x:0,y:0});let b=0,m=0;if((null==(o=t.children)?void 0:o.length)>0){for(const n of t.children)Aj(n,e);const r=Cj(t);b=r.width,m=r.height,l.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",b,m);for(const e of t.children)e.size&&(l.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${b} ${m} ${e.size}`),e.size.width=b*(e.widthInColumns||1)+Ej*((e.widthInColumns||1)-1),e.size.height=m,e.size.x=0,e.size.y=0,l.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${b} maxHeight:${m}`));for(const n of t.children)Aj(n,e,b,m);const a=t.columns||-1;let o=0;for(const e of t.children)o+=e.widthInColumns||1;let f=t.children.length;a>0&&a0?Math.min(t.children.length,a):t.children.length;if(e>0){const n=(g-e*Ej-Ej)/e;l.debug("abc95 (growing to fit) width",t.id,g,null==(h=t.size)?void 0:h.width,n);for(const e of t.children)e.size&&(e.size.width=n)}}t.size={width:g,height:p,x:0,y:0}}l.debug("setBlockSizes abc94 (done)",t.id,null==(f=null==t?void 0:t.size)?void 0:f.x,null==(d=null==t?void 0:t.size)?void 0:d.width,null==(g=null==t?void 0:t.size)?void 0:g.y,null==(p=null==t?void 0:t.size)?void 0:p.height)}function Mj(t,e){var n,i,r,a,o,s,c,u,h,f,d,g,p,b,m,y,w;l.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${null==(n=null==t?void 0:t.size)?void 0:n.x} y: ${null==(i=null==t?void 0:t.size)?void 0:i.y} width: ${null==(r=null==t?void 0:t.size)?void 0:r.width}`);const v=t.columns||-1;if(l.debug("layoutBlocks columns abc95",t.id,"=>",v,t),t.children&&t.children.length>0){const e=(null==(o=null==(a=null==t?void 0:t.children[0])?void 0:a.size)?void 0:o.width)||0,n=t.children.length*e+(t.children.length-1)*Ej;l.debug("widthOfChildren 88",n,"posX");let i=0;l.debug("abc91 block?.size?.x",t.id,null==(s=null==t?void 0:t.size)?void 0:s.x);let r=null!=(c=null==t?void 0:t.size)&&c.x?(null==(u=null==t?void 0:t.size)?void 0:u.x)+(-(null==(h=null==t?void 0:t.size)?void 0:h.width)/2||0):-Ej,m=0;for(const e of t.children){const n=t;if(!e.size)continue;const{width:a,height:o}=e.size,{px:s,py:c}=Sj(v,i);if(c!=m&&(m=c,r=null!=(f=null==t?void 0:t.size)&&f.x?(null==(d=null==t?void 0:t.size)?void 0:d.x)+(-(null==(g=null==t?void 0:t.size)?void 0:g.width)/2||0):-Ej,l.debug("New row in layout for block",t.id," and child ",e.id,m)),l.debug(`abc89 layout blocks (child) id: ${e.id} Pos: ${i} (px, py) ${s},${c} (${null==(p=null==n?void 0:n.size)?void 0:p.x},${null==(b=null==n?void 0:n.size)?void 0:b.y}) parent: ${n.id} width: ${a}${Ej}`),n.size){const t=a/2;e.size.x=r+Ej+t,l.debug(`abc91 layout blocks (calc) px, pyid:${e.id} startingPos=X${r} new startingPosX${e.size.x} ${t} padding=${Ej} width=${a} halfWidth=${t} => x:${e.size.x} y:${e.size.y} ${e.widthInColumns} (width * (child?.w || 1)) / 2 ${a*((null==e?void 0:e.widthInColumns)||1)/2}`),r=e.size.x+t,e.size.y=n.size.y-n.size.height/2+c*(o+Ej)+o/2+Ej,l.debug(`abc88 layout blocks (calc) px, pyid:${e.id}startingPosX${r}${Ej}${t}=>x:${e.size.x}y:${e.size.y}${e.widthInColumns}(width * (child?.w || 1)) / 2${a*((null==e?void 0:e.widthInColumns)||1)/2}`)}e.children&&Mj(e),i+=(null==e?void 0:e.widthInColumns)||1,l.debug("abc88 columnsPos",e,i)}}l.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${null==(m=null==t?void 0:t.size)?void 0:m.x} y: ${null==(y=null==t?void 0:t.size)?void 0:y.y} width: ${null==(w=null==t?void 0:t.size)?void 0:w.width}`)}function Lj(t,{minX:e,minY:n,maxX:i,maxY:r}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&"root"!==t.id){const{x:a,y:o,width:s,height:c}=t.size;a-s/2i&&(i=a+s/2),o+c/2>r&&(r=o+c/2)}if(t.children)for(const a of t.children)({minX:e,minY:n,maxX:i,maxY:r}=Lj(a,{minX:e,minY:n,maxX:i,maxY:r}));return{minX:e,minY:n,maxX:i,maxY:r}}function Ij(t){const e=t.getBlock("root");if(!e)return;Aj(e,t,0,0),Mj(e),l.debug("getBlocks",JSON.stringify(e,null,2));const{minX:n,minY:i,maxX:r,maxY:a}=Lj(e);return{x:n,y:i,width:r-n,height:a-i}}const Oj=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ij,db:wj,renderer:{draw:async function(t,e,n,i){const{securityLevel:r,block:a}=sd(),o=i.db;let s;"sandbox"===r&&(s=ee("#i"+e));const c=ee("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),u="sandbox"===r?c.select(`[id="${e}"]`):ee(`[id="${e}"]`);NA(u,["point","circle","cross"],i.type,e);const h=o.getBlocks(),f=o.getBlocksFlat(),d=o.getEdges(),g=u.insert("g").attr("class","block");await async function(t,e,n){await Tj(t,e,n,kj)}(g,h,o);const p=Ij(o);if(await async function(t,e,n){await Tj(t,e,n,_j)}(g,h,o),await async function(t,e,n,i,r){const a=new dC({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const t of n)t.size&&a.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(const n of e)if(n.start&&n.end){const e=i.getBlock(n.start),o=i.getBlock(n.end);if(null!=e&&e.size&&null!=o&&o.size){const i=e.size,s=o.size,c=[{x:i.x,y:i.y},{x:i.x+(s.x-i.x)/2,y:i.y+(s.y-i.y)/2},{x:s.x,y:s.y}];await _I(t,{v:n.start,w:n.end,name:n.id},{...n,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",a,r),n.label&&(await wI(t,{...n,label:n.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await xI({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}(g,d,f,o,e),p){const t=p,e=Math.max(1,Math.round(t.width/t.height*.125)),n=t.height+e+10,i=t.width+10,{useMaxWidth:r}=a;Ud(u,n,i,!!r),l.debug("Here Bounds",p,t),u.attr("viewBox",`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}Ui(ho)},getClasses:function(t,e){return e.db.getClasses()}},styles:t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${vj(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${vj(t.mainBkg,.5)};\n fill: ${vj(t.clusterBkg,.5)};\n stroke: ${vj(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`}},Symbol.toStringTag,{value:"Module"}));return am})); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b631b9b..a2202bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "previewseqdiag-vscode", - "version": "0.5.0-beta1", + "version": "0.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "previewseqdiag-vscode", - "version": "0.5.0-beta1", + "version": "0.5.1", "license": "GPL-3.0", "dependencies": { "minimist": ">=1.2.6" @@ -25,9 +25,9 @@ "copy-webpack-plugin": "^11.0.0", "eslint": "^8.29.0", "glob": "^8.0.3", - "mermaid": "^10.3.1", + "mermaid": "^10.9.1", "mocha": "^10.2.0", - "mscgenjs": "^6.0.2", + "mscgenjs": "^7.0.0", "mscgenjs-inpage": "^4.0.5", "rx": "^4.1.0", "ts-loader": "^9.4.2", @@ -1107,11 +1107,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -1467,14 +1468,10 @@ } }, "node_modules/cytoscape": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.26.0.tgz", - "integrity": "sha512-IV+crL+KBcrCnVVUCZW+zRRRFUZQcrtdOPXki+o4CFUWLdAEYvuZLcBSJC9EBK++suamERKzeY7roq2hdovV3w==", + "version": "3.30.0", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.30.0.tgz", + "integrity": "sha512-l590mjTHT6/Cbxp13dGPC2Y7VXdgc+rUeF8AnF/JPzhjNevbDJfObnJgaSjlldOgBQZbue+X6IUZ7r5GAgvauQ==", "dev": true, - "dependencies": { - "heap": "^0.2.6", - "lodash": "^4.17.21" - }, "engines": { "node": ">=0.10" } @@ -1491,33 +1488,6 @@ "cytoscape": "^3.2.0" } }, - "node_modules/cytoscape-fcose": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", - "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", - "dev": true, - "dependencies": { - "cose-base": "^2.2.0" - }, - "peerDependencies": { - "cytoscape": "^3.2.0" - } - }, - "node_modules/cytoscape-fcose/node_modules/cose-base": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", - "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", - "dev": true, - "dependencies": { - "layout-base": "^2.0.0" - } - }, - "node_modules/cytoscape-fcose/node_modules/layout-base": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", - "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", - "dev": true - }, "node_modules/d3": { "version": "7.8.5", "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz", @@ -2099,9 +2069,9 @@ "dev": true }, "node_modules/elkjs": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.8.2.tgz", - "integrity": "sha512-L6uRgvZTH+4OF5NE/MBbzQx/WYpru1xCBE9respNj6qznEewGUIfhzmm7horWWxbNO2M0WckQypGctR8lH79xQ==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.9.3.tgz", + "integrity": "sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==", "dev": true }, "node_modules/emoji-regex": { @@ -2448,9 +2418,10 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2503,6 +2474,20 @@ "dev": true, "license": "ISC" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/fstream": { "version": "1.0.12", "dev": true, @@ -2693,12 +2678,6 @@ "he": "bin/he" } }, - "node_modules/heap": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", - "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", - "dev": true - }, "node_modules/http-proxy-agent": { "version": "4.0.1", "dev": true, @@ -2867,8 +2846,9 @@ }, "node_modules/is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -3006,6 +2986,31 @@ "dev": true, "license": "MIT" }, + "node_modules/katex": { + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", + "dev": true, + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "dependencies": { + "commander": "^8.3.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "engines": { + "node": ">= 12" + } + }, "node_modules/khroma": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.0.0.tgz", @@ -3169,23 +3174,23 @@ } }, "node_modules/mermaid": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.3.1.tgz", - "integrity": "sha512-hkenh7WkuRWPcob3oJtrN3W+yzrrIYuWF1OIfk/d0xGE8UWlvDhfexaHmDwwe8DKQgqMLI8DWEPwGprxkumjuw==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.9.1.tgz", + "integrity": "sha512-Mx45Obds5W1UkW1nv/7dHRsbfMM1aOKA2+Pxs/IGHNonygDHwmng8xTHyS9z4KWVi0rbko8gjiBmuwwXQ7tiNA==", "dev": true, "dependencies": { "@braintree/sanitize-url": "^6.0.1", "@types/d3-scale": "^4.0.3", "@types/d3-scale-chromatic": "^3.0.0", - "cytoscape": "^3.23.0", + "cytoscape": "^3.28.1", "cytoscape-cose-bilkent": "^4.1.0", - "cytoscape-fcose": "^2.1.0", "d3": "^7.4.0", "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.10", "dayjs": "^1.11.7", "dompurify": "^3.0.5", - "elkjs": "^0.8.2", + "elkjs": "^0.9.0", + "katex": "^0.16.9", "khroma": "^2.0.0", "lodash-es": "^4.17.21", "mdast-util-from-markdown": "^1.3.0", @@ -3851,15 +3856,15 @@ "license": "MIT" }, "node_modules/mscgenjs": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-6.0.2.tgz", - "integrity": "sha512-33HHyMwfQzVGQ768F+Mx93yYSJ4wJqeT+iBxHLNcCeD5rXcmdxwcmffJK3NwoZlZ6qoVs6qFqJ+BF3LZxvetPQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-7.0.0.tgz", + "integrity": "sha512-KPlxwQSRmwZAEyhg1wsl/TQwPA+oicfTl/UMqYgOUR00xqwE3YeX60Rr+jw95a++i5eFuWRsjFpqeZdOprctwg==", "dev": true, "dependencies": { "lodash": "4.17.21" }, "engines": { - "node": "^12||^14||>=16" + "node": "^18||>=20" } }, "node_modules/mscgenjs-inpage": { @@ -3874,6 +3879,18 @@ "node": "^12||^14||>=16" } }, + "node_modules/mscgenjs-inpage/node_modules/mscgenjs": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-6.0.2.tgz", + "integrity": "sha512-33HHyMwfQzVGQ768F+Mx93yYSJ4wJqeT+iBxHLNcCeD5rXcmdxwcmffJK3NwoZlZ6qoVs6qFqJ+BF3LZxvetPQ==", + "dev": true, + "dependencies": { + "lodash": "4.17.21" + }, + "engines": { + "node": "^12||^14||>=16" + } + }, "node_modules/nanoid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", @@ -4705,8 +4722,9 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -6095,10 +6113,12 @@ } }, "braces": { - "version": "3.0.2", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, "browser-stdout": { @@ -6324,14 +6344,10 @@ } }, "cytoscape": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.26.0.tgz", - "integrity": "sha512-IV+crL+KBcrCnVVUCZW+zRRRFUZQcrtdOPXki+o4CFUWLdAEYvuZLcBSJC9EBK++suamERKzeY7roq2hdovV3w==", - "dev": true, - "requires": { - "heap": "^0.2.6", - "lodash": "^4.17.21" - } + "version": "3.30.0", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.30.0.tgz", + "integrity": "sha512-l590mjTHT6/Cbxp13dGPC2Y7VXdgc+rUeF8AnF/JPzhjNevbDJfObnJgaSjlldOgBQZbue+X6IUZ7r5GAgvauQ==", + "dev": true }, "cytoscape-cose-bilkent": { "version": "4.1.0", @@ -6342,32 +6358,6 @@ "cose-base": "^1.0.0" } }, - "cytoscape-fcose": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", - "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", - "dev": true, - "requires": { - "cose-base": "^2.2.0" - }, - "dependencies": { - "cose-base": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", - "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", - "dev": true, - "requires": { - "layout-base": "^2.0.0" - } - }, - "layout-base": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", - "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", - "dev": true - } - } - }, "d3": { "version": "7.8.5", "resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz", @@ -6807,9 +6797,9 @@ "dev": true }, "elkjs": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.8.2.tgz", - "integrity": "sha512-L6uRgvZTH+4OF5NE/MBbzQx/WYpru1xCBE9respNj6qznEewGUIfhzmm7horWWxbNO2M0WckQypGctR8lH79xQ==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.9.3.tgz", + "integrity": "sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==", "dev": true }, "emoji-regex": { @@ -7052,7 +7042,9 @@ "dev": true }, "fill-range": { - "version": "7.0.1", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "requires": { "to-regex-range": "^5.0.1" @@ -7086,6 +7078,13 @@ "version": "1.0.0", "dev": true }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, "fstream": { "version": "1.0.12", "dev": true, @@ -7225,12 +7224,6 @@ "version": "1.2.0", "dev": true }, - "heap": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", - "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", - "dev": true - }, "http-proxy-agent": { "version": "4.0.1", "dev": true, @@ -7340,6 +7333,8 @@ }, "is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, "is-path-inside": { @@ -7432,6 +7427,23 @@ "version": "1.0.1", "dev": true }, + "katex": { + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", + "dev": true, + "requires": { + "commander": "^8.3.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true + } + } + }, "khroma": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.0.0.tgz", @@ -7548,23 +7560,23 @@ "dev": true }, "mermaid": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.3.1.tgz", - "integrity": "sha512-hkenh7WkuRWPcob3oJtrN3W+yzrrIYuWF1OIfk/d0xGE8UWlvDhfexaHmDwwe8DKQgqMLI8DWEPwGprxkumjuw==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.9.1.tgz", + "integrity": "sha512-Mx45Obds5W1UkW1nv/7dHRsbfMM1aOKA2+Pxs/IGHNonygDHwmng8xTHyS9z4KWVi0rbko8gjiBmuwwXQ7tiNA==", "dev": true, "requires": { "@braintree/sanitize-url": "^6.0.1", "@types/d3-scale": "^4.0.3", "@types/d3-scale-chromatic": "^3.0.0", - "cytoscape": "^3.23.0", + "cytoscape": "^3.28.1", "cytoscape-cose-bilkent": "^4.1.0", - "cytoscape-fcose": "^2.1.0", "d3": "^7.4.0", "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.10", "dayjs": "^1.11.7", "dompurify": "^3.0.5", - "elkjs": "^0.8.2", + "elkjs": "^0.9.0", + "katex": "^0.16.9", "khroma": "^2.0.0", "lodash-es": "^4.17.21", "mdast-util-from-markdown": "^1.3.0", @@ -7957,9 +7969,9 @@ "dev": true }, "mscgenjs": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-6.0.2.tgz", - "integrity": "sha512-33HHyMwfQzVGQ768F+Mx93yYSJ4wJqeT+iBxHLNcCeD5rXcmdxwcmffJK3NwoZlZ6qoVs6qFqJ+BF3LZxvetPQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-7.0.0.tgz", + "integrity": "sha512-KPlxwQSRmwZAEyhg1wsl/TQwPA+oicfTl/UMqYgOUR00xqwE3YeX60Rr+jw95a++i5eFuWRsjFpqeZdOprctwg==", "dev": true, "requires": { "lodash": "4.17.21" @@ -7972,6 +7984,17 @@ "dev": true, "requires": { "mscgenjs": "6.0.2" + }, + "dependencies": { + "mscgenjs": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/mscgenjs/-/mscgenjs-6.0.2.tgz", + "integrity": "sha512-33HHyMwfQzVGQ768F+Mx93yYSJ4wJqeT+iBxHLNcCeD5rXcmdxwcmffJK3NwoZlZ6qoVs6qFqJ+BF3LZxvetPQ==", + "dev": true, + "requires": { + "lodash": "4.17.21" + } + } } }, "nanoid": { @@ -8511,6 +8534,8 @@ }, "to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "requires": { "is-number": "^7.0.0" diff --git a/package.json b/package.json index 7670106..191d73c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "previewseqdiag-vscode", "displayName": "Preview Sequence Diagrams", "description": "An extension for the previewing and saving as PNG/JPG/SVG function of mermaid, mscgen and other", - "version": "0.5.0", + "version": "0.5.1", "publisher": "arichika", "author": "arichika.taniguchi @arichika", "license": "GPL-3.0", @@ -180,8 +180,8 @@ "copy-webpack-plugin": "^11.0.0", "@types/write-file-webpack-plugin": "^4.5.2", "write-file-webpack-plugin": "^4.5.1", - "mermaid": "^10.3.1", - "mscgenjs": "^6.0.2", + "mermaid": "^10.9.1", + "mscgenjs": "^7.0.0", "mscgenjs-inpage": "^4.0.5", "rx": "^4.1.0" }, diff --git a/previewseqdiag-vscode-0.4.1.vsix b/previewseqdiag-vscode-0.4.1.vsix deleted file mode 100644 index 35d0d33..0000000 Binary files a/previewseqdiag-vscode-0.4.1.vsix and /dev/null differ diff --git a/previewseqdiag-vscode-0.4.2.vsix b/previewseqdiag-vscode-0.4.2.vsix deleted file mode 100644 index 1fef634..0000000 Binary files a/previewseqdiag-vscode-0.4.2.vsix and /dev/null differ diff --git a/previewseqdiag-vscode-0.5.1.vsix b/previewseqdiag-vscode-0.5.1.vsix new file mode 100644 index 0000000..e79fd65 Binary files /dev/null and b/previewseqdiag-vscode-0.5.1.vsix differ